@sia.soul/sia-react-ui 0.1.8 → 0.1.10
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/{chunk-FVQON65A.js → chunk-6HP6IIT4.js} +1 -1
- package/dist/{chunk-JMVCKK34.js → chunk-SGJLZN23.js} +1 -1
- package/dist/{chunk-PXQUIG6V.js → chunk-T2X6WK6Z.js} +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.css +24 -12
- package/dist/core.js +2 -2
- package/dist/index.cjs +4 -2
- package/dist/index.css +24 -12
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -4
- package/dist/select-date-range.cjs +1 -1
- package/dist/select-date-range.js +2 -2
- package/package.json +1 -1
|
@@ -1349,7 +1349,7 @@ var Select = forwardRef3(function Select2({
|
|
|
1349
1349
|
}
|
|
1350
1350
|
),
|
|
1351
1351
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ jsx6("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ jsx6(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
1352
|
-
/* @__PURE__ */ jsxs6(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: "sia-select__dropdown"
|
|
1352
|
+
/* @__PURE__ */ jsxs6(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
1353
1353
|
showSearch || allowInput ? /* @__PURE__ */ jsxs6("label", { className: "sia-select__search", children: [
|
|
1354
1354
|
/* @__PURE__ */ jsx6(Icon, { name: "search", size: 15 }),
|
|
1355
1355
|
/* @__PURE__ */ jsx6("input", { ref: searchRef, value: query, maxLength: inputMaxLength, onChange: handleSearchChange, onKeyDown: (event) => handleInteractionKeyDown(event, true), placeholder: searchPlaceholder, "aria-label": searchPlaceholder })
|
package/dist/core.cjs
CHANGED
|
@@ -3070,7 +3070,7 @@ var Select = (0, import_react18.forwardRef)(function Select2({
|
|
|
3070
3070
|
}
|
|
3071
3071
|
),
|
|
3072
3072
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
3073
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: "sia-select__dropdown"
|
|
3073
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
3074
3074
|
showSearch || allowInput ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { className: "sia-select__search", children: [
|
|
3075
3075
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon, { name: "search", size: 15 }),
|
|
3076
3076
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("input", { ref: searchRef, value: query, maxLength: inputMaxLength, onChange: handleSearchChange, onKeyDown: (event) => handleInteractionKeyDown(event, true), placeholder: searchPlaceholder, "aria-label": searchPlaceholder })
|
package/dist/core.css
CHANGED
|
@@ -1538,12 +1538,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1538
1538
|
display: flex;
|
|
1539
1539
|
flex-direction: column;
|
|
1540
1540
|
width: max-content;
|
|
1541
|
+
min-width: 90px;
|
|
1541
1542
|
padding: 4px;
|
|
1542
1543
|
background: var(--sia-color-surface);
|
|
1543
1544
|
border: 1px solid var(--sia-color-border);
|
|
1544
1545
|
border-radius: 8px;
|
|
1545
1546
|
box-shadow: var(--sia-shadow-popup);
|
|
1546
1547
|
}
|
|
1548
|
+
.sia-select__dropdown--empty {
|
|
1549
|
+
width: var(--sia-popup-anchor-width);
|
|
1550
|
+
}
|
|
1547
1551
|
.sia-select__search {
|
|
1548
1552
|
flex-shrink: 0;
|
|
1549
1553
|
display: flex;
|
|
@@ -3110,6 +3114,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3110
3114
|
box-sizing: border-box;
|
|
3111
3115
|
}
|
|
3112
3116
|
.sia-table {
|
|
3117
|
+
--sia-table-row-border-width: 1px;
|
|
3118
|
+
--sia-table-column-border-width: 1px;
|
|
3113
3119
|
position: relative;
|
|
3114
3120
|
display: flex;
|
|
3115
3121
|
flex-direction: column;
|
|
@@ -3121,6 +3127,12 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3121
3127
|
font-size: 13px;
|
|
3122
3128
|
user-select: text;
|
|
3123
3129
|
}
|
|
3130
|
+
.sia-table--no-row-borders {
|
|
3131
|
+
--sia-table-row-border-width: 0px;
|
|
3132
|
+
}
|
|
3133
|
+
.sia-table--no-column-borders {
|
|
3134
|
+
--sia-table-column-border-width: 0px;
|
|
3135
|
+
}
|
|
3124
3136
|
.sia-table[tabindex="-1"]:focus {
|
|
3125
3137
|
outline: none;
|
|
3126
3138
|
}
|
|
@@ -3130,7 +3142,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3130
3142
|
user-select: text;
|
|
3131
3143
|
}
|
|
3132
3144
|
.sia-table--bordered {
|
|
3133
|
-
border: 1px solid var(--sia-
|
|
3145
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3134
3146
|
}
|
|
3135
3147
|
.sia-table__toolbar {
|
|
3136
3148
|
display: flex;
|
|
@@ -3140,7 +3152,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3140
3152
|
gap: 12px;
|
|
3141
3153
|
min-height: 46px;
|
|
3142
3154
|
padding: 7px 10px;
|
|
3143
|
-
border-bottom: 1px solid var(--sia-
|
|
3155
|
+
border-bottom: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3144
3156
|
}
|
|
3145
3157
|
.sia-table__toolbar > div {
|
|
3146
3158
|
display: flex;
|
|
@@ -3186,8 +3198,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3186
3198
|
position: relative;
|
|
3187
3199
|
height: 38px;
|
|
3188
3200
|
padding: 8px 12px;
|
|
3189
|
-
border-right:
|
|
3190
|
-
border-bottom:
|
|
3201
|
+
border-right: var(--sia-table-column-border-width) solid var(--sia-table-border-color, #EFF2F6);
|
|
3202
|
+
border-bottom: var(--sia-table-row-border-width) solid var(--sia-table-border-color, #EFF2F6);
|
|
3191
3203
|
background: var(--sia-color-surface);
|
|
3192
3204
|
vertical-align: middle;
|
|
3193
3205
|
}
|
|
@@ -3735,7 +3747,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3735
3747
|
.sia-table__summary-cell {
|
|
3736
3748
|
color: var(--sia-color-text);
|
|
3737
3749
|
background: color-mix(in srgb, var(--sia-color-control-hover) 80%, var(--sia-color-surface));
|
|
3738
|
-
box-shadow: inset 0
|
|
3750
|
+
box-shadow: inset 0 var(--sia-table-row-border-width) 0 var(--sia-table-border-color, #EFF2F6);
|
|
3739
3751
|
font-weight: 600;
|
|
3740
3752
|
}
|
|
3741
3753
|
.sia-table__summary-row--total .sia-table__summary-cell {
|
|
@@ -3746,7 +3758,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3746
3758
|
align-items: center;
|
|
3747
3759
|
min-height: 44px;
|
|
3748
3760
|
padding: 6px 10px;
|
|
3749
|
-
border-top: 1px solid var(--sia-
|
|
3761
|
+
border-top: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3750
3762
|
}
|
|
3751
3763
|
.sia-table__selection-footer {
|
|
3752
3764
|
display: inline-flex;
|
|
@@ -3778,7 +3790,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3778
3790
|
justify-content: space-between;
|
|
3779
3791
|
min-height: 50px;
|
|
3780
3792
|
padding: 8px 12px;
|
|
3781
|
-
border-bottom: 1px solid var(--sia-
|
|
3793
|
+
border-bottom: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3782
3794
|
}
|
|
3783
3795
|
.sia-table-selection-panel__header strong span {
|
|
3784
3796
|
color: var(--sia-color-primary-text);
|
|
@@ -3802,7 +3814,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3802
3814
|
text-align: left;
|
|
3803
3815
|
text-overflow: ellipsis;
|
|
3804
3816
|
white-space: nowrap;
|
|
3805
|
-
border-bottom: 1px solid var(--sia-
|
|
3817
|
+
border-bottom: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3806
3818
|
}
|
|
3807
3819
|
.sia-table-selection-panel th {
|
|
3808
3820
|
position: sticky;
|
|
@@ -3827,7 +3839,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3827
3839
|
justify-content: center;
|
|
3828
3840
|
min-height: 48px;
|
|
3829
3841
|
color: var(--sia-color-text-secondary);
|
|
3830
|
-
border-top: 1px solid var(--sia-
|
|
3842
|
+
border-top: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3831
3843
|
}
|
|
3832
3844
|
.sia-table__pagination {
|
|
3833
3845
|
flex: 1;
|
|
@@ -3859,7 +3871,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3859
3871
|
min-width: 140px;
|
|
3860
3872
|
padding: 6px;
|
|
3861
3873
|
background: var(--sia-color-surface);
|
|
3862
|
-
border: 1px solid var(--sia-
|
|
3874
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3863
3875
|
border-radius: var(--sia-radius);
|
|
3864
3876
|
box-shadow: var(--sia-shadow-popup);
|
|
3865
3877
|
}
|
|
@@ -4123,7 +4135,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4123
4135
|
border: 0;
|
|
4124
4136
|
}
|
|
4125
4137
|
.sia-table--borderless-toolbar.sia-table--bordered > .sia-table__viewport-wrap {
|
|
4126
|
-
border: 1px solid var(--sia-
|
|
4138
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
4127
4139
|
border-radius: var(--sia-radius);
|
|
4128
4140
|
}
|
|
4129
4141
|
.sia-table--borderless-toolbar.sia-table--bordered:has(> .sia-table__footer) > .sia-table__viewport-wrap {
|
|
@@ -4132,7 +4144,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4132
4144
|
border-bottom-right-radius: 0;
|
|
4133
4145
|
}
|
|
4134
4146
|
.sia-table--borderless-toolbar.sia-table--bordered > .sia-table__footer {
|
|
4135
|
-
border: 1px solid var(--sia-
|
|
4147
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
4136
4148
|
border-radius: 0 0 var(--sia-radius) var(--sia-radius);
|
|
4137
4149
|
}
|
|
4138
4150
|
.sia-select-modal__heading {
|
package/dist/core.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
Typography,
|
|
10
10
|
Upload,
|
|
11
11
|
message
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6HP6IIT4.js";
|
|
13
13
|
import "./chunk-WHARTF2I.js";
|
|
14
14
|
import {
|
|
15
15
|
Modal,
|
|
16
16
|
Select
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SGJLZN23.js";
|
|
18
18
|
import {
|
|
19
19
|
Icon,
|
|
20
20
|
Input,
|
package/dist/index.cjs
CHANGED
|
@@ -3162,7 +3162,7 @@ var Select = (0, import_react15.forwardRef)(function Select2({
|
|
|
3162
3162
|
}
|
|
3163
3163
|
),
|
|
3164
3164
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
3165
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: "sia-select__dropdown"
|
|
3165
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
3166
3166
|
showSearch || allowInput ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("label", { className: "sia-select__search", children: [
|
|
3167
3167
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "search", size: 15 }),
|
|
3168
3168
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("input", { ref: searchRef, value: query, maxLength: inputMaxLength, onChange: handleSearchChange, onKeyDown: (event) => handleInteractionKeyDown(event, true), placeholder: searchPlaceholder, "aria-label": searchPlaceholder })
|
|
@@ -11842,6 +11842,8 @@ function TableInner(props, ref) {
|
|
|
11842
11842
|
tableHeight,
|
|
11843
11843
|
size = "medium",
|
|
11844
11844
|
bordered = true,
|
|
11845
|
+
rowBordered = true,
|
|
11846
|
+
columnBordered = true,
|
|
11845
11847
|
toolbarBordered = false,
|
|
11846
11848
|
striped = true,
|
|
11847
11849
|
virtual,
|
|
@@ -12248,7 +12250,7 @@ function TableInner(props, ref) {
|
|
|
12248
12250
|
"div",
|
|
12249
12251
|
{
|
|
12250
12252
|
ref: rootRef,
|
|
12251
|
-
className: `sia-table sia-table--${size}${bordered ? " sia-table--bordered" : ""}${hasToolbar && !toolbarBordered ? " sia-table--borderless-toolbar" : ""} ${className}`.trim(),
|
|
12253
|
+
className: `sia-table sia-table--${size}${bordered ? " sia-table--bordered" : ""}${!rowBordered ? " sia-table--no-row-borders" : ""}${!columnBordered ? " sia-table--no-column-borders" : ""}${hasToolbar && !toolbarBordered ? " sia-table--borderless-toolbar" : ""} ${className}`.trim(),
|
|
12252
12254
|
style: rootStyle,
|
|
12253
12255
|
"data-has-fixed-left": left > 0,
|
|
12254
12256
|
"data-has-fixed-right": right > 0,
|
package/dist/index.css
CHANGED
|
@@ -1538,12 +1538,16 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
1538
1538
|
display: flex;
|
|
1539
1539
|
flex-direction: column;
|
|
1540
1540
|
width: max-content;
|
|
1541
|
+
min-width: 90px;
|
|
1541
1542
|
padding: 4px;
|
|
1542
1543
|
background: var(--sia-color-surface);
|
|
1543
1544
|
border: 1px solid var(--sia-color-border);
|
|
1544
1545
|
border-radius: 8px;
|
|
1545
1546
|
box-shadow: var(--sia-shadow-popup);
|
|
1546
1547
|
}
|
|
1548
|
+
.sia-select__dropdown--empty {
|
|
1549
|
+
width: var(--sia-popup-anchor-width);
|
|
1550
|
+
}
|
|
1547
1551
|
.sia-select__search {
|
|
1548
1552
|
flex-shrink: 0;
|
|
1549
1553
|
display: flex;
|
|
@@ -3110,6 +3114,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3110
3114
|
box-sizing: border-box;
|
|
3111
3115
|
}
|
|
3112
3116
|
.sia-table {
|
|
3117
|
+
--sia-table-row-border-width: 1px;
|
|
3118
|
+
--sia-table-column-border-width: 1px;
|
|
3113
3119
|
position: relative;
|
|
3114
3120
|
display: flex;
|
|
3115
3121
|
flex-direction: column;
|
|
@@ -3121,6 +3127,12 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3121
3127
|
font-size: 13px;
|
|
3122
3128
|
user-select: text;
|
|
3123
3129
|
}
|
|
3130
|
+
.sia-table--no-row-borders {
|
|
3131
|
+
--sia-table-row-border-width: 0px;
|
|
3132
|
+
}
|
|
3133
|
+
.sia-table--no-column-borders {
|
|
3134
|
+
--sia-table-column-border-width: 0px;
|
|
3135
|
+
}
|
|
3124
3136
|
.sia-table[tabindex="-1"]:focus {
|
|
3125
3137
|
outline: none;
|
|
3126
3138
|
}
|
|
@@ -3130,7 +3142,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3130
3142
|
user-select: text;
|
|
3131
3143
|
}
|
|
3132
3144
|
.sia-table--bordered {
|
|
3133
|
-
border: 1px solid var(--sia-
|
|
3145
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3134
3146
|
}
|
|
3135
3147
|
.sia-table__toolbar {
|
|
3136
3148
|
display: flex;
|
|
@@ -3140,7 +3152,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3140
3152
|
gap: 12px;
|
|
3141
3153
|
min-height: 46px;
|
|
3142
3154
|
padding: 7px 10px;
|
|
3143
|
-
border-bottom: 1px solid var(--sia-
|
|
3155
|
+
border-bottom: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3144
3156
|
}
|
|
3145
3157
|
.sia-table__toolbar > div {
|
|
3146
3158
|
display: flex;
|
|
@@ -3186,8 +3198,8 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3186
3198
|
position: relative;
|
|
3187
3199
|
height: 38px;
|
|
3188
3200
|
padding: 8px 12px;
|
|
3189
|
-
border-right:
|
|
3190
|
-
border-bottom:
|
|
3201
|
+
border-right: var(--sia-table-column-border-width) solid var(--sia-table-border-color, #EFF2F6);
|
|
3202
|
+
border-bottom: var(--sia-table-row-border-width) solid var(--sia-table-border-color, #EFF2F6);
|
|
3191
3203
|
background: var(--sia-color-surface);
|
|
3192
3204
|
vertical-align: middle;
|
|
3193
3205
|
}
|
|
@@ -3735,7 +3747,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3735
3747
|
.sia-table__summary-cell {
|
|
3736
3748
|
color: var(--sia-color-text);
|
|
3737
3749
|
background: color-mix(in srgb, var(--sia-color-control-hover) 80%, var(--sia-color-surface));
|
|
3738
|
-
box-shadow: inset 0
|
|
3750
|
+
box-shadow: inset 0 var(--sia-table-row-border-width) 0 var(--sia-table-border-color, #EFF2F6);
|
|
3739
3751
|
font-weight: 600;
|
|
3740
3752
|
}
|
|
3741
3753
|
.sia-table__summary-row--total .sia-table__summary-cell {
|
|
@@ -3746,7 +3758,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3746
3758
|
align-items: center;
|
|
3747
3759
|
min-height: 44px;
|
|
3748
3760
|
padding: 6px 10px;
|
|
3749
|
-
border-top: 1px solid var(--sia-
|
|
3761
|
+
border-top: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3750
3762
|
}
|
|
3751
3763
|
.sia-table__selection-footer {
|
|
3752
3764
|
display: inline-flex;
|
|
@@ -3778,7 +3790,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3778
3790
|
justify-content: space-between;
|
|
3779
3791
|
min-height: 50px;
|
|
3780
3792
|
padding: 8px 12px;
|
|
3781
|
-
border-bottom: 1px solid var(--sia-
|
|
3793
|
+
border-bottom: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3782
3794
|
}
|
|
3783
3795
|
.sia-table-selection-panel__header strong span {
|
|
3784
3796
|
color: var(--sia-color-primary-text);
|
|
@@ -3802,7 +3814,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3802
3814
|
text-align: left;
|
|
3803
3815
|
text-overflow: ellipsis;
|
|
3804
3816
|
white-space: nowrap;
|
|
3805
|
-
border-bottom: 1px solid var(--sia-
|
|
3817
|
+
border-bottom: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3806
3818
|
}
|
|
3807
3819
|
.sia-table-selection-panel th {
|
|
3808
3820
|
position: sticky;
|
|
@@ -3827,7 +3839,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3827
3839
|
justify-content: center;
|
|
3828
3840
|
min-height: 48px;
|
|
3829
3841
|
color: var(--sia-color-text-secondary);
|
|
3830
|
-
border-top: 1px solid var(--sia-
|
|
3842
|
+
border-top: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3831
3843
|
}
|
|
3832
3844
|
.sia-table__pagination {
|
|
3833
3845
|
flex: 1;
|
|
@@ -3859,7 +3871,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
3859
3871
|
min-width: 140px;
|
|
3860
3872
|
padding: 6px;
|
|
3861
3873
|
background: var(--sia-color-surface);
|
|
3862
|
-
border: 1px solid var(--sia-
|
|
3874
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
3863
3875
|
border-radius: var(--sia-radius);
|
|
3864
3876
|
box-shadow: var(--sia-shadow-popup);
|
|
3865
3877
|
}
|
|
@@ -4123,7 +4135,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4123
4135
|
border: 0;
|
|
4124
4136
|
}
|
|
4125
4137
|
.sia-table--borderless-toolbar.sia-table--bordered > .sia-table__viewport-wrap {
|
|
4126
|
-
border: 1px solid var(--sia-
|
|
4138
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
4127
4139
|
border-radius: var(--sia-radius);
|
|
4128
4140
|
}
|
|
4129
4141
|
.sia-table--borderless-toolbar.sia-table--bordered:has(> .sia-table__footer) > .sia-table__viewport-wrap {
|
|
@@ -4132,7 +4144,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
4132
4144
|
border-bottom-right-radius: 0;
|
|
4133
4145
|
}
|
|
4134
4146
|
.sia-table--borderless-toolbar.sia-table--bordered > .sia-table__footer {
|
|
4135
|
-
border: 1px solid var(--sia-
|
|
4147
|
+
border: 1px solid var(--sia-table-border-color, #EFF2F6);
|
|
4136
4148
|
border-radius: 0 0 var(--sia-radius) var(--sia-radius);
|
|
4137
4149
|
}
|
|
4138
4150
|
.sia-select-modal__heading {
|
package/dist/index.d.cts
CHANGED
|
@@ -880,6 +880,10 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
880
880
|
tableHeight?: number | string;
|
|
881
881
|
size?: TableSize;
|
|
882
882
|
bordered?: boolean;
|
|
883
|
+
/** 是否显示行分隔线(含表头和汇总行),默认 true。 */
|
|
884
|
+
rowBordered?: boolean;
|
|
885
|
+
/** 是否显示列分隔线,默认 true。 */
|
|
886
|
+
columnBordered?: boolean;
|
|
883
887
|
/** 是否将工具栏纳入表格边框,默认 false;表格主体边框仍由 bordered 控制。 */
|
|
884
888
|
toolbarBordered?: boolean;
|
|
885
889
|
striped?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -880,6 +880,10 @@ interface TableProps<T extends Record<string, unknown> = Record<string, unknown>
|
|
|
880
880
|
tableHeight?: number | string;
|
|
881
881
|
size?: TableSize;
|
|
882
882
|
bordered?: boolean;
|
|
883
|
+
/** 是否显示行分隔线(含表头和汇总行),默认 true。 */
|
|
884
|
+
rowBordered?: boolean;
|
|
885
|
+
/** 是否显示列分隔线,默认 true。 */
|
|
886
|
+
columnBordered?: boolean;
|
|
883
887
|
/** 是否将工具栏纳入表格边框,默认 false;表格主体边框仍由 bordered 控制。 */
|
|
884
888
|
toolbarBordered?: boolean;
|
|
885
889
|
striped?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
Watermark,
|
|
80
80
|
message,
|
|
81
81
|
notification
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-6HP6IIT4.js";
|
|
83
83
|
import {
|
|
84
84
|
TextArea
|
|
85
85
|
} from "./chunk-WHARTF2I.js";
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
DatePicker,
|
|
95
95
|
SelectDateRange,
|
|
96
96
|
TimePanel
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-T2X6WK6Z.js";
|
|
98
98
|
import {
|
|
99
99
|
Checkbox,
|
|
100
100
|
Modal,
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
Tooltip,
|
|
108
108
|
Tree,
|
|
109
109
|
useOverlayLifecycle
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-SGJLZN23.js";
|
|
111
111
|
import {
|
|
112
112
|
Dropdown,
|
|
113
113
|
FILLED_ICON_NAMES,
|
|
@@ -6137,6 +6137,8 @@ function TableInner(props, ref) {
|
|
|
6137
6137
|
tableHeight,
|
|
6138
6138
|
size = "medium",
|
|
6139
6139
|
bordered = true,
|
|
6140
|
+
rowBordered = true,
|
|
6141
|
+
columnBordered = true,
|
|
6140
6142
|
toolbarBordered = false,
|
|
6141
6143
|
striped = true,
|
|
6142
6144
|
virtual,
|
|
@@ -6543,7 +6545,7 @@ function TableInner(props, ref) {
|
|
|
6543
6545
|
"div",
|
|
6544
6546
|
{
|
|
6545
6547
|
ref: rootRef,
|
|
6546
|
-
className: `sia-table sia-table--${size}${bordered ? " sia-table--bordered" : ""}${hasToolbar && !toolbarBordered ? " sia-table--borderless-toolbar" : ""} ${className}`.trim(),
|
|
6548
|
+
className: `sia-table sia-table--${size}${bordered ? " sia-table--bordered" : ""}${!rowBordered ? " sia-table--no-row-borders" : ""}${!columnBordered ? " sia-table--no-column-borders" : ""}${hasToolbar && !toolbarBordered ? " sia-table--borderless-toolbar" : ""} ${className}`.trim(),
|
|
6547
6549
|
style: rootStyle,
|
|
6548
6550
|
"data-has-fixed-left": left > 0,
|
|
6549
6551
|
"data-has-fixed-right": right > 0,
|
|
@@ -3013,7 +3013,7 @@ var Select = (0, import_react14.forwardRef)(function Select2({
|
|
|
3013
3013
|
}
|
|
3014
3014
|
),
|
|
3015
3015
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
3016
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: "sia-select__dropdown"
|
|
3016
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
3017
3017
|
showSearch || allowInput ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("label", { className: "sia-select__search", children: [
|
|
3018
3018
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon, { name: "search", size: 15 }),
|
|
3019
3019
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("input", { ref: searchRef, value: query, maxLength: inputMaxLength, onChange: handleSearchChange, onKeyDown: (event) => handleInteractionKeyDown(event, true), placeholder: searchPlaceholder, "aria-label": searchPlaceholder })
|