@rockshin/tao-ui 0.0.1 → 0.0.2
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/components/breadcrumb/breadcrumb.css +1088 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +43 -0
- package/dist/components/breadcrumb/breadcrumb.js +268 -0
- package/dist/components/button/button.css +43 -21
- package/dist/components/checkbox/checkbox.css +30 -12
- package/dist/components/collapsible/collapsible.css +1023 -0
- package/dist/components/collapsible/collapsible.d.ts +39 -0
- package/dist/components/collapsible/collapsible.js +168 -0
- package/dist/components/context-menu/context-menu.css +1146 -0
- package/dist/components/context-menu/context-menu.d.ts +19 -0
- package/dist/components/context-menu/context-menu.js +104 -0
- package/dist/components/date-picker/date-picker.css +44 -16
- package/dist/components/drawer/drawer.css +123 -13
- package/dist/components/drawer/drawer.d.ts +36 -3
- package/dist/components/drawer/drawer.js +314 -121
- package/dist/components/dropdown/dropdown.css +996 -0
- package/dist/components/dropdown/dropdown.d.ts +45 -0
- package/dist/components/dropdown/dropdown.js +381 -0
- package/dist/components/form-field/form.css +30 -12
- package/dist/components/input/input.css +44 -14
- package/dist/components/menu/menu-render.d.ts +89 -0
- package/dist/components/menu/menu-render.js +376 -0
- package/dist/components/menu/menu.css +1142 -0
- package/dist/components/modal/confirm-dialog.d.ts +37 -0
- package/dist/components/modal/confirm-dialog.js +193 -0
- package/dist/components/modal/confirm.d.ts +13 -0
- package/dist/components/modal/confirm.js +56 -0
- package/dist/components/modal/index.d.ts +21 -0
- package/dist/components/modal/index.js +18 -0
- package/dist/components/modal/modal.css +1166 -0
- package/dist/components/modal/modal.d.ts +50 -0
- package/dist/components/modal/modal.js +353 -0
- package/dist/components/modal/use-modal.d.ts +21 -0
- package/dist/components/modal/use-modal.js +83 -0
- package/dist/components/pagination/pagination.css +30 -12
- package/dist/components/radio/radio.css +30 -12
- package/dist/components/scroll-area/scroll-area.css +30 -12
- package/dist/components/select/mobile-select.css +65 -13
- package/dist/components/select/mobile-select.js +17 -3
- package/dist/components/select/select.css +102 -15
- package/dist/components/select/select.d.ts +4 -0
- package/dist/components/select/select.js +204 -168
- package/dist/components/splitter/splitter.css +30 -12
- package/dist/components/switch/switch.css +30 -12
- package/dist/components/table/table.css +54 -18
- package/dist/components/table/table.d.ts +17 -2
- package/dist/components/table/table.js +214 -206
- package/dist/components/tabs/tabs.css +33 -17
- package/dist/components/tag/tag.css +30 -12
- package/dist/components/textarea/textarea.css +1204 -0
- package/dist/components/textarea/textarea.d.ts +19 -0
- package/dist/components/textarea/textarea.js +181 -0
- package/dist/index.d.ts +24 -18
- package/dist/index.js +21 -15
- package/dist/layouts/stack/layout.css +30 -12
- package/dist/theme/control.css +44 -13
- package/dist/theme/theme.css +30 -12
- package/llms.txt +7 -6
- package/package.json +6 -1
|
@@ -11,7 +11,7 @@ const defaultFilter = (input, option)=>{
|
|
|
11
11
|
return label.toLowerCase().includes(input.toLowerCase());
|
|
12
12
|
};
|
|
13
13
|
function Select(props) {
|
|
14
|
-
const $ = c(
|
|
14
|
+
const $ = c(101);
|
|
15
15
|
const { options, value, onChange, placeholder, size, variant, disabled, showSearch, filterOption, allowClear, loading, notFoundContent: t0, prefix, mobile } = props;
|
|
16
16
|
const notFoundContent = void 0 === t0 ? "No results" : t0;
|
|
17
17
|
const ctx = useTaoConfig();
|
|
@@ -109,33 +109,42 @@ function Select(props) {
|
|
|
109
109
|
$[19] = t9;
|
|
110
110
|
} else t9 = $[19];
|
|
111
111
|
let t10;
|
|
112
|
-
if ($[20] !==
|
|
113
|
-
t10 = selectedOption
|
|
114
|
-
"data-tao-select-
|
|
115
|
-
children:
|
|
112
|
+
if ($[20] !== selectedOption) {
|
|
113
|
+
t10 = selectedOption?.icon != null && /*#__PURE__*/ jsx("span", {
|
|
114
|
+
"data-tao-select-value-icon": "",
|
|
115
|
+
children: selectedOption.icon
|
|
116
116
|
});
|
|
117
|
-
$[20] =
|
|
118
|
-
$[21] =
|
|
119
|
-
|
|
120
|
-
} else t10 = $[22];
|
|
117
|
+
$[20] = selectedOption;
|
|
118
|
+
$[21] = t10;
|
|
119
|
+
} else t10 = $[21];
|
|
121
120
|
let t11;
|
|
122
|
-
if ($[23] !==
|
|
123
|
-
t11 = /*#__PURE__*/ jsx("span", {
|
|
124
|
-
"data-tao-select-
|
|
125
|
-
children:
|
|
121
|
+
if ($[22] !== placeholder || $[23] !== selectedOption) {
|
|
122
|
+
t11 = selectedOption ? selectedOption.label : /*#__PURE__*/ jsx("span", {
|
|
123
|
+
"data-tao-select-placeholder": "",
|
|
124
|
+
children: placeholder
|
|
126
125
|
});
|
|
127
|
-
$[
|
|
126
|
+
$[22] = placeholder;
|
|
127
|
+
$[23] = selectedOption;
|
|
128
128
|
$[24] = t11;
|
|
129
129
|
} else t11 = $[24];
|
|
130
130
|
let t12;
|
|
131
|
-
if ($[25] !==
|
|
132
|
-
t12 =
|
|
133
|
-
|
|
131
|
+
if ($[25] !== t11) {
|
|
132
|
+
t12 = /*#__PURE__*/ jsx("span", {
|
|
133
|
+
"data-tao-select-value": "",
|
|
134
|
+
children: t11
|
|
135
|
+
});
|
|
136
|
+
$[25] = t11;
|
|
134
137
|
$[26] = t12;
|
|
135
138
|
} else t12 = $[26];
|
|
136
139
|
let t13;
|
|
137
|
-
if ($[27] !==
|
|
138
|
-
t13 =
|
|
140
|
+
if ($[27] !== loading) {
|
|
141
|
+
t13 = loading && /*#__PURE__*/ jsx(LoadingIcon, {});
|
|
142
|
+
$[27] = loading;
|
|
143
|
+
$[28] = t13;
|
|
144
|
+
} else t13 = $[28];
|
|
145
|
+
let t14;
|
|
146
|
+
if ($[29] !== handleClear || $[30] !== hovering || $[31] !== showClearBtn) {
|
|
147
|
+
t14 = showClearBtn && hovering ? /*#__PURE__*/ jsx("span", {
|
|
139
148
|
"data-tao-select-clear": "",
|
|
140
149
|
onClick: handleClear,
|
|
141
150
|
role: "button",
|
|
@@ -145,27 +154,27 @@ function Select(props) {
|
|
|
145
154
|
"data-tao-select-icon": "",
|
|
146
155
|
children: /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
147
156
|
});
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
} else
|
|
153
|
-
let
|
|
154
|
-
if ($[
|
|
155
|
-
|
|
157
|
+
$[29] = handleClear;
|
|
158
|
+
$[30] = hovering;
|
|
159
|
+
$[31] = showClearBtn;
|
|
160
|
+
$[32] = t14;
|
|
161
|
+
} else t14 = $[32];
|
|
162
|
+
let t15;
|
|
163
|
+
if ($[33] !== t13 || $[34] !== t14) {
|
|
164
|
+
t15 = /*#__PURE__*/ jsxs("span", {
|
|
156
165
|
"data-tao-select-icons": "",
|
|
157
166
|
children: [
|
|
158
|
-
|
|
159
|
-
|
|
167
|
+
t13,
|
|
168
|
+
t14
|
|
160
169
|
]
|
|
161
170
|
});
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
} else
|
|
166
|
-
let
|
|
167
|
-
if ($[
|
|
168
|
-
|
|
171
|
+
$[33] = t13;
|
|
172
|
+
$[34] = t14;
|
|
173
|
+
$[35] = t15;
|
|
174
|
+
} else t15 = $[35];
|
|
175
|
+
let t16;
|
|
176
|
+
if ($[36] !== resolvedDisabled || $[37] !== resolvedSize || $[38] !== resolvedVariant || $[39] !== t10 || $[40] !== t12 || $[41] !== t15 || $[42] !== t5 || $[43] !== t9) {
|
|
177
|
+
t16 = /*#__PURE__*/ jsxs("button", {
|
|
169
178
|
type: "button",
|
|
170
179
|
"data-tao-control": "",
|
|
171
180
|
"data-tao-select": "",
|
|
@@ -178,29 +187,31 @@ function Select(props) {
|
|
|
178
187
|
onMouseLeave: t8,
|
|
179
188
|
children: [
|
|
180
189
|
t9,
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
t10,
|
|
191
|
+
t12,
|
|
192
|
+
t15
|
|
183
193
|
]
|
|
184
194
|
});
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[39] = t5;
|
|
191
|
-
$[40] = t9;
|
|
195
|
+
$[36] = resolvedDisabled;
|
|
196
|
+
$[37] = resolvedSize;
|
|
197
|
+
$[38] = resolvedVariant;
|
|
198
|
+
$[39] = t10;
|
|
199
|
+
$[40] = t12;
|
|
192
200
|
$[41] = t15;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
$[42] = t16;
|
|
198
|
-
} else t16 = $[42];
|
|
201
|
+
$[42] = t5;
|
|
202
|
+
$[43] = t9;
|
|
203
|
+
$[44] = t16;
|
|
204
|
+
} else t16 = $[44];
|
|
199
205
|
let t17;
|
|
200
|
-
if ($[
|
|
201
|
-
t17 =
|
|
206
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
207
|
+
t17 = ()=>handleOpenChange(false);
|
|
208
|
+
$[45] = t17;
|
|
209
|
+
} else t17 = $[45];
|
|
210
|
+
let t18;
|
|
211
|
+
if ($[46] !== filterOption || $[47] !== notFoundContent || $[48] !== onChange || $[49] !== open || $[50] !== options || $[51] !== placeholder || $[52] !== showSearch || $[53] !== value) {
|
|
212
|
+
t18 = /*#__PURE__*/ jsx(MobileSelectDrawer, {
|
|
202
213
|
open: open,
|
|
203
|
-
onClose:
|
|
214
|
+
onClose: t17,
|
|
204
215
|
options: options,
|
|
205
216
|
value: value,
|
|
206
217
|
onChange: onChange,
|
|
@@ -209,68 +220,77 @@ function Select(props) {
|
|
|
209
220
|
filterOption: filterOption,
|
|
210
221
|
notFoundContent: notFoundContent
|
|
211
222
|
});
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
} else
|
|
222
|
-
let
|
|
223
|
-
if ($[
|
|
224
|
-
|
|
223
|
+
$[46] = filterOption;
|
|
224
|
+
$[47] = notFoundContent;
|
|
225
|
+
$[48] = onChange;
|
|
226
|
+
$[49] = open;
|
|
227
|
+
$[50] = options;
|
|
228
|
+
$[51] = placeholder;
|
|
229
|
+
$[52] = showSearch;
|
|
230
|
+
$[53] = value;
|
|
231
|
+
$[54] = t18;
|
|
232
|
+
} else t18 = $[54];
|
|
233
|
+
let t19;
|
|
234
|
+
if ($[55] !== t16 || $[56] !== t18) {
|
|
235
|
+
t19 = /*#__PURE__*/ jsxs(Fragment, {
|
|
225
236
|
children: [
|
|
226
|
-
|
|
227
|
-
|
|
237
|
+
t16,
|
|
238
|
+
t18
|
|
228
239
|
]
|
|
229
240
|
});
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
} else
|
|
234
|
-
return
|
|
241
|
+
$[55] = t16;
|
|
242
|
+
$[56] = t18;
|
|
243
|
+
$[57] = t19;
|
|
244
|
+
} else t19 = $[57];
|
|
245
|
+
return t19;
|
|
235
246
|
}
|
|
236
247
|
const t5 = resolvedDisabled || void 0;
|
|
237
248
|
let t6;
|
|
238
249
|
let t7;
|
|
239
|
-
if ($[
|
|
250
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
240
251
|
t6 = ()=>setHovering(true);
|
|
241
252
|
t7 = ()=>setHovering(false);
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
253
|
+
$[58] = t6;
|
|
254
|
+
$[59] = t7;
|
|
244
255
|
} else {
|
|
245
|
-
t6 = $[
|
|
246
|
-
t7 = $[
|
|
256
|
+
t6 = $[58];
|
|
257
|
+
t7 = $[59];
|
|
247
258
|
}
|
|
248
259
|
let t8;
|
|
249
|
-
if ($[
|
|
260
|
+
if ($[60] !== prefix) {
|
|
250
261
|
t8 = null != prefix && /*#__PURE__*/ jsx("span", {
|
|
251
262
|
"data-tao-select-prefix": "",
|
|
252
263
|
children: prefix
|
|
253
264
|
});
|
|
254
|
-
$[
|
|
255
|
-
$[
|
|
256
|
-
} else t8 = $[
|
|
265
|
+
$[60] = prefix;
|
|
266
|
+
$[61] = t8;
|
|
267
|
+
} else t8 = $[61];
|
|
257
268
|
let t9;
|
|
258
|
-
if ($[
|
|
259
|
-
t9 = /*#__PURE__*/ jsx(
|
|
260
|
-
|
|
269
|
+
if ($[62] !== selectedOption) {
|
|
270
|
+
t9 = selectedOption?.icon != null && /*#__PURE__*/ jsx("span", {
|
|
271
|
+
"data-tao-select-value-icon": "",
|
|
272
|
+
children: selectedOption.icon
|
|
261
273
|
});
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
} else t9 = $[
|
|
274
|
+
$[62] = selectedOption;
|
|
275
|
+
$[63] = t9;
|
|
276
|
+
} else t9 = $[63];
|
|
265
277
|
let t10;
|
|
266
|
-
if ($[
|
|
267
|
-
t10 =
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
278
|
+
if ($[64] !== placeholder) {
|
|
279
|
+
t10 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.Value, {
|
|
280
|
+
placeholder: placeholder
|
|
281
|
+
});
|
|
282
|
+
$[64] = placeholder;
|
|
283
|
+
$[65] = t10;
|
|
284
|
+
} else t10 = $[65];
|
|
271
285
|
let t11;
|
|
272
|
-
if ($[
|
|
273
|
-
t11 =
|
|
286
|
+
if ($[66] !== loading) {
|
|
287
|
+
t11 = loading && /*#__PURE__*/ jsx(LoadingIcon, {});
|
|
288
|
+
$[66] = loading;
|
|
289
|
+
$[67] = t11;
|
|
290
|
+
} else t11 = $[67];
|
|
291
|
+
let t12;
|
|
292
|
+
if ($[68] !== handleClear || $[69] !== hovering || $[70] !== showClearBtn) {
|
|
293
|
+
t12 = showClearBtn && hovering ? /*#__PURE__*/ jsx("span", {
|
|
274
294
|
"data-tao-select-clear": "",
|
|
275
295
|
onClick: handleClear,
|
|
276
296
|
role: "button",
|
|
@@ -280,27 +300,27 @@ function Select(props) {
|
|
|
280
300
|
"data-tao-select-icon": "",
|
|
281
301
|
children: /*#__PURE__*/ jsx(ChevronDownIcon, {})
|
|
282
302
|
});
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
$[
|
|
286
|
-
$[
|
|
287
|
-
} else
|
|
288
|
-
let
|
|
289
|
-
if ($[
|
|
290
|
-
|
|
303
|
+
$[68] = handleClear;
|
|
304
|
+
$[69] = hovering;
|
|
305
|
+
$[70] = showClearBtn;
|
|
306
|
+
$[71] = t12;
|
|
307
|
+
} else t12 = $[71];
|
|
308
|
+
let t13;
|
|
309
|
+
if ($[72] !== t11 || $[73] !== t12) {
|
|
310
|
+
t13 = /*#__PURE__*/ jsxs("span", {
|
|
291
311
|
"data-tao-select-icons": "",
|
|
292
312
|
children: [
|
|
293
|
-
|
|
294
|
-
|
|
313
|
+
t11,
|
|
314
|
+
t12
|
|
295
315
|
]
|
|
296
316
|
});
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
} else
|
|
301
|
-
let
|
|
302
|
-
if ($[
|
|
303
|
-
|
|
317
|
+
$[72] = t11;
|
|
318
|
+
$[73] = t12;
|
|
319
|
+
$[74] = t13;
|
|
320
|
+
} else t13 = $[74];
|
|
321
|
+
let t14;
|
|
322
|
+
if ($[75] !== resolvedSize || $[76] !== resolvedVariant || $[77] !== t10 || $[78] !== t13 || $[79] !== t5 || $[80] !== t8 || $[81] !== t9) {
|
|
323
|
+
t14 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_select_36a82244.Trigger, {
|
|
304
324
|
"data-tao-control": "",
|
|
305
325
|
"data-tao-select": "",
|
|
306
326
|
"data-tao-size": resolvedSize,
|
|
@@ -311,20 +331,22 @@ function Select(props) {
|
|
|
311
331
|
children: [
|
|
312
332
|
t8,
|
|
313
333
|
t9,
|
|
314
|
-
|
|
334
|
+
t10,
|
|
335
|
+
t13
|
|
315
336
|
]
|
|
316
337
|
});
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
338
|
+
$[75] = resolvedSize;
|
|
339
|
+
$[76] = resolvedVariant;
|
|
340
|
+
$[77] = t10;
|
|
341
|
+
$[78] = t13;
|
|
342
|
+
$[79] = t5;
|
|
343
|
+
$[80] = t8;
|
|
344
|
+
$[81] = t9;
|
|
345
|
+
$[82] = t14;
|
|
346
|
+
} else t14 = $[82];
|
|
347
|
+
let t15;
|
|
348
|
+
if ($[83] !== search || $[84] !== showSearch) {
|
|
349
|
+
t15 = showSearch && /*#__PURE__*/ jsxs("div", {
|
|
328
350
|
"data-tao-select-search": "",
|
|
329
351
|
children: [
|
|
330
352
|
/*#__PURE__*/ jsx(SearchIcon, {}),
|
|
@@ -337,77 +359,91 @@ function Select(props) {
|
|
|
337
359
|
})
|
|
338
360
|
]
|
|
339
361
|
});
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
} else
|
|
344
|
-
let
|
|
345
|
-
if ($[
|
|
346
|
-
|
|
362
|
+
$[83] = search;
|
|
363
|
+
$[84] = showSearch;
|
|
364
|
+
$[85] = t15;
|
|
365
|
+
} else t15 = $[85];
|
|
366
|
+
let t16;
|
|
367
|
+
if ($[86] !== filteredOptions || $[87] !== notFoundContent) {
|
|
368
|
+
t16 = filteredOptions.length > 0 ? filteredOptions.map(_temp) : /*#__PURE__*/ jsx("div", {
|
|
347
369
|
"data-tao-select-empty": "",
|
|
348
370
|
children: notFoundContent
|
|
349
371
|
});
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
} else
|
|
354
|
-
let
|
|
355
|
-
if ($[
|
|
356
|
-
|
|
372
|
+
$[86] = filteredOptions;
|
|
373
|
+
$[87] = notFoundContent;
|
|
374
|
+
$[88] = t16;
|
|
375
|
+
} else t16 = $[88];
|
|
376
|
+
let t17;
|
|
377
|
+
if ($[89] !== t16) {
|
|
378
|
+
t17 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.Viewport, {
|
|
357
379
|
"data-tao-select-viewport": "",
|
|
358
|
-
children:
|
|
380
|
+
children: t16
|
|
359
381
|
});
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
} else
|
|
363
|
-
let
|
|
364
|
-
if ($[
|
|
365
|
-
|
|
382
|
+
$[89] = t16;
|
|
383
|
+
$[90] = t17;
|
|
384
|
+
} else t17 = $[90];
|
|
385
|
+
let t18;
|
|
386
|
+
if ($[91] !== t15 || $[92] !== t17) {
|
|
387
|
+
t18 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.Portal, {
|
|
366
388
|
children: /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_select_36a82244.Content, {
|
|
367
389
|
"data-tao-select-content": "",
|
|
368
390
|
position: "popper",
|
|
369
391
|
sideOffset: 4,
|
|
370
392
|
children: [
|
|
371
|
-
|
|
372
|
-
|
|
393
|
+
t15,
|
|
394
|
+
t17
|
|
373
395
|
]
|
|
374
396
|
})
|
|
375
397
|
});
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
} else
|
|
380
|
-
let
|
|
381
|
-
if ($[
|
|
382
|
-
|
|
398
|
+
$[91] = t15;
|
|
399
|
+
$[92] = t17;
|
|
400
|
+
$[93] = t18;
|
|
401
|
+
} else t18 = $[93];
|
|
402
|
+
let t19;
|
|
403
|
+
if ($[94] !== onChange || $[95] !== open || $[96] !== resolvedDisabled || $[97] !== t14 || $[98] !== t18 || $[99] !== value) {
|
|
404
|
+
t19 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_select_36a82244.Root, {
|
|
383
405
|
value: value,
|
|
384
406
|
onValueChange: onChange,
|
|
385
407
|
disabled: resolvedDisabled,
|
|
386
408
|
open: open,
|
|
387
409
|
onOpenChange: handleOpenChange,
|
|
388
410
|
children: [
|
|
389
|
-
|
|
390
|
-
|
|
411
|
+
t14,
|
|
412
|
+
t18
|
|
391
413
|
]
|
|
392
414
|
});
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
} else
|
|
401
|
-
return
|
|
415
|
+
$[94] = onChange;
|
|
416
|
+
$[95] = open;
|
|
417
|
+
$[96] = resolvedDisabled;
|
|
418
|
+
$[97] = t14;
|
|
419
|
+
$[98] = t18;
|
|
420
|
+
$[99] = value;
|
|
421
|
+
$[100] = t19;
|
|
422
|
+
} else t19 = $[100];
|
|
423
|
+
return t19;
|
|
402
424
|
}
|
|
403
425
|
function _temp(opt) {
|
|
404
426
|
return /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_select_36a82244.Item, {
|
|
405
427
|
value: opt.value,
|
|
406
428
|
disabled: opt.disabled,
|
|
407
429
|
"data-tao-select-item": "",
|
|
430
|
+
"data-tao-has-desc": null != opt.description || void 0,
|
|
408
431
|
children: [
|
|
409
|
-
/*#__PURE__*/ jsx(
|
|
410
|
-
|
|
432
|
+
null != opt.icon && /*#__PURE__*/ jsx("span", {
|
|
433
|
+
"data-tao-select-item-icon": "",
|
|
434
|
+
children: opt.icon
|
|
435
|
+
}),
|
|
436
|
+
/*#__PURE__*/ jsxs("span", {
|
|
437
|
+
"data-tao-select-item-main": "",
|
|
438
|
+
children: [
|
|
439
|
+
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.ItemText, {
|
|
440
|
+
children: opt.label
|
|
441
|
+
}),
|
|
442
|
+
null != opt.description && /*#__PURE__*/ jsx("span", {
|
|
443
|
+
"data-tao-select-item-desc": "",
|
|
444
|
+
children: opt.description
|
|
445
|
+
})
|
|
446
|
+
]
|
|
411
447
|
}),
|
|
412
448
|
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.ItemIndicator, {
|
|
413
449
|
"data-tao-select-check": "",
|
|
@@ -307,6 +307,8 @@
|
|
|
307
307
|
--tao-radius: 6px;
|
|
308
308
|
--tao-font-size: 14px;
|
|
309
309
|
--tao-control-height: 36px;
|
|
310
|
+
--tao-control-width: 200px;
|
|
311
|
+
--tao-control-range-width: 360px;
|
|
310
312
|
--tao-size-unit: 4px;
|
|
311
313
|
--tao-line-width: 1px;
|
|
312
314
|
--tao-font-family: "Geist Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
|
|
@@ -529,8 +531,8 @@
|
|
|
529
531
|
}
|
|
530
532
|
|
|
531
533
|
:root, [data-tao-provider] {
|
|
532
|
-
--tao-color-bg-container:
|
|
533
|
-
--tao-color-bg-elevated:
|
|
534
|
+
--tao-color-bg-container: oklch(100% 0 0);
|
|
535
|
+
--tao-color-bg-elevated: oklch(100% 0 0);
|
|
534
536
|
--tao-color-border: var(--tao-color-text-base);
|
|
535
537
|
}
|
|
536
538
|
|
|
@@ -541,16 +543,7 @@
|
|
|
541
543
|
}
|
|
542
544
|
|
|
543
545
|
:root, [data-tao-provider] {
|
|
544
|
-
--tao-color-border-secondary:
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
548
|
-
:root, [data-tao-provider] {
|
|
549
|
-
--tao-color-border-secondary: color-mix(in oklch, var(--tao-color-text-base) 10%, var(--tao-color-bg-base));
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
:root, [data-tao-provider] {
|
|
546
|
+
--tao-color-border-secondary: #0000170b;
|
|
554
547
|
--tao-radius-xs: 2px;
|
|
555
548
|
--tao-radius-sm: calc(var(--tao-radius) - 2px);
|
|
556
549
|
--tao-radius-md: var(--tao-radius);
|
|
@@ -633,6 +626,10 @@
|
|
|
633
626
|
visibility: collapse;
|
|
634
627
|
}
|
|
635
628
|
|
|
629
|
+
.visible {
|
|
630
|
+
visibility: visible;
|
|
631
|
+
}
|
|
632
|
+
|
|
636
633
|
.absolute {
|
|
637
634
|
position: absolute;
|
|
638
635
|
}
|
|
@@ -715,6 +712,10 @@
|
|
|
715
712
|
display: inline;
|
|
716
713
|
}
|
|
717
714
|
|
|
715
|
+
.inline-flex {
|
|
716
|
+
display: inline-flex;
|
|
717
|
+
}
|
|
718
|
+
|
|
718
719
|
.table {
|
|
719
720
|
display: table;
|
|
720
721
|
}
|
|
@@ -727,6 +728,10 @@
|
|
|
727
728
|
transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
|
|
728
729
|
}
|
|
729
730
|
|
|
731
|
+
.resize {
|
|
732
|
+
resize: both;
|
|
733
|
+
}
|
|
734
|
+
|
|
730
735
|
.flex-wrap {
|
|
731
736
|
flex-wrap: wrap;
|
|
732
737
|
}
|
|
@@ -742,6 +747,14 @@
|
|
|
742
747
|
border-width: 1px;
|
|
743
748
|
}
|
|
744
749
|
|
|
750
|
+
.italic {
|
|
751
|
+
font-style: italic;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.underline {
|
|
755
|
+
text-decoration-line: underline;
|
|
756
|
+
}
|
|
757
|
+
|
|
745
758
|
.shadow {
|
|
746
759
|
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
|
|
747
760
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -771,6 +784,11 @@
|
|
|
771
784
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
772
785
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
773
786
|
}
|
|
787
|
+
|
|
788
|
+
.select-all {
|
|
789
|
+
-webkit-user-select: all;
|
|
790
|
+
user-select: all;
|
|
791
|
+
}
|
|
774
792
|
}
|
|
775
793
|
|
|
776
794
|
[data-tao-splitter] {
|