@fangxinyan/lumina 0.9.1 → 0.9.3
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/Pagination.cjs +3 -3
- package/dist/Pagination.js +2 -2
- package/dist/{Select-QPBB73KA.css → Select-UTNBARSQ.css} +54 -11
- package/dist/Select.cjs +2 -4
- package/dist/Select.d.cts +7 -1
- package/dist/Select.d.ts +7 -1
- package/dist/Select.js +1 -3
- package/dist/Table.cjs +4 -4
- package/dist/Table.js +3 -3
- package/dist/TablePro.cjs +5 -5
- package/dist/TablePro.js +4 -4
- package/dist/{chunk-HMN65CDW.cjs → chunk-5Q2ZYR5Z.cjs} +2 -2
- package/dist/{chunk-UCE53RYR.js → chunk-6MT3APJ3.js} +1 -1
- package/dist/{chunk-K3KHQ77L.cjs → chunk-7RYLV5CM.cjs} +178 -85
- package/dist/{chunk-AL2PYVVP.js → chunk-AFYNTVSH.js} +178 -85
- package/dist/{chunk-VTN6YLRJ.cjs → chunk-EBU3DTUN.cjs} +2 -2
- package/dist/{chunk-2NECDEAJ.js → chunk-EP7QREID.js} +1 -1
- package/dist/{chunk-7KA5D37Z.cjs → chunk-P3ZIABMZ.cjs} +2 -2
- package/dist/{chunk-JMYUO7V7.js → chunk-X547KNTP.js} +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/styles.css +54 -10
- package/docs/llms/select.md +40 -1
- package/docs/llms.md +1 -1
- package/package.json +1 -1
package/dist/Pagination.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkEBU3DTUN_cjs = require('./chunk-EBU3DTUN.cjs');
|
|
4
|
+
require('./chunk-7RYLV5CM.cjs');
|
|
5
5
|
require('./chunk-VNP5WB6M.cjs');
|
|
6
6
|
require('./chunk-FJB3243S.cjs');
|
|
7
7
|
require('./chunk-GFGMGJ5A.cjs');
|
|
@@ -15,5 +15,5 @@ require('./chunk-I4GJZLJU.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "Pagination", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkEBU3DTUN_cjs.Pagination; }
|
|
19
19
|
});
|
package/dist/Pagination.js
CHANGED
|
@@ -99,19 +99,71 @@
|
|
|
99
99
|
flex: 1;
|
|
100
100
|
min-width: 0;
|
|
101
101
|
align-items: center;
|
|
102
|
+
width: 100%;
|
|
102
103
|
}
|
|
103
104
|
.select.multi .select-trigger > .placeholder {
|
|
104
105
|
padding-left: 6px;
|
|
105
106
|
line-height: calc(var(--ctrl-h) - 8px);
|
|
106
107
|
}
|
|
107
108
|
.select.multi .select-tags > .tag {
|
|
108
|
-
max-width: 160px;
|
|
109
|
+
max-width: min(160px, 100%);
|
|
110
|
+
min-width: 0;
|
|
111
|
+
flex-shrink: 1;
|
|
109
112
|
}
|
|
110
|
-
.select.multi .select-
|
|
113
|
+
.select.multi .select-tag-label {
|
|
114
|
+
display: block;
|
|
115
|
+
min-width: 0;
|
|
111
116
|
white-space: nowrap;
|
|
112
117
|
overflow: hidden;
|
|
113
118
|
text-overflow: ellipsis;
|
|
114
119
|
}
|
|
120
|
+
.select.multi .select-tag-label > * {
|
|
121
|
+
min-width: 0;
|
|
122
|
+
max-width: 100%;
|
|
123
|
+
}
|
|
124
|
+
.select.multi .select-tag-overflow {
|
|
125
|
+
flex-shrink: 0;
|
|
126
|
+
}
|
|
127
|
+
.select.multi.searchable .select-trigger {
|
|
128
|
+
cursor: text;
|
|
129
|
+
}
|
|
130
|
+
.select-search-input {
|
|
131
|
+
min-width: 0;
|
|
132
|
+
height: 24px;
|
|
133
|
+
padding: 0 2px;
|
|
134
|
+
border: 0;
|
|
135
|
+
outline: 0;
|
|
136
|
+
appearance: none;
|
|
137
|
+
background: transparent;
|
|
138
|
+
color: var(--lmn-select-fg, var(--fg));
|
|
139
|
+
font: inherit;
|
|
140
|
+
line-height: 24px;
|
|
141
|
+
}
|
|
142
|
+
.select-search-input[data-inline-size="fill"] {
|
|
143
|
+
flex: 1 1 auto;
|
|
144
|
+
width: 100%;
|
|
145
|
+
}
|
|
146
|
+
.select-search-input[data-inline-size="content"] {
|
|
147
|
+
flex: 0 1 auto;
|
|
148
|
+
min-width: 2ch;
|
|
149
|
+
max-width: 100%;
|
|
150
|
+
field-sizing: content;
|
|
151
|
+
}
|
|
152
|
+
.select-search-input::placeholder {
|
|
153
|
+
color: var(--lmn-select-fg-subtle, var(--fg-subtle));
|
|
154
|
+
}
|
|
155
|
+
.select-search-input::-webkit-search-cancel-button {
|
|
156
|
+
appearance: none;
|
|
157
|
+
}
|
|
158
|
+
.select-search-input:focus-visible {
|
|
159
|
+
box-shadow: none;
|
|
160
|
+
}
|
|
161
|
+
.select.searchable:focus-within .select-trigger {
|
|
162
|
+
box-shadow: var(--lmn-select-neu-shadow-inset, var(--neu-shadow-inset)), 0 0 0 3px var(--lmn-select-accent-glow, var(--accent-glow));
|
|
163
|
+
}
|
|
164
|
+
.select.multi.searchable .select-caret {
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
}
|
|
115
167
|
.select-clear {
|
|
116
168
|
position: absolute;
|
|
117
169
|
right: 30px;
|
|
@@ -154,15 +206,6 @@
|
|
|
154
206
|
box-shadow: var(--lmn-select-neu-shadow-control, var(--neu-shadow-control)), 0 1px 4px var(--lmn-select-accent-glow, var(--accent-glow));
|
|
155
207
|
}
|
|
156
208
|
|
|
157
|
-
/* Menu search — flush with menu, single subtle separator (no nested frame) */
|
|
158
|
-
.menu-search {
|
|
159
|
-
display: block;
|
|
160
|
-
padding: 4px 2px 8px;
|
|
161
|
-
margin: -2px -2px 4px;
|
|
162
|
-
border-bottom: 1px solid var(--lmn-select-divider, var(--divider));
|
|
163
|
-
}
|
|
164
|
-
.menu-search .input-wrap { width: 100%; }
|
|
165
|
-
|
|
166
209
|
/* Menu state (loading / empty) */
|
|
167
210
|
.menu-state {
|
|
168
211
|
display: flex;
|
package/dist/Select.cjs
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7RYLV5CM_cjs = require('./chunk-7RYLV5CM.cjs');
|
|
4
4
|
require('./chunk-VNP5WB6M.cjs');
|
|
5
5
|
require('./chunk-FJB3243S.cjs');
|
|
6
|
-
require('./chunk-GFGMGJ5A.cjs');
|
|
7
|
-
require('./chunk-CNV7R2OZ.cjs');
|
|
8
6
|
require('./chunk-HSDMJUB6.cjs');
|
|
9
7
|
require('./chunk-VDVKY2IX.cjs');
|
|
10
8
|
require('./chunk-V6BLBIY6.cjs');
|
|
@@ -14,5 +12,5 @@ require('./chunk-I4GJZLJU.cjs');
|
|
|
14
12
|
|
|
15
13
|
Object.defineProperty(exports, "Select", {
|
|
16
14
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk7RYLV5CM_cjs.Select; }
|
|
18
16
|
});
|
package/dist/Select.d.cts
CHANGED
|
@@ -63,10 +63,16 @@ interface BaseSelectProps<T extends string | number = string> extends Omit<React
|
|
|
63
63
|
allowClear?: boolean | {
|
|
64
64
|
clearIcon?: React.ReactNode;
|
|
65
65
|
};
|
|
66
|
-
/**
|
|
66
|
+
/** 在选择框本体内启用单选或多选搜索。 */
|
|
67
67
|
searchable?: boolean;
|
|
68
68
|
/** Alias for `searchable`. */
|
|
69
69
|
showSearch?: boolean;
|
|
70
|
+
/** 受控搜索词;外部更新不会触发 onSearch。 */
|
|
71
|
+
searchValue?: string;
|
|
72
|
+
/** 非受控搜索词初始值。 */
|
|
73
|
+
defaultSearchValue?: string;
|
|
74
|
+
/** 搜索词发生交互变化时触发,适合由业务层发起远程请求。 */
|
|
75
|
+
onSearch?: (value: string) => void;
|
|
70
76
|
/** Custom filter — defaults to label/text/value substring match. */
|
|
71
77
|
filterOption?: SelectFilterOption<T>;
|
|
72
78
|
/** Field used by the default filter. */
|
package/dist/Select.d.ts
CHANGED
|
@@ -63,10 +63,16 @@ interface BaseSelectProps<T extends string | number = string> extends Omit<React
|
|
|
63
63
|
allowClear?: boolean | {
|
|
64
64
|
clearIcon?: React.ReactNode;
|
|
65
65
|
};
|
|
66
|
-
/**
|
|
66
|
+
/** 在选择框本体内启用单选或多选搜索。 */
|
|
67
67
|
searchable?: boolean;
|
|
68
68
|
/** Alias for `searchable`. */
|
|
69
69
|
showSearch?: boolean;
|
|
70
|
+
/** 受控搜索词;外部更新不会触发 onSearch。 */
|
|
71
|
+
searchValue?: string;
|
|
72
|
+
/** 非受控搜索词初始值。 */
|
|
73
|
+
defaultSearchValue?: string;
|
|
74
|
+
/** 搜索词发生交互变化时触发,适合由业务层发起远程请求。 */
|
|
75
|
+
onSearch?: (value: string) => void;
|
|
70
76
|
/** Custom filter — defaults to label/text/value substring match. */
|
|
71
77
|
filterOption?: SelectFilterOption<T>;
|
|
72
78
|
/** Field used by the default filter. */
|
package/dist/Select.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export { Select } from './chunk-
|
|
1
|
+
export { Select } from './chunk-AFYNTVSH.js';
|
|
2
2
|
import './chunk-OGMI3TO5.js';
|
|
3
3
|
import './chunk-3QXP2ZNP.js';
|
|
4
|
-
import './chunk-TUXF2G2O.js';
|
|
5
|
-
import './chunk-AXZNZ2IH.js';
|
|
6
4
|
import './chunk-2A4GYSN4.js';
|
|
7
5
|
import './chunk-2BM65ITV.js';
|
|
8
6
|
import './chunk-5HLNFDV4.js';
|
package/dist/Table.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkP3ZIABMZ_cjs = require('./chunk-P3ZIABMZ.cjs');
|
|
4
|
+
require('./chunk-EBU3DTUN.cjs');
|
|
5
|
+
require('./chunk-7RYLV5CM.cjs');
|
|
6
6
|
require('./chunk-VNP5WB6M.cjs');
|
|
7
7
|
require('./chunk-KPBZKHCS.cjs');
|
|
8
8
|
require('./chunk-FJB3243S.cjs');
|
|
@@ -18,5 +18,5 @@ require('./chunk-I4GJZLJU.cjs');
|
|
|
18
18
|
|
|
19
19
|
Object.defineProperty(exports, "Table", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkP3ZIABMZ_cjs.Table; }
|
|
22
22
|
});
|
package/dist/Table.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { Table } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { Table } from './chunk-X547KNTP.js';
|
|
2
|
+
import './chunk-6MT3APJ3.js';
|
|
3
|
+
import './chunk-AFYNTVSH.js';
|
|
4
4
|
import './chunk-OGMI3TO5.js';
|
|
5
5
|
import './chunk-QSLXUNLM.js';
|
|
6
6
|
import './chunk-3QXP2ZNP.js';
|
package/dist/TablePro.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunk5Q2ZYR5Z_cjs = require('./chunk-5Q2ZYR5Z.cjs');
|
|
4
|
+
require('./chunk-P3ZIABMZ.cjs');
|
|
5
|
+
require('./chunk-EBU3DTUN.cjs');
|
|
6
|
+
require('./chunk-7RYLV5CM.cjs');
|
|
7
7
|
require('./chunk-VNP5WB6M.cjs');
|
|
8
8
|
require('./chunk-KPBZKHCS.cjs');
|
|
9
9
|
require('./chunk-FJB3243S.cjs');
|
|
@@ -19,5 +19,5 @@ require('./chunk-I4GJZLJU.cjs');
|
|
|
19
19
|
|
|
20
20
|
Object.defineProperty(exports, "TablePro", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk5Q2ZYR5Z_cjs.TablePro; }
|
|
23
23
|
});
|
package/dist/TablePro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { TablePro } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { TablePro } from './chunk-EP7QREID.js';
|
|
2
|
+
import './chunk-X547KNTP.js';
|
|
3
|
+
import './chunk-6MT3APJ3.js';
|
|
4
|
+
import './chunk-AFYNTVSH.js';
|
|
5
5
|
import './chunk-OGMI3TO5.js';
|
|
6
6
|
import './chunk-QSLXUNLM.js';
|
|
7
7
|
import './chunk-3QXP2ZNP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkP3ZIABMZ_cjs = require('./chunk-P3ZIABMZ.cjs');
|
|
4
4
|
var chunkV6BLBIY6_cjs = require('./chunk-V6BLBIY6.cjs');
|
|
5
5
|
require('./tokens-223RYVVS.css');
|
|
6
6
|
require('./shared-NJHRNLRH.css');
|
|
@@ -77,7 +77,7 @@ var TableProInner = ({
|
|
|
77
77
|
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "table-toolbar-actions", children: actions })
|
|
78
78
|
] }),
|
|
79
79
|
/* @__PURE__ */ jsxRuntime.jsx(chunkV6BLBIY6_cjs.InternalComponentThemePart, { components: "Table", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
-
|
|
80
|
+
chunkP3ZIABMZ_cjs.Table,
|
|
81
81
|
{
|
|
82
82
|
columns,
|
|
83
83
|
data,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select } from './chunk-
|
|
1
|
+
import { Select } from './chunk-AFYNTVSH.js';
|
|
2
2
|
import { Input } from './chunk-TUXF2G2O.js';
|
|
3
3
|
import { Icon } from './chunk-2BM65ITV.js';
|
|
4
4
|
import { InternalComponentThemePart, withComponentTheme } from './chunk-5HLNFDV4.js';
|