@startupjs-ui/card 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 +4 -4
- package/package.json +3 -3
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/card
|
|
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/card
|
|
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/card
|
package/README.mdx
CHANGED
|
@@ -13,7 +13,7 @@ import { faShareAlt } from '@fortawesome/free-solid-svg-icons'
|
|
|
13
13
|
# Card
|
|
14
14
|
Inherits [Div props](/docs/components/Div).
|
|
15
15
|
|
|
16
|
-
Cards contain content and actions about a single subject.
|
|
16
|
+
Cards contain content and actions about a single subject. You can pass custom `style` to the root element and provide content as `children`. Since Card inherits from Div, it also supports `onPress` and other Div props.
|
|
17
17
|
|
|
18
18
|
```jsx
|
|
19
19
|
import { Card } from 'startupjs-ui'
|
|
@@ -35,7 +35,7 @@ return (
|
|
|
35
35
|
|
|
36
36
|
## Outlined cards
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Set the `variant` prop to `'outlined'` to render a card with a border instead of a shadow.
|
|
39
39
|
|
|
40
40
|
```jsx example
|
|
41
41
|
return (
|
|
@@ -49,7 +49,7 @@ return (
|
|
|
49
49
|
|
|
50
50
|
## Levels of emphasis
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
The `level` prop controls the shadow intensity (defaults to `1`), providing different levels of visual emphasis. It only applies when the `variant` is `'elevated'` (the default). Accepts values from `0` (no shadow) to `5`.
|
|
53
53
|
|
|
54
54
|
```jsx example
|
|
55
55
|
return (
|
|
@@ -87,7 +87,7 @@ return (
|
|
|
87
87
|
)
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
## Complex interaction (
|
|
90
|
+
## Complex interaction (integration with other components)
|
|
91
91
|
|
|
92
92
|
```jsx example
|
|
93
93
|
const style = { maxWidth: u(50) }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs-ui/card",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@startupjs-ui/core": "^0.1.11",
|
|
12
|
-
"@startupjs-ui/div": "^0.1.
|
|
12
|
+
"@startupjs-ui/div": "^0.1.16"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "*",
|
|
16
16
|
"react-native": "*",
|
|
17
17
|
"startupjs": "*"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "9943aa3566d5d80f5b404473906eb3c0611f9ee5"
|
|
20
20
|
}
|