@rockshin/tao-ui 0.0.37 → 0.0.39
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/component-manifest.json +4 -2
- package/dist/components/select/select.css +7 -0
- package/dist/components/steps/steps.css +1 -1
- package/dist/components/table/table-icons.d.ts +5 -0
- package/dist/components/table/table-icons.js +24 -1
- package/dist/components/table/table-summary.d.ts +38 -0
- package/dist/components/table/table-summary.js +90 -0
- package/dist/components/table/table-types.d.ts +20 -1
- package/dist/components/table/table.css +142 -19
- package/dist/components/table/table.d.ts +7 -2
- package/dist/components/table/table.js +410 -270
- package/dist/components/tag/tag.css +8 -8
- package/dist/components/tag/tag.js +2 -2
- package/dist/docs/components/table.doc.js +3 -1
- package/dist/index.d.ts +1 -1
- package/dist/theme/control.css +2 -2
- package/dist/theme/theme.css +11 -11
- package/llms.txt +2 -2
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
124
|
+
border-color: color-mix(in oklab,
|
|
125
125
|
var(--tao-color-error) 18%,
|
|
126
126
|
var(--tao-color-bg-base));
|
|
127
127
|
}
|
|
@@ -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
|
|
69
|
+
background: `color-mix(in oklab, ${color} 10%, var(--tao-color-bg-base))`,
|
|
70
70
|
color,
|
|
71
|
-
borderColor: `color-mix(in
|
|
71
|
+
borderColor: `color-mix(in oklab, ${color} 18%, var(--tao-color-bg-base))`
|
|
72
72
|
}
|
|
73
73
|
} : void 0;
|
|
74
74
|
$[4] = color;
|
|
@@ -2,7 +2,7 @@ const tableDoc = {
|
|
|
2
2
|
name: 'table',
|
|
3
3
|
displayName: 'Table',
|
|
4
4
|
category: 'Data Display',
|
|
5
|
-
description: 'Displays structured row and column data with selection, sorting, filtering, and pagination hooks.',
|
|
5
|
+
description: 'Displays structured row and column data with selection, sorting, filtering, expandable rows, summary rows, a pinned header, and pagination hooks.',
|
|
6
6
|
exports: [
|
|
7
7
|
'Table'
|
|
8
8
|
],
|
|
@@ -23,6 +23,8 @@ const tableDoc = {
|
|
|
23
23
|
'body.row',
|
|
24
24
|
'body.cell',
|
|
25
25
|
'selection.cell',
|
|
26
|
+
'expandedRow',
|
|
27
|
+
'summary',
|
|
26
28
|
'empty',
|
|
27
29
|
'pagination'
|
|
28
30
|
],
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export { Spinner, type SpinnerProps, type SpinnerSemanticPart, } from './compone
|
|
|
29
29
|
export { Splitter, type SplitterPanelProps, type SplitterProps, type SplitterSemanticPart, } from './components/splitter/splitter';
|
|
30
30
|
export { type StepItem, Steps, type StepsIconComponent, type StepsIconRender, type StepsIconRenderInfo, type StepsItemSemanticPart, type StepsOrientation, type StepsProps, type StepsSemanticPart, type StepsSize, type StepsStatus, type StepsTitlePlacement, type StepsType, type StepsVariant, } from './components/steps/steps';
|
|
31
31
|
export { Switch, type SwitchProps, type SwitchSemanticPart, } from './components/switch/switch';
|
|
32
|
-
export { type SorterResult, type SortOrder, Table, type TableColumn, type TableFilterItem, type TablePagination, type TableProps, type TableRowSelection, type TableSemanticPart, type TableVariant, } from './components/table/table';
|
|
32
|
+
export { type SorterResult, type SortOrder, Table, type TableColumn, type TableExpandable, type TableFilterItem, type TablePagination, type TableProps, type TableRowSelection, type TableSemanticPart, type TableSummaryCellProps, type TableSummaryProps, type TableSummaryRowProps, type TableVariant, } from './components/table/table';
|
|
33
33
|
export { type TabItem, Tabs, type TabsProps, type TabsSemanticPart, } from './components/tabs/tabs';
|
|
34
34
|
export { CheckableTag, type CheckableTagProps, Tag, type TagColor, type TagProps, type TagSemanticPart, type TagVariant, } from './components/tag/tag';
|
|
35
35
|
export { type AutoSizeOptions, Textarea, type TextareaProps, type TextareaSemanticPart, } from './components/textarea/textarea';
|
package/dist/theme/control.css
CHANGED
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
[data-tao-control][data-tao-variant="filled"][data-tao-error]:hover:not([data-disabled]):not(:focus-within) {
|
|
87
|
-
background: color-mix(in
|
|
87
|
+
background: color-mix(in oklab,
|
|
88
88
|
var(--tao-color-error) 10%,
|
|
89
89
|
var(--tao-color-bg-base));
|
|
90
90
|
}
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
[data-tao-control][data-tao-variant="filled"][data-tao-warning]:hover:not([data-disabled]):not(:focus-within) {
|
|
103
|
-
background: color-mix(in
|
|
103
|
+
background: color-mix(in oklab,
|
|
104
104
|
var(--tao-color-warning) 10%,
|
|
105
105
|
var(--tao-color-bg-base));
|
|
106
106
|
}
|
package/dist/theme/theme.css
CHANGED
|
@@ -35,38 +35,38 @@
|
|
|
35
35
|
--tao-primary-active: color-mix(in oklch,
|
|
36
36
|
var(--tao-color-primary) 90%,
|
|
37
37
|
black);
|
|
38
|
-
--tao-primary-bg: color-mix(in
|
|
38
|
+
--tao-primary-bg: color-mix(in oklab,
|
|
39
39
|
var(--tao-color-primary) 8%,
|
|
40
40
|
var(--tao-color-bg-base));
|
|
41
|
-
--tao-primary-bg-hover: color-mix(in
|
|
41
|
+
--tao-primary-bg-hover: color-mix(in oklab,
|
|
42
42
|
var(--tao-color-primary) 12%,
|
|
43
43
|
var(--tao-color-bg-base));
|
|
44
|
-
--tao-primary-border: color-mix(in
|
|
44
|
+
--tao-primary-border: color-mix(in oklab,
|
|
45
45
|
var(--tao-color-primary) 30%,
|
|
46
46
|
var(--tao-color-bg-base));
|
|
47
47
|
--tao-primary-fg: var(--tao-color-bg-base);
|
|
48
48
|
--tao-error: var(--tao-color-error);
|
|
49
49
|
--tao-error-hover: color-mix(in oklch, var(--tao-color-error) 80%, white);
|
|
50
50
|
--tao-error-active: color-mix(in oklch, var(--tao-color-error) 90%, black);
|
|
51
|
-
--tao-error-bg: color-mix(in
|
|
51
|
+
--tao-error-bg: color-mix(in oklab,
|
|
52
52
|
var(--tao-color-error) 6%,
|
|
53
53
|
var(--tao-color-bg-base));
|
|
54
|
-
--tao-error-border: color-mix(in
|
|
54
|
+
--tao-error-border: color-mix(in oklab,
|
|
55
55
|
var(--tao-color-error) 30%,
|
|
56
56
|
var(--tao-color-bg-base));
|
|
57
57
|
--tao-error-fg: var(--tao-color-text-light-solid);
|
|
58
58
|
--tao-success: var(--tao-color-success);
|
|
59
|
-
--tao-success-bg: color-mix(in
|
|
59
|
+
--tao-success-bg: color-mix(in oklab,
|
|
60
60
|
var(--tao-color-success) 6%,
|
|
61
61
|
var(--tao-color-bg-base));
|
|
62
|
-
--tao-success-border: color-mix(in
|
|
62
|
+
--tao-success-border: color-mix(in oklab,
|
|
63
63
|
var(--tao-color-success) 30%,
|
|
64
64
|
var(--tao-color-bg-base));
|
|
65
65
|
--tao-warning: var(--tao-color-warning);
|
|
66
|
-
--tao-warning-bg: color-mix(in
|
|
66
|
+
--tao-warning-bg: color-mix(in oklab,
|
|
67
67
|
var(--tao-color-warning) 6%,
|
|
68
68
|
var(--tao-color-bg-base));
|
|
69
|
-
--tao-warning-border: color-mix(in
|
|
69
|
+
--tao-warning-border: color-mix(in oklab,
|
|
70
70
|
var(--tao-color-warning) 30%,
|
|
71
71
|
var(--tao-color-bg-base));
|
|
72
72
|
--tao-color-text: var(--tao-color-text-base);
|
|
@@ -218,10 +218,10 @@
|
|
|
218
218
|
--tao-color-text-base: oklch(92.2% .005 70);
|
|
219
219
|
--tao-color-bg-surface: oklch(21% .005 70);
|
|
220
220
|
--tao-color-primary: oklch(92.2% .005 70);
|
|
221
|
-
--tao-primary-hover: color-mix(in
|
|
221
|
+
--tao-primary-hover: color-mix(in oklab,
|
|
222
222
|
var(--tao-color-primary) 85%,
|
|
223
223
|
var(--tao-color-bg-base));
|
|
224
|
-
--tao-primary-active: color-mix(in
|
|
224
|
+
--tao-primary-active: color-mix(in oklab,
|
|
225
225
|
var(--tao-color-primary) 75%,
|
|
226
226
|
var(--tao-color-bg-base));
|
|
227
227
|
--tao-control-outline: color-mix(in oklch,
|
package/llms.txt
CHANGED
|
@@ -437,14 +437,14 @@ Use Switch for settings that take effect immediately.
|
|
|
437
437
|
|
|
438
438
|
### Table
|
|
439
439
|
|
|
440
|
-
Displays structured row and column data with selection, sorting, filtering, and pagination hooks.
|
|
440
|
+
Displays structured row and column data with selection, sorting, filtering, expandable rows, summary rows, a pinned header, and pagination hooks.
|
|
441
441
|
|
|
442
442
|
- Category: Data Display
|
|
443
443
|
- Exports: `Table`
|
|
444
444
|
- Source: `src/components/table/table.tsx`
|
|
445
445
|
- Storybook: `stories/table.stories.tsx`
|
|
446
446
|
- Tests: `tests/table/table.test.tsx`
|
|
447
|
-
- Semantic parts: `root`, `scroll`, `table`, `header.wrapper`, `header.row`, `header.cell`, `header.content`, `header.title`, `body.row`, `body.cell`, `selection.cell`, `empty`, `pagination`
|
|
447
|
+
- Semantic parts: `root`, `scroll`, `table`, `header.wrapper`, `header.row`, `header.cell`, `header.content`, `header.title`, `body.row`, `body.cell`, `selection.cell`, `expandedRow`, `summary`, `empty`, `pagination`
|
|
448
448
|
|
|
449
449
|
Use Table for dense, comparable records that benefit from aligned columns.
|
|
450
450
|
|
package/package.json
CHANGED