@rockshin/tao-ui 0.0.20 → 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.
Files changed (109) hide show
  1. package/README.md +8 -1
  2. package/component-manifest.json +77 -48
  3. package/dist/components/button/button.css +11 -11
  4. package/dist/components/button/button.d.ts +3 -2
  5. package/dist/components/button/button.js +55 -47
  6. package/dist/components/checkbox/checkbox.d.ts +3 -2
  7. package/dist/components/checkbox/checkbox.js +91 -81
  8. package/dist/components/date-picker/calendar/calendar-grid.d.ts +7 -1
  9. package/dist/components/date-picker/calendar/calendar-grid.js +158 -160
  10. package/dist/components/date-picker/calendar/time-panel.js +64 -70
  11. package/dist/components/date-picker/date-picker.css +11 -5
  12. package/dist/components/date-picker/date-picker.d.ts +13 -5
  13. package/dist/components/date-picker/date-picker.js +389 -718
  14. package/dist/components/date-picker/range-picker.d.ts +12 -5
  15. package/dist/components/date-picker/range-picker.js +68 -12
  16. package/dist/components/date-picker/types.d.ts +5 -0
  17. package/dist/components/drawer/drawer.css +3 -1
  18. package/dist/components/drawer/drawer.js +119 -133
  19. package/dist/components/form-field/form-field.d.ts +1 -1
  20. package/dist/components/form-field/form-field.js +106 -63
  21. package/dist/components/input/input.css +30 -9
  22. package/dist/components/input/input.d.ts +2 -1
  23. package/dist/components/input/input.js +76 -70
  24. package/dist/components/input-number/input-number.d.ts +5 -3
  25. package/dist/components/input-number/input-number.js +63 -47
  26. package/dist/components/modal/modal.css +2 -1
  27. package/dist/components/modal/modal.js +116 -130
  28. package/dist/components/radio/radio.d.ts +3 -2
  29. package/dist/components/radio/radio.js +43 -39
  30. package/dist/components/select/mobile-select.d.ts +1 -1
  31. package/dist/components/select/mobile-select.js +1 -1
  32. package/dist/components/select/select-icons.d.ts +7 -0
  33. package/dist/components/select/select-icons.js +141 -0
  34. package/dist/components/select/select-model.d.ts +4 -0
  35. package/dist/components/select/select-model.js +22 -0
  36. package/dist/components/select/select-searchable-list.d.ts +22 -0
  37. package/dist/components/select/select-searchable-list.js +101 -0
  38. package/dist/components/select/select-tags.d.ts +15 -0
  39. package/dist/components/select/select-tags.js +152 -0
  40. package/dist/components/select/select-types.d.ts +82 -0
  41. package/dist/components/select/select-types.js +0 -0
  42. package/dist/components/select/select.css +2 -1
  43. package/dist/components/select/select.d.ts +2 -118
  44. package/dist/components/select/select.js +91 -404
  45. package/dist/components/select/use-is-mobile.js +2 -5
  46. package/dist/components/sonner/sonner.js +9 -3
  47. package/dist/components/spinner/spinner.css +1 -1
  48. package/dist/components/splitter/splitter.js +181 -133
  49. package/dist/components/switch/switch.css +17 -8
  50. package/dist/components/switch/switch.d.ts +3 -2
  51. package/dist/components/switch/switch.js +90 -79
  52. package/dist/components/table/table-filter.d.ts +6 -0
  53. package/dist/components/table/table-filter.js +123 -0
  54. package/dist/components/table/table-icons.d.ts +9 -0
  55. package/dist/components/table/table-icons.js +157 -0
  56. package/dist/components/table/table-model.d.ts +11 -0
  57. package/dist/components/table/table-model.js +33 -0
  58. package/dist/components/table/table-types.d.ts +87 -0
  59. package/dist/components/table/table-types.js +0 -0
  60. package/dist/components/table/table.css +14 -15
  61. package/dist/components/table/table.d.ts +3 -101
  62. package/dist/components/table/table.js +29 -329
  63. package/dist/components/tabs/tabs.css +5 -2
  64. package/dist/components/tabs/tabs.js +71 -62
  65. package/dist/components/textarea/textarea.d.ts +5 -3
  66. package/dist/components/textarea/textarea.js +102 -85
  67. package/dist/docs/component-docs.d.ts +1 -0
  68. package/dist/docs/components/breadcrumb.doc.js +3 -1
  69. package/dist/docs/components/checkbox.doc.js +2 -5
  70. package/dist/docs/components/context-menu.doc.js +7 -2
  71. package/dist/docs/components/drawer.doc.js +4 -2
  72. package/dist/docs/components/dropdown.doc.js +7 -3
  73. package/dist/docs/components/form-field.doc.js +0 -1
  74. package/dist/docs/components/form-layout.doc.d.ts +1 -0
  75. package/dist/docs/components/form-layout.doc.js +3 -0
  76. package/dist/docs/components/form-section.doc.js +1 -1
  77. package/dist/docs/components/input-number.doc.js +2 -3
  78. package/dist/docs/components/input.doc.js +1 -2
  79. package/dist/docs/components/modal.doc.js +1 -1
  80. package/dist/docs/components/pagination.doc.js +1 -3
  81. package/dist/docs/components/radio.doc.js +1 -4
  82. package/dist/docs/components/range-picker.doc.js +2 -2
  83. package/dist/docs/components/select.doc.js +19 -6
  84. package/dist/docs/components/spinner.doc.js +4 -1
  85. package/dist/docs/components/splitter.doc.js +1 -1
  86. package/dist/docs/components/stack.doc.d.ts +1 -0
  87. package/dist/docs/components/stack.doc.js +3 -0
  88. package/dist/docs/components/switch.doc.js +1 -2
  89. package/dist/docs/components/table.doc.js +9 -4
  90. package/dist/docs/components/tabs.doc.js +2 -1
  91. package/dist/docs/components/tag.doc.js +1 -0
  92. package/dist/docs/components/tao-provider.doc.js +1 -2
  93. package/dist/index.d.ts +7 -9
  94. package/dist/index.js +4 -5
  95. package/dist/layouts/form-layout/form-layout.d.ts +8 -2
  96. package/dist/layouts/form-layout/form-layout.js +33 -9
  97. package/dist/layouts/stack/stack.d.ts +8 -2
  98. package/dist/layouts/stack/stack.js +36 -12
  99. package/dist/provider/tao-provider.d.ts +3 -9
  100. package/dist/provider/tao-provider.js +99 -33
  101. package/dist/theme/theme.css +24 -14
  102. package/dist/theme/tokens.d.ts +2 -2
  103. package/dist/theme/tokens.js +4 -1
  104. package/dist/utils/portal.d.ts +4 -0
  105. package/dist/utils/portal.js +4 -0
  106. package/dist/utils/refs.d.ts +2 -0
  107. package/dist/utils/refs.js +7 -0
  108. package/llms.txt +26 -24
  109. 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(58);
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] !== items || $[20] !== styles?.tab) {
108
+ if ($[16] !== classNames?.tab || $[17] !== currentKey || $[18] !== handleSelect || $[19] !== id || $[20] !== items || $[21] !== styles?.tab) {
108
109
  let t14;
109
- if ($[22] !== classNames?.tab || $[23] !== currentKey || $[24] !== handleSelect || $[25] !== styles?.tab) {
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": `tabpanel-${item.key}`,
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
- $[22] = classNames?.tab;
131
- $[23] = currentKey;
132
- $[24] = handleSelect;
133
- $[25] = styles?.tab;
134
- $[26] = t14;
135
- } else t14 = $[26];
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] = items;
141
- $[20] = styles?.tab;
142
- $[21] = t13;
143
- } else t13 = $[21];
145
+ $[19] = id;
146
+ $[20] = items;
147
+ $[21] = styles?.tab;
148
+ $[22] = t13;
149
+ } else t13 = $[22];
144
150
  let t14;
