administrate-bootstrap-theme 0.1.9 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +72 -31
  3. data/app/assets/javascripts/administrate-bootstrap-theme/bootstrap.bundle.js +6780 -0
  4. data/app/assets/stylesheets/administrate-bootstrap-theme/_base.scss +2 -10
  5. data/app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss +8 -1
  6. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_accordion.scss +4 -2
  7. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_alert.scss +0 -0
  8. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_badge.scss +0 -0
  9. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_breadcrumb.scss +0 -0
  10. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_button-group.scss +0 -0
  11. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_buttons.scss +0 -0
  12. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_card.scss +7 -6
  13. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_carousel.scss +2 -2
  14. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_close.scss +0 -0
  15. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_containers.scss +0 -0
  16. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_dropdown.scss +11 -17
  17. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_forms.scss +0 -0
  18. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_functions.scss +94 -3
  19. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss +33 -0
  20. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_helpers.scss +2 -0
  21. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_images.scss +1 -1
  22. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_list-group.scss +5 -5
  23. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_mixins.scss +2 -0
  24. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_modal.scss +7 -35
  25. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_nav.scss +0 -0
  26. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_navbar.scss +30 -1
  27. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_offcanvas.scss +19 -13
  28. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_pagination.scss +0 -0
  29. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss +51 -0
  30. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_popover.scss +10 -10
  31. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_progress.scss +0 -0
  32. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_reboot.scss +12 -8
  33. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss +53 -0
  34. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_spinners.scss +2 -2
  35. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_tables.scss +1 -0
  36. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_toasts.scss +3 -3
  37. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_tooltip.scss +4 -4
  38. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_transitions.scss +6 -0
  39. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_type.scss +0 -0
  40. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_utilities.scss +44 -8
  41. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/_variables.scss +193 -28
  42. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap-grid.scss +1 -1
  43. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap-reboot.scss +1 -1
  44. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap-utilities.scss +1 -1
  45. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/bootstrap.scss +2 -1
  46. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_floating-labels.scss +3 -1
  47. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-check.scss +1 -1
  48. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-control.scss +1 -1
  49. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-range.scss +1 -1
  50. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-select.scss +3 -0
  51. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_form-text.scss +0 -0
  52. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_input-group.scss +0 -0
  53. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_labels.scss +0 -0
  54. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/forms/_validation.scss +0 -0
  55. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_clearfix.scss +0 -0
  56. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_colored-links.scss +0 -0
  57. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_position.scss +0 -0
  58. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_ratio.scss +0 -0
  59. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss +15 -0
  60. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_stretched-link.scss +0 -0
  61. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_text-truncation.scss +0 -0
  62. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/helpers/_visually-hidden.scss +0 -0
  63. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss +8 -0
  64. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_alert.scss +0 -0
  65. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss +14 -0
  66. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_border-radius.scss +0 -0
  67. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_box-shadow.scss +0 -0
  68. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_breakpoints.scss +0 -0
  69. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_buttons.scss +1 -1
  70. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_caret.scss +0 -0
  71. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_clearfix.scss +0 -0
  72. data/app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_color-scheme.scss +7 -0
  73. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_container.scss +0 -0
  74. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_deprecate.scss +0 -0
  75. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_forms.scss +15 -5
  76. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_gradients.scss +0 -0
  77. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_grid.scss +40 -10
  78. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_image.scss +0 -0
  79. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_list-group.scss +0 -0
  80. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_lists.scss +0 -0
  81. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_pagination.scss +0 -0
  82. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_reset-text.scss +0 -0
  83. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_resize.scss +0 -0
  84. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_table-variants.scss +0 -0
  85. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_text-truncate.scss +0 -0
  86. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_transition.scss +0 -0
  87. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_utilities.scss +27 -6
  88. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/mixins/_visually-hidden.scss +0 -0
  89. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/utilities/_api.scss +0 -0
  90. data/{node_modules/bootstrap/scss → app/assets/stylesheets/administrate-bootstrap-theme/bootstrap}/vendor/_rfs.scss +55 -13
  91. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss +8 -0
  92. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss +8 -0
  93. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss +9 -0
  94. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss +8 -0
  95. data/app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss +8 -0
  96. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +21 -1
  97. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss +1 -1
  98. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss +2 -0
  99. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss +22 -3
  100. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss +1 -1
  101. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss +5 -0
  102. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss +5 -0
  103. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss +5 -0
  104. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss +5 -0
  105. data/app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss +5 -0
  106. data/app/assets/stylesheets/administrate-bootstrap-theme/theme.scss +10 -51
  107. data/lib/administrate-bootstrap-theme/engine.rb +0 -2
  108. data/lib/administrate-bootstrap-theme/version.rb +2 -1
  109. data/lib/generators/administrate_bootstrap_theme/install/USAGE +10 -0
  110. data/lib/generators/administrate_bootstrap_theme/install/install_generator.rb +33 -0
  111. data/package.json +10 -0
  112. metadata +123 -111
  113. data/Rakefile +0 -16
  114. data/app/assets/javascripts/administrate-bootstrap-theme/theme.js +0 -2
  115. data/node_modules/bootstrap/js/src/alert.js +0 -141
  116. data/node_modules/bootstrap/js/src/base-component.js +0 -46
  117. data/node_modules/bootstrap/js/src/button.js +0 -95
  118. data/node_modules/bootstrap/js/src/carousel.js +0 -624
  119. data/node_modules/bootstrap/js/src/collapse.js +0 -410
  120. data/node_modules/bootstrap/js/src/dom/data.js +0 -57
  121. data/node_modules/bootstrap/js/src/dom/event-handler.js +0 -331
  122. data/node_modules/bootstrap/js/src/dom/manipulator.js +0 -80
  123. data/node_modules/bootstrap/js/src/dom/selector-engine.js +0 -75
  124. data/node_modules/bootstrap/js/src/dropdown.js +0 -543
  125. data/node_modules/bootstrap/js/src/modal.js +0 -582
  126. data/node_modules/bootstrap/js/src/offcanvas.js +0 -279
  127. data/node_modules/bootstrap/js/src/popover.js +0 -171
  128. data/node_modules/bootstrap/js/src/scrollspy.js +0 -319
  129. data/node_modules/bootstrap/js/src/tab.js +0 -220
  130. data/node_modules/bootstrap/js/src/toast.js +0 -219
  131. data/node_modules/bootstrap/js/src/tooltip.js +0 -802
  132. data/node_modules/bootstrap/js/src/util/index.js +0 -253
  133. data/node_modules/bootstrap/js/src/util/sanitizer.js +0 -127
  134. data/node_modules/bootstrap/js/src/util/scrollbar.js +0 -70
  135. data/node_modules/bootstrap/scss/_grid.scss +0 -22
  136. data/node_modules/bootstrap/scss/_root.scss +0 -16
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AdministrateBootstrapTheme
4
+ class InstallGenerator < Rails::Generators::Base
5
+ source_root File.expand_path('templates', __dir__)
6
+
7
+ def append_assets
8
+ append_file 'config/initializers/assets.rb', <<~FILE
9
+ Rails.application.config.assets.precompile += %w[
10
+ administrate-bootstrap-theme.scss
11
+ administrate-bootstrap-theme/theme.css
12
+ administrate-bootstrap-theme/bootstrap.bundle.js
13
+ ]
14
+ FILE
15
+ end
16
+
17
+ def create_stylesheets_assets
18
+ create_file 'app/assets/stylesheets/administrate-bootstrap-theme.scss', <<~FILE
19
+ @import 'administrate-bootstrap-theme/colors/default';
20
+ @import 'administrate-bootstrap-theme/fonts/source_sans_pro';
21
+ @import 'administrate-bootstrap-theme/theme';
22
+ FILE
23
+ end
24
+
25
+ def create_initializer
26
+ initializer 'administrate_bootstrap_theme.rb', <<~FILE
27
+ Administrate::Engine.stylesheets.clear # required to remove Administrate base styles
28
+ Administrate::Engine.add_stylesheet('administrate-bootstrap-theme')
29
+ Administrate::Engine.add_javascript('administrate-bootstrap-theme/bootstrap.bundle.js')
30
+ FILE
31
+ end
32
+ end
33
+ end
data/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "administrate-bootstrap-theme",
3
+ "version": "1.0.1",
4
+ "main": "index.js",
5
+ "author": "Mattia Roccoberton <mat@blocknot.es>",
6
+ "license": "MIT",
7
+ "dependencies": {
8
+ "bootstrap": "^5.0.1"
9
+ }
10
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate-bootstrap-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-24 00:00:00.000000000 Z
11
+ date: 2021-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: administrate
@@ -24,7 +24,21 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.14'
27
- description: A Bootstrap theme for Administrate
27
+ - !ruby/object:Gem::Dependency
28
+ name: sassc
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.4'
41
+ description: 'A Bootstrap theme for Administrate: clean design, easy to install, customizable'
28
42
  email:
