rbro-tat-uds 1.5.37 → 1.5.38
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/dist/index.cjs.js +3 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -40
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -1349,8 +1349,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[o2]+=1);const E3=e=>o.createE
|
|
1349
1349
|
`,Y6=D.div`
|
1350
1350
|
display: flex;
|
1351
1351
|
gap: 4px;
|
1352
|
-
align-items:
|
1353
|
-
height: 16px;
|
1352
|
+
align-items: flex-start;
|
1354
1353
|
|
1355
1354
|
${e=>!e.$leftHelperText&&e.$rightHelperText&&h`
|
1356
1355
|
justify-content: end;
|
@@ -1359,9 +1358,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[o2]+=1);const E3=e=>o.createE
|
|
1359
1358
|
& > div {
|
1360
1359
|
flex: 1;
|
1361
1360
|
display: flex;
|
1362
|
-
align-items:
|
1361
|
+
align-items: flex-start;
|
1363
1362
|
gap: 4px;
|
1364
|
-
height: inherit;
|
1365
1363
|
|
1366
1364
|
& > span {
|
1367
1365
|
flex: 1;
|
@@ -1378,7 +1376,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[o2]+=1);const E3=e=>o.createE
|
|
1378
1376
|
line-height: 1em;
|
1379
1377
|
color: ${e=>e.$helperIntent&&["info","success","danger","warning"].includes(e.$helperIntent)?We[e.$helperIntent]:t.gray_700};
|
1380
1378
|
}
|
1381
|
-
`,Dt=x.forwardRef(({children:e,label:r="Label",labelFontSize:a=14,required:n=!1,showHelpButton:l=!1,leftHelperText:s,rightHelperText:d,helperTextSize:c=12,helperIntent:p="info",labelFor:C,helpButtonOnClick:m,rightText:u,showLeftHelperIcon:g=!0,..._},v)=>{const b={info:i.jsx(W,{icon:"info_filled",color:t.gray_500,size:14
|
1379
|
+
`,Dt=x.forwardRef(({children:e,label:r="Label",labelFontSize:a=14,required:n=!1,showHelpButton:l=!1,leftHelperText:s,rightHelperText:d,helperTextSize:c=12,helperIntent:p="info",labelFor:C,helpButtonOnClick:m,rightText:u,showLeftHelperIcon:g=!0,..._},v)=>{const b={info:i.jsx(W,{icon:"info_filled",color:t.gray_500,size:14}),success:i.jsx(W,{icon:"checkmark_filled",color:t.success_600,size:14}),warning:i.jsx(W,{icon:"warning_filled",color:t.warning_500,size:14}),danger:i.jsx(W,{icon:"warning_filled",color:t.danger_500,size:14})};return i.jsxs(I6,{ref:v,$label:r,$labelFontSize:a,$required:n,$showHelpButton:l,$leftHelperText:s,$rightHelperText:d,$helperIntent:p,$labelFor:C,$helpButtonOnClick:m,..._,children:[(r||n||l)&&i.jsxs(G6,{$labelFontSize:a,children:[n&&i.jsx(W,{icon:"asterix",size:8,color:t.danger_500}),i.jsx("label",{htmlFor:C,children:r}),i.jsxs("div",{children:[u&&typeof u=="string"&&i.jsx("span",{children:u}),l&&i.jsx(W,{style:{cursor:"pointer",paddingTop:"1px"},onClick:m,size:a===16?18:16,color:t.info_600,icon:"hint"})]})]}),e,(typeof s=="string"&&!!s.length||typeof d=="string"&&!!d.length)&&i.jsxs(Y6,{$leftHelperText:s,$rightHelperText:d,$helperTextSize:c,$helperIntent:p,children:[typeof s=="string"&&!!s.length&&i.jsxs("div",{children:[g&&b[p],i.jsx("span",{children:s})]}),i.jsx("span",{children:d})]})]})});Dt.displayName="FormField";const U6=[32,40,48],q6=D.div`
|
1382
1380
|
display: flex;
|
1383
1381
|
justify-content: center;
|
1384
1382
|
align-items: center;
|