nitro_kit 0.3.0 → 0.4.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: 6d58e573f0c99860c6ede6591c772db3d2399c754a1cb2c25b65632c42ca8a00
4
- data.tar.gz: 4796fae213b057ed86d3bcc693c504c7323abe020bcfa920713ea7d9a2e4438a
3
+ metadata.gz: 35f6533e2e09584b606c65bb7e19256d2573ebedc3d8dda8256304644a299fa3
4
+ data.tar.gz: e39ef8b947407ea65eb6114c293444f07243b5fb09edd4dd8a7312b86eb110ea
5
5
  SHA512:
6
- metadata.gz: 2865c2a1a86d6cf786eff5a699ce98aabea646c44349ecb387369ee7ba3aaab1b928f28ea1fded788bc95ffeb06926aac017a4fe292e70bbc0e1ecfa7d0dc30f
7
- data.tar.gz: 2f8f3fc20b0be34cc8fc07f01fba9ace962dad39926332a50bf65bec062b7d96398bdc790b708fb6c027f2193b542641c5127fd6920f417d359a448a82bff782
6
+ metadata.gz: b17a7711886d99b9d89a13610ea457b910c222487fece000c874fdd9157f1fbe4dcac0ecd684f357174fc30c100a21ff6850f8f67cb1be1ff0c8773e6ad3a035
7
+ data.tar.gz: 0c5f65acdb20d0bee4c2bd9484fe347c8853ec96f5e77be250ae3910d39bc1e5c44d9f034403974d34e6bddaf58abe23edc7c72cb59299950c1b25b5a38687d9
@@ -92,14 +92,14 @@ module NitroKit
92
92
  ]
93
93
  when :primary
94
94
  [
95
- "bg-primary text-white dark:text-zinc-950 border-primary",
95
+ "bg-primary text-primary-foreground border-primary",
96
96
  "hover:bg-primary/90 dark:hover:bg-primary/90"
97
97
  ]
98
98
  when :destructive
99
99
  [
100
- "bg-destructive text-white border-destructive",
100
+ "bg-destructive text-destructive-foreground border-destructive",
101
101
  "hover:bg-destructive/90 dark:hover:bg-destructive/90",
102
- "disabled:text-white/80"
102
+ "disabled:text-destructive-foreground/80"
103
103
  ]
104
104
  when :ghost
105
105
  [
@@ -125,7 +125,7 @@ module NitroKit
125
125
  [
126
126
  "px-4 h-10 text-base [&_svg]:size-4",
127
127
  # If icon only, make square
128
- "[&_svg:first-child:last-child]:-mx-2"
128
+ "[&_svg:first-child:last-child]:-mx-1"
129
129
  ]
130
130
  when :lg
131
131
  [
@@ -44,7 +44,7 @@ module NitroKit
44
44
  stroke_linejoin: "round",
45
45
  stroke_width: 3
46
46
  ) do |svg|
47
- svg.path(d: "M 3 8 L 6 12 L 12 5")
47
+ svg.path(d: "M 3 8 L 6 12 L 13 5")
48
48
  end
49
49
  end
50
50
 
@@ -57,7 +57,7 @@ module NitroKit
57
57
  stroke_linecap: "round",
58
58
  stroke_width: 3
59
59
  ) do |svg|
60
- svg.line(x1: "3", y1: "8", x2: "12", y2: "8")
60
+ svg.line(x1: "3", y1: "8", x2: "13", y2: "8")
61
61
  end
62
62
  end
63
63
 
@@ -140,7 +140,7 @@ module NitroKit
140
140
  when :default
141
141
  "[&[href]]:hover:bg-muted"
142
142
  when :destructive
143
- "text-destructive-foreground [&[href]]:hover:bg-destructive [&[href]]:hover:text-white"
143
+ "text-destructive [&[href]]:hover:bg-destructive [&[href]]:hover:text-white"
144
144
  else
145
145
  raise ArgumentError, "Unknown variant: #{variant.inspect}"
146
146
  end
@@ -1,3 +1,3 @@
1
1
  module NitroKit
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nitro_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Malmberg
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-07 00:00:00.000000000 Z
10
+ date: 2025-02-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails