@sia.soul/sia-react-ui 0.1.142 → 0.1.144
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/{Button-BiL3Wjsd.d.ts → Button-C8W8ZHWV.d.ts} +1 -1
- package/dist/{Button-O_pNB3SQ.d.cts → Button-CxKBjLda.d.cts} +1 -1
- package/dist/{Select-DeD4O8FL.d.ts → Select-CTSd8zum.d.ts} +14 -10
- package/dist/{Select-Y0e9kaxE.d.cts → Select-bKLket9n.d.cts} +14 -10
- package/dist/chart.cjs +1051 -335
- package/dist/chart.js +5 -5
- package/dist/chunk-4OHS7RXE.js +1004 -0
- package/dist/{chunk-WIRIEIRO.js → chunk-4TYHSAR3.js} +5 -5
- package/dist/{chunk-TUGCP3GB.js → chunk-566S64IP.js} +5 -5
- package/dist/{chunk-CZ2ITBRW.js → chunk-7SEGBB6V.js} +34 -5
- package/dist/{chunk-KY6A5IJH.js → chunk-ETQJ2DQ2.js} +1 -1
- package/dist/{chunk-WD56MJO2.js → chunk-F52O2MOV.js} +7 -3
- package/dist/{chunk-PQBCD54U.js → chunk-JRXYM5YH.js} +167 -64
- package/dist/{chunk-SCEHVGKV.js → chunk-LKLPCYEP.js} +2 -2
- package/dist/{chunk-3KYG7IU7.js → chunk-MD4CGSOR.js} +105 -61
- package/dist/{chunk-PGP4TEPP.js → chunk-ORSQAJ22.js} +154 -494
- package/dist/{chunk-SO7IJZIR.js → chunk-PD3K5U5Y.js} +2 -2
- package/dist/{chunk-UVHC6OEX.js → chunk-WCYVBO2N.js} +342 -123
- package/dist/{core-DYo5C4Si.d.cts → core-COaZfusa.d.cts} +51 -24
- package/dist/{core-sWwvVAmP.d.ts → core-CvfsQGuT.d.ts} +51 -24
- package/dist/core.cjs +1996 -1250
- package/dist/core.css +413 -344
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +18 -9
- package/dist/game.cjs +1984 -1169
- package/dist/game.css +182 -177
- package/dist/game.d.cts +1 -1
- package/dist/game.d.ts +1 -1
- package/dist/game.js +8 -3
- package/dist/index.cjs +4660 -3541
- package/dist/index.css +413 -344
- package/dist/index.d.cts +78 -81
- package/dist/index.d.ts +78 -81
- package/dist/index.js +1083 -715
- package/dist/markdown-editor.cjs +727 -40
- package/dist/markdown-editor.js +8 -3
- package/dist/rich-text-editor.cjs +1265 -308
- package/dist/rich-text-editor.js +12 -7
- package/dist/{select-date-range-X6a9Y-Te.d.ts → select-date-range-C8cacfmb.d.ts} +1 -1
- package/dist/{select-date-range-DiBQQ0Rn.d.cts → select-date-range-Dad0IdD4.d.cts} +1 -1
- package/dist/select-date-range.cjs +1277 -806
- package/dist/select-date-range.d.cts +3 -3
- package/dist/select-date-range.d.ts +3 -3
- package/dist/select-date-range.js +13 -8
- package/package.json +9 -2
- package/dist/chunk-NZMUW5XI.js +0 -292
package/dist/game.css
CHANGED
|
@@ -7,6 +7,48 @@
|
|
|
7
7
|
outline: none !important;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
/* src/overlay-borders.css */
|
|
11
|
+
.sia-select__dropdown.sia-select__dropdown,
|
|
12
|
+
.sia-rich-text-editor__link-popup.sia-rich-text-editor__link-popup,
|
|
13
|
+
.sia-floating-panel.sia-floating-panel,
|
|
14
|
+
.sia-color-picker__popup.sia-color-picker__popup,
|
|
15
|
+
.sia-time-panel.sia-time-panel,
|
|
16
|
+
.sia-date-panel.sia-date-panel,
|
|
17
|
+
.sia-tree-select__dropdown.sia-tree-select__dropdown,
|
|
18
|
+
.sia-menu__popup.sia-menu__popup,
|
|
19
|
+
.sia-dropdown__popup.sia-dropdown__popup,
|
|
20
|
+
.sia-cascader__popup.sia-cascader__popup,
|
|
21
|
+
.sia-notification__notice.sia-notification__notice,
|
|
22
|
+
.sia-tour__panel.sia-tour__panel,
|
|
23
|
+
.sia-input-select__popup.sia-input-select__popup {
|
|
24
|
+
border-color: var(--sia-overlay-border-color, var(--sia-color-border));
|
|
25
|
+
}
|
|
26
|
+
.sia-floating__overlay.sia-popover.sia-popover {
|
|
27
|
+
--sia-floating-arrow-border: var(--sia-overlay-border-color, var(--sia-color-border));
|
|
28
|
+
}
|
|
29
|
+
.sia-dropdown__popup.sia-dropdown__popup--arrow::before {
|
|
30
|
+
border-color: var(--sia-overlay-border-color, var(--sia-color-border));
|
|
31
|
+
}
|
|
32
|
+
.sia-message--success,
|
|
33
|
+
.sia-notification__notice--success {
|
|
34
|
+
--sia-overlay-border-color: var(--sia-feedback-success-border);
|
|
35
|
+
}
|
|
36
|
+
.sia-message--warning,
|
|
37
|
+
.sia-notification__notice--warning {
|
|
38
|
+
--sia-overlay-border-color: var(--sia-feedback-warning-border);
|
|
39
|
+
}
|
|
40
|
+
.sia-message--error,
|
|
41
|
+
.sia-notification__notice--error {
|
|
42
|
+
--sia-overlay-border-color: var(--sia-feedback-error-border);
|
|
43
|
+
}
|
|
44
|
+
.sia-message.sia-message::before {
|
|
45
|
+
border-color: var(--sia-overlay-border-color, rgb(0 0 0 / 6%));
|
|
46
|
+
}
|
|
47
|
+
.sia-drawer.sia-drawer {
|
|
48
|
+
outline: 1px solid var(--sia-overlay-border-color, transparent);
|
|
49
|
+
outline-offset: -1px;
|
|
50
|
+
}
|
|
51
|
+
|
|
10
52
|
/* src/floating-placeholder.css */
|
|
11
53
|
.sia-placeholder-floating {
|
|
12
54
|
position: relative;
|
|
@@ -46,13 +88,14 @@
|
|
|
46
88
|
.sia-placeholder-floating--filled > .sia-floating-placeholder,
|
|
47
89
|
.sia-placeholder-floating--active > .sia-floating-placeholder {
|
|
48
90
|
top: 0;
|
|
91
|
+
color: var(--sia-floating-label-color, var(--sia-color-text-secondary));
|
|
49
92
|
background: var(--sia-color-surface);
|
|
50
93
|
opacity: 1;
|
|
51
94
|
transform: translateY(-50%) scale(.85);
|
|
52
95
|
}
|
|
53
96
|
.sia-placeholder-floating:focus-within > .sia-floating-placeholder,
|
|
54
97
|
.sia-placeholder-floating--active > .sia-floating-placeholder {
|
|
55
|
-
color: var(--sia-color-primary);
|
|
98
|
+
color: var(--sia-color-primary-text);
|
|
56
99
|
}
|
|
57
100
|
.sia-placeholder-floating.sia-time-picker > input::placeholder,
|
|
58
101
|
.sia-placeholder-floating > input::placeholder,
|
|
@@ -68,7 +111,7 @@
|
|
|
68
111
|
.sia-placeholder-floating.is-disabled > .sia-floating-placeholder,
|
|
69
112
|
.sia-placeholder-floating:disabled > .sia-floating-placeholder,
|
|
70
113
|
fieldset:disabled .sia-placeholder-floating > .sia-floating-placeholder {
|
|
71
|
-
background: var(--sia-color-control-
|
|
114
|
+
background: var(--sia-color-control-disabled);
|
|
72
115
|
}
|
|
73
116
|
.sia-form-item--error .sia-placeholder-floating > .sia-floating-placeholder,
|
|
74
117
|
.sia-select--error .sia-placeholder-floating > .sia-floating-placeholder,
|
|
@@ -120,7 +163,7 @@ fieldset:disabled .sia-placeholder-floating > .sia-floating-placeholder {
|
|
|
120
163
|
}
|
|
121
164
|
fieldset:disabled .sia-input-control__floating-placeholder,
|
|
122
165
|
fieldset:disabled .sia-input-number__floating-placeholder {
|
|
123
|
-
background: var(--sia-color-control-
|
|
166
|
+
background: var(--sia-color-control-disabled);
|
|
124
167
|
}
|
|
125
168
|
.sia-picker-range-control__field {
|
|
126
169
|
position: relative;
|
|
@@ -169,7 +212,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
169
212
|
color: var(--sia-color-warning);
|
|
170
213
|
}
|
|
171
214
|
.sia-picker.is-disabled .sia-picker-range-control__field > .sia-floating-placeholder {
|
|
172
|
-
background: var(--sia-color-control-
|
|
215
|
+
background: var(--sia-color-control-disabled);
|
|
173
216
|
}
|
|
174
217
|
|
|
175
218
|
/* src/control-sizes.css */
|
|
@@ -430,14 +473,28 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
430
473
|
--sia-color-primary-text-active: #0958d9;
|
|
431
474
|
--sia-color-primary-light: #e6f4ff;
|
|
432
475
|
--sia-color-text: #1f1f1f;
|
|
476
|
+
--sia-icon-contrast: #ffffff;
|
|
433
477
|
--sia-color-text-secondary: #666666;
|
|
478
|
+
--sia-floating-label-color: var(--sia-color-text-secondary);
|
|
434
479
|
--sia-color-text-tertiary: #8c8c8c;
|
|
435
480
|
--sia-color-background: #f5f7fa;
|
|
436
481
|
--sia-color-surface: #ffffff;
|
|
437
482
|
--sia-color-border: #d9d9d9;
|
|
483
|
+
--sia-control-border-color: var(--sia-color-border);
|
|
484
|
+
--sia-alert-border-strength: 100%;
|
|
485
|
+
--sia-overlay-border-color: initial;
|
|
486
|
+
--sia-feedback-success-border: initial;
|
|
487
|
+
--sia-feedback-warning-border: initial;
|
|
488
|
+
--sia-feedback-error-border: initial;
|
|
489
|
+
--sia-modal-border-color: rgb(0 0 0 / 6%);
|
|
490
|
+
--sia-table-border-color: #EFF2F6;
|
|
491
|
+
--sia-color-control-disabled: #fdfdfd;
|
|
492
|
+
--sia-color-border-disabled: #f0f0f0;
|
|
438
493
|
--sia-card-header-border-color: color-mix(in srgb, var(--sia-color-border) 40%, var(--sia-color-surface));
|
|
439
494
|
--sia-color-control-hover: #fafafa;
|
|
440
495
|
--sia-color-control-active: #f0f0f0;
|
|
496
|
+
--sia-switch-track-off: #8c8c8c;
|
|
497
|
+
--sia-switch-thumb-off: #ffffff;
|
|
441
498
|
--sia-color-focus-ring: rgb(22 119 255 / 22%);
|
|
442
499
|
--sia-color-success: #52c41a;
|
|
443
500
|
--sia-color-warning: #faad14;
|
|
@@ -453,6 +510,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
453
510
|
--sia-control-font-size: 13px;
|
|
454
511
|
--sia-font-size-large: 18px;
|
|
455
512
|
--sia-shadow-popup: 0 4px 12px rgb(0 0 0 / 22%);
|
|
513
|
+
--sia-shadow-notification: 0 3px 10px rgb(0 0 0 / 10%);
|
|
456
514
|
--sia-scroll-overflow: auto;
|
|
457
515
|
--sia-scrollbar-thumb: rgb(82 82 82 / 68%);
|
|
458
516
|
--sia-scrollbar-thumb-hover: rgb(64 64 64 / 82%);
|
|
@@ -466,16 +524,31 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
466
524
|
--sia-color-primary-text-active: #4d94f0;
|
|
467
525
|
--sia-color-primary-light: #15345b;
|
|
468
526
|
--sia-color-text: #ebebeb;
|
|
527
|
+
--sia-icon-contrast: #1f1f1f;
|
|
469
528
|
--sia-color-text-secondary: #a6a6a6;
|
|
529
|
+
--sia-floating-label-color: #d6d6d6;
|
|
470
530
|
--sia-color-text-tertiary: #7d7d7d;
|
|
471
531
|
--sia-color-background: #141414;
|
|
472
532
|
--sia-color-surface: #1f1f1f;
|
|
473
533
|
--sia-color-border: #424242;
|
|
534
|
+
--sia-control-border-color: #595959;
|
|
535
|
+
--sia-alert-border-strength: 28%;
|
|
536
|
+
--sia-overlay-border-color: color-mix(in srgb, var(--sia-color-primary-hover) 86%, white);
|
|
537
|
+
--sia-feedback-success-border: color-mix(in srgb, var(--sia-color-success) 86%, white);
|
|
538
|
+
--sia-feedback-warning-border: color-mix(in srgb, #fa8c16 86%, white);
|
|
539
|
+
--sia-feedback-error-border: color-mix(in srgb, var(--sia-color-error) 86%, white);
|
|
540
|
+
--sia-modal-border-color: var(--sia-overlay-border-color);
|
|
541
|
+
--sia-table-border-color: #363636;
|
|
542
|
+
--sia-color-control-disabled: #303030;
|
|
543
|
+
--sia-color-border-disabled: #494949;
|
|
474
544
|
--sia-card-header-border-color: var(--sia-color-border);
|
|
475
545
|
--sia-color-control-hover: #2d2d2d;
|
|
476
546
|
--sia-color-control-active: #383838;
|
|
547
|
+
--sia-switch-track-off: #333335;
|
|
548
|
+
--sia-switch-thumb-off: #8b90a0;
|
|
477
549
|
--sia-color-focus-ring: rgb(60 135 230 / 28%);
|
|
478
550
|
--sia-shadow-popup: 0 4px 12px rgb(0 0 0 / 50%);
|
|
551
|
+
--sia-shadow-notification: 0 3px 10px rgb(0 0 0 / 24%);
|
|
479
552
|
--sia-scrollbar-thumb: rgb(174 174 174 / 62%);
|
|
480
553
|
--sia-scrollbar-thumb-hover: rgb(205 205 205 / 78%);
|
|
481
554
|
}
|
|
@@ -651,6 +724,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
651
724
|
box-shadow 160ms ease,
|
|
652
725
|
transform 120ms ease;
|
|
653
726
|
}
|
|
727
|
+
.sia-button:where(.sia-button--default, .sia-button--dashed):where(:not(:disabled):not(.sia-button--danger)) {
|
|
728
|
+
border-color: var(--sia-control-border-color, var(--sia-color-border));
|
|
729
|
+
}
|
|
654
730
|
.sia-button:hover:not(:disabled) {
|
|
655
731
|
color: var(--sia-color-primary-text-hover);
|
|
656
732
|
border-color: var(--sia-color-primary-hover);
|
|
@@ -658,7 +734,6 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
658
734
|
.sia-button:active:not(:disabled) {
|
|
659
735
|
color: var(--sia-color-primary-text-active);
|
|
660
736
|
border-color: var(--sia-color-primary-active);
|
|
661
|
-
transform: translateY(1px);
|
|
662
737
|
}
|
|
663
738
|
.sia-button:focus-visible {
|
|
664
739
|
outline: none;
|
|
@@ -829,7 +904,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
829
904
|
padding: 0 11px;
|
|
830
905
|
color: var(--sia-color-text);
|
|
831
906
|
background: var(--sia-color-surface);
|
|
832
|
-
border: 1px solid var(--sia-color-border);
|
|
907
|
+
border: 1px solid var(--sia-control-border-color, var(--sia-color-border));
|
|
833
908
|
border-radius: var(--sia-radius);
|
|
834
909
|
transition:
|
|
835
910
|
border-color 160ms ease,
|
|
@@ -865,7 +940,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
865
940
|
.sia-input-control.is-disabled {
|
|
866
941
|
color: var(--sia-color-text-secondary);
|
|
867
942
|
cursor: not-allowed;
|
|
868
|
-
background: var(--sia-color-control-
|
|
943
|
+
background: var(--sia-color-control-disabled);
|
|
944
|
+
border-color: var(--sia-color-border-disabled);
|
|
869
945
|
}
|
|
870
946
|
.sia-input-control__affix {
|
|
871
947
|
display: inline-flex;
|
|
@@ -1021,14 +1097,14 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1021
1097
|
.sia-input-number--floating:focus-within .sia-input-number__floating-placeholder,
|
|
1022
1098
|
.sia-input-number--floating.is-filled .sia-input-number__floating-placeholder {
|
|
1023
1099
|
top: 0;
|
|
1024
|
-
color: var(--sia-color-text-secondary);
|
|
1100
|
+
color: var(--sia-floating-label-color, var(--sia-color-text-secondary));
|
|
1025
1101
|
background: var(--sia-color-surface);
|
|
1026
1102
|
opacity: 1;
|
|
1027
1103
|
transform: translateY(-50%) scale(0.85);
|
|
1028
1104
|
}
|
|
1029
1105
|
.sia-input-control--floating:focus-within .sia-input-control__floating-placeholder,
|
|
1030
1106
|
.sia-input-number--floating:focus-within .sia-input-number__floating-placeholder {
|
|
1031
|
-
color: var(--sia-color-primary);
|
|
1107
|
+
color: var(--sia-color-primary-text);
|
|
1032
1108
|
}
|
|
1033
1109
|
.sia-input-control--floating.sia-input-control--warning:focus-within .sia-input-control__floating-placeholder,
|
|
1034
1110
|
.sia-input-number--floating.sia-input-number--warning:focus-within .sia-input-number__floating-placeholder {
|
|
@@ -1040,7 +1116,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1040
1116
|
}
|
|
1041
1117
|
.sia-input-control--floating.is-disabled .sia-input-control__floating-placeholder,
|
|
1042
1118
|
.sia-input-number--floating.is-disabled .sia-input-number__floating-placeholder {
|
|
1043
|
-
background: var(--sia-color-control-
|
|
1119
|
+
background: var(--sia-color-control-disabled);
|
|
1044
1120
|
}
|
|
1045
1121
|
.sia-input:disabled {
|
|
1046
1122
|
color: var(--sia-color-text-secondary);
|
|
@@ -1054,7 +1130,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1054
1130
|
overflow: hidden;
|
|
1055
1131
|
color: var(--sia-color-text);
|
|
1056
1132
|
background: var(--sia-color-surface);
|
|
1057
|
-
border: 1px solid var(--sia-color-border);
|
|
1133
|
+
border: 1px solid var(--sia-control-border-color, var(--sia-color-border));
|
|
1058
1134
|
border-radius: var(--sia-radius);
|
|
1059
1135
|
transition:
|
|
1060
1136
|
border-color 160ms ease,
|
|
@@ -1082,7 +1158,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1082
1158
|
.sia-textarea-control.is-disabled {
|
|
1083
1159
|
color: var(--sia-color-text-secondary);
|
|
1084
1160
|
cursor: not-allowed;
|
|
1085
|
-
background: var(--sia-color-control-
|
|
1161
|
+
background: var(--sia-color-control-disabled);
|
|
1162
|
+
border-color: var(--sia-color-border-disabled);
|
|
1086
1163
|
}
|
|
1087
1164
|
.sia-textarea {
|
|
1088
1165
|
display: block;
|
|
@@ -1141,7 +1218,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1141
1218
|
}
|
|
1142
1219
|
.sia-rich-text-editor.is-disabled {
|
|
1143
1220
|
color: var(--sia-color-text-secondary);
|
|
1144
|
-
background: var(--sia-color-control-
|
|
1221
|
+
background: var(--sia-color-control-disabled);
|
|
1222
|
+
border-color: var(--sia-color-border-disabled);
|
|
1145
1223
|
}
|
|
1146
1224
|
.sia-rich-text-editor__toolbar {
|
|
1147
1225
|
position: relative;
|
|
@@ -1587,7 +1665,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1587
1665
|
overflow: hidden;
|
|
1588
1666
|
color: var(--sia-color-text);
|
|
1589
1667
|
background: var(--sia-color-surface);
|
|
1590
|
-
border: 1px solid var(--sia-color-border);
|
|
1668
|
+
border: 1px solid var(--sia-control-border-color, var(--sia-color-border));
|
|
1591
1669
|
border-radius: var(--sia-radius);
|
|
1592
1670
|
transition:
|
|
1593
1671
|
border-color 160ms ease,
|
|
@@ -1624,7 +1702,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1624
1702
|
.sia-input-number.is-disabled {
|
|
1625
1703
|
color: var(--sia-color-text-secondary);
|
|
1626
1704
|
cursor: not-allowed;
|
|
1627
|
-
background: var(--sia-color-control-
|
|
1705
|
+
background: var(--sia-color-control-disabled);
|
|
1706
|
+
border-color: var(--sia-color-border-disabled);
|
|
1628
1707
|
}
|
|
1629
1708
|
.sia-input-number__input-wrap {
|
|
1630
1709
|
position: relative;
|
|
@@ -1740,7 +1819,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1740
1819
|
color: inherit;
|
|
1741
1820
|
cursor: pointer;
|
|
1742
1821
|
background: var(--sia-color-surface);
|
|
1743
|
-
border: 1px solid var(--sia-color-border);
|
|
1822
|
+
border: 1px solid var(--sia-control-border-color, var(--sia-color-border));
|
|
1744
1823
|
border-radius: var(--sia-radius);
|
|
1745
1824
|
text-align: left;
|
|
1746
1825
|
transition:
|
|
@@ -1782,7 +1861,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1782
1861
|
.sia-select.is-disabled > .sia-select__trigger {
|
|
1783
1862
|
color: var(--sia-color-text-secondary);
|
|
1784
1863
|
cursor: not-allowed;
|
|
1785
|
-
background: var(--sia-color-control-
|
|
1864
|
+
background: var(--sia-color-control-disabled);
|
|
1865
|
+
border-color: var(--sia-color-border-disabled);
|
|
1786
1866
|
}
|
|
1787
1867
|
.sia-select__value {
|
|
1788
1868
|
min-width: 0;
|
|
@@ -1917,7 +1997,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1917
1997
|
margin-bottom: 4px;
|
|
1918
1998
|
padding: 0 9px;
|
|
1919
1999
|
color: var(--sia-color-text-secondary);
|
|
1920
|
-
border: 1px solid var(--sia-color-border);
|
|
2000
|
+
border: 1px solid var(--sia-control-border-color, var(--sia-color-border));
|
|
1921
2001
|
border-radius: var(--sia-radius);
|
|
1922
2002
|
}
|
|
1923
2003
|
.sia-select__search:focus-within {
|
|
@@ -2016,9 +2096,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2016
2096
|
background-color: var(--sia-color-control-hover);
|
|
2017
2097
|
}
|
|
2018
2098
|
.sia-select__option.is-selected {
|
|
2019
|
-
color: var(--sia-color-primary
|
|
2099
|
+
color: var(--sia-color-primary-text);
|
|
2020
2100
|
font-weight: 500;
|
|
2021
|
-
background-color: var(--sia-color-primary-bg,
|
|
2101
|
+
background-color: var(--sia-color-primary-bg, var(--sia-color-primary-light));
|
|
2022
2102
|
}
|
|
2023
2103
|
.sia-select__option.is-disabled {
|
|
2024
2104
|
color: var(--sia-color-text-secondary);
|
|
@@ -2064,7 +2144,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2064
2144
|
width: var(--sia-switch-width, 44px);
|
|
2065
2145
|
height: var(--sia-switch-height, 22px);
|
|
2066
2146
|
color: #fff;
|
|
2067
|
-
background-color:
|
|
2147
|
+
background-color: var(--sia-switch-track-off);
|
|
2068
2148
|
}
|
|
2069
2149
|
.sia-switch__thumb {
|
|
2070
2150
|
position: absolute;
|
|
@@ -2076,13 +2156,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2076
2156
|
background-color: #fff;
|
|
2077
2157
|
border-radius: 999px;
|
|
2078
2158
|
box-shadow: 0 2px 4px rgb(0 35 11 / 20%);
|
|
2079
|
-
transition:
|
|
2159
|
+
transition: transform 220ms cubic-bezier(.22, 1.4, .36, 1), background-color 160ms ease;
|
|
2160
|
+
}
|
|
2161
|
+
.sia-switch-input:not(:checked) + .sia-switch--standard .sia-switch__thumb {
|
|
2162
|
+
background-color: var(--sia-switch-thumb-off);
|
|
2080
2163
|
}
|
|
2081
2164
|
.sia-switch-input:checked + .sia-switch--standard {
|
|
2082
2165
|
background-color: var(--sia-color-primary);
|
|
2083
2166
|
}
|
|
2084
2167
|
.sia-switch-input:checked + .sia-switch--standard .sia-switch__thumb {
|
|
2085
|
-
|
|
2168
|
+
transform: translateX(var(--sia-switch-travel, 22px));
|
|
2086
2169
|
}
|
|
2087
2170
|
.sia-switch--with-content {
|
|
2088
2171
|
width: auto;
|
|
@@ -2136,7 +2219,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2136
2219
|
box-shadow: 0 1px 3px rgb(22 119 255 / 40%);
|
|
2137
2220
|
}
|
|
2138
2221
|
.sia-switch-input:checked + .sia-switch--segmented .sia-switch__thumb {
|
|
2139
|
-
|
|
2222
|
+
transform: translateX(var(--sia-switch-travel, 34px));
|
|
2140
2223
|
}
|
|
2141
2224
|
.sia-switch__segment {
|
|
2142
2225
|
position: relative;
|
|
@@ -2249,7 +2332,6 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2249
2332
|
inset: 0;
|
|
2250
2333
|
z-index: 0;
|
|
2251
2334
|
background: rgb(0 0 0 / 45%);
|
|
2252
|
-
animation: sia-modal-mask-in 220ms ease both;
|
|
2253
2335
|
will-change: opacity;
|
|
2254
2336
|
}
|
|
2255
2337
|
.sia-modal-root--centered {
|
|
@@ -2262,22 +2344,14 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2262
2344
|
width: min(var(--sia-modal-width), calc(100vw - 32px));
|
|
2263
2345
|
overflow: hidden;
|
|
2264
2346
|
background: var(--sia-color-surface);
|
|
2265
|
-
border: 1px solid rgb(0 0 0 / 6%);
|
|
2347
|
+
border: 1px solid var(--sia-modal-border-color, rgb(0 0 0 / 6%));
|
|
2266
2348
|
border-radius: calc(var(--sia-radius) + 4px);
|
|
2267
2349
|
box-shadow: var(--sia-shadow-popup);
|
|
2268
2350
|
outline: none;
|
|
2269
|
-
animation: sia-modal-slide-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
|
|
2270
|
-
will-change: transform, opacity;
|
|
2271
2351
|
}
|
|
2272
2352
|
.sia-modal-root[data-state=closing] {
|
|
2273
2353
|
pointer-events: none;
|
|
2274
2354
|
}
|
|
2275
|
-
.sia-modal-root[data-state=closing]::before {
|
|
2276
|
-
animation: sia-modal-mask-out 220ms ease both;
|
|
2277
|
-
}
|
|
2278
|
-
.sia-modal-root[data-state=closing] .sia-modal {
|
|
2279
|
-
animation: sia-modal-slide-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
|
|
2280
|
-
}
|
|
2281
2355
|
.sia-modal__header {
|
|
2282
2356
|
display: flex;
|
|
2283
2357
|
align-items: flex-start;
|
|
@@ -2369,7 +2443,6 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2369
2443
|
cursor: default;
|
|
2370
2444
|
background: rgb(0 0 0 / 45%);
|
|
2371
2445
|
border: 0;
|
|
2372
|
-
animation: sia-drawer-mask-in 200ms ease both;
|
|
2373
2446
|
}
|
|
2374
2447
|
.sia-drawer {
|
|
2375
2448
|
position: absolute;
|
|
@@ -2379,8 +2452,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2379
2452
|
background: var(--sia-color-surface);
|
|
2380
2453
|
box-shadow: var(--sia-shadow-popup);
|
|
2381
2454
|
outline: none;
|
|
2382
|
-
transition: translate
|
|
2383
|
-
will-change: translate, transform;
|
|
2455
|
+
transition: translate 360ms cubic-bezier(.2, .8, .2, 1);
|
|
2384
2456
|
}
|
|
2385
2457
|
.sia-drawer--right[data-push-depth]:not([data-push-depth="0"]) {
|
|
2386
2458
|
box-shadow: -6px 0 16px rgb(15 23 42 / 34%);
|
|
@@ -2402,11 +2474,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2402
2474
|
}
|
|
2403
2475
|
.sia-drawer--left {
|
|
2404
2476
|
left: 0;
|
|
2405
|
-
animation: sia-drawer-left-motion 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2406
2477
|
}
|
|
2407
2478
|
.sia-drawer--right {
|
|
2408
2479
|
right: 0;
|
|
2409
|
-
animation: sia-drawer-right-motion 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2410
2480
|
}
|
|
2411
2481
|
.sia-drawer--top,
|
|
2412
2482
|
.sia-drawer--bottom {
|
|
@@ -2416,26 +2486,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2416
2486
|
}
|
|
2417
2487
|
.sia-drawer--top {
|
|
2418
2488
|
top: 0;
|
|
2419
|
-
animation: sia-drawer-top-motion 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2420
2489
|
}
|
|
2421
2490
|
.sia-drawer--bottom {
|
|
2422
2491
|
bottom: 0;
|
|
2423
|
-
animation: sia-drawer-bottom-motion 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2424
|
-
}
|
|
2425
|
-
.sia-drawer-root[data-state=closing] .sia-drawer__mask {
|
|
2426
|
-
animation: sia-drawer-mask-out 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2427
|
-
}
|
|
2428
|
-
.sia-drawer-root[data-state=closing] .sia-drawer--left {
|
|
2429
|
-
animation: sia-drawer-left-out 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2430
|
-
}
|
|
2431
|
-
.sia-drawer-root[data-state=closing] .sia-drawer--right {
|
|
2432
|
-
animation: sia-drawer-right-out 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2433
|
-
}
|
|
2434
|
-
.sia-drawer-root[data-state=closing] .sia-drawer--top {
|
|
2435
|
-
animation: sia-drawer-top-out 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2436
|
-
}
|
|
2437
|
-
.sia-drawer-root[data-state=closing] .sia-drawer--bottom {
|
|
2438
|
-
animation: sia-drawer-bottom-out 400ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2439
2492
|
}
|
|
2440
2493
|
.sia-drawer__header {
|
|
2441
2494
|
display: flex;
|
|
@@ -2496,6 +2549,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2496
2549
|
padding-inline: 16px;
|
|
2497
2550
|
}
|
|
2498
2551
|
.sia-message {
|
|
2552
|
+
position: relative;
|
|
2553
|
+
isolation: isolate;
|
|
2499
2554
|
font-size: 14px;
|
|
2500
2555
|
display: flex;
|
|
2501
2556
|
align-items: center;
|
|
@@ -2505,12 +2560,22 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2505
2560
|
padding: 9px 14px;
|
|
2506
2561
|
color: var(--sia-color-text);
|
|
2507
2562
|
pointer-events: auto;
|
|
2563
|
+
background: transparent;
|
|
2564
|
+
border: 1px solid transparent;
|
|
2565
|
+
border-radius: calc(var(--sia-radius) + 2px);
|
|
2566
|
+
box-shadow: none;
|
|
2567
|
+
}
|
|
2568
|
+
.sia-message::before {
|
|
2569
|
+
content: "";
|
|
2570
|
+
position: absolute;
|
|
2571
|
+
inset: -1px;
|
|
2572
|
+
z-index: -1;
|
|
2573
|
+
box-sizing: border-box;
|
|
2574
|
+
pointer-events: none;
|
|
2508
2575
|
background: var(--sia-color-surface);
|
|
2509
2576
|
border: 1px solid rgb(0 0 0 / 6%);
|
|
2510
|
-
border-radius:
|
|
2577
|
+
border-radius: inherit;
|
|
2511
2578
|
box-shadow: var(--sia-shadow-popup);
|
|
2512
|
-
animation: sia-message-pop-in 200ms cubic-bezier(.22, 1, .36, 1) both;
|
|
2513
|
-
will-change: transform, opacity;
|
|
2514
2579
|
}
|
|
2515
2580
|
.sia-message__icon {
|
|
2516
2581
|
display: inline-flex;
|
|
@@ -2761,25 +2826,25 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2761
2826
|
}
|
|
2762
2827
|
.sia-alert--info {
|
|
2763
2828
|
background: #e6f4ff;
|
|
2764
|
-
border-color: #91caff;
|
|
2829
|
+
border-color: color-mix(in srgb, #91caff var(--sia-alert-border-strength, 100%), var(--sia-color-surface));
|
|
2765
2830
|
}
|
|
2766
2831
|
.sia-alert--success {
|
|
2767
2832
|
background: #f6ffed;
|
|
2768
|
-
border-color: #b7eb8f;
|
|
2833
|
+
border-color: color-mix(in srgb, #b7eb8f var(--sia-alert-border-strength, 100%), var(--sia-color-surface));
|
|
2769
2834
|
}
|
|
2770
2835
|
.sia-alert--success .sia-alert__icon {
|
|
2771
2836
|
color: var(--sia-color-success);
|
|
2772
2837
|
}
|
|
2773
2838
|
.sia-alert--warning {
|
|
2774
2839
|
background: #fffbe6;
|
|
2775
|
-
border-color: #ffe58f;
|
|
2840
|
+
border-color: color-mix(in srgb, #ffe58f var(--sia-alert-border-strength, 100%), var(--sia-color-surface));
|
|
2776
2841
|
}
|
|
2777
2842
|
.sia-alert--warning .sia-alert__icon {
|
|
2778
2843
|
color: var(--sia-color-warning);
|
|
2779
2844
|
}
|
|
2780
2845
|
.sia-alert--error {
|
|
2781
2846
|
background: #fff2f0;
|
|
2782
|
-
border-color: #ffccc7;
|
|
2847
|
+
border-color: color-mix(in srgb, #ffccc7 var(--sia-alert-border-strength, 100%), var(--sia-color-surface));
|
|
2783
2848
|
}
|
|
2784
2849
|
.sia-alert--error .sia-alert__icon {
|
|
2785
2850
|
color: var(--sia-color-error);
|
|
@@ -4623,123 +4688,11 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4623
4688
|
transform: translate(-50%, -50%) scale(18);
|
|
4624
4689
|
}
|
|
4625
4690
|
}
|
|
4626
|
-
@keyframes sia-modal-mask-in {
|
|
4627
|
-
from {
|
|
4628
|
-
opacity: 0;
|
|
4629
|
-
}
|
|
4630
|
-
to {
|
|
4631
|
-
opacity: 1;
|
|
4632
|
-
}
|
|
4633
|
-
}
|
|
4634
|
-
@keyframes sia-modal-mask-out {
|
|
4635
|
-
from {
|
|
4636
|
-
opacity: 1;
|
|
4637
|
-
}
|
|
4638
|
-
to {
|
|
4639
|
-
opacity: 0;
|
|
4640
|
-
}
|
|
4641
|
-
}
|
|
4642
|
-
@keyframes sia-modal-slide-in {
|
|
4643
|
-
from {
|
|
4644
|
-
opacity: 0;
|
|
4645
|
-
transform: translateY(-48px);
|
|
4646
|
-
}
|
|
4647
|
-
}
|
|
4648
|
-
@keyframes sia-modal-slide-out {
|
|
4649
|
-
to {
|
|
4650
|
-
opacity: 0;
|
|
4651
|
-
transform: translateY(-48px);
|
|
4652
|
-
}
|
|
4653
|
-
}
|
|
4654
|
-
@keyframes sia-drawer-mask-in {
|
|
4655
|
-
from {
|
|
4656
|
-
opacity: 0;
|
|
4657
|
-
}
|
|
4658
|
-
}
|
|
4659
|
-
@keyframes sia-drawer-mask-out {
|
|
4660
|
-
to {
|
|
4661
|
-
opacity: 0;
|
|
4662
|
-
}
|
|
4663
|
-
}
|
|
4664
|
-
@keyframes sia-drawer-left-motion {
|
|
4665
|
-
from {
|
|
4666
|
-
transform: translateX(-100%);
|
|
4667
|
-
}
|
|
4668
|
-
to {
|
|
4669
|
-
transform: translateX(0);
|
|
4670
|
-
}
|
|
4671
|
-
}
|
|
4672
|
-
@keyframes sia-drawer-left-out {
|
|
4673
|
-
from {
|
|
4674
|
-
transform: translateX(0);
|
|
4675
|
-
}
|
|
4676
|
-
to {
|
|
4677
|
-
transform: translateX(-100%);
|
|
4678
|
-
}
|
|
4679
|
-
}
|
|
4680
|
-
@keyframes sia-drawer-right-motion {
|
|
4681
|
-
from {
|
|
4682
|
-
transform: translateX(100%);
|
|
4683
|
-
}
|
|
4684
|
-
to {
|
|
4685
|
-
transform: translateX(0);
|
|
4686
|
-
}
|
|
4687
|
-
}
|
|
4688
|
-
@keyframes sia-drawer-right-out {
|
|
4689
|
-
from {
|
|
4690
|
-
transform: translateX(0);
|
|
4691
|
-
}
|
|
4692
|
-
to {
|
|
4693
|
-
transform: translateX(100%);
|
|
4694
|
-
}
|
|
4695
|
-
}
|
|
4696
|
-
@keyframes sia-drawer-top-motion {
|
|
4697
|
-
from {
|
|
4698
|
-
transform: translateY(-100%);
|
|
4699
|
-
}
|
|
4700
|
-
to {
|
|
4701
|
-
transform: translateY(0);
|
|
4702
|
-
}
|
|
4703
|
-
}
|
|
4704
|
-
@keyframes sia-drawer-top-out {
|
|
4705
|
-
from {
|
|
4706
|
-
transform: translateY(0);
|
|
4707
|
-
}
|
|
4708
|
-
to {
|
|
4709
|
-
transform: translateY(-100%);
|
|
4710
|
-
}
|
|
4711
|
-
}
|
|
4712
|
-
@keyframes sia-drawer-bottom-motion {
|
|
4713
|
-
from {
|
|
4714
|
-
transform: translateY(100%);
|
|
4715
|
-
}
|
|
4716
|
-
to {
|
|
4717
|
-
transform: translateY(0);
|
|
4718
|
-
}
|
|
4719
|
-
}
|
|
4720
|
-
@keyframes sia-drawer-bottom-out {
|
|
4721
|
-
from {
|
|
4722
|
-
transform: translateY(0);
|
|
4723
|
-
}
|
|
4724
|
-
to {
|
|
4725
|
-
transform: translateY(100%);
|
|
4726
|
-
}
|
|
4727
|
-
}
|
|
4728
4691
|
@media (max-width: 900px) {
|
|
4729
4692
|
.sia-drawer[data-push-depth]:not([data-push-depth="0"]) {
|
|
4730
4693
|
translate: 0 0;
|
|
4731
4694
|
}
|
|
4732
4695
|
}
|
|
4733
|
-
@keyframes sia-message-pop-in {
|
|
4734
|
-
from {
|
|
4735
|
-
opacity: 0;
|
|
4736
|
-
transform: translate3d(0, -8px, 0);
|
|
4737
|
-
}
|
|
4738
|
-
to {
|
|
4739
|
-
opacity: 1;
|
|
4740
|
-
transform: translate3d(0, 0, 0);
|
|
4741
|
-
}
|
|
4742
|
-
}
|
|
4743
4696
|
@media (max-width: 650px) {
|
|
4744
4697
|
.sia-modal-root {
|
|
4745
4698
|
padding: 16px 12px;
|
|
@@ -5507,7 +5460,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5507
5460
|
width: 100%;
|
|
5508
5461
|
min-width: 0;
|
|
5509
5462
|
height: var(--sia-control-height);
|
|
5510
|
-
border: 1px solid var(--sia-color-border);
|
|
5463
|
+
border: 1px solid var(--sia-control-border-color, var(--sia-color-border));
|
|
5511
5464
|
border-radius: var(--sia-radius);
|
|
5512
5465
|
background: var(--sia-color-surface);
|
|
5513
5466
|
color: var(--sia-color-text);
|
|
@@ -5533,7 +5486,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5533
5486
|
border-color: var(--sia-color-error);
|
|
5534
5487
|
}
|
|
5535
5488
|
.sia-number-range.is-disabled {
|
|
5536
|
-
background: var(--sia-color-control-
|
|
5489
|
+
background: var(--sia-color-control-disabled);
|
|
5490
|
+
border-color: var(--sia-color-border-disabled);
|
|
5537
5491
|
color: var(--sia-color-text-secondary);
|
|
5538
5492
|
cursor: not-allowed;
|
|
5539
5493
|
}
|
|
@@ -5693,6 +5647,57 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5693
5647
|
width: 760px;
|
|
5694
5648
|
max-width: calc(100vw - 32px);
|
|
5695
5649
|
}
|
|
5650
|
+
.sia-skeleton__block {
|
|
5651
|
+
display: block;
|
|
5652
|
+
min-width: 0;
|
|
5653
|
+
border-radius: var(--sia-radius);
|
|
5654
|
+
background: var(--sia-color-control-active);
|
|
5655
|
+
}
|
|
5656
|
+
.sia-modal__body[aria-busy=true],
|
|
5657
|
+
.sia-drawer__body[aria-busy=true] {
|
|
5658
|
+
min-height: 0;
|
|
5659
|
+
overflow: hidden !important;
|
|
5660
|
+
}
|
|
5661
|
+
.sia-modal-root[data-content-pending=true] {
|
|
5662
|
+
overflow: hidden;
|
|
5663
|
+
}
|
|
5664
|
+
.sia-overlay-body--ready {
|
|
5665
|
+
animation: sia-overlay-content-ready 100ms ease-out both;
|
|
5666
|
+
}
|
|
5667
|
+
@keyframes sia-overlay-content-ready {
|
|
5668
|
+
from {
|
|
5669
|
+
opacity: .55;
|
|
5670
|
+
}
|
|
5671
|
+
to {
|
|
5672
|
+
opacity: 1;
|
|
5673
|
+
}
|
|
5674
|
+
}
|
|
5675
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5676
|
+
.sia-overlay-body--ready {
|
|
5677
|
+
animation: none;
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
.sia-drawer-root[data-state=closing] {
|
|
5681
|
+
pointer-events: none;
|
|
5682
|
+
}
|
|
5683
|
+
.sia-switch-wrap:active .sia-switch-input:not(:disabled) + .sia-switch .sia-switch__thumb {
|
|
5684
|
+
transform: scale(1.16);
|
|
5685
|
+
}
|
|
5686
|
+
.sia-switch-wrap:active .sia-switch-input:checked:not(:disabled) + .sia-switch .sia-switch__thumb {
|
|
5687
|
+
transform: translateX(var(--sia-switch-travel, 22px)) scale(1.16);
|
|
5688
|
+
}
|
|
5689
|
+
.sia-switch--standard {
|
|
5690
|
+
overflow: visible;
|
|
5691
|
+
}
|
|
5692
|
+
.sia-switch-wrap:active .sia-switch-input:not(:disabled) + .sia-switch--standard .sia-switch__thumb {
|
|
5693
|
+
transform: scale(1.35);
|
|
5694
|
+
}
|
|
5695
|
+
.sia-switch-wrap:active .sia-switch-input:checked:not(:disabled) + .sia-switch--standard .sia-switch__thumb {
|
|
5696
|
+
transform: translateX(var(--sia-switch-travel, 22px)) scale(1.35);
|
|
5697
|
+
}
|
|
5698
|
+
.sia-query-form__fields {
|
|
5699
|
+
position: relative;
|
|
5700
|
+
}
|
|
5696
5701
|
|
|
5697
5702
|
/* src/game/game.css */
|
|
5698
5703
|
.sia-game {
|
package/dist/game.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import { B as ButtonProps } from './Button-
|
|
3
|
+
import { B as ButtonProps } from './Button-CxKBjLda.cjs';
|
|
4
4
|
import './shared-Bx4B28Wh.cjs';
|
|
5
5
|
|
|
6
6
|
/** 放置游戏的可序列化数值;攻击、防御、气血均为非负整数。 */
|
package/dist/game.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, CSSProperties } from 'react';
|
|
3
|
-
import { B as ButtonProps } from './Button-
|
|
3
|
+
import { B as ButtonProps } from './Button-C8W8ZHWV.js';
|
|
4
4
|
import './shared-Bx4B28Wh.js';
|
|
5
5
|
|
|
6
6
|
/** 放置游戏的可序列化数值;攻击、防御、气血均为非负整数。 */
|