@rockshin/tao-ui 0.0.47 → 0.0.49
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/affix/affix.js +20 -16
- package/dist/components/alert/alert.js +114 -99
- package/dist/components/app/app-modals.js +134 -96
- package/dist/components/app/app-notices.js +39 -23
- package/dist/components/auto-complete/auto-complete.js +21 -7
- package/dist/components/avatar/avatar.js +31 -11
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.js +72 -257
- package/dist/components/border-beam/border-beam.js +21 -17
- package/dist/components/breadcrumb/breadcrumb.js +178 -159
- package/dist/components/button/button.js +61 -53
- package/dist/components/calendar/calendar.js +6 -4
- package/dist/components/card/card.js +24 -8
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/carousel.js +105 -68
- package/dist/components/cascader/cascader.js +54 -19
- package/dist/components/checkbox/checkbox.css +13 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +320 -229
- package/dist/components/collapse/collapse-panels.d.ts +1 -1
- package/dist/components/collapse/collapse-panels.js +122 -113
- package/dist/components/collapse/collapse.js +98 -63
- package/dist/components/color-picker/color-picker.js +539 -441
- package/dist/components/color-picker/color.js +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +108 -68
- package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
- package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/month-grid.js +79 -37
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
- package/dist/components/date-picker/calendar/time-panel.js +94 -89
- package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/year-grid.js +66 -35
- package/dist/components/date-picker/date-picker.css +24 -1
- package/dist/components/date-picker/date-picker.js +99 -53
- package/dist/components/date-picker/presets.d.ts +2 -1
- package/dist/components/date-picker/presets.js +27 -24
- package/dist/components/date-picker/range-picker.js +308 -153
- package/dist/components/descriptions/descriptions.js +7 -3
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.js +201 -369
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +183 -279
- package/dist/components/empty/empty.js +57 -78
- package/dist/components/float-button/float-button.d.ts +1 -0
- package/dist/components/float-button/float-button.js +47 -30
- package/dist/components/form/field-control.d.ts +4 -2
- package/dist/components/form/field-control.js +17 -9
- package/dist/components/form/form-context.d.ts +8 -2
- package/dist/components/form/form-context.js +2 -1
- package/dist/components/form/form-item.js +85 -63
- package/dist/components/form/form.css +3 -2
- package/dist/components/form/use-form.d.ts +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +194 -141
- package/dist/components/form-section/form-section.d.ts +1 -1
- package/dist/components/form-section/form-section.js +52 -45
- package/dist/components/image/image.js +585 -477
- package/dist/components/input/base-input.js +8 -9
- package/dist/components/input/input-shared.d.ts +5 -2
- package/dist/components/input/input-shared.js +42 -18
- package/dist/components/input/otp.js +236 -217
- package/dist/components/input/password.js +2 -1
- package/dist/components/input/search.js +8 -7
- package/dist/components/list/list-pagination.js +41 -36
- package/dist/components/list/list.js +141 -125
- package/dist/components/listy/listy.js +175 -106
- package/dist/components/masonry/masonry.js +108 -85
- package/dist/components/mentions/mentions.js +12 -3
- package/dist/components/menu/menu-render.d.ts +9 -3
- package/dist/components/menu/menu-render.js +99 -36
- package/dist/components/modal/confirm-dialog.js +10 -4
- package/dist/components/modal/confirm.js +3 -7
- package/dist/components/modal/index.js +9 -3
- package/dist/components/modal/modal.js +390 -365
- package/dist/components/pagination/pagination.js +105 -96
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +219 -168
- package/dist/components/popover/popover.js +330 -243
- package/dist/components/progress/progress.css +2 -2
- package/dist/components/progress/progress.js +232 -458
- package/dist/components/qr-code/qr-code.js +72 -66
- package/dist/components/radio/radio.css +15 -4
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +260 -198
- package/dist/components/rate/rate.js +173 -113
- package/dist/components/scroll-area/scroll-area.js +241 -211
- package/dist/components/segmented/segmented.js +73 -41
- package/dist/components/select/mobile-select.d.ts +2 -1
- package/dist/components/select/mobile-select.js +24 -13
- package/dist/components/select/select-searchable-list.d.ts +2 -1
- package/dist/components/select/select-searchable-list.js +2 -3
- package/dist/components/select/select.js +49 -25
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +7 -4
- package/dist/components/skeleton/skeleton.js +56 -48
- package/dist/components/slider/slider.js +87 -212
- package/dist/components/sonner/sonner.js +109 -93
- package/dist/components/spinner/spinner.js +147 -138
- package/dist/components/splitter/splitter.js +222 -159
- package/dist/components/statistic/statistic.js +7 -6
- package/dist/components/steps/steps.js +88 -81
- package/dist/components/steps/use-display-steps.js +1 -1
- package/dist/components/switch/switch.js +89 -89
- package/dist/components/table/table-filter.js +66 -56
- package/dist/components/table/table-icons.d.ts +2 -1
- package/dist/components/table/table-icons.js +11 -9
- package/dist/components/table/table-model.js +1 -1
- package/dist/components/table/table.js +107 -83
- package/dist/components/table/use-table-data.d.ts +6 -3
- package/dist/components/table/use-table-data.js +166 -130
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.js +236 -179
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +111 -108
- package/dist/components/textarea/textarea.js +22 -17
- package/dist/components/time-picker/time-picker.js +5 -3
- package/dist/components/timeline/timeline.css +6 -1
- package/dist/components/timeline/timeline.js +21 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +123 -233
- package/dist/components/tour/tour.css +4 -0
- package/dist/components/tour/tour.js +400 -331
- package/dist/components/transfer/transfer-list.js +29 -11
- package/dist/components/transfer/transfer-parts.js +1 -1
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +29 -14
- package/dist/components/tree/tree-keyboard.d.ts +1 -1
- package/dist/components/tree/tree-keyboard.js +5 -3
- package/dist/components/tree/tree.js +74 -59
- package/dist/components/tree-select/select-engine.d.ts +3 -2
- package/dist/components/tree-select/select-engine.js +18 -16
- package/dist/components/tree-select/tree-select.js +21 -5
- package/dist/components/upload/upload.css +8 -0
- package/dist/components/upload/upload.js +160 -72
- package/dist/components/watermark/watermark.js +36 -29
- package/dist/number-input/use-number-input.js +129 -90
- package/dist/number-input/validate.js +32 -5
- package/dist/provider/merge-locale.js +12 -9
- package/dist/provider/tao-provider.d.ts +3 -1
- package/dist/provider/tao-provider.js +123 -86
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ const TaoConfigContext = /*#__PURE__*/ createContext({
|
|
|
12
12
|
mode: 'light',
|
|
13
13
|
compact: false,
|
|
14
14
|
tokenStyle: {},
|
|
15
|
+
tokenOverrides: {},
|
|
15
16
|
locale: enUS
|
|
16
17
|
});
|
|
17
18
|
function useTaoConfig() {
|
|
@@ -42,6 +43,12 @@ function useTaoConfig() {
|
|
|
42
43
|
function useTaoInternalConfig() {
|
|
43
44
|
return useContext(TaoConfigContext);
|
|
44
45
|
}
|
|
46
|
+
function directionParent(element) {
|
|
47
|
+
if (element.assignedSlot) return element.assignedSlot;
|
|
48
|
+
if (element.parentElement) return element.parentElement;
|
|
49
|
+
const root = element.getRootNode();
|
|
50
|
+
return 'host' in root ? root.host : null;
|
|
51
|
+
}
|
|
45
52
|
function useTaoDirection(explicit, t0) {
|
|
46
53
|
const $ = c(8);
|
|
47
54
|
const source = void 0 === t0 ? "parent" : t0;
|
|
@@ -53,13 +60,13 @@ function useTaoDirection(explicit, t0) {
|
|
|
53
60
|
if ($[0] !== contextDirection || $[1] !== element || $[2] !== explicit || $[3] !== source) {
|
|
54
61
|
t1 = ()=>{
|
|
55
62
|
if (explicit && "auto" !== explicit || !element) return;
|
|
56
|
-
const target = "self" === source || "auto" === explicit ? element : element
|
|
63
|
+
const target = "self" === source || "auto" === explicit ? element : directionParent(element);
|
|
57
64
|
if (!target) return;
|
|
58
65
|
const update = ()=>{
|
|
59
66
|
const value = getComputedStyle(target).direction || target.closest("[dir]")?.getAttribute("dir") || contextDirection;
|
|
60
67
|
setInherited("rtl" === value ? "rtl" : "ltr");
|
|
61
|
-
for(let ancestor = target; ancestor; ancestor = ancestor
|
|
62
|
-
const auto = "auto" === ancestor.dir;
|
|
68
|
+
for(let ancestor = target; ancestor; ancestor = directionParent(ancestor)){
|
|
69
|
+
const auto = "auto" === ancestor.getAttribute("dir");
|
|
63
70
|
observer.observe(ancestor, {
|
|
64
71
|
attributes: true,
|
|
65
72
|
attributeFilter: [
|
|
@@ -254,6 +261,15 @@ const TOKEN_TO_VAR_NUMBER = {
|
|
|
254
261
|
zIndexBase: '--tao-z-index-base',
|
|
255
262
|
zIndexPopupBase: '--tao-z-index-popup-base'
|
|
256
263
|
};
|
|
264
|
+
const CONTROL_HEIGHT = '--tao-control-height';
|
|
265
|
+
const MOTION_UNIT = '--tao-motion-unit';
|
|
266
|
+
const DARK_SCOPE_SEEDS = [
|
|
267
|
+
'--tao-color-primary',
|
|
268
|
+
'--tao-color-bg-base',
|
|
269
|
+
'--tao-color-text-base',
|
|
270
|
+
'--tao-color-bg-surface',
|
|
271
|
+
'--tao-border-text-weight'
|
|
272
|
+
];
|
|
257
273
|
const DEFAULT_TOKEN_STYLE = {
|
|
258
274
|
'--tao-border-text-weight': '12%',
|
|
259
275
|
'--tao-color-primary': 'oklch(0.205 0.01 70)',
|
|
@@ -266,13 +282,13 @@ const DEFAULT_TOKEN_STYLE = {
|
|
|
266
282
|
'--tao-color-text-light-solid': 'oklch(0.985 0.004 70)',
|
|
267
283
|
'--tao-radius': '6px',
|
|
268
284
|
'--tao-font-size': '14px',
|
|
269
|
-
|
|
285
|
+
[CONTROL_HEIGHT]: '32px',
|
|
270
286
|
'--tao-size-unit': '4px',
|
|
271
287
|
'--tao-size-step': '4',
|
|
272
288
|
'--tao-line-width': '1px',
|
|
273
289
|
'--tao-font-family': '"Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif',
|
|
274
290
|
'--tao-font-family-code': '"Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace',
|
|
275
|
-
|
|
291
|
+
[MOTION_UNIT]: '0.1s',
|
|
276
292
|
'--tao-z-index-base': '0',
|
|
277
293
|
'--tao-z-index-popup-base': '1000'
|
|
278
294
|
};
|
|
@@ -292,7 +308,7 @@ const UNITLESS_COMPONENT_TOKEN_KEYS = new Set([
|
|
|
292
308
|
'fontWeight'
|
|
293
309
|
]);
|
|
294
310
|
function TaoProvider(t0) {
|
|
295
|
-
const $ = c(
|
|
311
|
+
const $ = c(37);
|
|
296
312
|
const { direction: directionProp, locale: localeProp, theme, size, disabled, variant, children } = t0;
|
|
297
313
|
const [direction, directionRef] = useTaoDirection(directionProp);
|
|
298
314
|
const parentConfig = useContext(TaoConfigContext);
|
|
@@ -305,6 +321,11 @@ function TaoProvider(t0) {
|
|
|
305
321
|
} else t1 = $[2];
|
|
306
322
|
const locale = t1;
|
|
307
323
|
const inherit = theme?.inherit ?? true;
|
|
324
|
+
const parentCompact = parentConfig.compact;
|
|
325
|
+
const mode = theme?.mode ?? (inherit ? parentConfig.mode : "light");
|
|
326
|
+
const explicitLight = theme?.mode === "light";
|
|
327
|
+
const compact = theme?.compact ?? (inherit ? parentCompact : false);
|
|
328
|
+
const motionEnabled = theme?.token?.motion === true;
|
|
308
329
|
const themeKey = useStableThemeKey(theme?.token, theme?.components);
|
|
309
330
|
let t2;
|
|
310
331
|
if ($[3] !== themeKey) {
|
|
@@ -329,8 +350,8 @@ function TaoProvider(t0) {
|
|
|
329
350
|
const val_1 = parsedToken[key_1];
|
|
330
351
|
if (null != val_1) vars[varName_1] = String(val_1);
|
|
331
352
|
}
|
|
332
|
-
if (false === parsedToken.motion) vars[
|
|
333
|
-
else if (null != parsedToken.motionUnit) vars[
|
|
353
|
+
if (false === parsedToken.motion) vars[MOTION_UNIT] = "0s";
|
|
354
|
+
else if (null != parsedToken.motionUnit) vars[MOTION_UNIT] = `${parsedToken.motionUnit}s`;
|
|
334
355
|
}
|
|
335
356
|
if (parsedTheme.components) {
|
|
336
357
|
for (const [component, tokens] of Object.entries(parsedTheme.components))if (tokens) for (const [key_2, value] of Object.entries(tokens)){
|
|
@@ -346,106 +367,122 @@ function TaoProvider(t0) {
|
|
|
346
367
|
} else t2 = $[4];
|
|
347
368
|
const ownVars = t2;
|
|
348
369
|
let t3;
|
|
349
|
-
if ($[5] !==
|
|
350
|
-
|
|
351
|
-
...
|
|
352
|
-
} : {
|
|
353
|
-
...DEFAULT_TOKEN_STYLE,
|
|
370
|
+
if ($[5] !== compact || $[6] !== explicitLight || $[7] !== inherit || $[8] !== mode || $[9] !== motionEnabled || $[10] !== ownVars || $[11] !== parentCompact || $[12] !== parentConfig.tokenOverrides || $[13] !== parentConfig.tokenStyle) {
|
|
371
|
+
const overrides = {
|
|
372
|
+
...inherit ? parentConfig.tokenOverrides : {},
|
|
354
373
|
...ownVars
|
|
355
374
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
$[7] = t3;
|
|
359
|
-
} else t3 = $[7];
|
|
360
|
-
const scopedVars = t3;
|
|
361
|
-
let t4;
|
|
362
|
-
if ($[8] !== inherit || $[9] !== parentConfig.tokenStyle || $[10] !== scopedVars) {
|
|
363
|
-
t4 = inherit ? {
|
|
364
|
-
...parentConfig.tokenStyle,
|
|
365
|
-
...scopedVars
|
|
366
|
-
} : {
|
|
367
|
-
...scopedVars
|
|
375
|
+
const scoped = inherit ? {} : {
|
|
376
|
+
...DEFAULT_TOKEN_STYLE
|
|
368
377
|
};
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
+
if (inherit) {
|
|
379
|
+
if (!compact && parentCompact) scoped[CONTROL_HEIGHT] = overrides[CONTROL_HEIGHT] ?? DEFAULT_TOKEN_STYLE[CONTROL_HEIGHT];
|
|
380
|
+
if (explicitLight) for (const name_0 of DARK_SCOPE_SEEDS)scoped[name_0] = overrides[name_0] ?? DEFAULT_TOKEN_STYLE[name_0];
|
|
381
|
+
} else for (const name of Object.keys(parentConfig.tokenStyle))if (!Object.hasOwn(scoped, name)) scoped[name] = "initial";
|
|
382
|
+
Object.assign(scoped, ownVars);
|
|
383
|
+
if (inherit && motionEnabled && "0s" === parentConfig.tokenStyle[MOTION_UNIT] && ownVars?.[MOTION_UNIT] === void 0) scoped[MOTION_UNIT] = overrides[MOTION_UNIT] = DEFAULT_TOKEN_STYLE[MOTION_UNIT];
|
|
384
|
+
const algorithmSeeds = "dark" === mode ? [
|
|
385
|
+
...DARK_SCOPE_SEEDS
|
|
386
|
+
] : [];
|
|
387
|
+
if (compact) algorithmSeeds.push(CONTROL_HEIGHT);
|
|
388
|
+
const portal = {
|
|
389
|
+
...inherit ? parentConfig.tokenStyle : {},
|
|
390
|
+
...scoped
|
|
391
|
+
};
|
|
392
|
+
for (const name_1 of algorithmSeeds)if (Object.hasOwn(overrides, name_1)) scoped[name_1] = portal[name_1] = overrides[name_1];
|
|
393
|
+
else {
|
|
394
|
+
delete scoped[name_1];
|
|
395
|
+
delete portal[name_1];
|
|
396
|
+
}
|
|
397
|
+
t3 = {
|
|
398
|
+
scopedVars: scoped,
|
|
399
|
+
tokenStyle: portal,
|
|
400
|
+
tokenOverrides: overrides
|
|
401
|
+
};
|
|
402
|
+
$[5] = compact;
|
|
403
|
+
$[6] = explicitLight;
|
|
404
|
+
$[7] = inherit;
|
|
405
|
+
$[8] = mode;
|
|
406
|
+
$[9] = motionEnabled;
|
|
407
|
+
$[10] = ownVars;
|
|
408
|
+
$[11] = parentCompact;
|
|
409
|
+
$[12] = parentConfig.tokenOverrides;
|
|
410
|
+
$[13] = parentConfig.tokenStyle;
|
|
411
|
+
$[14] = t3;
|
|
412
|
+
} else t3 = $[14];
|
|
413
|
+
const { scopedVars, tokenStyle, tokenOverrides } = t3;
|
|
414
|
+
let t4;
|
|
415
|
+
if ($[15] !== scopedVars) {
|
|
416
|
+
t4 = {
|
|
378
417
|
display: "contents",
|
|
379
418
|
...scopedVars
|
|
380
419
|
};
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
} else
|
|
384
|
-
const divStyle =
|
|
420
|
+
$[15] = scopedVars;
|
|
421
|
+
$[16] = t4;
|
|
422
|
+
} else t4 = $[16];
|
|
423
|
+
const divStyle = t4;
|
|
385
424
|
const parentSize = parentConfig.size;
|
|
386
425
|
const parentDisabled = parentConfig.disabled;
|
|
387
426
|
const parentVariant = parentConfig.variant;
|
|
388
|
-
const
|
|
389
|
-
const
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
const t8 = variant ?? (inherit ? parentVariant : "outlined");
|
|
395
|
-
let t9;
|
|
396
|
-
if ($[14] !== compact || $[15] !== direction || $[16] !== locale || $[17] !== mode || $[18] !== t6 || $[19] !== t7 || $[20] !== t8 || $[21] !== tokenStyle) {
|
|
397
|
-
t9 = {
|
|
427
|
+
const t5 = size ?? (inherit ? parentSize : "medium");
|
|
428
|
+
const t6 = disabled ?? (inherit ? parentDisabled : false);
|
|
429
|
+
const t7 = variant ?? (inherit ? parentVariant : "outlined");
|
|
430
|
+
let t8;
|
|
431
|
+
if ($[17] !== compact || $[18] !== direction || $[19] !== locale || $[20] !== mode || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== tokenOverrides || $[25] !== tokenStyle) {
|
|
432
|
+
t8 = {
|
|
398
433
|
direction,
|
|
399
|
-
size:
|
|
400
|
-
disabled:
|
|
401
|
-
variant:
|
|
434
|
+
size: t5,
|
|
435
|
+
disabled: t6,
|
|
436
|
+
variant: t7,
|
|
402
437
|
mode,
|
|
403
438
|
compact,
|
|
404
439
|
tokenStyle,
|
|
440
|
+
tokenOverrides,
|
|
405
441
|
locale
|
|
406
442
|
};
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
const
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
443
|
+
$[17] = compact;
|
|
444
|
+
$[18] = direction;
|
|
445
|
+
$[19] = locale;
|
|
446
|
+
$[20] = mode;
|
|
447
|
+
$[21] = t5;
|
|
448
|
+
$[22] = t6;
|
|
449
|
+
$[23] = t7;
|
|
450
|
+
$[24] = tokenOverrides;
|
|
451
|
+
$[25] = tokenStyle;
|
|
452
|
+
$[26] = t8;
|
|
453
|
+
} else t8 = $[26];
|
|
454
|
+
const config = t8;
|
|
455
|
+
const t9 = "light" === mode ? void 0 : mode;
|
|
456
|
+
const t10 = compact ? "compact" : void 0;
|
|
457
|
+
let t11;
|
|
458
|
+
if ($[27] !== children || $[28] !== directionProp || $[29] !== directionRef || $[30] !== divStyle || $[31] !== t10 || $[32] !== t9) {
|
|
459
|
+
t11 = /*#__PURE__*/ jsx("div", {
|
|
423
460
|
ref: directionRef,
|
|
424
461
|
dir: directionProp,
|
|
425
462
|
style: divStyle,
|
|
426
463
|
"data-tao-provider": "",
|
|
427
|
-
"data-tao-theme":
|
|
428
|
-
"data-tao-density":
|
|
464
|
+
"data-tao-theme": t9,
|
|
465
|
+
"data-tao-density": t10,
|
|
429
466
|
children: children
|
|
430
467
|
});
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
} else
|
|
439
|
-
let
|
|
440
|
-
if ($[
|
|
441
|
-
|
|
468
|
+
$[27] = children;
|
|
469
|
+
$[28] = directionProp;
|
|
470
|
+
$[29] = directionRef;
|
|
471
|
+
$[30] = divStyle;
|
|
472
|
+
$[31] = t10;
|
|
473
|
+
$[32] = t9;
|
|
474
|
+
$[33] = t11;
|
|
475
|
+
} else t11 = $[33];
|
|
476
|
+
let t12;
|
|
477
|
+
if ($[34] !== config || $[35] !== t11) {
|
|
478
|
+
t12 = /*#__PURE__*/ jsx(TaoConfigContext.Provider, {
|
|
442
479
|
value: config,
|
|
443
|
-
children:
|
|
480
|
+
children: t11
|
|
444
481
|
});
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
} else
|
|
449
|
-
return
|
|
482
|
+
$[34] = config;
|
|
483
|
+
$[35] = t11;
|
|
484
|
+
$[36] = t12;
|
|
485
|
+
} else t12 = $[36];
|
|
486
|
+
return t12;
|
|
450
487
|
}
|
|
451
488
|
export { TaoPortalScope, TaoProvider, enUS, useTaoConfig, useTaoDirection, useTaoInternalConfig, useTaoToken, zhCN };
|