Skip to content

Commit 178dc6a

Browse files
author
Monaye Win
committed
initial commit
1 parent 2c72069 commit 178dc6a

15 files changed

Lines changed: 9565 additions & 0 deletions

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.idea
2+
/vendor
3+
/node_modules
4+
package-lock.json
5+
composer.phar
6+
composer.lock
7+
phpunit.xml
8+
.phpunit.result.cache
9+
.DS_Store
10+
Thumbs.db

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) Monaye Win
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

composer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "monaye/simple-link-button",
3+
"description": "A Laravel Nova field.",
4+
"keywords": [
5+
"laravel",
6+
"nova"
7+
],
8+
"license": "MIT",
9+
"require": {
10+
"php": ">=7.1.0"
11+
},
12+
"autoload": {
13+
"psr-4": {
14+
"Monaye\\SimpleLinkButton\\": "src/"
15+
}
16+
},
17+
"extra": {
18+
"laravel": {
19+
"providers": [
20+
"Monaye\\SimpleLinkButton\\FieldServiceProvider"
21+
]
22+
}
23+
},
24+
"config": {
25+
"sort-packages": true
26+
},
27+
"minimum-stability": "dev",
28+
"prefer-stable": true
29+
}

config/simple-link-button.php

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Buttons Classes
7+
|--------------------------------------------------------------------------
8+
|
9+
| This key value pair allows you to override the default nova button styles
10+
| and add entirely new style key value pairs altogether that you need.
11+
| The css classes below are Tailwind-CSS that are come with Nova.
12+
|
13+
*/
14+
15+
'buttons' => [
16+
17+
'fill' => [
18+
// Fill
19+
'primary' => 'dim btn btn-default btn-primary',
20+
'success' => 'dim btn btn-default bg-success text-white',
21+
'warning' => 'dim btn btn-default bg-warning text-white',
22+
'danger' => 'dim btn btn-default bg-danger text-white',
23+
'info' => 'dim btn btn-default bg-info text-white',
24+
'grey' => 'dim btn btn-default bg-60 text-white',
25+
],
26+
27+
'outline' => [
28+
// Outline
29+
'primary' => 'dim btn btn-default border border-primary text-primary',
30+
'success' => 'dim btn btn-default border border-success text-success',
31+
'warning' => 'dim btn btn-default border border-warning text-warning ',
32+
'danger' => 'dim btn btn-default border border-danger text-danger ',
33+
'info' => 'dim btn btn-default border border-info text-info ',
34+
'grey' => 'dim btn btn-default border border-60 text-80 ',
35+
],
36+
37+
'link' => [
38+
// Link
39+
'primary' => 'dim btn btn-link text-primary',
40+
'success' => 'dim btn btn-link text-success',
41+
'warning' => 'dim btn btn-link text-warning',
42+
'danger' => 'dim btn btn-link text-danger',
43+
'info' => 'dim btn btn-link text-info',
44+
'grey' => 'dim btn btn-link text-80',
45+
],
46+
47+
'myown' => [
48+
'neutral' => 'dim btn btn-default bg-30 text-70',
49+
]
50+
],
51+
];

dist/css/field.css

Whitespace-only changes.

0 commit comments

Comments
 (0)