@rockshin/tao-ui 0.0.38 → 0.0.40

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 (148) hide show
  1. package/README.md +12 -0
  2. package/dist/components/alert/alert.d.ts +2 -2
  3. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
  4. package/dist/components/button/button.d.ts +2 -2
  5. package/dist/components/checkbox/checkbox.css +4 -0
  6. package/dist/components/checkbox/checkbox.d.ts +8 -6
  7. package/dist/components/checkbox/checkbox.js +184 -111
  8. package/dist/components/collapsible/collapsible.d.ts +6 -6
  9. package/dist/components/context-menu/context-menu.d.ts +3 -3
  10. package/dist/components/date-picker/calendar/calendar-grid.d.ts +1 -1
  11. package/dist/components/date-picker/calendar/calendar-grid.js +47 -35
  12. package/dist/components/date-picker/calendar/calendar-header.d.ts +2 -2
  13. package/dist/components/date-picker/calendar/month-grid.d.ts +1 -1
  14. package/dist/components/date-picker/calendar/month-grid.js +1 -0
  15. package/dist/components/date-picker/calendar/time-panel.d.ts +2 -2
  16. package/dist/components/date-picker/calendar/time-panel.js +10 -7
  17. package/dist/components/date-picker/calendar/year-grid.d.ts +1 -1
  18. package/dist/components/date-picker/calendar/year-grid.js +1 -0
  19. package/dist/components/date-picker/date-picker.css +4 -0
  20. package/dist/components/date-picker/date-picker.d.ts +7 -6
  21. package/dist/components/date-picker/date-picker.js +52 -5
  22. package/dist/components/date-picker/presets.d.ts +1 -1
  23. package/dist/components/date-picker/range-picker.d.ts +6 -5
  24. package/dist/components/date-picker/range-picker.js +124 -28
  25. package/dist/components/date-picker/types.d.ts +1 -1
  26. package/dist/components/drawer/drawer.d.ts +4 -4
  27. package/dist/components/drawer/drawer.js +125 -111
  28. package/dist/components/dropdown/dropdown.d.ts +8 -8
  29. package/dist/components/form/form-context.d.ts +1 -1
  30. package/dist/components/form/form-item.d.ts +3 -3
  31. package/dist/components/form/form.d.ts +3 -3
  32. package/dist/components/form/index.d.ts +2 -2
  33. package/dist/components/form-actions/form-actions.d.ts +2 -2
  34. package/dist/components/form-field/form-field-view.d.ts +2 -2
  35. package/dist/components/form-field/form-field.d.ts +2 -2
  36. package/dist/components/form-section/form-section.d.ts +2 -2
  37. package/dist/components/input/input.d.ts +2 -2
  38. package/dist/components/input/input.js +1 -1
  39. package/dist/components/input-number/input-number.d.ts +6 -7
  40. package/dist/components/input-number/input-number.js +91 -65
  41. package/dist/components/menu/menu-render.d.ts +1 -1
  42. package/dist/components/modal/confirm-dialog.d.ts +4 -4
  43. package/dist/components/modal/confirm.d.ts +1 -1
  44. package/dist/components/modal/index.d.ts +8 -8
  45. package/dist/components/modal/modal.d.ts +6 -6
  46. package/dist/components/modal/modal.js +115 -101
  47. package/dist/components/modal/use-modal.d.ts +2 -2
  48. package/dist/components/pagination/pagination.d.ts +3 -3
  49. package/dist/components/popconfirm/popconfirm.d.ts +5 -5
  50. package/dist/components/popconfirm/popconfirm.js +74 -61
  51. package/dist/components/popover/popover.d.ts +4 -4
  52. package/dist/components/popover/popover.js +124 -115
  53. package/dist/components/radio/radio.d.ts +9 -6
  54. package/dist/components/radio/radio.js +210 -116
  55. package/dist/components/scroll-area/scroll-area.d.ts +2 -2
  56. package/dist/components/select/mobile-select.d.ts +3 -3
  57. package/dist/components/select/mobile-select.js +3 -1
  58. package/dist/components/select/select-icons.d.ts +5 -5
  59. package/dist/components/select/select-model.d.ts +1 -1
  60. package/dist/components/select/select-searchable-list.d.ts +2 -2
  61. package/dist/components/select/select-tags.d.ts +3 -3
  62. package/dist/components/select/select-types.d.ts +2 -2
  63. package/dist/components/select/select.css +7 -0
  64. package/dist/components/select/select.d.ts +2 -2
  65. package/dist/components/select/use-select-selection.d.ts +3 -3
  66. package/dist/components/sonner/index.d.ts +1 -1
  67. package/dist/components/sonner/sonner.d.ts +5 -4
  68. package/dist/components/spinner/spinner.d.ts +5 -5
  69. package/dist/components/spinner/spinner.js +106 -99
  70. package/dist/components/splitter/splitter.d.ts +3 -3
  71. package/dist/components/status-icon/status-icon.d.ts +1 -1
  72. package/dist/components/steps/steps-icons.d.ts +4 -4
  73. package/dist/components/steps/steps.css +1 -1
  74. package/dist/components/steps/steps.d.ts +3 -3
  75. package/dist/components/steps/use-display-steps.d.ts +1 -1
  76. package/dist/components/switch/switch.d.ts +4 -3
  77. package/dist/components/switch/switch.js +134 -86
  78. package/dist/components/table/table-filter.d.ts +2 -2
  79. package/dist/components/table/table-icons.d.ts +6 -6
  80. package/dist/components/table/table-model.d.ts +2 -2
  81. package/dist/components/table/table-summary.d.ts +5 -5
  82. package/dist/components/table/table-types.d.ts +3 -3
  83. package/dist/components/table/table.css +5 -3
  84. package/dist/components/table/table.d.ts +6 -6
  85. package/dist/components/table/use-table-data.d.ts +1 -1
  86. package/dist/components/tabs/tabs.d.ts +5 -5
  87. package/dist/components/tabs/tabs.js +72 -65
  88. package/dist/components/tag/tag.css +8 -8
  89. package/dist/components/tag/tag.d.ts +4 -4
  90. package/dist/components/tag/tag.js +40 -37
  91. package/dist/components/textarea/textarea.d.ts +2 -2
  92. package/dist/components/textarea/textarea.js +1 -1
  93. package/dist/components/tooltip/tooltip.d.ts +2 -2
  94. package/dist/docs/component-docs.d.ts +1 -1
  95. package/dist/docs/components/alert.doc.d.ts +1 -1
  96. package/dist/docs/components/button.doc.d.ts +1 -1
  97. package/dist/docs/components/popover.doc.d.ts +1 -1
  98. package/dist/docs/components/tooltip.doc.d.ts +4 -4
  99. package/dist/docs/index.d.ts +2 -2
  100. package/dist/entries/alert.d.ts +1 -1
  101. package/dist/entries/breadcrumb.d.ts +1 -1
  102. package/dist/entries/button.d.ts +1 -1
  103. package/dist/entries/checkbox.d.ts +1 -1
  104. package/dist/entries/collapsible.d.ts +1 -1
  105. package/dist/entries/context-menu.d.ts +1 -1
  106. package/dist/entries/date-picker.d.ts +1 -1
  107. package/dist/entries/drawer.d.ts +1 -1
  108. package/dist/entries/dropdown.d.ts +1 -1
  109. package/dist/entries/form-actions.d.ts +1 -1
  110. package/dist/entries/form-field.d.ts +1 -1
  111. package/dist/entries/form-layout.d.ts +1 -1
  112. package/dist/entries/form-section.d.ts +1 -1
  113. package/dist/entries/form.d.ts +1 -1
  114. package/dist/entries/input-number.d.ts +1 -1
  115. package/dist/entries/input.d.ts +1 -1
  116. package/dist/entries/modal.d.ts +1 -1
  117. package/dist/entries/number-input.d.ts +1 -1
  118. package/dist/entries/pagination.d.ts +1 -1
  119. package/dist/entries/popconfirm.d.ts +1 -1
  120. package/dist/entries/popover.d.ts +1 -1
  121. package/dist/entries/provider.d.ts +1 -1
  122. package/dist/entries/radio.d.ts +1 -1
  123. package/dist/entries/range-picker.d.ts +1 -1
  124. package/dist/entries/scroll-area.d.ts +1 -1
  125. package/dist/entries/select.d.ts +1 -1
  126. package/dist/entries/sonner.d.ts +1 -1
  127. package/dist/entries/spinner.d.ts +1 -1
  128. package/dist/entries/splitter.d.ts +1 -1
  129. package/dist/entries/stack.d.ts +1 -1
  130. package/dist/entries/steps.d.ts +1 -1
  131. package/dist/entries/switch.d.ts +1 -1
  132. package/dist/entries/table.d.ts +1 -1
  133. package/dist/entries/tabs.d.ts +1 -1
  134. package/dist/entries/tag.d.ts +1 -1
  135. package/dist/entries/textarea.d.ts +1 -1
  136. package/dist/entries/tooltip.d.ts +1 -1
  137. package/dist/index.d.ts +40 -40
  138. package/dist/layouts/form-layout/form-layout.d.ts +2 -2
  139. package/dist/layouts/stack/stack.d.ts +3 -3
  140. package/dist/number-input/format.d.ts +1 -1
  141. package/dist/number-input/index.d.ts +4 -4
  142. package/dist/number-input/number-input.d.ts +2 -2
  143. package/dist/number-input/use-number-input.d.ts +1 -1
  144. package/dist/provider/tao-provider.d.ts +3 -3
  145. package/dist/theme/control.css +2 -2
  146. package/dist/theme/theme.css +11 -11
  147. package/dist/utils/dialog-content.d.ts +1 -1
  148. package/package.json +38 -38
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, Key } from 'react';
2
- import type { SemanticClassNames, SemanticStyles } from '../../utils/semantic';
3
- import type { SortOrder, TableColumn, TableProps, TableRecord, TableSemanticClassNames, TableSemanticPart, TableSemanticStyles } from './table-types';
2
+ import type { SemanticClassNames, SemanticStyles } from '../../utils/semantic.js';
3
+ import type { SortOrder, TableColumn, TableProps, TableRecord, TableSemanticClassNames, TableSemanticPart, TableSemanticStyles } from './table-types.js';
4
4
  export declare function getRowKey<T extends TableRecord>(record: T, rowKey: keyof T | ((record: T) => Key)): Key;
5
5
  export declare function getColKey<T extends TableRecord>(col: TableColumn<T>, index: number): string;
6
6
  export declare function getCellValue<T extends TableRecord>(record: T, dataIndex?: keyof T): unknown;
@@ -28,11 +28,11 @@ export interface TableSummaryColumn {
28
28
  }
29
29
  /** Flattened columns (expand + selection + data) so cells can sync fixed state. */
30
30
  export declare const TableSummaryContext: import("react").Context<TableSummaryColumn[]>;
31
- declare function TableSummary({ children }: TableSummaryProps): import("react/jsx-runtime").JSX.Element;
31
+ declare function TableSummary({ children }: TableSummaryProps): import("react").JSX.Element;
32
32
  declare namespace TableSummary {
33
- var Row: typeof TableSummaryRow;
34
- var Cell: typeof TableSummaryCell;
33
+ export { TableSummaryRow as Row };
34
+ export { TableSummaryCell as Cell };
35
35
  }
36
- declare function TableSummaryRow({ className, style, children }: TableSummaryRowProps): import("react/jsx-runtime").JSX.Element;
37
- declare function TableSummaryCell({ index, colSpan, rowSpan, align, className, style, children, }: TableSummaryCellProps): import("react/jsx-runtime").JSX.Element;
36
+ declare function TableSummaryRow({ className, style, children }: TableSummaryRowProps): import("react").JSX.Element;
37
+ declare function TableSummaryCell({ index, colSpan, rowSpan, align, className, style, children, }: TableSummaryCellProps): import("react").JSX.Element;
38
38
  export { TableSummary };
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, HTMLAttributes, Key, ReactNode, TdHTMLAttributes, ThHTMLAttributes } from 'react';
2
- import type { TaoSize, TaoVariant } from '../../provider/tao-provider';
3
- import type { TaoBreakpoint } from '../../utils/breakpoint';
4
- import type { SemanticClassNames, SemanticStyles } from '../../utils/semantic';
2
+ import type { TaoSize, TaoVariant } from '../../provider/tao-provider.js';
3
+ import type { TaoBreakpoint } from '../../utils/breakpoint.js';
4
+ import type { SemanticClassNames, SemanticStyles } from '../../utils/semantic.js';
5
5
  export type TableRecord = object;
6
6
  export type TableSemanticPart = 'root' | 'scroll' | 'table' | 'header.wrapper' | 'header.row' | 'header.cell' | 'header.content' | 'header.title' | 'body.row' | 'body.cell' | 'selection.cell' | 'expandedRow' | 'summary' | 'empty' | 'pagination';
7
7
  export type TableVariant = TaoVariant | 'modern';
@@ -4,15 +4,17 @@
4
4
  --tao-table-cell-bg: transparent;
5
5
  --tao-table-header-bg: transparent;
6
6
  --tao-table-header-color: var(--tao-color-text-secondary);
7
- --tao-table-row-hover-bg: color-mix(in oklch,
8
- var(--tao-color-primary) 4%,
7
+ --tao-table-row-hover-bg: color-mix(in oklab,
8
+ var(--tao-color-primary) 6%,
9
9
  var(--tao-color-bg-container));
10
10
  --tao-table-row-selected-bg: var(--tao-primary-bg);
11
11
  --tao-table-row-selected-hover-bg: var(--tao-primary-bg-hover);
12
12
  --tao-table-fixed-shadow-color: color-mix(in oklch,
13
13
  var(--tao-color-text-base) 14%,
14
14
  transparent);
15
- --tao-table-border-color: var(--tao-color-border-secondary);
15
+ --tao-table-border-color: color-mix(in oklch,
16
+ var(--tao-color-text-base) 7%,
17
+ transparent);
16
18
  --tao-table-frame-radius: var(--tao-radius-md);
17
19
  --tao-table-cell-padding-block: var(--tao-padding-sm);
18
20
  --tao-table-cell-padding-inline: var(--tao-padding);
@@ -1,9 +1,9 @@
1
- import { TableSummary } from './table-summary';
2
- import type { TableProps, TableRecord } from './table-types';
1
+ import { TableSummary } from './table-summary.js';
2
+ import type { TableProps, TableRecord } from './table-types.js';
3
3
  import './table.css';
4
- export type { TableSummaryCellProps, TableSummaryProps, TableSummaryRowProps, } from './table-summary';
5
- export type { SorterResult, SortOrder, TableColumn, TableExpandable, TableFilterItem, TablePagination, TableProps, TableRowSelection, TableSemanticClassNames, TableSemanticInfo, TableSemanticPart, TableSemanticStyles, TableVariant, } from './table-types';
6
- export declare function Table<T extends TableRecord = Record<string, unknown>>({ columns: columnsProp, dataSource, rowKey, loading, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground, emptyText, bordered, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
4
+ export type { TableSummaryCellProps, TableSummaryProps, TableSummaryRowProps, } from './table-summary.js';
5
+ export type { SorterResult, SortOrder, TableColumn, TableExpandable, TableFilterItem, TablePagination, TableProps, TableRowSelection, TableSemanticClassNames, TableSemanticInfo, TableSemanticPart, TableSemanticStyles, TableVariant, } from './table-types.js';
6
+ export declare function Table<T extends TableRecord = Record<string, unknown>>({ columns: columnsProp, dataSource, rowKey, loading, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground, emptyText, bordered, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow, }: TableProps<T>): import("react").JSX.Element;
7
7
  export declare namespace Table {
8
- var Summary: typeof TableSummary;
8
+ export { TableSummary as Summary };
9
9
  }
@@ -1,4 +1,4 @@
1
- import type { SortOrder, TableProps, TableRecord } from './table-types';
1
+ import type { SortOrder, TableProps, TableRecord } from './table-types.js';
2
2
  type TableDataProps<T extends TableRecord> = Pick<TableProps<T>, 'columns' | 'dataSource' | 'pagination' | 'onChange'>;
3
3
  export declare function useTableData<T extends TableRecord>({ columns, dataSource, pagination: paginationProp, onChange, }: TableDataProps<T>): {
4
4
  rows: T[];
@@ -1,6 +1,6 @@
1
- import { type ReactNode } from 'react';
2
- import { type TaoSize } from '../../provider/tao-provider';
3
- import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic';
1
+ import { type AriaAttributes, type ReactNode } from 'react';
2
+ import { type TaoSize } from '../../provider/tao-provider.js';
3
+ import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
4
4
  import './tabs.css';
5
5
  export type TabsSemanticPart = 'root' | 'nav' | 'tab' | 'indicator' | 'panel';
6
6
  export interface TabItem {
@@ -9,7 +9,7 @@ export interface TabItem {
9
9
  children?: ReactNode;
10
10
  disabled?: boolean;
11
11
  }
12
- export interface TabsProps {
12
+ export interface TabsProps extends Pick<AriaAttributes, 'aria-label' | 'aria-labelledby'> {
13
13
  items: TabItem[];
14
14
  activeKey?: string;
15
15
  defaultActiveKey?: string;
@@ -21,4 +21,4 @@ export interface TabsProps {
21
21
  classNames?: SemanticClassNames<TabsSemanticPart>;
22
22
  styles?: SemanticStyles<TabsSemanticPart>;
23
23
  }
24
- export declare function Tabs({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant, destroyInactiveTabPane, className, classNames, styles, }: TabsProps): import("react/jsx-runtime").JSX.Element;
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;
@@ -5,8 +5,8 @@ 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(69);
9
- const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, classNames, styles } = t0;
8
+ const $ = c(73);
9
+ const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, classNames, styles, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy } = t0;
10
10
  const variant = void 0 === t1 ? "line" : t1;
11
11
  const destroyInactiveTabPane = void 0 === t2 ? false : t2;
12
12
  const ctx = useTaoConfig();
@@ -121,9 +121,9 @@ function Tabs(t0) {
121
121
  } else t12 = $[20];
122
122
  const t13 = styles?.nav;
123
123
  let t14;
124
- if ($[21] !== classNames?.tab || $[22] !== currentKey || $[23] !== focusKey || $[24] !== handleSelect || $[25] !== id || $[26] !== items || $[27] !== styles?.tab) {
124
+ if ($[21] !== classNames?.tab || $[22] !== currentKey || $[23] !== destroyInactiveTabPane || $[24] !== focusKey || $[25] !== handleSelect || $[26] !== id || $[27] !== items || $[28] !== styles?.tab) {
125
125
  let t15;
126
- if ($[29] !== classNames?.tab || $[30] !== currentKey || $[31] !== focusKey || $[32] !== handleSelect || $[33] !== id || $[34] !== styles?.tab) {
126
+ if ($[30] !== classNames?.tab || $[31] !== currentKey || $[32] !== destroyInactiveTabPane || $[33] !== focusKey || $[34] !== handleSelect || $[35] !== id || $[36] !== styles?.tab) {
127
127
  t15 = (item_4)=>{
128
128
  const isActive = item_4.key === currentKey;
129
129
  const tabId = `${id}-tab-${item_4.key}`;
@@ -133,7 +133,7 @@ function Tabs(t0) {
133
133
  role: "tab",
134
134
  id: tabId,
135
135
  "aria-selected": isActive,
136
- "aria-controls": panelId,
136
+ "aria-controls": !destroyInactiveTabPane || isActive ? panelId : void 0,
137
137
  "aria-disabled": item_4.disabled || void 0,
138
138
  tabIndex: item_4.disabled || item_4.key !== focusKey ? -1 : 0,
139
139
  "data-tao-tab": "",
@@ -147,26 +147,28 @@ function Tabs(t0) {
147
147
  children: item_4.label
148
148
  }, item_4.key);
149
149
  };
150
- $[29] = classNames?.tab;
151
- $[30] = currentKey;
152
- $[31] = focusKey;
153
- $[32] = handleSelect;
154
- $[33] = id;
155
- $[34] = styles?.tab;
156
- $[35] = t15;
157
- } else t15 = $[35];
150
+ $[30] = classNames?.tab;
151
+ $[31] = currentKey;
152
+ $[32] = destroyInactiveTabPane;
153
+ $[33] = focusKey;
154
+ $[34] = handleSelect;
155
+ $[35] = id;
156
+ $[36] = styles?.tab;
157
+ $[37] = t15;
158
+ } else t15 = $[37];
158
159
  t14 = items.map(t15);
159
160
  $[21] = classNames?.tab;
160
161
  $[22] = currentKey;
161
- $[23] = focusKey;
162
- $[24] = handleSelect;
163
- $[25] = id;
164
- $[26] = items;
165
- $[27] = styles?.tab;
166
- $[28] = t14;
167
- } else t14 = $[28];
162
+ $[23] = destroyInactiveTabPane;
163
+ $[24] = focusKey;
164
+ $[25] = handleSelect;
165
+ $[26] = id;
166
+ $[27] = items;
167
+ $[28] = styles?.tab;
168
+ $[29] = t14;
169
+ } else t14 = $[29];
168
170
  let t15;
169
- if ($[36] !== classNames?.indicator || $[37] !== inkStyle || $[38] !== styles?.indicator || $[39] !== variant) {
171
+ if ($[38] !== classNames?.indicator || $[39] !== inkStyle || $[40] !== styles?.indicator || $[41] !== variant) {
170
172
  t15 = "line" === variant && inkStyle && /*#__PURE__*/ jsx("span", {
171
173
  "data-tao-tabs-ink": "",
172
174
  style: {
@@ -175,17 +177,19 @@ function Tabs(t0) {
175
177
  },
176
178
  className: cx(classNames?.indicator)
177
179
  });
178
- $[36] = classNames?.indicator;
179
- $[37] = inkStyle;
180
- $[38] = styles?.indicator;
181
- $[39] = variant;
182
- $[40] = t15;
183
- } else t15 = $[40];
180
+ $[38] = classNames?.indicator;
181
+ $[39] = inkStyle;
182
+ $[40] = styles?.indicator;
183
+ $[41] = variant;
184
+ $[42] = t15;
185
+ } else t15 = $[42];
184
186
  let t16;
185
- if ($[41] !== handleKeyDown || $[42] !== t14 || $[43] !== t15) {
187
+ if ($[43] !== ariaLabel || $[44] !== ariaLabelledBy || $[45] !== handleKeyDown || $[46] !== t14 || $[47] !== t15) {
186
188
  t16 = /*#__PURE__*/ jsxs("div", {
187
189
  ref: tablistRef,
188
190
  role: "tablist",
191
+ "aria-label": ariaLabel,
192
+ "aria-labelledby": ariaLabelledBy,
189
193
  "data-tao-tabs-list": "",
190
194
  onKeyDown: handleKeyDown,
191
195
  children: [
@@ -193,28 +197,30 @@ function Tabs(t0) {
193
197
  t15
194
198
  ]
195
199
  });
196
- $[41] = handleKeyDown;
197
- $[42] = t14;
198
- $[43] = t15;
199
- $[44] = t16;
200
- } else t16 = $[44];
200
+ $[43] = ariaLabel;
201
+ $[44] = ariaLabelledBy;
202
+ $[45] = handleKeyDown;
203
+ $[46] = t14;
204
+ $[47] = t15;
205
+ $[48] = t16;
206
+ } else t16 = $[48];
201
207
  let t17;
202
- if ($[45] !== t12 || $[46] !== t13 || $[47] !== t16) {
208
+ if ($[49] !== t12 || $[50] !== t13 || $[51] !== t16) {
203
209
  t17 = /*#__PURE__*/ jsx("div", {
204
210
  "data-tao-tabs-nav": "",
205
211
  className: t12,
206
212
  style: t13,
207
213
  children: t16
208
214
  });
209
- $[45] = t12;
210
- $[46] = t13;
211
- $[47] = t16;
212
- $[48] = t17;
213
- } else t17 = $[48];
215
+ $[49] = t12;
216
+ $[50] = t13;
217
+ $[51] = t16;
218
+ $[52] = t17;
219
+ } else t17 = $[52];
214
220
  let t18;
215
- if ($[49] !== classNames?.panel || $[50] !== currentKey || $[51] !== destroyInactiveTabPane || $[52] !== id || $[53] !== items || $[54] !== styles?.panel) {
221
+ if ($[53] !== classNames?.panel || $[54] !== currentKey || $[55] !== destroyInactiveTabPane || $[56] !== id || $[57] !== items || $[58] !== styles?.panel) {
216
222
  let t19;
217
- if ($[56] !== classNames?.panel || $[57] !== currentKey || $[58] !== destroyInactiveTabPane || $[59] !== id || $[60] !== styles?.panel) {
223
+ if ($[60] !== classNames?.panel || $[61] !== currentKey || $[62] !== destroyInactiveTabPane || $[63] !== id || $[64] !== styles?.panel) {
218
224
  t19 = (item_5)=>{
219
225
  const isActive_0 = item_5.key === currentKey;
220
226
  const tabId_0 = `${id}-tab-${item_5.key}`;
@@ -222,6 +228,7 @@ function Tabs(t0) {
222
228
  if (destroyInactiveTabPane && !isActive_0) return null;
223
229
  return /*#__PURE__*/ jsx("div", {
224
230
  role: "tabpanel",
231
+ tabIndex: 0,
225
232
  id: panelId_0,
226
233
  "aria-labelledby": tabId_0,
227
234
  hidden: !isActive_0,
@@ -232,24 +239,24 @@ function Tabs(t0) {
232
239
  children: item_5.children
233
240
  }, item_5.key);
234
241
  };
235
- $[56] = classNames?.panel;
236
- $[57] = currentKey;
237
- $[58] = destroyInactiveTabPane;
238
- $[59] = id;
239
- $[60] = styles?.panel;
240
- $[61] = t19;
241
- } else t19 = $[61];
242
+ $[60] = classNames?.panel;
243
+ $[61] = currentKey;
244
+ $[62] = destroyInactiveTabPane;
245
+ $[63] = id;
246
+ $[64] = styles?.panel;
247
+ $[65] = t19;
248
+ } else t19 = $[65];
242
249
  t18 = items.map(t19);
243
- $[49] = classNames?.panel;
244
- $[50] = currentKey;
245
- $[51] = destroyInactiveTabPane;
246
- $[52] = id;
247
- $[53] = items;
248
- $[54] = styles?.panel;
249
- $[55] = t18;
250
- } else t18 = $[55];
250
+ $[53] = classNames?.panel;
251
+ $[54] = currentKey;
252
+ $[55] = destroyInactiveTabPane;
253
+ $[56] = id;
254
+ $[57] = items;
255
+ $[58] = styles?.panel;
256
+ $[59] = t18;
257
+ } else t18 = $[59];
251
258
  let t19;
252
- if ($[62] !== resolvedSize || $[63] !== t10 || $[64] !== t17 || $[65] !== t18 || $[66] !== t9 || $[67] !== variant) {
259
+ if ($[66] !== resolvedSize || $[67] !== t10 || $[68] !== t17 || $[69] !== t18 || $[70] !== t9 || $[71] !== variant) {
253
260
  t19 = /*#__PURE__*/ jsxs("div", {
254
261
  "data-tao-tabs": "",
255
262
  "data-tao-variant": variant,
@@ -261,14 +268,14 @@ function Tabs(t0) {
261
268
  t18
262
269
  ]
263
270
  });
264
- $[62] = resolvedSize;
265
- $[63] = t10;
266
- $[64] = t17;
267
- $[65] = t18;
268
- $[66] = t9;
269
- $[67] = variant;
270
- $[68] = t19;
271
- } else t19 = $[68];
271
+ $[66] = resolvedSize;
272
+ $[67] = t10;
273
+ $[68] = t17;
274
+ $[69] = t18;
275
+ $[70] = t9;
276
+ $[71] = variant;
277
+ $[72] = t19;
278
+ } else t19 = $[72];
272
279
  return t19;
273
280
  }
274
281
  function _temp2(t) {
@@ -87,41 +87,41 @@
87
87
  }
88
88
 
89
89
  [data-tao-tag][data-tao-color="primary"][data-tao-variant="filled"] {
90
- background: color-mix(in oklch,
90
+ background: color-mix(in oklab,
91
91
  var(--tao-color-primary) 10%,
92
92
  var(--tao-color-bg-base));
93
93
  color: var(--tao-primary);
94
- border-color: color-mix(in oklch,
94
+ border-color: color-mix(in oklab,
95
95
  var(--tao-color-primary) 18%,
96
96
  var(--tao-color-bg-base));
97
97
  }
98
98
 
99
99
  [data-tao-tag][data-tao-color="success"][data-tao-variant="filled"] {
100
- background: color-mix(in oklch,
100
+ background: color-mix(in oklab,
101
101
  var(--tao-color-success) 10%,
102
102
  var(--tao-color-bg-base));
103
103
  color: var(--tao-success);
104
- border-color: color-mix(in oklch,
104
+ border-color: color-mix(in oklab,
105
105
  var(--tao-color-success) 18%,
106
106
  var(--tao-color-bg-base));
107
107
  }
108
108
 
109
109
  [data-tao-tag][data-tao-color="warning"][data-tao-variant="filled"] {
110
- background: color-mix(in oklch,
110
+ background: color-mix(in oklab,
111
111
  var(--tao-color-warning) 12%,
112
112
  var(--tao-color-bg-base));
113
113
  color: var(--tao-warning);
114
- border-color: color-mix(in oklch,
114
+ border-color: color-mix(in oklab,
115
115
  var(--tao-color-warning) 22%,
116
116
  var(--tao-color-bg-base));
117
117
  }
118
118
 
119
119
  [data-tao-tag][data-tao-color="error"][data-tao-variant="filled"] {
120
- background: color-mix(in oklch,
120
+ background: color-mix(in oklab,
121
121
  var(--tao-color-error) 10%,
122
122
  var(--tao-color-bg-base));
123
123
  color: var(--tao-error);
124
- border-color: color-mix(in oklch,
124
+ border-color: color-mix(in oklab,
125
125
  var(--tao-color-error) 18%,
126
126
  var(--tao-color-bg-base));
127
127
  }
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties, type MouseEvent, type ReactNode } from 'react';
2
- import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic';
2
+ import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
3
3
  import './tag.css';
4
4
  export type TagSemanticPart = 'root' | 'icon' | 'content' | 'close';
5
5
  export type TagColor = 'default' | 'primary' | 'success' | 'warning' | 'error' | (string & {});
@@ -26,8 +26,8 @@ export interface CheckableTagProps {
26
26
  className?: string;
27
27
  style?: CSSProperties;
28
28
  }
29
- export declare function Tag({ children, color, variant, icon, closeIcon, onClose, disabled, className, style, classNames, styles, }: TagProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function Tag({ children, color, variant, icon, closeIcon, onClose, disabled, className, style, classNames, styles, }: TagProps): import("react").JSX.Element;
30
30
  export declare namespace Tag {
31
- var CheckableTag: typeof import("./tag").CheckableTag;
31
+ export { CheckableTag };
32
32
  }
33
- export declare function CheckableTag({ children, checked, onChange, disabled, icon, className, style, }: CheckableTagProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare function CheckableTag({ children, checked, onChange, disabled, icon, className, style, }: CheckableTagProps): import("react").JSX.Element;
@@ -66,9 +66,9 @@ function Tag(t0) {
66
66
  color,
67
67
  borderColor: `color-mix(in oklch, ${color} 36%, transparent)`
68
68
  } : {
69
- background: `color-mix(in oklch, ${color} 10%, var(--tao-color-bg-base))`,
69
+ background: `color-mix(in oklab, ${color} 10%, var(--tao-color-bg-base))`,
70
70
  color,
71
- borderColor: `color-mix(in oklch, ${color} 18%, var(--tao-color-bg-base))`
71
+ borderColor: `color-mix(in oklab, ${color} 18%, var(--tao-color-bg-base))`
72
72
  }
73
73
  } : void 0;
74
74
  $[4] = color;
@@ -177,18 +177,19 @@ function Tag(t0) {
177
177
  return t17;
178
178
  }
179
179
  function CheckableTag(t0) {
180
- const $ = c(20);
180
+ const $ = c(21);
181
181
  const { children, checked: t1, onChange, disabled: t2, icon, className, style } = t0;
182
182
  const checked = void 0 === t1 ? false : t1;
183
183
  const disabled = void 0 === t2 ? false : t2;
184
184
  const t3 = checked || void 0;
185
185
  const t4 = disabled || void 0;
186
- const t5 = disabled ? void 0 : 0;
187
- let t6;
186
+ const t5 = disabled || void 0;
187
+ const t6 = disabled ? void 0 : 0;
188
188
  let t7;
189
+ let t8;
189
190
  if ($[0] !== checked || $[1] !== disabled || $[2] !== onChange) {
190
- t6 = ()=>!disabled && onChange?.(!checked);
191
- t7 = (e)=>{
191
+ t7 = ()=>!disabled && onChange?.(!checked);
192
+ t8 = (e)=>{
192
193
  if (!disabled && ("Enter" === e.key || " " === e.key)) {
193
194
  e.preventDefault();
194
195
  onChange?.(!checked);
@@ -197,62 +198,64 @@ function CheckableTag(t0) {
197
198
  $[0] = checked;
198
199
  $[1] = disabled;
199
200
  $[2] = onChange;
200
- $[3] = t6;
201
- $[4] = t7;
201
+ $[3] = t7;
202
+ $[4] = t8;
202
203
  } else {
203
- t6 = $[3];
204
- t7 = $[4];
204
+ t7 = $[3];
205
+ t8 = $[4];
205
206
  }
206
- let t8;
207
+ let t9;
207
208
  if ($[5] !== icon) {
208
- t8 = null != icon && /*#__PURE__*/ jsx("span", {
209
+ t9 = null != icon && /*#__PURE__*/ jsx("span", {
209
210
  "data-tao-tag-icon": "",
210
211
  children: icon
211
212
  });
212
213
  $[5] = icon;
213
- $[6] = t8;
214
- } else t8 = $[6];
215
- let t9;
214
+ $[6] = t9;
215
+ } else t9 = $[6];
216
+ let t10;
216
217
  if ($[7] !== children) {
217
- t9 = null != children && /*#__PURE__*/ jsx("span", {
218
+ t10 = null != children && /*#__PURE__*/ jsx("span", {
218
219
  "data-tao-tag-content": "",
219
220
  children: children
220
221
  });
221
222
  $[7] = children;
222
- $[8] = t9;
223
- } else t9 = $[8];
224
- let t10;
225
- if ($[9] !== checked || $[10] !== className || $[11] !== style || $[12] !== t3 || $[13] !== t4 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9) {
226
- t10 = /*#__PURE__*/ jsxs("span", {
223
+ $[8] = t10;
224
+ } else t10 = $[8];
225
+ let t11;
226
+ if ($[9] !== checked || $[10] !== className || $[11] !== style || $[12] !== t10 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 || $[16] !== t6 || $[17] !== t7 || $[18] !== t8 || $[19] !== t9) {
227
+ t11 = /*#__PURE__*/ jsxs("span", {
227
228
  "data-tao-tag": "",
228
229
  "data-tao-checkable": "",
229
230
  "data-tao-checked": t3,
230
231
  "data-tao-disabled": t4,
231
232
  role: "checkbox",
232
233
  "aria-checked": checked,
233
- tabIndex: t5,
234
+ "aria-disabled": t5,
235
+ tabIndex: t6,
234
236
  className: className,
235
237
  style: style,
236
- onClick: t6,
237
- onKeyDown: t7,
238
+ onClick: t7,
239
+ onKeyDown: t8,
238
240
  children: [
239
- t8,
240
- t9
241
+ t9,
242
+ t10
241
243
  ]
242
244
  });
243
245
  $[9] = checked;
244
246
  $[10] = className;
245
247
  $[11] = style;
246
- $[12] = t3;
247
- $[13] = t4;
248
- $[14] = t5;
249
- $[15] = t6;
250
- $[16] = t7;
251
- $[17] = t8;
252
- $[18] = t9;
253
- $[19] = t10;
254
- } else t10 = $[19];
255
- return t10;
248
+ $[12] = t10;
249
+ $[13] = t3;
250
+ $[14] = t4;
251
+ $[15] = t5;
252
+ $[16] = t6;
253
+ $[17] = t7;
254
+ $[18] = t8;
255
+ $[19] = t9;
256
+ $[20] = t11;
257
+ } else t11 = $[20];
258
+ return t11;
256
259
  }
257
260
  Tag.CheckableTag = CheckableTag;
258
261
  export { CheckableTag, Tag };
@@ -1,6 +1,6 @@
1
1
  import { type Ref, type TextareaHTMLAttributes } from 'react';
2
- import { type TaoSize, type TaoStatus, type TaoVariant } from '../../provider/tao-provider';
3
- import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic';
2
+ import { type TaoSize, type TaoStatus, type TaoVariant } from '../../provider/tao-provider.js';
3
+ import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
4
4
  import './textarea.css';
5
5
  export type TextareaSemanticPart = 'root' | 'textarea';
6
6
  export interface AutoSizeOptions {
@@ -166,7 +166,7 @@ const textarea_Textarea = /*#__PURE__*/ forwardRef(function(t0, ref) {
166
166
  } else t14 = $[32];
167
167
  const t15 = classNames?.textarea;
168
168
  const t16 = styles?.textarea;
169
- const t17 = "error" === status || error || void 0;
169
+ const t17 = "error" === status || error ? true : rest["aria-invalid"];
170
170
  const t18 = autoSize ? "" : void 0;
171
171
  let t19;
172
172
  if ($[33] !== autoSize || $[34] !== onChange || $[35] !== resize) {
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties, type ReactNode } from 'react';
2
- import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic';
2
+ import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
3
3
  import './tooltip.css';
4
4
  export type TooltipSemanticPart = 'content' | 'arrow';
5
5
  export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
@@ -30,4 +30,4 @@ export interface TooltipProps {
30
30
  /** Exactly one trigger element. */
31
31
  children: ReactNode;
32
32
  }
33
- export declare function Tooltip({ title, placement, arrow, open, defaultOpen, onOpenChange, mouseEnterDelay, mouseLeaveDelay, color, className, style, classNames, styles, children, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
33
+ export declare function Tooltip({ title, placement, arrow, open, defaultOpen, onOpenChange, mouseEnterDelay, mouseLeaveDelay, color, className, style, classNames, styles, children, }: TooltipProps): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { ComponentDoc } from './component-doc';
1
+ import type { ComponentDoc } from './component-doc.js';
2
2
  export declare const componentDocs: ({
3
3
  name: string;
4
4
  displayName: string;
@@ -21,9 +21,9 @@ export declare const alertDoc: {
21
21
  description: string;
22
22
  defaultValue: string;
23
23
  } | {
24
+ defaultValue?: undefined;
24
25
  name: string;
25
26
  type: string;
26
27
  description: string;
27
- defaultValue?: undefined;
28
28
  })[];
29
29
  };
@@ -21,9 +21,9 @@ export declare const buttonDoc: {
21
21
  description: string;
22
22
  defaultValue: string;
23
23
  } | {
24
+ defaultValue?: undefined;
24
25
  name: string;
25
26
  type: string;
26
27
  description: string;
27
- defaultValue?: undefined;
28
28
  })[];
29
29
  };
@@ -16,10 +16,10 @@ export declare const popoverDoc: {
16
16
  avoid: string[];
17
17
  };
18
18
  props: ({
19
+ defaultValue?: undefined;
19
20
  name: string;
20
21
  type: string;
21
22
  description: string;
22
- defaultValue?: undefined;
23
23
  } | {
24
24
  name: string;
25
25
  type: string;
@@ -16,22 +16,22 @@ export declare const tooltipDoc: {
16
16
  avoid: string[];
17
17
  };
18
18
  props: ({
19
+ defaultValue?: undefined;
19
20
  name: string;
20
21
  type: string;
21
22
  description: string;
22
23
  required: true;
23
- defaultValue?: undefined;
24
24
  } | {
25
+ required?: undefined;
25
26
  name: string;
26
27
  type: string;
27
28
  description: string;
28
29
  defaultValue: string;
29
- required?: undefined;
30
30
  } | {
31
+ defaultValue?: undefined;
32
+ required?: undefined;
31
33
  name: string;
32
34
  type: string;
33
35
  description: string;
34
- required?: undefined;
35
- defaultValue?: undefined;
36
36
  })[];
37
37
  };