satis 2.0.8 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08ecf41b46ac3bae47d1b773a98a8e8939d91bfd9dd969e399613812e25c0044'
4
- data.tar.gz: 816ca53e571940c89344342fca2731d19355284eda3300ecca4b4ac7e814e4ed
3
+ metadata.gz: 8f91c8c6daa20c366d35d13987b245f216d1b550a693813e7f32e0af4c3b2c66
4
+ data.tar.gz: 747f802bb8212519905a86b44330e1bcd0e297f1a9fedfa0930e7be525a8a93f
5
5
  SHA512:
6
- metadata.gz: 01fbddb95dd94f619f3630acd58fa0d47e4a33f2476e0ff17fc73812be4047c947f13400d357334f5e962e9a9d29a07cdcdb2fd6b58029ced0c5d2ef5b6f6b0e
7
- data.tar.gz: 1157e4c7d47cc509a4db5d93b6848401e0e021a8f4b982456bbab8f4ad5bfc1084d4b22272e5447561a00da2d9524acd8c9f07be4ce64c8e7e86ad64b545f3b9
6
+ metadata.gz: 3f5e8c79720994c1d0bd2de4a1e198246e44005231bb6d4bf2258ca67ae0115404627310d39a57ab1b9b4ecfeb7d037e7863de7bcaff047fcb6e9311a65f406b
7
+ data.tar.gz: 6e1bea1edb2d629af392f10dc06fc57e039285dd9ed7ed3a312a31f50dc2418e72db646dcac99ba6aeb2e3c601d4ea72d8be0448c72943316d714d38bfef9d58
@@ -69,7 +69,13 @@ form {
69
69
  margin-right: 0.5rem;
70
70
 
71
71
  &:checked {
72
- @apply border border-primary-900 bg-primary-900;
72
+ @apply border border-primary-600 bg-primary-600;
73
+ }
74
+ }
75
+
76
+ .custom-checkbox {
77
+ .custom-control-label {
78
+ @apply text-sm;
73
79
  }
74
80
  }
75
81
 
@@ -53,6 +53,12 @@ export default class TabsComponentController extends ApplicationController {
53
53
  return el.attributes["id"] === clickedTab.attributes["id"]
54
54
  })
55
55
  }
56
+
57
+ //return if tab is already selected
58
+ if (this.tabTargets[index].classList.contains("selected")) {
59
+ return
60
+ }
61
+
56
62
  this.open(index, true)
57
63
 
58
64
  if (this.keyValue) {
@@ -411,8 +411,7 @@ module Satis
411
411
  options[:text_method] ||= options[:label_method] || :first
412
412
  form_group(method, options) do
413
413
  safe_join [
414
- label(method, options[:label]),
415
- tag.br,
414
+ (custom_label(method, options[:label], options) unless options[:label] == false),
416
415
  (send(form_builder_method, method, options[:collection], options[:value_method],
417
416
  options[:text_method]) do |b|
418
417
  tag.div(class: "custom-control #{custom_class}") do
data/lib/satis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "2.0.8"
2
+ VERSION = "2.1.0"
3
3
  end
data/package.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "postcss-mixins": "^9.0.4",
6
6
  "tailwindcss": "^3.4.1"
7
7
  },
8
- "version": "2.0.4"
8
+ "version": "2.0.9"
9
9
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-23 00:00:00.000000000 Z
11
+ date: 2024-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser