Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
feat(Tabs): added value prop
Browse files Browse the repository at this point in the history
  • Loading branch information
TheComputerM committed Oct 19, 2020
1 parent e61165c commit 0d96d7e
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 27 deletions.
2 changes: 1 addition & 1 deletion packages/api-generator/dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/api-generator/src/Avatar.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"readonly": false,
"type": {
"kind": "type",
"text": "string",
"type": "string"
"text": "object",
"type": "object"
},
"defaultValue": ""
"defaultValue": null
}
],
"computed": [],
Expand Down
80 changes: 74 additions & 6 deletions packages/api-generator/src/Input.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@
},
"localName": "klass"
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "value",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "object",
"type": "object"
},
"defaultValue": null
},
{
"visibility": "public",
"description": null,
Expand Down Expand Up @@ -77,6 +92,65 @@
},
"defaultValue": false
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "counter",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "boolean",
"type": "boolean"
},
"defaultValue": false
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "hint",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "string",
"type": "string"
},
"defaultValue": ""
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "messages",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "any",
"type": "any"
}
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "messagesCount",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "number",
"type": "number"
},
"defaultValue": 1
},
{
"visibility": "public",
"description": null,
Expand Down Expand Up @@ -127,12 +201,6 @@
"visibility": "public",
"parameters": []
},
{
"name": "messages",
"description": null,
"visibility": "public",
"parameters": []
},
{
"name": "append-outer",
"description": null,
Expand Down
14 changes: 14 additions & 0 deletions packages/api-generator/src/Tab.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@
"type": "object"
},
"defaultValue": null
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "value",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "any",
"type": "any"
}
}
],
"computed": [],
Expand Down
15 changes: 0 additions & 15 deletions packages/api-generator/src/TextField.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,21 +247,6 @@
"type": "any"
}
},
{
"visibility": "public",
"description": null,
"keywords": [],
"name": "errorCount",
"kind": "let",
"static": false,
"readonly": false,
"type": {
"kind": "type",
"text": "number",
"type": "number"
},
"defaultValue": 1
},
{
"visibility": "public",
"description": null,
Expand Down
3 changes: 1 addition & 2 deletions packages/svelte-materialify/src/components/Tabs/Tab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
export { klass as class };
export let activeClass = '';
export let disabled = null;
export let value = index();
let active;
const value = index();
register((values) => {
active = values.includes(value);
});
Expand Down

0 comments on commit 0d96d7e

Please sign in to comment.