jet_ui 0.2.10 → 0.2.11

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: debfc83f3c33c58716e876a43bab280d430a94fc4682de9b89b0cb605c8359d4
4
- data.tar.gz: 5ad38cb1116cb06dfd0b1516ba282213af3a0759e3a3947e548113cf5a24c2d4
3
+ metadata.gz: 89ac34e7a4ba973ca0e253bd918a62aaf9397cb166b4a61841033024521c938b
4
+ data.tar.gz: 6ec8cd6cd71014a3cf3d06684717cab4ea0e952c3ed4fba51916356b35525a7f
5
5
  SHA512:
6
- metadata.gz: 1cba15b76863db3147f4881a443ecbd2bbf69a4cf5b3f21e05be6987767ae2934e0dfe1700865f659de4b25d2c8c07bc412bf2092be1d63f980244d6670feab5
7
- data.tar.gz: 9f336006021e46d6209e1e36c233cf1d44750a893b99945bb7ea6a62bf5a874abfd85ab2fd215cd69a66cc81c068ec4a785f55f18e26accbfb489680fa75f1f1
6
+ metadata.gz: 6c11d7a76915590603cd836206086772518c1712c1af743d2cda78ddcf03cd584b27a80bfcbe2a6c67c48b7f0f7429ea37cca18f2d329d1692241da316a4aad7
7
+ data.tar.gz: ec4adf80d2294c2cd792efa1f49994f064d1f27119938aa8d79dec006f31a71692641ad0546b12e1e543c3e82f41f8f10206a05aa057e8120a9db8d96b9f338e
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.11] - 2026-09-07
11
+
12
+ ### Fixed
13
+ - Rails 7.x test suite broken by Capybara 3.40+ (`quirks_mode` keyword incompatibility) — pin Capybara to `~> 3.36` and JSON to `< 3.0` in development dependencies
14
+ - Gemspec no longer pins an exact Rails development version — the previous exact pin caused a hard `Bundler::GemfileError` against the CI matrix gemfiles on newer Bundler versions
15
+ - Flash component's Stimulus data attributes now use hyphenated keys for Rails 7.1 compatibility
16
+
17
+ ### Added
18
+ - JetUI logo to README
19
+
10
20
  ## [0.2.10] - 2026-08-22
11
21
 
12
22
  ### Changed
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # JetUi
1
+ ![JetUI Logo](app/assets/images/logo.svg)
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/jet_ui)](https://rubygems.org/gems/jet_ui)
4
4
  [![Checks](https://img.shields.io/github/actions/workflow/status/jetrockets/jet_ui/ci.yml?label=checks&logo=github)](https://github.com/jetrockets/jet_ui/actions/workflows/ci.yml)
@@ -0,0 +1,25 @@
1
+ <svg width="179" height="58" viewBox="0 0 179 58" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <style>
3
+ @media (prefers-color-scheme: dark) {
4
+ path { fill: white !important; stroke: white !important; }
5
+ path[fill="#FF5B1F"] { fill: #FF5B1F !important; }
6
+ }
7
+ @media (prefers-color-scheme: light) {
8
+ path { fill: #1A1A1A !important; stroke: #1A1A1A !important; }
9
+ path[fill="#FF5B1F"] { fill: #FF5B1F !important; }
10
+ }
11
+ </style>
12
+ <g clip-path="url(#clip0_18891_31745)">
13
+ <path d="M12 2H46C51.5228 2 56 6.47715 56 12V46C56 51.5228 51.5228 56 46 56H12C6.47715 56 2 51.5228 2 46V12C2 6.47715 6.47715 2 12 2Z" stroke="#1A1A1A" stroke-width="4"/>
14
+ <path d="M21 11H11C9.34315 11 8 12.3431 8 14V24C8 25.6569 9.34315 27 11 27H21C22.6569 27 24 25.6569 24 24V14C24 12.3431 22.6569 11 21 11Z" fill="#1A1A1A"/>
15
+ <path d="M47.375 11H31.625C30.1753 11 29 11.8954 29 13V15C29 16.1046 30.1753 17 31.625 17H47.375C48.8247 17 50 16.1046 50 15V13C50 11.8954 48.8247 11 47.375 11Z" fill="#1A1A1A"/>
16
+ <path opacity="0.4" d="M40.4545 21H31.5455C30.1396 21 29 21.8954 29 23V25C29 26.1046 30.1396 27 31.5455 27H40.4545C41.8604 27 43 26.1046 43 25V23C43 21.8954 41.8604 21 40.4545 21Z" fill="#1A1A1A"/>
17
+ <path d="M46.5 31H11.5C9.567 31 8 32.3431 8 34V44C8 45.6569 9.567 47 11.5 47H46.5C48.433 47 50 45.6569 50 44V34C50 32.3431 48.433 31 46.5 31Z" fill="#FF5B1F"/>
18
+ <path d="M83.214 42.588C80.19 42.588 77.782 41.762 75.99 40.11C74.226 38.458 73.344 36.148 73.344 33.18V30.408H78.888V33.18C78.888 34.496 79.252 35.532 79.98 36.288C80.708 37.016 81.73 37.38 83.046 37.38C84.278 37.38 85.23 37.016 85.902 36.288C86.602 35.56 86.952 34.524 86.952 33.18V17.64H81.912V12.6H95.856V17.64H92.496V33.18C92.496 36.232 91.67 38.57 90.018 40.194C88.366 41.79 86.098 42.588 83.214 42.588ZM108.467 42.588C106.395 42.588 104.561 42.154 102.965 41.286C101.397 40.39 100.165 39.144 99.2692 37.548C98.4012 35.924 97.9672 34.02 97.9672 31.836V31.332C97.9672 29.148 98.4012 27.258 99.2692 25.662C100.137 24.038 101.355 22.792 102.923 21.924C104.491 21.028 106.311 20.58 108.383 20.58C110.427 20.58 112.205 21.042 113.717 21.966C115.229 22.862 116.405 24.122 117.245 25.746C118.085 27.342 118.505 29.204 118.505 31.332V33.138H103.343C103.399 34.566 103.931 35.728 104.939 36.624C105.947 37.52 107.179 37.968 108.635 37.968C110.119 37.968 111.211 37.646 111.911 37.002C112.611 36.358 113.143 35.644 113.507 34.86L117.833 37.128C117.441 37.856 116.867 38.654 116.111 39.522C115.383 40.362 114.403 41.09 113.171 41.706C111.939 42.294 110.371 42.588 108.467 42.588ZM103.385 29.19H113.129C113.017 27.986 112.527 27.02 111.659 26.292C110.819 25.564 109.713 25.2 108.341 25.2C106.913 25.2 105.779 25.564 104.939 26.292C104.099 27.02 103.581 27.986 103.385 29.19ZM130.498 42C129.126 42 128.006 41.58 127.138 40.74C126.298 39.872 125.878 38.724 125.878 37.296V25.536H120.67V21.168H125.878V14.7H131.17V21.168H136.882V25.536H131.17V36.372C131.17 37.212 131.562 37.632 132.346 37.632H136.378V42H130.498ZM152.844 42.588C150.436 42.588 148.364 42.154 146.628 41.286C144.92 40.39 143.604 39.13 142.68 37.506C141.784 35.854 141.336 33.908 141.336 31.668V12.6H146.88V31.836C146.88 33.628 147.384 35.042 148.392 36.078C149.428 37.114 150.912 37.632 152.844 37.632C154.776 37.632 156.246 37.114 157.254 36.078C158.29 35.042 158.808 33.628 158.808 31.836V12.6H164.352V31.668C164.352 33.908 163.89 35.854 162.966 37.506C162.07 39.13 160.754 40.39 159.018 41.286C157.31 42.154 155.252 42.588 152.844 42.588ZM169.723 42V12.6H175.267V42H169.723Z" fill="#1A1A1A"/>
19
+ </g>
20
+ <defs>
21
+ <clipPath id="clip0_18891_31745">
22
+ <rect width="179" height="58"/>
23
+ </clipPath>
24
+ </defs>
25
+ </svg>
@@ -34,8 +34,8 @@ module JetUi
34
34
  def item_data
35
35
  attrs = { controller: 'flash', action: 'turbo:morph@window->flash#connect' }
36
36
  if @dismissible
37
- attrs[:flash_dismiss_after_value] = DISMISS_AFTER
38
- attrs[:flash_show_delay_value] = SHOW_DELAY
37
+ attrs[:'flash-dismiss-after-value'] = DISMISS_AFTER
38
+ attrs[:'flash-show-delay-value'] = SHOW_DELAY
39
39
  end
40
40
  attrs
41
41
  end
@@ -16,9 +16,7 @@ module JetUi
16
16
  def call
17
17
  icon_name = @name.presence || content.to_s.strip
18
18
  svg = File.read(ICONS_PATH.join("#{icon_name}.svg"))
19
- # rubocop:disable Rails/OutputSafety
20
- svg.sub('<svg', "<svg #{html_attributes(icon_name)}").html_safe
21
- # rubocop:enable Rails/OutputSafety
19
+ svg.sub('<svg', "<svg #{html_attributes(icon_name)}").html_safe # rubocop:disable Rails/OutputSafety
22
20
  end
23
21
 
24
22
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JetUi
4
- VERSION = '0.2.10'
4
+ VERSION = '0.2.11'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jet_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - JetRockets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-22 00:00:00.000000000 Z
11
+ date: 2026-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -56,16 +56,30 @@ dependencies:
56
56
  name: capybara
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '3.36'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '3.36'
69
+ - !ruby/object:Gem::Dependency
70
+ name: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "<"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: minitest
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -84,16 +98,16 @@ dependencies:
84
98
  name: rails
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '='
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: 8.1.3.1
103
+ version: '7.0'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '='
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: 8.1.3.1
110
+ version: '7.0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rubocop
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -501,6 +515,7 @@ files:
501
515
  - app/assets/images/jet_ui/icons/wrench.svg
502
516
  - app/assets/images/jet_ui/icons/x-circle.svg
503
517
  - app/assets/images/jet_ui/icons/x-mark.svg
518
+ - app/assets/images/logo.svg
504
519
  - app/assets/javascripts/jet_ui/clipboard_controller.js
505
520
  - app/assets/javascripts/jet_ui/drawer_controller.js
506
521
  - app/assets/javascripts/jet_ui/drawers_controller.js