@startupjs-ui/popover 0.1.22 → 0.2.0-alpha.1

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,25 @@
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.2.0-alpha.1](https://github.com/startupjs/startupjs-ui/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-04-10)
7
+
8
+ **Note:** Version bump only for package @startupjs-ui/popover
9
+
10
+
11
+
12
+
13
+
14
+ # [0.2.0-alpha.0](https://github.com/startupjs/startupjs-ui/compare/v0.1.22...v0.2.0-alpha.0) (2026-03-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * fix and improve accessibility of various components. Add storybook with tests. ([#21](https://github.com/startupjs/startupjs-ui/issues/21)) ([83b6576](https://github.com/startupjs/startupjs-ui/commit/83b65767ed61b24209f71b143ba1c2986170ab58))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.1.22](https://github.com/startupjs/startupjs-ui/compare/v0.1.21...v0.1.22) (2026-03-25)
7
26
 
8
27
  **Note:** Version bump only for package @startupjs-ui/popover
package/index.d.ts CHANGED
@@ -21,6 +21,8 @@ export interface PopoverProps extends Omit<AbstractPopoverProps, 'anchorRef' | '
21
21
  $visible?: any;
22
22
  /** Called when visibility should change */
23
23
  onChange?: (visible: boolean) => void;
24
+ /** Open the popover when the anchor wrapper is pressed @default true */
25
+ openOnAnchorPress?: boolean;
24
26
  /** Anchor content */
25
27
  children?: ReactNode;
26
28
  /** Render function for popover content */
package/index.tsx CHANGED
@@ -23,6 +23,8 @@ export interface PopoverProps extends Omit<AbstractPopoverProps, 'anchorRef' | '
23
23
  $visible?: any
24
24
  /** Called when visibility should change */
25
25
  onChange?: (visible: boolean) => void
26
+ /** Open the popover when the anchor wrapper is pressed @default true */
27
+ openOnAnchorPress?: boolean
26
28
  /** Anchor content */
27
29
  children?: ReactNode
28
30
  /** Render function for popover content */
@@ -44,6 +46,7 @@ function Popover ({
44
46
  children,
45
47
  renderContent,
46
48
  onChange,
49
+ openOnAnchorPress = true,
47
50
  renderWrapper,
48
51
  overlayStyle,
49
52
  ref,
@@ -98,7 +101,7 @@ function Popover ({
98
101
  Div(
99
102
  style=style
100
103
  ref=anchorRef
101
- onPress=isUncontrolled ? null : setVisibleTrue
104
+ onPress=!isUncontrolled && openOnAnchorPress ? setVisibleTrue : null
102
105
  )= children
103
106
  AbstractPopover.attachment(
104
107
  ...props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startupjs-ui/popover",
3
- "version": "0.1.22",
3
+ "version": "0.2.0-alpha.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,14 +8,14 @@
8
8
  "types": "index.d.ts",
9
9
  "type": "module",
10
10
  "dependencies": {
11
- "@startupjs-ui/abstract-popover": "^0.1.22",
12
- "@startupjs-ui/core": "^0.1.22",
13
- "@startupjs-ui/div": "^0.1.22"
11
+ "@startupjs-ui/abstract-popover": "^0.2.0-alpha.1",
12
+ "@startupjs-ui/core": "^0.2.0-alpha.1",
13
+ "@startupjs-ui/div": "^0.2.0-alpha.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "*",
17
17
  "react-native": "*",
18
18
  "startupjs": "*"
19
19
  },
20
- "gitHead": "3bd18c16f0f203ee3d940bf2e09381edc0034665"
20
+ "gitHead": "b48004779559b16c96a2a1995dab13b998eafce9"
21
21
  }