3.0.0 • Published 1 year ago

@mymonero/mymonero-web-components v3.0.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
1 year ago

#MyMonero Web Components plugin

This npm module is a collection of Lit-based web components. These components are used by the desktop, Android and web versions of the MyMonero wallet.

The package is comprised of the following components:

  • Activity Indicator <activity-indicator> - A generic, customisable activity indicator component
  • Provider Card <provider-card> - A UI component used to display MyMonero's various Exchange service providers
  • Searchable Select <searchable-select> - A dropdown-based searchable select web component
  • Wallet Selector <wallet-selector> - A component that renders a list of XMR wallets

Installation

npm i @mymonero/mymonero-web-components

Usage

To make use of these components, import this module the same way you would a normal NPM package.

In your javascript file:

require('@mymonero/mymonero-web-components');

This will register the web component custom element tags, making them available for use in your HTML DOM

Then, in your HTML, use any of the custom elements like so:

<activity-indicator></activity-indicator>

Detailed usage documentation


Activity Indicator

Shows an animated indicator alongside an optional text message.

<activity-indicator .loadingText=${"Loading supported currencies"}></activity-indicator>

Suggested usage of this element would include a conditional expression to specify whether it should be hidden or not. For example:

<activity-indicator ?hidden=${this.hideActivityIndicator}></activity-indicator>


Provider Card

<provider-card .service=${service}></provider-card>

.service should be a JSON object in the following format:

{

    service_provider: "localmonero",
    title: "Buy Monero using LocalMonero",
    description: "Long description text"
}

Searchable Select

A drop-down based select input field. Pass a list of your values in the following format:

[
    {
        label: "Text to show inside <option> tag", 
        value: "Value for `<option value=${value}>`"
    }
]

<searchable-select .values=${fiatCurrencies}></searchable-select>

Emits the event searchable-select-update once a use selects a value


Wallet selector

<wallet-selector></wallet-selector>

3.0.0

1 year ago

2.1.33

1 year ago

2.1.27

2 years ago

2.2.0-alpha.0

2 years ago

2.1.29

2 years ago

2.1.32

2 years ago

2.1.19

2 years ago

2.1.25

2 years ago

2.1.26

2 years ago

2.1.23

2 years ago

2.1.24

2 years ago

2.1.21

2 years ago

2.1.22

2 years ago

2.1.20

2 years ago

2.1.9

2 years ago

2.1.14

2 years ago

2.1.12

2 years ago

2.1.13

2 years ago

2.1.10

2 years ago

2.1.11

2 years ago

2.1.8

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.7

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.3.4

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.3.1-alpha.1

2 years ago

1.3.1-alpha.0

2 years ago

1.3.1-alpha.2

2 years ago

1.3.0

2 years ago

1.3.0-alpha.28

3 years ago

1.3.0-alpha.22

3 years ago

1.3.0-alpha.23

3 years ago

1.3.0-alpha.24

3 years ago

1.3.0-alpha.25

3 years ago

1.3.0-alpha.20

3 years ago

1.3.0-alpha.21

3 years ago

1.3.0-alpha.15

3 years ago

1.3.0-alpha.19

3 years ago

1.3.0-alpha.11

3 years ago

1.3.0-alpha.8

3 years ago

1.3.0-alpha.7

3 years ago

1.3.0-alpha.6

3 years ago

1.3.0-alpha.5

3 years ago

1.3.0-alpha.3

3 years ago

1.3.0-alpha.2

3 years ago

1.3.0-alpha.1

3 years ago

1.3.0-alpha.0

3 years ago