@dorsk/tsumikit 0.40.0 → 0.40.2

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.
@@ -174,7 +174,10 @@
174
174
  /* The trigger owns its look (a ghost icon-button) from tokens — it no longer
175
175
  borrows global .btn classes, so a consumer can restyle it via `triggerClass`
176
176
  (+ `bare`) from their own scoped CSS instead of fighting globals. */
177
- .pop-trigger {
177
+ /* Default trigger chrome. Zero specificity (`:where`) so any consumer class
178
+ (triggerClass) overrides it; `:not(.bare)` keeps it off bare triggers such
179
+ as the Timestamp <time>, which stay plain inline text. */
180
+ :where(.pop-trigger:not(.bare)) {
178
181
  display: inline-flex;
179
182
  align-items: center;
180
183
  justify-content: center;
@@ -189,7 +192,7 @@
189
192
  background 0.12s var(--ease),
190
193
  border-color 0.12s var(--ease);
191
194
  }
192
- .pop-trigger:hover:not(:disabled) {
195
+ :where(.pop-trigger:not(.bare):hover:not(:disabled)) {
193
196
  background: var(--bg-elevated-2);
194
197
  }
195
198
  /* Supplying canonical chrome props opts into the same dimensions, variants
@@ -267,10 +270,10 @@
267
270
  /* Coarse pointers: icon-only triggers extend their hit area to --touch-target
268
271
  via an invisible slab; layout does not move. */
269
272
  @media (pointer: coarse) {
270
- .pop-trigger:not(.canonical, .bare, .hit-compact) {
273
+ .pop-trigger:not(.canonical, .hit-compact) {
271
274
  position: relative;
272
275
  }
273
- .pop-trigger:not(.canonical, .bare, .hit-compact)::after {
276
+ .pop-trigger:not(.canonical, .hit-compact)::after {
274
277
  content: '';
275
278
  position: absolute;
276
279
  inset: min(0px, calc((100% - var(--touch-target)) / 2));
@@ -323,16 +326,16 @@
323
326
  }
324
327
  /* `bare`: strip the chrome down to a plain button the consumer styles. */
325
328
  :where(.pop-trigger.bare) {
326
- height: auto;
327
- min-height: 0;
328
- min-width: 0;
329
- width: auto;
329
+ display: inline;
330
330
  padding: 0;
331
331
  border: 0;
332
+ border-radius: 0;
332
333
  background: none;
333
- }
334
- :where(.pop-trigger.bare:hover:not(:disabled)) {
335
- background: none;
334
+ color: inherit;
335
+ font: inherit;
336
+ line-height: inherit;
337
+ vertical-align: baseline;
338
+ cursor: pointer;
336
339
  }
337
340
  .pop-panel {
338
341
  position: fixed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dorsk/tsumikit",
3
- "version": "0.40.0",
3
+ "version": "0.40.2",
4
4
  "description": "Minimal, dependency-free Svelte 5 + pure-CSS UI kit. Token-driven atoms, molecules & layouts with theming out of the box.",
5
5
  "type": "module",
6
6
  "license": "MIT",