@jjlmoya/utils-tabletop 1.12.0 → 1.13.0

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": "@jjlmoya/utils-tabletop",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -180,11 +180,6 @@ class ScatterSelectorApp {
180
180
  const sp = this.root.querySelector('#sds-scatter-pointer') as HTMLElement;
181
181
  sp.style.display = 'none';
182
182
 
183
- const st = this.root.querySelector('#sds-sigil-target') as HTMLElement;
184
- const sw = this.root.querySelector('#sds-sigil-warning') as HTMLElement;
185
- st.style.display = 'none';
186
- sw.style.display = 'none';
187
-
188
183
  this.scatterAngle = this.settings.getMode() ? this.currentAngle : result.angle;
189
184
  const angleRad = (this.scatterAngle - 90) * (Math.PI / 180);
190
185
  const maxDist = this.getMaxDistance();
@@ -226,6 +221,8 @@ class ScatterSelectorApp {
226
221
  this.displayNums.textContent = `${result.distance}"`;
227
222
  core.classList.add('sds-warning-result');
228
223
  this.sound.play(180, 'sawtooth', 0.35);
224
+ const distLabel = this.root.querySelector('#sds-warning-dist');
225
+ if (distLabel) distLabel.textContent = `${result.distance}"`;
229
226
 
230
227
  sp.style.display = 'block';
231
228
  sp.style.transition = 'transform 0.3s ease-out';
@@ -55,7 +55,7 @@ const { ui } = Astro.props;
55
55
  </svg>
56
56
  </div>
57
57
  <div class="sds-center-core">
58
- <div id="sds-sigil-target" class="sds-sigil" style="display: none;">
58
+ <div id="sds-sigil-target" class="sds-sigil">
59
59
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
60
60
  <circle cx="12" cy="12" r="10"></circle>
61
61
  <circle cx="12" cy="12" r="6"></circle>
@@ -64,11 +64,10 @@ const { ui } = Astro.props;
64
64
  <line x1="1" y1="12" x2="23" y2="12"></line>
65
65
  </svg>
66
66
  </div>
67
- <div id="sds-sigil-warning" class="sds-sigil" style="display: none;">
68
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
69
- <path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>
70
- <line x1="12" y1="9" x2="12" y2="13"></line>
71
- <line x1="12" y1="17" x2="12.01" y2="17"></line>
67
+ <div id="sds-sigil-warning" class="sds-sigil">
68
+ <svg viewBox="0 0 24 24" fill="none">
69
+ <circle cx="12" cy="12" r="10.5" stroke="currentColor" stroke-width="0.5" opacity="0.25"></circle>
70
+ <text id="sds-warning-dist" x="12" y="13" text-anchor="middle" dominant-baseline="central" font-size="10" font-weight="900" stroke="none" fill="currentColor">2"</text>
72
71
  </svg>
73
72
  </div>
74
73
  <div id="sds-digital-display" class="sds-digital-display">
@@ -388,36 +388,51 @@
388
388
  background: var(--bg-surface);
389
389
  border: 1px solid var(--border-color);
390
390
  color: var(--text-base);
391
- font-size: 0.9rem;
392
- padding: 0.65rem 1rem;
393
- border-radius: 8px;
391
+ font-size: 0.85rem;
392
+ font-weight: 600;
393
+ padding: 0.7rem 2.5rem 0.7rem 1rem;
394
+ border-radius: 10px;
394
395
  outline: none;
395
396
  cursor: pointer;
396
397
  appearance: none;
397
- transition: border-color 0.2s, box-shadow 0.2s;
398
+ letter-spacing: 0.3px;
399
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
400
+ transition: border-color 0.2s, box-shadow 0.25s, background 0.2s;
398
401
  }
399
402
 
400
403
  .sds-select:hover {
401
404
  border-color: var(--sds-accent);
405
+ background: var(--bg-page);
402
406
  }
403
407
 
404
408
  .sds-select:focus {
405
409
  border-color: var(--sds-accent);
406
- box-shadow: 0 0 10px rgba(var(--sds-accent-rgb), 0.15);
410
+ box-shadow: 0 0 0 3px rgba(var(--sds-accent-rgb), 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.08);
411
+ }
412
+
413
+ .sds-select option {
414
+ background: var(--bg-surface);
415
+ color: var(--text-base);
416
+ font-weight: 500;
417
+ padding: 0.5rem;
407
418
  }
408
419
 
409
420
  .sds-select-wrapper::after {
410
- content: '';
421
+ content: '\25BC';
411
422
  position: absolute;
412
- right: 1rem;
423
+ right: 0.85rem;
413
424
  top: 50%;
414
425
  transform: translateY(-50%);
415
- width: 0;
416
- height: 0;
417
- border-left: 5px solid transparent;
418
- border-right: 5px solid transparent;
419
- border-top: 5px solid var(--text-muted);
426
+ font-size: 0.55rem;
427
+ color: var(--sds-accent);
420
428
  pointer-events: none;
429
+ opacity: 0.7;
430
+ transition: opacity 0.2s, transform 0.2s;
431
+ }
432
+
433
+ .sds-select-wrapper:hover::after {
434
+ opacity: 1;
435
+ transform: translateY(-50%) scale(1.1);
421
436
  }
422
437
 
423
438
  .sds-input {