@lanaco/lnc-react-ui 4.0.2 → 4.0.5

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 (233) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +55 -50
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +15 -15
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +11 -11
  7. package/dist/ActionsToolbar.cjs +2 -2
  8. package/dist/ActionsToolbar.js +16 -16
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +23 -23
  11. package/dist/Avatar.cjs +2 -2
  12. package/dist/Avatar.js +18 -21
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +21 -14
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +28 -28
  17. package/dist/Button.cjs +2 -2
  18. package/dist/Button.js +21 -22
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +10 -6
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +6 -6
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +9 -9
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +20 -20
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +58 -58
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +8 -8
  31. package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
  32. package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +35 -35
  35. package/dist/DateInput.cjs +4 -4
  36. package/dist/DateInput.js +491 -491
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +43 -43
  39. package/dist/DetailsView.cjs +4 -4
  40. package/dist/DetailsView.js +40 -40
  41. package/dist/DoubleRangeSlider.cjs +1 -1
  42. package/dist/DoubleRangeSlider.js +33 -33
  43. package/dist/DragAndDropFile.cjs +1 -1
  44. package/dist/DragAndDropFile.js +165 -165
  45. package/dist/DragDropFiles.cjs +1 -1
  46. package/dist/DragDropFiles.js +31 -31
  47. package/dist/Drawer.cjs +1 -1
  48. package/dist/Drawer.js +47 -47
  49. package/dist/Dropdown.cjs +1 -1
  50. package/dist/Dropdown.js +39 -39
  51. package/dist/DropdownItem.cjs +1 -1
  52. package/dist/DropdownItem.js +23 -23
  53. package/dist/DropdownLookup.cjs +1 -1
  54. package/dist/DropdownLookup.js +36 -36
  55. package/dist/DropdownMenu.cjs +7 -1
  56. package/dist/DropdownMenu.js +192 -10
  57. package/dist/EditableTable.cjs +1 -1
  58. package/dist/EditableTable.js +4 -4
  59. package/dist/FileInput.cjs +1 -1
  60. package/dist/FileInput.js +24 -24
  61. package/dist/FlexBox.cjs +1 -1
  62. package/dist/FlexBox.js +14 -14
  63. package/dist/FlexGrid.cjs +1 -1
  64. package/dist/FlexGrid.js +30 -30
  65. package/dist/FlexGridItem.cjs +1 -1
  66. package/dist/FlexGridItem.js +16 -16
  67. package/dist/Footer.cjs +1 -1
  68. package/dist/Footer.js +5 -5
  69. package/dist/FormField.cjs +1 -1
  70. package/dist/FormField.js +8 -9
  71. package/dist/FormView.cjs +1 -1
  72. package/dist/FormView.js +31 -31
  73. package/dist/Grid.cjs +2 -3
  74. package/dist/Grid.js +38 -10
  75. package/dist/GridItem.cjs +2 -2
  76. package/dist/GridItem.js +29 -9
  77. package/dist/Header.cjs +1 -1
  78. package/dist/Header.js +7 -7
  79. package/dist/Icon.cjs +2 -2
  80. package/dist/Icon.js +35 -13
  81. package/dist/IconButton.cjs +1 -1
  82. package/dist/IconButton.js +51 -52
  83. package/dist/Kanban.cjs +12 -12
  84. package/dist/Kanban.js +891 -879
  85. package/dist/KanbanActionsToolbar.cjs +2 -2
  86. package/dist/KanbanActionsToolbar.js +28 -28
  87. package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
  88. package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
  89. package/dist/KanbanCard.cjs +1 -1
  90. package/dist/KanbanCard.js +5 -5
  91. package/dist/KanbanFooter.cjs +1 -1
  92. package/dist/KanbanFooter.js +40 -40
  93. package/dist/KanbanHeader.cjs +2 -2
  94. package/dist/KanbanHeader.js +46 -46
  95. package/dist/KanbanView.cjs +1 -1
  96. package/dist/KanbanView.js +27 -27
  97. package/dist/Link.cjs +1 -1
  98. package/dist/Link.js +9 -9
  99. package/dist/MenuItem.cjs +1 -1
  100. package/dist/MenuItem.js +39 -39
  101. package/dist/Modal.cjs +1 -1
  102. package/dist/Modal.js +42 -42
  103. package/dist/MultiSelectDropdown.cjs +1 -1
  104. package/dist/MultiSelectDropdown.js +6 -6
  105. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  106. package/dist/MultiSelectDropdownLookup.js +6 -6
  107. package/dist/NestedDropdownItem.cjs +1 -1
  108. package/dist/NestedDropdownItem.js +40 -40
  109. package/dist/NestedMenuItem.cjs +1 -1
  110. package/dist/NestedMenuItem.js +45 -45
  111. package/dist/Notification.cjs +1 -83
  112. package/dist/Notification.js +3 -1077
  113. package/dist/NotificationContainer.cjs +37 -0
  114. package/dist/NotificationContainer.js +162 -0
  115. package/dist/NotificationMessage.cjs +47 -0
  116. package/dist/NotificationMessage.js +133 -0
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +17 -17
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +32 -32
  121. package/dist/Pagination.cjs +12 -0
  122. package/dist/Pagination.js +248 -0
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +33 -33
  125. package/dist/Popover.cjs +1 -0
  126. package/dist/Popover.js +36 -0
  127. package/dist/PopoverClose.cjs +1 -0
  128. package/dist/PopoverClose.js +15 -0
  129. package/dist/PopoverContent.cjs +10 -0
  130. package/dist/PopoverContent.js +68 -0
  131. package/dist/PopoverContext.cjs +1 -0
  132. package/dist/PopoverContext.js +5 -0
  133. package/dist/PopoverDescription.cjs +1 -0
  134. package/dist/PopoverDescription.js +16 -0
  135. package/dist/PopoverHeading.cjs +1 -0
  136. package/dist/PopoverHeading.js +16 -0
  137. package/dist/PopoverTrigger.cjs +1 -0
  138. package/dist/PopoverTrigger.js +38 -0
  139. package/dist/ProgressBar.cjs +1 -1
  140. package/dist/ProgressBar.js +35 -24
  141. package/dist/RadioGroup.cjs +1 -1
  142. package/dist/RadioGroup.js +13 -13
  143. package/dist/RadioInput.cjs +1 -1
  144. package/dist/RadioInput.js +10 -10
  145. package/dist/RangeSlider.cjs +1 -1
  146. package/dist/RangeSlider.js +27 -27
  147. package/dist/SearchBar.cjs +1 -1
  148. package/dist/SearchBar.js +77 -77
  149. package/dist/Separator.cjs +1 -1
  150. package/dist/Separator.js +9 -9
  151. package/dist/Sidebar.cjs +1 -1
  152. package/dist/Sidebar.js +13 -13
  153. package/dist/Spinner.cjs +1 -1
  154. package/dist/Spinner.js +25 -20
  155. package/dist/Surface.cjs +2 -2
  156. package/dist/Surface.js +14 -15
  157. package/dist/SwipeableDrawer.cjs +1 -1
  158. package/dist/SwipeableDrawer.js +18 -18
  159. package/dist/TabItem.cjs +26 -0
  160. package/dist/TabItem.js +210 -0
  161. package/dist/Table.cjs +20 -20
  162. package/dist/Table.js +13 -12
  163. package/dist/TableView.cjs +8 -1
  164. package/dist/TableView.js +238 -9
  165. package/dist/Tabs.cjs +1 -1
  166. package/dist/Tabs.js +33 -27
  167. package/dist/TextAreaInput.cjs +1 -1
  168. package/dist/TextAreaInput.js +35 -35
  169. package/dist/TextInput.cjs +1 -1
  170. package/dist/TextInput.js +24 -24
  171. package/dist/ThemeProvider.cjs +1 -1
  172. package/dist/ThemeProvider.js +85 -85
  173. package/dist/TimeInput.cjs +1 -1
  174. package/dist/TimeInput.js +13 -13
  175. package/dist/Toggle.cjs +1 -1
  176. package/dist/Toggle.js +4 -5
  177. package/dist/TreeMenu.cjs +1 -1
  178. package/dist/TreeMenu.js +57 -57
  179. package/dist/TreeMenuSeparator.cjs +3 -3
  180. package/dist/TreeMenuSeparator.js +11 -11
  181. package/dist/UploadedFile.cjs +1 -1
  182. package/dist/UploadedFile.js +29 -29
  183. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  184. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  185. package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
  186. package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
  187. package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
  188. package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
  189. package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
  190. package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
  191. package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
  192. package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
  193. package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
  194. package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
  195. package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
  196. package/dist/index-BIlhCoy2.cjs +20 -0
  197. package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
  198. package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
  199. package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
  200. package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
  201. package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
  202. package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
  203. package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
  204. package/dist/index-DAOBjHnD.cjs +1 -0
  205. package/dist/index-DBXXH_TD.cjs +1 -0
  206. package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
  207. package/dist/index-DaiUAQVF.cjs +1 -0
  208. package/dist/index.cjs +1 -26
  209. package/dist/index.js +180 -376
  210. package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
  211. package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
  212. package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
  213. package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
  214. package/dist/style.css +1 -5
  215. package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
  216. package/dist/usePopover.cjs +1 -0
  217. package/dist/usePopover.js +44 -0
  218. package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
  219. package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
  220. package/package.json +17 -5
  221. package/vite.config.js +16 -0
  222. package/custom-addons/ThemeSelector.js +0 -111
  223. package/custom-addons/register.js +0 -16
  224. package/custom-addons/theme-selector.css +0 -17
  225. package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
  226. package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
  227. package/dist/KanbanCard-ConTmu3w.cjs +0 -30
  228. package/dist/TableView-Cj5_fbSR.js +0 -481
  229. package/dist/TableView-D8ex512p.cjs +0 -19
  230. package/dist/index-BjdOz5Ok.cjs +0 -1
  231. package/dist/index-DXnSjbfJ.cjs +0 -20
  232. package/dist/index-Dzkd2i4n.cjs +0 -1
  233. package/dist/index-P-naJISQ.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const B=require("react/jsx-runtime"),y=require("./index-DXnSjbfJ.cjs"),F=require("react"),ae=require("./index-BjdOz5Ok.cjs"),z=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),x=require("./utils-hdRGTsQ7.cjs"),ie=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs");function A(){}function oe(){return!0}function I(a){return!!(a||"").match(/\d/)}function W(a){return a==null}function q(a){return a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ne(a){switch(a){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function se(a,l,f){var e=ne(f),t=a.search(/[1-9]/);return t=t===-1?a.length:t,a.substring(0,t)+a.substring(t,a.length).replace(e,"$1"+l)}function L(a,l){l===void 0&&(l=!0);var f=a[0]==="-",e=f&&l;a=a.replace("-","");var t=a.split("."),r=t[0],o=t[1]||"";return{beforeDecimal:r,afterDecimal:o,hasNagation:f,addNegation:e}}function le(a){if(!a)return a;var l=a[0]==="-";l&&(a=a.substring(1,a.length));var f=a.split("."),e=f[0].replace(/^0+/,"")||"0",t=f[1]||"";return(l?"-":"")+e+(t?"."+t:"")}function H(a,l,f){for(var e="",t=f?"0":"",r=0;r<=l-1;r++)e+=a[r]||t;return e}function _(a,l){return Array(l+1).join(a)}function ue(a){a+="";var l=a[0]==="-"?"-":"";l&&(a=a.substring(1));var f=a.split(/[eE]/g),e=f[0],t=f[1];if(t=Number(t),!t)return l+e;e=e.replace(".","");var r=1+t,o=e.length;return r<0?e="0."+_("0",Math.abs(r))+e:r>=o?e=e+_("0",r-o):e=(e.substring(0,r)||"0")+"."+e.substring(r),l+e}function fe(a,l,f){if(["","-"].indexOf(a)!==-1)return a;var e=a.indexOf(".")!==-1&&l,t=L(a),r=t.beforeDecimal,o=t.afterDecimal,s=t.hasNagation,i=parseFloat("0."+(o||"0")),n=o.length<=l?"0."+o:i.toFixed(l),u=n.split("."),p=r.split("").reverse().reduce(function(d,v,S){return d.length>S?(Number(d[0])+Number(v)).toString()+d.substring(1,d.length):v+d},u[0]),c=H(u[1]||"",Math.min(l,o.length),f),h=s?"-":"",m=e?".":"";return""+h+p+m+c}function G(a,l){if(a.value=a.value,a!==null){if(a.createTextRange){var f=a.createTextRange();return f.move("character",l),f.select(),!0}return a.selectionStart||a.selectionStart===0?(a.focus(),a.setSelectionRange(l,l),!0):(a.focus(),!1)}}function ce(a,l){for(var f=0,e=0,t=a.length,r=l.length;a[f]===l[f]&&f<t;)f++;for(;a[t-1-e]===l[r-1-e]&&r-e>f&&t-e>f;)e++;return{start:f,end:t-e}}function K(a,l,f){return Math.min(Math.max(a,l),f)}function Z(a){return Math.max(a.selectionStart,a.selectionEnd)}function pe(a){return a||typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function de(a,l){var f={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&l.indexOf(e)===-1&&(f[e]=a[e]);return f}var me={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:A,onChange:A,onKeyDown:A,onMouseUp:A,onFocus:A,onBlur:A,isAllowed:oe},J=function(a){function l(f){a.call(this,f);var e=f.defaultValue;this.validateProps();var t=this.formatValueProp(e);this.state={value:t,numAsString:this.removeFormatting(t),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return a&&(l.__proto__=a),l.prototype=Object.create(a&&a.prototype),l.prototype.constructor=l,l.prototype.componentDidMount=function(){this.setState({mounted:!0})},l.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},l.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},l.prototype.updateValueIfRequired=function(e){var t=this,r=t.props,o=t.state,s=t.focusedElm,i=o.value,n=o.numAsString;if(n===void 0&&(n=""),e!==r){this.validateProps();var u=this.formatNumString(n),p=W(r.value)?u:this.formatValueProp(),c=this.removeFormatting(p),h=parseFloat(c),m=parseFloat(n);((!isNaN(h)||!isNaN(m))&&h!==m||u!==i||s===null&&p!==i)&&this.updateValue({formattedValue:p,numAsString:c,input:s,source:"prop",event:null})}},l.prototype.getFloatString=function(e){e===void 0&&(e="");var t=this.props,r=t.decimalScale,o=this.getSeparators(),s=o.decimalSeparator,i=this.getNumberRegex(!0),n=e[0]==="-";n&&(e=e.replace("-","")),s&&r===0&&(e=e.split(s)[0]),e=(e.match(i)||[]).join("").replace(s,".");var u=e.indexOf(".");return u!==-1&&(e=e.substring(0,u)+"."+e.substring(u+1,e.length).replace(new RegExp(q(s),"g"),"")),n&&(e="-"+e),e},l.prototype.getNumberRegex=function(e,t){var r=this.props,o=r.format,s=r.decimalScale,i=r.customNumerals,n=this.getSeparators(),u=n.decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(u&&s!==0&&!t&&!o?"|"+q(u):""),e?"g":void 0)},l.prototype.getSeparators=function(){var e=this.props,t=e.decimalSeparator,r=this.props,o=r.thousandSeparator,s=r.allowedDecimalSeparators;return o===!0&&(o=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:s}},l.prototype.getMaskAtIndex=function(e){var t=this.props,r=t.mask;return r===void 0&&(r=" "),typeof r=="string"?r:r[e]||" "},l.prototype.getValueObject=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},l.prototype.validateProps=function(){var e=this.props,t=e.mask,r=this.getSeparators(),o=r.decimalSeparator,s=r.thousandSeparator;if(o===s)throw new Error(`
1
+ "use strict";const B=require("react/jsx-runtime"),y=require("./index-BIlhCoy2.cjs"),F=require("react"),ae=require("./index-DaiUAQVF.cjs"),z=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),x=require("./utils-DTAPpJXU.cjs"),ie=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs");function A(){}function oe(){return!0}function I(a){return!!(a||"").match(/\d/)}function W(a){return a==null}function q(a){return a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ne(a){switch(a){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function se(a,l,f){var e=ne(f),t=a.search(/[1-9]/);return t=t===-1?a.length:t,a.substring(0,t)+a.substring(t,a.length).replace(e,"$1"+l)}function L(a,l){l===void 0&&(l=!0);var f=a[0]==="-",e=f&&l;a=a.replace("-","");var t=a.split("."),r=t[0],o=t[1]||"";return{beforeDecimal:r,afterDecimal:o,hasNagation:f,addNegation:e}}function le(a){if(!a)return a;var l=a[0]==="-";l&&(a=a.substring(1,a.length));var f=a.split("."),e=f[0].replace(/^0+/,"")||"0",t=f[1]||"";return(l?"-":"")+e+(t?"."+t:"")}function H(a,l,f){for(var e="",t=f?"0":"",r=0;r<=l-1;r++)e+=a[r]||t;return e}function _(a,l){return Array(l+1).join(a)}function ue(a){a+="";var l=a[0]==="-"?"-":"";l&&(a=a.substring(1));var f=a.split(/[eE]/g),e=f[0],t=f[1];if(t=Number(t),!t)return l+e;e=e.replace(".","");var r=1+t,o=e.length;return r<0?e="0."+_("0",Math.abs(r))+e:r>=o?e=e+_("0",r-o):e=(e.substring(0,r)||"0")+"."+e.substring(r),l+e}function fe(a,l,f){if(["","-"].indexOf(a)!==-1)return a;var e=a.indexOf(".")!==-1&&l,t=L(a),r=t.beforeDecimal,o=t.afterDecimal,s=t.hasNagation,i=parseFloat("0."+(o||"0")),n=o.length<=l?"0."+o:i.toFixed(l),u=n.split("."),p=r.split("").reverse().reduce(function(d,v,S){return d.length>S?(Number(d[0])+Number(v)).toString()+d.substring(1,d.length):v+d},u[0]),c=H(u[1]||"",Math.min(l,o.length),f),h=s?"-":"",m=e?".":"";return""+h+p+m+c}function G(a,l){if(a.value=a.value,a!==null){if(a.createTextRange){var f=a.createTextRange();return f.move("character",l),f.select(),!0}return a.selectionStart||a.selectionStart===0?(a.focus(),a.setSelectionRange(l,l),!0):(a.focus(),!1)}}function ce(a,l){for(var f=0,e=0,t=a.length,r=l.length;a[f]===l[f]&&f<t;)f++;for(;a[t-1-e]===l[r-1-e]&&r-e>f&&t-e>f;)e++;return{start:f,end:t-e}}function K(a,l,f){return Math.min(Math.max(a,l),f)}function Z(a){return Math.max(a.selectionStart,a.selectionEnd)}function pe(a){return a||typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function de(a,l){var f={};for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&l.indexOf(e)===-1&&(f[e]=a[e]);return f}var me={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:A,onChange:A,onKeyDown:A,onMouseUp:A,onFocus:A,onBlur:A,isAllowed:oe},J=function(a){function l(f){a.call(this,f);var e=f.defaultValue;this.validateProps();var t=this.formatValueProp(e);this.state={value:t,numAsString:this.removeFormatting(t),mounted:!1},this.selectionBeforeInput={selectionStart:0,selectionEnd:0},this.onChange=this.onChange.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this)}return a&&(l.__proto__=a),l.prototype=Object.create(a&&a.prototype),l.prototype.constructor=l,l.prototype.componentDidMount=function(){this.setState({mounted:!0})},l.prototype.componentDidUpdate=function(e){this.updateValueIfRequired(e)},l.prototype.componentWillUnmount=function(){clearTimeout(this.focusTimeout),clearTimeout(this.caretPositionTimeout)},l.prototype.updateValueIfRequired=function(e){var t=this,r=t.props,o=t.state,s=t.focusedElm,i=o.value,n=o.numAsString;if(n===void 0&&(n=""),e!==r){this.validateProps();var u=this.formatNumString(n),p=W(r.value)?u:this.formatValueProp(),c=this.removeFormatting(p),h=parseFloat(c),m=parseFloat(n);((!isNaN(h)||!isNaN(m))&&h!==m||u!==i||s===null&&p!==i)&&this.updateValue({formattedValue:p,numAsString:c,input:s,source:"prop",event:null})}},l.prototype.getFloatString=function(e){e===void 0&&(e="");var t=this.props,r=t.decimalScale,o=this.getSeparators(),s=o.decimalSeparator,i=this.getNumberRegex(!0),n=e[0]==="-";n&&(e=e.replace("-","")),s&&r===0&&(e=e.split(s)[0]),e=(e.match(i)||[]).join("").replace(s,".");var u=e.indexOf(".");return u!==-1&&(e=e.substring(0,u)+"."+e.substring(u+1,e.length).replace(new RegExp(q(s),"g"),"")),n&&(e="-"+e),e},l.prototype.getNumberRegex=function(e,t){var r=this.props,o=r.format,s=r.decimalScale,i=r.customNumerals,n=this.getSeparators(),u=n.decimalSeparator;return new RegExp("[0-9"+(i?i.join(""):"")+"]"+(u&&s!==0&&!t&&!o?"|"+q(u):""),e?"g":void 0)},l.prototype.getSeparators=function(){var e=this.props,t=e.decimalSeparator,r=this.props,o=r.thousandSeparator,s=r.allowedDecimalSeparators;return o===!0&&(o=","),s||(s=[t,"."]),{decimalSeparator:t,thousandSeparator:o,allowedDecimalSeparators:s}},l.prototype.getMaskAtIndex=function(e){var t=this.props,r=t.mask;return r===void 0&&(r=" "),typeof r=="string"?r:r[e]||" "},l.prototype.getValueObject=function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}},l.prototype.validateProps=function(){var e=this.props,t=e.mask,r=this.getSeparators(),o=r.decimalSeparator,s=r.thousandSeparator;if(o===s)throw new Error(`
2
2
  Decimal separator can't be same as thousand separator.
