@elliemae/ds-form 1.53.8 → 1.53.9

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.
@@ -37,7 +37,9 @@ function getSvgPath(_ref) {
37
37
  extraSizeForTopH = 0;
38
38
  }
39
39
 
40
- var pathMiddle = '' + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius : '') + 'v' + (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius : '') + 'h' + (-width + 2 * cornerWidth - extraSizeForH) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius : '') + 'v' + (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius : '');
40
+ var pathMiddle = '' + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius : '') + 'v' + (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + ( // right vertical line
41
+ hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius : '') + 'h' + (-width + 2 * cornerWidth - extraSizeForH) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius : '') + 'v' + (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + ( // left vertical line
42
+ hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius : '');
41
43
  var path;
42
44
 
43
45
  {
@@ -1 +1 @@
1
- {"version":3,"file":"getSvgPath.js","sources":["../../../src/FloatingLabelInput/getSvgPath.tsx"],"sourcesContent":["/* eslint-disable prefer-template,max-statements,no-nested-ternary */\nfunction getSvgPath({\n labelWidth = 50,\n width = 200,\n height = 35,\n radiusStyle,\n hasRightRadius = true,\n hasLeftRadius = true,\n}) {\n const notchWidth = labelWidth;\n const isRtl = false;\n\n const radius = parseFloat(radiusStyle);\n const cornerWidth = radius + 1.3;\n const leadingStrokeLength = 4;\n const paddedNotchWidth = notchWidth + 8;\n\n let extraSizeForH = 0;\n let extraSizeForLeftV = 0;\n let extraSizeForRightV = 0;\n let extraSizeForTopH = radius;\n\n if (!hasRightRadius) {\n extraSizeForH += radius;\n extraSizeForRightV = radius * 2;\n }\n if (!hasLeftRadius) {\n extraSizeForH += radius;\n extraSizeForLeftV = radius * 2;\n }\n\n if ((!hasLeftRadius && hasRightRadius) || (hasRightRadius && hasLeftRadius)) {\n extraSizeForTopH = 0;\n }\n\n const pathMiddle =\n '' +\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius\n : '') +\n 'v' +\n (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + // right vertical line\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius\n : '') +\n 'h' +\n (-width + 2 * cornerWidth - extraSizeForH) +\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius\n : '') +\n 'v' +\n (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + // left vertical line\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius\n : '');\n\n let path;\n if (!isRtl) {\n path =\n '' +\n 'M' +\n (cornerWidth + leadingStrokeLength + paddedNotchWidth) +\n ',' +\n 0.5 +\n 'h' +\n (width -\n 2 * cornerWidth -\n paddedNotchWidth -\n leadingStrokeLength +\n extraSizeForTopH) +\n pathMiddle +\n 'h' +\n leadingStrokeLength;\n } else {\n path =\n '' +\n 'M' +\n (width - cornerWidth - leadingStrokeLength) +\n ',' +\n 0.5 +\n 'h' +\n leadingStrokeLength +\n pathMiddle +\n 'h' +\n (width - 2 * cornerWidth - paddedNotchWidth - leadingStrokeLength);\n }\n return path;\n}\n\nexport default getSvgPath;\n"],"names":["getSvgPath","labelWidth","width","height","radiusStyle","hasRightRadius","hasLeftRadius","notchWidth","radius","parseFloat","cornerWidth","leadingStrokeLength","paddedNotchWidth","extraSizeForH","extraSizeForLeftV","extraSizeForRightV","extraSizeForTopH","pathMiddle","path"],"mappings":";;AAAA;AACA,SAASA,UAAT,OAOG;AAAA,6BANDC,UAMC;AAAA,MANDA,UAMC,gCANY,EAMZ;AAAA,wBALDC,KAKC;AAAA,MALDA,KAKC,2BALO,GAKP;AAAA,yBAJDC,MAIC;AAAA,MAJDA,MAIC,4BAJQ,EAIR;AAAA,MAHDC,WAGC,QAHDA,WAGC;AAAA,iCAFDC,cAEC;AAAA,MAFDA,cAEC,oCAFgB,IAEhB;AAAA,gCADDC,aACC;AAAA,MADDA,aACC,mCADe,IACf;AACD,MAAMC,UAAU,GAAGN,UAAnB;AAGA,MAAMO,MAAM,GAAGC,UAAU,CAACL,WAAD,CAAzB;AACA,MAAMM,WAAW,GAAGF,MAAM,GAAG,GAA7B;AACA,MAAMG,mBAAmB,GAAG,CAA5B;AACA,MAAMC,gBAAgB,GAAGL,UAAU,GAAG,CAAtC;AAEA,MAAIM,aAAa,GAAG,CAApB;AACA,MAAIC,iBAAiB,GAAG,CAAxB;AACA,MAAIC,kBAAkB,GAAG,CAAzB;AACA,MAAIC,gBAAgB,GAAGR,MAAvB;;AAEA,MAAI,CAACH,cAAL,EAAqB;AACnBQ,IAAAA,aAAa,IAAIL,MAAjB;AACAO,IAAAA,kBAAkB,GAAGP,MAAM,GAAG,CAA9B;AACD;;AACD,MAAI,CAACF,aAAL,EAAoB;AAClBO,IAAAA,aAAa,IAAIL,MAAjB;AACAM,IAAAA,iBAAiB,GAAGN,MAAM,GAAG,CAA7B;AACD;;AAED,MAAK,CAACF,aAAD,IAAkBD,cAAnB,IAAuCA,cAAc,IAAIC,aAA7D,EAA6E;AAC3EU,IAAAA,gBAAgB,GAAG,CAAnB;AACD;;AAED,MAAMC,UAAU,GACd,MACCZ,cAAc,GACX,MAAMG,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0CA,MAA1C,GAAmD,GAAnD,GAAyDA,MAD9C,GAEX,EAHJ,IAIA,GAJA,IAKCL,MAAM,IAAI,IAAIO,WAAJ,IAAmBK,kBAAkB,GAAG,GAAxC,CAAJ,CALP,KAMCV,cAAc,GACX,MAAMG,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0C,CAACA,MAA3C,GAAoD,GAApD,GAA0DA,MAD/C,GAEX,EARJ,IASA,GATA,IAUC,CAACN,KAAD,GAAS,IAAIQ,WAAb,GAA2BG,aAV5B,KAWCP,aAAa,GACV,MAAME,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0C,CAACA,MAA3C,GAAoD,GAApD,GAA0D,CAACA,MADjD,GAEV,EAbJ,IAcA,GAdA,IAeC,CAACL,MAAD,IAAW,IAAIO,WAAJ,IAAmBI,iBAAiB,GAAG,GAAvC,CAAX,CAfD,KAgBCR,aAAa,GACV,MAAME,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0CA,MAA1C,GAAmD,GAAnD,GAAyD,CAACA,MADhD,GAEV,EAlBJ,CADF;AAqBA,MAAIU,IAAJ;;AACA,EAAY;AACVA,IAAAA,IAAI,GACF,KACA,GADA,IAECR,WAAW,GAAGC,mBAAd,GAAoCC,gBAFrC,IAGA,GAHA,GAIA,GAJA,GAKA,GALA,IAMCV,KAAK,GACJ,IAAIQ,WADL,GAECE,gBAFD,GAGCD,mBAHD,GAICK,gBAVF,IAWAC,UAXA,GAYA,GAZA,GAaAN,mBAdF;AAeD;;AAaD,SAAOO,IAAP;AACD;;;;"}
1
+ {"version":3,"file":"getSvgPath.js","sources":["../../../src/FloatingLabelInput/getSvgPath.tsx"],"sourcesContent":["/* eslint-disable prefer-template,max-statements,no-nested-ternary */\nfunction getSvgPath({\n labelWidth = 50,\n width = 200,\n height = 35,\n radiusStyle,\n hasRightRadius = true,\n hasLeftRadius = true,\n}) {\n const notchWidth = labelWidth;\n const isRtl = false;\n\n const radius = parseFloat(radiusStyle);\n const cornerWidth = radius + 1.3;\n const leadingStrokeLength = 4;\n const paddedNotchWidth = notchWidth + 8;\n\n let extraSizeForH = 0;\n let extraSizeForLeftV = 0;\n let extraSizeForRightV = 0;\n let extraSizeForTopH = radius;\n\n if (!hasRightRadius) {\n extraSizeForH += radius;\n extraSizeForRightV = radius * 2;\n }\n if (!hasLeftRadius) {\n extraSizeForH += radius;\n extraSizeForLeftV = radius * 2;\n }\n\n if ((!hasLeftRadius && hasRightRadius) || (hasRightRadius && hasLeftRadius)) {\n extraSizeForTopH = 0;\n }\n\n const pathMiddle =\n '' +\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius\n : '') +\n 'v' +\n (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + // right vertical line\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius\n : '') +\n 'h' +\n (-width + 2 * cornerWidth - extraSizeForH) +\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius\n : '') +\n 'v' +\n (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + // left vertical line\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius\n : '');\n\n let path;\n if (!isRtl) {\n path =\n '' +\n 'M' +\n (cornerWidth + leadingStrokeLength + paddedNotchWidth) +\n ',' +\n 0.5 +\n 'h' +\n (width -\n 2 * cornerWidth -\n paddedNotchWidth -\n leadingStrokeLength +\n extraSizeForTopH) +\n pathMiddle +\n 'h' +\n leadingStrokeLength;\n } else {\n path =\n '' +\n 'M' +\n (width - cornerWidth - leadingStrokeLength) +\n ',' +\n 0.5 +\n 'h' +\n leadingStrokeLength +\n pathMiddle +\n 'h' +\n (width - 2 * cornerWidth - paddedNotchWidth - leadingStrokeLength);\n }\n return path;\n}\n\nexport default getSvgPath;\n"],"names":["getSvgPath","labelWidth","width","height","radiusStyle","hasRightRadius","hasLeftRadius","notchWidth","radius","parseFloat","cornerWidth","leadingStrokeLength","paddedNotchWidth","extraSizeForH","extraSizeForLeftV","extraSizeForRightV","extraSizeForTopH","pathMiddle","path"],"mappings":";;AAAA;AACA,SAASA,UAAT,OAOG;AAAA,6BANDC,UAMC;AAAA,MANDA,UAMC,gCANY,EAMZ;AAAA,wBALDC,KAKC;AAAA,MALDA,KAKC,2BALO,GAKP;AAAA,yBAJDC,MAIC;AAAA,MAJDA,MAIC,4BAJQ,EAIR;AAAA,MAHDC,WAGC,QAHDA,WAGC;AAAA,iCAFDC,cAEC;AAAA,MAFDA,cAEC,oCAFgB,IAEhB;AAAA,gCADDC,aACC;AAAA,MADDA,aACC,mCADe,IACf;AACD,MAAMC,UAAU,GAAGN,UAAnB;AAGA,MAAMO,MAAM,GAAGC,UAAU,CAACL,WAAD,CAAzB;AACA,MAAMM,WAAW,GAAGF,MAAM,GAAG,GAA7B;AACA,MAAMG,mBAAmB,GAAG,CAA5B;AACA,MAAMC,gBAAgB,GAAGL,UAAU,GAAG,CAAtC;AAEA,MAAIM,aAAa,GAAG,CAApB;AACA,MAAIC,iBAAiB,GAAG,CAAxB;AACA,MAAIC,kBAAkB,GAAG,CAAzB;AACA,MAAIC,gBAAgB,GAAGR,MAAvB;;AAEA,MAAI,CAACH,cAAL,EAAqB;AACnBQ,IAAAA,aAAa,IAAIL,MAAjB;AACAO,IAAAA,kBAAkB,GAAGP,MAAM,GAAG,CAA9B;AACD;;AACD,MAAI,CAACF,aAAL,EAAoB;AAClBO,IAAAA,aAAa,IAAIL,MAAjB;AACAM,IAAAA,iBAAiB,GAAGN,MAAM,GAAG,CAA7B;AACD;;AAED,MAAK,CAACF,aAAD,IAAkBD,cAAnB,IAAuCA,cAAc,IAAIC,aAA7D,EAA6E;AAC3EU,IAAAA,gBA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= '' + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius : '') + 'v' + (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius : '') + 'h' + (-width + 2 * cornerWidth - extraSizeForH) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius : '') + 'v' + (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius : '');
38
+ var pathMiddle = '' + (hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius : '') + 'v' + (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + ( // right vertical line
39
+ hasRightRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius : '') + 'h' + (-width + 2 * cornerWidth - extraSizeForH) + (hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius : '') + 'v' + (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + ( // left vertical line
40
+ hasLeftRadius ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius : '');
39
41
  var path;
40
42
 
41
43
  {
@@ -1 +1 @@
1
- {"version":3,"file":"getSvgPath.js","sources":["../../../src/FloatingLabelInput/getSvgPath.tsx"],"sourcesContent":["/* eslint-disable prefer-template,max-statements,no-nested-ternary */\nfunction getSvgPath({\n labelWidth = 50,\n width = 200,\n height = 35,\n radiusStyle,\n hasRightRadius = true,\n hasLeftRadius = true,\n}) {\n const notchWidth = labelWidth;\n const isRtl = false;\n\n const radius = parseFloat(radiusStyle);\n const cornerWidth = radius + 1.3;\n const leadingStrokeLength = 4;\n const paddedNotchWidth = notchWidth + 8;\n\n let extraSizeForH = 0;\n let extraSizeForLeftV = 0;\n let extraSizeForRightV = 0;\n let extraSizeForTopH = radius;\n\n if (!hasRightRadius) {\n extraSizeForH += radius;\n extraSizeForRightV = radius * 2;\n }\n if (!hasLeftRadius) {\n extraSizeForH += radius;\n extraSizeForLeftV = radius * 2;\n }\n\n if ((!hasLeftRadius && hasRightRadius) || (hasRightRadius && hasLeftRadius)) {\n extraSizeForTopH = 0;\n }\n\n const pathMiddle =\n '' +\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius\n : '') +\n 'v' +\n (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + // right vertical line\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius\n : '') +\n 'h' +\n (-width + 2 * cornerWidth - extraSizeForH) +\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius\n : '') +\n 'v' +\n (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + // left vertical line\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius\n : '');\n\n let path;\n if (!isRtl) {\n path =\n '' +\n 'M' +\n (cornerWidth + leadingStrokeLength + paddedNotchWidth) +\n ',' +\n 0.5 +\n 'h' +\n (width -\n 2 * cornerWidth -\n paddedNotchWidth -\n leadingStrokeLength +\n extraSizeForTopH) +\n pathMiddle +\n 'h' +\n leadingStrokeLength;\n } else {\n path =\n '' +\n 'M' +\n (width - cornerWidth - leadingStrokeLength) +\n ',' +\n 0.5 +\n 'h' +\n leadingStrokeLength +\n pathMiddle +\n 'h' +\n (width - 2 * cornerWidth - paddedNotchWidth - leadingStrokeLength);\n }\n return path;\n}\n\nexport default getSvgPath;\n"],"names":["getSvgPath","labelWidth","width","height","radiusStyle","hasRightRadius","hasLeftRadius","notchWidth","radius","parseFloat","cornerWidth","leadingStrokeLength","paddedNotchWidth","extraSizeForH","extraSizeForLeftV","extraSizeForRightV","extraSizeForTopH","pathMiddle","path"],"mappings":"AAAA;AACA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GAAxC,CAAJ,CALP,KAMCV,cAAc,GACX,MAAMG,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0C,CAACA,MAA3C,GAAoD,GAApD,GAA0DA,MAD/C,GAEX,EARJ,IASA,GATA,IAUC,CAACN,KAAD,GAAS,IAAIQ,WAAb,GAA2BG,aAV5B,KAWCP,aAAa,GACV,MAAME,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0C,CAACA,MAA3C,GAAoD,GAApD,GAA0D,CAACA,MADjD,GAEV,EAbJ,IAcA,GAdA,IAeC,CAACL,MAAD,IAAW,IAAIO,WAAJ,IAAmBI,iBAAiB,GAAG,GAAvC,CAAX,CAfD,KAgBCR,aAAa,GACV,MAAME,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0CA,MAA1C,GAAmD,GAAnD,GAAyD,CAACA,MADhD,GAEV,EAlBJ,CADF;AAqBA,MAAIU,IAAJ;;AACA,EAAY;AACVA,IAAAA,IAAI,GACF,KACA,GADA,IAECR,WAAW,GAAGC,mBAAd,GAAoCC,gBAFrC,IAGA,GAHA,GAIA,GAJA,GAKA,GALA,IAMCV,KAAK,GACJ,IAAIQ,WADL,GAECE,gBAFD,GAGCD,mBAHD,GAICK,gBAVF,IAWAC,UAXA,GAYA,GAZA,GAaAN,mBAdF;AAeD;;AAaD,SAAOO,IAAP;AACD;;;;"}
1
+ {"version":3,"file":"getSvgPath.js","sources":["../../../src/FloatingLabelInput/getSvgPath.tsx"],"sourcesContent":["/* eslint-disable prefer-template,max-statements,no-nested-ternary */\nfunction getSvgPath({\n labelWidth = 50,\n width = 200,\n height = 35,\n radiusStyle,\n hasRightRadius = true,\n hasLeftRadius = true,\n}) {\n const notchWidth = labelWidth;\n const isRtl = false;\n\n const radius = parseFloat(radiusStyle);\n const cornerWidth = radius + 1.3;\n const leadingStrokeLength = 4;\n const paddedNotchWidth = notchWidth + 8;\n\n let extraSizeForH = 0;\n let extraSizeForLeftV = 0;\n let extraSizeForRightV = 0;\n let extraSizeForTopH = radius;\n\n if (!hasRightRadius) {\n extraSizeForH += radius;\n extraSizeForRightV = radius * 2;\n }\n if (!hasLeftRadius) {\n extraSizeForH += radius;\n extraSizeForLeftV = radius * 2;\n }\n\n if ((!hasLeftRadius && hasRightRadius) || (hasRightRadius && hasLeftRadius)) {\n extraSizeForTopH = 0;\n }\n\n const pathMiddle =\n '' +\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + radius\n : '') +\n 'v' +\n (height - (2 * cornerWidth - (extraSizeForRightV + 1.5))) + // right vertical line\n (hasRightRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + radius\n : '') +\n 'h' +\n (-width + 2 * cornerWidth - extraSizeForH) +\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + -radius + ',' + -radius\n : '') +\n 'v' +\n (-height + (2 * cornerWidth - (extraSizeForLeftV + 1.5))) + // left vertical line\n (hasLeftRadius\n ? 'a' + radius + ',' + radius + ' 0 0 1 ' + radius + ',' + -radius\n : '');\n\n let path;\n if (!isRtl) {\n path =\n '' +\n 'M' +\n (cornerWidth + leadingStrokeLength + paddedNotchWidth) +\n ',' +\n 0.5 +\n 'h' +\n (width -\n 2 * cornerWidth -\n paddedNotchWidth -\n leadingStrokeLength +\n extraSizeForTopH) +\n pathMiddle +\n 'h' +\n leadingStrokeLength;\n } else {\n path =\n '' +\n 'M' +\n (width - cornerWidth - leadingStrokeLength) +\n ',' +\n 0.5 +\n 'h' +\n leadingStrokeLength +\n pathMiddle +\n 'h' +\n (width - 2 * cornerWidth - paddedNotchWidth - leadingStrokeLength);\n }\n return path;\n}\n\nexport default getSvgPath;\n"],"names":["getSvgPath","labelWidth","width","height","radiusStyle","hasRightRadius","hasLeftRadius","notchWidth","radius","parseFloat","cornerWidth","leadingStrokeLength","paddedNotchWidth","extraSizeForH","extraSizeForLeftV","extraSizeForR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,IAAI,IAAIO,WAAJ,IAAmBK,kBAAkB,GAAG,GAAxC,CAAJ,CALP;AAMCV,EAAAA,cAAc,GACX,MAAMG,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0C,CAACA,MAA3C,GAAoD,GAApD,GAA0DA,MAD/C,GAEX,EARJ,IASA,GATA,IAUC,CAACN,KAAD,GAAS,IAAIQ,WAAb,GAA2BG,aAV5B,KAWCP,aAAa,GACV,MAAME,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0C,CAACA,MAA3C,GAAoD,GAApD,GAA0D,CAACA,MADjD,GAEV,EAbJ,IAcA,GAdA,IAeC,CAACL,MAAD,IAAW,IAAIO,WAAJ,IAAmBI,iBAAiB,GAAG,GAAvC,CAAX,CAfD;AAgBCR,EAAAA,aAAa,GACV,MAAME,MAAN,GAAe,GAAf,GAAqBA,MAArB,GAA8B,SAA9B,GAA0CA,MAA1C,GAAmD,GAAnD,GAAyD,CAACA,MADhD,GAEV,EAlBJ,CADF;AAqBA,MAAIU,IAAJ;;AACA,EAAY;AACVA,IAAAA,IAAI,GACF,KACA,GADA,IAECR,WAAW,GAAGC,mBAAd,GAAoCC,gBAFrC,IAGA,GAHA,GAIA,GAJA,GAKA,GALA,IAMCV,KAAK,GACJ,IAAIQ,WADL,GAECE,gBAFD,GAGCD,mBAHD,GAICK,gBAVF,IAWAC,UAXA,GAYA,GAZA,GAaAN,mBAdF;AAeD;;AAaD,SAAOO,IAAP;AACD;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form",
3
- "version": "1.53.8",
3
+ "version": "1.53.9",
4
4
  "license": "MIT",
5
5
  "description": "Ellie Mae - Dim Sum - Form",
6
6
  "main": "cjs/index.js",
@@ -16,22 +16,22 @@
16
16
  "build": "node ../../scripts/build/build.js"
17
17
  },
18
18
  "dependencies": {
19
- "@elliemae/ds-button": "1.53.8",
20
- "@elliemae/ds-circular-progress-indicator": "1.53.8",
21
- "@elliemae/ds-classnames": "1.53.8",
22
- "@elliemae/ds-grid": "1.53.8",
23
- "@elliemae/ds-icon": "1.53.8",
24
- "@elliemae/ds-icons": "1.53.8",
25
- "@elliemae/ds-menu": "1.53.8",
26
- "@elliemae/ds-overlay": "1.53.8",
27
- "@elliemae/ds-popper": "1.53.8",
28
- "@elliemae/ds-separator": "1.53.8",
29
- "@elliemae/ds-shared": "1.53.8",
30
- "@elliemae/ds-system": "1.53.8",
31
- "@elliemae/ds-text-wrapper": "1.53.8",
32
- "@elliemae/ds-tooltip": "1.53.8",
33
- "@elliemae/ds-truncated-tooltip-text": "1.53.8",
34
- "@elliemae/ds-utilities": "1.53.8",
19
+ "@elliemae/ds-button": "1.53.9",
20
+ "@elliemae/ds-circular-progress-indicator": "1.53.9",
21
+ "@elliemae/ds-classnames": "1.53.9",
22
+ "@elliemae/ds-grid": "1.53.9",
23
+ "@elliemae/ds-icon": "1.53.9",
24
+ "@elliemae/ds-icons": "1.53.9",
25
+ "@elliemae/ds-menu": "1.53.9",
26
+ "@elliemae/ds-overlay": "1.53.9",
27
+ "@elliemae/ds-popper": "1.53.9",
28
+ "@elliemae/ds-separator": "1.53.9",
29
+ "@elliemae/ds-shared": "1.53.9",
30
+ "@elliemae/ds-system": "1.53.9",
31
+ "@elliemae/ds-text-wrapper": "1.53.9",
32
+ "@elliemae/ds-tooltip": "1.53.9",
33
+ "@elliemae/ds-truncated-tooltip-text": "1.53.9",
34
+ "@elliemae/ds-utilities": "1.53.9",
35
35
  "memoize-one": "~5.1.1",
36
36
  "moment": "~2.29.1",
37
37
  "polished": "~3.6.7",