@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
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* @property disabled - Whether the date/time picker field is disabled.
|
|
12
12
|
* @property disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
13
13
|
* @property disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
14
|
+
* @category Component Props
|
|
14
15
|
*/
|
|
15
16
|
export type DateTimePickerProps = {
|
|
16
17
|
name: string;
|
|
@@ -34,12 +35,14 @@ export type DateTimePickerProps = {
|
|
|
34
35
|
* @param props.disabled - Whether the date/time picker field is disabled.
|
|
35
36
|
* @param props.disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
36
37
|
* @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
38
|
+
* @category Components
|
|
37
39
|
*/
|
|
38
40
|
export declare const DateTimePicker: import("../../component.mjs").SnapComponent<DateTimePickerProps, "DateTimePicker">;
|
|
39
41
|
/**
|
|
40
42
|
* A DateTimePicker element.
|
|
41
43
|
*
|
|
42
|
-
* @see DateTimePicker
|
|
44
|
+
* @see {@link DateTimePicker}
|
|
45
|
+
* @category Elements
|
|
43
46
|
*/
|
|
44
47
|
export type DateTimePickerElement = ReturnType<typeof DateTimePicker>;
|
|
45
48
|
//# sourceMappingURL=DateTimePicker.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"DateTimePicker.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,gFAGpB,CAAC;AAER;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ const TYPE = 'DateTimePicker';
|
|
|
13
13
|
* @param props.disabled - Whether the date/time picker field is disabled.
|
|
14
14
|
* @param props.disablePast - Whether to allow selection of past dates. Defaults to false.
|
|
15
15
|
* @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.
|
|
16
|
+
* @category Components
|
|
16
17
|
*/
|
|
17
18
|
export const DateTimePicker = createSnapComponent(TYPE);
|
|
18
19
|
//# sourceMappingURL=DateTimePicker.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;
|
|
1
|
+
{"version":3,"file":"DateTimePicker.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/DateTimePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AA2BtD,MAAM,IAAI,GAAG,gBAAgB,CAAC;AAE9B;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,mBAAmB,CAG/C,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link DateTimePicker} component.\n *\n * @property name - The name of the date/time picker field. This is used to identify the\n * date/time picker field in the form data.\n * @property value - The value of the date/time picker field. Must be an ISO 8601 date string with\n * timezone information.\n * @property type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.\n * Defaults to 'datetime'.\n * @property placeholder - The placeholder text of the date/time picker field.\n * @property disabled - Whether the date/time picker field is disabled.\n * @property disablePast - Whether to allow selection of past dates. Defaults to false.\n * @property disableFuture - Whether to allow selection of future dates. Defaults to false.\n * @category Component Props\n */\nexport type DateTimePickerProps = {\n name: string;\n value?: string | undefined;\n type?: 'date' | 'time' | 'datetime' | undefined;\n placeholder?: string | undefined;\n disabled?: boolean | undefined;\n disablePast?: boolean | undefined;\n disableFuture?: boolean | undefined;\n};\n\nconst TYPE = 'DateTimePicker';\n\n/**\n * A date/time picker component, which is used to create a date/time picker field.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the date/time picker field. This is used to identify the\n * date/time picker field in the form data.\n * @param props.value - The value of the date/time picker field.\n * @param props.type - The type of the date/time picker field. Can be 'date', 'time', or 'datetime'.\n * Defaults to 'datetime'.\n * @param props.placeholder - The placeholder text of the date/time picker field.\n * @param props.disabled - Whether the date/time picker field is disabled.\n * @param props.disablePast - Whether to allow selection of past dates. Defaults to false.\n * @param props.disableFuture - Whether to allow selection of future dates. Defaults to false.\n * @category Components\n */\nexport const DateTimePicker = createSnapComponent<\n DateTimePickerProps,\n typeof TYPE\n>(TYPE);\n\n/**\n * A DateTimePicker element.\n *\n * @see {@link DateTimePicker}\n * @category Elements\n */\nexport type DateTimePickerElement = ReturnType<typeof DateTimePicker>;\n"]}
|
|
@@ -19,6 +19,7 @@ const TYPE = 'Dropdown';
|
|
|
19
19
|
* <Option value="option2">Option 2</Option>
|
|
20
20
|
* <Option value="option3">Option 3</Option>
|
|
21
21
|
* </Dropdown>
|
|
22
|
+
* @category Components
|
|
22
23
|
*/
|
|
23
24
|
exports.Dropdown = (0, component_1.createSnapComponent)(TYPE);
|
|
24
25
|
//# sourceMappingURL=Dropdown.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;
|
|
1
|
+
{"version":3,"file":"Dropdown.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":";;;AAEA,mDAAsD;AAmBtD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,QAAQ,GAAG,IAAA,+BAAmB,EAA6B,IAAI,CAAC,CAAC","sourcesContent":["import type { OptionElement } from './Option';\nimport type { SnapsChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link Dropdown} component.\n *\n * @property name - The name of the dropdown. This is used to identify the\n * state in the form data.\n * @property value - The selected value of the dropdown.\n * @property children - The children of the dropdown.\n * @property disabled - Whether the dropdown is disabled.\n * @category Component Props\n */\nexport type DropdownProps = {\n name: string;\n value?: string | undefined;\n children: SnapsChildren<OptionElement>;\n disabled?: boolean | undefined;\n};\n\nconst TYPE = 'Dropdown';\n\n/**\n * A dropdown component, which is used to create a dropdown.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the dropdown field. This is used to identify the\n * state in the form data.\n * @param props.value - The selected value of the dropdown.\n * @param props.children - The children of the dropdown.\n * @param props.disabled - Whether the dropdown is disabled.\n * @returns A dropdown element.\n * @example\n * <Dropdown name=\"dropdown\">\n * <Option value=\"option1\">Option 1</Option>\n * <Option value=\"option2\">Option 2</Option>\n * <Option value=\"option3\">Option 3</Option>\n * </Dropdown>\n * @category Components\n */\nexport const Dropdown = createSnapComponent<DropdownProps, typeof TYPE>(TYPE);\n\n/**\n * A dropdown element.\n *\n * @see {@link Dropdown}\n * @category Elements\n */\nexport type DropdownElement = ReturnType<typeof Dropdown>;\n"]}
|
|
@@ -8,6 +8,7 @@ import type { SnapsChildren } from "../../component.cjs";
|
|
|
8
8
|
* @property value - The selected value of the dropdown.
|
|
9
9
|
* @property children - The children of the dropdown.
|
|
10
10
|
* @property disabled - Whether the dropdown is disabled.
|
|
11
|
+
* @category Component Props
|
|
11
12
|
*/
|
|
12
13
|
export type DropdownProps = {
|
|
13
14
|
name: string;
|
|
@@ -31,12 +32,14 @@ export type DropdownProps = {
|
|
|
31
32
|
* <Option value="option2">Option 2</Option>
|
|
32
33
|
* <Option value="option3">Option 3</Option>
|
|
33
34
|
* </Dropdown>
|
|
35
|
+
* @category Components
|
|
34
36
|
*/
|
|
35
37
|
export declare const Dropdown: import("../../component.cjs").SnapComponent<DropdownProps, "Dropdown">;
|
|
36
38
|
/**
|
|
37
39
|
* A dropdown element.
|
|
38
40
|
*
|
|
39
|
-
* @see Dropdown
|
|
41
|
+
* @see {@link Dropdown}
|
|
42
|
+
* @category Elements
|
|
40
43
|
*/
|
|
41
44
|
export type DropdownElement = ReturnType<typeof Dropdown>;
|
|
42
45
|
//# sourceMappingURL=Dropdown.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,4BAAwB;AAGrD
|
|
1
|
+
{"version":3,"file":"Dropdown.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,4BAAwB;AAGrD;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,oEAAwD,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ import type { SnapsChildren } from "../../component.mjs";
|
|
|
8
8
|
* @property value - The selected value of the dropdown.
|
|
9
9
|
* @property children - The children of the dropdown.
|
|
10
10
|
* @property disabled - Whether the dropdown is disabled.
|
|
11
|
+
* @category Component Props
|
|
11
12
|
*/
|
|
12
13
|
export type DropdownProps = {
|
|
13
14
|
name: string;
|
|
@@ -31,12 +32,14 @@ export type DropdownProps = {
|
|
|
31
32
|
* <Option value="option2">Option 2</Option>
|
|
32
33
|
* <Option value="option3">Option 3</Option>
|
|
33
34
|
* </Dropdown>
|
|
35
|
+
* @category Components
|
|
34
36
|
*/
|
|
35
37
|
export declare const Dropdown: import("../../component.mjs").SnapComponent<DropdownProps, "Dropdown">;
|
|
36
38
|
/**
|
|
37
39
|
* A dropdown element.
|
|
38
40
|
*
|
|
39
|
-
* @see Dropdown
|
|
41
|
+
* @see {@link Dropdown}
|
|
42
|
+
* @category Elements
|
|
40
43
|
*/
|
|
41
44
|
export type DropdownElement = ReturnType<typeof Dropdown>;
|
|
42
45
|
//# sourceMappingURL=Dropdown.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,4BAAwB;AAGrD
|
|
1
|
+
{"version":3,"file":"Dropdown.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,qBAAiB;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,4BAAwB;AAGrD;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,oEAAwD,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -16,6 +16,7 @@ const TYPE = 'Dropdown';
|
|
|
16
16
|
* <Option value="option2">Option 2</Option>
|
|
17
17
|
* <Option value="option3">Option 3</Option>
|
|
18
18
|
* </Dropdown>
|
|
19
|
+
* @category Components
|
|
19
20
|
*/
|
|
20
21
|
export const Dropdown = createSnapComponent(TYPE);
|
|
21
22
|
//# sourceMappingURL=Dropdown.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;
|
|
1
|
+
{"version":3,"file":"Dropdown.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Dropdown.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AAmBtD,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,mBAAmB,CAA6B,IAAI,CAAC,CAAC","sourcesContent":["import type { OptionElement } from './Option';\nimport type { SnapsChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link Dropdown} component.\n *\n * @property name - The name of the dropdown. This is used to identify the\n * state in the form data.\n * @property value - The selected value of the dropdown.\n * @property children - The children of the dropdown.\n * @property disabled - Whether the dropdown is disabled.\n * @category Component Props\n */\nexport type DropdownProps = {\n name: string;\n value?: string | undefined;\n children: SnapsChildren<OptionElement>;\n disabled?: boolean | undefined;\n};\n\nconst TYPE = 'Dropdown';\n\n/**\n * A dropdown component, which is used to create a dropdown.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the dropdown field. This is used to identify the\n * state in the form data.\n * @param props.value - The selected value of the dropdown.\n * @param props.children - The children of the dropdown.\n * @param props.disabled - Whether the dropdown is disabled.\n * @returns A dropdown element.\n * @example\n * <Dropdown name=\"dropdown\">\n * <Option value=\"option1\">Option 1</Option>\n * <Option value=\"option2\">Option 2</Option>\n * <Option value=\"option3\">Option 3</Option>\n * </Dropdown>\n * @category Components\n */\nexport const Dropdown = createSnapComponent<DropdownProps, typeof TYPE>(TYPE);\n\n/**\n * A dropdown element.\n *\n * @see {@link Dropdown}\n * @category Elements\n */\nexport type DropdownElement = ReturnType<typeof Dropdown>;\n"]}
|
|
@@ -20,6 +20,7 @@ const TYPE = 'Field';
|
|
|
20
20
|
* <Field label="Upload file">
|
|
21
21
|
* <FileInput name="file" accept={['image/*']} multiple />
|
|
22
22
|
* </Field>
|
|
23
|
+
* @category Components
|
|
23
24
|
*/
|
|
24
25
|
exports.Field = (0, component_1.createSnapComponent)(TYPE);
|
|
25
26
|
//# sourceMappingURL=Field.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":";;;AAWA,mDAAsD;
|
|
1
|
+
{"version":3,"file":"Field.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":";;;AAWA,mDAAsD;AA6BtD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,KAAK,GAAG,IAAA,+BAAmB,EAA0B,IAAI,CAAC,CAAC","sourcesContent":["import type { AccountSelectorElement } from './AccountSelector';\nimport type { AddressInputElement } from './AddressInput';\nimport type { AssetSelectorElement } from './AssetSelector';\nimport type { CheckboxElement } from './Checkbox';\nimport type { DateTimePickerElement } from './DateTimePicker';\nimport type { DropdownElement } from './Dropdown';\nimport type { FileInputElement } from './FileInput';\nimport type { InputElement } from './Input';\nimport type { RadioGroupElement } from './RadioGroup';\nimport type { SelectorElement } from './Selector';\nimport type { GenericSnapChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link Field} component.\n *\n * @property label - The label of the field.\n * @property error - The error message of the field.\n * @property children - The input field and the submit button.\n * @category Component Props\n */\nexport type FieldProps = {\n label?: string | undefined;\n error?: string | undefined;\n children:\n | [InputElement, GenericSnapChildren]\n | [GenericSnapChildren, InputElement]\n | [GenericSnapChildren, InputElement, GenericSnapChildren]\n | DropdownElement\n | DateTimePickerElement\n | RadioGroupElement\n | FileInputElement\n | InputElement\n | CheckboxElement\n | SelectorElement\n | AssetSelectorElement\n | AddressInputElement\n | AccountSelectorElement;\n};\n\nconst TYPE = 'Field';\n\n/**\n * A field component, which is used to create a form field.\n *\n * @param props - The props of the component.\n * @param props.label - The label of the field.\n * @param props.error - The error message of the field.\n * @param props.children - The input field and the submit button.\n * @returns A field element.\n * @example\n * <Field label=\"Username\">\n * <Input name=\"username\" type=\"text\" />\n * <Button type=\"submit\">Submit</Button>\n * </Field>\n * @example\n * <Field label=\"Upload file\">\n * <FileInput name=\"file\" accept={['image/*']} multiple />\n * </Field>\n * @category Components\n */\nexport const Field = createSnapComponent<FieldProps, typeof TYPE>(TYPE);\n\n/**\n * A field element.\n *\n * @see {@link Field}\n * @category Elements\n */\nexport type FieldElement = ReturnType<typeof Field>;\n"]}
|
|
@@ -15,6 +15,7 @@ import type { GenericSnapChildren } from "../../component.cjs";
|
|
|
15
15
|
* @property label - The label of the field.
|
|
16
16
|
* @property error - The error message of the field.
|
|
17
17
|
* @property children - The input field and the submit button.
|
|
18
|
+
* @category Component Props
|
|
18
19
|
*/
|
|
19
20
|
export type FieldProps = {
|
|
20
21
|
label?: string | undefined;
|
|
@@ -38,12 +39,14 @@ export type FieldProps = {
|
|
|
38
39
|
* <Field label="Upload file">
|
|
39
40
|
* <FileInput name="file" accept={['image/*']} multiple />
|
|
40
41
|
* </Field>
|
|
42
|
+
* @category Components
|
|
41
43
|
*/
|
|
42
44
|
export declare const Field: import("../../component.cjs").SnapComponent<FieldProps, "Field">;
|
|
43
45
|
/**
|
|
44
46
|
* A field element.
|
|
45
47
|
*
|
|
46
|
-
* @see Field
|
|
48
|
+
* @see {@link Field}
|
|
49
|
+
* @category Elements
|
|
47
50
|
*/
|
|
48
51
|
export type FieldElement = ReturnType<typeof Field>;
|
|
49
52
|
//# sourceMappingURL=Field.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAAyB;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D
|
|
1
|
+
{"version":3,"file":"Field.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAAyB;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EACJ,CAAC,YAAY,EAAE,mBAAmB,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,GACxD,eAAe,GACf,qBAAqB,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,CAAC;CAC5B,CAAC;AAIF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -15,6 +15,7 @@ import type { GenericSnapChildren } from "../../component.mjs";
|
|
|
15
15
|
* @property label - The label of the field.
|
|
16
16
|
* @property error - The error message of the field.
|
|
17
17
|
* @property children - The input field and the submit button.
|
|
18
|
+
* @category Component Props
|
|
18
19
|
*/
|
|
19
20
|
export type FieldProps = {
|
|
20
21
|
label?: string | undefined;
|
|
@@ -38,12 +39,14 @@ export type FieldProps = {
|
|
|
38
39
|
* <Field label="Upload file">
|
|
39
40
|
* <FileInput name="file" accept={['image/*']} multiple />
|
|
40
41
|
* </Field>
|
|
42
|
+
* @category Components
|
|
41
43
|
*/
|
|
42
44
|
export declare const Field: import("../../component.mjs").SnapComponent<FieldProps, "Field">;
|
|
43
45
|
/**
|
|
44
46
|
* A field element.
|
|
45
47
|
*
|
|
46
|
-
* @see Field
|
|
48
|
+
* @see {@link Field}
|
|
49
|
+
* @category Elements
|
|
47
50
|
*/
|
|
48
51
|
export type FieldElement = ReturnType<typeof Field>;
|
|
49
52
|
//# sourceMappingURL=Field.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAAyB;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D
|
|
1
|
+
{"version":3,"file":"Field.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,8BAA0B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,2BAAuB;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,4BAAwB;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAAyB;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,wBAAoB;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAgB;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,yBAAqB;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAmB;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,4BAAwB;AAG3D;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EACJ,CAAC,YAAY,EAAE,mBAAmB,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,CAAC,GACnC,CAAC,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,CAAC,GACxD,eAAe,GACf,qBAAqB,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,oBAAoB,GACpB,mBAAmB,GACnB,sBAAsB,CAAC;CAC5B,CAAC;AAIF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;
|
|
1
|
+
{"version":3,"file":"Field.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Field.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AA6BtD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,mBAAmB,CAA0B,IAAI,CAAC,CAAC","sourcesContent":["import type { AccountSelectorElement } from './AccountSelector';\nimport type { AddressInputElement } from './AddressInput';\nimport type { AssetSelectorElement } from './AssetSelector';\nimport type { CheckboxElement } from './Checkbox';\nimport type { DateTimePickerElement } from './DateTimePicker';\nimport type { DropdownElement } from './Dropdown';\nimport type { FileInputElement } from './FileInput';\nimport type { InputElement } from './Input';\nimport type { RadioGroupElement } from './RadioGroup';\nimport type { SelectorElement } from './Selector';\nimport type { GenericSnapChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link Field} component.\n *\n * @property label - The label of the field.\n * @property error - The error message of the field.\n * @property children - The input field and the submit button.\n * @category Component Props\n */\nexport type FieldProps = {\n label?: string | undefined;\n error?: string | undefined;\n children:\n | [InputElement, GenericSnapChildren]\n | [GenericSnapChildren, InputElement]\n | [GenericSnapChildren, InputElement, GenericSnapChildren]\n | DropdownElement\n | DateTimePickerElement\n | RadioGroupElement\n | FileInputElement\n | InputElement\n | CheckboxElement\n | SelectorElement\n | AssetSelectorElement\n | AddressInputElement\n | AccountSelectorElement;\n};\n\nconst TYPE = 'Field';\n\n/**\n * A field component, which is used to create a form field.\n *\n * @param props - The props of the component.\n * @param props.label - The label of the field.\n * @param props.error - The error message of the field.\n * @param props.children - The input field and the submit button.\n * @returns A field element.\n * @example\n * <Field label=\"Username\">\n * <Input name=\"username\" type=\"text\" />\n * <Button type=\"submit\">Submit</Button>\n * </Field>\n * @example\n * <Field label=\"Upload file\">\n * <FileInput name=\"file\" accept={['image/*']} multiple />\n * </Field>\n * @category Components\n */\nexport const Field = createSnapComponent<FieldProps, typeof TYPE>(TYPE);\n\n/**\n * A field element.\n *\n * @see {@link Field}\n * @category Elements\n */\nexport type FieldElement = ReturnType<typeof Field>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":";;;AAAA,mDAAsD;
|
|
1
|
+
{"version":3,"file":"FileInput.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":";;;AAAA,mDAAsD;AAsBtD,MAAM,IAAI,GAAG,WAAW,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACU,QAAA,SAAS,GAAG,IAAA,+BAAmB,EAA8B,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link FileInput} component.\n *\n * @property name - The name of the file input field. This is used to identify\n * the file input field in the form data.\n * @property label - The label of the file input field.\n * @property accept - The file types that the file input field accepts. If not\n * specified, the file input field accepts all file types.\n * @property compact - Whether the file input field is compact. Default is\n * `false`.\n * @property disabled - whether the file input is disabled.\n * @category Component Props\n */\nexport type FileInputProps = {\n name: string;\n accept?: string[] | undefined;\n compact?: boolean | undefined;\n disabled?: boolean | undefined;\n};\n\nconst TYPE = 'FileInput';\n\n/**\n * A file input component, which is used to create a file input field. This\n * component can only be used as a child of the {@link Field} component.\n *\n * The total size of the files that can be uploaded may not exceed 64 MB.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the file input field. This is used to\n * identify the file input field in the form data.\n * @param props.accept - The file types that the file input field accepts. If\n * not specified, the file input field accepts all file types. For examples of\n * valid values, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept).\n * @param props.compact - Whether the file input field is compact. Default is\n * `false`.\n * @param props.disabled - Whether the file input is disabled.\n * @returns A file input element.\n * @example\n * <FileInput name=\"file\" accept={['image/*']} />\n * @example\n * <FileInput name=\"file\" compact />\n * @example\n * <Field label=\"Upload file\">\n * <FileInput name=\"file\" />\n * </Field>\n * @category Components\n */\nexport const FileInput = createSnapComponent<FileInputProps, typeof TYPE>(TYPE);\n\n/**\n * A file input element.\n *\n * @see {@link FileInput}\n * @category Elements\n */\nexport type FileInputElement = ReturnType<typeof FileInput>;\n"]}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @property compact - Whether the file input field is compact. Default is
|
|
10
10
|
* `false`.
|
|
11
11
|
* @property disabled - whether the file input is disabled.
|
|
12
|
+
* @category Component Props
|
|
12
13
|
*/
|
|
13
14
|
export type FileInputProps = {
|
|
14
15
|
name: string;
|
|
@@ -40,12 +41,14 @@ export type FileInputProps = {
|
|
|
40
41
|
* <Field label="Upload file">
|
|
41
42
|
* <FileInput name="file" />
|
|
42
43
|
* </Field>
|
|
44
|
+
* @category Components
|
|
43
45
|
*/
|
|
44
46
|
export declare const FileInput: import("../../component.cjs").SnapComponent<FileInputProps, "FileInput">;
|
|
45
47
|
/**
|
|
46
48
|
* A file input element.
|
|
47
49
|
*
|
|
48
|
-
* @see FileInput
|
|
50
|
+
* @see {@link FileInput}
|
|
51
|
+
* @category Elements
|
|
49
52
|
*/
|
|
50
53
|
export type FileInputElement = ReturnType<typeof FileInput>;
|
|
51
54
|
//# sourceMappingURL=FileInput.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"FileInput.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,SAAS,sEAAyD,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @property compact - Whether the file input field is compact. Default is
|
|
10
10
|
* `false`.
|
|
11
11
|
* @property disabled - whether the file input is disabled.
|
|
12
|
+
* @category Component Props
|
|
12
13
|
*/
|
|
13
14
|
export type FileInputProps = {
|
|
14
15
|
name: string;
|
|
@@ -40,12 +41,14 @@ export type FileInputProps = {
|
|
|
40
41
|
* <Field label="Upload file">
|
|
41
42
|
* <FileInput name="file" />
|
|
42
43
|
* </Field>
|
|
44
|
+
* @category Components
|
|
43
45
|
*/
|
|
44
46
|
export declare const FileInput: import("../../component.mjs").SnapComponent<FileInputProps, "FileInput">;
|
|
45
47
|
/**
|
|
46
48
|
* A file input element.
|
|
47
49
|
*
|
|
48
|
-
* @see FileInput
|
|
50
|
+
* @see {@link FileInput}
|
|
51
|
+
* @category Elements
|
|
49
52
|
*/
|
|
50
53
|
export type FileInputElement = ReturnType<typeof FileInput>;
|
|
51
54
|
//# sourceMappingURL=FileInput.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"FileInput.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,SAAS,sEAAyD,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInput.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;
|
|
1
|
+
{"version":3,"file":"FileInput.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/FileInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AAsBtD,MAAM,IAAI,GAAG,WAAW,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,mBAAmB,CAA8B,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../../component';\n\n/**\n * The props of the {@link FileInput} component.\n *\n * @property name - The name of the file input field. This is used to identify\n * the file input field in the form data.\n * @property label - The label of the file input field.\n * @property accept - The file types that the file input field accepts. If not\n * specified, the file input field accepts all file types.\n * @property compact - Whether the file input field is compact. Default is\n * `false`.\n * @property disabled - whether the file input is disabled.\n * @category Component Props\n */\nexport type FileInputProps = {\n name: string;\n accept?: string[] | undefined;\n compact?: boolean | undefined;\n disabled?: boolean | undefined;\n};\n\nconst TYPE = 'FileInput';\n\n/**\n * A file input component, which is used to create a file input field. This\n * component can only be used as a child of the {@link Field} component.\n *\n * The total size of the files that can be uploaded may not exceed 64 MB.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the file input field. This is used to\n * identify the file input field in the form data.\n * @param props.accept - The file types that the file input field accepts. If\n * not specified, the file input field accepts all file types. For examples of\n * valid values, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept).\n * @param props.compact - Whether the file input field is compact. Default is\n * `false`.\n * @param props.disabled - Whether the file input is disabled.\n * @returns A file input element.\n * @example\n * <FileInput name=\"file\" accept={['image/*']} />\n * @example\n * <FileInput name=\"file\" compact />\n * @example\n * <Field label=\"Upload file\">\n * <FileInput name=\"file\" />\n * </Field>\n * @category Components\n */\nexport const FileInput = createSnapComponent<FileInputProps, typeof TYPE>(TYPE);\n\n/**\n * A file input element.\n *\n * @see {@link FileInput}\n * @category Elements\n */\nexport type FileInputElement = ReturnType<typeof FileInput>;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":";;;AACA,mDAAsD;
|
|
1
|
+
{"version":3,"file":"Form.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":";;;AACA,mDAAsD;AAiBtD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,IAAI,GAAG,IAAA,+BAAmB,EAAyB,IAAI,CAAC,CAAC","sourcesContent":["import type { GenericSnapElement, SnapsChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n// TODO: Add `onSubmit` prop to the `FormProps` type.\n\n/**\n * The props of the {@link Form} component.\n *\n * @property children - The children of the form.\n * @property name - The name of the form. This is used to identify the form in\n * the event handler.\n * @category Component Props\n */\nexport type FormProps = {\n children: SnapsChildren<GenericSnapElement>;\n name: string;\n};\n\nconst TYPE = 'Form';\n\n/**\n * A form component, which is used to create a form.\n *\n * @param props - The props of the component.\n * @param props.children - The form fields. This should be a single field or an\n * array of fields.\n * @param props.name - The name of the form. This is used to identify the form\n * in the event handler.\n * @returns A form element.\n * @example\n * <Form name=\"my-form\">\n * <Field label=\"Username\">\n * <Input name=\"username\" type=\"text\" />\n * </Field>\n * <Button type=\"submit\">Submit</Button>\n * </Form>\n * @category Components\n */\nexport const Form = createSnapComponent<FormProps, typeof TYPE>(TYPE);\n\n/**\n * A form element.\n *\n * @see {@link Form}\n * @category Elements\n */\nexport type FormElement = ReturnType<typeof Form>;\n"]}
|
|
@@ -5,6 +5,7 @@ import type { GenericSnapElement, SnapsChildren } from "../../component.cjs";
|
|
|
5
5
|
* @property children - The children of the form.
|
|
6
6
|
* @property name - The name of the form. This is used to identify the form in
|
|
7
7
|
* the event handler.
|
|
8
|
+
* @category Component Props
|
|
8
9
|
*/
|
|
9
10
|
export type FormProps = {
|
|
10
11
|
children: SnapsChildren<GenericSnapElement>;
|
|
@@ -26,12 +27,14 @@ export type FormProps = {
|
|
|
26
27
|
* </Field>
|
|
27
28
|
* <Button type="submit">Submit</Button>
|
|
28
29
|
* </Form>
|
|
30
|
+
* @category Components
|
|
29
31
|
*/
|
|
30
32
|
export declare const Form: import("../../component.cjs").SnapComponent<FormProps, "Form">;
|
|
31
33
|
/**
|
|
32
34
|
* A form element.
|
|
33
35
|
*
|
|
34
|
-
* @see Form
|
|
36
|
+
* @see {@link Form}
|
|
37
|
+
* @category Elements
|
|
35
38
|
*/
|
|
36
39
|
export type FormElement = ReturnType<typeof Form>;
|
|
37
40
|
//# sourceMappingURL=Form.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,4BAAwB;AAKzE
|
|
1
|
+
{"version":3,"file":"Form.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,4BAAwB;AAKzE;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,IAAI,4DAAoD,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@ import type { GenericSnapElement, SnapsChildren } from "../../component.mjs";
|
|
|
5
5
|
* @property children - The children of the form.
|
|
6
6
|
* @property name - The name of the form. This is used to identify the form in
|
|
7
7
|
* the event handler.
|
|
8
|
+
* @category Component Props
|
|
8
9
|
*/
|
|
9
10
|
export type FormProps = {
|
|
10
11
|
children: SnapsChildren<GenericSnapElement>;
|
|
@@ -26,12 +27,14 @@ export type FormProps = {
|
|
|
26
27
|
* </Field>
|
|
27
28
|
* <Button type="submit">Submit</Button>
|
|
28
29
|
* </Form>
|
|
30
|
+
* @category Components
|
|
29
31
|
*/
|
|
30
32
|
export declare const Form: import("../../component.mjs").SnapComponent<FormProps, "Form">;
|
|
31
33
|
/**
|
|
32
34
|
* A form element.
|
|
33
35
|
*
|
|
34
|
-
* @see Form
|
|
36
|
+
* @see {@link Form}
|
|
37
|
+
* @category Elements
|
|
35
38
|
*/
|
|
36
39
|
export type FormElement = ReturnType<typeof Form>;
|
|
37
40
|
//# sourceMappingURL=Form.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,4BAAwB;AAKzE
|
|
1
|
+
{"version":3,"file":"Form.d.mts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,4BAAwB;AAKzE;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAIF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,IAAI,4DAAoD,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;
|
|
1
|
+
{"version":3,"file":"Form.mjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,4BAAwB;AAiBtD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAyB,IAAI,CAAC,CAAC","sourcesContent":["import type { GenericSnapElement, SnapsChildren } from '../../component';\nimport { createSnapComponent } from '../../component';\n\n// TODO: Add `onSubmit` prop to the `FormProps` type.\n\n/**\n * The props of the {@link Form} component.\n *\n * @property children - The children of the form.\n * @property name - The name of the form. This is used to identify the form in\n * the event handler.\n * @category Component Props\n */\nexport type FormProps = {\n children: SnapsChildren<GenericSnapElement>;\n name: string;\n};\n\nconst TYPE = 'Form';\n\n/**\n * A form component, which is used to create a form.\n *\n * @param props - The props of the component.\n * @param props.children - The form fields. This should be a single field or an\n * array of fields.\n * @param props.name - The name of the form. This is used to identify the form\n * in the event handler.\n * @returns A form element.\n * @example\n * <Form name=\"my-form\">\n * <Field label=\"Username\">\n * <Input name=\"username\" type=\"text\" />\n * </Field>\n * <Button type=\"submit\">Submit</Button>\n * </Form>\n * @category Components\n */\nexport const Form = createSnapComponent<FormProps, typeof TYPE>(TYPE);\n\n/**\n * A form element.\n *\n * @see {@link Form}\n * @category Elements\n */\nexport type FormElement = ReturnType<typeof Form>;\n"]}
|
|
@@ -24,6 +24,7 @@ const TYPE = 'Input';
|
|
|
24
24
|
* <Input name="username" type="text" />
|
|
25
25
|
* @example
|
|
26
26
|
* <Input name="numeric" type="number" min={1} max={100} step={1} />
|
|
27
|
+
* @category Components
|
|
27
28
|
*/
|
|
28
29
|
exports.Input = (0, component_1.createSnapComponent)(TYPE);
|
|
29
30
|
//# sourceMappingURL=Input.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Input.ts"],"names":[],"mappings":";;;AAAA,mDAAsD;
|
|
1
|
+
{"version":3,"file":"Input.cjs","sourceRoot":"","sources":["../../../../src/jsx/components/form/Input.ts"],"names":[],"mappings":";;;AAAA,mDAAsD;AAwDtD,MAAM,IAAI,GAAG,OAAO,CAAC;AAErB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACU,QAAA,KAAK,GAAG,IAAA,+BAAmB,EAA0B,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../../component';\n\n// TODO: Add the `onChange` prop to the `InputProps` type.\n\n/**\n * @category Component Props\n */\nexport type GenericInputProps = {\n name: string;\n value?: string | undefined;\n placeholder?: string | undefined;\n disabled?: boolean | undefined;\n};\n\n/**\n * @category Component Props\n */\nexport type TextInputProps = { type: 'text' } & GenericInputProps;\n\n/**\n * @category Component Props\n */\nexport type PasswordInputProps = { type: 'password' } & GenericInputProps;\n\n/**\n * @category Component Props\n */\nexport type NumberInputProps = {\n type: 'number';\n min?: number;\n max?: number;\n step?: number;\n} & GenericInputProps;\n\n/**\n * The props of the {@link Input} component.\n *\n * @property name - The name of the input field. This is used to identify the\n * input field in the form data.\n * @property type - The type of the input field. Defaults to `text`.\n * @property value - The value of the input field.\n * @property placeholder - The placeholder text of the input field.\n * @property min - The minimum value of the input field.\n * Only applicable to the type `number` input.\n * @property max - The maximum value of the input field.\n * Only applicable to the type `number` input.\n * @property step - The step value of the input field.\n * Only applicable to the type `number` input.\n * @category Component Props\n */\nexport type InputProps =\n | GenericInputProps\n | TextInputProps\n | PasswordInputProps\n | NumberInputProps;\n\nconst TYPE = 'Input';\n\n/**\n * An input component, which is used to create an input field.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the input field. This is used to identify the\n * input field in the form data.\n * @param props.type - The type of the input field.\n * @param props.value - The value of the input field.\n * @param props.placeholder - The placeholder text of the input field.\n * @param props.min - The minimum value of the input field.\n * Only applicable to the type `number` input.\n * @param props.max - The maximum value of the input field.\n * Only applicable to the type `number` input.\n * @param props.step - The step value of the input field.\n * Only applicable to the type `number` input.\n * @param props.disabled - Whether the input is disabled.\n * @returns An input element.\n * @example\n * <Input name=\"username\" type=\"text\" />\n * @example\n * <Input name=\"numeric\" type=\"number\" min={1} max={100} step={1} />\n * @category Components\n */\nexport const Input = createSnapComponent<InputProps, typeof TYPE>(TYPE);\n\n/**\n * An input element.\n *\n * @see {@link Input}\n * @category Elements\n */\nexport type InputElement = ReturnType<typeof Input>;\n"]}
|
|
@@ -1,15 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @category Component Props
|
|
3
|
+
*/
|
|
1
4
|
export type GenericInputProps = {
|
|
2
5
|
name: string;
|
|
3
6
|
value?: string | undefined;
|
|
4
7
|
placeholder?: string | undefined;
|
|
5
8
|
disabled?: boolean | undefined;
|
|
6
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* @category Component Props
|
|
12
|
+
*/
|
|
7
13
|
export type TextInputProps = {
|
|
8
14
|
type: 'text';
|
|
9
15
|
} & GenericInputProps;
|
|
16
|
+
/**
|
|
17
|
+
* @category Component Props
|
|
18
|
+
*/
|
|
10
19
|
export type PasswordInputProps = {
|
|
11
20
|
type: 'password';
|
|
12
21
|
} & GenericInputProps;
|
|
22
|
+
/**
|
|
23
|
+
* @category Component Props
|
|
24
|
+
*/
|
|
13
25
|
export type NumberInputProps = {
|
|
14
26
|
type: 'number';
|
|
15
27
|
min?: number;
|
|
@@ -30,6 +42,7 @@ export type NumberInputProps = {
|
|
|
30
42
|
* Only applicable to the type `number` input.
|
|
31
43
|
* @property step - The step value of the input field.
|
|
32
44
|
* Only applicable to the type `number` input.
|
|
45
|
+
* @category Component Props
|
|
33
46
|
*/
|
|
34
47
|
export type InputProps = GenericInputProps | TextInputProps | PasswordInputProps | NumberInputProps;
|
|
35
48
|
/**
|
|
@@ -53,12 +66,14 @@ export type InputProps = GenericInputProps | TextInputProps | PasswordInputProps
|
|
|
53
66
|
* <Input name="username" type="text" />
|
|
54
67
|
* @example
|
|
55
68
|
* <Input name="numeric" type="number" min={1} max={100} step={1} />
|
|
69
|
+
* @category Components
|
|
56
70
|
*/
|
|
57
71
|
export declare const Input: import("../../component.cjs").SnapComponent<InputProps, "Input">;
|
|
58
72
|
/**
|
|
59
73
|
* An input element.
|
|
60
74
|
*
|
|
61
|
-
* @see Input
|
|
75
|
+
* @see {@link Input}
|
|
76
|
+
* @category Elements
|
|
62
77
|
*/
|
|
63
78
|
export type InputElement = ReturnType<typeof Input>;
|
|
64
79
|
//# sourceMappingURL=Input.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Input.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,iBAAiB,CAAC;AAEtB
|
|
1
|
+
{"version":3,"file":"Input.d.cts","sourceRoot":"","sources":["../../../../src/jsx/components/form/Input.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,iBAAiB,CAAC;AAEtB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,UAAU,GAClB,iBAAiB,GACjB,cAAc,GACd,kBAAkB,GAClB,gBAAgB,CAAC;AAIrB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,KAAK,8DAAqD,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC"}
|