@startupjs-ui/content 0.1.13 → 0.1.19

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 (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.mdx +10 -11
  3. 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.19](https://github.com/startupjs/startupjs-ui/compare/v0.1.18...v0.1.19) (2026-03-17)
7
+
8
+ **Note:** Version bump only for package @startupjs-ui/content
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.16](https://github.com/startupjs/startupjs-ui/compare/v0.1.15...v0.1.16) (2026-02-10)
15
+
16
+ **Note:** Version bump only for package @startupjs-ui/content
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.1.13](https://github.com/startupjs/startupjs-ui/compare/v0.1.12...v0.1.13) (2026-02-03)
7
23
 
8
24
  **Note:** Version bump only for package @startupjs-ui/content
package/README.mdx CHANGED
@@ -8,10 +8,9 @@ import './index.mdx.cssx.styl'
8
8
 
9
9
  # Content
10
10
 
11
- Content used as a parent container for the main content area of your app/website.
11
+ A parent container for the main content area of your app or website. You can pass custom `style` to the root element and provide content as `children`.
12
12
 
13
- It has good defaults for paddings from sides of the screen and by default limits the maximum width of the content
14
- to what is usually considered a comfortable reading width - `768px`, which is roughly the width of a tablet in portrait mode.
13
+ It applies sensible default horizontal padding and limits the maximum width to what is generally considered a comfortable reading width -- `768px` (roughly the width of a tablet in portrait mode).
15
14
 
16
15
  ```jsx
17
16
  import { Content } from 'startupjs-ui'
@@ -19,7 +18,7 @@ import { Content } from 'startupjs-ui'
19
18
 
20
19
  ## Simple Example
21
20
 
22
- By default content has left and right paddings of `16px`.
21
+ By default, Content has left and right padding of `16px`.
23
22
 
24
23
  ```jsx example
25
24
  const contentStyle = {
@@ -42,11 +41,9 @@ return (
42
41
 
43
42
  ## No horizontal paddings
44
43
 
45
- Pass `pure` property to remove left and right paddings. You would want to do this to keep the behaviour of
46
- limiting the maximum width of the Content (`768px` by default) while handling the internal paddings yourself.
44
+ Pass the `pure` prop to remove the left and right padding. This keeps the maximum width constraint (`768px` by default) while letting you handle internal padding yourself.
47
45
 
48
- This is useful when creating lists, tables, or other components that on small screens need to look like they go
49
- all the way from left to right. While on the bigger screens you would still want to limit the maximum width of the content.
46
+ This is useful for lists, tables, or other components that need to span edge-to-edge on small screens, while still limiting the maximum content width on larger screens.
50
47
 
51
48
  ```jsx example
52
49
  const contentStyle = {
@@ -69,7 +66,7 @@ return (
69
66
 
70
67
  ## Vertical paddings
71
68
 
72
- Top and bottom paddings can be added by passing the `padding` property to component.
69
+ Pass the `padding` prop to add equal top and bottom padding. When set to `true`, it uses a default spacing value. You can also pass a number to specify a custom padding amount.
73
70
 
74
71
  ```jsx example
75
72
  const contentStyle = {
@@ -92,7 +89,7 @@ return (
92
89
 
93
90
  ## Full space
94
91
 
95
- Content takes the `full` property, which gives it all the empty space on the main `flexbox` axis of the parent.
92
+ The `full` prop makes the Content expand to fill all available space along the parent's main flexbox axis.
96
93
 
97
94
  ```jsx example
98
95
  const divStyle = {
@@ -123,7 +120,9 @@ return (
123
120
 
124
121
  ## Max width
125
122
 
126
- Content has limited max-width by default of `768px`, because we are making mobile first layout and can only go from smaller to larger screens by changing `width` property (possible values of property can be found in the `Sandbox` section at the bottom of the page). Also you can change the default width value for component by overriding `defaultWidth` property in your `$UI.Content.defaultWidth`. **We don't recommend to change the `defaultWidth` unnecessarily, because it is a more advanced setting that will change all your entire app.**
123
+ By default, Content limits its max-width to `768px` (the `'tablet'` preset). Since the layout is mobile-first, you can scale up to larger screens using the `width` prop. The available presets are: `'mobile'`, `'tablet'` (default), `'desktop'`, `'wide'`, and `'full'`. See the Sandbox section below to try each one.
124
+
125
+ You can also change the default width for all Content components app-wide by overriding `$UI.Content.defaultWidth` in your styles. **Changing the default width is an advanced setting that affects your entire app -- use with caution.**
127
126
 
128
127
  ```jsx example
129
128
  const contentStyle = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/content",
3
- "version": "0.1.13",
3
+ "version": "0.1.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,13 +8,13 @@
8
8
  "types": "index.d.ts",
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@startupjs-ui/core": "^0.1.11",
12
- "@startupjs-ui/div": "^0.1.13"
11
+ "@startupjs-ui/core": "^0.1.19",
12
+ "@startupjs-ui/div": "^0.1.19"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "*",
16
16
  "react-native": "*",
17
17
  "startupjs": "*"
18
18
  },
19
- "gitHead": "5cfdccf2bdae3873e968289a3e6b938fad02101a"
19
+ "gitHead": "bfcca786dc363f42a09b6eef4feb7ca8139302fc"
20
20
  }