mensa 0.1.7 → 0.1.9

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: 3ea896685ecf825e96fee443f27a8360a223648e1c0b7ca38d98bd2abc2ce5c5
4
- data.tar.gz: ce47343a31385d9ea6317a2ea658f2e97379cdbe342d5f7865706cbb87542f29
3
+ metadata.gz: 90e14dc2718135075f46900d71242ac7630a141316fc90c48ce393079ecdf1b3
4
+ data.tar.gz: 2b41788482afea79c43b714cc0b428e9d270674c09285a3f04aae8457001094e
5
5
  SHA512:
6
- metadata.gz: f8cba3e05cdee397e2bc953d3b7adc7c20acc5a1a1dfd6a873355a79ce8bd218b373baa58ea3e6d3fc538bb6ae14a6f52b610e23cc7dba112b219c080b321f77
7
- data.tar.gz: 162b5cb1c344d719871baac7783f9bcc96d465972458e37dc2d8bca60384d65c4cc184ba4ab542775f6982437f2a36768b6b88e18c5560b3bec3742295062e3e
6
+ metadata.gz: 4c1703c80843371867f4eca279df8c090d5c64947e5047fb910f959aee76781a1d3329c97b86f7d64ec9f58d96ad4ca1d4c333a9ea17935c50a3eac9177a68a1
7
+ data.tar.gz: 83a15ef32543cf462aeaac264f20bf2eb370ff2dab42e6252779a14968e3d364fefcc4d0285f20e176950e3fa07be91e2e0e7185a5a96af8e10ea7764af1da02
@@ -1,34 +1,44 @@
1
1
  .mensa-table {
2
2
  .paging {
3
- @apply flex items-center justify-between border-t border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-800 px-4 py-3 sm:px-6;
3
+ @apply flex items-center justify-between border-t border-gray-100 dark:border-gray-600 bg-white dark:bg-gray-800 px-4 py-3 sm:px-6;
4
4
 
5
5
  .pagy {
6
- @apply flex space-x-1 text-sm text-gray-500;
6
+ @apply isolate inline-flex -space-x-px shadow-sm;
7
7
 
8
8
  a:not(.gap) {
9
- @apply block rounded-lg px-3 py-1 bg-gray-200 no-underline;
9
+ @apply relative inline-flex items-center px-4 py-1.5 text-sm bg-gray-50 dark:bg-gray-800 font-semibold text-opacity-75 text-gray-700 dark:text-gray-400 ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 focus:z-20 focus:outline-offset-0 rounded-none;
10
+
11
+ &:first-child {
12
+ border-top-left-radius: 4px;
13
+ border-bottom-left-radius: 4px;
14
+ }
15
+
16
+ &:last-child {
17
+ border-top-right-radius: 4px;
18
+ border-bottom-right-radius: 4px;
19
+ }
10
20
 
11
21
  &:hover {
12
- @apply bg-gray-300;
22
+ @apply bg-gray-300 dark:bg-gray-600;
13
23
  }
14
24
 
15
25
  &:not([href]) {
16
26
  /* disabled links */
17
- @apply text-gray-300 bg-gray-100 cursor-default;
27
+ @apply relative inline-flex items-center border border-gray-100 dark:border-gray-600 bg-white dark:bg-gray-800 dark:bg-opacity-75 px-4 py-1.5 text-sm font-medium text-gray-700 dark:text-gray-100 text-opacity-25 dark:text-opacity-50 hover:bg-gray-50 dark:hover:bg-gray-600;
18
28
  }
19
29
 
20
30
  &.current {
21
- @apply text-white bg-primary-600;
31
+ @apply z-10 bg-indigo-600 dark:bg-indigo-500 text-white border dark:text-white border-gray-100 dark:border-gray-600 focus-visible:outline hover:bg-indigo-500 dark:hover:bg-indigo-400 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 dark:focus-visible:outline-indigo-500;
22
32
  }
23
33
  }
24
34
 
25
35
  label {
26
- @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
36
+ @apply inline-block whitespace-nowrap bg-gray-200 dark:bg-gray-600 rounded-lg px-4 py-1.5;
27
37
 
28
38
  input {
29
- @apply bg-gray-100 border-none rounded-md;
39
+ @apply bg-gray-100 dark:bg-gray-700 border-none rounded-md;
30
40
  }
31
41
  }
32
42
  }
33
43
  }
34
- }
44
+ }
@@ -17,7 +17,7 @@ module Mensa
17
17
  config_reader :show_header?
18
18
 
19
19
  def initialize(config = {})
20
- @params = config.deep_symbolize_keys
20
+ @params = config.to_h.deep_symbolize_keys
21
21
  @config = self.class.definition.merge(@params || {})
22
22
  end
23
23
 
data/lib/mensa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mensa
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mensa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
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-04-19 00:00:00.000000000 Z
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caxlsx_rails