@startupjs-ui/table 0.1.12 → 0.1.16
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/CHANGELOG.md +16 -0
- package/README.mdx +5 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.1.16](https://github.com/startupjs/startupjs-ui/compare/v0.1.15...v0.1.16) (2026-02-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @startupjs-ui/table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.1.13](https://github.com/startupjs/startupjs-ui/compare/v0.1.12...v0.1.13) (2026-02-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @startupjs-ui/table
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.1.12](https://github.com/startupjs/startupjs-ui/compare/v0.1.11...v0.1.12) (2026-01-21)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @startupjs-ui/table
|
package/README.mdx
CHANGED
|
@@ -17,7 +17,9 @@ import Span from '@startupjs-ui/span'
|
|
|
17
17
|
|
|
18
18
|
# Table
|
|
19
19
|
|
|
20
|
-
The Table component arranges data in rows and columns. Use Thead for
|
|
20
|
+
The Table component arranges data in rows and columns. Use `Thead` for the header section, `Tbody` for the body, `Tr` for rows, `Th` for header cells, and `Td` for data cells.
|
|
21
|
+
|
|
22
|
+
The `Thead`, `Tbody`, `Tr`, `Th`, and `Td` components extend `Div` props, so they support layout and interaction features like `onPress`, `hoverStyle`, and `activeStyle`. The `Thead` component has a `bordered` prop (defaults to `true`) that adds a bottom border. Both `Th` and `Td` support an `ellipsis` prop that collapses text to a single line with an ellipsis -- tap the cell to toggle the full text.
|
|
21
23
|
|
|
22
24
|
```jsx
|
|
23
25
|
import { Table, Thead, Tbody, Tr, Th, Td } from 'startupjs-ui'
|
|
@@ -62,6 +64,8 @@ return (
|
|
|
62
64
|
|
|
63
65
|
## Styling
|
|
64
66
|
|
|
67
|
+
Since `Tr`, `Th`, and `Td` extend `Div` props, you can apply custom hover and active styles directly. The example below demonstrates hover effects on header cells and body rows.
|
|
68
|
+
|
|
65
69
|
```jsx example
|
|
66
70
|
const tableStyle = {
|
|
67
71
|
backgroundColor: '#fff'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@startupjs-ui/core": "^0.1.11",
|
|
12
|
-
"@startupjs-ui/div": "^0.1.
|
|
13
|
-
"@startupjs-ui/span": "^0.1.
|
|
12
|
+
"@startupjs-ui/div": "^0.1.16",
|
|
13
|
+
"@startupjs-ui/span": "^0.1.16"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"react": "*",
|
|
17
17
|
"react-native": "*",
|
|
18
18
|
"startupjs": "*"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "9943aa3566d5d80f5b404473906eb3c0611f9ee5"
|
|
21
21
|
}
|