29
43
  - mat@blocknot.es
30
44
  executables: []
@@ -33,127 +47,125 @@ extra_rdoc_files: []
33
47
  files:
34
48
  - MIT-LICENSE
35
49
  - README.md
36
- - Rakefile
37
50
  - app/assets/config/administrate-bootstrap-theme_manifest.js
38
- - app/assets/javascripts/administrate-bootstrap-theme/theme.js
51
+ - app/assets/javascripts/administrate-bootstrap-theme/bootstrap.bundle.js
39
52
  - app/assets/stylesheets/administrate-bootstrap-theme/_base.scss
40
53
  - app/assets/stylesheets/administrate-bootstrap-theme/_variables.scss
54
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_accordion.scss
55
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_alert.scss
56
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_badge.scss
57
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_breadcrumb.scss
58
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_button-group.scss
59
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_buttons.scss
60
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_card.scss
61
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_carousel.scss
62
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_close.scss
63
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_containers.scss
64
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_dropdown.scss
65
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_forms.scss
66
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_functions.scss
67
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_grid.scss
68
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_helpers.scss
69
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_images.scss
70
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_list-group.scss
71
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_mixins.scss
72
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_modal.scss
73
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_nav.scss
74
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_navbar.scss
75
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_offcanvas.scss
76
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_pagination.scss
77
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_placeholders.scss
78
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_popover.scss
79
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_progress.scss
80
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_reboot.scss
81
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_root.scss
82
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_spinners.scss
83
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tables.scss
84
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_toasts.scss
85
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_tooltip.scss
86
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_transitions.scss
87
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_type.scss
88
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_utilities.scss
89
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/_variables.scss
90
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-grid.scss
91
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-reboot.scss
92
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap-utilities.scss
93
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/bootstrap.scss
94
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_floating-labels.scss
95
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-check.scss
96
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-control.scss
97
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-range.scss
98
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-select.scss
99
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_form-text.scss
100
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_input-group.scss
101
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_labels.scss
102
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/forms/_validation.scss
103
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_clearfix.scss
104
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_colored-links.scss
105
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_position.scss
106
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_ratio.scss
107
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stacks.scss
108
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_stretched-link.scss
109
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_text-truncation.scss
110
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_visually-hidden.scss
111
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/helpers/_vr.scss
112
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_alert.scss
113
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_backdrop.scss
114
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_border-radius.scss
115
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_box-shadow.scss
116
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_breakpoints.scss
117
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_buttons.scss
118
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_caret.scss
119
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_clearfix.scss
120
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_color-scheme.scss
121
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_container.scss
122
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_deprecate.scss
123
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_forms.scss
124
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_gradients.scss
125
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_grid.scss
126
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_image.scss
127
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_list-group.scss
128
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_lists.scss
129
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_pagination.scss
130
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_reset-text.scss
131
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_resize.scss
132
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_table-variants.scss
133
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_text-truncate.scss
134
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_transition.scss
135
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_utilities.scss
136
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/mixins/_visually-hidden.scss
137
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/utilities/_api.scss
138
+ - app/assets/stylesheets/administrate-bootstrap-theme/bootstrap/vendor/_rfs.scss
139
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_autumn.scss
140
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_default.scss
141
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_forest.scss
142
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_industrial.scss
143
+ - app/assets/stylesheets/administrate-bootstrap-theme/colors/_water.scss
41
144
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss
42
145
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_content_header.scss
43
146
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss
44
147
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_navigation.scss
45
148
  - app/assets/stylesheets/administrate-bootstrap-theme/components/_pagination.scss
