Skip to content

Commit 4de15be

Browse files
committed
chore: package build fix
1 parent ac9ed6c commit 4de15be

File tree

5 files changed

+11
-62
lines changed

5 files changed

+11
-62
lines changed

packages/speeddial/README.md

Lines changed: 6 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -26,42 +26,6 @@ Be sure to run a new build after adding plugins to avoid any issues.
2626
### Usage
2727

2828

29-
## Plain NativeScript
30-
31-
<span style="color:red">IMPORTANT: </span>_Make sure you include `xmlns:mdf="@nativescript-community/ui-material-speeddial"` on the Page element_
32-
33-
### XML
34-
35-
```XML
36-
<Page xmlns:mdf="@nativescript-community/ui-material-speeddial">
37-
<StackLayout horizontalAlignment="center">
38-
<mdf:speeddial src="res://ic_action_add"/>
39-
<mdf:speeddial elevation="5" src="res://ic_action_add"/>
40-
</StackLayout>
41-
</Page>
42-
```
43-
44-
### CSS
45-
46-
```CSS
47-
mdcspeeddial {
48-
ripple-color: blue;
49-
elevation: 4;
50-
}
51-
```
52-
53-
## NativeScript + Angular
54-
55-
```typescript
56-
import { registerElement } from '@nativescript/angular/element-registry';
57-
import { speeddial } from '@nativescript-community/ui-material-speeddial';
58-
registerElement('MDspeeddial', () => speeddial);
59-
```
60-
61-
```html
62-
<MDspeeddial rippleColor="blue" src="res://ic_action_add"></MDspeeddial>
63-
```
64-
6529
## NativeScript + Vue
6630

6731
```javascript
@@ -72,23 +36,10 @@ Vue.use(speeddialPlugin);
7236
```
7337

7438
```html
75-
<MDspeeddial rippleColor="blue" src="res://ic_action_add"/>
39+
<MDSpeedDial buttonFontSize="26" text="mdi-one-up" buttonClass="mdi" buttonBackgroundColor="yellow" @tap="onTap">
40+
<MDSpeedDialItem icon="res://ic_action_add" title="test1" backgroundColor="red" @tap="onTap"/>
41+
<MDSpeedDialItem text="mdi-card-account-mail" title="test2" buttonClass="mdi" backgroundColor="green" @tap="onTap"/>
42+
<MDSpeedDialItem backgroundImage="~/images/iu.jpg" backgroundColor="blue" @tap="onTap"/>
43+
<MDSpeedDialItem icon="res://ic_action_add" title="test4" backgroundColor="orange" @tap="onTap"/>
44+
</MDSpeedDial>
7645
```
77-
78-
## Attributes
79-
80-
Inherite from Nativescript [Button](https://docs.nativescript.org/ui/ns-ui-widgets/button) so it already has all the same attributes
81-
82-
## Attributes
83-
84-
* **src** _optional_
85-
86-
An attribute to set the speeddial icon. For now FAB only support images as icon
87-
88-
* **elevation** _optional_
89-
90-
An attribute to set the elevation of the speeddial. This will increase the 'drop-shadow' of the speeddial.
91-
92-
* **rippleColor** _optional_
93-
94-
An attribute to set the ripple color of the speeddial.

packages/speeddial/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
"readmeFilename": "README.md",
3939
"dependencies": {
4040
"@nativescript-community/ui-material-core": "^5.0.30",
41-
"@nativescript-community/ui-material-button": "^5.0.30",
42-
"@nativescript-community/ui-material-floatingactionbutton": "^5.0.30"
41+
"@nativescript-community/ui-material-button": "^5.0.30"
4342
},
4443
"gitHead": "4c4cbf51853396a743eac602ffb6d740d4b77ac2"
4544
}

packages/speeddial/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"@nativescript-community/ui-material-core": ["packages/core/index"],
1010
"@nativescript-community/ui-material-core/*": ["packages/core/*"],
1111
"@nativescript-community/ui-material-button": ["packages/button/button"],
12-
"@nativescript-community/ui-material-button/*": ["packages/button/*"],
13-
"@nativescript-community/ui-material-floatingactionbutton": ["packages/floatingactionbutton/floatingactionbutton"],
14-
"@nativescript-community/ui-material-floatingactionbutton/*": ["packages/floatingactionbutton/*"],
12+
"@nativescript-community/ui-material-button/*": ["packages/button/*"]
1513
}
1614
},
1715
"include": ["../../src/speeddial/**/*.ts", "../../references.d.ts", "../../src/references.d.ts"],

src/speeddial/angular/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"umdModuleIds": {
99
"@nativescript/core": "ns-core",
1010
"@nativescript/angular": "ns-angular",
11+
"@nativescript-community/ui-material-button": "ns-material-button",
1112
"@nativescript-community/ui-material-speeddial": "ns-material-speeddial"
1213
}
1314
},

src/speeddial/angular/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"@nativescript-community/ui-material-core/*": ["packages/core/*"],
1010
"@nativescript-community/ui-material-speeddial": ["packages/speeddial/index"],
1111
"@nativescript-community/ui-material-speeddial/*": ["packages/speeddial/*"],
12-
"@nativescript-community/ui-material-floatingactionbutton": ["packages/floatingactionbutton/floatingactionbutton"],
13-
"@nativescript-community/ui-material-floatingactionbutton/*": ["packages/floatingactionbutton/*"]
12+
"@nativescript-community/ui-material-button": ["packages/button/button"],
13+
"@nativescript-community/ui-material-button/*": ["packages/button/*"]
1414
}
1515
},
1616
"include": ["./**/*.ts", "../../../references.d.ts", "../../references.d.ts"],

0 commit comments

Comments
 (0)