@n1kname/components 0.67.2 → 0.67.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n1kname/components",
3
- "version": "0.67.2",
3
+ "version": "0.67.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "@n1kname/charts": "0.15.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@n1kname/tokens": "^0.11.1",
42
+ "@n1kname/tokens": "^0.11.2",
43
43
  "astro": "^7.4.4"
44
44
  },
45
45
  "publishConfig": {
@@ -19,7 +19,7 @@ interface Props {
19
19
  }
20
20
  const {
21
21
  id = 'failed',
22
- title = "There's nothing to show right now",
22
+ title = "There’s nothing to show right now",
23
23
  text = 'The page reads its figures when it opens, so trying again usually works.',
24
24
  retry = 'Try again',
25
25
  } = Astro.props;
@@ -126,12 +126,21 @@ const { label, placeholder, shortcut = '/', param, describedBy, id = 'search' }
126
126
  opacity: 0;
127
127
  transform: scale(0.6);
128
128
  pointer-events: none;
129
+ /* Hidden, not only see-through, while there is nothing to clear: Tab skips it. Visibility
130
+ * switches off after the fade and on before it. */
131
+ visibility: hidden;
132
+ transition:
133
+ opacity var(--motion-fast) var(--ease-out),
134
+ transform var(--motion-fast) var(--ease-out),
135
+ visibility 0s linear var(--motion-fast);
129
136
  }
130
137
 
131
138
  .search-field[data-filled] .clear {
132
139
  opacity: 1;
133
140
  transform: none;
134
141
  pointer-events: auto;
142
+ visibility: visible;
143
+ transition-delay: 0s;
135
144
  }
136
145
 
137
146
  .clear:focus-visible {