@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
|
@@ -12,6 +12,7 @@ const TYPE = 'Card';
|
|
|
12
12
|
* @returns A card element.
|
|
13
13
|
* @example
|
|
14
14
|
* <Card image="<svg />" title="Title" description="Description" value="$1200" extra="0.12 ETH" />
|
|
15
|
+
* @category Components
|
|
15
16
|
*/
|
|
16
17
|
export const Card = createSnapComponent(TYPE);
|
|
17
18
|
//# sourceMappingURL=Card.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Card.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAoBnD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAyB,IAAI,CAAC,CAAC","sourcesContent":["import type { AddressElement } from './Address';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Card} component.\n *\n * @property image - The image to show as part of the card, must be an SVG string.\n * @property title - The title.\n * @property description - The description, shown below the title.\n * @property value - The value, shown on the right side.\n * @property extra - An additional optional value shown below the value.\n * @category Component Props\n */\nexport type CardProps = {\n image?: string | undefined;\n title: string | AddressElement;\n description?: string | undefined;\n value: string;\n extra?: string | undefined;\n};\n\nconst TYPE = 'Card';\n\n/**\n * A card component which can be used to display values within a card structure.\n *\n * @param props - The props of the component.\n * @param props.image - The image to show as part of the card, must be an SVG string.\n * @param props.title - The title.\n * @param props.description - The description, shown below the title.\n * @param props.value - The value, shown on the right side.\n * @param props.extra - An additional optional value shown below the value.\n * @returns A card element.\n * @example\n * <Card image=\"<svg />\" title=\"Title\" description=\"Description\" value=\"$1200\" extra=\"0.12 ETH\" />\n * @category Components\n */\nexport const Card = createSnapComponent<CardProps, typeof TYPE>(TYPE);\n\n/**\n * A card element.\n *\n * @see {@link Card}\n * @category Elements\n */\nexport type CardElement = ReturnType<typeof Card>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":";;;AAEA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Container.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":";;;AAEA,gDAAmD;AAkBnD,MAAM,IAAI,GAAG,WAAW,CAAC;AAEzB;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,SAAS,GAAG,IAAA,+BAAmB,EAA8B,IAAI,CAAC,CAAC","sourcesContent":["import type { FooterElement } from './Footer';\nimport type { GenericSnapElement } from '../component';\nimport { createSnapComponent } from '../component';\n\n/**\n * Definition of container background colors.\n */\nexport type ContainerBackgroundColor = 'default' | 'alternative';\n\n/**\n * The props of the {@link Container} component.\n *\n * @property children - The Box and the Footer or the Box element.\n * @category Component Props\n */\nexport type ContainerProps = {\n children: [GenericSnapElement, FooterElement] | GenericSnapElement;\n backgroundColor?: ContainerBackgroundColor | undefined;\n};\n\nconst TYPE = 'Container';\n\n/**\n * A container component, which is used to create a container with a box and a footer.\n *\n * @param props - The props of the component.\n * @param props.backgroundColor - The color of the background.\n * @param props.children - The Box and the Footer or the Box element.\n * @returns A container element.\n * @example\n * <Container backgroundColor=\"default\">\n * <Box>\n * <Text>Hello world!</Text>\n * </Box>\n * <Footer>\n * <Button name=\"cancel\">Cancel</Button>\n * <Button name=\"confirm\">Confirm</Button>\n * </Footer>\n * </Container>\n * @category Components\n */\nexport const Container = createSnapComponent<ContainerProps, typeof TYPE>(TYPE);\n\n/**\n * A container element.\n *\n * @see {@link Container}\n * @category Elements\n */\nexport type ContainerElement = ReturnType<typeof Container>;\n"]}
|
|
@@ -8,6 +8,7 @@ export type ContainerBackgroundColor = 'default' | 'alternative';
|
|
|
8
8
|
* The props of the {@link Container} component.
|
|
9
9
|
*
|
|
10
10
|
* @property children - The Box and the Footer or the Box element.
|
|
11
|
+
* @category Component Props
|
|
11
12
|
*/
|
|
12
13
|
export type ContainerProps = {
|
|
13
14
|
children: [GenericSnapElement, FooterElement] | GenericSnapElement;
|
|
@@ -30,12 +31,14 @@ export type ContainerProps = {
|
|
|
30
31
|
* <Button name="confirm">Confirm</Button>
|
|
31
32
|
* </Footer>
|
|
32
33
|
* </Container>
|
|
34
|
+
* @category Components
|
|
33
35
|
*/
|
|
34
36
|
export declare const Container: import("../component.cjs").SnapComponent<ContainerProps, "Container">;
|
|
35
37
|
/**
|
|
36
38
|
* A container element.
|
|
37
39
|
*
|
|
38
|
-
* @see Container
|
|
40
|
+
* @see {@link Container}
|
|
41
|
+
* @category Elements
|
|
39
42
|
*/
|
|
40
43
|
export type ContainerElement = ReturnType<typeof Container>;
|
|
41
44
|
//# sourceMappingURL=Container.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAqB;AAGvD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,aAAa,CAAC;AAEjE
|
|
1
|
+
{"version":3,"file":"Container.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAqB;AAGvD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,aAAa,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC,GAAG,kBAAkB,CAAC;IACnE,eAAe,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACxD,CAAC;AAIF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,mEAAyD,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ export type ContainerBackgroundColor = 'default' | 'alternative';
|
|
|
8
8
|
* The props of the {@link Container} component.
|
|
9
9
|
*
|
|
10
10
|
* @property children - The Box and the Footer or the Box element.
|
|
11
|
+
* @category Component Props
|
|
11
12
|
*/
|
|
12
13
|
export type ContainerProps = {
|
|
13
14
|
children: [GenericSnapElement, FooterElement] | GenericSnapElement;
|
|
@@ -30,12 +31,14 @@ export type ContainerProps = {
|
|
|
30
31
|
* <Button name="confirm">Confirm</Button>
|
|
31
32
|
* </Footer>
|
|
32
33
|
* </Container>
|
|
34
|
+
* @category Components
|
|
33
35
|
*/
|
|
34
36
|
export declare const Container: import("../component.mjs").SnapComponent<ContainerProps, "Container">;
|
|
35
37
|
/**
|
|
36
38
|
* A container element.
|
|
37
39
|
*
|
|
38
|
-
* @see Container
|
|
40
|
+
* @see {@link Container}
|
|
41
|
+
* @category Elements
|
|
39
42
|
*/
|
|
40
43
|
export type ContainerElement = ReturnType<typeof Container>;
|
|
41
44
|
//# sourceMappingURL=Container.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAqB;AAGvD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,aAAa,CAAC;AAEjE
|
|
1
|
+
{"version":3,"file":"Container.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,yBAAqB;AAGvD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,aAAa,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,CAAC,kBAAkB,EAAE,aAAa,CAAC,GAAG,kBAAkB,CAAC;IACnE,eAAe,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACxD,CAAC;AAIF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,SAAS,mEAAyD,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Container.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAkBnD,MAAM,IAAI,GAAG,WAAW,CAAC;AAEzB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,mBAAmB,CAA8B,IAAI,CAAC,CAAC","sourcesContent":["import type { FooterElement } from './Footer';\nimport type { GenericSnapElement } from '../component';\nimport { createSnapComponent } from '../component';\n\n/**\n * Definition of container background colors.\n */\nexport type ContainerBackgroundColor = 'default' | 'alternative';\n\n/**\n * The props of the {@link Container} component.\n *\n * @property children - The Box and the Footer or the Box element.\n * @category Component Props\n */\nexport type ContainerProps = {\n children: [GenericSnapElement, FooterElement] | GenericSnapElement;\n backgroundColor?: ContainerBackgroundColor | undefined;\n};\n\nconst TYPE = 'Container';\n\n/**\n * A container component, which is used to create a container with a box and a footer.\n *\n * @param props - The props of the component.\n * @param props.backgroundColor - The color of the background.\n * @param props.children - The Box and the Footer or the Box element.\n * @returns A container element.\n * @example\n * <Container backgroundColor=\"default\">\n * <Box>\n * <Text>Hello world!</Text>\n * </Box>\n * <Footer>\n * <Button name=\"cancel\">Cancel</Button>\n * <Button name=\"confirm\">Confirm</Button>\n * </Footer>\n * </Container>\n * @category Components\n */\nexport const Container = createSnapComponent<ContainerProps, typeof TYPE>(TYPE);\n\n/**\n * A container element.\n *\n * @see {@link Container}\n * @category Elements\n */\nexport type ContainerElement = ReturnType<typeof Container>;\n"]}
|
|
@@ -15,6 +15,7 @@ const TYPE = 'Copyable';
|
|
|
15
15
|
* @example
|
|
16
16
|
* <Copyable value="0x1234567890123456789012345678901234567890" />
|
|
17
17
|
* <Copyable value="0x1234567890123456789012345678901234567890" sensitive />
|
|
18
|
+
* @category Components
|
|
18
19
|
*/
|
|
19
20
|
exports.Copyable = (0, component_1.createSnapComponent)(TYPE);
|
|
20
21
|
//# sourceMappingURL=Copyable.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copyable.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Copyable.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAgBnD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACU,QAAA,QAAQ,GAAG,IAAA,+BAAmB,EAA6B,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Copyable} component.\n *\n * @property value - The value to copy when the user clicks on the copyable\n * element.\n * @property sensitive - Whether the value is sensitive. If `true`, the value\n * will be hidden when the user is not interacting with the copyable element.\n * @category Component Props\n */\nexport type CopyableProps = {\n value: string;\n sensitive?: boolean | undefined;\n};\n\nconst TYPE = 'Copyable';\n\n/**\n * A copyable component, which is used to display text that can be copied by the\n * user.\n *\n * @param props - The props of the component.\n * @param props.value - The value to copy when the user clicks on the copyable\n * element.\n * @param props.sensitive - Whether the value is sensitive. If `true`, the value\n * will be hidden when the user is not interacting with the copyable element.\n * @example\n * <Copyable value=\"0x1234567890123456789012345678901234567890\" />\n * <Copyable value=\"0x1234567890123456789012345678901234567890\" sensitive />\n * @category Components\n */\nexport const Copyable = createSnapComponent<CopyableProps, typeof TYPE>(TYPE);\n\n/**\n * A copyable element.\n *\n * @see {@link Copyable}\n * @category Elements\n */\nexport type CopyableElement = ReturnType<typeof Copyable>;\n"]}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* element.
|
|
6
6
|
* @property sensitive - Whether the value is sensitive. If `true`, the value
|
|
7
7
|
* will be hidden when the user is not interacting with the copyable element.
|
|
8
|
+
* @category Component Props
|
|
8
9
|
*/
|
|
9
10
|
export type CopyableProps = {
|
|
10
11
|
value: string;
|
|
@@ -22,12 +23,14 @@ export type CopyableProps = {
|
|
|
22
23
|
* @example
|
|
23
24
|
* <Copyable value="0x1234567890123456789012345678901234567890" />
|
|
24
25
|
* <Copyable value="0x1234567890123456789012345678901234567890" sensitive />
|
|
26
|
+
* @category Components
|
|
25
27
|
*/
|
|
26
28
|
export declare const Copyable: import("../component.cjs").SnapComponent<CopyableProps, "Copyable">;
|
|
27
29
|
/**
|
|
28
30
|
* A copyable element.
|
|
29
31
|
*
|
|
30
|
-
* @see Copyable
|
|
32
|
+
* @see {@link Copyable}
|
|
33
|
+
* @category Elements
|
|
31
34
|
*/
|
|
32
35
|
export type CopyableElement = ReturnType<typeof Copyable>;
|
|
33
36
|
//# sourceMappingURL=Copyable.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copyable.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"Copyable.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,iEAAwD,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* element.
|
|
6
6
|
* @property sensitive - Whether the value is sensitive. If `true`, the value
|
|
7
7
|
* will be hidden when the user is not interacting with the copyable element.
|
|
8
|
+
* @category Component Props
|
|
8
9
|
*/
|
|
9
10
|
export type CopyableProps = {
|
|
10
11
|
value: string;
|
|
@@ -22,12 +23,14 @@ export type CopyableProps = {
|
|
|
22
23
|
* @example
|
|
23
24
|
* <Copyable value="0x1234567890123456789012345678901234567890" />
|
|
24
25
|
* <Copyable value="0x1234567890123456789012345678901234567890" sensitive />
|
|
26
|
+
* @category Components
|
|
25
27
|
*/
|
|
26
28
|
export declare const Copyable: import("../component.mjs").SnapComponent<CopyableProps, "Copyable">;
|
|
27
29
|
/**
|
|
28
30
|
* A copyable element.
|
|
29
31
|
*
|
|
30
|
-
* @see Copyable
|
|
32
|
+
* @see {@link Copyable}
|
|
33
|
+
* @category Elements
|
|
31
34
|
*/
|
|
32
35
|
export type CopyableElement = ReturnType<typeof Copyable>;
|
|
33
36
|
//# sourceMappingURL=Copyable.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copyable.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"Copyable.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,iEAAwD,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -12,6 +12,7 @@ const TYPE = 'Copyable';
|
|
|
12
12
|
* @example
|
|
13
13
|
* <Copyable value="0x1234567890123456789012345678901234567890" />
|
|
14
14
|
* <Copyable value="0x1234567890123456789012345678901234567890" sensitive />
|
|
15
|
+
* @category Components
|
|
15
16
|
*/
|
|
16
17
|
export const Copyable = createSnapComponent(TYPE);
|
|
17
18
|
//# sourceMappingURL=Copyable.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Copyable.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Copyable.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Copyable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAgBnD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,mBAAmB,CAA6B,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Copyable} component.\n *\n * @property value - The value to copy when the user clicks on the copyable\n * element.\n * @property sensitive - Whether the value is sensitive. If `true`, the value\n * will be hidden when the user is not interacting with the copyable element.\n * @category Component Props\n */\nexport type CopyableProps = {\n value: string;\n sensitive?: boolean | undefined;\n};\n\nconst TYPE = 'Copyable';\n\n/**\n * A copyable component, which is used to display text that can be copied by the\n * user.\n *\n * @param props - The props of the component.\n * @param props.value - The value to copy when the user clicks on the copyable\n * element.\n * @param props.sensitive - Whether the value is sensitive. If `true`, the value\n * will be hidden when the user is not interacting with the copyable element.\n * @example\n * <Copyable value=\"0x1234567890123456789012345678901234567890\" />\n * <Copyable value=\"0x1234567890123456789012345678901234567890\" sensitive />\n * @category Components\n */\nexport const Copyable = createSnapComponent<CopyableProps, typeof TYPE>(TYPE);\n\n/**\n * A copyable element.\n *\n * @see {@link Copyable}\n * @category Elements\n */\nexport type CopyableElement = ReturnType<typeof Copyable>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Divider.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB
|
|
1
|
+
{"version":3,"file":"Divider.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Divider.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 = 'Divider';\n\n/**\n * A divider component, which is used to create a horizontal line between\n * elements.\n *\n * This component does not have any props.\n *\n * @returns A divider element.\n * @example\n * <Divider />\n * @category Components\n */\nexport const Divider = createSnapComponent(TYPE);\n\n/**\n * A divider element.\n *\n * @see {@link Divider}\n * @category Elements\n */\nexport type DividerElement = ReturnType<typeof Divider>;\n"]}
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
* @returns A divider element.
|
|
8
8
|
* @example
|
|
9
9
|
* <Divider />
|
|
10
|
+
* @category Components
|
|
10
11
|
*/
|
|
11
12
|
export declare const Divider: import("../component.cjs").SnapComponent<Record<string, never>, "Divider">;
|
|
12
13
|
/**
|
|
13
14
|
* A divider element.
|
|
14
15
|
*
|
|
15
|
-
* @see Divider
|
|
16
|
+
* @see {@link Divider}
|
|
17
|
+
* @category Elements
|
|
16
18
|
*/
|
|
17
19
|
export type DividerElement = ReturnType<typeof Divider>;
|
|
18
20
|
//# sourceMappingURL=Divider.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Divider.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"Divider.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Divider.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 divider element.
|
|
8
8
|
* @example
|
|
9
9
|
* <Divider />
|
|
10
|
+
* @category Components
|
|
10
11
|
*/
|
|
11
12
|
export declare const Divider: import("../component.mjs").SnapComponent<Record<string, never>, "Divider">;
|
|
12
13
|
/**
|
|
13
14
|
* A divider element.
|
|
14
15
|
*
|
|
15
|
-
* @see Divider
|
|
16
|
+
* @see {@link Divider}
|
|
17
|
+
* @category Elements
|
|
16
18
|
*/
|
|
17
19
|
export type DividerElement = ReturnType<typeof Divider>;
|
|
18
20
|
//# sourceMappingURL=Divider.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Divider.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"Divider.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Divider.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":"Divider.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAEnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB
|
|
1
|
+
{"version":3,"file":"Divider.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Divider.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 = 'Divider';\n\n/**\n * A divider component, which is used to create a horizontal line between\n * elements.\n *\n * This component does not have any props.\n *\n * @returns A divider element.\n * @example\n * <Divider />\n * @category Components\n */\nexport const Divider = createSnapComponent(TYPE);\n\n/**\n * A divider element.\n *\n * @see {@link Divider}\n * @category Elements\n */\nexport type DividerElement = ReturnType<typeof Divider>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":";;;AACA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Footer.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":";;;AACA,gDAAmD;AAYnD,MAAM,IAAI,GAAG,QAAQ,CAAC;AAEtB;;;;;;;;;;;;GAYG;AACU,QAAA,MAAM,GAAG,IAAA,+BAAmB,EAA2B,IAAI,CAAC,CAAC","sourcesContent":["import type { ButtonElement } from './form';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Footer} component.\n *\n * @property children - The single or multiple buttons in the footer.\n * @category Component Props\n */\nexport type FooterProps = {\n children: ButtonElement | [ButtonElement, ButtonElement];\n};\n\nconst TYPE = 'Footer';\n\n/**\n * A footer component, which is used to create a footer with buttons.\n *\n * @param props - The props of the component.\n * @param props.children - The single or multiple buttons in the footer.\n * @returns A footer element.\n * @example\n * <Footer>\n * <Button name=\"cancel\">Cancel</Button>\n * <Button name=\"confirm\">Confirm</Button>\n * </Footer>\n * @category Components\n */\nexport const Footer = createSnapComponent<FooterProps, typeof TYPE>(TYPE);\n\n/**\n * A footer element.\n *\n * @see {@link Footer}\n * @category Elements\n */\nexport type FooterElement = ReturnType<typeof Footer>;\n"]}
|
|
@@ -3,6 +3,7 @@ import type { ButtonElement } from "./form/index.cjs";
|
|
|
3
3
|
* The props of the {@link Footer} component.
|
|
4
4
|
*
|
|
5
5
|
* @property children - The single or multiple buttons in the footer.
|
|
6
|
+
* @category Component Props
|
|
6
7
|
*/
|
|
7
8
|
export type FooterProps = {
|
|
8
9
|
children: ButtonElement | [ButtonElement, ButtonElement];
|
|
@@ -18,12 +19,14 @@ export type FooterProps = {
|
|
|
18
19
|
* <Button name="cancel">Cancel</Button>
|
|
19
20
|
* <Button name="confirm">Confirm</Button>
|
|
20
21
|
* </Footer>
|
|
22
|
+
* @category Components
|
|
21
23
|
*/
|
|
22
24
|
export declare const Footer: import("../component.cjs").SnapComponent<FooterProps, "Footer">;
|
|
23
25
|
/**
|
|
24
26
|
* A footer element.
|
|
25
27
|
*
|
|
26
|
-
* @see Footer
|
|
28
|
+
* @see {@link Footer}
|
|
29
|
+
* @category Elements
|
|
27
30
|
*/
|
|
28
31
|
export type FooterElement = ReturnType<typeof Footer>;
|
|
29
32
|
//# sourceMappingURL=Footer.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAe;AAG5C
|
|
1
|
+
{"version":3,"file":"Footer.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAe;AAG5C;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,aAAa,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;CAC1D,CAAC;AAIF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,6DAAsD,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@ import type { ButtonElement } from "./form/index.mjs";
|
|
|
3
3
|
* The props of the {@link Footer} component.
|
|
4
4
|
*
|
|
5
5
|
* @property children - The single or multiple buttons in the footer.
|
|
6
|
+
* @category Component Props
|
|
6
7
|
*/
|
|
7
8
|
export type FooterProps = {
|
|
8
9
|
children: ButtonElement | [ButtonElement, ButtonElement];
|
|
@@ -18,12 +19,14 @@ export type FooterProps = {
|
|
|
18
19
|
* <Button name="cancel">Cancel</Button>
|
|
19
20
|
* <Button name="confirm">Confirm</Button>
|
|
20
21
|
* </Footer>
|
|
22
|
+
* @category Components
|
|
21
23
|
*/
|
|
22
24
|
export declare const Footer: import("../component.mjs").SnapComponent<FooterProps, "Footer">;
|
|
23
25
|
/**
|
|
24
26
|
* A footer element.
|
|
25
27
|
*
|
|
26
|
-
* @see Footer
|
|
28
|
+
* @see {@link Footer}
|
|
29
|
+
* @category Elements
|
|
27
30
|
*/
|
|
28
31
|
export type FooterElement = ReturnType<typeof Footer>;
|
|
29
32
|
//# sourceMappingURL=Footer.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAe;AAG5C
|
|
1
|
+
{"version":3,"file":"Footer.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAe;AAG5C;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,aAAa,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;CAC1D,CAAC;AAIF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,6DAAsD,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Footer.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Footer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAYnD,MAAM,IAAI,GAAG,QAAQ,CAAC;AAEtB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAA2B,IAAI,CAAC,CAAC","sourcesContent":["import type { ButtonElement } from './form';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Footer} component.\n *\n * @property children - The single or multiple buttons in the footer.\n * @category Component Props\n */\nexport type FooterProps = {\n children: ButtonElement | [ButtonElement, ButtonElement];\n};\n\nconst TYPE = 'Footer';\n\n/**\n * A footer component, which is used to create a footer with buttons.\n *\n * @param props - The props of the component.\n * @param props.children - The single or multiple buttons in the footer.\n * @returns A footer element.\n * @example\n * <Footer>\n * <Button name=\"cancel\">Cancel</Button>\n * <Button name=\"confirm\">Confirm</Button>\n * </Footer>\n * @category Components\n */\nexport const Footer = createSnapComponent<FooterProps, typeof TYPE>(TYPE);\n\n/**\n * A footer element.\n *\n * @see {@link Footer}\n * @category Elements\n */\nexport type FooterElement = ReturnType<typeof Footer>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":";;;AACA,gDAAmD;
|
|
1
|
+
{"version":3,"file":"Heading.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":";;;AACA,gDAAmD;AAcnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;;;GAYG;AACU,QAAA,OAAO,GAAG,IAAA,+BAAmB,EAA4B,IAAI,CAAC,CAAC","sourcesContent":["import type { StringElement } from '../component';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Heading} component.\n *\n * @property children - The text to display in the heading.\n * @property size - The size of the heading. Defaults to `sm`.\n * @category Component Props\n */\ntype HeadingProps = {\n children: StringElement;\n size?: 'sm' | 'md' | 'lg' | undefined;\n};\n\nconst TYPE = 'Heading';\n\n/**\n * A heading component, which is used to display heading text.\n *\n * @param props - The props of the component.\n * @param props.children - The text to display in the heading.\n * @param props.size - The size of the heading. Defaults to `sm`.\n * @returns A heading element.\n * @example\n * <Heading>Hello world!</Heading>\n * @example\n * <Heading size=\"lg\">Hello world!</Heading>\n * @category Components\n */\nexport const Heading = createSnapComponent<HeadingProps, typeof TYPE>(TYPE);\n\n/**\n * A heading element.\n *\n * @see {@link Heading}\n * @category Elements\n */\nexport type HeadingElement = ReturnType<typeof Heading>;\n"]}
|
|
@@ -4,6 +4,7 @@ import type { StringElement } from "../component.cjs";
|
|
|
4
4
|
*
|
|
5
5
|
* @property children - The text to display in the heading.
|
|
6
6
|
* @property size - The size of the heading. Defaults to `sm`.
|
|
7
|
+
* @category Component Props
|
|
7
8
|
*/
|
|
8
9
|
type HeadingProps = {
|
|
9
10
|
children: StringElement;
|
|
@@ -20,12 +21,14 @@ type HeadingProps = {
|
|
|
20
21
|
* <Heading>Hello world!</Heading>
|
|
21
22
|
* @example
|
|
22
23
|
* <Heading size="lg">Hello world!</Heading>
|
|
24
|
+
* @category Components
|
|
23
25
|
*/
|
|
24
26
|
export declare const Heading: import("../component.cjs").SnapComponent<HeadingProps, "Heading">;
|
|
25
27
|
/**
|
|
26
28
|
* A heading element.
|
|
27
29
|
*
|
|
28
|
-
* @see Heading
|
|
30
|
+
* @see {@link Heading}
|
|
31
|
+
* @category Elements
|
|
29
32
|
*/
|
|
30
33
|
export type HeadingElement = ReturnType<typeof Heading>;
|
|
31
34
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAGlD
|
|
1
|
+
{"version":3,"file":"Heading.d.cts","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAGlD;;;;;;GAMG;AACH,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAIF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,+DAAuD,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import type { StringElement } from "../component.mjs";
|
|
|
4
4
|
*
|
|
5
5
|
* @property children - The text to display in the heading.
|
|
6
6
|
* @property size - The size of the heading. Defaults to `sm`.
|
|
7
|
+
* @category Component Props
|
|
7
8
|
*/
|
|
8
9
|
type HeadingProps = {
|
|
9
10
|
children: StringElement;
|
|
@@ -20,12 +21,14 @@ type HeadingProps = {
|
|
|
20
21
|
* <Heading>Hello world!</Heading>
|
|
21
22
|
* @example
|
|
22
23
|
* <Heading size="lg">Hello world!</Heading>
|
|
24
|
+
* @category Components
|
|
23
25
|
*/
|
|
24
26
|
export declare const Heading: import("../component.mjs").SnapComponent<HeadingProps, "Heading">;
|
|
25
27
|
/**
|
|
26
28
|
* A heading element.
|
|
27
29
|
*
|
|
28
|
-
* @see Heading
|
|
30
|
+
* @see {@link Heading}
|
|
31
|
+
* @category Elements
|
|
29
32
|
*/
|
|
30
33
|
export type HeadingElement = ReturnType<typeof Heading>;
|
|
31
34
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAGlD
|
|
1
|
+
{"version":3,"file":"Heading.d.mts","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAqB;AAGlD;;;;;;GAMG;AACH,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAIF;;;;;;;;;;;;GAYG;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":"Heading.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;
|
|
1
|
+
{"version":3,"file":"Heading.mjs","sourceRoot":"","sources":["../../../src/jsx/components/Heading.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,yBAAqB;AAcnD,MAAM,IAAI,GAAG,SAAS,CAAC;AAEvB;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,mBAAmB,CAA4B,IAAI,CAAC,CAAC","sourcesContent":["import type { StringElement } from '../component';\nimport { createSnapComponent } from '../component';\n\n/**\n * The props of the {@link Heading} component.\n *\n * @property children - The text to display in the heading.\n * @property size - The size of the heading. Defaults to `sm`.\n * @category Component Props\n */\ntype HeadingProps = {\n children: StringElement;\n size?: 'sm' | 'md' | 'lg' | undefined;\n};\n\nconst TYPE = 'Heading';\n\n/**\n * A heading component, which is used to display heading text.\n *\n * @param props - The props of the component.\n * @param props.children - The text to display in the heading.\n * @param props.size - The size of the heading. Defaults to `sm`.\n * @returns A heading element.\n * @example\n * <Heading>Hello world!</Heading>\n * @example\n * <Heading size=\"lg\">Hello world!</Heading>\n * @category Components\n */\nexport const Heading = createSnapComponent<HeadingProps, typeof TYPE>(TYPE);\n\n/**\n * A heading element.\n *\n * @see {@link Heading}\n * @category Elements\n */\nexport type HeadingElement = ReturnType<typeof Heading>;\n"]}
|
|
@@ -291,6 +291,7 @@ const TYPE = 'Icon';
|
|
|
291
291
|
* @returns An icon element.
|
|
292
292
|
* @example
|
|
293
293
|
* <Icon name="warning" color="warning" size="md" />
|
|
294
|
+
* @category Components
|
|
294
295
|
*/
|
|
295
296
|
exports.Icon = (0, component_1.createSnapComponent)(TYPE);
|
|
296
297
|
//# sourceMappingURL=Icon.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Icon.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,0HAA0H;AAC1H,4DAA4D;AAC5D,IAAY,QAkRX;AAlRD,WAAY,QAAQ;IAClB,2CAA+B,CAAA;IAC/B,iCAAqB,CAAA;IACrB,gCAAoB,CAAA;IACpB,oCAAwB,CAAA;IACxB,oCAAwB,CAAA;IACxB,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,8CAAkC,CAAA;IAClC,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,8CAAkC,CAAA;IAClC,mCAAuB,CAAA;IACvB,iDAAqC,CAAA;IACrC,6CAAiC,CAAA;IACjC,iDAAqC,CAAA;IACrC,mDAAuC,CAAA;IACvC,oCAAwB,CAAA;IACxB,0DAA8C,CAAA;IAC9C,oCAAwB,CAAA;IACxB,sCAA0B,CAAA;IAC1B,gCAAoB,CAAA;IACpB,qCAAyB,CAAA;IACzB,uBAAW,CAAA;IACX,wCAA4B,CAAA;IAC5B,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,gCAAoB,CAAA;IACpB,yBAAa,CAAA;IACb,qCAAyB,CAAA;IACzB,iCAAqB,CA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https://github.com/MetaMask/metamask-extension/blob/main/ui/components/component-library/icon/icon.types.ts\n// Currently requires manual syncing when new icon is added.\nexport enum IconName {\n Accessibility = 'accessibility',\n Activity = 'activity',\n AddCard = 'add-card',\n AddCircle = 'add-circle',\n AddSquare = 'add-square',\n Add = 'add',\n Ai = 'ai',\n AlternateEmail = 'alternate-email',\n Apple = 'apple',\n Apps = 'apps',\n Arrow2Down = 'arrow-2-down',\n Arrow2Left = 'arrow-2-left',\n Arrow2Right = 'arrow-2-right',\n Arrow2UpRight = 'arrow-2-up-right',\n Arrow2Up = 'arrow-2-up',\n ArrowCircleDown = 'arrow-circle-down',\n ArrowCircleUp = 'arrow-circle-up',\n ArrowDoubleLeft = 'arrow-double-left',\n ArrowDoubleRight = 'arrow-double-right',\n ArrowDown = 'arrow-down',\n ArrowDropDownCircle = 'arrow-drop-down-circle',\n ArrowLeft = 'arrow-left',\n ArrowRight = 'arrow-right',\n ArrowUp = 'arrow-up',\n Attachment = 'attachment',\n Ban = 'ban',\n BankAssured = 'bank-assured',\n Bank = 'bank',\n Bold = 'bold',\n Book = 'book',\n Bookmark = 'bookmark',\n Bridge = 'bridge',\n Briefcase = 'briefcase',\n Bulb = 'bulb',\n BuySell = 'buy-sell',\n Cake = 'cake',\n Calculator = 'calculator',\n Calendar = 'calendar',\n Call = 'call',\n Camera = 'camera',\n Campaign = 'campaign',\n CardPos = 'card-pos',\n Card = 'card',\n Cash = 'cash',\n Category = 'category',\n Chart = 'chart',\n CheckBold = 'check-bold',\n Check = 'check',\n CircleX = 'circle-x',\n ClockFilled = 'clock-filled',\n Clock = 'clock',\n Close = 'close',\n CloudDownload = 'cloud-download',\n CloudUpload = 'cloud-upload',\n Cloud = 'cloud',\n CodeCircle = 'code-circle',\n Code = 'code',\n Coin = 'coin',\n Collapse = 'collapse',\n Confirmation = 'confirmation',\n Connect = 'connect',\n CopySuccess = 'copy-success',\n Copy = 'copy',\n CreditCheck = 'credit-check',\n CurrencyFranc = 'currency-franc',\n CurrencyLira = 'currency-lira',\n CurrencyPound = 'currency-pound',\n CurrencyYuan = 'currency-yuan',\n Customize = 'customize',\n Danger = 'danger',\n DarkFilled = 'dark-filled',\n Dark = 'dark',\n Data = 'data',\n Description = 'description',\n Details = 'details',\n Diagram = 'diagram',\n DocumentCode = 'document-code',\n Download = 'download',\n Draft = 'draft',\n EcoLeaf = 'eco-leaf',\n EditSquare = 'edit-square',\n Edit = 'edit',\n EncryptedAdd = 'encrypted-add',\n Eraser = 'eraser',\n Error = 'error',\n Ethereum = 'ethereum',\n Exchange = 'exchange',\n ExpandVertical = 'expand-vertical',\n Expand = 'expand',\n ExploreFilled = 'explore-filled',\n Explore = 'explore',\n Export = 'export',\n Extension = 'extension',\n EyeSlash = 'eye-slash',\n Eye = 'eye',\n FaceId = 'face-id',\n Feedback = 'feedback',\n File = 'file',\n Filter = 'filter',\n Fingerprint = 'fingerprint',\n Fire = 'fire',\n FirstPage = 'first-page',\n Flag = 'flag',\n FlashSlash = 'flash-slash',\n Flash = 'flash',\n Flask = 'flask',\n Flower = 'flower',\n Folder = 'folder',\n Forest = 'forest',\n FullCircle = 'full-circle',\n Gas = 'gas',\n Gift = 'gift',\n GlobalSearch = 'global-search',\n Global = 'global',\n Graph = 'graph',\n Hardware = 'hardware',\n HashTag = 'hash-tag',\n HeartFilled = 'heart-filled',\n Heart = 'heart',\n Hierarchy = 'hierarchy',\n HomeFilled = 'home-filled',\n Home = 'home',\n Image = 'image',\n Info = 'info',\n Inventory = 'inventory',\n Joystick = 'joystick',\n KeepFilled = 'keep-filled',\n Keep = 'keep',\n Key = 'key',\n LastPage = 'last-page',\n LightFilled = 'light-filled',\n Light = 'light',\n Link = 'link',\n Loading = 'loading',\n Location = 'location',\n LockSlash = 'lock-slash',\n Lock = 'lock',\n LockedFilled = 'locked-filled',\n Login = 'login',\n Logout = 'logout',\n Mail = 'mail',\n Map = 'map',\n Menu = 'menu',\n MessageQuestion = 'message-question',\n Messages = 'messages',\n Mic = 'mic',\n MinusBold = 'minus-bold',\n MinusSquare = 'minus-square',\n Minus = 'minus',\n Mobile = 'mobile',\n MoneyBag = 'money-bag',\n Money = 'money',\n Monitor = 'monitor',\n MoreHorizontal = 'more-horizontal',\n MoreVertical = 'more-vertical',\n MountainFlag = 'mountain-flag',\n MusicNote = 'music-note',\n Notification = 'notification',\n PageInfo = 'page-info',\n Palette = 'palette',\n PasswordCheck = 'password-check',\n Pending = 'pending',\n People = 'people',\n PersonCancel = 'person-cancel',\n Pin = 'pin',\n Plant = 'plant',\n Plug = 'plug',\n PlusAndMinus = 'plus-and-minus',\n PolicyAlert = 'policy-alert',\n Print = 'print',\n PriorityHigh = 'priority-high',\n PrivacyTip = 'privacy-tip',\n ProgrammingArrows = 'programming-arrows',\n Publish = 'publish',\n QrCode = 'qr-code',\n Question = 'question',\n Receive = 'receive',\n Received = 'received',\n Refresh = 'refresh',\n RemoveMinus = 'remove-minus',\n Report = 'report',\n Rocket = 'rocket',\n SaveFilled = 'save-filled',\n Save = 'save',\n Saving = 'saving',\n ScanBarcode = 'scan-barcode',\n ScanFocus = 'scan-focus',\n Scan = 'scan',\n Search = 'search',\n SecurityAlert = 'security-alert',\n SecurityCross = 'security-cross',\n SecurityKey = 'security-key',\n SecuritySearch = 'security-search',\n SecuritySlash = 'security-slash',\n SecurityTick = 'security-tick',\n SecurityTime = 'security-time',\n SecurityUser = 'security-user',\n Security = 'security',\n Send = 'send',\n SentimentDissatisfied = 'sentiment-dissatisfied',\n SentimentNeutral = 'sentiment-neutral',\n SentimentSatisfied = 'sentiment-satisfied',\n SentimentVerySatisfied = 'sentiment-very-satisfied',\n SettingFilled = 'setting-filled',\n Setting = 'setting',\n Share = 'share',\n ShieldLock = 'shield-lock',\n ShoppingBag = 'shopping-bag',\n ShoppingCart = 'shopping-cart',\n SignalCellular = 'signal-cellular',\n Slash = 'slash',\n Sms = 'sms',\n SnapsMobile = 'snaps-mobile',\n SnapsPlus = 'snaps-plus',\n SnapsRound = 'snaps-round',\n Snaps = 'snaps',\n SortByAlpha = 'sort-by-alpha',\n Sort = 'sort',\n Sparkle = 'sparkle',\n Speed = 'speed',\n Speedometer = 'speedometer',\n Square = 'square',\n Stake = 'stake',\n StarFilled = 'star-filled',\n Star = 'star',\n Start = 'start',\n Storefront = 'storefront',\n Student = 'student',\n SwapHorizontal = 'swap-horizontal',\n SwapVertical = 'swap-vertical',\n TabClose = 'tab-close',\n TableRow = 'table-row',\n Tablet = 'tablet',\n Tag = 'tag',\n ThumbDownFilled = 'thumb-down-filled',\n ThumbDown = 'thumb-down',\n ThumbUpFilled = 'thumb-up-filled',\n ThumbUp = 'thumb-up',\n Tint = 'tint',\n Tooltip = 'tooltip',\n Translate = 'translate',\n Trash = 'trash',\n TrendDown = 'trend-down',\n TrendUp = 'trend-up',\n TriangleUp = 'triangle-up',\n TriangleDown = 'triangle-down',\n Undo = 'undo',\n Unfold = 'unfold',\n UnlockedFilled = 'unlocked-filled',\n Unpin = 'unpin',\n UploadFile = 'upload-file',\n Upload = 'upload',\n Usb = 'usb',\n UserCheck = 'user-check',\n UserCircleAdd = 'user-circle-add',\n UserCircleRemove = 'user-circle-remove',\n UserCircle = 'user-circle',\n User = 'user',\n VerifiedFilled = 'verified-filled',\n Verified = 'verified',\n Videocam = 'videocam',\n ViewColumn = 'view-column',\n ViewInAr = 'view-in-ar',\n VolumeOff = 'volume-off',\n VolumeUp = 'volume-up',\n WalletFilled = 'wallet-filled',\n Wallet = 'wallet',\n Warning = 'warning',\n WebTraffic = 'web-traffic',\n Widgets = 'widgets',\n WifiOff = 'wifi-off',\n Wifi = 'wifi',\n X = 'x',\n}\n\n/**\n * The props of the {@link Icon} component.\n *\n * @property name - The name of the icon to display from a pre-defined list.\n * @property color - The color of the displayed icon.\n * @property size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n */\nexport type IconProps = {\n name: `${IconName}`;\n color?: 'default' | 'primary' | 'muted' | undefined;\n size?: 'md' | 'inherit' | undefined;\n};\n\nconst TYPE = 'Icon';\n\n/**\n * An icon component which is used to display an icon from a pre-defined list.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the icon to display from a pre-defined list.\n * @param props.color - The color of the displayed icon.\n * @param props.size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n * @returns An icon element.\n * @example\n * <Icon name=\"warning\" color=\"warning\" size=\"md\" />\n */\nexport const Icon = createSnapComponent<IconProps, typeof TYPE>(TYPE);\n\n/**\n * An icon element.\n *\n * @see Icon\n */\nexport type IconElement = ReturnType<typeof Icon>;\n"]}
|
|
1
|
+
{"version":3,"file":"Icon.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Icon.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,0HAA0H;AAC1H,4DAA4D;AAC5D,IAAY,QAkRX;AAlRD,WAAY,QAAQ;IAClB,2CAA+B,CAAA;IAC/B,iCAAqB,CAAA;IACrB,gCAAoB,CAAA;IACpB,oCAAwB,CAAA;IACxB,oCAAwB,CAAA;IACxB,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,8CAAkC,CAAA;IAClC,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,8CAAkC,CAAA;IAClC,mCAAuB,CAAA;IACvB,iDAAqC,CAAA;IACrC,6CAAiC,CAAA;IACjC,iDAAqC,CAAA;IACrC,mDAAuC,CAAA;IACvC,oCAAwB,CAAA;IACxB,0DAA8C,CAAA;IAC9C,oCAAwB,CAAA;IACxB,sCAA0B,CAAA;IAC1B,gCAAoB,CAAA;IACpB,qCAAyB,CAAA;IACzB,uBAAW,CAAA;IACX,wCAA4B,CAAA;IAC5B,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,mCAAuB,CAAA;IACvB,yBAAa,CAAA;IACb,gCAAoB,CAAA;IACpB,yBAAa,CAAA;IACb,qCAAyB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createSnapComponent } from '../component';\n\n// Copied from https://github.com/MetaMask/metamask-extension/blob/main/ui/components/component-library/icon/icon.types.ts\n// Currently requires manual syncing when new icon is added.\nexport enum IconName {\n Accessibility = 'accessibility',\n Activity = 'activity',\n AddCard = 'add-card',\n AddCircle = 'add-circle',\n AddSquare = 'add-square',\n Add = 'add',\n Ai = 'ai',\n AlternateEmail = 'alternate-email',\n Apple = 'apple',\n Apps = 'apps',\n Arrow2Down = 'arrow-2-down',\n Arrow2Left = 'arrow-2-left',\n Arrow2Right = 'arrow-2-right',\n Arrow2UpRight = 'arrow-2-up-right',\n Arrow2Up = 'arrow-2-up',\n ArrowCircleDown = 'arrow-circle-down',\n ArrowCircleUp = 'arrow-circle-up',\n ArrowDoubleLeft = 'arrow-double-left',\n ArrowDoubleRight = 'arrow-double-right',\n ArrowDown = 'arrow-down',\n ArrowDropDownCircle = 'arrow-drop-down-circle',\n ArrowLeft = 'arrow-left',\n ArrowRight = 'arrow-right',\n ArrowUp = 'arrow-up',\n Attachment = 'attachment',\n Ban = 'ban',\n BankAssured = 'bank-assured',\n Bank = 'bank',\n Bold = 'bold',\n Book = 'book',\n Bookmark = 'bookmark',\n Bridge = 'bridge',\n Briefcase = 'briefcase',\n Bulb = 'bulb',\n BuySell = 'buy-sell',\n Cake = 'cake',\n Calculator = 'calculator',\n Calendar = 'calendar',\n Call = 'call',\n Camera = 'camera',\n Campaign = 'campaign',\n CardPos = 'card-pos',\n Card = 'card',\n Cash = 'cash',\n Category = 'category',\n Chart = 'chart',\n CheckBold = 'check-bold',\n Check = 'check',\n CircleX = 'circle-x',\n ClockFilled = 'clock-filled',\n Clock = 'clock',\n Close = 'close',\n CloudDownload = 'cloud-download',\n CloudUpload = 'cloud-upload',\n Cloud = 'cloud',\n CodeCircle = 'code-circle',\n Code = 'code',\n Coin = 'coin',\n Collapse = 'collapse',\n Confirmation = 'confirmation',\n Connect = 'connect',\n CopySuccess = 'copy-success',\n Copy = 'copy',\n CreditCheck = 'credit-check',\n CurrencyFranc = 'currency-franc',\n CurrencyLira = 'currency-lira',\n CurrencyPound = 'currency-pound',\n CurrencyYuan = 'currency-yuan',\n Customize = 'customize',\n Danger = 'danger',\n DarkFilled = 'dark-filled',\n Dark = 'dark',\n Data = 'data',\n Description = 'description',\n Details = 'details',\n Diagram = 'diagram',\n DocumentCode = 'document-code',\n Download = 'download',\n Draft = 'draft',\n EcoLeaf = 'eco-leaf',\n EditSquare = 'edit-square',\n Edit = 'edit',\n EncryptedAdd = 'encrypted-add',\n Eraser = 'eraser',\n Error = 'error',\n Ethereum = 'ethereum',\n Exchange = 'exchange',\n ExpandVertical = 'expand-vertical',\n Expand = 'expand',\n ExploreFilled = 'explore-filled',\n Explore = 'explore',\n Export = 'export',\n Extension = 'extension',\n EyeSlash = 'eye-slash',\n Eye = 'eye',\n FaceId = 'face-id',\n Feedback = 'feedback',\n File = 'file',\n Filter = 'filter',\n Fingerprint = 'fingerprint',\n Fire = 'fire',\n FirstPage = 'first-page',\n Flag = 'flag',\n FlashSlash = 'flash-slash',\n Flash = 'flash',\n Flask = 'flask',\n Flower = 'flower',\n Folder = 'folder',\n Forest = 'forest',\n FullCircle = 'full-circle',\n Gas = 'gas',\n Gift = 'gift',\n GlobalSearch = 'global-search',\n Global = 'global',\n Graph = 'graph',\n Hardware = 'hardware',\n HashTag = 'hash-tag',\n HeartFilled = 'heart-filled',\n Heart = 'heart',\n Hierarchy = 'hierarchy',\n HomeFilled = 'home-filled',\n Home = 'home',\n Image = 'image',\n Info = 'info',\n Inventory = 'inventory',\n Joystick = 'joystick',\n KeepFilled = 'keep-filled',\n Keep = 'keep',\n Key = 'key',\n LastPage = 'last-page',\n LightFilled = 'light-filled',\n Light = 'light',\n Link = 'link',\n Loading = 'loading',\n Location = 'location',\n LockSlash = 'lock-slash',\n Lock = 'lock',\n LockedFilled = 'locked-filled',\n Login = 'login',\n Logout = 'logout',\n Mail = 'mail',\n Map = 'map',\n Menu = 'menu',\n MessageQuestion = 'message-question',\n Messages = 'messages',\n Mic = 'mic',\n MinusBold = 'minus-bold',\n MinusSquare = 'minus-square',\n Minus = 'minus',\n Mobile = 'mobile',\n MoneyBag = 'money-bag',\n Money = 'money',\n Monitor = 'monitor',\n MoreHorizontal = 'more-horizontal',\n MoreVertical = 'more-vertical',\n MountainFlag = 'mountain-flag',\n MusicNote = 'music-note',\n Notification = 'notification',\n PageInfo = 'page-info',\n Palette = 'palette',\n PasswordCheck = 'password-check',\n Pending = 'pending',\n People = 'people',\n PersonCancel = 'person-cancel',\n Pin = 'pin',\n Plant = 'plant',\n Plug = 'plug',\n PlusAndMinus = 'plus-and-minus',\n PolicyAlert = 'policy-alert',\n Print = 'print',\n PriorityHigh = 'priority-high',\n PrivacyTip = 'privacy-tip',\n ProgrammingArrows = 'programming-arrows',\n Publish = 'publish',\n QrCode = 'qr-code',\n Question = 'question',\n Receive = 'receive',\n Received = 'received',\n Refresh = 'refresh',\n RemoveMinus = 'remove-minus',\n Report = 'report',\n Rocket = 'rocket',\n SaveFilled = 'save-filled',\n Save = 'save',\n Saving = 'saving',\n ScanBarcode = 'scan-barcode',\n ScanFocus = 'scan-focus',\n Scan = 'scan',\n Search = 'search',\n SecurityAlert = 'security-alert',\n SecurityCross = 'security-cross',\n SecurityKey = 'security-key',\n SecuritySearch = 'security-search',\n SecuritySlash = 'security-slash',\n SecurityTick = 'security-tick',\n SecurityTime = 'security-time',\n SecurityUser = 'security-user',\n Security = 'security',\n Send = 'send',\n SentimentDissatisfied = 'sentiment-dissatisfied',\n SentimentNeutral = 'sentiment-neutral',\n SentimentSatisfied = 'sentiment-satisfied',\n SentimentVerySatisfied = 'sentiment-very-satisfied',\n SettingFilled = 'setting-filled',\n Setting = 'setting',\n Share = 'share',\n ShieldLock = 'shield-lock',\n ShoppingBag = 'shopping-bag',\n ShoppingCart = 'shopping-cart',\n SignalCellular = 'signal-cellular',\n Slash = 'slash',\n Sms = 'sms',\n SnapsMobile = 'snaps-mobile',\n SnapsPlus = 'snaps-plus',\n SnapsRound = 'snaps-round',\n Snaps = 'snaps',\n SortByAlpha = 'sort-by-alpha',\n Sort = 'sort',\n Sparkle = 'sparkle',\n Speed = 'speed',\n Speedometer = 'speedometer',\n Square = 'square',\n Stake = 'stake',\n StarFilled = 'star-filled',\n Star = 'star',\n Start = 'start',\n Storefront = 'storefront',\n Student = 'student',\n SwapHorizontal = 'swap-horizontal',\n SwapVertical = 'swap-vertical',\n TabClose = 'tab-close',\n TableRow = 'table-row',\n Tablet = 'tablet',\n Tag = 'tag',\n ThumbDownFilled = 'thumb-down-filled',\n ThumbDown = 'thumb-down',\n ThumbUpFilled = 'thumb-up-filled',\n ThumbUp = 'thumb-up',\n Tint = 'tint',\n Tooltip = 'tooltip',\n Translate = 'translate',\n Trash = 'trash',\n TrendDown = 'trend-down',\n TrendUp = 'trend-up',\n TriangleUp = 'triangle-up',\n TriangleDown = 'triangle-down',\n Undo = 'undo',\n Unfold = 'unfold',\n UnlockedFilled = 'unlocked-filled',\n Unpin = 'unpin',\n UploadFile = 'upload-file',\n Upload = 'upload',\n Usb = 'usb',\n UserCheck = 'user-check',\n UserCircleAdd = 'user-circle-add',\n UserCircleRemove = 'user-circle-remove',\n UserCircle = 'user-circle',\n User = 'user',\n VerifiedFilled = 'verified-filled',\n Verified = 'verified',\n Videocam = 'videocam',\n ViewColumn = 'view-column',\n ViewInAr = 'view-in-ar',\n VolumeOff = 'volume-off',\n VolumeUp = 'volume-up',\n WalletFilled = 'wallet-filled',\n Wallet = 'wallet',\n Warning = 'warning',\n WebTraffic = 'web-traffic',\n Widgets = 'widgets',\n WifiOff = 'wifi-off',\n Wifi = 'wifi',\n X = 'x',\n}\n\n/**\n * The colors available to the {@link Link} component.\n */\nexport type IconColor =\n | 'default'\n | 'primary'\n | 'muted'\n | 'error'\n | 'success'\n | 'warning';\n\n/**\n * The props of the {@link Icon} component.\n *\n * @property name - The name of the icon to display from a pre-defined list.\n * @property color - The color of the displayed icon.\n * @property size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n * @category Component Props\n */\nexport type IconProps = {\n name: `${IconName}`;\n color?: IconColor | undefined;\n size?: 'md' | 'inherit' | undefined;\n};\n\nconst TYPE = 'Icon';\n\n/**\n * An icon component which is used to display an icon from a pre-defined list.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the icon to display from a pre-defined list.\n * @param props.color - The color of the displayed icon.\n * @param props.size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n * @returns An icon element.\n * @example\n * <Icon name=\"warning\" color=\"warning\" size=\"md\" />\n * @category Components\n */\nexport const Icon = createSnapComponent<IconProps, typeof TYPE>(TYPE);\n\n/**\n * An icon element.\n *\n * @see {@link Icon}\n * @category Elements\n */\nexport type IconElement = ReturnType<typeof Icon>;\n"]}
|