@dorsk/tsumikit 0.40.1 → 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,10 +174,17 @@
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;
184
+ min-height: var(--box-md);
185
+ min-width: var(--box-md);
186
+ padding: var(--sp-2);
187
+ border: 1px solid transparent;
181
188
  border-radius: var(--r-md);
182
189
  background: transparent;
183
190
  color: var(--text);
@@ -185,15 +192,7 @@
185
192
  background 0.12s var(--ease),
186
193
  border-color 0.12s var(--ease);
187
194
  }
188
- /* Box sizing stays off `bare` triggers so an inline trigger (e.g. a
189
- Timestamp <time>) keeps its text's line box. */
190
- .pop-trigger:not(.bare) {
191
- min-height: var(--box-md);
192
- min-width: var(--box-md);
193
- padding: var(--sp-2);
194
- border: 1px solid transparent;
195
- }
196
- .pop-trigger:hover:not(:disabled) {
195
+ :where(.pop-trigger:not(.bare):hover:not(:disabled)) {
197
196
  background: var(--bg-elevated-2);
198
197
  }
199
198
  /* Supplying canonical chrome props opts into the same dimensions, variants
@@ -328,19 +327,15 @@
328
327
  /* `bare`: strip the chrome down to a plain button the consumer styles. */
329
328
  :where(.pop-trigger.bare) {
330
329
  display: inline;
331
- height: auto;
332
- min-height: 0;
333
- min-width: 0;
334
- width: auto;
335
330
  padding: 0;
336
331
  border: 0;
332
+ border-radius: 0;
337
333
  background: none;
334
+ color: inherit;
338
335
  font: inherit;
339
336
  line-height: inherit;
340
337
  vertical-align: baseline;
341
- }
342
- :where(.pop-trigger.bare:hover:not(:disabled)) {
343
- background: none;
338
+ cursor: pointer;
344
339
  }
345
340
  .pop-panel {
346
341
  position: fixed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dorsk/tsumikit",
3
- "version": "0.40.1",
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",