145
- if ($[27] !== classNames?.indicator || $[28] !== inkStyle || $[29] !== styles?.indicator || $[30] !== variant) {
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
- left: inkStyle.left,
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
- $[27] = classNames?.indicator;
156
- $[28] = inkStyle;
157
- $[29] = styles?.indicator;
158
- $[30] = variant;
159
- $[31] = t14;
160
- } else t14 = $[31];
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 ($[32] !== handleKeyDown || $[33] !== t13 || $[34] !== t14) {
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
- $[32] = handleKeyDown;
174
- $[33] = t13;
175
- $[34] = t14;
176
- $[35] = t15;
177
- } else t15 = $[35];
178
+ $[34] = handleKeyDown;
179
+ $[35] = t13;
180
+ $[36] = t14;
181
+ $[37] = t15;
182
+ } else t15 = $[37];
178
183
  let t16;
179
- if ($[36] !== t11 || $[37] !== t12 || $[38] !== t15) {
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
- $[36] = t11;
187
- $[37] = t12;
188
- $[38] = t15;
189
- $[39] = t16;
190
- } else t16 = $[39];
191
+ $[38] = t11;
192
+ $[39] = t12;
193
+ $[40] = t15;
194
+ $[41] = t16;
195
+ } else t16 = $[41];
191
196
  let t17;
