freemium-ui 2.0.0-beta.31 → 2.0.0-beta.32

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 (4) hide show
  1. package/index.cjs.js +3378 -3380
  2. package/index.d.ts +1 -1
  3. package/index.js +11 -13
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -557,7 +557,7 @@ declare const Input: react__default.ForwardRefExoticComponent<Omit<InputProps, "
557
557
  /**
558
558
  * TextArea displays a multi-line input box on the user interface and enables assigning a value to it. It is used to take user input for large text data.
559
559
  */
560
- declare const TextArea: ({ label, inline, startLabel, startAdornment, endLabel, endAdornment, isRequired, isErrored, showCount, inputStyle, style, errorText, ref, maxLength, ...props }: TextAreaProps) => react__default.JSX.Element;
560
+ declare const TextArea: react__default.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & react__default.RefAttributes<HTMLTextAreaElement>>;
561
561
 
562
562
  type LoaderSizes = 'mini' | 'small' | 'medium' | 'big';
563
563
  type LoaderSpeeds = 'slow' | 'medium' | 'fast';
package/index.js CHANGED
@@ -3484,12 +3484,11 @@ hm.stateChangeTypes=cm;const pm=En.textarea`
3484
3484
  outline: unset;
3485
3485
  padding: unset;
3486
3486
  margin: unset;
3487
+ color: ${({theme:e})=>e.colors.text.primary};
3487
3488
  line-height: ${({theme:e})=>e.typography.primary.lineHeight};
3488
3489
  font-weight: ${({theme:e})=>e.typography.primary.fontWeight};
3489
3490
  font-size: ${({theme:e})=>e.typography.primary.fontSize};
3490
3491
  font-family: ${({theme:e})=>e.typography.fontFamily};
3491
- background-color: ${({theme:e})=>e.colors.fill.surface};
3492
- color: ${({theme:e})=>e.colors.text.primary};
3493
3492
  &::placeholder {
3494
3493
  font-family: ${({theme:e})=>e.typography.fontFamily};
3495
3494
  font-size: ${({theme:e})=>e.typography.primary.fontSize};
@@ -3509,8 +3508,6 @@ hm.stateChangeTypes=cm;const pm=En.textarea`
3509
3508
  font-weight: ${({theme:e})=>e.typography.primary.fontWeight};
3510
3509
  font-size: ${({theme:e})=>e.typography.primary.fontSize};
3511
3510
  font-family: ${({theme:e})=>e.typography.fontFamily};
3512
- background-color: ${({theme:e})=>e.colors.fill.surface};
3513
- color: ${({theme:e})=>e.colors.text.primary};
3514
3511
  &::placeholder {
3515
3512
  font-family: ${({theme:e})=>e.typography.fontFamily};
3516
3513
  font-size: ${({theme:e})=>e.typography.primary.fontSize};
@@ -3578,18 +3575,19 @@ className:"input-basic"},a&&t.createElement("div",{className:"start-adornment"
3578
3575
  }),s&&(p||0)>0&&t.createElement("div",{className:"end-max-length"
3579
3576
  },`${"string"==typeof v.value?v.value.length:`${v.value||""}`.length}/${p||0}`),i&&t.createElement("div",{
3580
3577
  className:"end-adornment"},i)),o&&t.createElement("div",{className:"end-label"
3581
- },o)),c&&h&&t.createElement(Oc,null,h)))),wm=({label:e,inline:n,startLabel:r,startAdornment:a,endLabel:o,endAdornment:i,isRequired:l,isErrored:c,showCount:s,inputStyle:u,style:d,errorText:h,ref:p,maxLength:f,...m})=>t.createElement(ym,{
3582
- inline:n,isErrored:c,disabled:m.disabled,style:d},t.createElement(Fn,{
3583
- htmlFor:m.id,className:"input-label"
3578
+ },o)),c&&h&&t.createElement(Oc,null,h)))),wm=t.forwardRef((({label:e,inline:n,startLabel:r,startAdornment:a,endLabel:o,endAdornment:i,isRequired:l,isErrored:c,showCount:s,inputStyle:u,style:d,errorText:h,maxLength:p,...f},m)=>t.createElement(ym,{
3579
+ inline:n,isErrored:c,disabled:f.disabled,style:d},t.createElement(Fn,{
3580
+ htmlFor:f.id,className:"input-label"
3584
3581
  },e,l&&t.createElement(jn,null,"*")),t.createElement(gm,{
3585
- className:"input-container",disabled:m.disabled,isErrored:c
3582
+ className:"input-container",disabled:f.disabled,isErrored:c
3586
3583
  },r&&t.createElement("div",{className:"start-label"},r),t.createElement(mm,{
3587
- className:"input-basic"},a&&t.createElement("div",{className:"start-adornment"
3588
- },a),t.createElement(pm,{maxLength:f,...m,"aria-invalid":c,ref:p,style:u
3589
- }),s&&(f||0)>0&&t.createElement(vm,{isTa:!0,className:"end-max-length"
3590
- },`${"string"==typeof m.value?m.value.length:`${m.value||""}`.length}/${f||0}`),i&&t.createElement("div",{
3584
+ className:"input-basic",style:{flexDirection:"column"}
3585
+ },a&&t.createElement("div",{className:"start-adornment"},a),t.createElement(pm,{
3586
+ maxLength:p,...f,"aria-invalid":c,ref:m,style:u
3587
+ }),s&&(p||0)>0&&t.createElement(vm,{isTa:!0,className:"end-max-length"
3588
+ },`${"string"==typeof f.value?f.value.length:`${f.value||""}`.length}/${p||0}`),i&&t.createElement("div",{
3591
3589
  className:"end-adornment"},i)),o&&t.createElement("div",{className:"end-label"
3592
- },o)),c&&h&&t.createElement(Oc,null,h)),Cm={mini:2,small:2.5,medium:4,big:5
3590
+ },o)),c&&h&&t.createElement(Oc,null,h)))),Cm={mini:2,small:2.5,medium:4,big:5
3593
3591
  },zm={slow:1,medium:.7,fast:.4},Mm={mini:12,small:16,medium:24,big:32},xm=Hn`
3594
3592
  to { transform: rotate(360deg); }
3595
3593
  `,Sm=En.div`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-ui",
3
- "version": "2.0.0-beta.31",
3
+ "version": "2.0.0-beta.32",
4
4
  "description": "React Ui Components for Freemium Apps",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",