Skip to content

Commit

Permalink
updated widget docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcurbelo committed Jan 31, 2024
1 parent 9894e36 commit 1d15162
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 40 deletions.
2 changes: 0 additions & 2 deletions packages/widgets/src/components/nk-dialog/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
- [nk-drop-mint-winter-button](../nk-drop-mint-winter-button)
- [nk-edition-mint-button](../nk-edition-mint-button)
- [nk-edition-mint-crossmint-button](../nk-edition-mint-crossmint-button)
- [nk-pro-mint-button](../nk-pro-mint-button)

### Graph
```mermaid
Expand All @@ -33,7 +32,6 @@ graph TD;
nk-drop-mint-winter-button --> nk-dialog
nk-edition-mint-button --> nk-dialog
nk-edition-mint-crossmint-button --> nk-dialog
nk-pro-mint-button --> nk-dialog
style nk-dialog fill:#f9f,stroke:#333,stroke-width:4px
```

Expand Down
14 changes: 8 additions & 6 deletions packages/widgets/src/components/nk-drop-mint-button/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@

## Properties

| Property | Attribute | Description | Type | Default |
| ----------------- | ------------------- | --------------------------------- | -------- | ------------------------------ |
| `successLink` | `success-link` | Link on the success modal | `string` | `''` |
| `successLinkText` | `success-link-text` | Link text on the success modal | `string` | `'here'` |
| `successMessage` | `success-message` | Body message on the success modal | `string` | `'Successfully minted an NFT'` |
| `successTitle` | `success-title` | Title on the success modal | `string` | `'Success'` |
| Property | Attribute | Description | Type | Default |
| ------------------ | -------------------- | ----------------------------------------------- | -------- | ------------------------------ |
| `successImageUrl` | `success-image-url` | Image url for the success modal | `string` | `''` |
| `successLink` | `success-link` | Link on the success modal | `string` | `''` |
| `successLinkText` | `success-link-text` | Link text on the success modal | `string` | `'here'` |
| `successMessage` | `success-message` | Body message on the success modal | `string` | `'Successfully minted an NFT'` |
| `successTextAlign` | `success-text-align` | Align text on the success modal (default: left) | `string` | `''` |
| `successTitle` | `success-title` | Title on the success modal | `string` | `'Success'` |


## Methods
Expand Down
38 changes: 6 additions & 32 deletions packages/widgets/src/components/nk-pro-mint-button/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,12 @@

## Properties

| Property | Attribute | Description | Type | Default |
| ---------------- | ----------------- | --------------------------------- | -------- | ------------------------------ |
| `successMessage` | `success-message` | Body message on the success modal | `string` | `'Successfully minted an NFT'` |
| `successTitle` | `success-title` | Title on the success modal | `string` | `'Success'` |


## Methods

### `mint(quantity: number) => Promise<void>`



#### Returns

Type: `Promise<void>`


| Property | Attribute | Description | Type | Default |
| --------------------------- | --------------- | ------------- | --------- | ----------- |
| `collectionId` _(required)_ | `collection-id` | Collection ID | `string` | `undefined` |
| `isDev` | `is-dev` | | `boolean` | `undefined` |
| `publicKey` _(required)_ | `public-key` | Public Key | `string` | `undefined` |
| `unique` | `unique` | | `boolean` | `undefined` |


## Shadow Parts
Expand All @@ -32,22 +21,7 @@ Type: `Promise<void>`
| ---------------------- | ----------- |
| `"mint-btn"` | |
| `"mint-btn-container"` | |
| `"mint-dropdown-icon"` | |
| `"mint-text"` | |


## Dependencies

### Depends on

- [nk-dialog](../nk-dialog)

### Graph
```mermaid
graph TD;
nk-pro-mint-button --> nk-dialog
style nk-pro-mint-button fill:#f9f,stroke:#333,stroke-width:4px
```

----------------------------------------------

Expand Down

0 comments on commit 1d15162

Please sign in to comment.