149
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_lato.scss
150
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_montserrat.scss
151
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_open_sans.scss
152
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_roboto.scss
153
+ - app/assets/stylesheets/administrate-bootstrap-theme/fonts/_source_sans_pro.scss
46
154
  - app/assets/stylesheets/administrate-bootstrap-theme/theme.scss
47
155
  - lib/administrate-bootstrap-theme.rb
48
156
  - lib/administrate-bootstrap-theme/engine.rb
49
157
  - lib/administrate-bootstrap-theme/version.rb
50
- - node_modules/bootstrap/js/src/alert.js
51
- - node_modules/bootstrap/js/src/base-component.js
52
- - node_modules/bootstrap/js/src/button.js
53
- - node_modules/bootstrap/js/src/carousel.js
54
- - node_modules/bootstrap/js/src/collapse.js
55
- - node_modules/bootstrap/js/src/dom/data.js
56
- - node_modules/bootstrap/js/src/dom/event-handler.js
57
- - node_modules/bootstrap/js/src/dom/manipulator.js
58
- - node_modules/bootstrap/js/src/dom/selector-engine.js
59
- - node_modules/bootstrap/js/src/dropdown.js
60
- - node_modules/bootstrap/js/src/modal.js
61
- - node_modules/bootstrap/js/src/offcanvas.js
62
- - node_modules/bootstrap/js/src/popover.js
63
- - node_modules/bootstrap/js/src/scrollspy.js
64
- - node_modules/bootstrap/js/src/tab.js
65
- - node_modules/bootstrap/js/src/toast.js
66
- - node_modules/bootstrap/js/src/tooltip.js
67
- - node_modules/bootstrap/js/src/util/index.js
68
- - node_modules/bootstrap/js/src/util/sanitizer.js
69
- - node_modules/bootstrap/js/src/util/scrollbar.js
70
- - node_modules/bootstrap/scss/_accordion.scss
71
- - node_modules/bootstrap/scss/_alert.scss
72
- - node_modules/bootstrap/scss/_badge.scss
73
- - node_modules/bootstrap/scss/_breadcrumb.scss
74
- - node_modules/bootstrap/scss/_button-group.scss
75
- - node_modules/bootstrap/scss/_buttons.scss
76
- - node_modules/bootstrap/scss/_card.scss
77
- - node_modules/bootstrap/scss/_carousel.scss
78
- - node_modules/bootstrap/scss/_close.scss
79
- - node_modules/bootstrap/scss/_containers.scss
80
- - node_modules/bootstrap/scss/_dropdown.scss
81
- - node_modules/bootstrap/scss/_forms.scss
82
- - node_modules/bootstrap/scss/_functions.scss
83
- - node_modules/bootstrap/scss/_grid.scss
84
- - node_modules/bootstrap/scss/_helpers.scss
85
- - node_modules/bootstrap/scss/_images.scss
86
- - node_modules/bootstrap/scss/_list-group.scss
87
- - node_modules/bootstrap/scss/_mixins.scss
88
- - node_modules/bootstrap/scss/_modal.scss
89
- - node_modules/bootstrap/scss/_nav.scss
90
- - node_modules/bootstrap/scss/_navbar.scss
91
- - node_modules/bootstrap/scss/_offcanvas.scss
92
- - node_modules/bootstrap/scss/_pagination.scss
93
- - node_modules/bootstrap/scss/_popover.scss
94
- - node_modules/bootstrap/scss/_progress.scss
95
- - node_modules/bootstrap/scss/_reboot.scss
96
- - node_modules/bootstrap/scss/_root.scss
97
- - node_modules/bootstrap/scss/_spinners.scss
98
- - node_modules/bootstrap/scss/_tables.scss
99
- - node_modules/bootstrap/scss/_toasts.scss
100
- - node_modules/bootstrap/scss/_tooltip.scss
101
- - node_modules/bootstrap/scss/_transitions.scss
102
- - node_modules/bootstrap/scss/_type.scss
103
- - node_modules/bootstrap/scss/_utilities.scss
104
- - node_modules/bootstrap/scss/_variables.scss
105
- - node_modules/bootstrap/scss/bootstrap-grid.scss
106
- - node_modules/bootstrap/scss/bootstrap-reboot.scss
107
- - node_modules/bootstrap/scss/bootstrap-utilities.scss
108
- - node_modules/bootstrap/scss/bootstrap.scss
109
- - node_modules/bootstrap/scss/forms/_floating-labels.scss
110
- - node_modules/bootstrap/scss/forms/_form-check.scss
111
- - node_modules/bootstrap/scss/forms/_form-control.scss
112
- - node_modules/bootstrap/scss/forms/_form-range.scss
113
- - node_modules/bootstrap/scss/forms/_form-select.scss
114
- - node_modules/bootstrap/scss/forms/_form-text.scss
115
- - node_modules/bootstrap/scss/forms/_input-group.scss
116
- - node_modules/bootstrap/scss/forms/_labels.scss
117
- - node_modules/bootstrap/scss/forms/_validation.scss
118
- - node_modules/bootstrap/scss/helpers/_clearfix.scss
119
- - node_modules/bootstrap/scss/helpers/_colored-links.scss
120
- - node_modules/bootstrap/scss/helpers/_position.scss
121
- - node_modules/bootstrap/scss/helpers/_ratio.scss
122
- - node_modules/bootstrap/scss/helpers/_stretched-link.scss
123
- - node_modules/bootstrap/scss/helpers/_text-truncation.scss
124
- - node_modules/bootstrap/scss/helpers/_visually-hidden.scss
125
- - node_modules/bootstrap/scss/mixins/_alert.scss
126
- - node_modules/bootstrap/scss/mixins/_border-radius.scss
127
- - node_modules/bootstrap/scss/mixins/_box-shadow.scss
128
- - node_modules/bootstrap/scss/mixins/_breakpoints.scss
129
- - node_modules/bootstrap/scss/mixins/_buttons.scss
130
- - node_modules/bootstrap/scss/mixins/_caret.scss
131
- - node_modules/bootstrap/scss/mixins/_clearfix.scss
132
- - node_modules/bootstrap/scss/mixins/_container.scss
133
- - node_modules/bootstrap/scss/mixins/_deprecate.scss
134
- - node_modules/bootstrap/scss/mixins/_forms.scss
135
- - node_modules/bootstrap/scss/mixins/_gradients.scss
136
- - node_modules/bootstrap/scss/mixins/_grid.scss
137
- - node_modules/bootstrap/scss/mixins/_image.scss
138
- - node_modules/bootstrap/scss/mixins/_list-group.scss
139
- - node_modules/bootstrap/scss/mixins/_lists.scss
140
- - node_modules/bootstrap/scss/mixins/_pagination.scss
141
- - node_modules/bootstrap/scss/mixins/_reset-text.scss
142
- - node_modules/bootstrap/scss/mixins/_resize.scss
143
- - node_modules/bootstrap/scss/mixins/_table-variants.scss
144
- - node_modules/bootstrap/scss/mixins/_text-truncate.scss
145
- - node_modules/bootstrap/scss/mixins/_transition.scss
146
- - node_modules/bootstrap/scss/mixins/_utilities.scss
147
- - node_modules/bootstrap/scss/mixins/_visually-hidden.scss
148
- - node_modules/bootstrap/scss/utilities/_api.scss
149
- - node_modules/bootstrap/scss/vendor/_rfs.scss
158
+ - lib/generators/administrate_bootstrap_theme/install/USAGE
159
+ - lib/generators/administrate_bootstrap_theme/install/install_generator.rb
160
+ - package.json
150
161
  homepage: https://github.com/blocknotes/administrate-bootstrap-theme
