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

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/index.cjs.js CHANGED
@@ -15555,6 +15555,8 @@ id:u,tabIndex:0},l,{ref:n,style:{...t.style,
15555
15555
  animationDuration:h.current?"0s":void 0}}),r&&i)))
15556
15556
  })),cj=on(nj)``,sj=on(lj)``,uj=on(oj)`
15557
15557
  border-bottom: 1px solid #f5f7f9;
15558
+ display: flex;
15559
+ flex-wrap: nowrap;
15558
15560
  `,dj=on(ij)`
15559
15561
  font-family: ${({theme:e})=>e.typography.fontFamily};
15560
15562
  background-color: unset;
@@ -15564,6 +15566,7 @@ animationDuration:h.current?"0s":void 0}}),r&&i)))
15564
15566
  font-weight: 400;
15565
15567
  font-size: 14px;
15566
15568
  line-height: 20px;
15569
+ white-space: nowrap;
15567
15570
  color: ${({theme:e})=>e.colors.text.primary};
15568
15571
  border-bottom: 2px solid transparent;
15569
15572
  border-radius: 4px 4px 0 0;
@@ -16532,12 +16535,12 @@ onClick:()=>{ce?.(Math.ceil(n.length/fe)-1)},disabled:l||c
16532
16535
  se()},disabled:!ae()||l||c},">"),e.createElement(wa,{variant:"secondary",
16533
16536
  onClick:()=>{ue()},disabled:!ae()||l||c
16534
16537
  },">>"))))))))),!v&&G&&p&&e.createElement(xB,null,p)))
16535
- },exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",onChange:a,defaultValue:o,renderTabsContent:i,value:l})=>e.createElement(cj,{
16536
- className:"TabsRoot",value:l,defaultValue:o,onValueChange:a
16537
- },e.createElement(uj,{className:"TabsList","aria-label":"Manage your account"
16538
+ },exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",onChange:a,defaultValue:o,label:i,renderTabsContent:l,value:c})=>e.createElement(cj,{
16539
+ className:"TabsRoot",value:c,defaultValue:o,onValueChange:a
16540
+ },e.createElement(uj,{className:"TabsList","aria-label":i
16538
16541
  },t.map((t=>e.createElement(dj,{className:"TabsTrigger",value:t?.[n]
16539
16542
  },t?.[r])))),t.map((t=>e.createElement(sj,{className:"TabsContent",value:t?.[n]
16540
- },i?i(t):null)))),
16543
+ },l?l(t):null)))),
16541
16544
  exports.TabsContent=sj,exports.TabsList=uj,exports.TabsRoot=cj,
16542
16545
  exports.TabsTrigger=dj,
16543
16546
  exports.Tag=Hv,exports.TextArea=qm,exports.ThemeProvider=t=>e.createElement(Zt,{
package/index.d.ts CHANGED
@@ -1231,6 +1231,7 @@ type TabsProps<T extends TabsItemProps = TabsItemProps> = {
1231
1231
  * Id accessor of tabes
1232
1232
  */
1233
1233
  idAccessor?: string;
1234
+ label?: string;
1234
1235
  /**
1235
1236
  * Name accessor of tabes
1236
1237
  */
@@ -1253,7 +1254,7 @@ type TabsProps<T extends TabsItemProps = TabsItemProps> = {
1253
1254
  /**
1254
1255
  * Tabs component is used to show a set of tabs to the user. It is used to show different sections of content in a single view. It can be used to show different categories of content.
1255
1256
  */
1256
- declare const Tabs: <T extends TabsItemProps>({ options, idAccessor, nameAccessor, onChange, defaultValue, renderTabsContent, value, }: TabsProps<T>) => react__default.JSX.Element;
1257
+ declare const Tabs: <T extends TabsItemProps>({ options, idAccessor, nameAccessor, onChange, defaultValue, label, renderTabsContent, value, }: TabsProps<T>) => react__default.JSX.Element;
1257
1258
 
1258
1259
  interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
1259
1260
  /**
package/index.js CHANGED
@@ -15748,6 +15748,8 @@ id:d,tabIndex:0},c,{ref:t,style:{...e.style,
15748
15748
  animationDuration:p.current?"0s":void 0}}),n&&l)))
15749
15749
  })),$j=En(Rj)``,Uj=En(jj)``,Yj=En(Fj)`
15750
15750
  border-bottom: 1px solid #f5f7f9;
15751
+ display: flex;
15752
+ flex-wrap: nowrap;
15751
15753
  `,Wj=En(Bj)`
15752
15754
  font-family: ${({theme:e})=>e.typography.fontFamily};
15753
15755
  background-color: unset;
@@ -15757,6 +15759,7 @@ animationDuration:p.current?"0s":void 0}}),n&&l)))
15757
15759
  font-weight: 400;
15758
15760
  font-size: 14px;
15759
15761
  line-height: 20px;
15762
+ white-space: nowrap;
15760
15763
  color: ${({theme:e})=>e.colors.text.primary};
15761
15764
  border-bottom: 2px solid transparent;
15762
15765
  border-radius: 4px 4px 0 0;
@@ -15768,12 +15771,12 @@ animationDuration:p.current?"0s":void 0}}),n&&l)))
15768
15771
  color: ${({theme:e})=>e.colors.text.link};
15769
15772
  border-color: ${({theme:e})=>e.colors.text.link};
15770
15773
  }
15771
- `,Gj=({options:e=[],idAccessor:n="id",nameAccessor:r="name",onChange:a,defaultValue:o,renderTabsContent:i,value:l})=>t.createElement($j,{
15772
- className:"TabsRoot",value:l,defaultValue:o,onValueChange:a
15773
- },t.createElement(Yj,{className:"TabsList","aria-label":"Manage your account"
15774
+ `,Gj=({options:e=[],idAccessor:n="id",nameAccessor:r="name",onChange:a,defaultValue:o,label:i,renderTabsContent:l,value:c})=>t.createElement($j,{
15775
+ className:"TabsRoot",value:c,defaultValue:o,onValueChange:a
15776
+ },t.createElement(Yj,{className:"TabsList","aria-label":i
15774
15777
  },e.map((e=>t.createElement(Wj,{className:"TabsTrigger",value:e?.[n]
15775
15778
  },e?.[r])))),e.map((e=>t.createElement(Uj,{className:"TabsContent",value:e?.[n]
15776
- },i?i(e):null)))),Kj=t.createContext({toasts:[],windowState:"focus",
15779
+ },l?l(e):null)))),Kj=t.createContext({toasts:[],windowState:"focus",
15777
15780
  addToast:()=>{},updateToasts:()=>{}
15778
15781
  }),qj="ToastProvider",[Zj,Xj,Qj]=Fn("Toast"),[Jj,e$]=Ln("Toast",[Qj]),[t$,n$]=Jj(qj),r$=e=>{
15779
15782
  const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:l=50,children:s}=e,[u,d]=m(null),[h,p]=m(0),f=r(!1),v=r(!1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.55",
3
+ "version": "2.0.0-beta.56",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",