3
3
  thousandSeparator: `+s+` (thousandSeparator = {true} is same as thousandSeparator = ",")
4
4
  decimalSeparator: `+o+` (default value for decimalSeparator is .)
@@ -1,13 +1,13 @@
1
1
  import { jsxs as ie, jsx as K } from "react/jsx-runtime";
2
- import { P as S } from "./index-Ds9PUTwb.js";
3
- import I, { useState as oe, useCallback as ne } from "react";
4
- import { d as se } from "./index-D5vEbKUT.js";
5
- import { n as G } from "./emotion-styled.browser.esm-BZSYYThs.js";
6
- import { f as B, b as R, c as fe, h as le, g as W, a as ue } from "./utils-DEke8iwo.js";
7
- import { u as ce } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
2
+ import { P as S } from "./index-BYnWp42a.js";
3
+ import j, { forwardRef as oe, useState as ne, useCallback as se } from "react";
4
+ import { d as fe } from "./index-CNBqQrtK.js";
5
+ import { n as G } from "./emotion-styled.browser.esm-BiK8DcgW.js";
6
+ import { d as B, a as R, b as le, e as ue, h as W, g as ce } from "./utils-C52T57HO.js";
7
+ import { u as pe } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
8
  function O() {
9
9
  }
10
- function pe() {
10
+ function de() {
11
11
  return !0;
12
12
  }
13
13
  function V(a) {
@@ -19,7 +19,7 @@ function _(a) {
19
19
  function Z(a) {
20
20
  return a.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
21
21
  }
22
- function de(a) {
22
+ function me(a) {
23
23
  switch (a) {
24
24
  case "lakh":
25
25
  return /(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;
@@ -30,8 +30,8 @@ function de(a) {
30
30
  return /(\d)(?=(\d{3})+(?!\d))/g;
31
31
  }
32
32
  }
33
- function me(a, f, u) {
34
- var e = de(u), t = a.search(/[1-9]/);
33
+ function he(a, f, u) {
34
+ var e = me(u), t = a.search(/[1-9]/);
35
35
  return t = t === -1 ? a.length : t, a.substring(0, t) + a.substring(t, a.length).replace(e, "$1" + f);
36
36
  }
37
37
  function z(a, f) {
@@ -46,7 +46,7 @@ function z(a, f) {
46
46
  addNegation: e
47
47
  };
48
48
  }
49
- function he(a) {
49
+ function ve(a) {
50
50
  if (!a)
51
51
  return a;
52
52
  var f = a[0] === "-";
@@ -62,7 +62,7 @@ function Q(a, f, u) {
62
62
  function q(a, f) {
63
63
  return Array(f + 1).join(a);
64
64
  }
65
- function ve(a) {
65
+ function ge(a) {
66
66
  a += "";
67
67
  var f = a[0] === "-" ? "-" : "";
68
68
  f && (a = a.substring(1));
@@ -73,7 +73,7 @@ function ve(a) {
73
73
  var r = 1 + t, o = e.length;
74
74
  return r < 0 ? e = "0." + q("0", Math.abs(r)) + e : r >= o ? e = e + q("0", r - o) : e = (e.substring(0, r) || "0") + "." + e.substring(r), f + e;
75
75
  }
76
- function ge(a, f, u) {
76
+ function Se(a, f, u) {
77
77
  if (["", "-"].indexOf(a) !== -1)
78
78
  return a;
79
79
  var e = a.indexOf(".") !== -1 && f, t = z(a), r = t.beforeDecimal, o = t.afterDecimal, s = t.hasNagation, i = parseFloat("0." + (o || "0")), n = o.length <= f ? "0." + o : i.toFixed(f), l = n.split("."), p = r.split("").reverse().reduce(function(d, g, y) {
@@ -94,7 +94,7 @@ function H(a, f) {
94
94
  return a.selectionStart || a.selectionStart === 0 ? (a.focus(), a.setSelectionRange(f, f), !0) : (a.focus(), !1);
95
95
  }
96
96
  }
97
- function Se(a, f) {
97
+ function ye(a, f) {
98
98
  for (var u = 0, e = 0, t = a.length, r = f.length; a[u] === f[u] && u < t; )
99
99
  u++;
100
100
  for (; a[t - 1 - e] === f[r - 1 - e] && r - e > u && t - e > u; )
@@ -107,15 +107,15 @@ function L(a, f, u) {
107
107
  function J(a) {
108
108
  return Math.max(a.selectionStart, a.selectionEnd);
109
109
  }
110
- function ye(a) {
110
+ function xe(a) {
111
111
  return a || typeof navigator < "u" && !(navigator.platform && /iPhone|iPod/.test(navigator.platform));
112
112
  }
113
- function xe(a, f) {
113
+ function be(a, f) {
114
114
  var u = {};
115
115
  for (var e in a) Object.prototype.hasOwnProperty.call(a, e) && f.indexOf(e) === -1 && (u[e] = a[e]);
116
116
  return u;
117
117
  }
118
- var be = {
118
+ var Ne = {
119
119
  displayType: "input",
120
120
  decimalSeparator: ".",
121
121
  thousandsGroupStyle: "thousand",
@@ -133,7 +133,7 @@ var be = {
133
133
  onMouseUp: O,
134
134
  onFocus: O,
135
135
  onBlur: O,
136
- isAllowed: pe
136
+ isAllowed: de
137
137
  }, X = /* @__PURE__ */ function(a) {
138
138
  function f(u) {
139
139
  a.call(this, u);
@@ -278,7 +278,7 @@ var be = {
278
278
  return s.join("");
279
279
  }, f.prototype.formatAsNumber = function(e) {
280
280
  var t = this.props, r = t.decimalScale, o = t.fixedDecimalScale, s = t.prefix, i = t.suffix, n = t.allowNegative, l = t.thousandsGroupStyle, p = this.getSeparators(), c = p.thousandSeparator, h = p.decimalSeparator, m = e.indexOf(".") !== -1 || r && o, d = z(e, n), g = d.beforeDecimal, y = d.afterDecimal, x = d.addNegation;
281
- return r !== void 0 && (y = Q(y, r, o)), c && (g = me(g, c, l)), s && (g = s + g), i && (y = y + i), x && (g = "-" + g), e = g + (m && h || "") + y, e;
281
+ return r !== void 0 && (y = Q(y, r, o)), c && (g = he(g, c, l)), s && (g = s + g), i && (y = y + i), x && (g = "-" + g), e = g + (m && h || "") + y, e;
282
282
  }, f.prototype.formatNumString = function(e) {
283
283
  e === void 0 && (e = "");
284
284
  var t = this.props, r = t.format, o = t.allowEmptyFormatting, s = t.customNumerals, i = e;
@@ -298,7 +298,7 @@ var be = {
298
298
  var c = !l && l !== 0;
299
299
  if (c && i && (l = ""), c && !i)
300
300
  return "";
301
- typeof l == "number" && (l = ve(l), p = !0), l === "Infinity" && p && (l = ""), p && !r && typeof o == "number" && (l = ge(l, o, s));
301
+ typeof l == "number" && (l = ge(l), p = !0), l === "Infinity" && p && (l = ""), p && !r && typeof o == "number" && (l = Se(l, o, s));
302
302
  var h = p ? this.formatNumString(l) : this.formatInput(l);
303
303
  return h;
304
304
  }, f.prototype.formatNegation = function(e) {
@@ -313,7 +313,7 @@ var be = {
313
313
  var r = this.props, o = r.format, s = r.prefix, i = r.suffix, n = r.decimalScale, l = r.fixedDecimalScale, p = this.getSeparators(), c = p.decimalSeparator;
314
314
  return !!(typeof o == "string" && o[e] !== "#" || !o && (e < s.length || e >= t.length - i.length || n && l && t[e] === c));
315
315
  }, f.prototype.correctInputValue = function(e, t, r) {
316
- var o = this, s = this.props, i = s.format, n = s.allowNegative, l = s.prefix, p = s.suffix, c = s.decimalScale, h = this.getSeparators(), m = h.allowedDecimalSeparators, d = h.decimalSeparator, g = this.state.numAsString || "", y = this.selectionBeforeInput, x = y.selectionStart, w = y.selectionEnd, P = Se(t, r), v = P.start, N = P.end;
316
+ var o = this, s = this.props, i = s.format, n = s.allowNegative, l = s.prefix, p = s.suffix, c = s.decimalScale, h = this.getSeparators(), m = h.allowedDecimalSeparators, d = h.decimalSeparator, g = this.state.numAsString || "", y = this.selectionBeforeInput, x = y.selectionStart, w = y.selectionEnd, P = ye(t, r), v = P.start, N = P.end;
317
317
  if (!i && v === N && m.indexOf(r[x]) !== -1) {
318
318
  var F = c === 0 ? "" : d;
319
319
  return r.substr(0, x) + F + r.substr(x + 1, r.length);
@@ -330,7 +330,7 @@ var be = {
330
330
  x === E && w === T
331
331
  )
332
332
  return r;
333
- var j = t.substr(v, N - v), M = !![].concat(j).find(
333
+ var I = t.substr(v, N - v), M = !![].concat(I).find(
334
334
  function(C, $) {
335
335
  return o.isCharacterAFormat($ + v, t);
336
336
  }
@@ -338,7 +338,7 @@ var be = {
338
338
  if (M) {
339
339
  var k = t.substr(v), A = {}, b = [];
340
340
  [].concat(k).forEach(function(C, $) {
341
- o.isCharacterAFormat($ + v, t) ? A[$] = C : $ > j.length - 1 && b.push(C);
341
+ o.isCharacterAFormat($ + v, t) ? A[$] = C : $ > I.length - 1 && b.push(C);
342
342
  }), Object.keys(A).forEach(function(C) {
343
343
  b.length > C ? b.splice(C, 0, A[C]) : b.push(A[C]);
344
344
  }), r = t.substr(0, v) + b.join("");
@@ -379,7 +379,7 @@ var be = {
379
379
  }, f.prototype.onBlur = function(e) {
380
380
  var t = this, r = t.props, o = t.state, s = r.format, i = r.onBlur, n = r.allowLeadingZeros, l = o.numAsString, p = o.value;
381
381
  if (this.focusedElm = null, clearTimeout(this.focusTimeout), clearTimeout(this.caretPositionTimeout), !s) {
382
- isNaN(parseFloat(l)) && (l = ""), n || (l = he(l));
382
+ isNaN(parseFloat(l)) && (l = ""), n || (l = ve(l));
383
383
  var c = this.formatNumString(l);
384
384
  if (c !== p) {
385
385
  this.updateValue({
@@ -447,7 +447,7 @@ var be = {
447
447
  }, f.prototype.render = function() {
448
448
  var e = this.props, t = e.type, r = e.displayType, o = e.customInput, s = e.renderText, i = e.getInputRef, n = e.format;
449
449
  e.thousandSeparator, e.decimalSeparator, e.allowedDecimalSeparators, e.thousandsGroupStyle, e.decimalScale, e.fixedDecimalScale, e.prefix, e.suffix, e.removeFormatting, e.mask, e.defaultValue, e.isNumericString, e.allowNegative, e.allowEmptyFormatting, e.allowLeadingZeros, e.onValueChange, e.isAllowed, e.customNumerals, e.onChange, e.onKeyDown, e.onMouseUp, e.onFocus, e.onBlur, e.value;
450
- var l = xe(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "thousandSeparator", "decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "decimalScale", "fixedDecimalScale", "prefix", "suffix", "removeFormatting", "mask", "defaultValue", "isNumericString", "allowNegative", "allowEmptyFormatting", "allowLeadingZeros", "onValueChange", "isAllowed", "customNumerals", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value"]), p = l, c = this.state, h = c.value, m = c.mounted, d = m && ye(n) ? "numeric" : void 0, g = Object.assign({ inputMode: d }, p, {
450
+ var l = be(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "thousandSeparator", "decimalSeparator", "allowedDecimalSeparators", "thousandsGroupStyle", "decimalScale", "fixedDecimalScale", "prefix", "suffix", "removeFormatting", "mask", "defaultValue", "isNumericString", "allowNegative", "allowEmptyFormatting", "allowLeadingZeros", "onValueChange", "isAllowed", "customNumerals", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value"]), p = l, c = this.state, h = c.value, m = c.mounted, d = m && xe(n) ? "numeric" : void 0, g = Object.assign({ inputMode: d }, p, {
451
451
  type: t,
452
452
  value: h,
453
453
  onChange: this.onChange,
@@ -457,20 +457,20 @@ var be = {
457
457
  onBlur: this.onBlur
458
458
  });
459
459
  if (r === "text")
460
- return s ? s(h, p) || null : I.createElement(
460
+ return s ? s(h, p) || null : j.createElement(
461
461
  "span",
462
462
  Object.assign({}, p, { ref: i }),
463
463
  h
464
464
  );
465
465
  if (o) {
466
466
  var y = o;
467
- return I.createElement(y, Object.assign({}, g, { ref: i }));
467
+ return j.createElement(y, Object.assign({}, g, { ref: i }));
468
468
  }
469
- return I.createElement("input", Object.assign({}, g, { ref: i }));
469
+ return j.createElement("input", Object.assign({}, g, { ref: i }));
470
470
  }, f;
471
- }(I.Component);
472
- X.defaultProps = be;
473
- const Ne = G.div`
471
+ }(j.Component);
472
+ X.defaultProps = Ne;
473
+ const we = G.div`
474
474
  display: flex;
475
475
  align-items: center;
476
476
 
@@ -491,9 +491,9 @@ const Ne = G.div`
491
491
  "enabled",
492
492
  "border"
493
493
  )};
494
- border-radius: ${(a) => fe(a.theme, "regular")};
494
+ border-radius: ${(a) => le(a.theme, "regular")};
495
495
 
496
- ${(a) => a.focused === !0 && a.readOnly !== !0 ? le(a.theme) : ""}
496
+ ${(a) => a.focused === !0 && a.readOnly !== !0 ? ue(a.theme) : ""}
497
497
  ${(a) => a.isDisabled === !0 ? W(a.theme) : ""}
498
498
  ${(a) => a.isDisabled === !0 ? "border: 1px solid " + R(
499
499
  a.theme,
@@ -511,7 +511,7 @@ const Ne = G.div`
511
511
  padding-bottom: 0.625rem;
512
512
  width: 100%;
513
513
 
514
- ${(a) => ue(a.theme, "Input", a.size, "enabled")}
514
+ ${(a) => ce(a.theme, "Input", a.size, "enabled")}
515
515
  min-height: ${(a) => B(a.theme, a.size)};
516
516
  max-height: ${(a) => B(a.theme, a.size)};
517
517
  color: ${(a) => R(
@@ -553,7 +553,7 @@ const Ne = G.div`
553
553
  "enabled",
554
554
  "prefix"
555
555
  )};
556
- `, we = G(Y)``, De = I.forwardRef((a, f) => {
556
+ `, De = G(Y)``, Ce = oe((a, f) => {
557
557
  const {
558
558
  disabled: u,
559
559
  readOnly: e,
@@ -576,12 +576,12 @@ const Ne = G.div`
576
576
  size: x = "small",
577
577
  color: w = "primary",
578
578
  ...P
579
- } = a, v = ce(), [N, F] = oe(!1), E = ne(
580
- se((b, D) => T(b, D), t),
579
+ } = a, v = pe(), [N, F] = ne(!1), E = se(
580
+ fe((b, D) => T(b, D), t),
581
581
  [c]
582
582
  ), T = (b, D) => {
583
583
  c && (c == null || c(b, D));
584
- }, j = (b, D) => {
584
+ }, I = (b, D) => {
585
585
  E(D.event, _value);
586
586
  }, M = () => n < 0 ? 0 : n > 17 ? 17 : n, k = (b) => {
587
587
  F(!0), d == null || d(b);
@@ -589,7 +589,7 @@ const Ne = G.div`
589
589
  F(!1), m == null || m(b);
590
590
  };
591
591
  return /* @__PURE__ */ ie(
592
- Ne,
592
+ we,
593
593
  {
594
594
  style: y,
595
595
  className: g,
@@ -626,12 +626,12 @@ const Ne = G.div`
626
626
  allowNegative: p,
627
627
  onFocus: k,
628
628
  onBlur: A,
629
- onValueChange: j,
629
+ onValueChange: I,
630
630
  ...P
631
631
  }
632
632
  ),
633
633
  o && /* @__PURE__ */ K(
634
- we,
634
+ De,
635
635
  {
636
636
  theme: v,
637
637
  color: w,
@@ -644,7 +644,7 @@ const Ne = G.div`
644
644
  }
645
645
  );
646
646
  });
647
- De.propTypes = {
647
+ Ce.propTypes = {
648
648
  id: S.string,
649
649
  value: S.any,
650
650
  defaultValue: S.any,
@@ -693,5 +693,5 @@ De.propTypes = {
693
693
  ])
694
694
  };
695
695
  export {
696
- De as default
696
+ Ce as default
697
697
  };
@@ -1,12 +1,12 @@
1
- "use strict";const s=require("react/jsx-runtime"),k=require("react"),e=require("./index-DXnSjbfJ.cjs"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),n=require("./utils-hdRGTsQ7.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),W=require("./Button.cjs"),c=require("./IconButton.cjs"),A=b.newStyled.label`
1
+ "use strict";const s=require("react/jsx-runtime"),k=require("react"),e=require("./index-BIlhCoy2.cjs"),T=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),D=require("./FlexGrid.cjs"),L=require("./FlexGridItem.cjs"),n=require("./utils-DTAPpJXU.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),W=require("./Button.cjs"),d=require("./IconButton.cjs"),A=T.newStyled.label`
2
2
  display: block;
3
3
  margin-bottom: 4px;
4
4
  ${o=>n.getComponentTypographyCss(o.theme,"FormField",o.size,"enabled")}
5
5
  color: ${o=>n.getColorRgbaValue(o.theme,"FormField",o.color,"enabled","text")};
6
- `,T=k.forwardRef((o,p)=>{const{size:g="small",color:a="primary",className:P="",style:l={},children:y}=o,u=_.useTheme();return s.jsx(A,{theme:u,size:g,className:"lnc-ui-label "+P,style:l,color:a,ref:p,children:y})});T.defaultProps={style:{},size:"small",color:"primary"};T.propTypes={className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};const j=b.newStyled.div`
6
+ `,m=k.forwardRef((o,p)=>{const{size:P="small",color:a="primary",className:l="",style:y={},children:u}=o,b=_.useTheme();return s.jsx(A,{theme:b,size:P,className:"lnc-ui-label "+l,style:y,color:a,ref:p,children:u})});m.defaultProps={style:{},size:"small",color:"primary"};m.propTypes={className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};const j=T.newStyled.div`
7
7
  display: flex;
8
8
  justify-content: space-between;
9
- `,Y=b.newStyled.div`
9
+ `,Y=T.newStyled.div`
10
10
  display: flex;
11
11
  flex-direction: column;
12
12
  gap: 1rem;
@@ -15,4 +15,4 @@
15
15
  border-top: 1px solid rgba(0, 0, 0, 0.04);
16
16
  padding: 12px;
17
17
  background-color: ${o=>n.getColorRgbaValue(o.theme,"Popover","default","enabled","bg")};
18
- `,m=k.forwardRef((o,p)=>{const{__TYPE__:g="DETAILS_VIEW",goToPreviousView:a,id:P,data:l={},fields:y={},flexGridProps:u,goBackText:E="Go back",showBack:v=!0,showNext:B=!0,showPrevious:N=!0,showEdit:x=!0,disableGoBack:C=!1,disableNext:q=!1,disablePrevious:S=!1,disableEdit:h=!1,editOnTop:f=!1,goToNext:R=()=>{},goToPrevious:V=()=>{},onEdit:w=()=>{},goBack:F=()=>{},className:U="",style:H={},color:t="primary",size:i="small",children:G,...I}=o,z=_.useTheme(),O=(r,d)=>{a&&a(),F(r,d)},$=()=>s.jsx(s.Fragment,{children:G||s.jsx(D,{spacing:10,...u,children:y.map((r,d)=>s.jsxs(L,{...r,children:[s.jsxs(T,{color:t,size:i,children:[r.label,":"]},d),l[r.accessor]]},d))})});return s.jsxs(Y,{ref:p,theme:z,color:t,borderRadius:"regular",...I,children:[s.jsxs(j,{children:[v&&s.jsx(W,{leadingIcon:"arrow-circle-left",text:E,btnType:"outline",style:{width:"fit-content"},onClick:r=>O(r,l),disabled:C,color:t,size:i},0),x&&f&&s.jsx(c,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]}),$(),s.jsxs(j,{children:[s.jsxs("div",{children:[B&&s.jsxs(s.Fragment,{children:[s.jsx(c,{btnType:"outline",icon:"angle-left",disabled:S,onClick:r=>V(l,r),color:t,size:i}),"  "]}),N&&s.jsx(c,{btnType:"outline",icon:"angle-right",disabled:q,onClick:r=>R(l,r),color:t,size:i})]}),x&&!f&&s.jsx(c,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]})]})});m.propTypes={__TYPE__:e.PropTypes.string,goBackText:e.PropTypes.string,fields:e.PropTypes.array,data:e.PropTypes.object,showBack:e.PropTypes.bool,showNext:e.PropTypes.bool,showPrevious:e.PropTypes.bool,showEdit:e.PropTypes.bool,disableGoBack:e.PropTypes.bool,disableNext:e.PropTypes.bool,disablePrevious:e.PropTypes.bool,disableEdit:e.PropTypes.bool,flexGridProps:e.PropTypes.any,editOnTop:e.PropTypes.bool,goToNext:e.PropTypes.func,goToPrevious:e.PropTypes.func,onEdit:e.PropTypes.func,goBack:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};m.displayName="DETAILS_VIEW";module.exports=m;
18
+ `,g=k.forwardRef((o,p)=>{const{__TYPE__:P="DETAILS_VIEW",goToPreviousView:a,data:l={},fields:y={},flexGridProps:u,goBackText:b="Go back",showBack:E=!0,showNext:v=!0,showPrevious:B=!0,showEdit:x=!0,disableGoBack:N=!1,disableNext:C=!1,disablePrevious:q=!1,disableEdit:h=!1,editOnTop:f=!1,goToNext:S=()=>{},goToPrevious:R=()=>{},onEdit:w=()=>{},goBack:V=()=>{},className:F="",color:t="primary",size:i="small",children:G,...I}=o,z=_.useTheme(),O=(r,c)=>{a&&a(),V(r,c)},$=()=>s.jsx(s.Fragment,{children:G||s.jsx(D,{spacing:10,...u,children:y.map((r,c)=>s.jsxs(L,{...r,children:[s.jsxs(m,{color:t,size:i,children:[r.label,":"]},c),l[r.accessor]]},c))})});return s.jsxs(Y,{ref:p,theme:z,color:t,borderRadius:"regular",className:F,...I,children:[s.jsxs(j,{children:[E&&s.jsx(W,{leadingIcon:"arrow-circle-left",text:b,btnType:"outline",style:{width:"fit-content"},onClick:r=>O(r,l),disabled:N,color:t,size:i},0),x&&f&&s.jsx(d,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]}),$(),s.jsxs(j,{children:[s.jsxs("div",{children:[v&&s.jsxs(s.Fragment,{children:[s.jsx(d,{btnType:"outline",icon:"angle-left",disabled:q,onClick:r=>R(l,r),color:t,size:i}),"  "]}),B&&s.jsx(d,{btnType:"outline",icon:"angle-right",disabled:C,onClick:r=>S(l,r),color:t,size:i})]}),x&&!f&&s.jsx(d,{btnType:"outline",icon:"pen",disabled:h,onClick:r=>w(l,r),color:t,size:i})]})]})});g.propTypes={__TYPE__:e.PropTypes.string,goBackText:e.PropTypes.string,fields:e.PropTypes.array,data:e.PropTypes.object,showBack:e.PropTypes.bool,showNext:e.PropTypes.bool,showPrevious:e.PropTypes.bool,showEdit:e.PropTypes.bool,disableGoBack:e.PropTypes.bool,disableNext:e.PropTypes.bool,disablePrevious:e.PropTypes.bool,disableEdit:e.PropTypes.bool,flexGridProps:e.PropTypes.any,editOnTop:e.PropTypes.bool,goToNext:e.PropTypes.func,goToPrevious:e.PropTypes.func,onEdit:e.PropTypes.func,goBack:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};g.displayName="DETAILS_VIEW";module.exports=g;
@@ -1,14 +1,14 @@
1
1
  import { jsx as a, jsxs as t, Fragment as k } from "react/jsx-runtime";
2
- import v from "react";
3
- import { P as e } from "./index-Ds9PUTwb.js";
4
- import { n as p } from "./emotion-styled.browser.esm-BZSYYThs.js";
2
+ import { forwardRef as v } from "react";
3
+ import { P as e } from "./index-BYnWp42a.js";
4
+ import { n as f } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  import W from "./FlexGrid.js";
6
6
  import A from "./FlexGridItem.js";
7
- import { a as Y, b as B, d as U, c as q } from "./utils-DEke8iwo.js";
8
- import { u as E } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
7
+ import { g as Y, a as B, c as U, b as q } from "./utils-C52T57HO.js";
8
+ import { u as E } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
9
9
  import H from "./Button.js";
10
10
  import c from "./IconButton.js";
11
- const J = p.label`
11
+ const J = f.label`
12
12
  display: block;
13
13
  margin-bottom: 4px;
14
14
  ${(o) => Y(o.theme, "FormField", o.size, "enabled")}
@@ -19,33 +19,33 @@ const J = p.label`
19
19
  "enabled",
20
20
  "text"
21
21
  )};
22
- `, f = v.forwardRef((o, m) => {
22
+ `, g = v((o, m) => {
23
23
  const {
24
- size: g = "small",
24
+ size: h = "small",
25
25
  color: n = "primary",
26
- className: h = "",
27
- style: r = {},
28
- children: b
26
+ className: r = "",
27
+ style: b = {},
28
+ children: p
29
29
  } = o, u = E();
30
30
  return /* @__PURE__ */ a(
31
31
  J,
32
32
  {
33
33
  theme: u,
34
- size: g,
35
- className: "lnc-ui-label " + h,
36
- style: r,
34
+ size: h,
35
+ className: "lnc-ui-label " + r,
36
+ style: b,
37
37
  color: n,
38
38
  ref: m,
39
- children: b
39
+ children: p
40
40
  }
41
41
  );
42
42
  });
43
- f.defaultProps = {
43
+ g.defaultProps = {
44
44
  style: {},
45
45
  size: "small",
46
46
  color: "primary"
47
47
  };
48
- f.propTypes = {
48
+ g.propTypes = {
49
49
  className: e.string,
50
50
  style: e.object,
51
51
  size: e.oneOf(["small", "medium", "large"]),
@@ -60,10 +60,10 @@ f.propTypes = {
60
60
  "gray"
61
61
  ])
62
62
  };
63
- const P = p.div`
63
+ const P = f.div`
64
64
  display: flex;
65
65
  justify-content: space-between;
66
- `, K = p.div`
66
+ `, K = f.div`
67
67
  display: flex;
68
68
  flex-direction: column;
69
69
  gap: 1rem;
@@ -78,21 +78,21 @@ const P = p.div`
78
78
  border-top: 1px solid rgba(0, 0, 0, 0.04);
79
79
  padding: 12px;
80
80
  background-color: ${(o) => B(o.theme, "Popover", "default", "enabled", "bg")};
81
- `, N = v.forwardRef((o, m) => {
81
+ `, N = v((o, m) => {
82
82
  const {
83
- __TYPE__: g = "DETAILS_VIEW",
83
+ // eslint-disable-next-line no-unused-vars
84
+ __TYPE__: h = "DETAILS_VIEW",
84
85
  goToPreviousView: n,
85
- id: h,
86
86
  data: r = {},
87
87
  fields: b = {},
88
- flexGridProps: u,
89
- goBackText: _ = "Go back",
88
+ flexGridProps: p,
89
+ goBackText: u = "Go back",
90
90
  showBack: C = !0,
91
- showNext: G = !0,
92
- showPrevious: V = !0,
91
+ showNext: _ = !0,
92
+ showPrevious: G = !0,
93
93
  showEdit: y = !0,
94
- disableGoBack: F = !1,
95
- disableNext: R = !1,
94
+ disableGoBack: V = !1,
95
+ disableNext: F = !1,
96
96
  disablePrevious: S = !1,
97
97
  disableEdit: x = !1,
98
98
  editOnTop: T = !1,
@@ -106,12 +106,11 @@ const P = p.div`
106
106
  goBack: I = () => {
107
107
  },
108
108
  //------------------
109
- className: M = "",
110
- style: Q = {},
109
+ className: O = "",
111
110
  color: i = "primary",
112
111
  size: s = "small",
113
- children: O,
114
- ...$
112
+ children: $,
113
+ ...R
115
114
  } = o, D = E(), L = (l, d) => {
116
115
  n && n(), I(l, d);
117
116
  };
@@ -122,18 +121,19 @@ const P = p.div`
122
121
  theme: D,
123
122
  color: i,
124
123
  borderRadius: "regular",
125
- ...$,
124
+ className: O,
125
+ ...R,
126
126
  children: [
127
127
  /* @__PURE__ */ t(P, { children: [
128
128
  C && /* @__PURE__ */ a(
129
129
  H,
130
130
  {
131
131
  leadingIcon: "arrow-circle-left",
132
- text: _,
132
+ text: u,
133
133
  btnType: "outline",
134
134
  style: { width: "fit-content" },
135
135
  onClick: (l) => L(l, r),
136
- disabled: F,
136
+ disabled: V,
137
137
  color: i,
138
138
  size: s
139
139
  },
@@ -151,8 +151,8 @@ const P = p.div`
151
151
  }
152
152
  )
153
153
  ] }),
154
- /* @__PURE__ */ a(k, { children: O || /* @__PURE__ */ a(W, { spacing: 10, ...u, children: b.map((l, d) => /* @__PURE__ */ t(A, { ...l, children: [
155
- /* @__PURE__ */ t(f, { color: i, size: s, children: [
154
+ /* @__PURE__ */ a(k, { children: $ || /* @__PURE__ */ a(W, { spacing: 10, ...p, children: b.map((l, d) => /* @__PURE__ */ t(A, { ...l, children: [
155
+ /* @__PURE__ */ t(g, { color: i, size: s, children: [
156
156
  l.label,
157
157
  ":"
158
158
  ] }, d),
@@ -160,7 +160,7 @@ const P = p.div`
160
160
  ] }, d)) }) }),
161
161
  /* @__PURE__ */ t(P, { children: [
162
162
  /* @__PURE__ */ t("div", { children: [
163
- G && /* @__PURE__ */ t(k, { children: [
163
+ _ && /* @__PURE__ */ t(k, { children: [
164
164
  /* @__PURE__ */ a(
165
165
  c,
166
166
  {
@@ -174,12 +174,12 @@ const P = p.div`
174
174
  ),
175
175
  "  "
176
176
  ] }),
177
- V && /* @__PURE__ */ a(
177
+ G && /* @__PURE__ */ a(
178
178
  c,
179
179
  {
180
180
  btnType: "outline",
181
181
  icon: "angle-right",
182
- disabled: R,
182
+ disabled: F,
183
183
  onClick: (l) => j(r, l),
184
184
  color: i,
185
185
  size: s
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("react/jsx-runtime"),i=require("react"),v=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./index-DXnSjbfJ.cjs"),o=require("./utils-hdRGTsQ7.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),C=({theme:e,size:y})=>{var u=o.getSizeValueWithUnits(e,y);return`
1
+ "use strict";const t=require("react/jsx-runtime"),i=require("react"),v=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./index-BIlhCoy2.cjs"),o=require("./utils-DTAPpJXU.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),C=({theme:e,size:y})=>{var u=o.getSizeValueWithUnits(e,y);return`
2
2
  min-height: ${u};
3
3
  max-height: ${u};
4
4
  `},b={small:"0.875rem",medium:"1.125rem",large:"1.375rem"},N=v.newStyled.div`