151
162
  licenses:
152
163
  - MIT
153
164
  metadata:
154
165
  homepage_uri: https://github.com/blocknotes/administrate-bootstrap-theme
155
166
  source_code_uri: https://github.com/blocknotes/administrate-bootstrap-theme
156
- post_install_message:
167
+ rubygems_mfa_required: 'true'
168
+ post_install_message:
157
169
  rdoc_options: []
158
170
  require_paths:
159
171
  - lib
@@ -161,15 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
173
  requirements:
162
174
  - - ">="
163
175
  - !ruby/object:Gem::Version
164
- version: '0'
176
+ version: 2.5.0
165
177
  required_rubygems_version: !ruby/object:Gem::Requirement
166
178
  requirements:
167
179
  - - ">="
168
180
  - !ruby/object:Gem::Version
169
181
  version: '0'
170
182
  requirements: []
171
- rubygems_version: 3.0.3
172
- signing_key:
183
+ rubygems_version: 3.0.3.1
184
+ signing_key:
173
185
  specification_version: 4
174
- summary: Bootstrap Administrate Theme
186
+ summary: Administrate Bootstrap Theme
175
187
  test_files: []
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
-
5
- begin
6
- require 'rspec/core/rake_task'
7
-
8
- RSpec::Core::RakeTask.new(:spec) do |t|
9
- # t.ruby_opts = %w[-w]
10
- t.rspec_opts = ['--color', '--format documentation']
11
- end
12
-
13
- task default: :spec
14
- rescue LoadError
15
- puts '! LoadError: no RSpec available'
16
- end
@@ -1,2 +0,0 @@
1
- //= require bootstrap/dist/js/bootstrap.bundle
2
-
@@ -1,141 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): alert.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import {
9
- defineJQueryPlugin,
10
- emulateTransitionEnd,
11
- getElementFromSelector,
12
- getTransitionDurationFromElement
13
- } from './util/index'
14
- import Data from './dom/data'
15
- import EventHandler from './dom/event-handler'
16
- import BaseComponent from './base-component'
17
-
18
- /**
19
- * ------------------------------------------------------------------------
20
- * Constants
21
- * ------------------------------------------------------------------------
22
- */
23
-
24
- const NAME = 'alert'
25
- const DATA_KEY = 'bs.alert'
26
- const EVENT_KEY = `.${DATA_KEY}`
27
- const DATA_API_KEY = '.data-api'
28
-
29
- const SELECTOR_DISMISS = '[data-bs-dismiss="alert"]'
30
-
31
- const EVENT_CLOSE = `close${EVENT_KEY}`
32
- const EVENT_CLOSED = `closed${EVENT_KEY}`
33
- const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
34
-
35
- const CLASS_NAME_ALERT = 'alert'
36
- const CLASS_NAME_FADE = 'fade'
37
- const CLASS_NAME_SHOW = 'show'
38
-
39
- /**
40
- * ------------------------------------------------------------------------
41
- * Class Definition
42
- * ------------------------------------------------------------------------
43
- */
44
-
45
- class Alert extends BaseComponent {
46
- // Getters
47
-
48
- static get DATA_KEY() {
49
- return DATA_KEY
50
- }
51
-
52
- // Public
53
-
54
- close(element) {
55
- const rootElement = element ? this._getRootElement(element) : this._element
56
- const customEvent = this._triggerCloseEvent(rootElement)
57
-
58
- if (customEvent === null || customEvent.defaultPrevented) {
59
- return
60
- }
61
-
62
- this._removeElement(rootElement)
63
- }
64
-
65
- // Private
66
-
67
- _getRootElement(element) {
68
- return getElementFromSelector(element) || element.closest(`.${CLASS_NAME_ALERT}`)
69
- }
70
-
71
- _triggerCloseEvent(element) {
72
- return EventHandler.trigger(element, EVENT_CLOSE)
73
- }
74
-
75
- _removeElement(element) {
76
- element.classList.remove(CLASS_NAME_SHOW)
77
-
78
- if (!element.classList.contains(CLASS_NAME_FADE)) {
79
- this._destroyElement(element)
80
- return
81
- }
82
-
83
- const transitionDuration = getTransitionDurationFromElement(element)
84
-
85
- EventHandler.one(element, 'transitionend', () => this._destroyElement(element))
86
- emulateTransitionEnd(element, transitionDuration)
87
- }
88
-
89
- _destroyElement(element) {
90
- if (element.parentNode) {
91
- element.parentNode.removeChild(element)
92
- }
93
-
94
- EventHandler.trigger(element, EVENT_CLOSED)
95
- }
96
-
97
- // Static
98
-
99
- static jQueryInterface(config) {
100
- return this.each(function () {
101
- let data = Data.get(this, DATA_KEY)
102
-
103
- if (!data) {
104
- data = new Alert(this)
105
- }
106
-
107
- if (config === 'close') {
108
- data[config](this)
109
- }
110
- })
111
- }
112
-
113
- static handleDismiss(alertInstance) {
114
- return function (event) {
115
- if (event) {
116
- event.preventDefault()
117
- }
118
-
119
- alertInstance.close(this)
120
- }
121
- }
122
- }
123
-
124
- /**
125
- * ------------------------------------------------------------------------
126
- * Data Api implementation
127
- * ------------------------------------------------------------------------
128
- */
129
-
130
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert.handleDismiss(new Alert()))
131
-
132
- /**
133
- * ------------------------------------------------------------------------
134
- * jQuery
135
- * ------------------------------------------------------------------------
136
- * add .Alert to jQuery only if jQuery is present
137
- */
138
-
139
- defineJQueryPlugin(NAME, Alert)
140
-
141
- export default Alert
@@ -1,46 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): base-component.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import Data from './dom/data'
9
-
10
- /**
11
- * ------------------------------------------------------------------------
12
- * Constants
13
- * ------------------------------------------------------------------------
14
- */
15
-
16
- const VERSION = '5.0.0-beta3'
17
-
18
- class BaseComponent {
19
- constructor(element) {
20
- element = typeof element === 'string' ? document.querySelector(element) : element
21
-
22
- if (!element) {
23
- return
24
- }
25
-
26
- this._element = element
27
- Data.set(this._element, this.constructor.DATA_KEY, this)
28
- }
29
-
30
- dispose() {
31
- Data.remove(this._element, this.constructor.DATA_KEY)
32
- this._element = null
33
- }
34
-
35
- /** Static */
36
-
37
- static getInstance(element) {
38
- return Data.get(element, this.DATA_KEY)
39
- }
40
-
41
- static get VERSION() {
42
- return VERSION
43
- }
44
- }
45
-
46
- export default BaseComponent
@@ -1,95 +0,0 @@
1
- /**
2
- * --------------------------------------------------------------------------
3
- * Bootstrap (v5.0.0-beta3): button.js
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
- * --------------------------------------------------------------------------
6
- */
7
-
8
- import { defineJQueryPlugin } from './util/index'
9
- import Data from './dom/data'
10
- import EventHandler from './dom/event-handler'
11
- import BaseComponent from './base-component'
12
-
13
- /**
14
- * ------------------------------------------------------------------------
15
- * Constants
16
- * ------------------------------------------------------------------------
17
- */
18
-
19
- const NAME = 'button'
20
- const DATA_KEY = 'bs.button'
21
- const EVENT_KEY = `.${DATA_KEY}`
22
- const DATA_API_KEY = '.data-api'
23
-
24
- const CLASS_NAME_ACTIVE = 'active'
25
-
26
- const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"]'
27
-
28
- const EVENT_CLICK_DATA_API = `click${EVENT_KEY}${DATA_API_KEY}`
29
-
30
- /**
31
- * ------------------------------------------------------------------------
32
- * Class Definition
33
- * ------------------------------------------------------------------------
34
- */
35
-
36
- class Button extends BaseComponent {
37
- // Getters
38
-
39
- static get DATA_KEY() {
40
- return DATA_KEY
41
- }
42
-
43
- // Public
44
-
45
- toggle() {
46
- // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
47
- this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE))
48
- }
49
-
50
- // Static
51
-
52
- static jQueryInterface(config) {
53
- return this.each(function () {
54
- let data = Data.get(this, DATA_KEY)
55
-
56
- if (!data) {
57
- data = new Button(this)
58
- }
59
-
60
- if (config === 'toggle') {
61
- data[config]()
62
- }
63
- })
64
- }
65
- }
66
-
67
- /**
68
- * ------------------------------------------------------------------------
69
- * Data Api implementation
70
- * ------------------------------------------------------------------------
71
- */
72
-
73
- EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => {
74
- event.preventDefault()
75
-
76
- const button = event.target.closest(SELECTOR_DATA_TOGGLE)
77
-
78
- let data = Data.get(button, DATA_KEY)
79
- if (!data) {
80
- data = new Button(button)
81
- }
82
-
83
- data.toggle()
84
- })
85
-
86
- /**
87
- * ------------------------------------------------------------------------
88
- * jQuery
89
- * ------------------------------------------------------------------------
90
- * add .Button to jQuery only if jQuery is present
91
- */
92
-
93
- defineJQueryPlugin(NAME, Button)
94
-
95
- export default Button