freemium-ui 2.0.91 → 2.1.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.
Files changed (137) hide show
  1. package/lib/Accordion-Ccv-p2G6.js +134 -0
  2. package/lib/Accordion.d.ts +56 -0
  3. package/lib/Accordion.js +7 -0
  4. package/lib/Alert-BtEbkVK1.js +52 -0
  5. package/lib/Alert.d.ts +66 -0
  6. package/lib/Alert.js +6 -0
  7. package/lib/AutoComplete-DF33_uur.js +608 -0
  8. package/lib/AutoComplete.d.ts +105 -0
  9. package/lib/AutoComplete.js +14 -0
  10. package/lib/BoxedRadio-D5Kiintm.js +75 -0
  11. package/lib/BoxedRadio.d.ts +61 -0
  12. package/lib/BoxedRadio.js +10 -0
  13. package/lib/Button-Bd1O8_k7.js +34 -0
  14. package/lib/Button.d.ts +34 -0
  15. package/lib/Button.js +2 -0
  16. package/lib/ButtonDropdown-BZvCwUDe.js +37 -0
  17. package/lib/ButtonDropdown.d.ts +82 -0
  18. package/lib/ButtonDropdown.js +11 -0
  19. package/lib/Calendar-C0xW_pPO.js +32 -0
  20. package/lib/Calendar.d.ts +25 -0
  21. package/lib/Calendar.js +2 -0
  22. package/lib/Checkbox-By1CgFUJ.js +66 -0
  23. package/lib/Checkbox.d.ts +28 -0
  24. package/lib/Checkbox.js +7 -0
  25. package/lib/ChevronUp-BWiG3XYd.js +7 -0
  26. package/lib/Combination-AmN1Cqrf.js +210 -0
  27. package/lib/Confirmation-49GhlyzQ.js +66 -0
  28. package/lib/Confirmation.d.ts +72 -0
  29. package/lib/Confirmation.js +8 -0
  30. package/lib/Cross-CIeKwtq6.js +7 -0
  31. package/lib/CustomizeColumns-BSF8e_we.js +865 -0
  32. package/lib/Drawer-CnmXL5_B.js +33 -0
  33. package/lib/Drawer.d.ts +50 -0
  34. package/lib/Drawer.js +8 -0
  35. package/lib/Dropdown-D59u6zOt.js +89 -0
  36. package/lib/Dropdown.d.ts +162 -0
  37. package/lib/Dropdown.js +15 -0
  38. package/lib/ErrorText-Uvye7uop.js +8 -0
  39. package/lib/Info-BsILbpCG.js +9 -0
  40. package/lib/Input.d.ts +66 -0
  41. package/lib/Input.js +5 -0
  42. package/lib/Loader-b8lHCp4N.js +13 -0
  43. package/lib/Loader.d.ts +21 -0
  44. package/lib/Loader.js +3 -0
  45. package/lib/Menu-DoE00Mg-.js +19 -0
  46. package/lib/Menu.d.ts +80 -0
  47. package/lib/Menu.js +11 -0
  48. package/lib/Modal-D5RJHnbn.js +51 -0
  49. package/lib/Modal.d.ts +51 -0
  50. package/lib/Modal.js +7 -0
  51. package/lib/MultiSelectDropdown-DblSkVpv.js +84 -0
  52. package/lib/MultiSelectDropdown.d.ts +116 -0
  53. package/lib/MultiSelectDropdown.js +14 -0
  54. package/lib/Pickers.d.ts +94 -0
  55. package/lib/Pickers.js +16 -0
  56. package/lib/Popover-BU73-g73.js +90 -0
  57. package/lib/Popover.d.ts +94 -0
  58. package/lib/Popover.js +8 -0
  59. package/lib/QuillEditor.d.ts +29 -0
  60. package/lib/QuillEditor.js +3369 -0
  61. package/lib/Radio.d.ts +69 -0
  62. package/lib/Radio.js +10 -0
  63. package/lib/RadioGroup-DM_Y48_b.js +42 -0
  64. package/lib/Reorder-DUSHsq7i.js +697 -0
  65. package/lib/Reorder.d.ts +36 -0
  66. package/lib/Reorder.js +5 -0
  67. package/lib/SortDropdown-B0SSCJX6.js +17 -0
  68. package/lib/SortDropdown.d.ts +47 -0
  69. package/lib/SortDropdown.js +10 -0
  70. package/lib/Table-cidceyn5.js +117 -0
  71. package/lib/Table.d.ts +95 -0
  72. package/lib/Table.js +18 -0
  73. package/lib/Tabs-j1c7ybY-.js +50 -0
  74. package/lib/Tabs.d.ts +68 -0
  75. package/lib/Tabs.js +6 -0
  76. package/lib/Tag-Cu75ReQP.js +49 -0
  77. package/lib/Tag.d.ts +50 -0
  78. package/lib/Tag.js +4 -0
  79. package/lib/TextArea--fiwZ_QM.js +98 -0
  80. package/lib/ThemeProvider-bWL8hyYA.js +7 -0
  81. package/lib/ThemeProvider.d.ts +158 -0
  82. package/lib/ThemeProvider.js +9 -0
  83. package/lib/TickIcon-BJqSAG4_.js +7 -0
  84. package/lib/TimePicker-7Uqb3xJn.js +6598 -0
  85. package/lib/Toast.d.ts +61 -0
  86. package/lib/Toast.js +10 -0
  87. package/lib/ToastProvider-CMk1PSzB.js +264 -0
  88. package/lib/Toggle-BGV7Nc6t.js +59 -0
  89. package/lib/Toggle.d.ts +35 -0
  90. package/lib/Toggle.js +6 -0
  91. package/lib/Tooltip-DU_ATFRB.js +127 -0
  92. package/lib/Tooltip.d.ts +53 -0
  93. package/lib/Tooltip.js +8 -0
  94. package/lib/Typography-BcAppjDF.js +11 -0
  95. package/lib/Typography.d.ts +20 -0
  96. package/lib/Typography.js +2 -0
  97. package/lib/WorkspaceTable-BV5zccyt.js +100 -0
  98. package/lib/WorkspaceTable.d.ts +85 -0
  99. package/lib/WorkspaceTable.js +18 -0
  100. package/lib/_commonjsHelpers-fGXyuM93.js +4 -0
  101. package/lib/allPaths-DKtiSqHL.js +19 -0
  102. package/lib/allPathsLoader-Drb6xO2O.js +5 -0
  103. package/lib/index-B9EcTy5B.js +46 -0
  104. package/lib/index-BPxkexqj.js +60 -0
  105. package/lib/index-BROhcSiX.js +8 -0
  106. package/lib/index-BT1o947S.js +8 -0
  107. package/lib/index-BY9lf-do.js +2 -0
  108. package/lib/index-BdTXfGkV.js +24 -0
  109. package/lib/index-BnDw8kbT.js +135 -0
  110. package/lib/index-BrF1HKA1.js +338 -0
  111. package/lib/index-BxNZ3C71.js +4 -0
  112. package/lib/index-ByHJlnsx.js +26 -0
  113. package/lib/index-COoRg_pp.js +55 -0
  114. package/lib/index-CeIB4COQ.js +10 -0
  115. package/lib/index-Cjkk7z9c.js +19 -0
  116. package/lib/index-D6iTv28r.js +607 -0
  117. package/lib/index-D8E8s0tV.js +60 -0
  118. package/lib/index-DtILdK5l.js +48 -0
  119. package/lib/index-DtzckyT3.js +4 -0
  120. package/lib/index-Dy5ztCxm.js +27 -0
  121. package/lib/index-KMLwCm58.js +607 -0
  122. package/lib/index-_WvIFKTM.js +6 -0
  123. package/lib/index.d.ts +1826 -1842
  124. package/lib/index.js +54 -17049
  125. package/lib/isTypedArray-DN-UDJh5.js +89 -0
  126. package/lib/keyframes-PnzFl0I5.js +20 -0
  127. package/lib/package.json +133 -3
  128. package/lib/rollup.config.d.ts.map +1 -0
  129. package/lib/splitPathsBySizeLoader-Cm_vHo5k.js +23 -0
  130. package/lib/styled-components.browser.esm-Bq2p-e5F.js +479 -0
  131. package/lib/styles-BbwNLGy3.js +177 -0
  132. package/lib/styles-BlCCKAZq.js +1192 -0
  133. package/lib/use-toasts-GqvPVmSy.js +5 -0
  134. package/package.json +150 -12
  135. package/buildspec.yml +0 -22
  136. package/freemium-ui-2.0.91.tgz +0 -0
  137. package/lib/index.cjs.js +0 -17225
