@webority/ui-react 0.59.0 → 0.59.2

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.
@@ -1 +1 @@
1
- import e from"./warnUnknownProps.js";import{cloneElement as t,useId as n,useState as r}from"react";import{OverlayTrigger as i,Popover as a}from"react-bootstrap";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c={start:`left`,end:`right`,top:`top`,bottom:`bottom`,auto:`auto`};function l({trigger:l,children:u,title:d,placement:f=`bottom`,triggerType:p=`click`,onToggle:m,className:h=``,...g}){e(`AppPopover`,g);let _=n(),[v,y]=r(!1),b=e=>{y(e),m?.(e)},x=s(a,{id:_,className:h||void 0,children:[d&&o(a.Header,{as:`h3`,children:d}),u==null?null:o(a.Body,{children:u})]}),{onClick:S,"aria-expanded":C,...w}=g,T=l.props[`aria-expanded`],E,D=p===`click`||Array.isArray(p)&&p.includes(`click`);C===void 0?T===void 0?D&&(E=v):E=T:E=C;let O=t(l,{...w,...E===void 0?{}:{"aria-expanded":E},onClick:e=>{S?.(e),typeof l.props.onClick==`function`&&l.props.onClick(e)}}),k=p===`click`,A=p===`hover`||Array.isArray(p)&&p.includes(`hover`);return o(i,{trigger:p,placement:c[f]||f,overlay:x,rootClose:k,delay:A?{show:80,hide:220}:void 0,onToggle:b,children:O})}export{l as default};
1
+ import e from"./warnUnknownProps.js";import{cloneElement as t,useId as n,useState as r}from"react";import{OverlayTrigger as i,Popover as a}from"react-bootstrap";import{jsx as o,jsxs as s}from"react/jsx-runtime";var c={start:`left`,end:`right`,top:`top`,bottom:`bottom`,auto:`auto`},l={modifiers:[{name:`computeStyles`,options:{gpuAcceleration:!1}}]};function u({trigger:u,children:d,title:f,placement:p=`bottom`,triggerType:m=`click`,onToggle:h,className:g=``,..._}){e(`AppPopover`,_);let v=n(),[y,b]=r(!1),x=e=>{b(e),h?.(e)},S=s(a,{id:v,className:g||void 0,children:[f&&o(a.Header,{as:`h3`,children:f}),d==null?null:o(a.Body,{children:d})]}),{onClick:C,"aria-expanded":w,...T}=_,E=u.props[`aria-expanded`],D,O=m===`click`||Array.isArray(m)&&m.includes(`click`);w===void 0?E===void 0?O&&(D=y):D=E:D=w;let k=t(u,{...T,...D===void 0?{}:{"aria-expanded":D},onClick:e=>{C?.(e),typeof u.props.onClick==`function`&&u.props.onClick(e)}}),A=m===`click`,j=m===`hover`||Array.isArray(m)&&m.includes(`hover`);return o(i,{trigger:m,placement:c[p]||p,popperConfig:l,overlay:S,rootClose:A,delay:j?{show:80,hide:220}:void 0,onToggle:x,children:k})}export{u as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.59.0",
3
+ "version": "0.59.2",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "sideEffects": false,
29
29
  "dependencies": {
30
- "@webority/theme": "0.59.0",
31
- "@webority/ui-elements": "0.59.0"
30
+ "@webority/ui-elements": "0.59.2",
31
+ "@webority/theme": "0.59.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@webority/analytics": "^0.22.0",
34
+ "@webority/analytics": "^0.23.0",
35
35
  "bootstrap": "5.3.3",
36
36
  "react": "^19.0.0",
37
37
  "react-bootstrap": "^2.10.0",
@@ -45,7 +45,7 @@
45
45
  "@types/react": "^19.2.17",
46
46
  "@vitejs/plugin-react": "^6.0.1",
47
47
  "@vitest/coverage-v8": "5.0.1",
48
- "@webority/analytics": "0.22.0",
48
+ "@webority/analytics": "0.23.0",
49
49
  "bootstrap": "5.3.3",
50
50
  "jsdom": "30.1.1",
51
51
  "react": "^19.2.6",