192
- if ($[40] !== classNames?.panel || $[41] !== currentKey || $[42] !== destroyInactiveTabPane || $[43] !== items || $[44] !== styles?.panel) {
197
+ if ($[42] !== classNames?.panel || $[43] !== currentKey || $[44] !== destroyInactiveTabPane || $[45] !== id || $[46] !== items || $[47] !== styles?.panel) {
193
198
  let t18;
194
- if ($[46] !== classNames?.panel || $[47] !== currentKey || $[48] !== destroyInactiveTabPane || $[49] !== styles?.panel) {
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: `tabpanel-${item_0.key}`,
201
- "aria-labelledby": item_0.key,
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
- $[46] = classNames?.panel;
211
- $[47] = currentKey;
212
- $[48] = destroyInactiveTabPane;
213
- $[49] = styles?.panel;
214
- $[50] = t18;
215
- } else t18 = $[50];
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
- $[40] = classNames?.panel;
218
- $[41] = currentKey;
219
- $[42] = destroyInactiveTabPane;
220
- $[43] = items;
221
- $[44] = styles?.panel;
222
- $[45] = t17;
223
- } else t17 = $[45];
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 ($[51] !== resolvedSize || $[52] !== t16 || $[53] !== t17 || $[54] !== t8 || $[55] !== t9 || $[56] !== variant) {
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
- $[51] = resolvedSize;
238
- $[52] = t16;
239
- $[53] = t17;
240
- $[54] = t8;
241
- $[55] = t9;
242
- $[56] = variant;
243
- $[57] = t18;
244
- } else t18 = $[57];
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(46);
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] = rest;
30
- $[8] = size;
31
- $[9] = style;
32
- $[10] = styles;
33
- $[11] = variant;
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
- rest = $[7];
42
- size = $[8];
43
- style = $[9];
44
- styles = $[10];
45
- variant = $[11];
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 ref = useRef(null);
58
+ const innerRef = useRef(null);
52
59
  let t1;
