@rockshin/tao-ui 0.0.39 → 0.0.41
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 +12 -0
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/checkbox/checkbox.css +4 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -6
- package/dist/components/checkbox/checkbox.js +184 -111
- package/dist/components/collapsible/collapsible.d.ts +6 -6
- package/dist/components/context-menu/context-menu.d.ts +3 -3
- package/dist/components/date-picker/calendar/calendar-grid.d.ts +1 -1
- package/dist/components/date-picker/calendar/calendar-grid.js +47 -35
- package/dist/components/date-picker/calendar/calendar-header.d.ts +2 -2
- package/dist/components/date-picker/calendar/month-grid.d.ts +1 -1
- package/dist/components/date-picker/calendar/month-grid.js +1 -0
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -2
- package/dist/components/date-picker/calendar/time-panel.js +10 -7
- package/dist/components/date-picker/calendar/year-grid.d.ts +1 -1
- package/dist/components/date-picker/calendar/year-grid.js +1 -0
- package/dist/components/date-picker/date-picker.css +4 -0
- package/dist/components/date-picker/date-picker.d.ts +7 -6
- package/dist/components/date-picker/date-picker.js +52 -5
- package/dist/components/date-picker/presets.d.ts +1 -1
- package/dist/components/date-picker/range-picker.d.ts +6 -5
- package/dist/components/date-picker/range-picker.js +124 -28
- package/dist/components/date-picker/types.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +4 -4
- package/dist/components/drawer/drawer.js +125 -111
- package/dist/components/dropdown/dropdown.d.ts +8 -8
- package/dist/components/form/form-context.d.ts +1 -1
- package/dist/components/form/form-item.d.ts +3 -3
- package/dist/components/form/form.d.ts +3 -3
- package/dist/components/form/index.d.ts +2 -2
- package/dist/components/form-actions/form-actions.d.ts +2 -2
- package/dist/components/form-field/form-field-view.d.ts +2 -2
- package/dist/components/form-field/form-field.d.ts +2 -2
- package/dist/components/form-section/form-section.d.ts +2 -2
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/input/input.js +1 -1
- package/dist/components/input-number/input-number.d.ts +6 -7
- package/dist/components/input-number/input-number.js +91 -65
- package/dist/components/menu/menu-render.d.ts +1 -1
- package/dist/components/modal/confirm-dialog.d.ts +4 -4
- package/dist/components/modal/confirm.d.ts +1 -1
- package/dist/components/modal/index.d.ts +8 -8
- package/dist/components/modal/modal.d.ts +6 -6
- package/dist/components/modal/modal.js +115 -101
- package/dist/components/modal/use-modal.d.ts +2 -2
- package/dist/components/pagination/pagination.d.ts +3 -3
- package/dist/components/popconfirm/popconfirm.d.ts +5 -5
- package/dist/components/popconfirm/popconfirm.js +74 -61
- package/dist/components/popover/popover.d.ts +4 -4
- package/dist/components/popover/popover.js +124 -115
- package/dist/components/radio/radio.d.ts +9 -6
- package/dist/components/radio/radio.js +210 -116
- package/dist/components/scroll-area/scroll-area.d.ts +2 -2
- package/dist/components/select/mobile-select.d.ts +3 -3
- package/dist/components/select/mobile-select.js +3 -1
- package/dist/components/select/select-icons.d.ts +5 -5
- package/dist/components/select/select-model.d.ts +1 -1
- package/dist/components/select/select-searchable-list.d.ts +2 -2
- package/dist/components/select/select-tags.d.ts +3 -3
- package/dist/components/select/select-types.d.ts +2 -2
- package/dist/components/select/select.css +1 -0
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/use-select-selection.d.ts +3 -3
- package/dist/components/sonner/index.d.ts +1 -1
- package/dist/components/sonner/sonner.d.ts +5 -4
- package/dist/components/spinner/spinner.d.ts +5 -5
- package/dist/components/spinner/spinner.js +106 -99
- package/dist/components/splitter/splitter.d.ts +3 -3
- package/dist/components/status-icon/status-icon.d.ts +1 -1
- package/dist/components/steps/steps-icons.d.ts +4 -4
- package/dist/components/steps/steps.d.ts +3 -3
- package/dist/components/steps/use-display-steps.d.ts +1 -1
- package/dist/components/switch/switch.d.ts +4 -3
- package/dist/components/switch/switch.js +134 -86
- package/dist/components/table/table-filter.d.ts +2 -2
- package/dist/components/table/table-icons.d.ts +6 -6
- package/dist/components/table/table-model.d.ts +2 -2
- package/dist/components/table/table-summary.d.ts +5 -5
- package/dist/components/table/table-types.d.ts +3 -3
- package/dist/components/table/table.d.ts +6 -6
- package/dist/components/table/use-table-data.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +5 -5
- package/dist/components/tabs/tabs.js +72 -65
- package/dist/components/tag/tag.d.ts +4 -4
- package/dist/components/tag/tag.js +38 -35
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/docs/component-docs.d.ts +1 -1
- package/dist/docs/components/alert.doc.d.ts +1 -1
- package/dist/docs/components/button.doc.d.ts +1 -1
- package/dist/docs/components/popover.doc.d.ts +1 -1
- package/dist/docs/components/tooltip.doc.d.ts +4 -4
- package/dist/docs/index.d.ts +2 -2
- package/dist/entries/alert.d.ts +1 -1
- package/dist/entries/breadcrumb.d.ts +1 -1
- package/dist/entries/button.d.ts +1 -1
- package/dist/entries/checkbox.d.ts +1 -1
- package/dist/entries/collapsible.d.ts +1 -1
- package/dist/entries/context-menu.d.ts +1 -1
- package/dist/entries/date-picker.d.ts +1 -1
- package/dist/entries/drawer.d.ts +1 -1
- package/dist/entries/dropdown.d.ts +1 -1
- package/dist/entries/form-actions.d.ts +1 -1
- package/dist/entries/form-field.d.ts +1 -1
- package/dist/entries/form-layout.d.ts +1 -1
- package/dist/entries/form-section.d.ts +1 -1
- package/dist/entries/form.d.ts +1 -1
- package/dist/entries/input-number.d.ts +1 -1
- package/dist/entries/input.d.ts +1 -1
- package/dist/entries/modal.d.ts +1 -1
- package/dist/entries/number-input.d.ts +1 -1
- package/dist/entries/pagination.d.ts +1 -1
- package/dist/entries/popconfirm.d.ts +1 -1
- package/dist/entries/popover.d.ts +1 -1
- package/dist/entries/provider.d.ts +1 -1
- package/dist/entries/radio.d.ts +1 -1
- package/dist/entries/range-picker.d.ts +1 -1
- package/dist/entries/scroll-area.d.ts +1 -1
- package/dist/entries/select.d.ts +1 -1
- package/dist/entries/sonner.d.ts +1 -1
- package/dist/entries/spinner.d.ts +1 -1
- package/dist/entries/splitter.d.ts +1 -1
- package/dist/entries/stack.d.ts +1 -1
- package/dist/entries/steps.d.ts +1 -1
- package/dist/entries/switch.d.ts +1 -1
- package/dist/entries/table.d.ts +1 -1
- package/dist/entries/tabs.d.ts +1 -1
- package/dist/entries/tag.d.ts +1 -1
- package/dist/entries/textarea.d.ts +1 -1
- package/dist/entries/tooltip.d.ts +1 -1
- package/dist/index.d.ts +40 -40
- package/dist/layouts/form-layout/form-layout.d.ts +2 -2
- package/dist/layouts/stack/stack.d.ts +3 -3
- package/dist/number-input/format.d.ts +1 -1
- package/dist/number-input/index.d.ts +4 -4
- package/dist/number-input/number-input.d.ts +2 -2
- package/dist/number-input/use-number-input.d.ts +1 -1
- package/dist/provider/tao-provider.d.ts +3 -3
- package/dist/utils/dialog-content.d.ts +1 -1
- package/package.json +38 -38
|
@@ -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
|
|
31
|
+
declare function TableSummary({ children }: TableSummaryProps): import("react").JSX.Element;
|
|
32
32
|
declare namespace TableSummary {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
export { TableSummaryRow as Row };
|
|
34
|
+
export { TableSummaryCell as Cell };
|
|
35
35
|
}
|
|
36
|
-
declare function TableSummaryRow({ className, style, children }: TableSummaryRowProps): import("react
|
|
37
|
-
declare function TableSummaryCell({ index, colSpan, rowSpan, align, className, style, children, }: TableSummaryCellProps): import("react
|
|
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';
|
|
@@ -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
|
|
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
|
-
|
|
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
|
|
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(
|
|
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] !==
|
|
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 ($[
|
|
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
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
|
|
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] =
|
|
162
|
-
$[24] =
|
|
163
|
-
$[25] =
|
|
164
|
-
$[26] =
|
|
165
|
-
$[27] =
|
|
166
|
-
$[28] =
|
|
167
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
} else t15 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
|
|
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 ($[
|
|
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
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
} else t17 = $[
|
|
215
|
+
$[49] = t12;
|
|
216
|
+
$[50] = t13;
|
|
217
|
+
$[51] = t16;
|
|
218
|
+
$[52] = t17;
|
|
219
|
+
} else t17 = $[52];
|
|
214
220
|
let t18;
|
|
215
|
-
if ($[
|
|
221
|
+
if ($[53] !== classNames?.panel || $[54] !== currentKey || $[55] !== destroyInactiveTabPane || $[56] !== id || $[57] !== items || $[58] !== styles?.panel) {
|
|
216
222
|
let t19;
|
|
217
|
-
if ($[
|
|
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
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
} else t19 = $[
|
|
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
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
} else t18 = $[
|
|
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 ($[
|
|
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
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
271
|
-
} else t19 = $[
|
|
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) {
|
|
@@ -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
|
|
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
|
-
|
|
31
|
+
export { CheckableTag };
|
|
32
32
|
}
|
|
33
|
-
export declare function CheckableTag({ children, checked, onChange, disabled, icon, className, style, }: CheckableTagProps): import("react
|
|
33
|
+
export declare function CheckableTag({ children, checked, onChange, disabled, icon, className, style, }: CheckableTagProps): import("react").JSX.Element;
|
|
@@ -177,18 +177,19 @@ function Tag(t0) {
|
|
|
177
177
|
return t17;
|
|
178
178
|
}
|
|
179
179
|
function CheckableTag(t0) {
|
|
180
|
-
const $ = c(
|
|
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
|
|
187
|
-
|
|
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
|
-
|
|
191
|
-
|
|
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] =
|
|
201
|
-
$[4] =
|
|
201
|
+
$[3] = t7;
|
|
202
|
+
$[4] = t8;
|
|
202
203
|
} else {
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
t7 = $[3];
|
|
205
|
+
t8 = $[4];
|
|
205
206
|
}
|
|
206
|
-
let
|
|
207
|
+
let t9;
|
|
207
208
|
if ($[5] !== icon) {
|
|
208
|
-
|
|
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] =
|
|
214
|
-
} else
|
|
215
|
-
let
|
|
214
|
+
$[6] = t9;
|
|
215
|
+
} else t9 = $[6];
|
|
216
|
+
let t10;
|
|
216
217
|
if ($[7] !== children) {
|
|
217
|
-
|
|
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] =
|
|
223
|
-
} else
|
|
224
|
-
let
|
|
225
|
-
if ($[9] !== checked || $[10] !== className || $[11] !== style || $[12] !==
|
|
226
|
-
|
|
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
|
-
|
|
234
|
+
"aria-disabled": t5,
|
|
235
|
+
tabIndex: t6,
|
|
234
236
|
className: className,
|
|
235
237
|
style: style,
|
|
236
|
-
onClick:
|
|
237
|
-
onKeyDown:
|
|
238
|
+
onClick: t7,
|
|
239
|
+
onKeyDown: t8,
|
|
238
240
|
children: [
|
|
239
|
-
|
|
240
|
-
|
|
241
|
+
t9,
|
|
242
|
+
t10
|
|
241
243
|
]
|
|
242
244
|
});
|
|
243
245
|
$[9] = checked;
|
|
244
246
|
$[10] = className;
|
|
245
247
|
$[11] = style;
|
|
246
|
-
$[12] =
|
|
247
|
-
$[13] =
|
|
248
|
-
$[14] =
|
|
249
|
-
$[15] =
|
|
250
|
-
$[16] =
|
|
251
|
-
$[17] =
|
|
252
|
-
$[18] =
|
|
253
|
-
$[19] =
|
|
254
|
-
|
|
255
|
-
|
|
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
|
|
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
|
|
33
|
+
export declare function Tooltip({ title, placement, arrow, open, defaultOpen, onOpenChange, mouseEnterDelay, mouseLeaveDelay, color, className, style, classNames, styles, children, }: TooltipProps): import("react").JSX.Element;
|
|
@@ -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
|
};
|
package/dist/docs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { ComponentDoc, ComponentDocCategory, ComponentDocProp, ComponentDocUsage, } from './component-doc';
|
|
2
|
-
export { componentDocs, getComponentDoc } from './component-docs';
|
|
1
|
+
export type { ComponentDoc, ComponentDocCategory, ComponentDocProp, ComponentDocUsage, } from './component-doc.js';
|
|
2
|
+
export { componentDocs, getComponentDoc } from './component-docs.js';
|
package/dist/entries/alert.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { Alert, type AlertProps, type AlertSemanticPart, type AlertType, } from '../components/alert/alert';
|
|
3
|
+
export { Alert, type AlertProps, type AlertSemanticPart, type AlertType, } from '../components/alert/alert.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbSemanticPart, } from '../components/breadcrumb/breadcrumb';
|
|
3
|
+
export { Breadcrumb, type BreadcrumbItemType, type BreadcrumbProps, type BreadcrumbSemanticPart, } from '../components/breadcrumb/breadcrumb.js';
|
package/dist/entries/button.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOptionType, type CheckboxProps, type CheckboxSemanticPart, } from '../components/checkbox/checkbox';
|
|
3
|
+
export { Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxOptionType, type CheckboxProps, type CheckboxSemanticPart, } from '../components/checkbox/checkbox.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { Collapsible, type CollapsibleContentProps, type CollapsibleProps, type CollapsibleSemanticPart, type CollapsibleTriggerProps, } from '../components/collapsible/collapsible';
|
|
3
|
+
export { Collapsible, type CollapsibleContentProps, type CollapsibleProps, type CollapsibleSemanticPart, type CollapsibleTriggerProps, } from '../components/collapsible/collapsible.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { ContextMenu, type ContextMenuProps, type ContextMenuSemanticPart, } from '../components/context-menu/context-menu';
|
|
3
|
+
export { ContextMenu, type ContextMenuProps, type ContextMenuSemanticPart, } from '../components/context-menu/context-menu.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { DatePicker, type DatePickerProps, type DatePickerSemanticPart, type PickerRef, } from '../components/date-picker/date-picker';
|
|
3
|
+
export { DatePicker, type DatePickerProps, type DatePickerSemanticPart, type PickerRef, } from '../components/date-picker/date-picker.js';
|
package/dist/entries/drawer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { Drawer, type DrawerPlacement, type DrawerProps, type DrawerResizableConfig, type DrawerSemanticPart, type DrawerSize, } from '../components/drawer/drawer';
|
|
3
|
+
export { Drawer, type DrawerPlacement, type DrawerProps, type DrawerResizableConfig, type DrawerSemanticPart, type DrawerSize, } from '../components/drawer/drawer.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { Dropdown, type DropdownButtonProps, type DropdownPlacement, type DropdownProps, type DropdownSemanticPart, type DropdownTrigger, type MenuDividerType, type MenuGroupType, type MenuItem, type MenuItemType, type MenuProps, } from '../components/dropdown/dropdown';
|
|
3
|
+
export { Dropdown, type DropdownButtonProps, type DropdownPlacement, type DropdownProps, type DropdownSemanticPart, type DropdownTrigger, type MenuDividerType, type MenuGroupType, type MenuItem, type MenuItemType, type MenuProps, } from '../components/dropdown/dropdown.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { FormActions, type FormActionsProps, type FormActionsSemanticPart, } from '../components/form-actions/form-actions';
|
|
3
|
+
export { FormActions, type FormActionsProps, type FormActionsSemanticPart, } from '../components/form-actions/form-actions.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { FormField, type FormFieldProps, type FormFieldSemanticPart, } from '../components/form-field/form-field';
|
|
3
|
+
export { FormField, type FormFieldProps, type FormFieldSemanticPart, } from '../components/form-field/form-field.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../theme/theme.css';
|
|
2
2
|
import '../theme/control.css';
|
|
3
|
-
export { FormLayout, type FormLayoutProps, type FormLayoutSemanticPart, } from '../layouts/form-layout/form-layout';
|
|
3
|
+
export { FormLayout, type FormLayoutProps, type FormLayoutSemanticPart, } from '../layouts/form-layout/form-layout.js';
|