@tenstorrent/vesper 0.1.1 → 0.3.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/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/admonition/admonition.css +1 -1
- package/dist/components/admonition/admonition.d.ts +3 -3
- package/dist/components/admonition/admonition.d.ts.map +1 -1
- package/dist/components/admonition/admonition.js +2 -2
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar-group/avatar-group.d.ts +1 -1
- package/dist/components/avatar-group/avatar-group.d.ts.map +1 -1
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.d.ts +5 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.js +2 -0
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/button/button.css +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/chip/chip.d.ts +1 -1
- package/dist/components/chip/chip.d.ts.map +1 -1
- package/dist/components/choicebox/choicebox.d.ts +1 -1
- package/dist/components/choicebox/choicebox.d.ts.map +1 -1
- package/dist/components/choicebox/choicebox.js +1 -1
- package/dist/components/choicebox/choicebox.js.map +1 -1
- package/dist/components/code/code.css +1 -1
- package/dist/components/code/code.d.ts +1 -1
- package/dist/components/code/code.d.ts.map +1 -1
- package/dist/components/code-block/code-block.d.ts +1 -1
- package/dist/components/code-block/code-block.d.ts.map +1 -1
- package/dist/components/code-block/components.d.ts +2 -2
- package/dist/components/code-block/components.d.ts.map +1 -1
- package/dist/components/code-block/fixtures.d.ts +1 -1
- package/dist/components/code-block/fixtures.d.ts.map +1 -1
- package/dist/components/code-block/fixtures.js +1 -1
- package/dist/components/code-block/streaming-code-block.d.ts +1 -1
- package/dist/components/code-block/streaming-code-block.d.ts.map +1 -1
- package/dist/components/code-block/utils.d.ts.map +1 -1
- package/dist/components/combobox/combobox.css +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/form-input-message/form-input-message.d.ts +1 -1
- package/dist/components/form-input-message/form-input-message.d.ts.map +1 -1
- package/dist/components/form-input-message/form-input-message.js +1 -1
- package/dist/components/icon-button/icon-button.d.ts +1 -1
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icons/add.d.ts +1 -1
- package/dist/components/icons/add.d.ts.map +1 -1
- package/dist/components/icons/ai-agent-solid.d.ts +1 -1
- package/dist/components/icons/ai-agent-solid.d.ts.map +1 -1
- package/dist/components/icons/ai-agent.d.ts +1 -1
- package/dist/components/icons/ai-agent.d.ts.map +1 -1
- package/dist/components/icons/ai-data.d.ts +1 -1
- package/dist/components/icons/ai-data.d.ts.map +1 -1
- package/dist/components/icons/ai-model.d.ts +1 -1
- package/dist/components/icons/ai-model.d.ts.map +1 -1
- package/dist/components/icons/ai-task.d.ts +1 -1
- package/dist/components/icons/ai-task.d.ts.map +1 -1
- package/dist/components/icons/ai-video-gen.d.ts +1 -1
- package/dist/components/icons/ai-video-gen.d.ts.map +1 -1
- package/dist/components/icons/ai.d.ts +1 -1
- package/dist/components/icons/ai.d.ts.map +1 -1
- package/dist/components/icons/arrow-down.d.ts +1 -1
- package/dist/components/icons/arrow-down.d.ts.map +1 -1
- package/dist/components/icons/arrow-left.d.ts +1 -1
- package/dist/components/icons/arrow-left.d.ts.map +1 -1
- package/dist/components/icons/arrow-right.d.ts +1 -1
- package/dist/components/icons/arrow-right.d.ts.map +1 -1
- package/dist/components/icons/arrow-up-left.d.ts +1 -1
- package/dist/components/icons/arrow-up-left.d.ts.map +1 -1
- package/dist/components/icons/arrow-up-right.d.ts +1 -1
- package/dist/components/icons/arrow-up-right.d.ts.map +1 -1
- package/dist/components/icons/arrow-up.d.ts +1 -1
- package/dist/components/icons/arrow-up.d.ts.map +1 -1
- package/dist/components/icons/auto.d.ts +1 -1
- package/dist/components/icons/auto.d.ts.map +1 -1
- package/dist/components/icons/blackhole.d.ts +1 -1
- package/dist/components/icons/blackhole.d.ts.map +1 -1
- package/dist/components/icons/board.d.ts +1 -1
- package/dist/components/icons/board.d.ts.map +1 -1
- package/dist/components/icons/bolt.d.ts +1 -1
- package/dist/components/icons/bolt.d.ts.map +1 -1
- package/dist/components/icons/bug.d.ts +1 -1
- package/dist/components/icons/bug.d.ts.map +1 -1
- package/dist/components/icons/caret-down.d.ts +1 -1
- package/dist/components/icons/caret-down.d.ts.map +1 -1
- package/dist/components/icons/caret-left.d.ts +1 -1
- package/dist/components/icons/caret-left.d.ts.map +1 -1
- package/dist/components/icons/caret-right.d.ts +1 -1
- package/dist/components/icons/caret-right.d.ts.map +1 -1
- package/dist/components/icons/caret-up.d.ts +1 -1
- package/dist/components/icons/caret-up.d.ts.map +1 -1
- package/dist/components/icons/cart.d.ts +1 -1
- package/dist/components/icons/cart.d.ts.map +1 -1
- package/dist/components/icons/chat-solid.d.ts +1 -1
- package/dist/components/icons/chat-solid.d.ts.map +1 -1
- package/dist/components/icons/chat.d.ts +1 -1
- package/dist/components/icons/chat.d.ts.map +1 -1
- package/dist/components/icons/checkmark.d.ts +1 -1
- package/dist/components/icons/checkmark.d.ts.map +1 -1
- package/dist/components/icons/chip.d.ts +1 -1
- package/dist/components/icons/chip.d.ts.map +1 -1
- package/dist/components/icons/circle-add-solid.d.ts +1 -1
- package/dist/components/icons/circle-add-solid.d.ts.map +1 -1
- package/dist/components/icons/circle-add.d.ts +1 -1
- package/dist/components/icons/circle-add.d.ts.map +1 -1
- package/dist/components/icons/circle-x-solid.d.ts +1 -1
- package/dist/components/icons/circle-x-solid.d.ts.map +1 -1
- package/dist/components/icons/circle-x.d.ts +1 -1
- package/dist/components/icons/circle-x.d.ts.map +1 -1
- package/dist/components/icons/clock-countdown.d.ts +1 -1
- package/dist/components/icons/clock-countdown.d.ts.map +1 -1
- package/dist/components/icons/clock-counter-clockwise.d.ts +1 -1
- package/dist/components/icons/clock-counter-clockwise.d.ts.map +1 -1
- package/dist/components/icons/clock.d.ts +1 -1
- package/dist/components/icons/clock.d.ts.map +1 -1
- package/dist/components/icons/close-panel.d.ts +1 -1
- package/dist/components/icons/close-panel.d.ts.map +1 -1
- package/dist/components/icons/close.d.ts +1 -1
- package/dist/components/icons/close.d.ts.map +1 -1
- package/dist/components/icons/cloud-server-solid.d.ts +1 -1
- package/dist/components/icons/cloud-server-solid.d.ts.map +1 -1
- package/dist/components/icons/cloud-server.d.ts +1 -1
- package/dist/components/icons/cloud-server.d.ts.map +1 -1
- package/dist/components/icons/copy.d.ts +1 -1
- package/dist/components/icons/copy.d.ts.map +1 -1
- package/dist/components/icons/document-solid.d.ts +1 -1
- package/dist/components/icons/document-solid.d.ts.map +1 -1
- package/dist/components/icons/document.d.ts +1 -1
- package/dist/components/icons/document.d.ts.map +1 -1
- package/dist/components/icons/download.d.ts +1 -1
- package/dist/components/icons/download.d.ts.map +1 -1
- package/dist/components/icons/ellipses.d.ts +1 -1
- package/dist/components/icons/ellipses.d.ts.map +1 -1
- package/dist/components/icons/error-solid.d.ts +1 -1
- package/dist/components/icons/error-solid.d.ts.map +1 -1
- package/dist/components/icons/error.d.ts +1 -1
- package/dist/components/icons/error.d.ts.map +1 -1
- package/dist/components/icons/eye-slash.d.ts +1 -1
- package/dist/components/icons/eye-slash.d.ts.map +1 -1
- package/dist/components/icons/eye.d.ts +1 -1
- package/dist/components/icons/eye.d.ts.map +1 -1
- package/dist/components/icons/folder.d.ts +1 -1
- package/dist/components/icons/folder.d.ts.map +1 -1
- package/dist/components/icons/galaxy-rack.d.ts +1 -1
- package/dist/components/icons/galaxy-rack.d.ts.map +1 -1
- package/dist/components/icons/galaxy.d.ts +1 -1
- package/dist/components/icons/galaxy.d.ts.map +1 -1
- package/dist/components/icons/gear-solid.d.ts +1 -1
- package/dist/components/icons/gear-solid.d.ts.map +1 -1
- package/dist/components/icons/gear.d.ts +1 -1
- package/dist/components/icons/gear.d.ts.map +1 -1
- package/dist/components/icons/globe.d.ts +1 -1
- package/dist/components/icons/globe.d.ts.map +1 -1
- package/dist/components/icons/grid.d.ts +1 -1
- package/dist/components/icons/grid.d.ts.map +1 -1
- package/dist/components/icons/icon.d.ts +1 -1
- package/dist/components/icons/icon.d.ts.map +1 -1
- package/dist/components/icons/info-solid.d.ts +1 -1
- package/dist/components/icons/info-solid.d.ts.map +1 -1
- package/dist/components/icons/info.d.ts +1 -1
- package/dist/components/icons/info.d.ts.map +1 -1
- package/dist/components/icons/link.d.ts +1 -1
- package/dist/components/icons/link.d.ts.map +1 -1
- package/dist/components/icons/list.d.ts +1 -1
- package/dist/components/icons/list.d.ts.map +1 -1
- package/dist/components/icons/location.d.ts +1 -1
- package/dist/components/icons/location.d.ts.map +1 -1
- package/dist/components/icons/lock-fill.d.ts +1 -1
- package/dist/components/icons/lock-fill.d.ts.map +1 -1
- package/dist/components/icons/lock.d.ts +1 -1
- package/dist/components/icons/lock.d.ts.map +1 -1
- package/dist/components/icons/loudbox.d.ts +1 -1
- package/dist/components/icons/loudbox.d.ts.map +1 -1
- package/dist/components/icons/menu.d.ts +1 -1
- package/dist/components/icons/menu.d.ts.map +1 -1
- package/dist/components/icons/microphone.d.ts +1 -1
- package/dist/components/icons/microphone.d.ts.map +1 -1
- package/dist/components/icons/minus.d.ts +1 -1
- package/dist/components/icons/minus.d.ts.map +1 -1
- package/dist/components/icons/mode-dark.d.ts +1 -1
- package/dist/components/icons/mode-dark.d.ts.map +1 -1
- package/dist/components/icons/mode-light.d.ts +1 -1
- package/dist/components/icons/mode-light.d.ts.map +1 -1
- package/dist/components/icons/mode-system.d.ts +1 -1
- package/dist/components/icons/mode-system.d.ts.map +1 -1
- package/dist/components/icons/model-deepseek-color.d.ts +1 -1
- package/dist/components/icons/model-deepseek-color.d.ts.map +1 -1
- package/dist/components/icons/model-deepseek.d.ts +1 -1
- package/dist/components/icons/model-deepseek.d.ts.map +1 -1
- package/dist/components/icons/model-falcon-color.d.ts +1 -1
- package/dist/components/icons/model-falcon-color.d.ts.map +1 -1
- package/dist/components/icons/model-falcon.d.ts +1 -1
- package/dist/components/icons/model-falcon.d.ts.map +1 -1
- package/dist/components/icons/model-google-color.d.ts +1 -1
- package/dist/components/icons/model-google-color.d.ts.map +1 -1
- package/dist/components/icons/model-google.d.ts +1 -1
- package/dist/components/icons/model-google.d.ts.map +1 -1
- package/dist/components/icons/model-llama-color.d.ts +1 -1
- package/dist/components/icons/model-llama-color.d.ts.map +1 -1
- package/dist/components/icons/model-llama.d.ts +1 -1
- package/dist/components/icons/model-llama.d.ts.map +1 -1
- package/dist/components/icons/model-openai.d.ts +1 -1
- package/dist/components/icons/model-openai.d.ts.map +1 -1
- package/dist/components/icons/model-qwen-color.d.ts +1 -1
- package/dist/components/icons/model-qwen-color.d.ts.map +1 -1
- package/dist/components/icons/model-qwen.d.ts +1 -1
- package/dist/components/icons/model-qwen.d.ts.map +1 -1
- package/dist/components/icons/monitor.d.ts +1 -1
- package/dist/components/icons/monitor.d.ts.map +1 -1
- package/dist/components/icons/open-panel.d.ts +1 -1
- package/dist/components/icons/open-panel.d.ts.map +1 -1
- package/dist/components/icons/org-developer.d.ts +1 -1
- package/dist/components/icons/org-developer.d.ts.map +1 -1
- package/dist/components/icons/org-experience.d.ts +1 -1
- package/dist/components/icons/org-experience.d.ts.map +1 -1
- package/dist/components/icons/org-operations.d.ts +1 -1
- package/dist/components/icons/org-operations.d.ts.map +1 -1
- package/dist/components/icons/org-systems.d.ts +1 -1
- package/dist/components/icons/org-systems.d.ts.map +1 -1
- package/dist/components/icons/org-university.d.ts +1 -1
- package/dist/components/icons/org-university.d.ts.map +1 -1
- package/dist/components/icons/phone.d.ts +1 -1
- package/dist/components/icons/phone.d.ts.map +1 -1
- package/dist/components/icons/quasar.d.ts +1 -1
- package/dist/components/icons/quasar.d.ts.map +1 -1
- package/dist/components/icons/quietbox.d.ts +1 -1
- package/dist/components/icons/quietbox.d.ts.map +1 -1
- package/dist/components/icons/reset.d.ts +1 -1
- package/dist/components/icons/reset.d.ts.map +1 -1
- package/dist/components/icons/search.d.ts +1 -1
- package/dist/components/icons/search.d.ts.map +1 -1
- package/dist/components/icons/server-solid.d.ts +1 -1
- package/dist/components/icons/server-solid.d.ts.map +1 -1
- package/dist/components/icons/server.d.ts +1 -1
- package/dist/components/icons/server.d.ts.map +1 -1
- package/dist/components/icons/shield-solid.d.ts +1 -1
- package/dist/components/icons/shield-solid.d.ts.map +1 -1
- package/dist/components/icons/shield.d.ts +1 -1
- package/dist/components/icons/shield.d.ts.map +1 -1
- package/dist/components/icons/sidebar.d.ts +1 -1
- package/dist/components/icons/sidebar.d.ts.map +1 -1
- package/dist/components/icons/size.d.ts +1 -1
- package/dist/components/icons/size.d.ts.map +1 -1
- package/dist/components/icons/social-discord.d.ts +1 -1
- package/dist/components/icons/social-discord.d.ts.map +1 -1
- package/dist/components/icons/social-facebook.d.ts +1 -1
- package/dist/components/icons/social-facebook.d.ts.map +1 -1
- package/dist/components/icons/social-github.d.ts +1 -1
- package/dist/components/icons/social-github.d.ts.map +1 -1
- package/dist/components/icons/social-linkedin.d.ts +1 -1
- package/dist/components/icons/social-linkedin.d.ts.map +1 -1
- package/dist/components/icons/social-x.d.ts +1 -1
- package/dist/components/icons/social-x.d.ts.map +1 -1
- package/dist/components/icons/social-youtube.d.ts +1 -1
- package/dist/components/icons/social-youtube.d.ts.map +1 -1
- package/dist/components/icons/spinner.d.ts +1 -1
- package/dist/components/icons/spinner.d.ts.map +1 -1
- package/dist/components/icons/success-solid.d.ts +1 -1
- package/dist/components/icons/success-solid.d.ts.map +1 -1
- package/dist/components/icons/success.d.ts +1 -1
- package/dist/components/icons/success.d.ts.map +1 -1
- package/dist/components/icons/tensix.d.ts +1 -1
- package/dist/components/icons/tensix.d.ts.map +1 -1
- package/dist/components/icons/tenstorrent.d.ts +1 -1
- package/dist/components/icons/tenstorrent.d.ts.map +1 -1
- package/dist/components/icons/trash-solid.d.ts +1 -1
- package/dist/components/icons/trash-solid.d.ts.map +1 -1
- package/dist/components/icons/trash.d.ts +1 -1
- package/dist/components/icons/trash.d.ts.map +1 -1
- package/dist/components/icons/tt-forge-fe.d.ts +1 -1
- package/dist/components/icons/tt-forge-fe.d.ts.map +1 -1
- package/dist/components/icons/tt-forge.d.ts +1 -1
- package/dist/components/icons/tt-forge.d.ts.map +1 -1
- package/dist/components/icons/tt-lang.d.ts +1 -1
- package/dist/components/icons/tt-lang.d.ts.map +1 -1
- package/dist/components/icons/tt-llk.d.ts +1 -1
- package/dist/components/icons/tt-llk.d.ts.map +1 -1
- package/dist/components/icons/tt-metalium.d.ts +1 -1
- package/dist/components/icons/tt-metalium.d.ts.map +1 -1
- package/dist/components/icons/tt-nn.d.ts +1 -1
- package/dist/components/icons/tt-nn.d.ts.map +1 -1
- package/dist/components/icons/tt-torch.d.ts +1 -1
- package/dist/components/icons/tt-torch.d.ts.map +1 -1
- package/dist/components/icons/tt-xla.d.ts +1 -1
- package/dist/components/icons/tt-xla.d.ts.map +1 -1
- package/dist/components/icons/upload.d.ts +1 -1
- package/dist/components/icons/upload.d.ts.map +1 -1
- package/dist/components/icons/user-multiple-solid.d.ts +1 -1
- package/dist/components/icons/user-multiple-solid.d.ts.map +1 -1
- package/dist/components/icons/user-multiple.d.ts +1 -1
- package/dist/components/icons/user-multiple.d.ts.map +1 -1
- package/dist/components/icons/user-solid.d.ts +1 -1
- package/dist/components/icons/user-solid.d.ts.map +1 -1
- package/dist/components/icons/user.d.ts +1 -1
- package/dist/components/icons/user.d.ts.map +1 -1
- package/dist/components/icons/warning-solid.d.ts +1 -1
- package/dist/components/icons/warning-solid.d.ts.map +1 -1
- package/dist/components/icons/warning.d.ts +1 -1
- package/dist/components/icons/warning.d.ts.map +1 -1
- package/dist/components/icons/wormhole.d.ts +1 -1
- package/dist/components/icons/wormhole.d.ts.map +1 -1
- package/dist/components/material/material.d.ts +1 -1
- package/dist/components/material/material.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts +1 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/progress-bar/progress-bar.js +1 -1
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/radio-group/radio-group.d.ts.map +1 -1
- package/dist/components/range/range.d.ts +1 -1
- package/dist/components/range/range.d.ts.map +1 -1
- package/dist/components/select/select.css +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +2 -2
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/sheet/sheet.d.ts +4 -2
- package/dist/components/sheet/sheet.d.ts.map +1 -1
- package/dist/components/sheet/sheet.js +8 -7
- package/dist/components/sheet/sheet.js.map +1 -1
- package/dist/components/show-more/show-more.d.ts +1 -1
- package/dist/components/show-more/show-more.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/snippet/snippet.d.ts +1 -1
- package/dist/components/snippet/snippet.d.ts.map +1 -1
- package/dist/components/split-button/split-button.d.ts +1 -1
- package/dist/components/split-button/split-button.d.ts.map +1 -1
- package/dist/components/split-button/split-button.js +3 -3
- package/dist/components/split-button/split-button.js.map +1 -1
- package/dist/components/status-indicator/status-indicator.d.ts +1 -1
- package/dist/components/status-indicator/status-indicator.d.ts.map +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tag/tag.css +1 -1
- package/dist/components/tag/tag.d.ts +4 -1
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/tag/tag.js +1 -0
- package/dist/components/tag/tag.js.map +1 -1
- package/dist/components/text-area/text-area.css +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-area/text-area.d.ts.map +1 -1
- package/dist/components/text-button/text-button.d.ts +1 -1
- package/dist/components/text-button/text-button.d.ts.map +1 -1
- package/dist/components/text-input/text-input.css +1 -1
- package/dist/components/text-input/text-input.d.ts +1 -1
- package/dist/components/text-input/text-input.d.ts.map +1 -1
- package/dist/components/theme-switcher/theme-switcher.d.ts +1 -1
- package/dist/components/theme-switcher/theme-switcher.d.ts.map +1 -1
- package/dist/components/toast/animations.d.ts.map +1 -1
- package/dist/components/toast/store.d.ts.map +1 -1
- package/dist/components/toast/toast.css +1 -1
- package/dist/components/toast/utils.d.ts.map +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts.map +1 -1
- package/dist/components/toggle/toggle.js +12 -18
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/typography/typography.d.ts +1 -1
- package/dist/components/typography/typography.d.ts.map +1 -1
- package/dist/styles/tailwind-utilities.css +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/getDisabledProps.d.ts +1 -1
- package/dist/utils/getDisabledProps.d.ts.map +1 -1
- package/dist/utils/hooks/useBaseRemSize.js.map +1 -1
- package/dist/utils/splitFormInputProps.d.ts +8 -8
- package/package.json +11 -15
- package/dist/components/masked-input/getMaskitoOptions.d.ts +0 -4
- package/dist/components/masked-input/getMaskitoOptions.d.ts.map +0 -1
- package/dist/components/masked-input/getMaskitoOptions.js +0 -27
- package/dist/components/masked-input/getMaskitoOptions.js.map +0 -1
- package/dist/components/masked-input/masked-input.d.ts +0 -68
- package/dist/components/masked-input/masked-input.d.ts.map +0 -1
- package/dist/components/masked-input/masked-input.js +0 -68
- package/dist/components/masked-input/masked-input.js.map +0 -1
- package/dist/utils/hooks/useMergedRefs.d.ts +0 -11
- package/dist/utils/hooks/useMergedRefs.d.ts.map +0 -1
- package/dist/utils/hooks/useMergedRefs.js +0 -96
- package/dist/utils/hooks/useMergedRefs.js.map +0 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState, } from "react";
|
|
4
|
+
import { useControlled } from "@base-ui/utils/useControlled";
|
|
5
|
+
import { useMergedRefs } from "@base-ui/utils/useMergedRefs";
|
|
4
6
|
import { Typography, } from "../typography/typography.js";
|
|
5
7
|
import { cn } from "../../utils/cn.js";
|
|
6
|
-
import { useMergedRefs } from "../../utils/hooks/useMergedRefs.js";
|
|
7
8
|
export const TOGGLE_SIZES = ["sm", "md", "lg"];
|
|
8
9
|
const TOGGLE_TYPOGRAPHY = {
|
|
9
10
|
sm: "label-sm",
|
|
@@ -56,22 +57,15 @@ export function Toggle(props) {
|
|
|
56
57
|
const { options, className, size = "md", value, defaultValue, onValueChange, id, name, required, disabled, ref, onKeyDown, onBlur, ...rest } = props;
|
|
57
58
|
const innerRef = useRef(null);
|
|
58
59
|
const mergedRef = useMergedRefs(innerRef, ref);
|
|
59
|
-
const [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (value !== innerValue) {
|
|
67
|
-
setInnerValue(value);
|
|
68
|
-
}
|
|
69
|
-
// eslint-disable-next-line
|
|
70
|
-
}, [value]);
|
|
60
|
+
const [selectedOption, setSelectedOption] = useControlled({
|
|
61
|
+
controlled: value,
|
|
62
|
+
default: defaultValue,
|
|
63
|
+
name: "Toggle",
|
|
64
|
+
});
|
|
71
65
|
const handleChangeValue = useCallback((nextValue) => {
|
|
72
|
-
|
|
66
|
+
setSelectedOption(nextValue);
|
|
73
67
|
onValueChange?.(nextValue);
|
|
74
|
-
}, [onValueChange]);
|
|
68
|
+
}, [setSelectedOption, onValueChange]);
|
|
75
69
|
// update inner value when parent form resets
|
|
76
70
|
useEffect(() => {
|
|
77
71
|
const form = innerRef.current?.closest("form");
|
|
@@ -114,15 +108,15 @@ export function Toggle(props) {
|
|
|
114
108
|
}, [onBlur]);
|
|
115
109
|
const [focusedValue, setFocusedValue] = useState(undefined);
|
|
116
110
|
const focusedIndex = options.findIndex((o) => o.value === focusedValue);
|
|
117
|
-
const selectedIndex = options.findIndex((o) => o.value ===
|
|
111
|
+
const selectedIndex = options.findIndex((o) => o.value === selectedOption);
|
|
118
112
|
/**
|
|
119
113
|
* roving tabindex: the group only ever exposes a single tab stop, which
|
|
120
114
|
* follows focus within the group, falling back to the selected option and
|
|
121
115
|
* finally to the first option when nothing is selected
|
|
122
116
|
*/
|
|
123
117
|
const tabbableIndex = [focusedIndex, selectedIndex].find((i) => i !== -1) ?? 0;
|
|
124
|
-
return (_jsxs("div", { ...rest, ref: mergedRef, role: "radiogroup", "aria-required": required, "aria-disabled": disabled, className: cn("vesper-toggle", `vesper-toggle-${size}`, disabled && "vesper-toggle-disabled", className), onKeyDown: handleKeyDown, onBlur: handleBlur, children: [_jsxs("select", { "aria-hidden": true, tabIndex: -1, id: id, name: name, required: required, disabled: disabled, className: "vesper-toggle-select", onChange: (event) => handleChangeValue(event.target.value), value:
|
|
125
|
-
const isSelected =
|
|
118
|
+
return (_jsxs("div", { ...rest, ref: mergedRef, role: "radiogroup", "aria-required": required, "aria-disabled": disabled, className: cn("vesper-toggle", `vesper-toggle-${size}`, disabled && "vesper-toggle-disabled", className), onKeyDown: handleKeyDown, onBlur: handleBlur, children: [_jsxs("select", { "aria-hidden": true, tabIndex: -1, id: id, name: name, required: required, disabled: disabled, className: "vesper-toggle-select", onChange: (event) => handleChangeValue(event.target.value), value: selectedOption ?? "", children: [_jsx("option", { value: "" }), options.map((option) => (_jsx("option", { value: option.value }, option.value)))] }), options.map((option, index) => {
|
|
119
|
+
const isSelected = selectedOption === option.value;
|
|
126
120
|
return (_jsx(Typography, { as: "button", type: "button", "aria-checked": isSelected, role: "radio", tabIndex: index === tabbableIndex ? 0 : -1, disabled: disabled, variant: TOGGLE_TYPOGRAPHY[size], className: cn("vesper-toggle-item", isSelected && "vesper-toggle-item-active"), "aria-label": option.ariaLabel, onFocus: () => setFocusedValue(option.value), onClick: () => handleChangeValue(isSelected ? "" : option.value), children: "text" in option ? (option.text) : (_jsx("span", { className: "vesper-toggle-icon", children: option.icon })) }, option.value));
|
|
127
121
|
})] }));
|
|
128
122
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/toggle/toggle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAML,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle.js","sourceRoot":"","sources":["../../../src/components/toggle/toggle.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAML,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EACL,UAAU,GAEX,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,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props: TooltipProps): string | number | bigint | boolean | import("react
|
|
57
|
+
export declare function Tooltip(props: TooltipProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
58
58
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAKxD,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAIpC,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AAKxD,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAIpC,eAAO,MAAM,aAAa,YAAI,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAEzE,eAAO,MAAM,kBAAkB,YAAI,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAU,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,OAAO,EAAE,SAAS,CAAC;IACnB,oFAAoF;IACpF,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,2GAA2G;IAC3G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yGAAyG;IACzG,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8FAA8F;IAC9F,YAAY,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACpC,yHAAyH;IACzH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+TAyE1C"}
|
|
@@ -29,5 +29,5 @@ export type TypographyProps<E extends ElementType = "p"> = Polymorphic<{
|
|
|
29
29
|
* This is a paragraph of body text.
|
|
30
30
|
* </Typography>
|
|
31
31
|
*/
|
|
32
|
-
export declare function Typography<E extends ElementType = "p">(props: TypographyProps<E>): import("react
|
|
32
|
+
export declare function Typography<E extends ElementType = "p">(props: TypographyProps<E>): import("react").JSX.Element;
|
|
33
33
|
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,YAC9B,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,SAAS,EACT,cAAc,EACd,cAAc,EACd,SAAS,EACT,cAAc,EACd,SAAS,EACT,cAAc,EACd,SAAS,EACT,cAAc,EACd,SAAS,EACT,cAAc,EACd,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,UAAU,EACV,eAAe,CACP,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,IAAI,WAAW,CACpE;IACE,6HAA6H;IAC7H,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B,EACD,CAAC,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,GAAG,EACpD,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,+BAmB1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@utility bg-vesper-dot-pattern-primary{background: var(--vesper-
|
|
1
|
+
@utility bg-vesper-dot-pattern-primary{background-image: var(--vesper-image-dot); background-repeat: repeat; background-position: top; background-color: var(--vesper-background-primary);}@utility bg-vesper-dot-pattern-secondary{background-image: var(--vesper-image-dot); background-repeat: repeat; background-position: top; background-color: var(--vesper-background-secondary);}@utility bg-vesper-dot-pattern-tertiary{background-image: var(--vesper-image-dot); background-repeat: repeat; background-position: top; background-color: var(--vesper-background-tertiary);}@utility bg-vesper-dot-pattern-*{background-image: var(--vesper-image-dot); background-repeat: repeat; background-position: top; background-color: --value(--color-vesper-*);}@utility bg-vesper-dot-pattern-inverse{background-image: var(--vesper-image-dot-inverse); background-repeat: repeat; background-position: top; background-color: var(--vesper-background-inverse-primary);}@utility bg-vesper-dot-pattern-inverse-*{background-image: var(--vesper-image-dot-inverse); background-repeat: repeat; background-position: top; background-color: --value(--color-vesper-*);}
|
package/dist/utils/cn.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,YAAa,CAAC,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,WACP,CAAC"}
|
|
@@ -29,6 +29,7 @@ export declare function getDisabledProps(e: ElementType, isDisabled: boolean): {
|
|
|
29
29
|
onKeyUpCapture?: undefined;
|
|
30
30
|
onFocusCapture?: undefined;
|
|
31
31
|
} | {
|
|
32
|
+
disabled?: undefined;
|
|
32
33
|
"aria-disabled": boolean;
|
|
33
34
|
tabIndex: number;
|
|
34
35
|
onClickCapture: (e: SyntheticEvent) => void;
|
|
@@ -37,6 +38,5 @@ export declare function getDisabledProps(e: ElementType, isDisabled: boolean): {
|
|
|
37
38
|
onKeyDownCapture: (e: SyntheticEvent) => void;
|
|
38
39
|
onKeyUpCapture: (e: SyntheticEvent) => void;
|
|
39
40
|
onFocusCapture: (e: SyntheticEvent) => void;
|
|
40
|
-
disabled?: undefined;
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=getDisabledProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDisabledProps.d.ts","sourceRoot":"","sources":["../../src/utils/getDisabledProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"getDisabledProps.d.ts","sourceRoot":"","sources":["../../src/utils/getDisabledProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEzD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;wBAcxC,cAAc;;;;;;EAezC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBaseRemSize.js","sourceRoot":"","sources":["../../../src/utils/hooks/useBaseRemSize.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAE7C,MAAM,mBAAmB;IACvB,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;IAExB,MAAM,CAAC,QAAQ,GAA0B,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,GAA2B,IAAI,CAAC;IAEzC,MAAM,CAAC,SAAS,GAAG,IAAI,GAAG,EAAc,CAAC;IAEzC,MAAM,CAAC,SAAS,GAAG,CAAC,QAAoB,EAAE,EAAE;QAC1C,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC;YAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QAC9C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAChC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,CAAC;gBAAE,IAAI,CAAC,SAAS,EAAE,CAAC;QAClD,CAAC,CAAC;IACJ,CAAC,C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66,10 @@ export type FormInputProps<W extends ElementType, C extends ControlElementType,
|
|
|
66
66
|
* } = splitFormInputProps(props)
|
|
67
67
|
*/
|
|
68
68
|
export declare function splitFormInputProps<A extends object>(props: A): {
|
|
69
|
-
ariaProps: OmitUnknown<Pick<Omit<OmitUnknown<Omit<OmitUnknown<Omit<A, "
|
|
70
|
-
controlProps: OmitUnknown<Pick<Omit<OmitUnknown<Omit<A, "
|
|
71
|
-
formProps: OmitUnknown<Pick<Omit<A, "
|
|
72
|
-
wrapperProps: OmitUnknown<Omit<OmitUnknown<Omit<OmitUnknown<Omit<A, "
|
|
69
|
+
ariaProps: OmitUnknown<Pick<Omit<OmitUnknown<Omit<OmitUnknown<Omit<A, "autoComplete" | "checked" | "children" | "dangerouslySetInnerHTML" | "defaultChecked" | "defaultValue" | "disabled" | "form" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "role" | "step" | "value">>, "autoCapitalize" | "autoCorrect" | "autoFocus" | "children" | "dangerouslySetInnerHTML" | "enterKeyHint" | "id" | "inputMode" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onFocus" | "onFocusCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onPaste" | "onPasteCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSelect" | "onSelectCapture" | "onWheel" | "onWheelCapture" | "ref" | "role" | "spellCheck" | "tabIndex" | "title">>, "children" | "dangerouslySetInnerHTML" | "role">, "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext">>;
|
|
70
|
+
controlProps: OmitUnknown<Pick<Omit<OmitUnknown<Omit<A, "autoComplete" | "checked" | "children" | "dangerouslySetInnerHTML" | "defaultChecked" | "defaultValue" | "disabled" | "form" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "role" | "step" | "value">>, "children" | "dangerouslySetInnerHTML" | "role">, "autoCapitalize" | "autoCorrect" | "autoFocus" | "enterKeyHint" | "id" | "inputMode" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onFocus" | "onFocusCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onPaste" | "onPasteCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSelect" | "onSelectCapture" | "onWheel" | "onWheelCapture" | "ref" | "spellCheck" | "tabIndex" | "title">>;
|
|
71
|
+
formProps: OmitUnknown<Pick<Omit<A, "children" | "dangerouslySetInnerHTML" | "role">, "autoComplete" | "checked" | "defaultChecked" | "defaultValue" | "disabled" | "form" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "step" | "value">>;
|
|
72
|
+
wrapperProps: OmitUnknown<Omit<OmitUnknown<Omit<OmitUnknown<Omit<A, "autoComplete" | "checked" | "children" | "dangerouslySetInnerHTML" | "defaultChecked" | "defaultValue" | "disabled" | "form" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "role" | "step" | "value">>, "autoCapitalize" | "autoCorrect" | "autoFocus" | "children" | "dangerouslySetInnerHTML" | "enterKeyHint" | "id" | "inputMode" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onFocus" | "onFocusCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onPaste" | "onPasteCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSelect" | "onSelectCapture" | "onWheel" | "onWheelCapture" | "ref" | "role" | "spellCheck" | "tabIndex" | "title">>, "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "role">>;
|
|
73
73
|
};
|
|
74
74
|
/**
|
|
75
75
|
* Splits a given `props` object into two buckets based on whether a prop is a control prop or not
|
|
@@ -79,7 +79,7 @@ export declare function splitFormInputProps<A extends object>(props: A): {
|
|
|
79
79
|
* @example
|
|
80
80
|
* const [controlProps, restProps] = splitControlProps(props)
|
|
81
81
|
* */
|
|
82
|
-
export declare function splitControlProps<A extends object>(props: A): readonly [OmitUnknown<Pick<Omit<A, "
|
|
82
|
+
export declare function splitControlProps<A extends object>(props: A): readonly [OmitUnknown<Pick<Omit<A, "children" | "dangerouslySetInnerHTML" | "role">, "autoCapitalize" | "autoCorrect" | "autoFocus" | "enterKeyHint" | "id" | "inputMode" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onFocus" | "onFocusCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onPaste" | "onPasteCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSelect" | "onSelectCapture" | "onWheel" | "onWheelCapture" | "ref" | "spellCheck" | "tabIndex" | "title">>, OmitUnknown<Omit<A, "autoCapitalize" | "autoCorrect" | "autoFocus" | "children" | "dangerouslySetInnerHTML" | "enterKeyHint" | "id" | "inputMode" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onFocus" | "onFocusCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onPaste" | "onPasteCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSelect" | "onSelectCapture" | "onWheel" | "onWheelCapture" | "ref" | "role" | "spellCheck" | "tabIndex" | "title">>];
|
|
83
83
|
/**
|
|
84
84
|
* Splits a given `props` object into two buckets based on whether a prop is a form prop or not
|
|
85
85
|
*
|
|
@@ -90,7 +90,7 @@ export declare function splitControlProps<A extends object>(props: A): readonly
|
|
|
90
90
|
* @example
|
|
91
91
|
* const [formProps, restProps] = splitFormProps(props)
|
|
92
92
|
* */
|
|
93
|
-
export declare function splitFormProps<A extends object>(props: A): readonly [OmitUnknown<Pick<Omit<A, "
|
|
93
|
+
export declare function splitFormProps<A extends object>(props: A): readonly [OmitUnknown<Pick<Omit<A, "children" | "dangerouslySetInnerHTML" | "role">, "autoComplete" | "checked" | "defaultChecked" | "defaultValue" | "disabled" | "form" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "step" | "value">>, OmitUnknown<Omit<A, "autoComplete" | "checked" | "children" | "dangerouslySetInnerHTML" | "defaultChecked" | "defaultValue" | "disabled" | "form" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "role" | "step" | "value">>];
|
|
94
94
|
/**
|
|
95
95
|
* Splits a given `props` object into two buckets based on whether a prop is an aria-attribute or not
|
|
96
96
|
*
|
|
@@ -99,7 +99,7 @@ export declare function splitFormProps<A extends object>(props: A): readonly [Om
|
|
|
99
99
|
* @example
|
|
100
100
|
* const [ariaProps, restProps] = splitAriaProps(props)
|
|
101
101
|
* */
|
|
102
|
-
export declare function splitAriaProps<A extends object>(props: A): readonly [OmitUnknown<Pick<Omit<A, "
|
|
102
|
+
export declare function splitAriaProps<A extends object>(props: A): readonly [OmitUnknown<Pick<Omit<A, "children" | "dangerouslySetInnerHTML" | "role">, "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext">>, OmitUnknown<Omit<A, "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "role">>];
|
|
103
103
|
/**
|
|
104
104
|
* Splits a given `props` object into two buckets based on a given set of keys, ignoring disallowed props
|
|
105
105
|
*
|
|
@@ -111,7 +111,7 @@ export declare function splitAriaProps<A extends object>(props: A): readonly [Om
|
|
|
111
111
|
* new Set(["foo"] as const),
|
|
112
112
|
* )
|
|
113
113
|
* */
|
|
114
|
-
export declare function splitProps<A extends object, K extends string>(props: A, keys: Set<K>): readonly [OmitUnknown<Pick<Omit<A, "
|
|
114
|
+
export declare function splitProps<A extends object, K extends string>(props: A, keys: Set<K>): readonly [OmitUnknown<Pick<Omit<A, "children" | "dangerouslySetInnerHTML" | "role">, K>>, OmitUnknown<Omit<A, "children" | "dangerouslySetInnerHTML" | "role" | K>>];
|
|
115
115
|
type OmitUnknown<T> = {
|
|
116
116
|
[K in keyof T as unknown extends T[K] ? T[K] extends unknown ? never : K : K]: T[K];
|
|
117
117
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenstorrent/vesper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "React component library for the Vesper design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">=20.9.0"
|
|
20
20
|
},
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
"types": "./dist/components/form-input-message/form-input-message.d.ts",
|
|
36
36
|
"import": "./dist/components/form-input-message/form-input-message.js"
|
|
37
37
|
},
|
|
38
|
-
"./masked-input": {
|
|
39
|
-
"types": "./dist/components/masked-input/masked-input.d.ts",
|
|
40
|
-
"import": "./dist/components/masked-input/masked-input.js"
|
|
41
|
-
},
|
|
42
38
|
"./select": {
|
|
43
39
|
"types": "./dist/components/select/select.d.ts",
|
|
44
40
|
"import": "./dist/components/select/select.js"
|
|
@@ -212,7 +208,7 @@
|
|
|
212
208
|
"test": "vitest run --coverage",
|
|
213
209
|
"test:update": "vitest run --coverage --update",
|
|
214
210
|
"test:watch": "vitest",
|
|
215
|
-
"check-types": "tsc --noEmit
|
|
211
|
+
"check-types": "tsc --noEmit --project tsconfig.build.json --incremental false"
|
|
216
212
|
},
|
|
217
213
|
"peerDependencies": {
|
|
218
214
|
"react": "^19.0.0",
|
|
@@ -226,9 +222,10 @@
|
|
|
226
222
|
"@testing-library/dom": "^10.4.1",
|
|
227
223
|
"@testing-library/jest-dom": "^6.9.1",
|
|
228
224
|
"@testing-library/react": "^16.3.2",
|
|
229
|
-
"@types/node": "
|
|
230
|
-
"@types/react": "19.
|
|
231
|
-
"@types/react-dom": "19.
|
|
225
|
+
"@types/node": "20.17.7",
|
|
226
|
+
"@types/react": "^19.3.0",
|
|
227
|
+
"@types/react-dom": "^19.3.0",
|
|
228
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
232
229
|
"@vitest/browser": "^4.1.8",
|
|
233
230
|
"@vitest/browser-playwright": "^4.1.8",
|
|
234
231
|
"@vitest/coverage-v8": "^4.1.9",
|
|
@@ -239,15 +236,15 @@
|
|
|
239
236
|
"eslint": "^9.39.1",
|
|
240
237
|
"lightningcss": "^1.32.0",
|
|
241
238
|
"playwright": "^1.60.0",
|
|
242
|
-
"react": "^19.
|
|
243
|
-
"react-dom": "^19.
|
|
239
|
+
"react": "^19.3.0",
|
|
240
|
+
"react-dom": "^19.3.0",
|
|
244
241
|
"rehype-parse": "^9.0.1",
|
|
245
242
|
"rehype-stringify": "^10.0.1",
|
|
246
243
|
"storybook": "^10.4.3",
|
|
247
244
|
"svgo": "^4.0.1",
|
|
248
245
|
"tsc-alias": "^1.8.16",
|
|
249
246
|
"tsx": "^4.22.3",
|
|
250
|
-
"typescript": "
|
|
247
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
251
248
|
"unified": "^11.0.5",
|
|
252
249
|
"unist-util-visit": "^5.1.0",
|
|
253
250
|
"vitest": "^4.1.8",
|
|
@@ -255,8 +252,7 @@
|
|
|
255
252
|
},
|
|
256
253
|
"dependencies": {
|
|
257
254
|
"@base-ui/react": "^1.7.0",
|
|
258
|
-
"@
|
|
259
|
-
"@maskito/react": "^5.4.0",
|
|
255
|
+
"@base-ui/utils": "^0.4.0",
|
|
260
256
|
"@shikijs/core": "^4.3.1",
|
|
261
257
|
"@shikijs/engine-javascript": "^4.3.1",
|
|
262
258
|
"@shikijs/langs": "^4.3.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMaskitoOptions.d.ts","sourceRoot":"","sources":["../../../src/components/masked-input/getMaskitoOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,iBAAiB,GAAG,cAAc,CA8B1E"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function getMaskitoOptions(mask) {
|
|
2
|
-
if (!mask) {
|
|
3
|
-
return { mask: /./ };
|
|
4
|
-
}
|
|
5
|
-
if (typeof mask === "string") {
|
|
6
|
-
return { mask: Array.from(mask, (c) => (c === "_" ? /./ : c)) };
|
|
7
|
-
}
|
|
8
|
-
if ("mask" in mask) {
|
|
9
|
-
return mask;
|
|
10
|
-
}
|
|
11
|
-
if (typeof mask.replace === "string") {
|
|
12
|
-
return {
|
|
13
|
-
mask: Array.from(mask.format, (c) => (c === mask.replace ? /./ : c)),
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
if (mask.replace instanceof RegExp) {
|
|
17
|
-
const replacement = mask.replace;
|
|
18
|
-
return {
|
|
19
|
-
mask: Array.from(mask.format, (c) => (c === "_" ? replacement : c)),
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const replacements = mask.replace;
|
|
23
|
-
return {
|
|
24
|
-
mask: Array.from(mask.format, (c) => replacements[c] ?? c),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=getMaskitoOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getMaskitoOptions.js","sourceRoot":"","sources":["../../../src/components/masked-input/getMaskitoOptions.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,iBAAiB,CAAC,IAAwB;IACxD,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;IACvB,CAAC;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,CAAC;IAED,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;QACrC,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACrE,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,OAAO,YAAY,MAAM,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC;QACjC,OAAO;YACL,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACpE,CAAC;IACJ,CAAC;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC;IAClC,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type MaskitoOptions } from "@maskito/core";
|
|
2
|
-
import { type TextInputProps } from "../text-input/text-input.js";
|
|
3
|
-
/**
|
|
4
|
-
* The text masking configuration for a `MaskedInput`, which can take one of three shapes:
|
|
5
|
-
*
|
|
6
|
-
* - `string`: a fixed-length pattern where every `_` is a placeholder that accepts any character, eg. `"____-____-____"`.
|
|
7
|
-
* - `{ format, replace }`: a fixed-length pattern where `replace` determines the placeholder characters and what they accept.
|
|
8
|
-
* Pass a `RegExp` to keep `_` as the placeholder but restrict accepted characters, a single-character `string` to use a
|
|
9
|
-
* different placeholder that accepts any character, or a `Record<string, RegExp>` to map each placeholder character in
|
|
10
|
-
* `format` to the expression validating it.
|
|
11
|
-
* - `MaskitoOptions`: a full [maskito](https://maskito.dev) configuration, for behavior the shorthands can't express, eg.
|
|
12
|
-
* dynamic (variable-length) masks, pre/post-processing hooks, or overwrite mode.
|
|
13
|
-
*
|
|
14
|
-
* Any character in a `string` or `format` pattern that is not a placeholder is treated as a literal and inserted automatically as the user types.
|
|
15
|
-
*/
|
|
16
|
-
export type TextMaskingConfig = MaskitoOptions | string | {
|
|
17
|
-
format: string;
|
|
18
|
-
replace: RegExp | string | {
|
|
19
|
-
[key: string]: RegExp;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export interface MaskedInputProps extends Omit<TextInputProps, "type"> {
|
|
23
|
-
/** The text masking configuration, which determines the shape and formatting of the masked text. When omitted, no masking is applied and the field behaves like a regular `TextInput`. */
|
|
24
|
-
mask?: TextMaskingConfig;
|
|
25
|
-
/** The HTML input type. Restricted to the types that can be masked. @default text */
|
|
26
|
-
type?: "text" | "search" | "tel" | "email" | "url";
|
|
27
|
-
/** When `true`, the initial value of the input is formatted to match the `mask` on mount. @default false */
|
|
28
|
-
formatOnMount?: boolean;
|
|
29
|
-
/** When `true`, the current value of the input is reformatted to match the `mask` whenever the `mask` prop changes. @default true */
|
|
30
|
-
formatOnMaskChange?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A `TextInput` that restricts and formats its value as the user types, via a text mask.
|
|
34
|
-
*
|
|
35
|
-
* @param {TextMaskingConfig} [props.mask] - (optional) The text masking configuration. Accepts a `string` pattern, a `{ format, replace }` object, or a `MaskitoOptions` object. When omitted, no masking is applied
|
|
36
|
-
* @param {string} [props.type] - (optional) The HTML input type, restricted to `"text" | "search" | "tel" | "email" | "url"`. @default text
|
|
37
|
-
* @param {boolean} [props.formatOnMount] - (optional) When `true`, the initial value of the input is formatted to match the `mask` on mount. @default false
|
|
38
|
-
* @param {boolean} [props.formatOnMaskChange] - (optional) When `true`, the current value of the input is reformatted to match the `mask` whenever the `mask` prop changes. @default false
|
|
39
|
-
*
|
|
40
|
-
* You may also pass any additional props supported by the `TextInput` component including `size`, `variant`, `iconLeft`, `iconRight`, and `dropdown`
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* <MaskedInput aria-label="Activation code" mask="____-____-____" />
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* <MaskedInput
|
|
47
|
-
* aria-label="Phone number"
|
|
48
|
-
* placeholder="ex: +1 (222) 333-4444"
|
|
49
|
-
* mask={{ format: "+1 (___) ___-____", replace: /\d/ }}
|
|
50
|
-
* />
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* <MaskedInput
|
|
54
|
-
* aria-label="Postal code"
|
|
55
|
-
* placeholder="ex: A0A 1B1"
|
|
56
|
-
* mask={{ format: "ABA BAB", replace: { A: /[a-zA-Z]/, B: /\d/ } }}
|
|
57
|
-
* />
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* <MaskedInput
|
|
61
|
-
* aria-label="Activation code"
|
|
62
|
-
* mask="____-____-____"
|
|
63
|
-
* defaultValue="123456789012"
|
|
64
|
-
* formatOnMount
|
|
65
|
-
* />
|
|
66
|
-
*/
|
|
67
|
-
export declare function MaskedInput({ mask, ref, formatOnMount, formatOnMaskChange, ...props }: MaskedInputProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
-
//# sourceMappingURL=masked-input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masked-input.d.ts","sourceRoot":"","sources":["../../../src/components/masked-input/masked-input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAM5C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iBAAiB,GACzB,cAAc,GACd,MAAM,GACN;IACE,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtD,CAAC;AAEN,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IACpE,0LAA0L;IAC1L,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,CAAC;IACnD,4GAA4G;IAC5G,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qIAAqI;IACrI,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,GAAG,EACH,aAAqB,EACrB,kBAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA6BlB"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useMemo, useRef } from "react";
|
|
4
|
-
import { maskitoInitialCalibrationPlugin, } from "@maskito/core";
|
|
5
|
-
import { useMaskito } from "@maskito/react";
|
|
6
|
-
import { TextInput, } from "../text-input/text-input.js";
|
|
7
|
-
import { useMergedRefs } from "../../utils/hooks/useMergedRefs.js";
|
|
8
|
-
import { getMaskitoOptions } from "./getMaskitoOptions.js";
|
|
9
|
-
/**
|
|
10
|
-
* A `TextInput` that restricts and formats its value as the user types, via a text mask.
|
|
11
|
-
*
|
|
12
|
-
* @param {TextMaskingConfig} [props.mask] - (optional) The text masking configuration. Accepts a `string` pattern, a `{ format, replace }` object, or a `MaskitoOptions` object. When omitted, no masking is applied
|
|
13
|
-
* @param {string} [props.type] - (optional) The HTML input type, restricted to `"text" | "search" | "tel" | "email" | "url"`. @default text
|
|
14
|
-
* @param {boolean} [props.formatOnMount] - (optional) When `true`, the initial value of the input is formatted to match the `mask` on mount. @default false
|
|
15
|
-
* @param {boolean} [props.formatOnMaskChange] - (optional) When `true`, the current value of the input is reformatted to match the `mask` whenever the `mask` prop changes. @default false
|
|
16
|
-
*
|
|
17
|
-
* You may also pass any additional props supported by the `TextInput` component including `size`, `variant`, `iconLeft`, `iconRight`, and `dropdown`
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* <MaskedInput aria-label="Activation code" mask="____-____-____" />
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* <MaskedInput
|
|
24
|
-
* aria-label="Phone number"
|
|
25
|
-
* placeholder="ex: +1 (222) 333-4444"
|
|
26
|
-
* mask={{ format: "+1 (___) ___-____", replace: /\d/ }}
|
|
27
|
-
* />
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* <MaskedInput
|
|
31
|
-
* aria-label="Postal code"
|
|
32
|
-
* placeholder="ex: A0A 1B1"
|
|
33
|
-
* mask={{ format: "ABA BAB", replace: { A: /[a-zA-Z]/, B: /\d/ } }}
|
|
34
|
-
* />
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* <MaskedInput
|
|
38
|
-
* aria-label="Activation code"
|
|
39
|
-
* mask="____-____-____"
|
|
40
|
-
* defaultValue="123456789012"
|
|
41
|
-
* formatOnMount
|
|
42
|
-
* />
|
|
43
|
-
*/
|
|
44
|
-
export function MaskedInput({ mask, ref, formatOnMount = false, formatOnMaskChange = false, ...props }) {
|
|
45
|
-
const mounted = useRef(false);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
mounted.current = true;
|
|
48
|
-
}, []);
|
|
49
|
-
const maskitoConfig = useMemo(() => {
|
|
50
|
-
const options = getMaskitoOptions(mask);
|
|
51
|
-
const shouldFormat = mounted.current ? formatOnMaskChange : formatOnMount;
|
|
52
|
-
if (!shouldFormat)
|
|
53
|
-
return { options };
|
|
54
|
-
return {
|
|
55
|
-
options: {
|
|
56
|
-
...options,
|
|
57
|
-
plugins: [
|
|
58
|
-
...(options.plugins ?? []),
|
|
59
|
-
maskitoInitialCalibrationPlugin(),
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
}, [mask, formatOnMount, formatOnMaskChange]);
|
|
64
|
-
const maskitoRef = useMaskito(maskitoConfig);
|
|
65
|
-
const mergedInputRef = useMergedRefs(ref, maskitoRef);
|
|
66
|
-
return _jsx(TextInput, { ref: mergedInputRef, ...props });
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=masked-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"masked-input.js","sourceRoot":"","sources":["../../../src/components/masked-input/masked-input.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACL,+BAA+B,GAEhC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EACL,SAAS,GAEV,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAkCxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,IAAI,EACJ,GAAG,EACH,aAAa,GAAG,KAAK,EACrB,kBAAkB,GAAG,KAAK,EAC1B,GAAG,KAAK,EACS;IACjB,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE9B,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IACzB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE;QACjC,MAAM,OAAO,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAExC,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,aAAa,CAAC;QAC1E,IAAI,CAAC,YAAY;YAAE,OAAO,EAAE,OAAO,EAAE,CAAC;QAEtC,OAAO;YACL,OAAO,EAAE;gBACP,GAAG,OAAO;gBACV,OAAO,EAAE;oBACP,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;oBAC1B,+BAA+B,EAAE;iBAClC;aACF;SACF,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAE9C,MAAM,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc,GAAG,aAAa,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IAEtD,OAAO,KAAC,SAAS,IAAC,GAAG,EAAE,cAAc,KAAM,KAAK,GAAI,CAAC;AACvD,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adapted from `@base-ui`'s internal `useMergedRefsN` utility to expose a variadic API
|
|
3
|
-
*
|
|
4
|
-
* @see https://github.com/mui/base-ui/blob/ccfe02679ec9ed08a518bc5444cb6d1ffb63f5e1/packages/utils/src/useMergedRefs.ts
|
|
5
|
-
*/
|
|
6
|
-
type Empty = null | undefined;
|
|
7
|
-
export type InputRef<I> = React.Ref<I> | Empty;
|
|
8
|
-
type Result<I> = React.RefCallback<I> | null;
|
|
9
|
-
export declare function useMergedRefs<I>(...refs: InputRef<I>[]): Result<I>;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=useMergedRefs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMergedRefs.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks/useMergedRefs.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,KAAK,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;AAC9B,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;AAC/C,KAAK,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAqB7C,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAMlE"}
|