freemium-ui 2.0.0-beta.54 → 2.0.0-beta.55

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 (3) hide show
  1. package/index.cjs.js +24 -22
  2. package/index.js +18 -18
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -2122,9 +2122,9 @@ const{__scopeCheckbox:r,forceMount:a,...o}=t,i=Es("CheckboxIndicator",r)
2122
2122
  `,Ts=({isRequired:t,isErrored:n,className:r,readOnly:a,label:o,...i})=>{
2123
2123
  const l=qt();return e.createElement(As,null,e.createElement(ks,{
2124
2124
  className:`CheckboxRoot ${r??""}`.trim(),required:t,"aria-invalid":n,
2125
- "aria-label":o,"aria-required":t,"aria-readonly":a,"aria-disabled":i.disabled,
2126
- ...i},e.createElement(Ls,{className:"CheckboxIndicator"
2127
- },"indeterminate"===i.checked?e.createElement(Dr,{
2125
+ "aria-label":o||"Checkbox","aria-required":t,"aria-readonly":a,
2126
+ "aria-disabled":i.disabled,...i},e.createElement(Ls,{
2127
+ className:"CheckboxIndicator"},"indeterminate"===i.checked?e.createElement(Dr,{
2128
2128
  className:"toggle-indeterminate",width:8,height:6,fill:l.colors.common.accent
2129
2129
  }):e.createElement(xr,{className:"toggle-on",width:8,height:6,
2130
2130
  fill:l.colors.common.accent}))),o&&e.createElement(Br,{
@@ -16419,27 +16419,29 @@ index:r})
16419
16419
  fill:I.colors.common.accent})))})))),E&&_&&e.createElement(ws,null,_))
16420
16420
  },exports.Popover=CI,
16421
16421
  exports.PopoverClose=wI,exports.Radio=({checked:t,className:n,disabled:r,id:a,isRequired:o,label:i,name:l,readOnly:c,...s})=>e.createElement(MI,{
16422
- className:`RadioGroupRoot ${n??""}`.trim(),id:a,name:l,"aria-label":i,
16423
- value:t?"default":"",required:o,disabled:r,"aria-readonly":c,...s
16424
- },e.createElement(SI,null,e.createElement(EI,{checked:t,"aria-checked":t,
16425
- className:"RadioGroupItem",disabled:r,"aria-readonly":c,value:"default",
16426
- id:"default"},e.createElement(xI,{className:"RadioGroupIndicator"
16427
- })),i&&e.createElement(Br,{className:"RadioLabel",disabled:r,"aria-readonly":c,
16428
- "aria-label":i,htmlFor:a
16429
- },i,i&&o&&e.createElement(jr,null,"*")))),exports.RadioGroup=({options:t,defaultValue:n,idAccessor:r="id",nameAccessor:a="name",onChange:o,className:i,id:l,isErrored:c,errorText:s,disabled:u,isRequired:d,label:h,readOnly:p,value:f,...m})=>e.createElement(zI,null,h&&e.createElement(Fr,{
16422
+ className:`RadioGroupRoot ${n??""}`.trim(),id:a,name:l,
16423
+ "aria-label":i||"Radio button",value:t?"default":"",required:o,disabled:r,
16424
+ "aria-readonly":c,...s},e.createElement(SI,null,e.createElement(EI,{checked:t,
16425
+ "aria-checked":t,className:"RadioGroupItem",disabled:r,"aria-readonly":c,
16426
+ value:"default",id:"default"},e.createElement(xI,{
16427
+ className:"RadioGroupIndicator"})),i&&e.createElement(Br,{
16428
+ className:"RadioLabel",disabled:r,"aria-readonly":c,"aria-label":i,htmlFor:a
16429
+ },i,i&&o&&e.createElement(jr,null,"*")))),
16430
+ exports.RadioGroup=({options:t,defaultValue:n,idAccessor:r="id",nameAccessor:a="name",onChange:o,className:i,id:l,isErrored:c,errorText:s,disabled:u,isRequired:d,label:h,readOnly:p,value:f,...m})=>e.createElement(zI,null,h&&e.createElement(Fr,{
16430
16431
  id:l,className:"input-label"
16431
16432
  },h,h&&d&&e.createElement(jr,null,"*")),e.createElement(MI,{defaultValue:n,
16432
- value:f,onValueChange:e=>{p||u||o?.(e)},"aria-readonly":p,id:l,"aria-label":h,
16433
- "aria-labelledby":l,className:`RadioGroupRoot ${i??""}`.trim(),...m
16434
- },t?.map((t=>e.createElement(SI,{key:t?.[r],className:"RadioContainer"
16435
- },e.createElement(EI,{className:"RadioGroupItem",disabled:t.disabled,
16436
- value:t?.[r],id:t?.[r],"aria-label":t?.[a]},e.createElement(xI,{
16437
- className:"RadioGroupIndicator"})),e.createElement(Br,{className:"RadioLabel",
16438
- disabled:t.disabled,htmlFor:t?.[r]
16439
- },t?.[a]))))),c&&s&&e.createElement(ws,null,s)),
16440
- exports.RadixMenuItem=Tc,exports.RadixSelectItem=nh,
16441
- exports.Reorder=yF,exports.RequiredIndicator=jr,
16442
- exports.StyledLabel=Fr,exports.Table=t=>{
16433
+ value:f,onValueChange:e=>{p||u||o?.(e)},"aria-readonly":p,id:l,
16434
+ "aria-label":h||"Radio Group","aria-labelledby":h?l:void 0,
16435
+ className:`RadioGroupRoot ${i??""}`.trim(),...m},t?.map((t=>e.createElement(SI,{
16436
+ key:t?.[r],className:"RadioContainer"},e.createElement(EI,{
16437
+ className:"RadioGroupItem",disabled:t.disabled,value:t?.[r],id:t?.[r],
16438
+ "aria-label":t?.[a]},e.createElement(xI,{className:"RadioGroupIndicator"
16439
+ })),e.createElement(Br,{className:"RadioLabel",disabled:t.disabled,
16440
+ htmlFor:t?.[r]
16441
+ },t?.[a]))))),c&&s&&e.createElement(ws,null,s)),exports.RadixMenuItem=Tc,
16442
+ exports.RadixSelectItem=nh,
16443
+ exports.Reorder=yF,exports.RequiredIndicator=jr,exports.StyledLabel=Fr,
16444
+ exports.Table=t=>{
16443
16445
  const{data:n,columns:a,showFooter:o=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,showTableOnLoading:g,hideLoaderOnTopPagination:y,hideActions:b,count:w,pageIndex:C=0,pageSize:z=20,enablePreviousPage:M,enableNextPage:x,hideColumnSettings:E=!0,hideBottomPagination:S,rowMenuOptions:_,onPreviousPageClick:H,onNextPageClick:D,disableRowSelect:V,hideSelectAllInTable:L,onSelectAllRows:A,onRowSelect:k,onMenuOptionSelect:T,onRowClick:R,columnOrder:P,setColumnOrder:I,setHiddenColumns:O,hiddenColumns:N,selectedRowIds:F={},setSelectedRowIds:B,dataKey:j="id",cellPropGetter:$,setPageIndex:U,rowPropGetter:Y}=t,W=qt(),[G,K]=e.useState(!v),q={
16444
16446
  accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
16445
16447
  display:e=>e,group:e=>e},Z=-1===w||void 0===w,X=e.useMemo((()=>[...V?[]:[{
package/index.js CHANGED
@@ -2131,9 +2131,9 @@ pointerEvents:"none",...e.style}})))})))`
2131
2131
  `,au=({isRequired:e,isErrored:n,className:r,readOnly:a,label:o,...i})=>{
2132
2132
  const l=vn();return t.createElement(nu,null,t.createElement(ru,{
2133
2133
  className:`CheckboxRoot ${r??""}`.trim(),required:e,"aria-invalid":n,
2134
- "aria-label":o,"aria-required":e,"aria-readonly":a,"aria-disabled":i.disabled,
2135
- ...i},t.createElement(tu,{className:"CheckboxIndicator"
2136
- },"indeterminate"===i.checked?t.createElement(qr,{
2134
+ "aria-label":o||"Checkbox","aria-required":e,"aria-readonly":a,
2135
+ "aria-disabled":i.disabled,...i},t.createElement(tu,{
2136
+ className:"CheckboxIndicator"},"indeterminate"===i.checked?t.createElement(qr,{
2137
2137
  className:"toggle-indeterminate",width:8,height:6,fill:l.colors.common.accent
2138
2138
  }):t.createElement(Ur,{className:"toggle-on",width:8,height:6,
2139
2139
  fill:l.colors.common.accent}))),o&&t.createElement(ca,{
@@ -12948,24 +12948,24 @@ onInteractOutside:()=>u?.(),side:g,align:o,sideOffset:8,avoidCollisions:l
12948
12948
  display: flex;
12949
12949
  align-items: center;
12950
12950
  `,iO=({checked:e,className:n,disabled:r,id:a,isRequired:o,label:i,name:l,readOnly:c,...s})=>t.createElement(nO,{
12951
- className:`RadioGroupRoot ${n??""}`.trim(),id:a,name:l,"aria-label":i,
12952
- value:e?"default":"",required:o,disabled:r,"aria-readonly":c,...s
12953
- },t.createElement(oO,null,t.createElement(aO,{checked:e,"aria-checked":e,
12954
- className:"RadioGroupItem",disabled:r,"aria-readonly":c,value:"default",
12955
- id:"default"},t.createElement(rO,{className:"RadioGroupIndicator"
12956
- })),i&&t.createElement(ca,{className:"RadioLabel",disabled:r,"aria-readonly":c,
12957
- "aria-label":i,htmlFor:a
12951
+ className:`RadioGroupRoot ${n??""}`.trim(),id:a,name:l,
12952
+ "aria-label":i||"Radio button",value:e?"default":"",required:o,disabled:r,
12953
+ "aria-readonly":c,...s},t.createElement(oO,null,t.createElement(aO,{checked:e,
12954
+ "aria-checked":e,className:"RadioGroupItem",disabled:r,"aria-readonly":c,
12955
+ value:"default",id:"default"},t.createElement(rO,{
12956
+ className:"RadioGroupIndicator"})),i&&t.createElement(ca,{
12957
+ className:"RadioLabel",disabled:r,"aria-readonly":c,"aria-label":i,htmlFor:a
12958
12958
  },i,i&&o&&t.createElement(sa,null,"*")))),lO=({options:e,defaultValue:n,idAccessor:r="id",nameAccessor:a="name",onChange:o,className:i,id:l,isErrored:c,errorText:s,disabled:u,isRequired:d,label:h,readOnly:p,value:f,...m})=>t.createElement(tO,null,h&&t.createElement(la,{
12959
12959
  id:l,className:"input-label"
12960
12960
  },h,h&&d&&t.createElement(sa,null,"*")),t.createElement(nO,{defaultValue:n,
12961
- value:f,onValueChange:e=>{p||u||o?.(e)},"aria-readonly":p,id:l,"aria-label":h,
12962
- "aria-labelledby":l,className:`RadioGroupRoot ${i??""}`.trim(),...m
12963
- },e?.map((e=>t.createElement(oO,{key:e?.[r],className:"RadioContainer"
12964
- },t.createElement(aO,{className:"RadioGroupItem",disabled:e.disabled,
12965
- value:e?.[r],id:e?.[r],"aria-label":e?.[a]},t.createElement(rO,{
12966
- className:"RadioGroupIndicator"})),t.createElement(ca,{className:"RadioLabel",
12967
- disabled:e.disabled,htmlFor:e?.[r]
12968
- },e?.[a]))))),c&&s&&t.createElement($s,null,s))
12961
+ value:f,onValueChange:e=>{p||u||o?.(e)},"aria-readonly":p,id:l,
12962
+ "aria-label":h||"Radio Group","aria-labelledby":h?l:void 0,
12963
+ className:`RadioGroupRoot ${i??""}`.trim(),...m},e?.map((e=>t.createElement(oO,{
12964
+ key:e?.[r],className:"RadioContainer"},t.createElement(aO,{
12965
+ className:"RadioGroupItem",disabled:e.disabled,value:e?.[r],id:e?.[r],
12966
+ "aria-label":e?.[a]},t.createElement(rO,{className:"RadioGroupIndicator"
12967
+ })),t.createElement(ca,{className:"RadioLabel",disabled:e.disabled,
12968
+ htmlFor:e?.[r]},e?.[a]))))),c&&s&&t.createElement($s,null,s))
12969
12969
  ;const cO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement
12970
12970
  ;function sO(e){const t=Object.prototype.toString.call(e)
12971
12971
  ;return"[object Window]"===t||"[object global]"===t}function uO(e){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.54",
3
+ "version": "2.0.0-beta.55",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",