@metamask/snaps-sdk 10.3.0 → 11.0.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/CHANGELOG.md +28 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/errors.cjs +27 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.cts +14 -0
- package/dist/errors.d.cts.map +1 -1
- package/dist/errors.d.mts +14 -0
- package/dist/errors.d.mts.map +1 -1
- package/dist/errors.mjs +25 -1
- package/dist/errors.mjs.map +1 -1
- package/dist/images.cjs +1 -41
- package/dist/images.cjs.map +1 -1
- package/dist/images.d.cts +0 -49
- package/dist/images.d.cts.map +1 -1
- package/dist/images.d.mts +0 -49
- package/dist/images.d.mts.map +1 -1
- package/dist/images.mjs +0 -39
- package/dist/images.mjs.map +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/jsx/components/Address.cjs +1 -0
- package/dist/jsx/components/Address.cjs.map +1 -1
- package/dist/jsx/components/Address.d.cts +4 -1
- package/dist/jsx/components/Address.d.cts.map +1 -1
- package/dist/jsx/components/Address.d.mts +4 -1
- package/dist/jsx/components/Address.d.mts.map +1 -1
- package/dist/jsx/components/Address.mjs +1 -0
- package/dist/jsx/components/Address.mjs.map +1 -1
- package/dist/jsx/components/Avatar.cjs +1 -0
- package/dist/jsx/components/Avatar.cjs.map +1 -1
- package/dist/jsx/components/Avatar.d.cts +4 -1
- package/dist/jsx/components/Avatar.d.cts.map +1 -1
- package/dist/jsx/components/Avatar.d.mts +4 -1
- package/dist/jsx/components/Avatar.d.mts.map +1 -1
- package/dist/jsx/components/Avatar.mjs +1 -0
- package/dist/jsx/components/Avatar.mjs.map +1 -1
- package/dist/jsx/components/Banner.cjs +1 -0
- package/dist/jsx/components/Banner.cjs.map +1 -1
- package/dist/jsx/components/Banner.d.cts +4 -1
- package/dist/jsx/components/Banner.d.cts.map +1 -1
- package/dist/jsx/components/Banner.d.mts +4 -1
- package/dist/jsx/components/Banner.d.mts.map +1 -1
- package/dist/jsx/components/Banner.mjs +1 -0
- package/dist/jsx/components/Banner.mjs.map +1 -1
- package/dist/jsx/components/Box.cjs +1 -0
- package/dist/jsx/components/Box.cjs.map +1 -1
- package/dist/jsx/components/Box.d.cts +4 -1
- package/dist/jsx/components/Box.d.cts.map +1 -1
- package/dist/jsx/components/Box.d.mts +4 -1
- package/dist/jsx/components/Box.d.mts.map +1 -1
- package/dist/jsx/components/Box.mjs +1 -0
- package/dist/jsx/components/Box.mjs.map +1 -1
- package/dist/jsx/components/Card.cjs +1 -0
- package/dist/jsx/components/Card.cjs.map +1 -1
- package/dist/jsx/components/Card.d.cts +4 -1
- package/dist/jsx/components/Card.d.cts.map +1 -1
- package/dist/jsx/components/Card.d.mts +4 -1
- package/dist/jsx/components/Card.d.mts.map +1 -1
- package/dist/jsx/components/Card.mjs +1 -0
- package/dist/jsx/components/Card.mjs.map +1 -1
- package/dist/jsx/components/Container.cjs +1 -0
- package/dist/jsx/components/Container.cjs.map +1 -1
- package/dist/jsx/components/Container.d.cts +4 -1
- package/dist/jsx/components/Container.d.cts.map +1 -1
- package/dist/jsx/components/Container.d.mts +4 -1
- package/dist/jsx/components/Container.d.mts.map +1 -1
- package/dist/jsx/components/Container.mjs +1 -0
- package/dist/jsx/components/Container.mjs.map +1 -1
- package/dist/jsx/components/Copyable.cjs +1 -0
- package/dist/jsx/components/Copyable.cjs.map +1 -1
- package/dist/jsx/components/Copyable.d.cts +4 -1
- package/dist/jsx/components/Copyable.d.cts.map +1 -1
- package/dist/jsx/components/Copyable.d.mts +4 -1
- package/dist/jsx/components/Copyable.d.mts.map +1 -1
- package/dist/jsx/components/Copyable.mjs +1 -0
- package/dist/jsx/components/Copyable.mjs.map +1 -1
- package/dist/jsx/components/Divider.cjs +1 -0
- package/dist/jsx/components/Divider.cjs.map +1 -1
- package/dist/jsx/components/Divider.d.cts +3 -1
- package/dist/jsx/components/Divider.d.cts.map +1 -1
- package/dist/jsx/components/Divider.d.mts +3 -1
- package/dist/jsx/components/Divider.d.mts.map +1 -1
- package/dist/jsx/components/Divider.mjs +1 -0
- package/dist/jsx/components/Divider.mjs.map +1 -1
- package/dist/jsx/components/Footer.cjs +1 -0
- package/dist/jsx/components/Footer.cjs.map +1 -1
- package/dist/jsx/components/Footer.d.cts +4 -1
- package/dist/jsx/components/Footer.d.cts.map +1 -1
- package/dist/jsx/components/Footer.d.mts +4 -1
- package/dist/jsx/components/Footer.d.mts.map +1 -1
- package/dist/jsx/components/Footer.mjs +1 -0
- package/dist/jsx/components/Footer.mjs.map +1 -1
- package/dist/jsx/components/Heading.cjs +1 -0
- package/dist/jsx/components/Heading.cjs.map +1 -1
- package/dist/jsx/components/Heading.d.cts +4 -1
- package/dist/jsx/components/Heading.d.cts.map +1 -1
- package/dist/jsx/components/Heading.d.mts +4 -1
- package/dist/jsx/components/Heading.d.mts.map +1 -1
- package/dist/jsx/components/Heading.mjs +1 -0
- package/dist/jsx/components/Heading.mjs.map +1 -1
- package/dist/jsx/components/Icon.cjs +1 -0
- package/dist/jsx/components/Icon.cjs.map +1 -1
- package/dist/jsx/components/Icon.d.cts +9 -2
- package/dist/jsx/components/Icon.d.cts.map +1 -1
- package/dist/jsx/components/Icon.d.mts +9 -2
- package/dist/jsx/components/Icon.d.mts.map +1 -1
- package/dist/jsx/components/Icon.mjs +1 -0
- package/dist/jsx/components/Icon.mjs.map +1 -1
- package/dist/jsx/components/Image.cjs +1 -0
- package/dist/jsx/components/Image.cjs.map +1 -1
- package/dist/jsx/components/Image.d.cts +4 -1
- package/dist/jsx/components/Image.d.cts.map +1 -1
- package/dist/jsx/components/Image.d.mts +4 -1
- package/dist/jsx/components/Image.d.mts.map +1 -1
- package/dist/jsx/components/Image.mjs +1 -0
- package/dist/jsx/components/Image.mjs.map +1 -1
- package/dist/jsx/components/Link.cjs +1 -0
- package/dist/jsx/components/Link.cjs.map +1 -1
- package/dist/jsx/components/Link.d.cts +4 -1
- package/dist/jsx/components/Link.d.cts.map +1 -1
- package/dist/jsx/components/Link.d.mts +4 -1
- package/dist/jsx/components/Link.d.mts.map +1 -1
- package/dist/jsx/components/Link.mjs +1 -0
- package/dist/jsx/components/Link.mjs.map +1 -1
- package/dist/jsx/components/Row.cjs +1 -0
- package/dist/jsx/components/Row.cjs.map +1 -1
- package/dist/jsx/components/Row.d.cts +4 -1
- package/dist/jsx/components/Row.d.cts.map +1 -1
- package/dist/jsx/components/Row.d.mts +4 -1
- package/dist/jsx/components/Row.d.mts.map +1 -1
- package/dist/jsx/components/Row.mjs +1 -0
- package/dist/jsx/components/Row.mjs.map +1 -1
- package/dist/jsx/components/Section.cjs +1 -0
- package/dist/jsx/components/Section.cjs.map +1 -1
- package/dist/jsx/components/Section.d.cts +4 -1
- package/dist/jsx/components/Section.d.cts.map +1 -1
- package/dist/jsx/components/Section.d.mts +4 -1
- package/dist/jsx/components/Section.d.mts.map +1 -1
- package/dist/jsx/components/Section.mjs +1 -0
- package/dist/jsx/components/Section.mjs.map +1 -1
- package/dist/jsx/components/Skeleton.cjs +1 -0
- package/dist/jsx/components/Skeleton.cjs.map +1 -1
- package/dist/jsx/components/Skeleton.d.cts +4 -1
- package/dist/jsx/components/Skeleton.d.cts.map +1 -1
- package/dist/jsx/components/Skeleton.d.mts +4 -1
- package/dist/jsx/components/Skeleton.d.mts.map +1 -1
- package/dist/jsx/components/Skeleton.mjs +1 -0
- package/dist/jsx/components/Skeleton.mjs.map +1 -1
- package/dist/jsx/components/Spinner.cjs +1 -0
- package/dist/jsx/components/Spinner.cjs.map +1 -1
- package/dist/jsx/components/Spinner.d.cts +3 -1
- package/dist/jsx/components/Spinner.d.cts.map +1 -1
- package/dist/jsx/components/Spinner.d.mts +3 -1
- package/dist/jsx/components/Spinner.d.mts.map +1 -1
- package/dist/jsx/components/Spinner.mjs +1 -0
- package/dist/jsx/components/Spinner.mjs.map +1 -1
- package/dist/jsx/components/Text.cjs +1 -0
- package/dist/jsx/components/Text.cjs.map +1 -1
- package/dist/jsx/components/Text.d.cts +4 -1
- package/dist/jsx/components/Text.d.cts.map +1 -1
- package/dist/jsx/components/Text.d.mts +4 -1
- package/dist/jsx/components/Text.d.mts.map +1 -1
- package/dist/jsx/components/Text.mjs +1 -0
- package/dist/jsx/components/Text.mjs.map +1 -1
- package/dist/jsx/components/Tooltip.cjs +1 -0
- package/dist/jsx/components/Tooltip.cjs.map +1 -1
- package/dist/jsx/components/Tooltip.d.cts +4 -1
- package/dist/jsx/components/Tooltip.d.cts.map +1 -1
- package/dist/jsx/components/Tooltip.d.mts +4 -1
- package/dist/jsx/components/Tooltip.d.mts.map +1 -1
- package/dist/jsx/components/Tooltip.mjs +1 -0
- package/dist/jsx/components/Tooltip.mjs.map +1 -1
- package/dist/jsx/components/Value.cjs +1 -0
- package/dist/jsx/components/Value.cjs.map +1 -1
- package/dist/jsx/components/Value.d.cts +4 -1
- package/dist/jsx/components/Value.d.cts.map +1 -1
- package/dist/jsx/components/Value.d.mts +4 -1
- package/dist/jsx/components/Value.d.mts.map +1 -1
- package/dist/jsx/components/Value.mjs +1 -0
- package/dist/jsx/components/Value.mjs.map +1 -1
- package/dist/jsx/components/form/AccountSelector.cjs +1 -0
- package/dist/jsx/components/form/AccountSelector.cjs.map +1 -1
- package/dist/jsx/components/form/AccountSelector.d.cts +4 -1
- package/dist/jsx/components/form/AccountSelector.d.cts.map +1 -1
- package/dist/jsx/components/form/AccountSelector.d.mts +4 -1
- package/dist/jsx/components/form/AccountSelector.d.mts.map +1 -1
- package/dist/jsx/components/form/AccountSelector.mjs +1 -0
- package/dist/jsx/components/form/AccountSelector.mjs.map +1 -1
- package/dist/jsx/components/form/AddressInput.cjs +1 -0
- package/dist/jsx/components/form/AddressInput.cjs.map +1 -1
- package/dist/jsx/components/form/AddressInput.d.cts +18 -0
- package/dist/jsx/components/form/AddressInput.d.cts.map +1 -1
- package/dist/jsx/components/form/AddressInput.d.mts +18 -0
- package/dist/jsx/components/form/AddressInput.d.mts.map +1 -1
- package/dist/jsx/components/form/AddressInput.mjs +1 -0
- package/dist/jsx/components/form/AddressInput.mjs.map +1 -1
- package/dist/jsx/components/form/AssetSelector.cjs +1 -0
- package/dist/jsx/components/form/AssetSelector.cjs.map +1 -1
- package/dist/jsx/components/form/AssetSelector.d.cts +8 -0
- package/dist/jsx/components/form/AssetSelector.d.cts.map +1 -1
- package/dist/jsx/components/form/AssetSelector.d.mts +8 -0
- package/dist/jsx/components/form/AssetSelector.d.mts.map +1 -1
- package/dist/jsx/components/form/AssetSelector.mjs +1 -0
- package/dist/jsx/components/form/AssetSelector.mjs.map +1 -1
- package/dist/jsx/components/form/Button.cjs +1 -0
- package/dist/jsx/components/form/Button.cjs.map +1 -1
- package/dist/jsx/components/form/Button.d.cts +4 -1
- package/dist/jsx/components/form/Button.d.cts.map +1 -1
- package/dist/jsx/components/form/Button.d.mts +4 -1
- package/dist/jsx/components/form/Button.d.mts.map +1 -1
- package/dist/jsx/components/form/Button.mjs +1 -0
- package/dist/jsx/components/form/Button.mjs.map +1 -1
- package/dist/jsx/components/form/Checkbox.cjs +1 -0
- package/dist/jsx/components/form/Checkbox.cjs.map +1 -1
- package/dist/jsx/components/form/Checkbox.d.cts +4 -1
- package/dist/jsx/components/form/Checkbox.d.cts.map +1 -1
- package/dist/jsx/components/form/Checkbox.d.mts +4 -1
- package/dist/jsx/components/form/Checkbox.d.mts.map +1 -1
- package/dist/jsx/components/form/Checkbox.mjs +1 -0
- package/dist/jsx/components/form/Checkbox.mjs.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.cjs +1 -0
- package/dist/jsx/components/form/DateTimePicker.cjs.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.d.cts +4 -1
- package/dist/jsx/components/form/DateTimePicker.d.cts.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.d.mts +4 -1
- package/dist/jsx/components/form/DateTimePicker.d.mts.map +1 -1
- package/dist/jsx/components/form/DateTimePicker.mjs +1 -0
- package/dist/jsx/components/form/DateTimePicker.mjs.map +1 -1
- package/dist/jsx/components/form/Dropdown.cjs +1 -0
- package/dist/jsx/components/form/Dropdown.cjs.map +1 -1
- package/dist/jsx/components/form/Dropdown.d.cts +4 -1
- package/dist/jsx/components/form/Dropdown.d.cts.map +1 -1
- package/dist/jsx/components/form/Dropdown.d.mts +4 -1
- package/dist/jsx/components/form/Dropdown.d.mts.map +1 -1
- package/dist/jsx/components/form/Dropdown.mjs +1 -0
- package/dist/jsx/components/form/Dropdown.mjs.map +1 -1
- package/dist/jsx/components/form/Field.cjs +1 -0
- package/dist/jsx/components/form/Field.cjs.map +1 -1
- package/dist/jsx/components/form/Field.d.cts +4 -1
- package/dist/jsx/components/form/Field.d.cts.map +1 -1
- package/dist/jsx/components/form/Field.d.mts +4 -1
- package/dist/jsx/components/form/Field.d.mts.map +1 -1
- package/dist/jsx/components/form/Field.mjs +1 -0
- package/dist/jsx/components/form/Field.mjs.map +1 -1
- package/dist/jsx/components/form/FileInput.cjs +1 -0
- package/dist/jsx/components/form/FileInput.cjs.map +1 -1
- package/dist/jsx/components/form/FileInput.d.cts +4 -1
- package/dist/jsx/components/form/FileInput.d.cts.map +1 -1
- package/dist/jsx/components/form/FileInput.d.mts +4 -1
- package/dist/jsx/components/form/FileInput.d.mts.map +1 -1
- package/dist/jsx/components/form/FileInput.mjs +1 -0
- package/dist/jsx/components/form/FileInput.mjs.map +1 -1
- package/dist/jsx/components/form/Form.cjs +1 -0
- package/dist/jsx/components/form/Form.cjs.map +1 -1
- package/dist/jsx/components/form/Form.d.cts +4 -1
- package/dist/jsx/components/form/Form.d.cts.map +1 -1
- package/dist/jsx/components/form/Form.d.mts +4 -1
- package/dist/jsx/components/form/Form.d.mts.map +1 -1
- package/dist/jsx/components/form/Form.mjs +1 -0
- package/dist/jsx/components/form/Form.mjs.map +1 -1
- package/dist/jsx/components/form/Input.cjs +1 -0
- package/dist/jsx/components/form/Input.cjs.map +1 -1
- package/dist/jsx/components/form/Input.d.cts +16 -1
- package/dist/jsx/components/form/Input.d.cts.map +1 -1
- package/dist/jsx/components/form/Input.d.mts +16 -1
- package/dist/jsx/components/form/Input.d.mts.map +1 -1
- package/dist/jsx/components/form/Input.mjs +1 -0
- package/dist/jsx/components/form/Input.mjs.map +1 -1
- package/dist/jsx/components/form/Option.cjs +1 -0
- package/dist/jsx/components/form/Option.cjs.map +1 -1
- package/dist/jsx/components/form/Option.d.cts +4 -1
- package/dist/jsx/components/form/Option.d.cts.map +1 -1
- package/dist/jsx/components/form/Option.d.mts +4 -1
- package/dist/jsx/components/form/Option.d.mts.map +1 -1
- package/dist/jsx/components/form/Option.mjs +1 -0
- package/dist/jsx/components/form/Option.mjs.map +1 -1
- package/dist/jsx/components/form/Radio.cjs +1 -0
- package/dist/jsx/components/form/Radio.cjs.map +1 -1
- package/dist/jsx/components/form/Radio.d.cts +4 -1
- package/dist/jsx/components/form/Radio.d.cts.map +1 -1
- package/dist/jsx/components/form/Radio.d.mts +4 -1
- package/dist/jsx/components/form/Radio.d.mts.map +1 -1
- package/dist/jsx/components/form/Radio.mjs +1 -0
- package/dist/jsx/components/form/Radio.mjs.map +1 -1
- package/dist/jsx/components/form/RadioGroup.cjs +1 -0
- package/dist/jsx/components/form/RadioGroup.cjs.map +1 -1
- package/dist/jsx/components/form/RadioGroup.d.cts +4 -1
- package/dist/jsx/components/form/RadioGroup.d.cts.map +1 -1
- package/dist/jsx/components/form/RadioGroup.d.mts +4 -1
- package/dist/jsx/components/form/RadioGroup.d.mts.map +1 -1
- package/dist/jsx/components/form/RadioGroup.mjs +1 -0
- package/dist/jsx/components/form/RadioGroup.mjs.map +1 -1
- package/dist/jsx/components/form/Selector.cjs +1 -0
- package/dist/jsx/components/form/Selector.cjs.map +1 -1
- package/dist/jsx/components/form/Selector.d.cts +4 -1
- package/dist/jsx/components/form/Selector.d.cts.map +1 -1
- package/dist/jsx/components/form/Selector.d.mts +4 -1
- package/dist/jsx/components/form/Selector.d.mts.map +1 -1
- package/dist/jsx/components/form/Selector.mjs +1 -0
- package/dist/jsx/components/form/Selector.mjs.map +1 -1
- package/dist/jsx/components/form/SelectorOption.cjs +1 -0
- package/dist/jsx/components/form/SelectorOption.cjs.map +1 -1
- package/dist/jsx/components/form/SelectorOption.d.cts +4 -1
- package/dist/jsx/components/form/SelectorOption.d.cts.map +1 -1
- package/dist/jsx/components/form/SelectorOption.d.mts +4 -1
- package/dist/jsx/components/form/SelectorOption.d.mts.map +1 -1
- package/dist/jsx/components/form/SelectorOption.mjs +1 -0
- package/dist/jsx/components/form/SelectorOption.mjs.map +1 -1
- package/dist/jsx/components/formatting/Bold.cjs +1 -0
- package/dist/jsx/components/formatting/Bold.cjs.map +1 -1
- package/dist/jsx/components/formatting/Bold.d.cts +4 -1
- package/dist/jsx/components/formatting/Bold.d.cts.map +1 -1
- package/dist/jsx/components/formatting/Bold.d.mts +4 -1
- package/dist/jsx/components/formatting/Bold.d.mts.map +1 -1
- package/dist/jsx/components/formatting/Bold.mjs +1 -0
- package/dist/jsx/components/formatting/Bold.mjs.map +1 -1
- package/dist/jsx/components/formatting/Italic.cjs +1 -0
- package/dist/jsx/components/formatting/Italic.cjs.map +1 -1
- package/dist/jsx/components/formatting/Italic.d.cts +4 -1
- package/dist/jsx/components/formatting/Italic.d.cts.map +1 -1
- package/dist/jsx/components/formatting/Italic.d.mts +4 -1
- package/dist/jsx/components/formatting/Italic.d.mts.map +1 -1
- package/dist/jsx/components/formatting/Italic.mjs +1 -0
- package/dist/jsx/components/formatting/Italic.mjs.map +1 -1
- package/dist/jsx/index.cjs +22 -0
- package/dist/jsx/index.cjs.map +1 -1
- package/dist/jsx/index.d.cts +22 -0
- package/dist/jsx/index.d.cts.map +1 -1
- package/dist/jsx/index.d.mts +22 -0
- package/dist/jsx/index.d.mts.map +1 -1
- package/dist/jsx/index.mjs +22 -0
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/validation.cjs +8 -1
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +8 -1
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/handlers/assets-market-data.cjs.map +1 -1
- package/dist/types/handlers/assets-market-data.d.cts +1 -1
- package/dist/types/handlers/assets-market-data.d.mts +1 -1
- package/dist/types/handlers/assets-market-data.mjs.map +1 -1
- package/dist/types/methods/cancel-background-event.cjs.map +1 -1
- package/dist/types/methods/cancel-background-event.d.cts +6 -6
- package/dist/types/methods/cancel-background-event.d.cts.map +1 -1
- package/dist/types/methods/cancel-background-event.d.mts +6 -6
- package/dist/types/methods/cancel-background-event.d.mts.map +1 -1
- package/dist/types/methods/cancel-background-event.mjs.map +1 -1
- package/dist/types/methods/clear-state.cjs.map +1 -1
- package/dist/types/methods/clear-state.d.cts +8 -4
- package/dist/types/methods/clear-state.d.cts.map +1 -1
- package/dist/types/methods/clear-state.d.mts +8 -4
- package/dist/types/methods/clear-state.d.mts.map +1 -1
- package/dist/types/methods/clear-state.mjs.map +1 -1
- package/dist/types/methods/close-web-socket.cjs.map +1 -1
- package/dist/types/methods/close-web-socket.d.cts +3 -3
- package/dist/types/methods/close-web-socket.d.mts +3 -3
- package/dist/types/methods/close-web-socket.mjs.map +1 -1
- package/dist/types/methods/create-interface.cjs.map +1 -1
- package/dist/types/methods/create-interface.d.cts +14 -4
- package/dist/types/methods/create-interface.d.cts.map +1 -1
- package/dist/types/methods/create-interface.d.mts +14 -4
- package/dist/types/methods/create-interface.d.mts.map +1 -1
- package/dist/types/methods/create-interface.mjs.map +1 -1
- package/dist/types/methods/dialog.cjs.map +1 -1
- package/dist/types/methods/dialog.d.cts +49 -18
- package/dist/types/methods/dialog.d.cts.map +1 -1
- package/dist/types/methods/dialog.d.mts +49 -18
- package/dist/types/methods/dialog.d.mts.map +1 -1
- package/dist/types/methods/dialog.mjs.map +1 -1
- package/dist/types/methods/get-background-events.cjs.map +1 -1
- package/dist/types/methods/get-background-events.d.cts +17 -8
- package/dist/types/methods/get-background-events.d.cts.map +1 -1
- package/dist/types/methods/get-background-events.d.mts +17 -8
- package/dist/types/methods/get-background-events.d.mts.map +1 -1
- package/dist/types/methods/get-background-events.mjs.map +1 -1
- package/dist/types/methods/get-bip32-entropy.cjs.map +1 -1
- package/dist/types/methods/get-bip32-entropy.d.cts +2 -4
- package/dist/types/methods/get-bip32-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-bip32-entropy.d.mts +2 -4
- package/dist/types/methods/get-bip32-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-bip32-entropy.mjs.map +1 -1
- package/dist/types/methods/get-bip32-public-key.cjs.map +1 -1
- package/dist/types/methods/get-bip32-public-key.d.cts +3 -5
- package/dist/types/methods/get-bip32-public-key.d.cts.map +1 -1
- package/dist/types/methods/get-bip32-public-key.d.mts +3 -5
- package/dist/types/methods/get-bip32-public-key.d.mts.map +1 -1
- package/dist/types/methods/get-bip32-public-key.mjs.map +1 -1
- package/dist/types/methods/get-bip44-entropy.cjs.map +1 -1
- package/dist/types/methods/get-bip44-entropy.d.cts +3 -4
- package/dist/types/methods/get-bip44-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-bip44-entropy.d.mts +3 -4
- package/dist/types/methods/get-bip44-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-bip44-entropy.mjs.map +1 -1
- package/dist/types/methods/get-client-status.cjs.map +1 -1
- package/dist/types/methods/get-client-status.d.cts +5 -7
- package/dist/types/methods/get-client-status.d.cts.map +1 -1
- package/dist/types/methods/get-client-status.d.mts +5 -7
- package/dist/types/methods/get-client-status.d.mts.map +1 -1
- package/dist/types/methods/get-client-status.mjs.map +1 -1
- package/dist/types/methods/get-entropy.cjs.map +1 -1
- package/dist/types/methods/get-entropy.d.cts +6 -5
- package/dist/types/methods/get-entropy.d.cts.map +1 -1
- package/dist/types/methods/get-entropy.d.mts +6 -5
- package/dist/types/methods/get-entropy.d.mts.map +1 -1
- package/dist/types/methods/get-entropy.mjs.map +1 -1
- package/dist/types/methods/get-file.cjs.map +1 -1
- package/dist/types/methods/get-file.d.cts +9 -5
- package/dist/types/methods/get-file.d.cts.map +1 -1
- package/dist/types/methods/get-file.d.mts +9 -5
- package/dist/types/methods/get-file.d.mts.map +1 -1
- package/dist/types/methods/get-file.mjs.map +1 -1
- package/dist/types/methods/get-interface-context.cjs.map +1 -1
- package/dist/types/methods/get-interface-context.d.cts +5 -3
- package/dist/types/methods/get-interface-context.d.cts.map +1 -1
- package/dist/types/methods/get-interface-context.d.mts +5 -3
- package/dist/types/methods/get-interface-context.d.mts.map +1 -1
- package/dist/types/methods/get-interface-context.mjs.map +1 -1
- package/dist/types/methods/get-interface-state.cjs.map +1 -1
- package/dist/types/methods/get-interface-state.d.cts +10 -3
- package/dist/types/methods/get-interface-state.d.cts.map +1 -1
- package/dist/types/methods/get-interface-state.d.mts +10 -3
- package/dist/types/methods/get-interface-state.d.mts.map +1 -1
- package/dist/types/methods/get-interface-state.mjs.map +1 -1
- package/dist/types/methods/get-locale.cjs.map +1 -1
- package/dist/types/methods/get-locale.d.cts +1 -5
- package/dist/types/methods/get-locale.d.cts.map +1 -1
- package/dist/types/methods/get-locale.d.mts +1 -5
- package/dist/types/methods/get-locale.d.mts.map +1 -1
- package/dist/types/methods/get-locale.mjs.map +1 -1
- package/dist/types/methods/get-preferences.cjs.map +1 -1
- package/dist/types/methods/get-preferences.d.cts +39 -17
- package/dist/types/methods/get-preferences.d.cts.map +1 -1
- package/dist/types/methods/get-preferences.d.mts +39 -17
- package/dist/types/methods/get-preferences.d.mts.map +1 -1
- package/dist/types/methods/get-preferences.mjs.map +1 -1
- package/dist/types/methods/get-snaps.cjs.map +1 -1
- package/dist/types/methods/get-snaps.d.cts +1 -5
- package/dist/types/methods/get-snaps.d.cts.map +1 -1
- package/dist/types/methods/get-snaps.d.mts +1 -5
- package/dist/types/methods/get-snaps.d.mts.map +1 -1
- package/dist/types/methods/get-snaps.mjs.map +1 -1
- package/dist/types/methods/get-state.cjs.map +1 -1
- package/dist/types/methods/get-state.d.cts +8 -3
- package/dist/types/methods/get-state.d.cts.map +1 -1
- package/dist/types/methods/get-state.d.mts +8 -3
- package/dist/types/methods/get-state.d.mts.map +1 -1
- package/dist/types/methods/get-state.mjs.map +1 -1
- package/dist/types/methods/get-web-sockets.cjs.map +1 -1
- package/dist/types/methods/get-web-sockets.d.cts +10 -3
- package/dist/types/methods/get-web-sockets.d.cts.map +1 -1
- package/dist/types/methods/get-web-sockets.d.mts +10 -3
- package/dist/types/methods/get-web-sockets.d.mts.map +1 -1
- package/dist/types/methods/get-web-sockets.mjs.map +1 -1
- package/dist/types/methods/index.cjs.map +1 -1
- package/dist/types/methods/index.d.cts +1 -2
- package/dist/types/methods/index.d.cts.map +1 -1
- package/dist/types/methods/index.d.mts +1 -2
- package/dist/types/methods/index.d.mts.map +1 -1
- package/dist/types/methods/index.mjs.map +1 -1
- package/dist/types/methods/invoke-keyring.cjs.map +1 -1
- package/dist/types/methods/invoke-keyring.d.cts +5 -4
- package/dist/types/methods/invoke-keyring.d.cts.map +1 -1
- package/dist/types/methods/invoke-keyring.d.mts +5 -4
- package/dist/types/methods/invoke-keyring.d.mts.map +1 -1
- package/dist/types/methods/invoke-keyring.mjs.map +1 -1
- package/dist/types/methods/invoke-snap.cjs.map +1 -1
- package/dist/types/methods/invoke-snap.d.cts +10 -6
- package/dist/types/methods/invoke-snap.d.cts.map +1 -1
- package/dist/types/methods/invoke-snap.d.mts +10 -6
- package/dist/types/methods/invoke-snap.d.mts.map +1 -1
- package/dist/types/methods/invoke-snap.mjs.map +1 -1
- package/dist/types/methods/list-entropy-sources.cjs.map +1 -1
- package/dist/types/methods/list-entropy-sources.d.cts +2 -2
- package/dist/types/methods/list-entropy-sources.d.mts +2 -2
- package/dist/types/methods/list-entropy-sources.mjs.map +1 -1
- package/dist/types/methods/manage-accounts.cjs.map +1 -1
- package/dist/types/methods/manage-accounts.d.cts +10 -9
- package/dist/types/methods/manage-accounts.d.cts.map +1 -1
- package/dist/types/methods/manage-accounts.d.mts +10 -9
- package/dist/types/methods/manage-accounts.d.mts.map +1 -1
- package/dist/types/methods/manage-accounts.mjs.map +1 -1
- package/dist/types/methods/manage-state.cjs.map +1 -1
- package/dist/types/methods/manage-state.d.cts +35 -32
- package/dist/types/methods/manage-state.d.cts.map +1 -1
- package/dist/types/methods/manage-state.d.mts +35 -32
- package/dist/types/methods/manage-state.d.mts.map +1 -1
- package/dist/types/methods/manage-state.mjs.map +1 -1
- package/dist/types/methods/methods.cjs.map +1 -1
- package/dist/types/methods/methods.d.cts +5 -2
- package/dist/types/methods/methods.d.cts.map +1 -1
- package/dist/types/methods/methods.d.mts +5 -2
- package/dist/types/methods/methods.d.mts.map +1 -1
- package/dist/types/methods/methods.mjs.map +1 -1
- package/dist/types/methods/{provider-request.cjs → multichain/create-session.cjs} +1 -1
- package/dist/types/methods/multichain/create-session.cjs.map +1 -0
- package/dist/types/methods/multichain/create-session.d.cts +34 -0
- package/dist/types/methods/multichain/create-session.d.cts.map +1 -0
- package/dist/types/methods/multichain/create-session.d.mts +34 -0
- package/dist/types/methods/multichain/create-session.d.mts.map +1 -0
- package/dist/types/methods/multichain/create-session.mjs +2 -0
- package/dist/types/methods/multichain/create-session.mjs.map +1 -0
- package/dist/types/methods/{get-currency-rate.cjs → multichain/get-session.cjs} +1 -1
- package/dist/types/methods/multichain/get-session.cjs.map +1 -0
- package/dist/types/methods/multichain/get-session.d.cts +14 -0
- package/dist/types/methods/multichain/get-session.d.cts.map +1 -0
- package/dist/types/methods/multichain/get-session.d.mts +14 -0
- package/dist/types/methods/multichain/get-session.d.mts.map +1 -0
- package/dist/types/methods/multichain/get-session.mjs +2 -0
- package/dist/types/methods/multichain/get-session.mjs.map +1 -0
- package/dist/types/methods/multichain/index.cjs +3 -0
- package/dist/types/methods/multichain/index.cjs.map +1 -0
- package/dist/types/methods/multichain/index.d.cts +5 -0
- package/dist/types/methods/multichain/index.d.cts.map +1 -0
- package/dist/types/methods/multichain/index.d.mts +5 -0
- package/dist/types/methods/multichain/index.d.mts.map +1 -0
- package/dist/types/methods/multichain/index.mjs +2 -0
- package/dist/types/methods/multichain/index.mjs.map +1 -0
- package/dist/types/methods/multichain/invoke-method.cjs +3 -0
- package/dist/types/methods/multichain/invoke-method.cjs.map +1 -0
- package/dist/types/methods/multichain/invoke-method.d.cts +18 -0
- package/dist/types/methods/multichain/invoke-method.d.cts.map +1 -0
- package/dist/types/methods/multichain/invoke-method.d.mts +18 -0
- package/dist/types/methods/multichain/invoke-method.d.mts.map +1 -0
- package/dist/types/methods/multichain/invoke-method.mjs +2 -0
- package/dist/types/methods/multichain/invoke-method.mjs.map +1 -0
- package/dist/types/methods/multichain/revoke-session.cjs +3 -0
- package/dist/types/methods/multichain/revoke-session.cjs.map +1 -0
- package/dist/types/methods/multichain/revoke-session.d.cts +13 -0
- package/dist/types/methods/multichain/revoke-session.d.cts.map +1 -0
- package/dist/types/methods/multichain/revoke-session.d.mts +13 -0
- package/dist/types/methods/multichain/revoke-session.d.mts.map +1 -0
- package/dist/types/methods/multichain/revoke-session.mjs +2 -0
- package/dist/types/methods/multichain/revoke-session.mjs.map +1 -0
- package/dist/types/methods/notify.cjs.map +1 -1
- package/dist/types/methods/notify.d.cts +39 -7
- package/dist/types/methods/notify.d.cts.map +1 -1
- package/dist/types/methods/notify.d.mts +39 -7
- package/dist/types/methods/notify.d.mts.map +1 -1
- package/dist/types/methods/notify.mjs.map +1 -1
- package/dist/types/methods/open-web-socket.cjs.map +1 -1
- package/dist/types/methods/open-web-socket.d.cts +6 -3
- package/dist/types/methods/open-web-socket.d.cts.map +1 -1
- package/dist/types/methods/open-web-socket.d.mts +6 -3
- package/dist/types/methods/open-web-socket.d.mts.map +1 -1
- package/dist/types/methods/open-web-socket.mjs.map +1 -1
- package/dist/types/methods/request-snaps.cjs.map +1 -1
- package/dist/types/methods/request-snaps.d.cts +5 -6
- package/dist/types/methods/request-snaps.d.cts.map +1 -1
- package/dist/types/methods/request-snaps.d.mts +5 -6
- package/dist/types/methods/request-snaps.d.mts.map +1 -1
- package/dist/types/methods/request-snaps.mjs.map +1 -1
- package/dist/types/methods/resolve-interface.cjs.map +1 -1
- package/dist/types/methods/resolve-interface.d.cts +1 -1
- package/dist/types/methods/resolve-interface.d.mts +1 -1
- package/dist/types/methods/resolve-interface.mjs.map +1 -1
- package/dist/types/methods/schedule-background-event.cjs.map +1 -1
- package/dist/types/methods/schedule-background-event.d.cts +18 -8
- package/dist/types/methods/schedule-background-event.d.cts.map +1 -1
- package/dist/types/methods/schedule-background-event.d.mts +18 -8
- package/dist/types/methods/schedule-background-event.d.mts.map +1 -1
- package/dist/types/methods/schedule-background-event.mjs.map +1 -1
- package/dist/types/methods/send-web-socket-message.cjs.map +1 -1
- package/dist/types/methods/send-web-socket-message.d.cts +9 -5
- package/dist/types/methods/send-web-socket-message.d.cts.map +1 -1
- package/dist/types/methods/send-web-socket-message.d.mts +9 -5
- package/dist/types/methods/send-web-socket-message.d.mts.map +1 -1
- package/dist/types/methods/send-web-socket-message.mjs.map +1 -1
- package/dist/types/methods/set-state.cjs.map +1 -1
- package/dist/types/methods/set-state.d.cts +6 -2
- package/dist/types/methods/set-state.d.cts.map +1 -1
- package/dist/types/methods/set-state.d.mts +6 -2
- package/dist/types/methods/set-state.d.mts.map +1 -1
- package/dist/types/methods/set-state.mjs.map +1 -1
- package/dist/types/methods/update-interface.cjs.map +1 -1
- package/dist/types/methods/update-interface.d.cts +13 -5
- package/dist/types/methods/update-interface.d.cts.map +1 -1
- package/dist/types/methods/update-interface.d.mts +13 -5
- package/dist/types/methods/update-interface.d.mts.map +1 -1
- package/dist/types/methods/update-interface.mjs.map +1 -1
- package/dist/types/permissions.cjs.map +1 -1
- package/dist/types/permissions.d.cts +32 -2
- package/dist/types/permissions.d.cts.map +1 -1
- package/dist/types/permissions.d.mts +32 -2
- package/dist/types/permissions.d.mts.map +1 -1
- package/dist/types/permissions.mjs.map +1 -1
- package/dist/ui/components/address.cjs +1 -18
- package/dist/ui/components/address.cjs.map +1 -1
- package/dist/ui/components/address.d.cts +0 -28
- package/dist/ui/components/address.d.cts.map +1 -1
- package/dist/ui/components/address.d.mts +0 -28
- package/dist/ui/components/address.d.mts.map +1 -1
- package/dist/ui/components/address.mjs +0 -17
- package/dist/ui/components/address.mjs.map +1 -1
- package/dist/ui/components/button.cjs +1 -26
- package/dist/ui/components/button.cjs.map +1 -1
- package/dist/ui/components/button.d.cts +0 -42
- package/dist/ui/components/button.d.cts.map +1 -1
- package/dist/ui/components/button.d.mts +0 -42
- package/dist/ui/components/button.d.mts.map +1 -1
- package/dist/ui/components/button.mjs +0 -25
- package/dist/ui/components/button.mjs.map +1 -1
- package/dist/ui/components/copyable.cjs +1 -22
- package/dist/ui/components/copyable.cjs.map +1 -1
- package/dist/ui/components/copyable.d.cts +0 -38
- package/dist/ui/components/copyable.d.cts.map +1 -1
- package/dist/ui/components/copyable.d.mts +0 -38
- package/dist/ui/components/copyable.d.mts.map +1 -1
- package/dist/ui/components/copyable.mjs +0 -21
- package/dist/ui/components/copyable.mjs.map +1 -1
- package/dist/ui/components/divider.cjs +1 -12
- package/dist/ui/components/divider.cjs.map +1 -1
- package/dist/ui/components/divider.d.cts +0 -17
- package/dist/ui/components/divider.d.cts.map +1 -1
- package/dist/ui/components/divider.d.mts +0 -17
- package/dist/ui/components/divider.d.mts.map +1 -1
- package/dist/ui/components/divider.mjs +0 -11
- package/dist/ui/components/divider.mjs.map +1 -1
- package/dist/ui/components/form.cjs +1 -28
- package/dist/ui/components/form.cjs.map +1 -1
- package/dist/ui/components/form.d.cts +0 -86
- package/dist/ui/components/form.d.cts.map +1 -1
- package/dist/ui/components/form.d.mts +0 -86
- package/dist/ui/components/form.d.mts.map +1 -1
- package/dist/ui/components/form.mjs +0 -27
- package/dist/ui/components/form.mjs.map +1 -1
- package/dist/ui/components/heading.cjs +1 -18
- package/dist/ui/components/heading.cjs.map +1 -1
- package/dist/ui/components/heading.d.cts +0 -30
- package/dist/ui/components/heading.d.cts.map +1 -1
- package/dist/ui/components/heading.d.mts +0 -30
- package/dist/ui/components/heading.d.mts.map +1 -1
- package/dist/ui/components/heading.mjs +0 -17
- package/dist/ui/components/heading.mjs.map +1 -1
- package/dist/ui/components/image.cjs +1 -17
- package/dist/ui/components/image.cjs.map +1 -1
- package/dist/ui/components/image.d.cts +0 -29
- package/dist/ui/components/image.d.cts.map +1 -1
- package/dist/ui/components/image.d.mts +0 -29
- package/dist/ui/components/image.d.mts.map +1 -1
- package/dist/ui/components/image.mjs +0 -16
- package/dist/ui/components/image.mjs.map +1 -1
- package/dist/ui/components/index.cjs +2 -5
- package/dist/ui/components/index.cjs.map +1 -1
- package/dist/ui/components/index.d.cts +2 -3
- package/dist/ui/components/index.d.cts.map +1 -1
- package/dist/ui/components/index.d.mts +2 -3
- package/dist/ui/components/index.d.mts.map +1 -1
- package/dist/ui/components/index.mjs +2 -2
- package/dist/ui/components/index.mjs.map +1 -1
- package/dist/ui/components/input.cjs +1 -29
- package/dist/ui/components/input.cjs.map +1 -1
- package/dist/ui/components/input.d.cts +0 -50
- package/dist/ui/components/input.d.cts.map +1 -1
- package/dist/ui/components/input.d.mts +0 -50
- package/dist/ui/components/input.d.mts.map +1 -1
- package/dist/ui/components/input.mjs +0 -28
- package/dist/ui/components/input.mjs.map +1 -1
- package/dist/ui/components/panel.cjs +5 -27
- package/dist/ui/components/panel.cjs.map +1 -1
- package/dist/ui/components/panel.d.cts +0 -108
- package/dist/ui/components/panel.d.cts.map +1 -1
- package/dist/ui/components/panel.d.mts +0 -108
- package/dist/ui/components/panel.d.mts.map +1 -1
- package/dist/ui/components/panel.mjs +4 -26
- package/dist/ui/components/panel.mjs.map +1 -1
- package/dist/ui/components/row.cjs +1 -24
- package/dist/ui/components/row.cjs.map +1 -1
- package/dist/ui/components/row.d.cts +0 -69
- package/dist/ui/components/row.d.cts.map +1 -1
- package/dist/ui/components/row.d.mts +0 -69
- package/dist/ui/components/row.d.mts.map +1 -1
- package/dist/ui/components/row.mjs +0 -23
- package/dist/ui/components/row.mjs.map +1 -1
- package/dist/ui/components/spinner.cjs +1 -12
- package/dist/ui/components/spinner.cjs.map +1 -1
- package/dist/ui/components/spinner.d.cts +0 -18
- package/dist/ui/components/spinner.d.cts.map +1 -1
- package/dist/ui/components/spinner.d.mts +0 -18
- package/dist/ui/components/spinner.d.mts.map +1 -1
- package/dist/ui/components/spinner.mjs +0 -11
- package/dist/ui/components/spinner.mjs.map +1 -1
- package/dist/ui/components/text.cjs +1 -24
- package/dist/ui/components/text.cjs.map +1 -1
- package/dist/ui/components/text.d.cts +0 -38
- package/dist/ui/components/text.d.cts.map +1 -1
- package/dist/ui/components/text.d.mts +0 -38
- package/dist/ui/components/text.d.mts.map +1 -1
- package/dist/ui/components/text.mjs +0 -23
- package/dist/ui/components/text.mjs.map +1 -1
- package/dist/ui/index.cjs +0 -1
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +0 -1
- package/dist/ui/index.d.cts.map +1 -1
- package/dist/ui/index.d.mts +0 -1
- package/dist/ui/index.d.mts.map +1 -1
- package/dist/ui/index.mjs +0 -1
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +7 -4
- package/dist/types/methods/get-currency-rate.cjs.map +0 -1
- package/dist/types/methods/get-currency-rate.d.cts +0 -29
- package/dist/types/methods/get-currency-rate.d.cts.map +0 -1
- package/dist/types/methods/get-currency-rate.d.mts +0 -29
- package/dist/types/methods/get-currency-rate.d.mts.map +0 -1
- package/dist/types/methods/get-currency-rate.mjs +0 -2
- package/dist/types/methods/get-currency-rate.mjs.map +0 -1
- package/dist/types/methods/provider-request.cjs.map +0 -1
- package/dist/types/methods/provider-request.d.cts +0 -25
- package/dist/types/methods/provider-request.d.cts.map +0 -1
- package/dist/types/methods/provider-request.d.mts +0 -25
- package/dist/types/methods/provider-request.d.mts.map +0 -1
- package/dist/types/methods/provider-request.mjs +0 -2
- package/dist/types/methods/provider-request.mjs.map +0 -1
- package/dist/ui/builder.cjs +0 -49
- package/dist/ui/builder.cjs.map +0 -1
- package/dist/ui/builder.d.cts +0 -43
- package/dist/ui/builder.d.cts.map +0 -1
- package/dist/ui/builder.d.mts +0 -43
- package/dist/ui/builder.d.mts.map +0 -1
- package/dist/ui/builder.mjs +0 -45
- package/dist/ui/builder.mjs.map +0 -1
- package/dist/ui/component.cjs +0 -29
- package/dist/ui/component.cjs.map +0 -1
- package/dist/ui/component.d.cts +0 -18
- package/dist/ui/component.d.cts.map +0 -1
- package/dist/ui/component.d.mts +0 -18
- package/dist/ui/component.d.mts.map +0 -1
- package/dist/ui/component.mjs +0 -24
- package/dist/ui/component.mjs.map +0 -1
|
@@ -3,6 +3,7 @@ import type { GenericSnapElement, SnapsChildren } from "../component.mjs";
|
|
|
3
3
|
* The props of the {@link Section} component.
|
|
4
4
|
*
|
|
5
5
|
* @property children - The children of the section.
|
|
6
|
+
* @category Component Props
|
|
6
7
|
*/
|
|
7
8
|
export type SectionProps = {
|
|
8
9
|
children: SnapsChildren<GenericSnapElement>;
|
|
@@ -27,12 +28,14 @@ export type SectionProps = {
|
|
|
27
28
|
* <Address address="0x0000000000000000000000000000000000000000" />
|
|
28
29
|
* </Row>
|
|
29
30
|
* </Section>
|
|
31
|
+
* @category Components
|
|
30
32
|
*/
|
|
31
33
|
export declare const Section: import("../component.mjs").SnapComponent<SectionProps, "Section">;
|
|
32
34
|
/**
|
|
33
35
|
* A section element.
|
|
34
36
|
*
|
|
35
|
-
* @see Section
|
|
37
|
+
* @see {@link Section}
|
|
38
|
+
* @category Elements
|
|
36
39
|
*/
|
|
37
40
|
export type SectionElement = ReturnType<typeof Section>;
|
|
38
41
|
//# sourceMappingURL=Section.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Section.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,yBAAqB;AAGtE
|
|
1
|
+
{"version":3,"file":"Section.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Section.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,yBAAqB;AAGtE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG;IAEzB,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,SAAS,CAAC;IAClD,SAAS,CAAC,EACN,OAAO,GACP,QAAQ,GACR,KAAK,GACL,eAAe,GACf,cAAc,GACd,SAAS,CAAC;CACf,CAAC;AAIF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,+DAAuD,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Section.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Section.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Section.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAqBnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAA4B,IAAI,CAAC,CAAC","sourcesContent":["import type { GenericSnapElement, SnapsChildren } from '../component';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Section} component.\n *\n * @property children - The children of the section.\n * @category Component Props\n */\nexport type SectionProps = {\n // We can't use `JSXElement` because it causes a circular reference.\n children: SnapsChildren<GenericSnapElement>;\n direction?: 'vertical' | 'horizontal' | undefined;\n alignment?:\n | 'start'\n | 'center'\n | 'end'\n | 'space-between'\n | 'space-around'\n | undefined;\n};\n\nconst TYPE = 'Section';\n\n/**\n * A section component, which is used to group multiple components together.\n * The component itself is 16px padded with a default background and a border radius of 8px.\n *\n * @param props - The props of the component.\n * @param props.children - The children of the section.\n * @param props.direction - The direction that the children are aligned.\n * @param props.alignment - The alignment of the children (a justify-content value).\n * @returns A section element.\n * @example\n * <Section>\n * <Row label=\"From\">\n * <Address address=\"0x1234567890123456789012345678901234567890\" />\n * </Row>\n * <Row label=\"To\" variant=\"warning\" tooltip=\"This address has been deemed dangerous.\">\n * <Address address=\"0x0000000000000000000000000000000000000000\" />\n * </Row>\n * </Section>\n * @category Components\n */\nexport const Section = createSnapComponent<SectionProps, typeof TYPE>(TYPE);\n\n/**\n * A section element.\n *\n * @see {@link Section}\n * @category Elements\n */\nexport type SectionElement = ReturnType<typeof Section>;\n"]}
|
|
@@ -12,6 +12,7 @@ const TYPE = 'Skeleton';
|
|
|
12
12
|
* @param props.borderRadius - Border radius of the Skeleton.
|
|
13
13
|
* @example
|
|
14
14
|
* <Skeleton height={32} width="50%" />
|
|
15
|
+
* @category Components
|
|
15
16
|
*/
|
|
16
17
|
exports.Skeleton = (0, component_1.createSnapComponent)(TYPE);
|
|
17
18
|
//# sourceMappingURL=Skeleton.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":";;;AACA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Skeleton.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":";;;AACA,gDAAmD;AAgBnD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;;;;;;;GAUG;AACU,QAAA,QAAQ,GAAG,IAAA,+BAAmB,EAA6B,IAAI,CAAC,CAAC","sourcesContent":["import type { BorderRadius } from './utils';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Skeleton} component.\n *\n * @param width - Width of the Skeleton.\n * @param width - Height of the Skeleton.\n * @param borderRadius - Border radius of the Skeleton.\n * @category Component Props\n */\nexport type SkeletonProps = {\n width?: number | string | undefined;\n height?: number | string | undefined;\n borderRadius?: BorderRadius | undefined;\n};\n\nconst TYPE = 'Skeleton';\n\n/**\n * A Skeleton component, which is used to display skeleton of loading content.\n *\n * @param props - The props of the component.\n * @param props.width - Width of the Skeleton.\n * @param props.width - Height of the Skeleton.\n * @param props.borderRadius - Border radius of the Skeleton.\n * @example\n * <Skeleton height={32} width=\"50%\" />\n * @category Components\n */\nexport const Skeleton = createSnapComponent<SkeletonProps, typeof TYPE>(TYPE);\n\n/**\n * A Skeleton element.\n *\n * @see {@link Skeleton}\n * @category Elements\n */\nexport type SkeletonElement = ReturnType<typeof Skeleton>;\n"]}
|
|
@@ -5,6 +5,7 @@ import type { BorderRadius } from "./utils.cjs";
|
|
|
5
5
|
* @param width - Width of the Skeleton.
|
|
6
6
|
* @param width - Height of the Skeleton.
|
|
7
7
|
* @param borderRadius - Border radius of the Skeleton.
|
|
8
|
+
* @category Component Props
|
|
8
9
|
*/
|
|
9
10
|
export type SkeletonProps = {
|
|
10
11
|
width?: number | string | undefined;
|
|
@@ -20,12 +21,14 @@ export type SkeletonProps = {
|
|
|
20
21
|
* @param props.borderRadius - Border radius of the Skeleton.
|
|
21
22
|
* @example
|
|
22
23
|
* <Skeleton height={32} width="50%" />
|
|
24
|
+
* @category Components
|
|
23
25
|
*/
|
|
24
26
|
export declare const Skeleton: import("../component.cjs").SnapComponent<SkeletonProps, "Skeleton">;
|
|
25
27
|
/**
|
|
26
28
|
* A Skeleton element.
|
|
27
29
|
*
|
|
28
|
-
* @see Skeleton
|
|
30
|
+
* @see {@link Skeleton}
|
|
31
|
+
* @category Elements
|
|
29
32
|
*/
|
|
30
33
|
export type SkeletonElement = ReturnType<typeof Skeleton>;
|
|
31
34
|
//# sourceMappingURL=Skeleton.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAG5C
|
|
1
|
+
{"version":3,"file":"Skeleton.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAG5C;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAIF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,iEAAwD,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@ import type { BorderRadius } from "./utils.mjs";
|
|
|
5
5
|
* @param width - Width of the Skeleton.
|
|
6
6
|
* @param width - Height of the Skeleton.
|
|
7
7
|
* @param borderRadius - Border radius of the Skeleton.
|
|
8
|
+
* @category Component Props
|
|
8
9
|
*/
|
|
9
10
|
export type SkeletonProps = {
|
|
10
11
|
width?: number | string | undefined;
|
|
@@ -20,12 +21,14 @@ export type SkeletonProps = {
|
|
|
20
21
|
* @param props.borderRadius - Border radius of the Skeleton.
|
|
21
22
|
* @example
|
|
22
23
|
* <Skeleton height={32} width="50%" />
|
|
24
|
+
* @category Components
|
|
23
25
|
*/
|
|
24
26
|
export declare const Skeleton: import("../component.mjs").SnapComponent<SkeletonProps, "Skeleton">;
|
|
25
27
|
/**
|
|
26
28
|
* A Skeleton element.
|
|
27
29
|
*
|
|
28
|
-
* @see Skeleton
|
|
30
|
+
* @see {@link Skeleton}
|
|
31
|
+
* @category Elements
|
|
29
32
|
*/
|
|
30
33
|
export type SkeletonElement = ReturnType<typeof Skeleton>;
|
|
31
34
|
//# sourceMappingURL=Skeleton.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAG5C
|
|
1
|
+
{"version":3,"file":"Skeleton.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAG5C;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACzC,CAAC;AAIF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,iEAAwD,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@ const TYPE = 'Skeleton';
|
|
|
9
9
|
* @param props.borderRadius - Border radius of the Skeleton.
|
|
10
10
|
* @example
|
|
11
11
|
* <Skeleton height={32} width="50%" />
|
|
12
|
+
* @category Components
|
|
12
13
|
*/
|
|
13
14
|
export const Skeleton = createSnapComponent(TYPE);
|
|
14
15
|
//# sourceMappingURL=Skeleton.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Skeleton.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Skeleton.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAgBnD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,mBAAmB,CAA6B,IAAI,CAAC,CAAC","sourcesContent":["import type { BorderRadius } from './utils';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Skeleton} component.\n *\n * @param width - Width of the Skeleton.\n * @param width - Height of the Skeleton.\n * @param borderRadius - Border radius of the Skeleton.\n * @category Component Props\n */\nexport type SkeletonProps = {\n width?: number | string | undefined;\n height?: number | string | undefined;\n borderRadius?: BorderRadius | undefined;\n};\n\nconst TYPE = 'Skeleton';\n\n/**\n * A Skeleton component, which is used to display skeleton of loading content.\n *\n * @param props - The props of the component.\n * @param props.width - Width of the Skeleton.\n * @param props.width - Height of the Skeleton.\n * @param props.borderRadius - Border radius of the Skeleton.\n * @example\n * <Skeleton height={32} width=\"50%\" />\n * @category Components\n */\nexport const Skeleton = createSnapComponent<SkeletonProps, typeof TYPE>(TYPE);\n\n/**\n * A Skeleton element.\n *\n * @see {@link Skeleton}\n * @category Elements\n */\nexport type SkeletonElement = ReturnType<typeof Skeleton>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB
|
|
1
|
+
{"version":3,"file":"Spinner.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;GAUG;AACU,QAAA,OAAO,GAAG,IAAA,+BAAmB,EAAC,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../component';\n\nconst TYPE = 'Spinner';\n\n/**\n * A spinner component, which is used to display a spinner, indicating that some\n * operation is in progress.\n *\n * This component does not accept any props.\n *\n * @returns A spinner element.\n * @example\n * <Spinner />\n * @category Components\n */\nexport const Spinner = createSnapComponent(TYPE);\n\n/**\n * A spinner element.\n *\n * @see {@link Spinner}\n * @category Elements\n */\nexport type SpinnerElement = ReturnType<typeof Spinner>;\n"]}
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* @returns A spinner element.
|
|
8
8
|
* @example
|
|
9
9
|
* <Spinner />
|
|
10
|
+
* @category Components
|
|
10
11
|
*/
|
|
11
12
|
export declare const Spinner: import("../component.cjs").SnapComponent<Record<string, never>, "Spinner">;
|
|
12
13
|
/**
|
|
13
14
|
* A spinner element.
|
|
14
15
|
*
|
|
15
|
-
* @see Spinner
|
|
16
|
+
* @see {@link Spinner}
|
|
17
|
+
* @category Elements
|
|
16
18
|
*/
|
|
17
19
|
export type SpinnerElement = ReturnType<typeof Spinner>;
|
|
18
20
|
//# sourceMappingURL=Spinner.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"Spinner.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,wEAA4B,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* @returns A spinner element.
|
|
8
8
|
* @example
|
|
9
9
|
* <Spinner />
|
|
10
|
+
* @category Components
|
|
10
11
|
*/
|
|
11
12
|
export declare const Spinner: import("../component.mjs").SnapComponent<Record<string, never>, "Spinner">;
|
|
12
13
|
/**
|
|
13
14
|
* A spinner element.
|
|
14
15
|
*
|
|
15
|
-
* @see Spinner
|
|
16
|
+
* @see {@link Spinner}
|
|
17
|
+
* @category Elements
|
|
16
18
|
*/
|
|
17
19
|
export type SpinnerElement = ReturnType<typeof Spinner>;
|
|
18
20
|
//# sourceMappingURL=Spinner.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"Spinner.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,OAAO,wEAA4B,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAEnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB
|
|
1
|
+
{"version":3,"file":"Spinner.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAEnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../component';\n\nconst TYPE = 'Spinner';\n\n/**\n * A spinner component, which is used to display a spinner, indicating that some\n * operation is in progress.\n *\n * This component does not accept any props.\n *\n * @returns A spinner element.\n * @example\n * <Spinner />\n * @category Components\n */\nexport const Spinner = createSnapComponent(TYPE);\n\n/**\n * A spinner element.\n *\n * @see {@link Spinner}\n * @category Elements\n */\nexport type SpinnerElement = ReturnType<typeof Spinner>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":";;;AAIA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Text.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":";;;AAIA,gDAAmD;AA2CnD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACU,QAAA,IAAI,GAAG,IAAA,+BAAmB,EAAyB,IAAI,CAAC,CAAC","sourcesContent":["import type { StandardFormattingElement } from './formatting';\nimport type { IconElement } from './Icon';\nimport type { LinkElement } from './Link';\nimport type { SkeletonElement } from './Skeleton';\nimport { createSnapComponent } from '../component';\nimport type { SnapsChildren } from '../component';\n\n/**\n * The children of the {@link Text} component.\n */\nexport type TextChildren = SnapsChildren<\n | string\n | StandardFormattingElement\n | LinkElement\n | IconElement\n | SkeletonElement\n>;\n\n/**\n * The colors available to the Text {@link Text} component.\n */\nexport type TextColors =\n | 'default'\n | 'alternative'\n | 'muted'\n | 'error'\n | 'success'\n | 'warning';\n\n/**\n * The props of the {@link Text} component.\n *\n * @property children - The text to display.\n * @property alignment - The alignment of the text.\n * @property color - The color of the text.\n * @property size - The size of the text. Defaults to `md`.\n * @property fontWeight - The font weight of the text. Defaults to `regular`.\n * @category Component Props\n */\nexport type TextProps = {\n children: TextChildren;\n alignment?: 'start' | 'center' | 'end' | undefined;\n color?: TextColors | undefined;\n size?: 'sm' | 'md' | undefined;\n fontWeight?: 'regular' | 'medium' | 'bold' | undefined;\n};\n\nconst TYPE = 'Text';\n\n/**\n * A text component, which is used to display text.\n *\n * @param props - The props of the component.\n * @param props.alignment - The alignment of the text.\n * @param props.color - The color of the text.\n * @param props.children - The text to display.\n * @param props.size - The size of the text. Defaults to `md`.\n * @param props.fontWeight - The font weight of the text. Defaults to `regular`.\n * @returns A text element.\n * @example\n * <Text>\n * Hello <Bold>world</Bold>!\n * </Text>\n * @example\n * <Text alignment=\"end\">\n * Hello <Bold>world</Bold>!\n * </Text>\n * @example\n * <Text size=\"sm\">\n * Hello <Bold>world</Bold>!\n * </Text>\n * @example\n * <Text fontWeight=\"medium\">\n * Hello <Bold>world</Bold>!\n * </Text>\n * @category Components\n */\nexport const Text = createSnapComponent<TextProps, typeof TYPE>(TYPE);\n\n/**\n * A text element.\n *\n * @see {@link Text}\n * @category Elements\n */\nexport type TextElement = ReturnType<typeof Text>;\n"]}
|
|
@@ -19,6 +19,7 @@ export type TextColors = 'default' | 'alternative' | 'muted' | 'error' | 'succes
|
|
|
19
19
|
* @property color - The color of the text.
|
|
20
20
|
* @property size - The size of the text. Defaults to `md`.
|
|
21
21
|
* @property fontWeight - The font weight of the text. Defaults to `regular`.
|
|
22
|
+
* @category Component Props
|
|
22
23
|
*/
|
|
23
24
|
export type TextProps = {
|
|
24
25
|
children: TextChildren;
|
|
@@ -53,12 +54,14 @@ export type TextProps = {
|
|
|
53
54
|
* <Text fontWeight="medium">
|
|
54
55
|
* Hello <Bold>world</Bold>!
|
|
55
56
|
* </Text>
|
|
57
|
+
* @category Components
|
|
56
58
|
*/
|
|
57
59
|
export declare const Text: import("../component.cjs").SnapComponent<TextProps, "Text">;
|
|
58
60
|
/**
|
|
59
61
|
* A text element.
|
|
60
62
|
*
|
|
61
|
-
* @see Text
|
|
63
|
+
* @see {@link Text}
|
|
64
|
+
* @category Elements
|
|
62
65
|
*/
|
|
63
66
|
export type TextElement = ReturnType<typeof Text>;
|
|
64
67
|
//# sourceMappingURL=Text.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CACpC,MAAM,GACN,yBAAyB,GACzB,WAAW,GACX,WAAW,GACX,eAAe,CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,aAAa,GACb,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd
|
|
1
|
+
{"version":3,"file":"Text.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CACpC,MAAM,GACN,yBAAyB,GACzB,WAAW,GACX,WAAW,GACX,eAAe,CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,aAAa,GACb,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IACnD,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CACxD,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,IAAI,yDAAoD,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -19,6 +19,7 @@ export type TextColors = 'default' | 'alternative' | 'muted' | 'error' | 'succes
|
|
|
19
19
|
* @property color - The color of the text.
|
|
20
20
|
* @property size - The size of the text. Defaults to `md`.
|
|
21
21
|
* @property fontWeight - The font weight of the text. Defaults to `regular`.
|
|
22
|
+
* @category Component Props
|
|
22
23
|
*/
|
|
23
24
|
export type TextProps = {
|
|
24
25
|
children: TextChildren;
|
|
@@ -53,12 +54,14 @@ export type TextProps = {
|
|
|
53
54
|
* <Text fontWeight="medium">
|
|
54
55
|
* Hello <Bold>world</Bold>!
|
|
55
56
|
* </Text>
|
|
57
|
+
* @category Components
|
|
56
58
|
*/
|
|
57
59
|
export declare const Text: import("../component.mjs").SnapComponent<TextProps, "Text">;
|
|
58
60
|
/**
|
|
59
61
|
* A text element.
|
|
60
62
|
*
|
|
61
|
-
* @see Text
|
|
63
|
+
* @see {@link Text}
|
|
64
|
+
* @category Elements
|
|
62
65
|
*/
|
|
63
66
|
export type TextElement = ReturnType<typeof Text>;
|
|
64
67
|
//# sourceMappingURL=Text.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CACpC,MAAM,GACN,yBAAyB,GACzB,WAAW,GACX,WAAW,GACX,eAAe,CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,aAAa,GACb,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd
|
|
1
|
+
{"version":3,"file":"Text.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,CACpC,MAAM,GACN,yBAAyB,GACzB,WAAW,GACX,WAAW,GACX,eAAe,CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,aAAa,GACb,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEd;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IACnD,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;CACxD,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,IAAI,yDAAoD,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Text.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Text.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AA2CnD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAyB,IAAI,CAAC,CAAC","sourcesContent":["import type { StandardFormattingElement } from './formatting';\nimport type { IconElement } from './Icon';\nimport type { LinkElement } from './Link';\nimport type { SkeletonElement } from './Skeleton';\nimport { createSnapComponent } from '../component';\nimport type { SnapsChildren } from '../component';\n\n/**\n * The children of the {@link Text} component.\n */\nexport type TextChildren = SnapsChildren<\n | string\n | StandardFormattingElement\n | LinkElement\n | IconElement\n | SkeletonElement\n>;\n\n/**\n * The colors available to the Text {@link Text} component.\n */\nexport type TextColors =\n | 'default'\n | 'alternative'\n | 'muted'\n | 'error'\n | 'success'\n | 'warning';\n\n/**\n * The props of the {@link Text} component.\n *\n * @property children - The text to display.\n * @property alignment - The alignment of the text.\n * @property color - The color of the text.\n * @property size - The size of the text. Defaults to `md`.\n * @property fontWeight - The font weight of the text. Defaults to `regular`.\n * @category Component Props\n */\nexport type TextProps = {\n children: TextChildren;\n alignment?: 'start' | 'center' | 'end' | undefined;\n color?: TextColors | undefined;\n size?: 'sm' | 'md' | undefined;\n fontWeight?: 'regular' | 'medium' | 'bold' | undefined;\n};\n\nconst TYPE = 'Text';\n\n/**\n * A text component, which is used to display text.\n *\n * @param props - The props of the component.\n * @param props.alignment - The alignment of the text.\n * @param props.color - The color of the text.\n * @param props.children - The text to display.\n * @param props.size - The size of the text. Defaults to `md`.\n * @param props.fontWeight - The font weight of the text. Defaults to `regular`.\n * @returns A text element.\n * @example\n * <Text>\n * Hello <Bold>world</Bold>!\n * </Text>\n * @example\n * <Text alignment=\"end\">\n * Hello <Bold>world</Bold>!\n * </Text>\n * @example\n * <Text size=\"sm\">\n * Hello <Bold>world</Bold>!\n * </Text>\n * @example\n * <Text fontWeight=\"medium\">\n * Hello <Bold>world</Bold>!\n * </Text>\n * @category Components\n */\nexport const Text = createSnapComponent<TextProps, typeof TYPE>(TYPE);\n\n/**\n * A text element.\n *\n * @see {@link Text}\n * @category Elements\n */\nexport type TextElement = ReturnType<typeof Text>;\n"]}
|
|
@@ -18,6 +18,7 @@ const TYPE = 'Tooltip';
|
|
|
18
18
|
* <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>
|
|
19
19
|
* <Text>Hello world!</Text>
|
|
20
20
|
* </Tooltip>
|
|
21
|
+
* @category Components
|
|
21
22
|
*/
|
|
22
23
|
exports.Tooltip = (0, component_1.createSnapComponent)(TYPE);
|
|
23
24
|
//# sourceMappingURL=Tooltip.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":";;;AAKA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Tooltip.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":";;;AAKA,gDAAmD;AA4BnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,OAAO,GAAG,IAAA,+BAAmB,EAA4B,IAAI,CAAC,CAAC","sourcesContent":["import type { StandardFormattingElement } from './formatting';\nimport type { IconElement } from './Icon';\nimport type { ImageElement } from './Image';\nimport type { LinkElement } from './Link';\nimport type { TextElement } from './Text';\nimport { createSnapComponent } from '../component';\n\nexport type TooltipChildren =\n | TextElement\n | StandardFormattingElement\n | LinkElement\n | ImageElement\n | IconElement\n | boolean\n | null;\n\n/**\n * The props of the {@link Tooltip} component.\n *\n * @property children - The children of the box.\n * @property content - The text to display in the tooltip.\n * @category Component Props\n */\nexport type TooltipProps = {\n children: TooltipChildren;\n content:\n | TextElement\n | StandardFormattingElement\n | LinkElement\n | IconElement\n | string;\n};\n\nconst TYPE = 'Tooltip';\n\n/**\n * A tooltip component, which is used to display text in a tooltip.\n *\n * @param props - The props of the component.\n * @param props.children - The children of the tooltip.\n * @param props.content - The text to display in the tooltip.\n * @returns A tooltip element.\n * @example\n * <Tooltip content=\"Tooltip text\">\n * <Text>Hello world!</Text>\n * </Tooltip>\n * @example\n * <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>\n * <Text>Hello world!</Text>\n * </Tooltip>\n * @category Components\n */\nexport const Tooltip = createSnapComponent<TooltipProps, typeof TYPE>(TYPE);\n\n/**\n * A tooltip element.\n *\n * @see {@link Tooltip}\n * @category Elements\n */\nexport type TooltipElement = ReturnType<typeof Tooltip>;\n"]}
|
|
@@ -9,6 +9,7 @@ export type TooltipChildren = TextElement | StandardFormattingElement | LinkElem
|
|
|
9
9
|
*
|
|
10
10
|
* @property children - The children of the box.
|
|
11
11
|
* @property content - The text to display in the tooltip.
|
|
12
|
+
* @category Component Props
|
|
12
13
|
*/
|
|
13
14
|
export type TooltipProps = {
|
|
14
15
|
children: TooltipChildren;
|
|
@@ -29,12 +30,14 @@ export type TooltipProps = {
|
|
|
29
30
|
* <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>
|
|
30
31
|
* <Text>Hello world!</Text>
|
|
31
32
|
* </Tooltip>
|
|
33
|
+
* @category Components
|
|
32
34
|
*/
|
|
33
35
|
export declare const Tooltip: import("../component.cjs").SnapComponent<TooltipProps, "Tooltip">;
|
|
34
36
|
/**
|
|
35
37
|
* A tooltip element.
|
|
36
38
|
*
|
|
37
|
-
* @see Tooltip
|
|
39
|
+
* @see {@link Tooltip}
|
|
40
|
+
* @category Elements
|
|
38
41
|
*/
|
|
39
42
|
export type TooltipElement = ReturnType<typeof Tooltip>;
|
|
40
43
|
//# sourceMappingURL=Tooltip.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,yBAAyB,GACzB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,OAAO,GACP,IAAI,CAAC;AAET
|
|
1
|
+
{"version":3,"file":"Tooltip.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,yBAAyB,GACzB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,OAAO,GACP,IAAI,CAAC;AAET;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EACH,WAAW,GACX,yBAAyB,GACzB,WAAW,GACX,WAAW,GACX,MAAM,CAAC;CACZ,CAAC;AAIF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,+DAAuD,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@ export type TooltipChildren = TextElement | StandardFormattingElement | LinkElem
|
|
|
9
9
|
*
|
|
10
10
|
* @property children - The children of the box.
|
|
11
11
|
* @property content - The text to display in the tooltip.
|
|
12
|
+
* @category Component Props
|
|
12
13
|
*/
|
|
13
14
|
export type TooltipProps = {
|
|
14
15
|
children: TooltipChildren;
|
|
@@ -29,12 +30,14 @@ export type TooltipProps = {
|
|
|
29
30
|
* <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>
|
|
30
31
|
* <Text>Hello world!</Text>
|
|
31
32
|
* </Tooltip>
|
|
33
|
+
* @category Components
|
|
32
34
|
*/
|
|
33
35
|
export declare const Tooltip: import("../component.mjs").SnapComponent<TooltipProps, "Tooltip">;
|
|
34
36
|
/**
|
|
35
37
|
* A tooltip element.
|
|
36
38
|
*
|
|
37
|
-
* @see Tooltip
|
|
39
|
+
* @see {@link Tooltip}
|
|
40
|
+
* @category Elements
|
|
38
41
|
*/
|
|
39
42
|
export type TooltipElement = ReturnType<typeof Tooltip>;
|
|
40
43
|
//# sourceMappingURL=Tooltip.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,yBAAyB,GACzB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,OAAO,GACP,IAAI,CAAC;AAET
|
|
1
|
+
{"version":3,"file":"Tooltip.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAAqB;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,yBAAyB,GACzB,WAAW,GACX,YAAY,GACZ,WAAW,GACX,OAAO,GACP,IAAI,CAAC;AAET;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EACH,WAAW,GACX,yBAAyB,GACzB,WAAW,GACX,WAAW,GACX,MAAM,CAAC;CACZ,CAAC;AAIF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,+DAAuD,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -15,6 +15,7 @@ const TYPE = 'Tooltip';
|
|
|
15
15
|
* <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>
|
|
16
16
|
* <Text>Hello world!</Text>
|
|
17
17
|
* </Tooltip>
|
|
18
|
+
* @category Components
|
|
18
19
|
*/
|
|
19
20
|
export const Tooltip = createSnapComponent(TYPE);
|
|
20
21
|
//# sourceMappingURL=Tooltip.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Tooltip.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Tooltip.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AA4BnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAA4B,IAAI,CAAC,CAAC","sourcesContent":["import type { StandardFormattingElement } from './formatting';\nimport type { IconElement } from './Icon';\nimport type { ImageElement } from './Image';\nimport type { LinkElement } from './Link';\nimport type { TextElement } from './Text';\nimport { createSnapComponent } from '../component';\n\nexport type TooltipChildren =\n | TextElement\n | StandardFormattingElement\n | LinkElement\n | ImageElement\n | IconElement\n | boolean\n | null;\n\n/**\n * The props of the {@link Tooltip} component.\n *\n * @property children - The children of the box.\n * @property content - The text to display in the tooltip.\n * @category Component Props\n */\nexport type TooltipProps = {\n children: TooltipChildren;\n content:\n | TextElement\n | StandardFormattingElement\n | LinkElement\n | IconElement\n | string;\n};\n\nconst TYPE = 'Tooltip';\n\n/**\n * A tooltip component, which is used to display text in a tooltip.\n *\n * @param props - The props of the component.\n * @param props.children - The children of the tooltip.\n * @param props.content - The text to display in the tooltip.\n * @returns A tooltip element.\n * @example\n * <Tooltip content=\"Tooltip text\">\n * <Text>Hello world!</Text>\n * </Tooltip>\n * @example\n * <Tooltip content={<Text>Text with <Bold>formatting</Bold></Text>}>\n * <Text>Hello world!</Text>\n * </Tooltip>\n * @category Components\n */\nexport const Tooltip = createSnapComponent<TooltipProps, typeof TYPE>(TYPE);\n\n/**\n * A tooltip element.\n *\n * @see {@link Tooltip}\n * @category Elements\n */\nexport type TooltipElement = ReturnType<typeof Tooltip>;\n"]}
|
|
@@ -18,6 +18,7 @@ const TYPE = 'Value';
|
|
|
18
18
|
* <Value value="0.05 ETH" extra="$200" />
|
|
19
19
|
* @example
|
|
20
20
|
* <Value value={<Text color='error'>0.05 ETH</Text>} extra={<Text color='error'>$200</Text>} />
|
|
21
|
+
* @category Components
|
|
21
22
|
*/
|
|
22
23
|
exports.Value = (0, component_1.createSnapComponent)(TYPE);
|
|
23
24
|
//# sourceMappingURL=Value.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":";;;AACA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Value.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":";;;AACA,gDAAmD;AAcnD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;GAgBG;AACU,QAAA,KAAK,GAAG,IAAA,+BAAmB,EAA0B,IAAI,CAAC,CAAC","sourcesContent":["import type { TextElement } from './Text';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Value} component.\n *\n * @property value - The value shown on the right side.\n * @property extra - The extra text shown on the left side.\n * @category Component Props\n */\nexport type ValueProps = {\n value: TextElement | string;\n extra: TextElement | string;\n};\n\nconst TYPE = 'Value';\n\n/**\n * A value component, which can be used to display two different text values side by side.\n *\n * This component can only be used as a child of the {@link Row} component.\n *\n * This component does not accept any children.\n *\n * @param props - The props of the component.\n * @param props.value - The value shown on the right side.\n * @param props.extra - The extra text shown on the left side.\n * @returns A value element.\n * @example\n * <Value value=\"0.05 ETH\" extra=\"$200\" />\n * @example\n * <Value value={<Text color='error'>0.05 ETH</Text>} extra={<Text color='error'>$200</Text>} />\n * @category Components\n */\nexport const Value = createSnapComponent<ValueProps, typeof TYPE>(TYPE);\n\n/**\n * A value element.\n *\n * @see {@link Value}\n * @category Elements\n */\nexport type ValueElement = ReturnType<typeof Value>;\n"]}
|
|
@@ -4,6 +4,7 @@ import type { TextElement } from "./Text.cjs";
|
|
|
4
4
|
*
|
|
5
5
|
* @property value - The value shown on the right side.
|
|
6
6
|
* @property extra - The extra text shown on the left side.
|
|
7
|
+
* @category Component Props
|
|
7
8
|
*/
|
|
8
9
|
export type ValueProps = {
|
|
9
10
|
value: TextElement | string;
|
|
@@ -24,12 +25,14 @@ export type ValueProps = {
|
|
|
24
25
|
* <Value value="0.05 ETH" extra="$200" />
|
|
25
26
|
* @example
|
|
26
27
|
* <Value value={<Text color='error'>0.05 ETH</Text>} extra={<Text color='error'>$200</Text>} />
|
|
28
|
+
* @category Components
|
|
27
29
|
*/
|
|
28
30
|
export declare const Value: import("../component.cjs").SnapComponent<ValueProps, "Value">;
|
|
29
31
|
/**
|
|
30
32
|
* A value element.
|
|
31
33
|
*
|
|
32
|
-
* @see Value
|
|
34
|
+
* @see {@link Value}
|
|
35
|
+
* @category Elements
|
|
33
36
|
*/
|
|
34
37
|
export type ValueElement = ReturnType<typeof Value>;
|
|
35
38
|
//# sourceMappingURL=Value.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C
|
|
1
|
+
{"version":3,"file":"Value.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC;IAC5B,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC;CAC7B,CAAC;AAIF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,2DAAqD,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import type { TextElement } from "./Text.mjs";
|
|
|
4
4
|
*
|
|
5
5
|
* @property value - The value shown on the right side.
|
|
6
6
|
* @property extra - The extra text shown on the left side.
|
|
7
|
+
* @category Component Props
|
|
7
8
|
*/
|
|
8
9
|
export type ValueProps = {
|
|
9
10
|
value: TextElement | string;
|
|
@@ -24,12 +25,14 @@ export type ValueProps = {
|
|
|
24
25
|
* <Value value="0.05 ETH" extra="$200" />
|
|
25
26
|
* @example
|
|
26
27
|
* <Value value={<Text color='error'>0.05 ETH</Text>} extra={<Text color='error'>$200</Text>} />
|
|
28
|
+
* @category Components
|
|
27
29
|
*/
|
|
28
30
|
export declare const Value: import("../component.mjs").SnapComponent<ValueProps, "Value">;
|
|
29
31
|
/**
|
|
30
32
|
* A value element.
|
|
31
33
|
*
|
|
32
|
-
* @see Value
|
|
34
|
+
* @see {@link Value}
|
|
35
|
+
* @category Elements
|
|
33
36
|
*/
|
|
34
37
|
export type ValueElement = ReturnType<typeof Value>;
|
|
35
38
|
//# sourceMappingURL=Value.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C
|
|
1
|
+
{"version":3,"file":"Value.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAe;AAG1C;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC;IAC5B,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC;CAC7B,CAAC;AAIF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,2DAAqD,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -15,6 +15,7 @@ const TYPE = 'Value';
|
|
|
15
15
|
* <Value value="0.05 ETH" extra="$200" />
|
|
16
16
|
* @example
|
|
17
17
|
* <Value value={<Text color='error'>0.05 ETH</Text>} extra={<Text color='error'>$200</Text>} />
|
|
18
|
+
* @category Components
|
|
18
19
|
*/
|
|
19
20
|
export const Value = createSnapComponent(TYPE);
|
|
20
21
|
//# sourceMappingURL=Value.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Value.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Value.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAcnD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAA0B,IAAI,CAAC,CAAC","sourcesContent":["import type { TextElement } from './Text';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Value} component.\n *\n * @property value - The value shown on the right side.\n * @property extra - The extra text shown on the left side.\n * @category Component Props\n */\nexport type ValueProps = {\n value: TextElement | string;\n extra: TextElement | string;\n};\n\nconst TYPE = 'Value';\n\n/**\n * A value component, which can be used to display two different text values side by side.\n *\n * This component can only be used as a child of the {@link Row} component.\n *\n * This component does not accept any children.\n *\n * @param props - The props of the component.\n * @param props.value - The value shown on the right side.\n * @param props.extra - The extra text shown on the left side.\n * @returns A value element.\n * @example\n * <Value value=\"0.05 ETH\" extra=\"$200\" />\n * @example\n * <Value value={<Text color='error'>0.05 ETH</Text>} extra={<Text color='error'>$200</Text>} />\n * @category Components\n */\nexport const Value = createSnapComponent<ValueProps, typeof TYPE>(TYPE);\n\n/**\n * A value element.\n *\n * @see {@link Value}\n * @category Elements\n */\nexport type ValueElement = ReturnType<typeof Value>;\n"]}
|
|
@@ -27,6 +27,7 @@ const TYPE = 'AccountSelector';
|
|
|
27
27
|
* <AccountSelector name="account-selector" value="eip155:1:0x1234..." />
|
|
28
28
|
* @example
|
|
29
29
|
* <AccountSelector name="account-selector" hideExternalAccounts chainIds={['eip155:1']} switchGlobalAccount value="eip155:1:0x1234..." />
|
|
30
|
+
* @category Components
|
|
30
31
|
*/
|
|
31
32
|
exports.AccountSelector = (0, component_1.createSnapComponent)(TYPE);
|
|
32
33
|
//# sourceMappingURL=AccountSelector.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSelector.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/AccountSelector.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;
|
|
1
|
+
{"version":3,"file":"AccountSelector.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/AccountSelector.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;AAuBtD,MAAM,IAAI,GAAG,iBAAiB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACU,QAAA,eAAe,GAAG,IAAA,+BAAmB,EAGhD,IAAI,CAAC,CAAC","sourcesContent":["import type { CaipAccountId, CaipChainId } from '@metamask/utils';\n\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link AccountSelector} component.\n *\n * @property name - The name of the account selector. This is used to identify the\n * state in the form data.\n * @property hideExternalAccounts - Whether to hide accounts that don't belong to the snap.\n * @property chainIds - The chain IDs to filter the accounts to show.\n * @property switchGlobalAccount - Whether to switch the selected account in the client.\n * @property disabled - Whether the account selector is disabled.\n * @property value - The selected address.\n * @category Component Props\n */\nexport type AccountSelectorProps = {\n name: string;\n hideExternalAccounts?: boolean | undefined;\n chainIds?: CaipChainId[] | undefined;\n switchGlobalAccount?: boolean | undefined;\n value?: CaipAccountId | undefined;\n disabled?: boolean | undefined;\n};\n\nconst TYPE = 'AccountSelector';\n\n/**\n * An account selector component, which is used to create an account selector.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the account selector. This is used to identify the\n * state in the form data.\n * @param props.hideExternalAccounts - Whether to hide accounts that doesn't belong to the snap.\n * @param props.chainIds - The chain IDs to filter the accounts to show.\n * @param props.switchGlobalAccount - Whether to switch the selected account in the client.\n * @param props.value - The selected address.\n * @param props.disabled - Whether the account selector is disabled.\n * @returns An account selector element.\n * @example\n * <AccountSelector name=\"account-selector\" />\n * @example\n * <AccountSelector name=\"account-selector\" hideExternalAccounts />\n * @example\n * <AccountSelector name=\"account-selector\" chainIds={['eip155:1']} />\n * @example\n * <AccountSelector name=\"account-selector\" switchGlobalAccount />\n * @example\n * <AccountSelector name=\"account-selector\" value=\"eip155:1:0x1234...\" />\n * @example\n * <AccountSelector name=\"account-selector\" hideExternalAccounts chainIds={['eip155:1']} switchGlobalAccount value=\"eip155:1:0x1234...\" />\n * @category Components\n */\nexport const AccountSelector = createSnapComponent<\n AccountSelectorProps,\n typeof TYPE\n>(TYPE);\n\n/**\n * An account selector element.\n *\n * @see {@link AccountSelector}\n * @category Elements\n */\nexport type AccountSelectorElement = ReturnType<typeof AccountSelector>;\n"]}
|