freemium-ui 2.0.35 → 2.0.37
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 +17 -14
- package/lib/index.js +597 -594
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -2187,7 +2187,7 @@ className:`input-helper ${t.className??""}`.trim()},t.children),Cc=yr.textarea`
|
|
|
2187
2187
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2188
2188
|
background-color: ${({theme:e})=>e.colors.fill.surface};
|
|
2189
2189
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
2190
|
-
direction: ${({theme:e})=>e.direction};
|
|
2190
|
+
direction: ${({theme:e,$forceInputDir:t})=>t||e.direction};
|
|
2191
2191
|
&::placeholder {
|
|
2192
2192
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2193
2193
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -2214,7 +2214,7 @@ className:`input-helper ${t.className??""}`.trim()},t.children),Cc=yr.textarea`
|
|
|
2214
2214
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2215
2215
|
background-color: ${({theme:e})=>e.colors.fill.surface};
|
|
2216
2216
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
2217
|
-
direction: ${({theme:e
|
|
2217
|
+
direction: ${({theme:e,$forceInputDir:t})=>t||e.direction};
|
|
2218
2218
|
&::placeholder {
|
|
2219
2219
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
2220
2220
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -2233,7 +2233,7 @@ className:`input-helper ${t.className??""}`.trim()},t.children),Cc=yr.textarea`
|
|
|
2233
2233
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
2234
2234
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
2235
2235
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
2236
|
-
direction: ${({theme:e
|
|
2236
|
+
direction: ${({theme:e,$forceInputDir:t})=>t||e.direction};
|
|
2237
2237
|
div.end-adornment {
|
|
2238
2238
|
display: grid;
|
|
2239
2239
|
place-content: center;
|
|
@@ -2242,6 +2242,9 @@ className:`input-helper ${t.className??""}`.trim()},t.children),Cc=yr.textarea`
|
|
|
2242
2242
|
display: grid;
|
|
2243
2243
|
place-content: center;
|
|
2244
2244
|
}
|
|
2245
|
+
div.end-max-length {
|
|
2246
|
+
text-align: ${({theme:e,$forceInputDir:t})=>"rtl"===(t||e.direction)?"right":"left"};
|
|
2247
|
+
}
|
|
2245
2248
|
`,xc=yr.div`
|
|
2246
2249
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
2247
2250
|
margin-left: 4px;
|
|
@@ -2255,7 +2258,7 @@ className:`input-helper ${t.className??""}`.trim()},t.children),Cc=yr.textarea`
|
|
|
2255
2258
|
background-color: ${({theme:e})=>e.colors.fill.surface};
|
|
2256
2259
|
border-radius: 4px;
|
|
2257
2260
|
transition: all 0.2s ease-in-out;
|
|
2258
|
-
direction: ${({theme:e
|
|
2261
|
+
direction: ${({theme:e,$forceInputDir:t})=>t||e.direction};
|
|
2259
2262
|
&:hover {
|
|
2260
2263
|
border-color: ${({theme:e,disabled:t,$isErrored:n})=>t?e.colors.border.normal:n?e.colors.border.error:e.colors.border.hover};
|
|
2261
2264
|
}
|
|
@@ -2279,24 +2282,24 @@ $inline:n,$isErrored:c,disabled:g.disabled,style:d},t&&e.createElement(Ho,{
|
|
|
2279
2282
|
htmlFor:g.id,className:"input-label",...f
|
|
2280
2283
|
},t,t&&l&&e.createElement(ko,null,"*")),e.createElement(Ec,{
|
|
2281
2284
|
className:"input-container",disabled:g.disabled,$isErrored:c,...m,
|
|
2282
|
-
forceInputDir:v},r&&e.createElement("div",{className:"start-label"
|
|
2283
|
-
},r),e.createElement(Mc,{className:"input-basic"
|
|
2285
|
+
$forceInputDir:v},r&&e.createElement("div",{className:"start-label"
|
|
2286
|
+
},r),e.createElement(Mc,{className:"input-basic",$forceInputDir:v
|
|
2284
2287
|
},o&&e.createElement("div",{className:"start-adornment"},o),e.createElement(zc,{
|
|
2285
|
-
maxLength:p,...g,"aria-invalid":c,ref:y,style:u
|
|
2288
|
+
maxLength:p,...g,"aria-invalid":c,ref:y,style:u,$forceInputDir:v
|
|
2286
2289
|
}),s&&(p||0)>0&&e.createElement("div",{className:"end-max-length"
|
|
2287
2290
|
},`${"string"==typeof g.value?g.value.length:`${g.value||""}`.length}/${p||0}`),i&&e.createElement("div",{
|
|
2288
2291
|
className:"end-adornment"},i)),a&&e.createElement("div",{className:"end-label"
|
|
2289
|
-
},a)),c&&h&&e.createElement(wc,null,h)))),Hc=e.forwardRef((({label:t,inline:n,startLabel:r,startAdornment:o,endLabel:a,endAdornment:i,isRequired:l,isErrored:c,showCount:s,inputStyle:u,style:d,errorText:h,maxLength:p,...
|
|
2290
|
-
$inline:n,$isErrored:c,disabled:
|
|
2291
|
-
htmlFor:
|
|
2292
|
+
},a)),c&&h&&e.createElement(wc,null,h)))),Hc=e.forwardRef((({label:t,inline:n,startLabel:r,startAdornment:o,endLabel:a,endAdornment:i,isRequired:l,isErrored:c,showCount:s,inputStyle:u,style:d,errorText:h,maxLength:p,forceInputDir:f,...m},v)=>e.createElement(Sc,{
|
|
2293
|
+
$inline:n,$isErrored:c,disabled:m.disabled,style:d},e.createElement(Ho,{
|
|
2294
|
+
htmlFor:m.id,className:"input-label"
|
|
2292
2295
|
},t,t&&l&&e.createElement(ko,null,"*")),e.createElement(Ec,{
|
|
2293
|
-
className:"input-container",disabled:
|
|
2296
|
+
className:"input-container",disabled:m.disabled,$isErrored:c
|
|
2294
2297
|
},r&&e.createElement("div",{className:"start-label"},r),e.createElement(Mc,{
|
|
2295
|
-
className:"input-basic",style:{flexDirection:"column"}
|
|
2298
|
+
className:"input-basic",style:{flexDirection:"column"},$forceInputDir:f
|
|
2296
2299
|
},o&&e.createElement("div",{className:"start-adornment"},o),e.createElement(Cc,{
|
|
2297
|
-
maxLength:p,...
|
|
2300
|
+
maxLength:p,...m,"aria-invalid":c,ref:v,style:u,$forceInputDir:f
|
|
2298
2301
|
}),s&&(p||0)>0&&e.createElement(xc,{isTa:!0,className:"end-max-length"
|
|
2299
|
-
},`${"string"==typeof
|
|
2302
|
+
},`${"string"==typeof m.value?m.value.length:`${m.value||""}`.length}/${p||0}`),i&&e.createElement("div",{
|
|
2300
2303
|
className:"end-adornment"},i)),a&&e.createElement("div",{className:"end-label"
|
|
2301
2304
|
},a)),c&&h&&e.createElement(wc,null,h)))),Dc={mini:2,small:2.5,medium:4,big:5
|
|
2302
2305
|
},kc={slow:1,medium:.7,fast:.4},Ac={mini:12,small:16,medium:24,big:32
|