@rockshin/tao-ui 0.0.58 → 0.0.60

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.
Files changed (111) hide show
  1. package/dist/components/affix/affix.js +38 -4
  2. package/dist/components/app/app-modals.js +11 -6
  3. package/dist/components/app/app-notices.js +105 -47
  4. package/dist/components/auto-complete/auto-complete.js +9 -2
  5. package/dist/components/calendar/calendar.js +22 -18
  6. package/dist/components/carousel/carousel.js +27 -14
  7. package/dist/components/cascader/cascader.js +18 -12
  8. package/dist/components/checkbox/checkbox.d.ts +3 -1
  9. package/dist/components/checkbox/checkbox.js +65 -58
  10. package/dist/components/color-picker/color-picker.css +1 -1
  11. package/dist/components/color-picker/color-picker.js +386 -362
  12. package/dist/components/context-menu/context-menu.d.ts +3 -1
  13. package/dist/components/context-menu/context-menu.js +48 -43
  14. package/dist/components/date-picker/calendar/calendar-grid.d.ts +5 -3
  15. package/dist/components/date-picker/calendar/calendar-grid.js +9 -4
  16. package/dist/components/date-picker/calendar/month-grid.d.ts +2 -1
  17. package/dist/components/date-picker/calendar/month-grid.js +61 -45
  18. package/dist/components/date-picker/calendar/time-panel.d.ts +8 -1
  19. package/dist/components/date-picker/calendar/time-panel.js +93 -88
  20. package/dist/components/date-picker/calendar/year-grid.d.ts +2 -1
  21. package/dist/components/date-picker/calendar/year-grid.js +60 -44
  22. package/dist/components/date-picker/date-picker.css +9 -0
  23. package/dist/components/date-picker/date-picker.js +25 -14
  24. package/dist/components/date-picker/range-picker.d.ts +2 -0
  25. package/dist/components/date-picker/range-picker.js +132 -73
  26. package/dist/components/date-picker/types.js +1 -1
  27. package/dist/components/drawer/drawer.d.ts +1 -1
  28. package/dist/components/drawer/drawer.js +4 -3
  29. package/dist/components/dropdown/dropdown.d.ts +1 -0
  30. package/dist/components/dropdown/dropdown.js +29 -21
  31. package/dist/components/float-button/float-button.js +6 -5
  32. package/dist/components/form/form-item.d.ts +1 -1
  33. package/dist/components/form/form-item.js +160 -120
  34. package/dist/components/form/use-form.js +2 -1
  35. package/dist/components/form-field/form-field-view.d.ts +2 -1
  36. package/dist/components/form-field/form-field-view.js +173 -108
  37. package/dist/components/input/input-shared.js +3 -2
  38. package/dist/components/input/otp.js +114 -110
  39. package/dist/components/input/password.js +55 -61
  40. package/dist/components/input/search.js +8 -4
  41. package/dist/components/input-number/input-number.d.ts +2 -1
  42. package/dist/components/input-number/input-number.js +67 -52
  43. package/dist/components/mentions/mentions.js +4 -2
  44. package/dist/components/menu/menu-render.d.ts +6 -0
  45. package/dist/components/menu/menu-render.js +39 -26
  46. package/dist/components/modal/confirm-dialog.js +22 -10
  47. package/dist/components/modal/modal.js +320 -315
  48. package/dist/components/modal/use-modal.js +1 -1
  49. package/dist/components/pagination/pagination.d.ts +4 -2
  50. package/dist/components/pagination/pagination.js +128 -117
  51. package/dist/components/popover/popover.js +214 -351
  52. package/dist/components/qr-code/qr-code.js +157 -150
  53. package/dist/components/radio/radio.d.ts +3 -1
  54. package/dist/components/radio/radio.js +73 -64
  55. package/dist/components/select/mobile-select.js +7 -4
  56. package/dist/components/select/select-model.js +3 -3
  57. package/dist/components/select/select.js +78 -39
  58. package/dist/components/select/use-select-selection.js +100 -92
  59. package/dist/components/slider/slider.d.ts +2 -2
  60. package/dist/components/slider/slider.js +13 -2
  61. package/dist/components/sonner/sonner.js +2 -2
  62. package/dist/components/splitter/splitter.css +1 -0
  63. package/dist/components/splitter/splitter.js +152 -126
  64. package/dist/components/statistic/statistic.js +38 -31
  65. package/dist/components/switch/switch.js +45 -39
  66. package/dist/components/table/table-filter.d.ts +3 -1
  67. package/dist/components/table/table-filter.js +100 -74
  68. package/dist/components/table/table.js +2 -0
  69. package/dist/components/table/use-table-data.js +2 -2
  70. package/dist/components/tabs/tabs.d.ts +3 -2
  71. package/dist/components/tabs/tabs.js +122 -112
  72. package/dist/components/time-picker/time-picker.js +35 -3
  73. package/dist/components/tooltip/tooltip.d.ts +1 -1
  74. package/dist/components/tooltip/tooltip.js +220 -124
  75. package/dist/components/tree/tree.js +31 -3
  76. package/dist/components/tree-select/tree-select.js +2 -1
  77. package/dist/components/upload/upload.js +67 -40
  78. package/dist/locales/ar-EG.js +2 -0
  79. package/dist/locales/de-DE.js +2 -0
  80. package/dist/locales/en-US.js +2 -0
  81. package/dist/locales/es-ES.js +2 -0
  82. package/dist/locales/fr-FR.js +2 -0
  83. package/dist/locales/hi-IN.js +2 -0
  84. package/dist/locales/id-ID.js +2 -0
  85. package/dist/locales/it-IT.js +2 -0
  86. package/dist/locales/ja-JP.js +2 -0
  87. package/dist/locales/ko-KR.js +2 -0
  88. package/dist/locales/pt-BR.js +2 -0
  89. package/dist/locales/ru-RU.js +2 -0
  90. package/dist/locales/th-TH.js +2 -0
  91. package/dist/locales/tr-TR.js +2 -0
  92. package/dist/locales/types.d.ts +2 -0
  93. package/dist/locales/vi-VN.js +2 -0
  94. package/dist/locales/zh-CN.js +2 -0
  95. package/dist/locales/zh-TW.js +2 -0
  96. package/dist/number-input/format.js +1 -1
  97. package/dist/number-input/use-number-input.d.ts +1 -0
  98. package/dist/number-input/use-number-input.js +170 -321
  99. package/dist/number-input/validate.d.ts +1 -0
  100. package/dist/number-input/validate.js +1 -1
  101. package/dist/provider/tao-provider.d.ts +2 -2
  102. package/dist/provider/tao-provider.js +66 -52
  103. package/dist/theme/control.css +5 -1
  104. package/dist/theme/theme.css +2 -2
  105. package/dist/utils/composed-parent.d.ts +1 -0
  106. package/dist/utils/composed-parent.js +7 -0
  107. package/dist/utils/portal.d.ts +5 -0
  108. package/dist/utils/portal.js +7 -1
  109. package/dist/utils/refs.d.ts +3 -1
  110. package/dist/utils/refs.js +25 -1
  111. package/package.json +1 -1
