freemium-ui 2.0.4 → 2.0.5

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
@@ -4218,13 +4218,13 @@ ref:n})):null})),Dv=on(Sv)`
4218
4218
  border-color: ${({theme:e})=>e.colors.border.hover};
4219
4219
  }
4220
4220
  `,Tv=e.forwardRef(((t,n)=>{
4221
- const{children:r,iconProps:a,onClose:o,showBorder:i=!1,hideClose:l=!1,avatarImgAlt:c,avatarImgSrc:s,avatarText:u,style:d,state:h,...p}=t,f=qt()
4222
- ;return e.createElement(kv,{$showBorder:i,style:d,className:"StyledTag",...p,
4221
+ const{children:r,iconProps:a,onClose:o,showBorder:i=!1,hideClose:l=!1,avatarImgAlt:c,avatarImgSrc:s,avatarText:u,style:d,state:h,iconSVGProps:p,...f}=t,m=qt()
4222
+ ;return e.createElement(kv,{$showBorder:i,style:d,className:"StyledTag",...f,
4223
4223
  ref:n},s||u?e.createElement(Dv,{className:"AvatarRoot"},e.createElement(Vv,{
4224
4224
  className:"AvatarImage",src:s,alt:c}),e.createElement(Lv,{
4225
4225
  className:"AvatarFallback",delayMs:600
4226
4226
  },u)):e.createElement("div",null),r,l?e.createElement("div",null):e.createElement(Av,{
4227
- ...a,onClick:o},e.createElement(Mr,{fill:f.colors.text.primary})))}))
4227
+ ...a,onClick:o},e.createElement(Mr,{...p,fill:m.colors.text.primary})))}))
4228
4228
  ;function Rv(e){
4229
4229
  throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')
4230
4230
  }var Pv,Iv={exports:{}};(Pv=Iv).exports=function(){var e,t;function n(){
@@ -16541,7 +16541,7 @@ className:"table-actions"
16541
16541
  },d&&e.createElement(e.Fragment,null,d),e.createElement(DB,{
16542
16542
  className:"table-header-component"},h??null),e.createElement(VB,{
16543
16543
  className:"pagination-actions"
16544
- },!m&&e.createElement(e.Fragment,null,e.createElement(fa,{variant:"secondary",
16544
+ },!m&&e.createElement(e.Fragment,null,e.createElement(fa,{variant:"primary",
16545
16545
  className:"pagination-text"},l&&!y?e.createElement(lv,{size:"small"
16546
16546
  }):e.createElement(e.Fragment,null,n.length>0?`${pe*fe+1} - ${me} of ${Z?""+(he.length>0?"Many":"-"):w??he.length??"-"}`:null)),e.createElement(wa,{
16547
16547
  variant:"secondary",className:"table-pagination-button",onClick:()=>{
package/lib/index.d.ts CHANGED
@@ -1310,6 +1310,7 @@ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
1310
1310
  * Props for the icon
1311
1311
  */
1312
1312
  iconProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
1313
+ iconSVGProps?: React.SVGProps<SVGSVGElement>;
1313
1314
  style?: React.CSSProperties;
1314
1315
  }
1315
1316
 
package/lib/index.js CHANGED
@@ -4204,13 +4204,13 @@ const{__scopeAvatar:n,delayMs:r,...a}=e,o=Qv("AvatarFallback",n),[l,c]=m(void 0=
4204
4204
  border-color: ${({theme:e})=>e.colors.border.hover};
4205
4205
  }
4206
4206
  `,lg=t.forwardRef(((e,n)=>{
4207
- const{children:r,iconProps:a,onClose:o,showBorder:i=!1,hideClose:l=!1,avatarImgAlt:c,avatarImgSrc:s,avatarText:u,style:d,state:h,...p}=e,f=vn()
4208
- ;return t.createElement(ig,{$showBorder:i,style:d,className:"StyledTag",...p,
4207
+ const{children:r,iconProps:a,onClose:o,showBorder:i=!1,hideClose:l=!1,avatarImgAlt:c,avatarImgSrc:s,avatarText:u,style:d,state:h,iconSVGProps:p,...f}=e,m=vn()
4208
+ ;return t.createElement(ig,{$showBorder:i,style:d,className:"StyledTag",...f,
4209
4209
  ref:n},s||u?t.createElement(ng,{className:"AvatarRoot"},t.createElement(rg,{
4210
4210
  className:"AvatarImage",src:s,alt:c}),t.createElement(ag,{
4211
4211
  className:"AvatarFallback",delayMs:600
4212
4212
  },u)):t.createElement("div",null),r,l?t.createElement("div",null):t.createElement(og,{
4213
- ...a,onClick:o},t.createElement(jr,{fill:f.colors.text.primary})))
4213
+ ...a,onClick:o},t.createElement(jr,{...p,fill:m.colors.text.primary})))
4214
4214
  })),cg=({itemIdentifier:e="id",label:n,id:r,items:a=[],onChange:o,placeholder:i,readOnly:l=!1,disabled:c=!1,isRequired:s=!1,itemToString:u,name:d,filterKey:h,width:p,useComboboxProps:f,useMultipleSelectionProps:m,emptyItemsText:v,getCustomMessage:g,onCustomValueAdd:y,customValues:b,inputValue:w,hideClear:C,hideArrow:z,removeSelectedItem:M,defaultSelectedItems:x=[],handleInputChange:S,isErrored:E,isMenuLoading:_,errorText:H,InputProps:D,itemComponent:V,isDynamicMenu:A,locale:L,maxAllowedLength:k,minAllowedLength:T,hideChips:I=!1,hideSelectedItem:P=!1,onBackSpace:R})=>{
4215
4215
  const O=vn(),[N,F]=t.useState(w??""),{getSelectedItemProps:B,getDropdownProps:$,selectedItems:j,removeSelectedItem:U,setSelectedItems:Y,addSelectedItem:W}=bv({
4216
4216
  initialSelectedItems:x,onStateChange:({selectedItems:e,type:t})=>{switch(t){
@@ -15798,7 +15798,7 @@ className:"table-actions"
15798
15798
  },d&&t.createElement(t.Fragment,null,d),t.createElement(s$,{
15799
15799
  className:"table-header-component"},h??null),t.createElement(u$,{
15800
15800
  className:"pagination-actions"
15801
- },!m&&t.createElement(t.Fragment,null,t.createElement(Ia,{variant:"secondary",
15801
+ },!m&&t.createElement(t.Fragment,null,t.createElement(Ia,{variant:"primary",
15802
15802
  className:"pagination-text"},l&&!y?t.createElement(kv,{size:"small"
15803
15803
  }):t.createElement(t.Fragment,null,r.length>0?`${pe*fe+1} - ${me} of ${Z?""+(he.length>0?"Many":"-"):w??he.length??"-"}`:null)),t.createElement($a,{
15804
15804
  variant:"secondary",className:"table-pagination-button",onClick:()=>{
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
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.4",
3
+ "version": "2.0.5",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.js",