@sia.soul/sia-react-ui 0.1.144 → 0.1.146
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/dist/chart.cjs +2 -0
- package/dist/chart.js +5 -5
- package/dist/{chunk-F52O2MOV.js → chunk-DEA5BI3R.js} +3 -3
- package/dist/{chunk-JRXYM5YH.js → chunk-HDN7EEGA.js} +2 -2
- package/dist/{chunk-566S64IP.js → chunk-HPPF5JGF.js} +4 -4
- package/dist/{chunk-ORSQAJ22.js → chunk-KDG2P3JA.js} +5 -5
- package/dist/{chunk-WCYVBO2N.js → chunk-KSXTC3PD.js} +4 -4
- package/dist/{chunk-MD4CGSOR.js → chunk-LY73KGUH.js} +6 -6
- package/dist/{chunk-LKLPCYEP.js → chunk-NRLIOMXY.js} +2 -2
- package/dist/{chunk-7SEGBB6V.js → chunk-OTVK3HGP.js} +1 -1
- package/dist/{chunk-4TYHSAR3.js → chunk-ROV3QYE6.js} +5 -5
- package/dist/{chunk-4OHS7RXE.js → chunk-SRWUDTCS.js} +2 -0
- package/dist/{chunk-PD3K5U5Y.js → chunk-XXFYFLZA.js} +2 -2
- package/dist/{chunk-ETQJ2DQ2.js → chunk-YO5OJQEH.js} +1 -1
- package/dist/{core-COaZfusa.d.cts → core-8jfdF5IF.d.cts} +3 -3
- package/dist/{core-CvfsQGuT.d.ts → core-BbgdopTV.d.ts} +3 -3
- package/dist/core.cjs +2 -0
- package/dist/core.css +94 -34
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +8 -8
- package/dist/game.cjs +2 -0
- package/dist/game.css +94 -34
- package/dist/game.js +3 -3
- package/dist/index.cjs +1638 -1369
- package/dist/index.css +104 -34
- package/dist/index.d.cts +54 -8
- package/dist/index.d.ts +54 -8
- package/dist/index.js +402 -137
- package/dist/markdown-editor.cjs +2 -0
- package/dist/markdown-editor.js +3 -3
- package/dist/rich-text-editor.cjs +2 -0
- package/dist/rich-text-editor.js +7 -7
- package/dist/select-date-range.cjs +2 -0
- package/dist/select-date-range.js +8 -8
- package/package.json +1 -1
package/dist/game.css
CHANGED
|
@@ -2604,7 +2604,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2604
2604
|
.sia-card {
|
|
2605
2605
|
--sia-card-accent: var(--sia-color-primary);
|
|
2606
2606
|
color: var(--sia-color-text);
|
|
2607
|
-
background: var(--sia-color-surface);
|
|
2607
|
+
background: var(--sia-card-background, var(--sia-color-surface));
|
|
2608
2608
|
border: 1px solid color-mix(in srgb, var(--sia-color-border) 75%, var(--sia-color-surface));
|
|
2609
2609
|
border-radius: var(--sia-radius);
|
|
2610
2610
|
}
|
|
@@ -2688,6 +2688,29 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2688
2688
|
.sia-card--actionable {
|
|
2689
2689
|
cursor: pointer;
|
|
2690
2690
|
}
|
|
2691
|
+
.sia-card--actionable:not([aria-disabled=true]) {
|
|
2692
|
+
transition:
|
|
2693
|
+
background-color 140ms ease,
|
|
2694
|
+
border-color 140ms ease,
|
|
2695
|
+
transform 100ms ease;
|
|
2696
|
+
}
|
|
2697
|
+
.sia-card--actionable:not([aria-disabled=true]):hover {
|
|
2698
|
+
background: color-mix(in srgb, var(--sia-color-primary) 8%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2699
|
+
border-color: color-mix(in srgb, var(--sia-color-primary) 35%, var(--sia-color-border));
|
|
2700
|
+
}
|
|
2701
|
+
.sia-card--actionable:not([aria-disabled=true]):active:not(:has(button:active, a:active, input:active, select:active, textarea:active, [contenteditable=true]:active)) {
|
|
2702
|
+
background: color-mix(in srgb, var(--sia-color-primary) 16%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2703
|
+
border-color: var(--sia-color-primary);
|
|
2704
|
+
transform: scale(.98);
|
|
2705
|
+
}
|
|
2706
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2707
|
+
.sia-card--actionable:not([aria-disabled=true]) {
|
|
2708
|
+
transition: none;
|
|
2709
|
+
}
|
|
2710
|
+
.sia-card--actionable:not([aria-disabled=true]):active {
|
|
2711
|
+
transform: none;
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2691
2714
|
.sia-card--selectable[data-sia-interaction-cursor=default],
|
|
2692
2715
|
.sia-card--actionable[data-sia-interaction-cursor=default] {
|
|
2693
2716
|
cursor: default;
|
|
@@ -2744,6 +2767,33 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2744
2767
|
border-color: var(--sia-color-primary);
|
|
2745
2768
|
box-shadow: inset 0 0 0 1px var(--sia-color-primary);
|
|
2746
2769
|
}
|
|
2770
|
+
.sia-card--selectable:not([aria-disabled=true]) {
|
|
2771
|
+
transition:
|
|
2772
|
+
background-color 140ms ease,
|
|
2773
|
+
border-color 140ms ease,
|
|
2774
|
+
transform 100ms ease;
|
|
2775
|
+
}
|
|
2776
|
+
.sia-card--selectable:not([aria-disabled=true]):hover {
|
|
2777
|
+
background: color-mix(in srgb, var(--sia-color-primary) 8%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2778
|
+
border-color: color-mix(in srgb, var(--sia-color-primary) 35%, var(--sia-color-border));
|
|
2779
|
+
}
|
|
2780
|
+
.sia-card--selectable.sia-card--selected:not([aria-disabled=true]):hover {
|
|
2781
|
+
background: color-mix(in srgb, var(--sia-color-primary) 16%, var(--sia-color-surface));
|
|
2782
|
+
border-color: var(--sia-color-primary);
|
|
2783
|
+
}
|
|
2784
|
+
.sia-card--selectable:not([aria-disabled=true]):active:not(:has(button:active, a:active, input:active, select:active, textarea:active, [contenteditable=true]:active)) {
|
|
2785
|
+
background: color-mix(in srgb, var(--sia-color-primary) 24%, var(--sia-card-background, var(--sia-color-surface)));
|
|
2786
|
+
border-color: var(--sia-color-primary);
|
|
2787
|
+
transform: scale(.98);
|
|
2788
|
+
}
|
|
2789
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2790
|
+
.sia-card--selectable:not([aria-disabled=true]) {
|
|
2791
|
+
transition: none;
|
|
2792
|
+
}
|
|
2793
|
+
.sia-card--selectable:not([aria-disabled=true]):active:not(:has(button:active, a:active, input:active, select:active, textarea:active, [contenteditable=true]:active)) {
|
|
2794
|
+
transform: none;
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2747
2797
|
.sia-card.sia-card--borderless {
|
|
2748
2798
|
border: 0;
|
|
2749
2799
|
box-shadow: none;
|
|
@@ -5567,6 +5617,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5567
5617
|
margin-bottom: 8px;
|
|
5568
5618
|
}
|
|
5569
5619
|
.sia-sortable-list {
|
|
5620
|
+
position: relative;
|
|
5570
5621
|
display: flex;
|
|
5571
5622
|
gap: 16px;
|
|
5572
5623
|
overflow: auto;
|
|
@@ -5582,7 +5633,25 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5582
5633
|
min-width: 0;
|
|
5583
5634
|
}
|
|
5584
5635
|
.sia-sortable-list__item.is-dragging {
|
|
5585
|
-
|
|
5636
|
+
z-index: 2;
|
|
5637
|
+
filter: drop-shadow(0 6px 8px rgb(0 0 0 / 16%));
|
|
5638
|
+
}
|
|
5639
|
+
.sia-sortable-list__placeholder {
|
|
5640
|
+
position: absolute;
|
|
5641
|
+
box-sizing: border-box;
|
|
5642
|
+
border: 2px dashed var(--sia-color-primary);
|
|
5643
|
+
border-radius: var(--sia-radius-md, 6px);
|
|
5644
|
+
background: var(--sia-color-primary-light);
|
|
5645
|
+
pointer-events: none;
|
|
5646
|
+
}
|
|
5647
|
+
.sia-sortable-list.is-sorting {
|
|
5648
|
+
user-select: none;
|
|
5649
|
+
}
|
|
5650
|
+
.sia-sortable-list.is-sorting .sia-sortable-list__handle {
|
|
5651
|
+
cursor: grabbing;
|
|
5652
|
+
}
|
|
5653
|
+
.sia-sortable-list__handle {
|
|
5654
|
+
touch-action: none;
|
|
5586
5655
|
}
|
|
5587
5656
|
.sia-sortable-list__handle {
|
|
5588
5657
|
display: flex;
|
|
@@ -5611,38 +5680,6 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5611
5680
|
background: transparent;
|
|
5612
5681
|
text-align: start;
|
|
5613
5682
|
}
|
|
5614
|
-
.sia-sortable-list__item.is-drop-before::before,
|
|
5615
|
-
.sia-sortable-list__item.is-drop-after::after {
|
|
5616
|
-
content: "";
|
|
5617
|
-
position: absolute;
|
|
5618
|
-
background: var(--sia-color-primary);
|
|
5619
|
-
pointer-events: none;
|
|
5620
|
-
z-index: 1;
|
|
5621
|
-
}
|
|
5622
|
-
.sia-sortable-list--horizontal .is-drop-before::before {
|
|
5623
|
-
top: 0;
|
|
5624
|
-
bottom: 0;
|
|
5625
|
-
left: -9px;
|
|
5626
|
-
width: 2px;
|
|
5627
|
-
}
|
|
5628
|
-
.sia-sortable-list--horizontal .is-drop-after::after {
|
|
5629
|
-
top: 0;
|
|
5630
|
-
bottom: 0;
|
|
5631
|
-
right: -9px;
|
|
5632
|
-
width: 2px;
|
|
5633
|
-
}
|
|
5634
|
-
.sia-sortable-list--vertical .is-drop-before::before {
|
|
5635
|
-
left: 0;
|
|
5636
|
-
right: 0;
|
|
5637
|
-
top: -9px;
|
|
5638
|
-
height: 2px;
|
|
5639
|
-
}
|
|
5640
|
-
.sia-sortable-list--vertical .is-drop-after::after {
|
|
5641
|
-
left: 0;
|
|
5642
|
-
right: 0;
|
|
5643
|
-
bottom: -9px;
|
|
5644
|
-
height: 2px;
|
|
5645
|
-
}
|
|
5646
5683
|
.sia-popover.sia-popover--wide {
|
|
5647
5684
|
width: 760px;
|
|
5648
5685
|
max-width: calc(100vw - 32px);
|
|
@@ -5698,6 +5735,29 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5698
5735
|
.sia-query-form__fields {
|
|
5699
5736
|
position: relative;
|
|
5700
5737
|
}
|
|
5738
|
+
.sia-virtual-grid {
|
|
5739
|
+
position: relative;
|
|
5740
|
+
flex: 1;
|
|
5741
|
+
height: 100%;
|
|
5742
|
+
min-width: 0;
|
|
5743
|
+
min-height: 0;
|
|
5744
|
+
overflow: auto;
|
|
5745
|
+
overscroll-behavior: contain;
|
|
5746
|
+
overflow-anchor: none;
|
|
5747
|
+
}
|
|
5748
|
+
.sia-virtual-grid__spacer {
|
|
5749
|
+
position: relative;
|
|
5750
|
+
width: 100%;
|
|
5751
|
+
}
|
|
5752
|
+
.sia-virtual-grid__row {
|
|
5753
|
+
position: absolute;
|
|
5754
|
+
inset-inline: 0;
|
|
5755
|
+
display: grid;
|
|
5756
|
+
}
|
|
5757
|
+
.sia-virtual-grid__item {
|
|
5758
|
+
min-width: 0;
|
|
5759
|
+
height: 100%;
|
|
5760
|
+
}
|
|
5701
5761
|
|
|
5702
5762
|
/* src/game/game.css */
|
|
5703
5763
|
.sia-game {
|
package/dist/game.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./chunk-RX242MUO.js";
|
|
2
2
|
import {
|
|
3
3
|
Modal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HDN7EEGA.js";
|
|
5
5
|
import {
|
|
6
6
|
Button
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OTVK3HGP.js";
|
|
8
8
|
import {
|
|
9
9
|
initializeDefaultScrollbars
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SRWUDTCS.js";
|
|
11
11
|
|
|
12
12
|
// src/game/hex-rules.ts
|
|
13
13
|
var DEFAULT_GAME_ABILITIES = [
|