@@ -1,12 +1,16 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c } from "react-compiler-runtime";
3
+ import { useState } from "react";
3
4
  import { TaoPortalScope, useTaoConfig } from "../../provider/tao-provider.js";
4
5
  import { CheckIcon, FilterIcon } from "./table-icons.js";
5
6
  import * as __rspack_external__radix_ui_react_dropdown_menu_154a7470 from "@radix-ui/react-dropdown-menu";
6
7
  function TableFilterDropdown(t0) {
7
- const $ = c(28);
8
- const { filters, activeValues, onSelect } = t0;
8
+ const $ = c(37);
9
+ const { filters, activeValues, direction, onSelect } = t0;
9
10
  const { locale, disabled } = useTaoConfig();
11
+ const [internalOpen, setInternalOpen] = useState(false);
12
+ if (disabled && internalOpen) setInternalOpen(false);
13
+ const open = !disabled && internalOpen;
10
14
  let t1;
11
15
  if ($[0] !== activeValues || $[1] !== onSelect) {
12
16
  t1 = (value)=>{
@@ -20,45 +24,53 @@ function TableFilterDropdown(t0) {
20
24
  $[2] = t1;
21
25
  } else t1 = $[2];
22
26
  const toggle = t1;
23
- const t2 = activeValues.length > 0;
24
- let t3;
25
- if ($[3] !== t2) {
26
- t3 = /*#__PURE__*/ jsx(FilterIcon, {
27
- active: t2
28
- });
29
- $[3] = t2;
30
- $[4] = t3;
31
- } else t3 = $[4];
27
+ let t2;
28
+ if ($[3] !== disabled) {
29
+ t2 = (next)=>{
30
+ if (!disabled || !next) setInternalOpen(next);
31
+ };
32
+ $[3] = disabled;
33
+ $[4] = t2;
34
+ } else t2 = $[4];
35
+ const t3 = activeValues.length > 0;
32
36
  let t4;
33
- if ($[5] !== disabled || $[6] !== locale.messages.filter || $[7] !== t3) {
34
- t4 = /*#__PURE__*/ jsx("button", {
37
+ if ($[5] !== t3) {
38
+ t4 = /*#__PURE__*/ jsx(FilterIcon, {
39
+ active: t3
40
+ });
41
+ $[5] = t3;
42
+ $[6] = t4;
43
+ } else t4 = $[6];
44
+ let t5;
45
+ if ($[7] !== disabled || $[8] !== locale.messages.filter || $[9] !== t4) {
46
+ t5 = /*#__PURE__*/ jsx("button", {
35
47
  type: "button",
36
48
  "data-tao-table-filter-trigger": "",
37
49
  "aria-label": locale.messages.filter,
38
50
  disabled: disabled,
39
- children: t3
40
- });
41
- $[5] = disabled;
42
- $[6] = locale.messages.filter;
43
- $[7] = t3;
44
- $[8] = t4;
45
- } else t4 = $[8];
46
- const trigger = t4;
47
- if (disabled) return trigger;
48
- let t5;
49
- if ($[9] !== trigger) {
50
- t5 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Trigger, {
51
- asChild: true,
52
- children: trigger
51
+ children: t4
53
52
  });
54
- $[9] = trigger;
53
+ $[7] = disabled;
54
+ $[8] = locale.messages.filter;
55
+ $[9] = t4;
55
56
  $[10] = t5;
56
57
  } else t5 = $[10];
57
58
  let t6;
58
- if ($[11] !== activeValues || $[12] !== filters || $[13] !== toggle) {
59
- let t7;
60
- if ($[15] !== activeValues || $[16] !== toggle) {
61
- t7 = (filter)=>{
59
+ if ($[11] !== disabled || $[12] !== t5) {
60
+ t6 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Trigger, {
61
+ asChild: true,
62
+ disabled: disabled,
63
+ children: t5
64
+ });
65
+ $[11] = disabled;
66
+ $[12] = t5;
67
+ $[13] = t6;
68
+ } else t6 = $[13];
69
+ let t7;
70
+ if ($[14] !== activeValues || $[15] !== filters || $[16] !== toggle) {
71
+ let t8;
72
+ if ($[18] !== activeValues || $[19] !== toggle) {
73
+ t8 = (filter)=>{
62
74
  const checked = activeValues.includes(filter.value);
63
75
  return /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.CheckboxItem, {
64
76
  checked: checked,
@@ -79,62 +91,76 @@ function TableFilterDropdown(t0) {
79
91
  ]
80
92
  }, filter.value);
81
93
  };
82
- $[15] = activeValues;
83
- $[16] = toggle;
84
- $[17] = t7;
85
- } else t7 = $[17];
86
- t6 = filters.map(t7);
87
- $[11] = activeValues;
88
- $[12] = filters;
89
- $[13] = toggle;
90
- $[14] = t6;
91
- } else t6 = $[14];
92
- let t7;
93
- if ($[18] !== activeValues.length || $[19] !== locale.messages.filterReset || $[20] !== onSelect) {
94
- t7 = activeValues.length > 0 && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Item, {
94
+ $[18] = activeValues;
95
+ $[19] = toggle;
96
+ $[20] = t8;
97
+ } else t8 = $[20];
98
+ t7 = filters.map(t8);
99
+ $[14] = activeValues;
100
+ $[15] = filters;
101
+ $[16] = toggle;
102
+ $[17] = t7;
103
+ } else t7 = $[17];
104
+ let t8;
105
+ if ($[21] !== activeValues.length || $[22] !== locale.messages.filterReset || $[23] !== onSelect) {
106
+ t8 = activeValues.length > 0 && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Item, {
95
107
  "data-tao-table-filter-reset": "",
96
108
  onSelect: ()=>onSelect([]),
97
109
  children: locale.messages.filterReset
98
110
  });
99
- $[18] = activeValues.length;
100
- $[19] = locale.messages.filterReset;
101
- $[20] = onSelect;
102
- $[21] = t7;
103
- } else t7 = $[21];
104
- let t8;
105
- if ($[22] !== t6 || $[23] !== t7) {
106
- t8 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Portal, {
107
- children: /*#__PURE__*/ jsx(TaoPortalScope, {
108
- asChild: true,
109
- children: /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Content, {
110
- "data-tao-table-filter-panel": "",
111
- align: "end",
112
- sideOffset: 4,
113
- loop: true,
114
- children: [
115
- t6,
116
- t7
117
- ]
118
- })
119
- })
120
- });
121
- $[22] = t6;
122
- $[23] = t7;
111
+ $[21] = activeValues.length;
112
+ $[22] = locale.messages.filterReset;
113
+ $[23] = onSelect;
123
114
  $[24] = t8;
124
115
  } else t8 = $[24];
125
116
  let t9;
126
- if ($[25] !== t5 || $[26] !== t8) {
127
- t9 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Root, {
117
+ if ($[25] !== t7 || $[26] !== t8) {
118
+ t9 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Content, {
119
+ "data-tao-table-filter-panel": "",
120
+ align: "end",
121
+ sideOffset: 4,
122
+ loop: true,
128
123
  children: [
129
- t5,
124
+ t7,
130
125
  t8
131
126
  ]
132
127
  });
133
- $[25] = t5;
128
+ $[25] = t7;
134
129
  $[26] = t8;
135
130
  $[27] = t9;
136
131
  } else t9 = $[27];
137
- return t9;
132
+ let t10;
133
+ if ($[28] !== direction || $[29] !== t9) {
134
+ t10 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Portal, {
135
+ children: /*#__PURE__*/ jsx(TaoPortalScope, {
136
+ asChild: true,
137
+ direction: direction,
138
+ children: t9
139
+ })
140
+ });
141
+ $[28] = direction;
142
+ $[29] = t9;
143
+ $[30] = t10;
144
+ } else t10 = $[30];
145
+ let t11;
146
+ if ($[31] !== direction || $[32] !== open || $[33] !== t10 || $[34] !== t2 || $[35] !== t6) {
147
+ t11 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Root, {
148
+ dir: direction,
149
+ open: open,
150
+ onOpenChange: t2,
151
+ children: [
152
+ t6,
153
+ t10
154
+ ]
155
+ });
156
+ $[31] = direction;
157
+ $[32] = open;
158
+ $[33] = t10;
159
+ $[34] = t2;
160
+ $[35] = t6;
161
+ $[36] = t11;
162
+ } else t11 = $[36];
163
+ return t11;
138
164
  }
139
165
  function _temp(event) {
140
166
  return event.preventDefault();
@@ -385,6 +385,7 @@ function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagi
385
385
  hasFilter && /*#__PURE__*/ jsx(TableFilterDropdown, {
386
386
  filters: col_4.filters,
387
387
  activeValues: activeFilterValues,
388
+ direction: direction,
388
389
  onSelect: onFilter
389
390
  })
390
391
  ]
@@ -473,6 +474,7 @@ function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagi
473
474
  const stickyPos_0 = stickyPositions[colIdx];
474
475
  const isFixed_0 = !!col_5.fixed && !!scroll?.x;
475
476
  const cellProps = col_5.onCell?.(record_3, rowIdx) ?? {};
477
+ if (0 === cellProps.colSpan || 0 === cellProps.rowSpan) return null;
476
478
  return /*#__PURE__*/ createElement("td", {
477
479
  ...cellProps,
478
480
  key: colKey_0,
@@ -126,7 +126,7 @@ function useTableData(t0) {
126
126
  const currentPage = paginationConfig?.current ?? internalPage;
127
127
  let t7;
128
128
  bb0: {
129
- if (false === paginationProp || paginationConfig?.total !== void 0) {
129
+ if (false === paginationProp || processedData.length < total) {
130
130
  t7 = processedData;
131
131
  break bb0;
132
132
  }
@@ -152,7 +152,7 @@ function useTableData(t0) {
152
152
  if (!column_7.filters) continue;
153
153
  const values_2 = Object.hasOwn(nextFilters, key_0) ? nextFilters[key_0] : void 0;
154
154
  filterEntries.push([
155
- null == column_7.dataIndex ? key_0 : String(column_7.dataIndex),
155
+ key_0,
156
156
  values_2?.length ? [
157
157
  ...values_2
158
158
  ] : null
@@ -1,4 +1,4 @@
1
- import { type AriaAttributes, type ReactNode } from 'react';
1
+ import { type AriaAttributes, type CSSProperties, type ReactNode } from 'react';
2
2
  import { type TaoSize } from '../../provider/tao-provider.js';
3
3
  import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
4
4
  import './tabs.css';
@@ -18,7 +18,8 @@ export interface TabsProps extends Pick<AriaAttributes, 'aria-label' | 'aria-lab
18
18
  variant?: 'line' | 'card';
19
19
  destroyInactiveTabPane?: boolean;
20
20
  className?: string;
21
+ style?: CSSProperties;
21
22
  classNames?: SemanticClassNames<TabsSemanticPart>;
22
23
  styles?: SemanticStyles<TabsSemanticPart>;
23
24
  }
24
- export declare function Tabs({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant, destroyInactiveTabPane, className, classNames, styles, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: TabsProps): import("react").JSX.Element;
25
+ export declare function Tabs({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant, destroyInactiveTabPane, className, style, classNames, styles, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: TabsProps): import("react").JSX.Element;
@@ -6,8 +6,8 @@ import { mergeRefs } from "../../utils/refs.js";
6
6
  import { cx } from "../../utils/semantic.js";
7
7
  import "./tabs.css";
8
8
  function Tabs(t0) {
9
- const $ = c(86);
10
- const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, classNames, styles, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy } = t0;
9
+ const $ = c(89);
10
+ const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, style, classNames, styles, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy } = t0;
11
11
  const variant = void 0 === t1 ? "line" : t1;
12
12
  const destroyInactiveTabPane = void 0 === t2 ? false : t2;
13
13
  const ctx = useTaoConfig();
@@ -124,7 +124,7 @@ function Tabs(t0) {
124
124
  next = enabledItems[(idx + 1) % enabledItems.length];
125
125
  } else if (e.key === (rtl ? "ArrowRight" : "ArrowLeft")) {
126
126
  e.preventDefault();
127
- next = enabledItems[(idx - 1 + enabledItems.length) % enabledItems.length];
127
+ next = idx < 0 ? enabledItems[enabledItems.length - 1] : enabledItems[(idx - 1 + enabledItems.length) % enabledItems.length];
128
128
  } else if ("Home" === e.key) {
129
129
  e.preventDefault();
130
130
  next = enabledItems[0];
@@ -154,26 +154,36 @@ function Tabs(t0) {
154
154
  $[28] = t12;
155
155
  } else t12 = $[28];
156
156
  const t13 = styles?.root;
157
- const t14 = classNames?.nav;
158
- let t15;
159
- if ($[29] !== t14) {
160
- t15 = cx(t14);
161
- $[29] = t14;
162
- $[30] = t15;
163
- } else t15 = $[30];
164
- const t16 = styles?.nav;
165
- let t17;
166
- if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
167
- t17 = (event)=>{
168
- if (!(event.relatedTarget instanceof Node) || !event.currentTarget.contains(event.relatedTarget)) setFocusedKey(void 0);
157
+ let t14;
158
+ if ($[29] !== style || $[30] !== t13) {
159
+ t14 = {
160
+ ...t13,
161
+ ...style
169
162
  };
170
- $[31] = t17;
171
- } else t17 = $[31];
163
+ $[29] = style;
164
+ $[30] = t13;
165
+ $[31] = t14;
166
+ } else t14 = $[31];
167
+ const t15 = classNames?.nav;
168
+ let t16;
169
+ if ($[32] !== t15) {
170
+ t16 = cx(t15);
171
+ $[32] = t15;
172
+ $[33] = t16;
173
+ } else t16 = $[33];
174
+ const t17 = styles?.nav;
172
175
  let t18;
173
- if ($[32] !== classNames?.tab || $[33] !== currentKey || $[34] !== destroyInactiveTabPane || $[35] !== focusKey || $[36] !== getItemId || $[37] !== handleSelect || $[38] !== items || $[39] !== styles?.tab) {
174
- let t19;
175
- if ($[41] !== classNames?.tab || $[42] !== currentKey || $[43] !== destroyInactiveTabPane || $[44] !== focusKey || $[45] !== getItemId || $[46] !== handleSelect || $[47] !== styles?.tab) {
176
- t19 = (item_5)=>{
176
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
177
+ t18 = (event)=>{
178
+ if (!(event.relatedTarget instanceof Node) || !event.currentTarget.contains(event.relatedTarget)) setFocusedKey(void 0);
179
+ };
180
+ $[34] = t18;
181
+ } else t18 = $[34];
182
+ let t19;
183
+ if ($[35] !== classNames?.tab || $[36] !== currentKey || $[37] !== destroyInactiveTabPane || $[38] !== focusKey || $[39] !== getItemId || $[40] !== handleSelect || $[41] !== items || $[42] !== styles?.tab) {
184
+ let t20;
185
+ if ($[44] !== classNames?.tab || $[45] !== currentKey || $[46] !== destroyInactiveTabPane || $[47] !== focusKey || $[48] !== getItemId || $[49] !== handleSelect || $[50] !== styles?.tab) {
186
+ t20 = (item_5)=>{
177
187
  const isActive = item_5.key === currentKey;
178
188
  const tabId = getItemId("tab", item_5.key);
179
189
  const panelId = getItemId("panel", item_5.key);
@@ -201,29 +211,29 @@ function Tabs(t0) {
201
211
  children: item_5.label
202
212
  }, item_5.key);
203
213
  };
204
- $[41] = classNames?.tab;
205
- $[42] = currentKey;
206
- $[43] = destroyInactiveTabPane;
207
- $[44] = focusKey;
208
- $[45] = getItemId;
209
- $[46] = handleSelect;
210
- $[47] = styles?.tab;
211
- $[48] = t19;
212
- } else t19 = $[48];
213
- t18 = items.map(t19);
214
- $[32] = classNames?.tab;
215
- $[33] = currentKey;
216
- $[34] = destroyInactiveTabPane;
217
- $[35] = focusKey;
218
- $[36] = getItemId;
219
- $[37] = handleSelect;
220
- $[38] = items;
221
- $[39] = styles?.tab;
222
- $[40] = t18;
223
- } else t18 = $[40];
224
- let t19;
225
- if ($[49] !== classNames?.indicator || $[50] !== direction || $[51] !== inkStyle || $[52] !== styles?.indicator || $[53] !== variant) {
226
- t19 = "line" === variant && inkStyle && /*#__PURE__*/ jsx("span", {
214
+ $[44] = classNames?.tab;
215
+ $[45] = currentKey;
216
+ $[46] = destroyInactiveTabPane;
217
+ $[47] = focusKey;
218
+ $[48] = getItemId;
219
+ $[49] = handleSelect;
220
+ $[50] = styles?.tab;
221
+ $[51] = t20;
222
+ } else t20 = $[51];
223
+ t19 = items.map(t20);
224
+ $[35] = classNames?.tab;
225
+ $[36] = currentKey;
226
+ $[37] = destroyInactiveTabPane;
227
+ $[38] = focusKey;
228
+ $[39] = getItemId;
229
+ $[40] = handleSelect;
230
+ $[41] = items;
231
+ $[42] = styles?.tab;
232
+ $[43] = t19;
233
+ } else t19 = $[43];
234
+ let t20;
235
+ if ($[52] !== classNames?.indicator || $[53] !== direction || $[54] !== inkStyle || $[55] !== styles?.indicator || $[56] !== variant) {
236
+ t20 = "line" === variant && inkStyle && /*#__PURE__*/ jsx("span", {
227
237
  "data-tao-tabs-ink": "",
228
238
  style: {
229
239
  transform: `translateX(${inkStyle.left}px) scaleX(${inkStyle.width})`,
@@ -232,54 +242,54 @@ function Tabs(t0) {
232
242
  },
233
243
  className: cx(classNames?.indicator)
234
244
  });
235
- $[49] = classNames?.indicator;
236
- $[50] = direction;
237
- $[51] = inkStyle;
238
- $[52] = styles?.indicator;
239
- $[53] = variant;
240
- $[54] = t19;
241
- } else t19 = $[54];
242
- let t20;
243
- if ($[55] !== ariaLabel || $[56] !== ariaLabelledBy || $[57] !== handleKeyDown || $[58] !== listRef || $[59] !== t18 || $[60] !== t19) {
244
- t20 = /*#__PURE__*/ jsxs("div", {
245
+ $[52] = classNames?.indicator;
246
+ $[53] = direction;
247
+ $[54] = inkStyle;
248
+ $[55] = styles?.indicator;
249
+ $[56] = variant;
250
+ $[57] = t20;
251
+ } else t20 = $[57];
252
+ let t21;
253
+ if ($[58] !== ariaLabel || $[59] !== ariaLabelledBy || $[60] !== handleKeyDown || $[61] !== listRef || $[62] !== t19 || $[63] !== t20) {
254
+ t21 = /*#__PURE__*/ jsxs("div", {
245
255
  ref: listRef,
246
256
  role: "tablist",
247
257
  "aria-label": ariaLabel,
248
258
  "aria-labelledby": ariaLabelledBy,
249
259
  "data-tao-tabs-list": "",
250
- onBlur: t17,
260
+ onBlur: t18,
251
261
  onKeyDown: handleKeyDown,
252
262
  children: [
253
- t18,
254
- t19
263
+ t19,
264
+ t20
255
265
  ]
256
266
  });
257
- $[55] = ariaLabel;
258
- $[56] = ariaLabelledBy;
259
- $[57] = handleKeyDown;
260
- $[58] = listRef;
261
- $[59] = t18;
262
- $[60] = t19;
263
- $[61] = t20;
264
- } else t20 = $[61];
265
- let t21;
266
- if ($[62] !== t15 || $[63] !== t16 || $[64] !== t20) {
267
- t21 = /*#__PURE__*/ jsx("div", {
267
+ $[58] = ariaLabel;
268
+ $[59] = ariaLabelledBy;
269
+ $[60] = handleKeyDown;
270
+ $[61] = listRef;
271
+ $[62] = t19;
272
+ $[63] = t20;
273
+ $[64] = t21;
274
+ } else t21 = $[64];
275
+ let t22;
276
+ if ($[65] !== t16 || $[66] !== t17 || $[67] !== t21) {
277
+ t22 = /*#__PURE__*/ jsx("div", {
268
278
  "data-tao-tabs-nav": "",
269
- className: t15,
270
- style: t16,
271
- children: t20
279
+ className: t16,
280
+ style: t17,
281
+ children: t21
272
282
  });
273
- $[62] = t15;
274
- $[63] = t16;
275
- $[64] = t20;
276
- $[65] = t21;
277
- } else t21 = $[65];
278
- let t22;
279
- if ($[66] !== classNames?.panel || $[67] !== currentKey || $[68] !== destroyInactiveTabPane || $[69] !== getItemId || $[70] !== items || $[71] !== styles?.panel) {
280
- let t23;
281
- if ($[73] !== classNames?.panel || $[74] !== currentKey || $[75] !== destroyInactiveTabPane || $[76] !== getItemId || $[77] !== styles?.panel) {
282
- t23 = (item_6)=>{
283
+ $[65] = t16;
284
+ $[66] = t17;
285
+ $[67] = t21;
286
+ $[68] = t22;
287
+ } else t22 = $[68];
288
+ let t23;
289
+ if ($[69] !== classNames?.panel || $[70] !== currentKey || $[71] !== destroyInactiveTabPane || $[72] !== getItemId || $[73] !== items || $[74] !== styles?.panel) {
290
+ let t24;
291
+ if ($[76] !== classNames?.panel || $[77] !== currentKey || $[78] !== destroyInactiveTabPane || $[79] !== getItemId || $[80] !== styles?.panel) {
292
+ t24 = (item_6)=>{
283
293
  const isActive_0 = item_6.key === currentKey;
284
294
  const tabId_0 = getItemId("tab", item_6.key);
285
295
  const panelId_0 = getItemId("panel", item_6.key);
@@ -297,44 +307,44 @@ function Tabs(t0) {
297
307
  children: item_6.children
298
308
  }, item_6.key);
299
309
  };
300
- $[73] = classNames?.panel;
301
- $[74] = currentKey;
302
- $[75] = destroyInactiveTabPane;
303
- $[76] = getItemId;
304
- $[77] = styles?.panel;
305
- $[78] = t23;
306
- } else t23 = $[78];
307
- t22 = items.map(t23);
308
- $[66] = classNames?.panel;
309
- $[67] = currentKey;
310
- $[68] = destroyInactiveTabPane;
311
- $[69] = getItemId;
312
- $[70] = items;
313
- $[71] = styles?.panel;
314
- $[72] = t22;
315
- } else t22 = $[72];
316
- let t23;
317
- if ($[79] !== resolvedSize || $[80] !== t12 || $[81] !== t13 || $[82] !== t21 || $[83] !== t22 || $[84] !== variant) {
318
- t23 = /*#__PURE__*/ jsxs("div", {
310
+ $[76] = classNames?.panel;
311
+ $[77] = currentKey;
312
+ $[78] = destroyInactiveTabPane;
313
+ $[79] = getItemId;
314
+ $[80] = styles?.panel;
315
+ $[81] = t24;
316
+ } else t24 = $[81];
317
+ t23 = items.map(t24);
318
+ $[69] = classNames?.panel;
319
+ $[70] = currentKey;
320
+ $[71] = destroyInactiveTabPane;
321
+ $[72] = getItemId;
322
+ $[73] = items;
323
+ $[74] = styles?.panel;
324
+ $[75] = t23;
325
+ } else t23 = $[75];
326
+ let t24;
327
+ if ($[82] !== resolvedSize || $[83] !== t12 || $[84] !== t14 || $[85] !== t22 || $[86] !== t23 || $[87] !== variant) {
328
+ t24 = /*#__PURE__*/ jsxs("div", {
319
329
  "data-tao-tabs": "",
320
330
  "data-tao-variant": variant,
321
331
  "data-tao-size": resolvedSize,
322
332
  className: t12,
323
- style: t13,
333
+ style: t14,
324
334
  children: [
325
- t21,
326
- t22
335
+ t22,
336
+ t23
327
337
  ]
328
338
  });
329
- $[79] = resolvedSize;
330
- $[80] = t12;
331
- $[81] = t13;
332
- $[82] = t21;
333
- $[83] = t22;
334
- $[84] = variant;
335
- $[85] = t23;
336
- } else t23 = $[85];
337
- return t23;
339
+ $[82] = resolvedSize;
340
+ $[83] = t12;
341
+ $[84] = t14;
342
+ $[85] = t22;
343
+ $[86] = t23;
344
+ $[87] = variant;
345
+ $[88] = t24;
346
+ } else t24 = $[88];
347
+ return t24;
338
348
  }
339
349
  function _temp2(t) {
340
350
  return !t.disabled;