katalyst-tables 3.13.0 → 3.13.1

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: 9a139afe818b1985bc81203a5370dd737fb2df832f83bbb3966407ca299a953b
4
- data.tar.gz: cb3c47dbcb78cde5243686b8787aa37ee549d2ec1c9eb5b655c7d4cc00319358
3
+ metadata.gz: 23a8a8a1807a0f6355a6c8b8dfd8a79b8654b42f49f4e04ddffa95a152658ec5
4
+ data.tar.gz: b4b62f128a45aac4bd9fbb32218288ce861951a673c420075e91acff9f2243a9
5
5
  SHA512:
6
- metadata.gz: ee72cb55d174f7510f68ed3c8b6eaaedbcdaf8f3167de81a2d22234dc6fabc5e9e2d769c1d5ad5bdaae7f976643667001e37b8c406ba1edae480c347bb8d3cb1
7
- data.tar.gz: 137584392a2357aa056b4c45124b1bc11f1d7585b4eaa1ad1901b05d42ecfe479677543351bf30da45c32efd23a1983214c99b21d77e1dfa00d3e1f371bfea14
6
+ metadata.gz: 428907f63918d7f3497729b1ebb7605028bd4e8d467ce2681941ce629532b9cab778e2f6d3420305fff6b0683deefa9197b69321f782b4ea9b442727643a4039
7
+ data.tar.gz: 5a484636e22f700bf9721c123855998dbfaa7b732939ad60f0e3af4bfde70292f156785c61acc63a39e6eb859845a03c68d329373875cd9985d395795f3ce0b2
@@ -1,3 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
2
- <path d="M8 1V15M8 15L15 8M8 15L1 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 1v14m0 0 7-7m-7 7L1 8"/></svg>
@@ -1,3 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
2
- <path d="M8 15V1M8 1L15 8M8 1L1 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 15V1m0 0 7 7M8 1 1 8"/></svg>
@@ -78,7 +78,7 @@
78
78
  /* Select */
79
79
 
80
80
  :where([data-cell-type="selection"]) {
81
- --cell-width: 2rem;
81
+ width: 2rem;
82
82
 
83
83
  label {
84
84
  display: block;
@@ -98,28 +98,29 @@
98
98
  aspect-ratio: 1;
99
99
  height: 1.5ex;
100
100
  line-height: 1;
101
- background: none;
102
- background-size: contain;
101
+ background: currentColor;
103
102
  transform: translateY(0.1ex);
104
103
  margin-inline-start: var(--space-2xs, 0.5rem);
104
+ opacity: 0;
105
+ -webkit-mask: url("icons/sort-asc.svg") no-repeat center;
106
+ mask: url("icons/sort-asc.svg") no-repeat center;
107
+ transition: opacity var(--animation-duration, 125ms);
105
108
  }
106
109
 
110
+ /* Unsorted + hover/focus: ghost arrow */
107
111
  a:is(.sortable):hover::after,
108
- a:is(.sortable):focus-visible::after,
109
- [data-sort="asc"] a:is(.sortable)::after,
110
- [data-sort="desc"] a:is(.sortable):hover::after,
111
- [data-sort="desc"] a:is(.sortable):focus-visible::after {
112
- background: currentColor;
113
- -webkit-mask: url("/katalyst/tables/icons/sort-asc.svg") no-repeat center;
114
- mask: url("/katalyst/tables/icons/sort-asc.svg") no-repeat center;
112
+ a:is(.sortable):focus-visible::after {
113
+ opacity: 0.3;
115
114
  }
116
115
 
117
- [data-sort="desc"] a:is(.sortable)::after,
118
- [data-sort="asc"] a:is(.sortable):hover::after,
119
- [data-sort="asc"] a:is(.sortable):focus-visible::after {
120
- background: currentColor;
121
- -webkit-mask: url("/katalyst/tables/icons/sort-desc.svg") no-repeat center;
122
- mask: url("/katalyst/tables/icons/sort-desc.svg") no-repeat center;
116
+ /* Sorted: solid state arrow */
117
+ [data-sort] a:is(.sortable)::after {
118
+ opacity: 1;
119
+ }
120
+
121
+ [data-sort="desc"] a:is(.sortable)::after {
122
+ -webkit-mask: url("icons/sort-desc.svg") no-repeat center;
123
+ mask: url("icons/sort-desc.svg") no-repeat center;
123
124
  }
124
125
 
125
126
  /* Width and wrapping */
@@ -32,11 +32,10 @@ module Katalyst
32
32
 
33
33
  # Returns a hash of the current attributes that have changed from defaults.
34
34
  # This uses Refinements internally so it needs to be exposed publicly with this super call.
35
- # rubocop:disable Lint/UselessMethodDefinition
35
+ # rubocop:disable-next Lint/UselessMethodDefinition
36
36
  def to_params
37
37
  super
38
38
  end
39
- # rubocop:enable Lint/UselessMethodDefinition
40
39
  end
41
40
  end
42
41
  end
@@ -6,11 +6,10 @@ module Katalyst
6
6
  module Type
7
7
  class Search < Value
8
8
  # @overwrite Value.initialize() to require scope
9
- # rubocop:disable Lint/UselessMethodDefinition
9
+ # rubocop:disable-next Lint/UselessMethodDefinition
10
10
  def initialize(scope:, **)
11
11
  super
12
12
  end
13
- # rubocop:enable Lint/UselessMethodDefinition
14
13
 
15
14
  def type
16
15
  :search
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-tables
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.0
4
+ version: 3.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive