bulma-turbo-themes 0.7.4 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc14469edd28baf049584d2a55a95eb9c9fb2557b2c45e4094e61143c3365365
4
- data.tar.gz: 5b1876e12f8d2dbb9909864a4f9a8fecb5dbcd346aff30c2339bd9ba8492c9e4
3
+ metadata.gz: aad2d31befacfa17a9b9da3438a1964ca8b66557ccbcabd6a5cb15eca88aa139
4
+ data.tar.gz: 9b1d45187df6d2dfc6dbcd074ab51d53802cf25574a807345082e3b8685183c3
5
5
  SHA512:
6
- metadata.gz: 31e01ee527f28119539015d7b1bdb84db00f9262598a4ab865e8ce27efba4ab257996cbc81e1f6daac7b7c12ef8201dd6b55febd7dc010075848826b683ee663
7
- data.tar.gz: dd86155aa276b294b1a44bbe31456e5d05acc2e7e1698e34fad1cf90a2c9b8764816591ae7765a4899899abce315ff8547eef575af57b4030dacda46486ae1f2
6
+ metadata.gz: cba3e7dbe44f90b4658784fb9fe54431dea87b7caec926c08ac0cc37d3647eac519ded405cce7f9563f5dfa08595be22dcded37b8ed1b6a265c42311e6e05881
7
+ data.tar.gz: bb56a0a612dfaee60ef752cf7a4ffe664614cb42f02f44593a39179118948ab2069f247beaea6c7500aed97a1b81f46a318e185177cf6bf08260431cdf9059b6
data/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@ The format is based on Keep a Changelog and this project adheres to SemVer.
10
10
 
11
11
  - TBD
12
12
 
13
+ ## [0.8.0] - 2025-11-16
14
+
15
+ ### ✨ Added
16
+
17
+ - include layouts and data files in gem
18
+
13
19
  ## [0.7.4] - 2025-11-16
14
20
 
15
21
  ### 🐛 Fixed
data/_data/i18n.yml ADDED
@@ -0,0 +1,3 @@
1
+ en:
2
+ theme_label: 'Theme'
3
+ current_theme_title: 'Current Theme: %{label}'
@@ -0,0 +1,270 @@
1
+ <!doctype html>
2
+ <html lang="{{ site.lang | default: 'en' }}" data-theme="auto" data-baseurl="{{ site.baseurl }}">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta
7
+ name="app-i18n"
8
+ data-theme-label="{{ site.data.i18n.en.theme_label }}"
9
+ data-current-theme-title-template="{{ site.data.i18n.en.current_theme_title }}"
10
+ />
11
+ <meta
12
+ http-equiv="Content-Security-Policy"
13
+ content="default-src 'self'; script-src 'self'; style-src 'self' https://cdn.jsdelivr.net https://fonts.googleapis.com; img-src 'self' data:; font-src 'self' https://fonts.gstatic.com data:; connect-src 'self' https://cdn.jsdelivr.net https://fonts.googleapis.com https://fonts.gstatic.com; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'self'; upgrade-insecure-requests"
14
+ />
15
+ <title>{{ page.title | default: site.title }}</title>
16
+ {% seo %}
17
+ <link rel="icon" href="{{ '/favicon.ico' | relative_url }}" />
18
+ <link rel="dns-prefetch" href="https://cdn.jsdelivr.net" />
19
+ <link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin />
20
+ <link
21
+ rel="icon"
22
+ type="image/png"
23
+ href="{{ '/assets/img/bulma-logo.png' | relative_url }}"
24
+ media="(prefers-color-scheme: light)"
25
+ />
26
+ <link
27
+ rel="icon"
28
+ type="image/png"
29
+ href="{{ '/assets/img/bulma-logo-dark.png' | relative_url }}"
30
+ media="(prefers-color-scheme: dark)"
31
+ />
32
+ <link
33
+ rel="mask-icon"
34
+ href="{{ '/assets/img/bulma-logo.png' | relative_url }}"
35
+ color="#111827"
36
+ />
37
+ <link
38
+ rel="preload"
39
+ as="style"
40
+ href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css"
41
+ crossorigin="anonymous"
42
+ />
43
+ <link
44
+ rel="stylesheet"
45
+ href="https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css"
46
+ integrity="sha384-tl5h4XuWmVzPeVWU0x8bx0j/5iMwCBduLEgZ+2lH4Wjda+4+q3mpCww74dgAB3OX"
47
+ crossorigin="anonymous"
48
+ />
49
+ <link
50
+ id="theme-global-css"
51
+ rel="stylesheet"
52
+ href="{{ '/assets/css/themes/global.css' | relative_url }}"
53
+ />
54
+ <link id="theme-flavor-css" rel="stylesheet" href="#" />
55
+ <link rel="stylesheet" href="{{ '/assets/css/custom.css' | relative_url }}" />
56
+ <script type="module" src="{{ '/dist/index.js' | relative_url }}"></script>
57
+ <script>
58
+ document.addEventListener('DOMContentLoaded', () => {
59
+ // Initialize navbar highlighting
60
+ if (window.initNavbar) {
61
+ window.initNavbar(document);
62
+ }
63
+ });
64
+ </script>
65
+ </head>
66
+ <body>
67
+ <nav class="navbar is-spaced" role="navigation" aria-label="main navigation">
68
+ <div class="container">
69
+ <div class="navbar-brand">
70
+ <a class="navbar-item" href="{{ '/' | relative_url }}" data-testid="navbar-brand">
71
+ {{ site.title }}
72
+ </a>
73
+ <button
74
+ class="navbar-burger"
75
+ aria-label="menu"
76
+ aria-expanded="false"
77
+ data-target="navbarBasicExample"
78
+ type="button"
79
+ data-testid="navbar-burger"
80
+ style="min-width: 24px; min-height: 24px"
81
+ >
82
+ <span aria-hidden="true"></span>
83
+ <span aria-hidden="true"></span>
84
+ <span aria-hidden="true"></span>
85
+ </button>
86
+ </div>
87
+
88
+ <div id="navbarBasicExample" class="navbar-menu">
89
+ <div class="navbar-start">
90
+ <a class="navbar-item" href="{{ '/' | relative_url }}" data-testid="nav-home">Home</a>
91
+ <a
92
+ class="navbar-item"
93
+ href="{{ '/components/' | relative_url }}"
94
+ data-testid="nav-components"
95
+ >
96
+ Components
97
+ </a>
98
+ <a class="navbar-item" href="{{ '/forms/' | relative_url }}" data-testid="nav-forms"
99
+ >Forms</a
100
+ >
101
+ <div class="navbar-item has-dropdown is-hoverable">
102
+ <button
103
+ class="navbar-link"
104
+ id="nav-reports-trigger"
105
+ type="button"
106
+ aria-haspopup="true"
107
+ aria-expanded="false"
108
+ aria-controls="nav-reports-menu"
109
+ data-testid="nav-reports"
110
+ >
111
+ Reports
112
+ </button>
113
+ <div
114
+ class="navbar-dropdown"
115
+ id="nav-reports-menu"
116
+ aria-labelledby="nav-reports-trigger"
117
+ >
118
+ <a
119
+ class="navbar-item"
120
+ href="{{ '/coverage/' | relative_url }}"
121
+ target="_blank"
122
+ rel="noopener noreferrer"
123
+ aria-label="Coverage (opens in new tab)"
124
+ data-testid="nav-reports-coverage"
125
+ >
126
+ Coverage
127
+ <span
128
+ class="icon is-small"
129
+ style="margin-left: 0.25rem; display: inline-flex"
130
+ aria-hidden="true"
131
+ >
132
+ <svg
133
+ xmlns="http://www.w3.org/2000/svg"
134
+ width="12"
135
+ height="12"
136
+ viewBox="0 0 24 24"
137
+ fill="none"
138
+ stroke="currentColor"
139
+ stroke-width="2"
140
+ stroke-linecap="round"
141
+ stroke-linejoin="round"
142
+ >
143
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
144
+ <polyline points="15 3 21 3 21 9"></polyline>
145
+ <line x1="10" y1="14" x2="21" y2="3"></line>
146
+ </svg>
147
+ </span>
148
+ </a>
149
+ <a
150
+ class="navbar-item"
151
+ href="{{ '/playwright/' | relative_url }}"
152
+ target="_blank"
153
+ rel="noopener noreferrer"
154
+ aria-label="Playwright (opens in new tab)"
155
+ data-testid="nav-reports-playwright"
156
+ >
157
+ Playwright
158
+ <span
159
+ class="icon is-small"
160
+ style="margin-left: 0.25rem; display: inline-flex"
161
+ aria-hidden="true"
162
+ >
163
+ <svg
164
+ xmlns="http://www.w3.org/2000/svg"
165
+ width="12"
166
+ height="12"
167
+ viewBox="0 0 24 24"
168
+ fill="none"
169
+ stroke="currentColor"
170
+ stroke-width="2"
171
+ stroke-linecap="round"
172
+ stroke-linejoin="round"
173
+ >
174
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
175
+ <polyline points="15 3 21 3 21 9"></polyline>
176
+ <line x1="10" y1="14" x2="21" y2="3"></line>
177
+ </svg>
178
+ </span>
179
+ </a>
180
+ <a
181
+ class="navbar-item"
182
+ href="{{ '/lighthouse/' | relative_url }}"
183
+ target="_blank"
184
+ rel="noopener noreferrer"
185
+ aria-label="Lighthouse (opens in new tab)"
186
+ data-testid="nav-reports-lighthouse"
187
+ >
188
+ Lighthouse
189
+ <span
190
+ class="icon is-small"
191
+ style="margin-left: 0.25rem; display: inline-flex"
192
+ aria-hidden="true"
193
+ >
194
+ <svg
195
+ xmlns="http://www.w3.org/2000/svg"
196
+ width="12"
197
+ height="12"
198
+ viewBox="0 0 24 24"
199
+ fill="none"
200
+ stroke="currentColor"
201
+ stroke-width="2"
202
+ stroke-linecap="round"
203
+ stroke-linejoin="round"
204
+ >
205
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
206
+ <polyline points="15 3 21 3 21 9"></polyline>
207
+ <line x1="10" y1="14" x2="21" y2="3"></line>
208
+ </svg>
209
+ </span>
210
+ </a>
211
+ </div>
212
+ </div>
213
+ </div>
214
+ <div class="navbar-end">
215
+ <div class="navbar-item">
216
+ <div class="control has-icons-left">
217
+ <div class="select is-rounded is-small is-hidden" aria-hidden="true">
218
+ <select id="theme-flavor-select" aria-label="Theme flavor" disabled></select>
219
+ </div>
220
+ <span
221
+ class="icon is-small is-left"
222
+ id="theme-flavor-icon"
223
+ aria-hidden="true"
224
+ ></span>
225
+ </div>
226
+ <div
227
+ class="dropdown is-right is-theme"
228
+ id="theme-flavor-dd"
229
+ data-testid="theme-dropdown"
230
+ >
231
+ <div class="dropdown-trigger">
232
+ <button
233
+ class="button is-small is-rounded is-flavor-trigger theme-flavor-trigger"
234
+ aria-haspopup="true"
235
+ aria-controls="theme-flavor-menu"
236
+ aria-label="Theme"
237
+ data-testid="theme-trigger"
238
+ >
239
+ <span class="icon is-small" id="theme-flavor-trigger-icon"></span>
240
+ </button>
241
+ </div>
242
+ <div
243
+ class="dropdown-menu"
244
+ id="theme-flavor-menu"
245
+ role="menu"
246
+ data-testid="theme-menu"
247
+ >
248
+ <div class="dropdown-content" id="theme-flavor-items"></div>
249
+ </div>
250
+ </div>
251
+ </div>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </nav>
256
+
257
+ <section class="section">
258
+ <div class="container content" data-testid="main-content">
259
+ <h1 class="title">{{ page.title | default: site.title }}</h1>
260
+ {{ content }}
261
+ </div>
262
+ </section>
263
+
264
+ <footer class="footer">
265
+ <div class="content has-text-centered">
266
+ <p><strong>{{ site.title }}</strong> — Bulma demo with theme switch.</p>
267
+ </div>
268
+ </footer>
269
+ </body>
270
+ </html>
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BulmaTurboThemes
4
- VERSION = "0.7.4"
4
+ VERSION = "0.8.0"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma-turbo-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Turbo Coder
@@ -41,6 +41,8 @@ files:
41
41
  - CHANGELOG.md
42
42
  - LICENSE
43
43
  - README.md
44
+ - _data/i18n.yml
45
+ - _layouts/default.html
44
46
  - assets/css/custom.css
45
47
  - assets/css/themes/bulma-dark.css
46
48
  - assets/css/themes/bulma-light.css