@startupjs-ui/div 0.3.4 → 0.3.7

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 CHANGED
@@ -3,6 +3,17 @@
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.3.7](https://github.com/startupjs/startupjs-ui/compare/v0.3.6...v0.3.7) (2026-06-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **div:** support row alignment values ([#38](https://github.com/startupjs/startupjs-ui/issues/38)) ([cc9f405](https://github.com/startupjs/startupjs-ui/commit/cc9f40539f3c8c4fb2a26fa71d5cdc847cd945c5))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.3.4](https://github.com/startupjs/startupjs-ui/compare/v0.3.3...v0.3.4) (2026-06-18)
7
18
 
8
19
 
package/README.mdx CHANGED
@@ -54,8 +54,8 @@ You can use the following props to manage layout:
54
54
  - `row` -- aligns children from left to right (default: `false`)
55
55
  - `reverse` -- reverses the children order depending on the direction (default: `false`)
56
56
  - `wrap` -- controls wrapping of children into multiple rows (default: `false`)
57
- - `align` -- controls horizontal alignment (values: `'left'`, `'center'`, `'right'`)
58
- - `vAlign` -- controls vertical alignment (values: `'top'`, `'center'`, `'bottom'`)
57
+ - `align` -- controls horizontal alignment (values: `'left'`, `'center'`, `'right'`; row layouts also support `'around'` and `'between'`)
58
+ - `vAlign` -- controls vertical alignment (values: `'top'`, `'center'`, `'bottom'`; row layouts also support `'stretch'`, `'start'`, and `'end'`)
59
59
  - `gap` -- defines the spacing between items in [units](/docs/tutorial/TricksWithStyles#units); passing `true` is equivalent to `2`
60
60
 
61
61
  ```jsx example
package/index.cssx.styl CHANGED
@@ -51,15 +51,30 @@ _shadowLevels = ('1' '2' '3' '4')
51
51
  &.right
52
52
  justify-content flex-end
53
53
 
54
+ &.between
55
+ justify-content space-between
56
+
57
+ &.around
58
+ justify-content space-around
59
+
60
+ &.v_start
61
+ align-items flex-start
62
+
54
63
  &.v_top
55
64
  align-items flex-start
56
65
 
57
66
  &.v_center
58
67
  align-items center
59
68
 
69
+ &.v_end
70
+ align-items flex-end
71
+
60
72
  &.v_bottom
61
73
  align-items flex-end
62
74
 
75
+ &.v_stretch
76
+ align-items stretch
77
+
63
78
  &.wrap
64
79
  flex-wrap wrap
65
80
 
package/index.d.ts CHANGED
@@ -34,10 +34,10 @@ export interface DivProps extends Omit<ViewProps, 'role'> {
34
34
  wrap?: boolean;
35
35
  /** Reverse children order for row layouts */
36
36
  reverse?: boolean;
37
- /** Horizontal alignment when using row/column */
38
- align?: 'left' | 'center' | 'right';
39
- /** Vertical alignment when using row/column */
40
- vAlign?: 'top' | 'center' | 'bottom';
37
+ /** Horizontal alignment when using row/column. Row also supports Row-compatible distribution values. */
38
+ align?: 'left' | 'center' | 'right' | 'around' | 'between';
39
+ /** Vertical alignment when using row/column. Row also supports Row-compatible cross-axis values. */
40
+ vAlign?: 'top' | 'center' | 'bottom' | 'stretch' | 'start' | 'end';
41
41
  /** Spacing between children (true maps to default gap) */
42
42
  gap?: boolean | number;
43
43
  /** Enable press feedback styles (hover and active states) @default true */
package/index.tsx CHANGED
@@ -67,10 +67,10 @@ export interface DivProps extends Omit<ViewProps, 'role'> {
67
67
  wrap?: boolean
68
68
  /** Reverse children order for row layouts */
69
69
  reverse?: boolean
70
- /** Horizontal alignment when using row/column */
71
- align?: 'left' | 'center' | 'right'
72
- /** Vertical alignment when using row/column */
73
- vAlign?: 'top' | 'center' | 'bottom'
70
+ /** Horizontal alignment when using row/column. Row also supports Row-compatible distribution values. */
71
+ align?: 'left' | 'center' | 'right' | 'around' | 'between'
72
+ /** Vertical alignment when using row/column. Row also supports Row-compatible cross-axis values. */
73
+ vAlign?: 'top' | 'center' | 'bottom' | 'stretch' | 'start' | 'end'
74
74
  /** Spacing between children (true maps to default gap) */
75
75
  gap?: boolean | number
76
76
  /** Enable press feedback styles (hover and active states) @default true */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/div",
3
- "version": "0.3.4",
3
+ "version": "0.3.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,5 +22,5 @@
22
22
  "react-native-reanimated": ">=4.0.0",
23
23
  "startupjs": "*"
24
24
  },
25
- "gitHead": "ad84ad14d189280a9ce4618b3223093fd09ba60e"
25
+ "gitHead": "a8bf45fdf47b12f25a690d9b9286fe1747edd5e9"
26
26
  }