@@ -0,0 +1,60 @@
1
+ import{u as n,_ as t,f as e}from"./styled-components.browser.esm-Bq2p-e5F.js"
2
+ ;import{a as o,_ as i}from"./index-ByHJlnsx.js"
3
+ ;import{forwardRef as r,createElement as a}from"react"
4
+ ;import{h as l,Z as f}from"./index-BnDw8kbT.js"
5
+ ;import{b as c,a as h}from"./keyframes-PnzFl0I5.js"
6
+ ;var m,u,d,s,p,g,y,x,b,z,w,k,v,j=n(r(((n,t)=>a(o.label,i({},n,{ref:t,
7
+ onMouseDown:t=>{var e
8
+ ;null===(e=n.onMouseDown)||void 0===e||e.call(n,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()
9
+ }
10
+ })))))(m||(m=t(["\n color: ",";\n font-family: ",";\n direction: ",";\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px;\n display: flex;\n margin-bottom: 4px;\n"],["\n color: ",";\n font-family: ",";\n direction: ",";\n font-size: 12px;\n font-style: normal;\n font-weight: 600;\n line-height: 20px;\n display: flex;\n margin-bottom: 4px;\n"])),(function(n){
11
+ return n.theme.colors.text.secondary}),(function(n){
12
+ return n.theme.typography.fontFamily}),(function(n){return n.theme.direction
13
+ })),F=n.label(u||(u=t(["\n font-family: ",";\n color: ",";\n margin: 0 8px;\n display: inline-flex;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n display: flex;\n"],["\n font-family: ",";\n color: ",";\n margin: 0 8px;\n display: inline-flex;\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n display: flex;\n"])),(function(n){
14
+ return n.theme.typography.fontFamily}),(function(n){var t=n.theme
15
+ ;return n.disabled?t.colors.text.disabled:t.colors.text.primary}),(function(n){
16
+ return n.theme.typography.fontWeight.regular}),(function(n){
17
+ return n.theme.typography.secondary.fontSize}),(function(n){
18
+ return n.theme.typography.secondary.lineHeight
19
+ })),S=n.div(d||(d=t(["\n color: ",";\n margin-left: ",";\n margin-right: ",";\n"],["\n color: ",";\n margin-left: ",";\n margin-right: ",";\n"])),(function(n){
20
+ var t=n.theme;return"dark"===t.mode?t.colors.text.primary:t.colors.text.error
21
+ }),(function(n){return"ltr"===n.theme.direction?"2px":"unset"}),(function(n){
22
+ return"rtl"===n.theme.direction?"2px":"unset"
23
+ })),H=n.button(s||(s=t(["\n margin: 0;\n padding: 0;\n width: 20px;\n height: 20px;\n border: none;\n background: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n"],["\n margin: 0;\n padding: 0;\n width: 20px;\n height: 20px;\n border: none;\n background: none;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))),W=n.a(p||(p=t(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n font-family: ",";\n text-decoration: unset;\n :hover {\n text-decoration: underline;\n }\n"],["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n font-family: ",";\n text-decoration: unset;\n :hover {\n text-decoration: underline;\n }\n"])),(function(n){
24
+ return n.theme.typography.fontWeight["semi-bold"]}),(function(n){
25
+ return n.theme.typography.primary.fontSize}),(function(n){
26
+ return n.theme.typography.primary.lineHeight}),(function(n){
27
+ return n.theme.colors.text.link}),(function(n){
28
+ return n.theme.typography.fontFamily
29
+ })),I=n.div(g||(g=t(["\n flex: 1;\n padding: 32px;\n height: 100%;\n cursor: default;\n"],["\n flex: 1;\n padding: 32px;\n height: 100%;\n cursor: default;\n"]))),D=n.div(y||(y=t(["\n background-color: ",";\n display: flex;\n padding: 16px;\n gap: 12px;\n justify-content: flex-end;\n"],["\n background-color: ",";\n display: flex;\n padding: 16px;\n gap: 12px;\n justify-content: flex-end;\n"])),(function(n){
30
+ var t=n.theme;return"dark"===t.mode?t.colors.fill.medium:t.colors.fill.base
31
+ })),M=n.h1(x||(x=t(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0 0 12px 0;\n"],["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0 0 12px 0;\n"])),(function(n){
32
+ return n.theme.colors.text.primary}),(function(n){
33
+ return n.theme.typography.fontFamily}),(function(n){
34
+ return n.theme.typography.heading3.fontSize}),(function(n){
35
+ return n.theme.typography.fontWeight["semi-bold"]}),(function(n){
36
+ return n.theme.typography.heading3.lineHeight
37
+ })),T=n.div(b||(b=t(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0 0 16px 0;\n"],["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n margin: 0 0 16px 0;\n"])),(function(n){
38
+ return n.theme.colors.text.primary}),(function(n){
39
+ return n.theme.typography.fontFamily}),(function(n){
40
+ return n.theme.typography.heading.fontSize}),(function(n){
41
+ return n.theme.typography.fontWeight.regular}),(function(n){
42
+ return n.theme.typography.heading.lineHeight
43
+ })),_=n.div(z||(z=t(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n"],["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n"])),(function(n){
44
+ return n.theme.colors.text.primary}),(function(n){
45
+ return n.theme.typography.fontFamily}),(function(n){
46
+ return n.theme.typography.primary.fontSize}),(function(n){
47
+ return n.theme.typography.fontWeight.regular}),(function(n){
48
+ return n.theme.typography.primary.lineHeight})),B=n.button.attrs((function(n){
49
+ return{"aria-label":n["aria-label"]||"Trigger Button"}
50
+ }))(w||(w=t(["\n border: none;\n padding: 0;\n margin: 0;\n width: fit-content;\n background: inherit;\n color: inherit;\n cursor: pointer;\n display: grid;\n place-content: center;\n"],["\n border: none;\n padding: 0;\n margin: 0;\n width: fit-content;\n background: inherit;\n color: inherit;\n cursor: pointer;\n display: grid;\n place-content: center;\n"]))),C=e(k||(k=t(["\n background-color: ",";\n position: fixed;\n inset: 0;\n z-index: ",";\n animation-duration: ",";\n animation-timing-function: ",";\n &[data-state='open'] {\n animation-name: ",";\n }\n &[data-state='closed'] {\n animation-name: ",";\n }\n"],["\n background-color: ",";\n position: fixed;\n inset: 0;\n z-index: ",";\n animation-duration: ",";\n animation-timing-function: ",";\n &[data-state='open'] {\n animation-name: ",";\n }\n &[data-state='closed'] {\n animation-name: ",";\n }\n"])),(function(n){
51
+ var t=n.theme
52
+ ;return"dark"===t.mode?l(t.colors.scrim,.5):l(t.colors.common.black,.25)
53
+ }),(function(n){return(n.theme.zIndex.modal||f.modal)-1}),(function(n){
54
+ return n.theme.transitions.duration.standard}),(function(n){
55
+ return n.theme.transitions.easing.easeIn
56
+ }),c,h),P=e(v||(v=t(["\n position: fixed;\n background: ",";\n box-shadow: ",";\n outline: none;\n z-index: ",";\n"],["\n position: fixed;\n background: ",";\n box-shadow: ",";\n outline: none;\n z-index: ",";\n"])),(function(n){
57
+ return n.theme.colors.fill.surface}),(function(n){var t=n.theme
58
+ ;return"".concat("dark"===t.mode?"0 0 4px 0":"0 2px 18px 0"," ").concat(l(t.colors.shadow,.2))
59
+ }),(function(n){return n.theme.zIndex.modal||f.modal}))
60
+ ;export{I as C,W as F,F as I,S as R,j as S,B as T,H as a,D as b,M as c,T as d,_ as e,C as f,P as g};
@@ -0,0 +1,48 @@
1
+ import{a as o,_ as e,$ as t}from"./index-ByHJlnsx.js"
2
+ ;import{forwardRef as r,useEffect as n,createElement as s,useRef as i,useState as a,useCallback as u}from"react"
3
+ ;import{$ as c,a as f}from"./index-CeIB4COQ.js"
4
+ ;import{$ as p}from"./index-Cjkk7z9c.js"
5
+ ;import{$ as l,b as d}from"./index-BdTXfGkV.js"
6
+ ;import{$ as m}from"./index-BxNZ3C71.js";import{$ as v}from"./index-BY9lf-do.js"
7
+ ;const b="rovingFocusGroup.onEntryFocus",g={bubbles:!1,cancelable:!0
8
+ },w="RovingFocusGroup",[F,I,A]=p(w),[x,T]=l(w,[A]),[h,R]=x(w),D=r(((o,t)=>s(F.Provider,{
9
+ scope:o.__scopeRovingFocusGroup},s(F.Slot,{scope:o.__scopeRovingFocusGroup
10
+ },s(S,e({},o,{ref:t})))))),S=r(((r,p)=>{
11
+ const{__scopeRovingFocusGroup:l,orientation:m,loop:w=!1,dir:F,currentTabStopId:A,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:T,onEntryFocus:R,...D}=r,S=i(null),y=t(p,S),E=v(F),[G=null,$]=f({
12
+ prop:A,defaultProp:x,onChange:T}),[j,L]=a(!1),C=d(R),P=I(l),M=i(!1),[B,K]=a(0)
13
+ ;return n((()=>{const o=S.current
14
+ ;if(o)return o.addEventListener(b,C),()=>o.removeEventListener(b,C)}),[C]),s(h,{
15
+ scope:l,orientation:m,dir:E,loop:w,currentTabStopId:G,
16
+ onItemFocus:u((o=>$(o)),[$]),onItemShiftTab:u((()=>L(!0)),[]),
17
+ onFocusableItemAdd:u((()=>K((o=>o+1))),[]),
18
+ onFocusableItemRemove:u((()=>K((o=>o-1))),[])},s(o.div,e({
19
+ tabIndex:j||0===B?-1:0,"data-orientation":m},D,{ref:y,style:{outline:"none",
20
+ ...r.style},onMouseDown:c(r.onMouseDown,(()=>{M.current=!0})),
21
+ onFocus:c(r.onFocus,(o=>{const e=!M.current
22
+ ;if(o.target===o.currentTarget&&e&&!j){const e=new CustomEvent(b,g)
23
+ ;if(o.currentTarget.dispatchEvent(e),!e.defaultPrevented){
24
+ const o=P().filter((o=>o.focusable))
25
+ ;_([o.find((o=>o.active)),o.find((o=>o.id===G)),...o].filter(Boolean).map((o=>o.ref.current)))
26
+ }}M.current=!1})),onBlur:c(r.onBlur,(()=>L(!1)))})))})),y=r(((t,r)=>{
27
+ const{__scopeRovingFocusGroup:i,focusable:a=!0,active:u=!1,tabStopId:f,...p}=t,l=m(),d=f||l,v=R("RovingFocusGroupItem",i),b=v.currentTabStopId===d,g=I(i),{onFocusableItemAdd:w,onFocusableItemRemove:A}=v
28
+ ;return n((()=>{if(a)return w(),()=>A()}),[a,w,A]),s(F.ItemSlot,{scope:i,id:d,
29
+ focusable:a,active:u},s(o.span,e({tabIndex:b?0:-1,
30
+ "data-orientation":v.orientation},p,{ref:r,onMouseDown:c(t.onMouseDown,(o=>{
31
+ a?v.onItemFocus(d):o.preventDefault()})),
32
+ onFocus:c(t.onFocus,(()=>v.onItemFocus(d))),onKeyDown:c(t.onKeyDown,(o=>{
33
+ if("Tab"===o.key&&o.shiftKey)return void v.onItemShiftTab()
34
+ ;if(o.target!==o.currentTarget)return;const e=function(o,e,t){
35
+ const r=function(o,e){
36
+ return"rtl"!==e?o:"ArrowLeft"===o?"ArrowRight":"ArrowRight"===o?"ArrowLeft":o
37
+ }(o.key,t)
38
+ ;return"vertical"===e&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===e&&["ArrowUp","ArrowDown"].includes(r)?void 0:E[r]
39
+ }(o,v.orientation,v.dir);if(void 0!==e){o.preventDefault()
40
+ ;let n=g().filter((o=>o.focusable)).map((o=>o.ref.current))
41
+ ;if("last"===e)n.reverse();else if("prev"===e||"next"===e){
42
+ "prev"===e&&n.reverse();const s=n.indexOf(o.currentTarget)
43
+ ;n=v.loop?(r=s+1,(t=n).map(((o,e)=>t[(r+e)%t.length]))):n.slice(s+1)}
44
+ setTimeout((()=>_(n)))}var t,r}))})))})),E={ArrowLeft:"prev",ArrowUp:"prev",
45
+ ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",
46
+ End:"last"};function _(o){const e=document.activeElement;for(const t of o){
47
+ if(t===e)return;if(t.focus(),document.activeElement!==e)return}}const G=D,$=y
48
+ ;export{T as $,G as a,$ as b};
@@ -0,0 +1,4 @@
1
+ import{useRef as r,useMemo as e}from"react";function u(u){const t=r({value:u,
2
+ previous:u})
3
+ ;return e((()=>(t.current.value!==u&&(t.current.previous=t.current.value,
4
+ t.current.value=u),t.current.previous)),[u])}export{u as $};
@@ -0,0 +1,27 @@
1
+ import{Children as n,cloneElement as e,useState as t,useRef as r,useEffect as o,useCallback as u,useReducer as i}from"react"
2
+ ;import{flushSync as s}from"react-dom";import{$ as m}from"./index-ByHJlnsx.js"
3
+ ;import{c as a}from"./index-BdTXfGkV.js";const c=c=>{
4
+ const{present:N,children:f}=c,l=function(n){
5
+ const[e,m]=t(),c=r({}),N=r(n),f=r("none"),l=n?"mounted":"unmounted",[p,O]=function(n,e){
6
+ return i(((n,t)=>{const r=e[n][t];return null!=r?r:n}),n)}(l,{mounted:{
7
+ UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{
8
+ MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}})
9
+ ;return o((()=>{const n=d(c.current);f.current="mounted"===p?n:"none"
10
+ }),[p]),a((()=>{const e=c.current,t=N.current;if(t!==n){const r=f.current,o=d(e)
11
+ ;if(n)O("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))O("UNMOUNT");else{
12
+ O(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}N.current=n}}),[n,O]),a((()=>{if(e){
13
+ const n=n=>{const t=d(c.current).includes(n.animationName)
14
+ ;n.target===e&&t&&s((()=>O("ANIMATION_END")))},t=n=>{
15
+ n.target===e&&(f.current=d(c.current))}
16
+ ;return e.addEventListener("animationstart",t),
17
+ e.addEventListener("animationcancel",n),
18
+ e.addEventListener("animationend",n),()=>{
19
+ e.removeEventListener("animationstart",t),
20
+ e.removeEventListener("animationcancel",n),
21
+ e.removeEventListener("animationend",n)}}O("ANIMATION_END")}),[e,O]),{
22
+ isPresent:["mounted","unmountSuspended"].includes(p),ref:u((n=>{
23
+ n&&(c.current=getComputedStyle(n)),m(n)}),[])}}(N),p="function"==typeof f?f({
24
+ present:l.isPresent}):n.only(f),O=m(l.ref,p.ref)
25
+ ;return"function"==typeof f||l.isPresent?e(p,{ref:O}):null};function d(n){
26
+ return(null==n?void 0:n.animationName)||"none"}c.displayName="Presence"
27
+ ;export{c as $};