bootstrap 5.0.0.beta1 → 5.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/README.md +3 -3
  4. data/assets/javascripts/bootstrap-global-this-define.js +6 -0
  5. data/assets/javascripts/bootstrap-global-this-undefine.js +2 -0
  6. data/assets/javascripts/bootstrap-sprockets.js +3 -0
  7. data/assets/javascripts/bootstrap.js +429 -486
  8. data/assets/javascripts/bootstrap.min.js +3 -3
  9. data/assets/javascripts/bootstrap/alert.js +81 -80
  10. data/assets/javascripts/bootstrap/base-component.js +75 -0
  11. data/assets/javascripts/bootstrap/button.js +60 -72
  12. data/assets/javascripts/bootstrap/carousel.js +131 -110
  13. data/assets/javascripts/bootstrap/collapse.js +94 -77
  14. data/assets/javascripts/bootstrap/dom/data.js +3 -3
  15. data/assets/javascripts/bootstrap/dom/event-handler.js +6 -5
  16. data/assets/javascripts/bootstrap/dom/manipulator.js +3 -3
  17. data/assets/javascripts/bootstrap/dom/selector-engine.js +6 -11
  18. data/assets/javascripts/bootstrap/dropdown.js +159 -90
  19. data/assets/javascripts/bootstrap/modal.js +132 -125
  20. data/assets/javascripts/bootstrap/popover.js +73 -25
  21. data/assets/javascripts/bootstrap/scrollspy.js +93 -76
  22. data/assets/javascripts/bootstrap/tab.js +78 -82
  23. data/assets/javascripts/bootstrap/toast.js +79 -75
  24. data/assets/javascripts/bootstrap/tooltip.js +207 -185
  25. data/assets/stylesheets/_bootstrap-grid.scss +3 -3
  26. data/assets/stylesheets/_bootstrap-reboot.scss +3 -3
  27. data/assets/stylesheets/_bootstrap.scss +3 -3
  28. data/assets/stylesheets/bootstrap/_accordion.scss +1 -0
  29. data/assets/stylesheets/bootstrap/_alert.scss +6 -6
  30. data/assets/stylesheets/bootstrap/_carousel.scss +12 -6
  31. data/assets/stylesheets/bootstrap/_close.scss +1 -1
  32. data/assets/stylesheets/bootstrap/_dropdown.scss +29 -15
  33. data/assets/stylesheets/bootstrap/_list-group.scss +5 -5
  34. data/assets/stylesheets/bootstrap/_nav.scss +5 -0
  35. data/assets/stylesheets/bootstrap/_navbar.scss +12 -1
  36. data/assets/stylesheets/bootstrap/_pagination.scss +2 -2
  37. data/assets/stylesheets/bootstrap/_popover.scss +0 -15
  38. data/assets/stylesheets/bootstrap/_reboot.scss +6 -6
  39. data/assets/stylesheets/bootstrap/_tables.scss +1 -1
  40. data/assets/stylesheets/bootstrap/_toasts.scss +1 -0
  41. data/assets/stylesheets/bootstrap/_utilities.scss +6 -0
  42. data/assets/stylesheets/bootstrap/_variables.scss +30 -7
  43. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +5 -5
  44. data/assets/stylesheets/bootstrap/forms/_form-check.scss +1 -0
  45. data/assets/stylesheets/bootstrap/forms/_form-range.scss +1 -1
  46. data/assets/stylesheets/bootstrap/forms/_form-select.scss +1 -2
  47. data/assets/stylesheets/bootstrap/forms/_validation.scss +1 -1
  48. data/assets/stylesheets/bootstrap/helpers/_ratio.scss +2 -2
  49. data/assets/stylesheets/bootstrap/helpers/_visually-hidden.scss +1 -1
  50. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +4 -4
  51. data/assets/stylesheets/bootstrap/mixins/_forms.scss +13 -6
  52. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +4 -0
  53. data/assets/stylesheets/bootstrap/mixins/_visually-hidden.scss +3 -2
  54. data/assets/stylesheets/bootstrap/utilities/_api.scss +1 -1
  55. data/bootstrap.gemspec +1 -3
  56. data/lib/bootstrap/version.rb +2 -2
  57. data/tasks/updater/js.rb +15 -2
  58. data/test/dummy_rails/app/assets/javascripts/application.js +4 -3
  59. data/test/dummy_rails/app/views/layouts/application.html.erb +3 -1
  60. data/test/dummy_rails/app/views/pages/root.html +89 -0
  61. data/test/dummy_rails/config/application.rb +0 -3
  62. data/test/gemfiles/rails_6_1.gemfile +7 -0
  63. metadata +13 -36
  64. data/test/dummy_rails/app/views/pages/root.html.slim +0 -58
