@rockshin/tao-ui 0.0.21 → 0.0.22
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/README.md +8 -1
- package/component-manifest.json +77 -48
- package/dist/components/button/button.css +11 -11
- package/dist/components/button/button.d.ts +3 -2
- package/dist/components/button/button.js +55 -47
- package/dist/components/checkbox/checkbox.d.ts +3 -2
- package/dist/components/checkbox/checkbox.js +91 -81
- package/dist/components/date-picker/calendar/calendar-grid.d.ts +7 -1
- package/dist/components/date-picker/calendar/calendar-grid.js +158 -160
- package/dist/components/date-picker/calendar/time-panel.js +64 -70
- package/dist/components/date-picker/date-picker.css +11 -5
- package/dist/components/date-picker/date-picker.d.ts +13 -5
- package/dist/components/date-picker/date-picker.js +389 -718
- package/dist/components/date-picker/range-picker.d.ts +12 -5
- package/dist/components/date-picker/range-picker.js +68 -12
- package/dist/components/date-picker/types.d.ts +5 -0
- package/dist/components/drawer/drawer.css +3 -1
- package/dist/components/form-field/form-field.d.ts +1 -1
- package/dist/components/form-field/form-field.js +106 -63
- package/dist/components/input/input.css +7 -1
- package/dist/components/input/input.d.ts +2 -1
- package/dist/components/input/input.js +76 -70
- package/dist/components/input-number/input-number.d.ts +5 -3
- package/dist/components/input-number/input-number.js +63 -47
- package/dist/components/modal/modal.css +2 -1
- package/dist/components/radio/radio.d.ts +3 -2
- package/dist/components/radio/radio.js +43 -39
- package/dist/components/select/mobile-select.d.ts +1 -1
- package/dist/components/select/mobile-select.js +1 -1
- package/dist/components/select/select-icons.d.ts +7 -0
- package/dist/components/select/select-icons.js +141 -0
- package/dist/components/select/select-model.d.ts +4 -0
- package/dist/components/select/select-model.js +22 -0
- package/dist/components/select/select-searchable-list.d.ts +22 -0
- package/dist/components/select/select-searchable-list.js +101 -0
- package/dist/components/select/select-tags.d.ts +15 -0
- package/dist/components/select/select-tags.js +152 -0
- package/dist/components/select/select-types.d.ts +82 -0
- package/dist/components/select/select-types.js +0 -0
- package/dist/components/select/select.css +2 -1
- package/dist/components/select/select.d.ts +2 -118
- package/dist/components/select/select.js +91 -404
- package/dist/components/select/use-is-mobile.js +2 -5
- package/dist/components/sonner/sonner.js +9 -3
- package/dist/components/spinner/spinner.css +1 -1
- package/dist/components/splitter/splitter.js +181 -133
- package/dist/components/switch/switch.css +17 -8
- package/dist/components/switch/switch.d.ts +3 -2
- package/dist/components/switch/switch.js +90 -79
- package/dist/components/table/table-filter.d.ts +6 -0
- package/dist/components/table/table-filter.js +123 -0
- package/dist/components/table/table-icons.d.ts +9 -0
- package/dist/components/table/table-icons.js +157 -0
- package/dist/components/table/table-model.d.ts +11 -0
- package/dist/components/table/table-model.js +33 -0
- package/dist/components/table/table-types.d.ts +87 -0
- package/dist/components/table/table-types.js +0 -0
- package/dist/components/table/table.css +14 -15
- package/dist/components/table/table.d.ts +3 -101
- package/dist/components/table/table.js +29 -329
- package/dist/components/tabs/tabs.css +5 -2
- package/dist/components/tabs/tabs.js +71 -62
- package/dist/components/textarea/textarea.d.ts +5 -3
- package/dist/components/textarea/textarea.js +102 -85
- package/dist/docs/component-docs.d.ts +1 -0
- package/dist/docs/components/breadcrumb.doc.js +3 -1
- package/dist/docs/components/checkbox.doc.js +2 -5
- package/dist/docs/components/context-menu.doc.js +7 -2
- package/dist/docs/components/drawer.doc.js +4 -2
- package/dist/docs/components/dropdown.doc.js +7 -3
- package/dist/docs/components/form-field.doc.js +0 -1
- package/dist/docs/components/form-layout.doc.d.ts +1 -0
- package/dist/docs/components/form-layout.doc.js +3 -0
- package/dist/docs/components/form-section.doc.js +1 -1
- package/dist/docs/components/input-number.doc.js +2 -3
- package/dist/docs/components/input.doc.js +1 -2
- package/dist/docs/components/modal.doc.js +1 -1
- package/dist/docs/components/pagination.doc.js +1 -3
- package/dist/docs/components/radio.doc.js +1 -4
- package/dist/docs/components/range-picker.doc.js +2 -2
- package/dist/docs/components/select.doc.js +19 -6
- package/dist/docs/components/spinner.doc.js +4 -1
- package/dist/docs/components/splitter.doc.js +1 -1
- package/dist/docs/components/stack.doc.d.ts +1 -0
- package/dist/docs/components/stack.doc.js +3 -0
- package/dist/docs/components/switch.doc.js +1 -2
- package/dist/docs/components/table.doc.js +9 -4
- package/dist/docs/components/tabs.doc.js +2 -1
- package/dist/docs/components/tag.doc.js +1 -0
- package/dist/docs/components/tao-provider.doc.js +1 -2
- package/dist/index.d.ts +7 -9
- package/dist/index.js +4 -5
- package/dist/layouts/form-layout/form-layout.d.ts +8 -2
- package/dist/layouts/form-layout/form-layout.js +33 -9
- package/dist/layouts/stack/stack.d.ts +8 -2
- package/dist/layouts/stack/stack.js +36 -12
- package/dist/provider/tao-provider.d.ts +3 -9
- package/dist/provider/tao-provider.js +99 -33
- package/dist/theme/theme.css +24 -14
- package/dist/theme/tokens.d.ts +2 -2
- package/dist/theme/tokens.js +4 -1
- package/dist/utils/refs.d.ts +2 -0
- package/dist/utils/refs.js +7 -0
- package/llms.txt +26 -24
- package/package.json +16 -4
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { useEffect, useId, useRef, useState } from "react";
|
|
4
4
|
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
5
5
|
import { cx } from "../../utils/semantic.js";
|
|
6
6
|
import "./tabs.css";
|
|
7
7
|
function Tabs(t0) {
|
|
8
|
-
const $ = c(
|
|
8
|
+
const $ = c(62);
|
|
9
9
|
const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, classNames, styles } = t0;
|
|
10
10
|
const variant = void 0 === t1 ? "line" : t1;
|
|
11
11
|
const destroyInactiveTabPane = void 0 === t2 ? false : t2;
|
|
12
12
|
const ctx = useTaoConfig();
|
|
13
|
+
const id = useId();
|
|
13
14
|
const resolvedSize = size ?? ctx.size;
|
|
14
15
|
const isControlled = void 0 !== activeKeyProp;
|
|
15
16
|
const firstEnabledKey = items.find(_temp)?.key ?? items[0]?.key ?? "";
|
|
@@ -104,16 +105,19 @@ function Tabs(t0) {
|
|
|
104
105
|
} else t11 = $[15];
|
|
105
106
|
const t12 = styles?.nav;
|
|
106
107
|
let t13;
|
|
107
|
-
if ($[16] !== classNames?.tab || $[17] !== currentKey || $[18] !== handleSelect || $[19] !==
|
|
108
|
+
if ($[16] !== classNames?.tab || $[17] !== currentKey || $[18] !== handleSelect || $[19] !== id || $[20] !== items || $[21] !== styles?.tab) {
|
|
108
109
|
let t14;
|
|
109
|
-
if ($[
|
|
110
|
+
if ($[23] !== classNames?.tab || $[24] !== currentKey || $[25] !== handleSelect || $[26] !== id || $[27] !== styles?.tab) {
|
|
110
111
|
t14 = (item)=>{
|
|
111
112
|
const isActive = item.key === currentKey;
|
|
113
|
+
const tabId = `${id}-tab-${item.key}`;
|
|
114
|
+
const panelId = `${id}-panel-${item.key}`;
|
|
112
115
|
return /*#__PURE__*/ jsx("button", {
|
|
113
116
|
type: "button",
|
|
114
117
|
role: "tab",
|
|
118
|
+
id: tabId,
|
|
115
119
|
"aria-selected": isActive,
|
|
116
|
-
"aria-controls":
|
|
120
|
+
"aria-controls": panelId,
|
|
117
121
|
"aria-disabled": item.disabled || void 0,
|
|
118
122
|
tabIndex: isActive ? 0 : -1,
|
|
119
123
|
"data-tao-tab": "",
|
|
@@ -127,39 +131,40 @@ function Tabs(t0) {
|
|
|
127
131
|
children: item.label
|
|
128
132
|
}, item.key);
|
|
129
133
|
};
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
|
|
134
|
+
$[23] = classNames?.tab;
|
|
135
|
+
$[24] = currentKey;
|
|
136
|
+
$[25] = handleSelect;
|
|
137
|
+
$[26] = id;
|
|
138
|
+
$[27] = styles?.tab;
|
|
139
|
+
$[28] = t14;
|
|
140
|
+
} else t14 = $[28];
|
|
136
141
|
t13 = items.map(t14);
|
|
137
142
|
$[16] = classNames?.tab;
|
|
138
143
|
$[17] = currentKey;
|
|
139
144
|
$[18] = handleSelect;
|
|
140
|
-
$[19] =
|
|
141
|
-
$[20] =
|
|
142
|
-
$[21] =
|
|
143
|
-
|
|
145
|
+
$[19] = id;
|
|
146
|
+
$[20] = items;
|
|
147
|
+
$[21] = styles?.tab;
|
|
148
|
+
$[22] = t13;
|
|
149
|
+
} else t13 = $[22];
|
|
144
150
|
let t14;
|
|
145
|
-
if ($[
|
|
151
|
+
if ($[29] !== classNames?.indicator || $[30] !== inkStyle || $[31] !== styles?.indicator || $[32] !== variant) {
|
|
146
152
|
t14 = "line" === variant && inkStyle && /*#__PURE__*/ jsx("span", {
|
|
147
153
|
"data-tao-tabs-ink": "",
|
|
148
154
|
style: {
|
|
149
|
-
|
|
150
|
-
width: inkStyle.width,
|
|
155
|
+
transform: `translateX(${inkStyle.left}px) scaleX(${inkStyle.width})`,
|
|
151
156
|
...styles?.indicator
|
|
152
157
|
},
|
|
153
158
|
className: cx(classNames?.indicator)
|
|
154
159
|
});
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
$[
|
|
160
|
-
} else t14 = $[
|
|
160
|
+
$[29] = classNames?.indicator;
|
|
161
|
+
$[30] = inkStyle;
|
|
162
|
+
$[31] = styles?.indicator;
|
|
163
|
+
$[32] = variant;
|
|
164
|
+
$[33] = t14;
|
|
165
|
+
} else t14 = $[33];
|
|
161
166
|
let t15;
|
|
162
|
-
if ($[
|
|
167
|
+
if ($[34] !== handleKeyDown || $[35] !== t13 || $[36] !== t14) {
|
|
163
168
|
t15 = /*#__PURE__*/ jsxs("div", {
|
|
164
169
|
ref: tablistRef,
|
|
165
170
|
role: "tablist",
|
|
@@ -170,35 +175,37 @@ function Tabs(t0) {
|
|
|
170
175
|
t14
|
|
171
176
|
]
|
|
172
177
|
});
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
} else t15 = $[
|
|
178
|
+
$[34] = handleKeyDown;
|
|
179
|
+
$[35] = t13;
|
|
180
|
+
$[36] = t14;
|
|
181
|
+
$[37] = t15;
|
|
182
|
+
} else t15 = $[37];
|
|
178
183
|
let t16;
|
|
179
|
-
if ($[
|
|
184
|
+
if ($[38] !== t11 || $[39] !== t12 || $[40] !== t15) {
|
|
180
185
|
t16 = /*#__PURE__*/ jsx("div", {
|
|
181
186
|
"data-tao-tabs-nav": "",
|
|
182
187
|
className: t11,
|
|
183
188
|
style: t12,
|
|
184
189
|
children: t15
|
|
185
190
|
});
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
} else t16 = $[
|
|
191
|
+
$[38] = t11;
|
|
192
|
+
$[39] = t12;
|
|
193
|
+
$[40] = t15;
|
|
194
|
+
$[41] = t16;
|
|
195
|
+
} else t16 = $[41];
|
|
191
196
|
let t17;
|
|
192
|
-
if ($[
|
|
197
|
+
if ($[42] !== classNames?.panel || $[43] !== currentKey || $[44] !== destroyInactiveTabPane || $[45] !== id || $[46] !== items || $[47] !== styles?.panel) {
|
|
193
198
|
let t18;
|
|
194
|
-
if ($[
|
|
199
|
+
if ($[49] !== classNames?.panel || $[50] !== currentKey || $[51] !== destroyInactiveTabPane || $[52] !== id || $[53] !== styles?.panel) {
|
|
195
200
|
t18 = (item_0)=>{
|
|
196
201
|
const isActive_0 = item_0.key === currentKey;
|
|
202
|
+
const tabId_0 = `${id}-tab-${item_0.key}`;
|
|
203
|
+
const panelId_0 = `${id}-panel-${item_0.key}`;
|
|
197
204
|
if (destroyInactiveTabPane && !isActive_0) return null;
|
|
198
205
|
return /*#__PURE__*/ jsx("div", {
|
|
199
206
|
role: "tabpanel",
|
|
200
|
-
id:
|
|
201
|
-
"aria-labelledby":
|
|
207
|
+
id: panelId_0,
|
|
208
|
+
"aria-labelledby": tabId_0,
|
|
202
209
|
hidden: !isActive_0,
|
|
203
210
|
"data-tao-tabs-panel": "",
|
|
204
211
|
"data-tao-active": isActive_0 || void 0,
|
|
@@ -207,22 +214,24 @@ function Tabs(t0) {
|
|
|
207
214
|
children: item_0.children
|
|
208
215
|
}, item_0.key);
|
|
209
216
|
};
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
|
|
217
|
+
$[49] = classNames?.panel;
|
|
218
|
+
$[50] = currentKey;
|
|
219
|
+
$[51] = destroyInactiveTabPane;
|
|
220
|
+
$[52] = id;
|
|
221
|
+
$[53] = styles?.panel;
|
|
222
|
+
$[54] = t18;
|
|
223
|
+
} else t18 = $[54];
|
|
216
224
|
t17 = items.map(t18);
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
|
|
225
|
+
$[42] = classNames?.panel;
|
|
226
|
+
$[43] = currentKey;
|
|
227
|
+
$[44] = destroyInactiveTabPane;
|
|
228
|
+
$[45] = id;
|
|
229
|
+
$[46] = items;
|
|
230
|
+
$[47] = styles?.panel;
|
|
231
|
+
$[48] = t17;
|
|
232
|
+
} else t17 = $[48];
|
|
224
233
|
let t18;
|
|
225
|
-
if ($[
|
|
234
|
+
if ($[55] !== resolvedSize || $[56] !== t16 || $[57] !== t17 || $[58] !== t8 || $[59] !== t9 || $[60] !== variant) {
|
|
226
235
|
t18 = /*#__PURE__*/ jsxs("div", {
|
|
227
236
|
"data-tao-tabs": "",
|
|
228
237
|
"data-tao-variant": variant,
|
|
@@ -234,14 +243,14 @@ function Tabs(t0) {
|
|
|
234
243
|
t17
|
|
235
244
|
]
|
|
236
245
|
});
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
} else t18 = $[
|
|
246
|
+
$[55] = resolvedSize;
|
|
247
|
+
$[56] = t16;
|
|
248
|
+
$[57] = t17;
|
|
249
|
+
$[58] = t8;
|
|
250
|
+
$[59] = t9;
|
|
251
|
+
$[60] = variant;
|
|
252
|
+
$[61] = t18;
|
|
253
|
+
} else t18 = $[61];
|
|
245
254
|
return t18;
|
|
246
255
|
}
|
|
247
256
|
function _temp2(t_0) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TextareaHTMLAttributes } from 'react';
|
|
2
|
-
import { type TaoSize, type TaoVariant } from '../../provider/tao-provider';
|
|
1
|
+
import { type Ref, type TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { type TaoSize, type TaoStatus, type TaoVariant } from '../../provider/tao-provider';
|
|
3
3
|
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic';
|
|
4
4
|
import './textarea.css';
|
|
5
5
|
export type TextareaSemanticPart = 'root' | 'textarea';
|
|
@@ -11,9 +11,11 @@ export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
11
11
|
size?: TaoSize;
|
|
12
12
|
variant?: TaoVariant;
|
|
13
13
|
error?: boolean;
|
|
14
|
+
status?: TaoStatus;
|
|
15
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
14
16
|
/** Auto-grow height to fit content. `true` grows freely; pass min/max rows to clamp. */
|
|
15
17
|
autoSize?: boolean | AutoSizeOptions;
|
|
16
18
|
classNames?: SemanticClassNames<TextareaSemanticPart>;
|
|
17
19
|
styles?: SemanticStyles<TextareaSemanticPart>;
|
|
18
20
|
}
|
|
19
|
-
export declare function Textarea({ size, variant, error, disabled, autoSize, className, style, classNames, styles, onChange, ...rest }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function Textarea({ size, variant, error, status, disabled, autoSize, className, style, classNames, styles, onChange, ref, ...rest }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,23 +2,26 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useLayoutEffect, useRef } from "react";
|
|
4
4
|
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
5
|
+
import { mergeRefs } from "../../utils/refs.js";
|
|
5
6
|
import { cx } from "../../utils/semantic.js";
|
|
6
7
|
import "./textarea.css";
|
|
7
8
|
function Textarea(t0) {
|
|
8
|
-
const $ = c(
|
|
9
|
+
const $ = c(52);
|
|
9
10
|
let autoSize;
|
|
10
11
|
let className;
|
|
11
12
|
let classNames;
|
|
12
13
|
let disabled;
|
|
13
14
|
let error;
|
|
14
15
|
let onChange;
|
|
16
|
+
let ref;
|
|
15
17
|
let rest;
|
|
16
18
|
let size;
|
|
19
|
+
let status;
|
|
17
20
|
let style;
|
|
18
21
|
let styles;
|
|
19
22
|
let variant;
|
|
20
23
|
if ($[0] !== t0) {
|
|
21
|
-
({ size, variant, error, disabled, autoSize, className, style, classNames, styles, onChange, ...rest } = t0);
|
|
24
|
+
({ size, variant, error, status, disabled, autoSize, className, style, classNames, styles, onChange, ref, ...rest } = t0);
|
|
22
25
|
$[0] = t0;
|
|
23
26
|
$[1] = autoSize;
|
|
24
27
|
$[2] = className;
|
|
@@ -26,11 +29,13 @@ function Textarea(t0) {
|
|
|
26
29
|
$[4] = disabled;
|
|
27
30
|
$[5] = error;
|
|
28
31
|
$[6] = onChange;
|
|
29
|
-
$[7] =
|
|
30
|
-
$[8] =
|
|
31
|
-
$[9] =
|
|
32
|
-
$[10] =
|
|
33
|
-
$[11] =
|
|
32
|
+
$[7] = ref;
|
|
33
|
+
$[8] = rest;
|
|
34
|
+
$[9] = size;
|
|
35
|
+
$[10] = status;
|
|
36
|
+
$[11] = style;
|
|
37
|
+
$[12] = styles;
|
|
38
|
+
$[13] = variant;
|
|
34
39
|
} else {
|
|
35
40
|
autoSize = $[1];
|
|
36
41
|
className = $[2];
|
|
@@ -38,21 +43,23 @@ function Textarea(t0) {
|
|
|
38
43
|
disabled = $[4];
|
|
39
44
|
error = $[5];
|
|
40
45
|
onChange = $[6];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
ref = $[7];
|
|
47
|
+
rest = $[8];
|
|
48
|
+
size = $[9];
|
|
49
|
+
status = $[10];
|
|
50
|
+
style = $[11];
|
|
51
|
+
styles = $[12];
|
|
52
|
+
variant = $[13];
|
|
46
53
|
}
|
|
47
54
|
const ctx = useTaoConfig();
|
|
48
55
|
const resolvedSize = size ?? ctx.size;
|
|
49
56
|
const resolvedVariant = variant ?? ctx.variant;
|
|
50
57
|
const resolvedDisabled = disabled ?? ctx.disabled;
|
|
51
|
-
const
|
|
58
|
+
const innerRef = useRef(null);
|
|
52
59
|
let t1;
|
|
53
|
-
if ($[
|
|
60
|
+
if ($[14] !== autoSize) {
|
|
54
61
|
t1 = ()=>{
|
|
55
|
-
const el =
|
|
62
|
+
const el = innerRef.current;
|
|
56
63
|
if (!el || !autoSize) return;
|
|
57
64
|
el.style.height = "auto";
|
|
58
65
|
const cs = getComputedStyle(el);
|
|
@@ -72,91 +79,99 @@ function Textarea(t0) {
|
|
|
72
79
|
el.style.height = `${height}px`;
|
|
73
80
|
el.style.overflowY = overflowY;
|
|
74
81
|
};
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
} else t1 = $[
|
|
82
|
+
$[14] = autoSize;
|
|
83
|
+
$[15] = t1;
|
|
84
|
+
} else t1 = $[15];
|
|
78
85
|
const resize = t1;
|
|
79
86
|
let t2;
|
|
80
|
-
if ($[
|
|
87
|
+
if ($[16] !== resize) {
|
|
81
88
|
t2 = ()=>{
|
|
82
89
|
resize();
|
|
83
90
|
};
|
|
84
|
-
$[
|
|
85
|
-
$[
|
|
86
|
-
} else t2 = $[
|
|
91
|
+
$[16] = resize;
|
|
92
|
+
$[17] = t2;
|
|
93
|
+
} else t2 = $[17];
|
|
87
94
|
let t3;
|
|
88
|
-
if ($[
|
|
95
|
+
if ($[18] !== resize || $[19] !== rest.defaultValue || $[20] !== rest.value) {
|
|
89
96
|
t3 = [
|
|
90
97
|
resize,
|
|
91
98
|
rest.value,
|
|
92
99
|
rest.defaultValue
|
|
93
100
|
];
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
} else t3 = $[
|
|
101
|
+
$[18] = resize;
|
|
102
|
+
$[19] = rest.defaultValue;
|
|
103
|
+
$[20] = rest.value;
|
|
104
|
+
$[21] = t3;
|
|
105
|
+
} else t3 = $[21];
|
|
99
106
|
useLayoutEffect(t2, t3);
|
|
100
107
|
const t4 = classNames?.root;
|
|
101
108
|
let t5;
|
|
102
|
-
if ($[
|
|
109
|
+
if ($[22] !== className || $[23] !== t4) {
|
|
103
110
|
t5 = cx(t4, className);
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
} else t5 = $[
|
|
111
|
+
$[22] = className;
|
|
112
|
+
$[23] = t4;
|
|
113
|
+
$[24] = t5;
|
|
114
|
+
} else t5 = $[24];
|
|
108
115
|
const t6 = styles?.root;
|
|
109
116
|
let t7;
|
|
110
|
-
if ($[
|
|
117
|
+
if ($[25] !== style || $[26] !== t6) {
|
|
111
118
|
t7 = {
|
|
112
119
|
...t6,
|
|
113
120
|
...style
|
|
114
121
|
};
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
} else t7 = $[
|
|
119
|
-
const t8 = error || void 0;
|
|
120
|
-
const t9 =
|
|
121
|
-
const t10 =
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
$[25] = style;
|
|
123
|
+
$[26] = t6;
|
|
124
|
+
$[27] = t7;
|
|
125
|
+
} else t7 = $[27];
|
|
126
|
+
const t8 = "error" === status || error || void 0;
|
|
127
|
+
const t9 = "warning" === status || void 0;
|
|
128
|
+
const t10 = resolvedDisabled || void 0;
|
|
129
|
+
let t11;
|
|
130
|
+
if ($[28] !== ref) {
|
|
131
|
+
t11 = mergeRefs(innerRef, ref);
|
|
132
|
+
$[28] = ref;
|
|
133
|
+
$[29] = t11;
|
|
134
|
+
} else t11 = $[29];
|
|
135
|
+
const t12 = classNames?.textarea;
|
|
136
|
+
const t13 = styles?.textarea;
|
|
137
|
+
const t14 = "error" === status || error || void 0;
|
|
138
|
+
const t15 = autoSize ? "" : void 0;
|
|
139
|
+
let t16;
|
|
140
|
+
if ($[30] !== autoSize || $[31] !== onChange || $[32] !== resize) {
|
|
141
|
+
t16 = (e)=>{
|
|
128
142
|
if (autoSize) resize();
|
|
129
143
|
onChange?.(e);
|
|
130
144
|
};
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
} else
|
|
136
|
-
let
|
|
137
|
-
if ($[
|
|
138
|
-
|
|
145
|
+
$[30] = autoSize;
|
|
146
|
+
$[31] = onChange;
|
|
147
|
+
$[32] = resize;
|
|
148
|
+
$[33] = t16;
|
|
149
|
+
} else t16 = $[33];
|
|
150
|
+
let t17;
|
|
151
|
+
if ($[34] !== resolvedDisabled || $[35] !== rest || $[36] !== t11 || $[37] !== t12 || $[38] !== t13 || $[39] !== t14 || $[40] !== t15 || $[41] !== t16) {
|
|
152
|
+
t17 = /*#__PURE__*/ jsx("textarea", {
|
|
139
153
|
...rest,
|
|
140
|
-
ref:
|
|
141
|
-
className:
|
|
142
|
-
style:
|
|
154
|
+
ref: t11,
|
|
155
|
+
className: t12,
|
|
156
|
+
style: t13,
|
|
143
157
|
disabled: resolvedDisabled,
|
|
144
|
-
"aria-invalid":
|
|
145
|
-
"data-tao-autosize":
|
|
146
|
-
onChange:
|
|
158
|
+
"aria-invalid": t14,
|
|
159
|
+
"data-tao-autosize": t15,
|
|
160
|
+
onChange: t16
|
|
147
161
|
});
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
$[34] = resolvedDisabled;
|
|
163
|
+
$[35] = rest;
|
|
164
|
+
$[36] = t11;
|
|
165
|
+
$[37] = t12;
|
|
166
|
+
$[38] = t13;
|
|
167
|
+
$[39] = t14;
|
|
168
|
+
$[40] = t15;
|
|
169
|
+
$[41] = t16;
|
|
170
|
+
$[42] = t17;
|
|
171
|
+
} else t17 = $[42];
|
|
172
|
+
let t18;
|
|
173
|
+
if ($[43] !== resolvedSize || $[44] !== resolvedVariant || $[45] !== t10 || $[46] !== t17 || $[47] !== t5 || $[48] !== t7 || $[49] !== t8 || $[50] !== t9) {
|
|
174
|
+
t18 = /*#__PURE__*/ jsx("div", {
|
|
160
175
|
className: t5,
|
|
161
176
|
style: t7,
|
|
162
177
|
"data-tao-control": "",
|
|
@@ -164,18 +179,20 @@ function Textarea(t0) {
|
|
|
164
179
|
"data-tao-size": resolvedSize,
|
|
165
180
|
"data-tao-variant": resolvedVariant,
|
|
166
181
|
"data-tao-error": t8,
|
|
167
|
-
"data-
|
|
168
|
-
|
|
182
|
+
"data-tao-warning": t9,
|
|
183
|
+
"data-disabled": t10,
|
|
184
|
+
children: t17
|
|
169
185
|
});
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
|
|
179
|
-
|
|
186
|
+
$[43] = resolvedSize;
|
|
187
|
+
$[44] = resolvedVariant;
|
|
188
|
+
$[45] = t10;
|
|
189
|
+
$[46] = t17;
|
|
190
|
+
$[47] = t5;
|
|
191
|
+
$[48] = t7;
|
|
192
|
+
$[49] = t8;
|
|
193
|
+
$[50] = t9;
|
|
194
|
+
$[51] = t18;
|
|
195
|
+
} else t18 = $[51];
|
|
196
|
+
return t18;
|
|
180
197
|
}
|
|
181
198
|
export { Textarea };
|
|
@@ -13,10 +13,15 @@ const contextMenuDoc = {
|
|
|
13
13
|
],
|
|
14
14
|
semanticParts: [
|
|
15
15
|
'root',
|
|
16
|
-
'trigger',
|
|
17
16
|
'content',
|
|
18
17
|
'item',
|
|
19
|
-
'
|
|
18
|
+
'itemIcon',
|
|
19
|
+
'itemLabel',
|
|
20
|
+
'itemExtra',
|
|
21
|
+
'divider',
|
|
22
|
+
'groupLabel',
|
|
23
|
+
'subTrigger',
|
|
24
|
+
'subContent'
|
|
20
25
|
],
|
|
21
26
|
keywords: [
|
|
22
27
|
'menu',
|
|
@@ -13,11 +13,15 @@ const dropdownDoc = {
|
|
|
13
13
|
],
|
|
14
14
|
semanticParts: [
|
|
15
15
|
'root',
|
|
16
|
-
'trigger',
|
|
17
16
|
'content',
|
|
18
17
|
'item',
|
|
19
|
-
'
|
|
20
|
-
'
|
|
18
|
+
'itemIcon',
|
|
19
|
+
'itemLabel',
|
|
20
|
+
'itemExtra',
|
|
21
|
+
'divider',
|
|
22
|
+
'groupLabel',
|
|
23
|
+
'subTrigger',
|
|
24
|
+
'subContent'
|
|
21
25
|
],
|
|
22
26
|
keywords: [
|
|
23
27
|
'menu',
|