Skip to content

Commit

Permalink
v2.0.4
Browse files Browse the repository at this point in the history
- Upgrade Bootstrap to `v4.6.1`.
- Upgrade Bootstrap Icons to `v1.8.1`.
- Improved Web Example.
  - Added icons, date range picker and accordion.
  - Added SCSS file.
- sdk: '>=2.15.0 <3.0.0'
- bones_ui: ^2.0.8
- amdjs: ^2.0.2
- dom_tools: ^2.1.0
- dom_builder: ^2.0.8
- lints: ^1.0.1
- sass_builder: ^2.1.3
- dependency_validator: ^3.1.0
  • Loading branch information
gmpassos committed Mar 6, 2022
1 parent 17c4f04 commit 18440d1
Show file tree
Hide file tree
Showing 370 changed files with 3,148 additions and 2,052 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ build/

# Directory created by dartdoc
doc/api/

.DS_Store
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## 2.0.4

- Upgrade Bootstrap to `v4.6.1`.
- Upgrade Bootstrap Icons to `v1.8.1`.
- Improved Web Example.
- Added icons, date range picker and accordion.
- Added SCSS file.
- sdk: '>=2.15.0 <3.0.0'
- bones_ui: ^2.0.8
- amdjs: ^2.0.2
- dom_tools: ^2.1.0
- dom_builder: ^2.0.8
- lints: ^1.0.1
- sass_builder: ^2.1.3
- dependency_validator: ^3.1.0

## 2.0.3

- `Bootstrap.enableTooltip` now using named parameters.
Expand Down
8 changes: 3 additions & 5 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Defines a default set of lint rules enforced for
# projects at Google. For details and rationale,
# see https://github.com/dart-lang/pedantic#enabled-lints.
include: package:pedantic/analysis_options.yaml

include: package:lints/recommended.yaml

# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
# Uncomment to specify additional rules.
# linter:
# rules:
# - camel_case_types

analyzer:
#analyzer:
# exclude:
# - path/to/excluded/files/**
4 changes: 2 additions & 2 deletions bones_ui_bootstrap.iml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
Expand Down
30 changes: 27 additions & 3 deletions example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,38 @@ class MyPage extends UIComponent {
return [
$header(content: '''
<nav class="navbar navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="#">Fixed navbar</a>
<a class="navbar-brand" href="#">
<ui-svg width="20px" height="20px" src="${BootstrapIcons.getIconPath('app-indicator')}"></ui-svg>
Fixed navbar
</a>
</nav>
'''),
$div(classes: 'container', content: '''
$div(classes: 'container', content: [
'''
<br>
<h1 class="mt-5">Welcome</h1>
This is <b>Bones_UI</b> with <b>Bootstrap</b>!
'''),
<br><br>
''',
'<hr>',
'<b>BootstrapIcons</b>: &nbsp;',
BootstrapIcons.allIcons
.sublist(0, 15)
.map((name) => BootstrapIcons.svgIconElement(name,
width: 20, style: 'margin: 2px 4px'))
.toList(),
' ...',
'<hr>',
'<b>BSDateRangePicker</b>: &nbsp;',
BSDateRangePicker(content!),
'<hr>',
'<b>BSAccordion</b>: <br>',
BSAccordion(content!, [
AccordionItem('A Title', 'A text'),
AccordionItem('B Title', 'B text'),
AccordionItem('C Title', 'C text'),
]),
]),
$footer(classes: 'footer fixed-bottom', content: [
$hr,
$div(
Expand Down
13 changes: 13 additions & 0 deletions example/styles.css → example/styles.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
@import url(https://fonts.googleapis.com/css?family=Roboto);

/*
* The Dart dependency `sass_builder` is needed to
* automatically build this SCSS file to a CSS file.
*/

$light: #fff;
$dark: #1b344e;

html, body {
background-color: $light;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}

.bg-dark {
background-color: $dark !important;
}

#output {
padding: 20px;
text-align: center;
Expand Down
1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/css/bootstrap-grid.css.map

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/css/bootstrap-reboot.css.map

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/css/bootstrap-reboot.min.css.map

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/css/bootstrap.css.map

This file was deleted.

7 changes: 0 additions & 7 deletions lib/bootstrap-4.6.0/css/bootstrap.min.css

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/css/bootstrap.min.css.map

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/js/bootstrap.bundle.js.map

This file was deleted.

7 changes: 0 additions & 7 deletions lib/bootstrap-4.6.0/js/bootstrap.bundle.min.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/js/bootstrap.bundle.min.js.map

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/js/bootstrap.js.map

This file was deleted.

7 changes: 0 additions & 7 deletions lib/bootstrap-4.6.0/js/bootstrap.min.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/bootstrap-4.6.0/js/bootstrap.min.js.map

This file was deleted.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/bootstrap-4.6.1/css/bootstrap-grid.css.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/bootstrap-4.6.1/css/bootstrap-reboot.css.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/bootstrap-4.6.1/css/bootstrap-reboot.min.css.map

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/bootstrap-4.6.1/css/bootstrap.css.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions lib/bootstrap-4.6.1/css/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/bootstrap-4.6.1/css/bootstrap.min.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 18440d1

Please sign in to comment.