@@ -0,0 +1,89 @@
1
+ <nav class="navbar navbar-expand-lg navbar-light bg-light">
2
+ <div class="container-fluid">
3
+ <a class="navbar-brand" href="#">Navbar</a>
4
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
5
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
6
+ <span class="navbar-toggler-icon"></span>
7
+ </button>
8
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
9
+ <ul class="navbar-nav me-auto mb-2 mb-lg-0">
10
+ <li class="nav-item">
11
+ <a class="nav-link active" aria-current="page" href="#">Home</a>
12
+ </li>
13
+ <li class="nav-item">
14
+ <a class="nav-link" href="#">Link</a>
15
+ </li>
16
+ <li class="nav-item dropdown">
17
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown"
18
+ aria-expanded="false">
19
+ Dropdown
20
+ </a>
21
+ <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
22
+ <li><a class="dropdown-item" href="#">Action</a></li>
23
+ <li><a class="dropdown-item" href="#">Another action</a></li>
24
+ <li>
25
+ <hr class="dropdown-divider">
26
+ </li>
27
+ <li><a class="dropdown-item" href="#">Something else here</a></li>
28
+ </ul>
29
+ </li>
30
+ <li class="nav-item">
31
+ <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
32
+ </li>
33
+ </ul>
34
+ <form class="d-flex">
35
+ <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
36
+ <button class="btn btn-outline-success" type="submit">Search</button>
37
+ </form>
38
+ </div>
39
+ </div>
40
+ </nav>
41
+
42
+ <div class="container">
43
+ <div class="row">
44
+ <div class="card" style="width: 18rem;">
45
+ <div class="card-body">
46
+ <h5 class="card-title">Card title</h5>
47
+ <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's
48
+ content.</p>
49
+ <a href="#" class="btn btn-primary">Go somewhere</a>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ <div class="row">
54
+ <div class="col-sm">
55
+ <div class="card" style="width: 18rem;">
56
+ <ul class="list-group list-group-flush">
57
+ <li class="list-group-item">An item</li>
58
+ <li class="list-group-item">A second item</li>
59
+ <li class="list-group-item">A third item</li>
60
+ </ul>
61
+ </div>
62
+ </div>
63
+ <div class="col-sm">
64
+ <div class="btn-group" role="group" aria-label="Basic mixed styles example">
65
+ <button type="button" class="btn btn-danger">Left</button>
66
+ <button type="button" class="btn btn-warning">Middle</button>
67
+ <button type="button" class="btn btn-success">Right</button>
68
+ </div>
69
+ </div>
70
+ <div class="col-sm">
71
+ <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top"
72
+ title="Tooltip on top">
73
+ Tooltip on top
74
+ </button>
75
+ <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="right"
76
+ title="Tooltip on right">
77
+ Tooltip on right
78
+ </button>
79
+ <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="bottom"
80
+ title="Tooltip on bottom">
81
+ Tooltip on bottom
82
+ </button>
83
+ <button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="left"
84
+ title="Tooltip on left">
85
+ Tooltip on left
86
+ </button>
87
+ </div>
88
+ </div>
89
+ </div>
@@ -11,11 +11,8 @@ require 'rails'
11
11
  end
12
12
 
13
13
  require 'autoprefixer-rails'
14
- require 'slim-rails'
15
14
  require 'uglifier'
16
-
17
15
  require 'bootstrap'
18
- require 'jquery-rails'
19
16
 
20
17
  module Dummy
21
18
  class Application < Rails::Application
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'actionpack', '~> 6.1.3'
4
+ gem 'activesupport', '~> 6.1.3'
5
+ gem 'autoprefixer-rails', '>= 9.7.6'
6
+
7
+ gemspec path: '../../'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta1
4
+ version: 5.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: popper_js
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.14.3
19
+ version: 2.8.6
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '2'
22
+ version: '3'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.14.3
29
+ version: 2.8.6
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '2'
32
+ version: '3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sassc-rails
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -184,34 +184,6 @@ dependencies:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
186
  version: 2.3.2
187
- - !ruby/object:Gem::Dependency
188
- name: jquery-rails
189
- requirement: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - ">="
192
- - !ruby/object:Gem::Version
193
- version: 3.1.0
194
- type: :development
195
- prerelease: false
196
- version_requirements: !ruby/object:Gem::Requirement
197
- requirements:
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- version: 3.1.0
201
- - !ruby/object:Gem::Dependency
202
- name: slim-rails
203
- requirement: !ruby/object:Gem::Requirement
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- version: '0'
208
- type: :development
209
- prerelease: false
210
- version_requirements: !ruby/object:Gem::Requirement
211
- requirements:
212
- - - ">="
213
- - !ruby/object:Gem::Version
214
- version: '0'
215
187
  - !ruby/object:Gem::Dependency
216
188
  name: uglifier
217
189
  requirement: !ruby/object:Gem::Requirement
@@ -240,10 +212,13 @@ files:
240
212
  - LICENSE
241
213
  - README.md
242
214
  - Rakefile