53
- if ($[12] !== autoSize) {
60
+ if ($[14] !== autoSize) {
54
61
  t1 = ()=>{
55
- const el = ref.current;
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
- $[12] = autoSize;
76
- $[13] = t1;
77
- } else t1 = $[13];
82
+ $[14] = autoSize;
83
+ $[15] = t1;
84
+ } else t1 = $[15];
78
85
  const resize = t1;
79
86
  let t2;
80
- if ($[14] !== resize) {
87
+ if ($[16] !== resize) {
81
88
  t2 = ()=>{
82
89
  resize();
83
90
  };
84
- $[14] = resize;
85
- $[15] = t2;
86
- } else t2 = $[15];
91
+ $[16] = resize;
92
+ $[17] = t2;
93
+ } else t2 = $[17];
87
94
  let t3;
88
- if ($[16] !== resize || $[17] !== rest.defaultValue || $[18] !== rest.value) {
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
- $[16] = resize;
95
- $[17] = rest.defaultValue;
96
- $[18] = rest.value;
97
- $[19] = t3;
98
- } else t3 = $[19];
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 ($[20] !== className || $[21] !== t4) {
109
+ if ($[22] !== className || $[23] !== t4) {
103
110
  t5 = cx(t4, className);
104
- $[20] = className;
105
- $[21] = t4;
106
- $[22] = t5;
107
- } else t5 = $[22];
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 ($[23] !== style || $[24] !== t6) {
117
+ if ($[25] !== style || $[26] !== t6) {
111
118
  t7 = {
112
119
  ...t6,
113
120
  ...style
114
121
  };
115
- $[23] = style;
116
- $[24] = t6;
117
- $[25] = t7;
118
- } else t7 = $[25];
119
- const t8 = error || void 0;
120
- const t9 = resolvedDisabled || void 0;
121
- const t10 = classNames?.textarea;
122
- const t11 = styles?.textarea;
123
- const t12 = error || void 0;
124
- const t13 = autoSize ? "" : void 0;
125
- let t14;
126
- if ($[26] !== autoSize || $[27] !== onChange || $[28] !== resize) {
127
- t14 = (e)=>{
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
- $[26] = autoSize;
132
- $[27] = onChange;
133
- $[28] = resize;
134
- $[29] = t14;
135
- } else t14 = $[29];
136
- let t15;
137
- if ($[30] !== resolvedDisabled || $[31] !== rest || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14) {
138
- t15 = /*#__PURE__*/ jsx("textarea", {
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: ref,
141
- className: t10,
142
- style: t11,
154
+ ref: t11,
155
+ className: t12,
156
+ style: t13,
143
157
  disabled: resolvedDisabled,
144
- "aria-invalid": t12,
145
- "data-tao-autosize": t13,
146
- onChange: t14
158
+ "aria-invalid": t14,
159
+ "data-tao-autosize": t15,
160
+ onChange: t16
147
161
  });
148
- $[30] = resolvedDisabled;
149
- $[31] = rest;
150
- $[32] = t10;
151
- $[33] = t11;
152
- $[34] = t12;
153
- $[35] = t13;
154
- $[36] = t14;
155
- $[37] = t15;
156
- } else t15 = $[37];
157
- let t16;
158
- if ($[38] !== resolvedSize || $[39] !== resolvedVariant || $[40] !== t15 || $[41] !== t5 || $[42] !== t7 || $[43] !== t8 || $[44] !== t9) {
159
- t16 = /*#__PURE__*/ jsx("div", {
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-disabled": t9,
168
- children: t15
182
+ "data-tao-warning": t9,
183
+ "data-disabled": t10,
184
+ children: t17
169
185
  });
170
- $[38] = resolvedSize;
171
- $[39] = resolvedVariant;
172
- $[40] = t15;
173
- $[41] = t5;
174
- $[42] = t7;
175
- $[43] = t8;
176
- $[44] = t9;
177
- $[45] = t16;
178
- } else t16 = $[45];
179
- return t16;
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 };
@@ -69,6 +69,7 @@ export declare const componentDocs: ({
69
69
  source: string;
70
70
  story: string;
71
71
  tests: string[];
72
+ semanticParts: string[];
72
73
  keywords: string[];
73
74
  related: string[];
74
75
  usage: {
@@ -16,7 +16,9 @@ const breadcrumbDoc = {
16
16
  'list',
17
17
  'item',
18
18
  'link',
19
- 'separator'
19
+ 'page',
20
+ 'separator',
21
+ 'ellipsis'
20
22
  ],
21
23
  keywords: [
22
24
  'navigation',
@@ -14,11 +14,8 @@ const checkboxDoc = {
14
14
  ],
15
15
  semanticParts: [
16
16
  'root',
17
- 'input',
18
- 'box',
19
- 'label',
20
- 'group',
21
- 'option'
17
+ 'indicator',
18
+ 'label'
22
19
  ],
23
20
  keywords: [
24
21
  'checkbox',
@@ -13,10 +13,15 @@ const contextMenuDoc = {
13
13
  ],
14
14
  semanticParts: [
15
15
  'root',
16
- 'trigger',
17
16
  'content',
18
17
  'item',
19
- 'separator'
18
+ 'itemIcon',
19
+ 'itemLabel',
20
+ 'itemExtra',
21
+ 'divider',
22
+ 'groupLabel',
23
+ 'subTrigger',
24
+ 'subContent'
20
25
  ],
21
26
  keywords: [
22
27
  'menu',
@@ -14,11 +14,13 @@ const drawerDoc = {
14
14
  semanticParts: [
15
15
  'root',
16
16
  'overlay',
17
- 'content',
18
17
  'header',
18
+ 'title',
19
+ 'extra',
19
20
  'body',
20
21
  'footer',
21
- 'close'
22
+ 'close',
23
+ 'dragger'
22
24
  ],
23
25
  keywords: [
24
26
  'panel',
@@ -13,11 +13,15 @@ const dropdownDoc = {
13
13
  ],
14
14
  semanticParts: [
15
15
  'root',
16
- 'trigger',
17
16
  'content',
18
17
  'item',
19
- 'group',
20
- 'divider'
18
+ 'itemIcon',
19
+ 'itemLabel',
20
+ 'itemExtra',
21
+ 'divider',
22
+ 'groupLabel',
23
+ 'subTrigger',
24
+ 'subContent'
21
25
  ],
22
26
  keywords: [
23
27
  'menu',
@@ -14,7 +14,6 @@ const formFieldDoc = {
14
14
  semanticParts: [
15
15
  'root',
16
16
  'label',
17
- 'control',
18
17
  "description",
19
18
  'error'
20
19
  ],
@@ -7,6 +7,7 @@ export declare const formLayoutDoc: {
7
7
  source: string;
8
8
  story: string;
9
9
  tests: string[];
10
+ semanticParts: string[];
10
11
  keywords: string[];
11
12
  related: string[];
12
13
  usage: {
@@ -11,6 +11,9 @@ const formLayoutDoc = {
11
11
  tests: [
12
12
  'tests/layouts/form-layout/form-layout.test.tsx'
13
13
  ],
14
+ semanticParts: [
15
+ 'root'
16
+ ],
14
17
  keywords: [
15
18
  'form',
16
19
  'layout',
@@ -16,7 +16,7 @@ const formSectionDoc = {
16
16
  'header',
17
17
  'title',
18
18
  "description",
19
- 'content'
19
+ 'body'
20
20
  ],
21
21
  keywords: [
22
22
  'form',
@@ -14,9 +14,8 @@ const inputNumberDoc = {
14
14
  semanticParts: [
15
15
  'root',
16
16
  'input',
17
- 'controls',
18
- 'increment',
19
- 'decrement'
17
+ 'prefix',
18
+ 'suffix'
20
19
  ],
21
20
  keywords: [
22
21
  'number',
@@ -15,8 +15,7 @@ const inputDoc = {
15
15
  'root',
16
16
  'input',
17
17
  'prefix',
18
- 'suffix',
19
- 'clear'
18
+ 'suffix'
20
19
  ],
21
20
  keywords: [
22
21
  'text field',