freemium-ui 2.0.74 → 2.0.75

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/lib/index.cjs.js CHANGED
@@ -4746,8 +4746,8 @@ endAdornment:e.createElement(Up,null,!l&&!i&&!s&&L&&e.createElement(Vo,{
4746
4746
  style:{borderRadius:"50%"}},e.createElement(ro,{fill:_.colors.text.primary
4747
4747
  })),e.createElement(Vo,{...V({disabled:l,readOnly:i,"aria-label":"toggle-button"
4748
4748
  })},e.createElement(Ip,{$isOpen:B,fill:_.colors.text.primary,width:8,height:8
4749
- }))),style:b}),!i&&!l&&e.createElement(Fp,{$isOpen:A,...T({disabled:l,readOnly:i
4750
- })
4749
+ }))),style:b}),!i&&!l&&e.createElement(Fp,{className:"ItemsContainer",$isOpen:A,
4750
+ ...T({disabled:l,readOnly:i})
4751
4751
  },E?e.createElement(jp,null,e.createElement(wm,null)):e.createElement(e.Fragment,null,A&&0===H.length&&e.createElement(e.Fragment,null,p?e.createElement($p,null,e.createElement(Bp,{
4752
4752
  onClick:e=>{e.stopPropagation(),m&&m({inputValue:N,customValues:!0}),O("")}
4753
4753
  },y?.(N)||"Click to add")):e.createElement($p,{readOnly:!0
@@ -12676,6 +12676,10 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
12676
12676
  .bp5-portal {
12677
12677
  --rdp-accent-color: ${({theme:e})=>e.colors.common.accent};
12678
12678
  --rdp-accent-color-dark: #215db0;
12679
+ .SelectContent,
12680
+ .ItemsContainer {
12681
+ z-index: ${({theme:e})=>e.zIndex.modal||Eo.modal};
12682
+ }
12679
12683
  .bp5-overlay {
12680
12684
  .bp5-overlay-backdrop {
12681
12685
  bottom: 0;
@@ -12686,9 +12690,10 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
12686
12690
  opacity: 1;
12687
12691
  overflow: auto;
12688
12692
  user-select: none;
12693
+ z-index: ${({theme:e})=>e.zIndex.modal||Eo.modal};
12689
12694
  }
12690
12695
  .bp5-overlay-content {
12691
- z-index: ${({theme:e})=>e.zIndex.popover||Eo.popover};
12696
+ z-index: ${({theme:e})=>e.zIndex.modal||Eo.modal};
12692
12697
  border: 1px solid ${({theme:e})=>e.colors.border.light};
12693
12698
  box-shadow:
12694
12699
  0px 2px 4px ${({theme:e})=>xo(e.colors.shadow,.06)},
@@ -13026,7 +13031,10 @@ className:`${t.className??""} bp-custom-dropdown bp-custom-dropdown-${t.name??""
13026
13031
  onChange:e=>{t?.onChange?.({target:{value:e?.id}})}})}
13027
13032
  return e.createElement(ab,{itemToString:()=>"",type:"button"})},ZN=t=>{
13028
13033
  const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m,useTime:v,...g}=t,y=document.querySelector('div[role="dialog"].DialogContent'),b=cr(),w=e.useRef(m??null),[C,z]=e.useState(m??null),[M,x]=e.useState()
13029
- ;return e.createElement(WN,{
13034
+ ;return e.useEffect((()=>{let e=location.href
13035
+ ;document.body.addEventListener("click",(()=>{requestAnimationFrame((()=>{
13036
+ e!==location.href&&(x(!1),setTimeout((()=>{x(void 0)}),0),e=location.href)}))
13037
+ }),!0)}),[]),e.createElement(WN,{
13030
13038
  id:`${v?"datetime":"date"}-picker-container-${s??""}`.trim(),"aria-invalid":i,
13031
13039
  dir:b.direction},a&&e.createElement(Do,{htmlFor:t.id,className:"input-label"
13032
13040
  },a,a&&o&&e.createElement(Lo,null,"*")),e.createElement(GN,{$isErrored:i,
@@ -13050,7 +13058,10 @@ timePrecision:"minute",timePickerProps:{useAmPm:!0,showArrowButtons:!1},
13050
13058
  showTimezoneSelect:!1,disableTimezoneSelect:!0}:{},...g,onChange:e=>{z(e)},
13051
13059
  value:C??""})),i&&c&&e.createElement(lm,null,c))},XN=t=>{
13052
13060
  const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",language:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m,useTime:v,...g}=t,y=document.querySelector('div[role="dialog"].DialogContent'),b=cr(),w=e.useRef(m??[null,null]),[C,z]=e.useState(m??[null,null]),[M,x]=e.useState()
13053
- ;return e.createElement(WN,{
13061
+ ;return e.useEffect((()=>{let e=location.href
13062
+ ;document.body.addEventListener("click",(()=>{requestAnimationFrame((()=>{
13063
+ e!==location.href&&(x(!1),setTimeout((()=>{x(void 0)}),0),e=location.href)}))
13064
+ }),!0)}),[]),e.createElement(WN,{
13054
13065
  id:`${v?"datetime":"date"}-range-picker-container-${c??""}`.trim(),
13055
13066
  "aria-invalid":i,dir:b.direction},a&&e.createElement(Do,{htmlFor:t.id,
13056
13067
  className:"input-label"
@@ -16710,7 +16721,8 @@ readOnly:p,disabled:n}),placeholder:l,
16710
16721
  endAdornment:e.createElement(Up,null,e.createElement(Vo,{...k({disabled:n,
16711
16722
  readOnly:p,"aria-label":"toggle-button"})},e.createElement(Ip,{$isOpen:$,
16712
16723
  fill:M.colors.text.primary,width:8,height:8}))),style:w
16713
- }),!p&&!n&&e.createElement(Fp,{$isOpen:L,...R({disabled:n,readOnly:p})
16724
+ }),!p&&!n&&e.createElement(Fp,{className:"ItemsContainer",$isOpen:L,...R({
16725
+ disabled:n,readOnly:p})
16714
16726
  },x?e.createElement(jp,null,e.createElement(wm,null)):e.createElement(e.Fragment,null,L&&0===_.length&&e.createElement($p,{
16715
16727
  readOnly:!0},g||"No items"),L&&_.map(((t,n)=>{
16716
16728
  const r="string"==typeof t?t:t?.[m];return e.createElement(e.Fragment,{key:r
@@ -16839,7 +16851,8 @@ Y([]),F(""),e.stopPropagation(),e.preventDefault()}},e.createElement(ro,{
16839
16851
  fill:O.colors.text.primary})),!z&&e.createElement(Vo,{...Z({disabled:c,
16840
16852
  readOnly:l,dir:O.direction})},e.createElement(Ip,{$isOpen:ne,
16841
16853
  fill:O.colors.text.primary,width:8,height:8}))),!l&&!c&&e.createElement(Fp,{
16842
- $isOpen:K,...J({disabled:c,readOnly:l,dir:O.direction})
16854
+ className:"ItemsContainer",$isOpen:K,...J({disabled:c,readOnly:l,dir:O.direction
16855
+ })
16843
16856
  },_?e.createElement(jp,null,e.createElement(wm,null)):e.createElement(e.Fragment,null,K&&(0===G.length||b)&&e.createElement($p,{
16844
16857
  readOnly:!0},b?e.createElement(Bp,{tabIndex:0,onClick:e=>{
16845
16858
  e.stopPropagation(),oe(N),N&&re?.onClick?.(e)}
package/lib/index.js CHANGED
@@ -3932,7 +3932,8 @@ readOnly:f,disabled:n}),placeholder:l,
3932
3932
  endAdornment:t.createElement(hm,null,t.createElement(Qo,{...k({disabled:n,
3933
3933
  readOnly:f,"aria-label":"toggle-button"})},t.createElement(am,{$isOpen:$,
3934
3934
  fill:M.colors.text.primary,width:8,height:8}))),style:w
3935
- }),!f&&!n&&t.createElement(cm,{$isOpen:L,...P({disabled:n,readOnly:f})
3935
+ }),!f&&!n&&t.createElement(cm,{className:"ItemsContainer",$isOpen:L,...P({
3936
+ disabled:n,readOnly:f})
3936
3937
  },x?t.createElement(dm,null,t.createElement(Bm,null)):t.createElement(t.Fragment,null,L&&0===_.length&&t.createElement(sm,{
3937
3938
  readOnly:!0},g||"No items"),L&&_.map(((e,n)=>{
3938
3939
  const r="string"==typeof e?e:e?.[m];return t.createElement(t.Fragment,{key:r
@@ -4765,8 +4766,8 @@ endAdornment:t.createElement(hm,null,!l&&!i&&!s&&L&&t.createElement(Qo,{
4765
4766
  style:{borderRadius:"50%"}},t.createElement(xo,{fill:_.colors.text.primary
4766
4767
  })),t.createElement(Qo,{...V({disabled:l,readOnly:i,"aria-label":"toggle-button"
4767
4768
  })},t.createElement(am,{$isOpen:B,fill:_.colors.text.primary,width:8,height:8
4768
- }))),style:b}),!i&&!l&&t.createElement(cm,{$isOpen:A,...T({disabled:l,readOnly:i
4769
- })
4769
+ }))),style:b}),!i&&!l&&t.createElement(cm,{className:"ItemsContainer",$isOpen:A,
4770
+ ...T({disabled:l,readOnly:i})
4770
4771
  },E?t.createElement(dm,null,t.createElement(Bm,null)):t.createElement(t.Fragment,null,A&&0===H.length&&t.createElement(t.Fragment,null,f?t.createElement(sm,null,t.createElement(um,{
4771
4772
  onClick:e=>{e.stopPropagation(),m&&m({inputValue:N,customValues:!0}),O("")}
4772
4773
  },y?.(N)||"Click to add")):t.createElement(sm,{readOnly:!0
@@ -4987,7 +4988,8 @@ Y([]),F(""),e.stopPropagation(),e.preventDefault()}},t.createElement(xo,{
4987
4988
  fill:O.colors.text.primary})),!z&&t.createElement(Qo,{...Z({disabled:c,
4988
4989
  readOnly:l,dir:O.direction})},t.createElement(am,{$isOpen:ne,
4989
4990
  fill:O.colors.text.primary,width:8,height:8}))),!l&&!c&&t.createElement(cm,{
4990
- $isOpen:K,...J({disabled:c,readOnly:l,dir:O.direction})
4991
+ className:"ItemsContainer",$isOpen:K,...J({disabled:c,readOnly:l,dir:O.direction
4992
+ })
4991
4993
  },_?t.createElement(dm,null,t.createElement(Bm,null)):t.createElement(t.Fragment,null,K&&(0===G.length||b)&&t.createElement(sm,{
4992
4994
  readOnly:!0},b?t.createElement(um,{tabIndex:0,onClick:e=>{
4993
4995
  e.stopPropagation(),oe(N),N&&re?.onClick?.(e)}
@@ -12744,6 +12746,10 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
12744
12746
  .bp5-portal {
12745
12747
  --rdp-accent-color: ${({theme:e})=>e.colors.common.accent};
12746
12748
  --rdp-accent-color-dark: #215db0;
12749
+ .SelectContent,
12750
+ .ItemsContainer {
12751
+ z-index: ${({theme:e})=>e.zIndex.modal||Wo.modal};
12752
+ }
12747
12753
  .bp5-overlay {
12748
12754
  .bp5-overlay-backdrop {
12749
12755
  bottom: 0;
@@ -12754,9 +12760,10 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
12754
12760
  opacity: 1;
12755
12761
  overflow: auto;
12756
12762
  user-select: none;
12763
+ z-index: ${({theme:e})=>e.zIndex.modal||Wo.modal};
12757
12764
  }
12758
12765
  .bp5-overlay-content {
12759
- z-index: ${({theme:e})=>e.zIndex.popover||Wo.popover};
12766
+ z-index: ${({theme:e})=>e.zIndex.modal||Wo.modal};
12760
12767
  border: 1px solid ${({theme:e})=>e.colors.border.light};
12761
12768
  box-shadow:
12762
12769
  0px 2px 4px ${({theme:e})=>Yo(e.colors.shadow,.06)},
@@ -13094,7 +13101,10 @@ className:`${e.className??""} bp-custom-dropdown bp-custom-dropdown-${e.name??""
13094
13101
  onChange:t=>{e?.onChange?.({target:{value:t?.id}})}})}
13095
13102
  return t.createElement(Vb,{itemToString:()=>"",type:"button"})},EF=e=>{
13096
13103
  const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:p="YYYY-MM-DD",portalContainer:f,value:m,useTime:v,...g}=e,y=document.querySelector('div[role="dialog"].DialogContent'),b=Hr(),w=t.useRef(m??null),[C,z]=t.useState(m??null),[M,x]=t.useState()
13097
- ;return t.createElement(CF,{
13104
+ ;return t.useEffect((()=>{let e=location.href
13105
+ ;document.body.addEventListener("click",(()=>{requestAnimationFrame((()=>{
13106
+ e!==location.href&&(x(!1),setTimeout((()=>{x(void 0)}),0),e=location.href)}))
13107
+ }),!0)}),[]),t.createElement(CF,{
13098
13108
  id:`${v?"datetime":"date"}-picker-container-${s??""}`.trim(),"aria-invalid":i,
13099
13109
  dir:b.direction},a&&t.createElement(Zo,{htmlFor:e.id,className:"input-label"
13100
13110
  },a,a&&o&&t.createElement(Jo,null,"*")),t.createElement(zF,{$isErrored:i,
@@ -13120,7 +13130,10 @@ value:C??""})),i&&c&&t.createElement(Dm,null,c))},SF=e=>{
13120
13130
  const{displayFormat:n="YYYY-MM-DD hh:mm A",...r}=e;return t.createElement(EF,{
13121
13131
  ...r,displayFormat:n,useTime:!0})},_F=e=>{
13122
13132
  const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",language:h,displayFormat:p="YYYY-MM-DD",portalContainer:f,value:m,useTime:v,...g}=e,y=document.querySelector('div[role="dialog"].DialogContent'),b=Hr(),w=t.useRef(m??[null,null]),[C,z]=t.useState(m??[null,null]),[M,x]=t.useState()
13123
- ;return t.createElement(CF,{
13133
+ ;return t.useEffect((()=>{let e=location.href
13134
+ ;document.body.addEventListener("click",(()=>{requestAnimationFrame((()=>{
13135
+ e!==location.href&&(x(!1),setTimeout((()=>{x(void 0)}),0),e=location.href)}))
13136
+ }),!0)}),[]),t.createElement(CF,{
13124
13137
  id:`${v?"datetime":"date"}-range-picker-container-${c??""}`.trim(),
13125
13138
  "aria-invalid":i,dir:b.direction},a&&t.createElement(Zo,{htmlFor:e.id,
13126
13139
  className:"input-label"
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.74",
3
+ "version": "2.0.75",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.74",
3
+ "version": "2.0.75",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.js",