215
+ - assets/javascripts/bootstrap-global-this-define.js
216
+ - assets/javascripts/bootstrap-global-this-undefine.js
243
217
  - assets/javascripts/bootstrap-sprockets.js
244
218
  - assets/javascripts/bootstrap.js
245
219
  - assets/javascripts/bootstrap.min.js
246
220
  - assets/javascripts/bootstrap/alert.js
221
+ - assets/javascripts/bootstrap/base-component.js
247
222
  - assets/javascripts/bootstrap/button.js
248
223
  - assets/javascripts/bootstrap/carousel.js
249
224
  - assets/javascripts/bootstrap/collapse.js
@@ -357,7 +332,7 @@ files:
357
332
  - test/dummy_rails/app/controllers/pages_controller.rb
358
333
  - test/dummy_rails/app/helpers/application_helper.rb
359
334
  - test/dummy_rails/app/views/layouts/application.html.erb
360
- - test/dummy_rails/app/views/pages/root.html.slim
335
+ - test/dummy_rails/app/views/pages/root.html
361
336
  - test/dummy_rails/config.ru
362
337
  - test/dummy_rails/config/application.rb
363
338
  - test/dummy_rails/config/boot.rb
@@ -380,6 +355,7 @@ files:
380
355
  - test/gemfiles/rails_5_0.gemfile
381
356
  - test/gemfiles/rails_5_1.gemfile
382
357
  - test/gemfiles/rails_6_0.gemfile
358
+ - test/gemfiles/rails_6_1.gemfile
383
359
  - test/rails_test.rb
384
360
  - test/support/dummy_rails_integration.rb
385
361
  - test/support/reporting.rb
@@ -421,7 +397,7 @@ test_files:
421
397
  - test/dummy_rails/app/controllers/pages_controller.rb
422
398
  - test/dummy_rails/app/helpers/application_helper.rb
423
399
  - test/dummy_rails/app/views/layouts/application.html.erb
424
- - test/dummy_rails/app/views/pages/root.html.slim
400
+ - test/dummy_rails/app/views/pages/root.html
425
401
  - test/dummy_rails/config.ru
426
402
  - test/dummy_rails/config/application.rb
427
403
  - test/dummy_rails/config/boot.rb
@@ -444,6 +420,7 @@ test_files:
444
420
  - test/gemfiles/rails_5_0.gemfile
445
421
  - test/gemfiles/rails_5_1.gemfile
446
422
  - test/gemfiles/rails_6_0.gemfile
423
+ - test/gemfiles/rails_6_1.gemfile
447
424
  - test/rails_test.rb
448
425
  - test/support/dummy_rails_integration.rb
449
426
  - test/support/reporting.rb
@@ -1,58 +0,0 @@
1
- .navbar.navbar-dark.bg-inverse: .container-fluid
2
- button.navbar-toggler.hidden-sm-up type="button" data-toggle="collapse" data-target="#c1" &#9776
3
- .collapse.navbar-toggleable-xs#c1
4
- a.navbar-brand href="#" Bootstrap Test Rails App
5
- ul.nav.navbar-nav
6
- li.nav-item.active: a.nav-link href="#"
7
- ' Home
8
- span.sr-only (current)
9
- li.nav-item: a.nav-link href="#" Link
10
- li.nav-item.dropdown
11
- a.nav-link.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
12
- ' Dropdown
13
- span.caret
14
- .dropdown-menu role="menu"
15
- a.dropdown-item href="#" Action
16
- a.dropdown-item href="#" Another action
17
- a.dropdown-item href="#" Something else here
18
- a.dropdown-divider
19
- a.dropdown-item href="#" Separated ank
20
- a.dropdown-divider
21
- a.dropdown-item href="#" One more separated link
22
-
23
- .container
24
- .card
25
- .card-header: h3 Dummy App
26
- .card-block: .row
27
- .col-sm-3
28
- h2 3 columns
29
- .list-group
30
- a.list-group-item href='#one' One
31
- a.list-group-item href='#two' Two
32
- a.list-group-item href='#three' Three
33
- .col-sm-3
34
- h2 3 columns
35
- .btn-group
36
- button.btn.btn-primary type='button' Button
37
- button.btn.btn-primary type='button' Button
38
- table.table
39
- caption Table
40
- tr
41
- td.table-danger Danger!
42
- td.table-success Success!
43
- .col-sm-6
44
- h2 6 columns
45
- .row
46
- .col-xs-4.col-xs-push-4: .card: .card-block
47
- .card-text data-toggle="tooltip" title="hi"
48
- h6 This is col-xs-4 col-xs-push-4.<br><small>Hover for tooltip.</small>
49
-
50
- .card: .card-block: form.form-inline
51
- .form-group
52
- label.sr-only for="exampleInputEmail2" Email address
53
- input.form-control#exampleInputEmail2 type="email" placeholder="Enter email"
54
- .checkbox
55
- label
56
- input type="checkbox"
57
- | Remember me
58
- button.btn.btn-default type="submit" Sign in