Skip to content

Commit

Permalink
Add flyout
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJltres committed Aug 17, 2023
1 parent 62e3cab commit 346373d
Show file tree
Hide file tree
Showing 7 changed files with 1,914 additions and 2,669 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ Now you can use [VS Code Extension Readme](https://github.com/fomantic/Fomantic-
| **Embed** | |
| `ui-embed` | An embed can display any web content |
| `ui-embed-simple` | An embed can display any web content with no JavaScript |
| **Flyout** | |
| `ui-flyout` | Flyouts are the result of a marriage between Modal and Sidebar |
| **Emoji** | |
| `ui-emoji` | You can provide the emoji shortname with or without colons |
| **Feed** | |
Expand Down Expand Up @@ -365,6 +367,8 @@ Now you can use [VS Code Extension Readme](https://github.com/fomantic/Fomantic-
| `ui-dropdown` | Initializes dropdown with jQuery |
| **Embed** | |
| `ui-embed` | Creates a container |
| **Flyout** | |
| `ui-flyout` | Initializes flyout with jQuery |
| **Form** | |
| `ui-form` | A form validation behavior checks data against a set of criteria before passing it along to the server |
| **Modal** | |
Expand Down
4,523 changes: 1,855 additions & 2,668 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"devDependencies": {
"@types/node": "^14.0.26",
"typescript": "^3.9.7",
"webpack": "^4.44.0",
"webpack": "^5.88.2",
"webpack-cli": "^3.3.12"
},
"dependencies": {
Expand Down
18 changes: 18 additions & 0 deletions snippets/fomantic-css.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,24 @@
"<i class=\"${0:ae} flag\"></i>$0"
]
},
"Fomantic-UI Default Flyout CSS": {
"prefix": "ui-flyout",
"description": "A standard flyout",
"body": [
"<div class=\"ui flyout\">",
" <i class=\"close icon\"></i>",
" <div class=\"ui header\">",
" <i class=\"${1:question} icon\"></i>",
" <div class=\"content\">",
" ${2:Some header}",
" </div>",
" </div>",
" <div class=\"content\">",
" <p>${3:Some text}</p>",
" </div>",
"</div>"
]
},
"Fomantic-UI Default Form": {
"prefix": "ui-form",
"description": "A form",
Expand Down
7 changes: 7 additions & 0 deletions snippets/fomantic-js.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
"$('${1:.ui.embed}').embed($2);"
]
},
"Fomantic-UI Default Flyout": {
"prefix": "ui-flyout",
"description": "A standard flyout",
"body": [
"$('${1:.ui.flyout}').flyout($2);"
]
},
"Fomantic-UI Default Form Validation": {
"prefix": "ui-form",
"description": "A form validation behavior checks data against a set of criteria before passing it along to the server",
Expand Down
20 changes: 20 additions & 0 deletions src/components/flyout-css.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Fomantic-UI Default Flyout CSS": {
"prefix": "ui-flyout",
"description": "A standard flyout",
"body": [
"<div class=\"ui flyout\">",
" <i class=\"close icon\"></i>",
" <div class=\"ui header\">",
" <i class=\"${1:question} icon\"></i>",
" <div class=\"content\">",
" ${2:Some header}",
" </div>",
" </div>",
" <div class=\"content\">",
" <p>${3:Some text}</p>",
" </div>",
"</div>"
]
}
}
9 changes: 9 additions & 0 deletions src/components/flyout-js.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Fomantic-UI Default Flyout": {
"prefix": "ui-flyout",
"description": "A standard flyout",
"body": [
"$('${1:.ui.flyout}').flyout($2);"
]
}
}

0 comments on commit 346373d

Please sign in to comment.