@utilitywarehouse/hearth-react 0.24.14 → 0.24.15

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 (178) hide show
  1. package/dist/chunk-2GIN5F3U.cjs +2 -0
  2. package/dist/chunk-2GIN5F3U.cjs.map +1 -0
  3. package/dist/chunk-2J6ESRUT.cjs +2 -0
  4. package/dist/chunk-2J6ESRUT.cjs.map +1 -0
  5. package/dist/{chunk-4MPRCVYH.cjs → chunk-2KOSRTEJ.cjs} +2 -2
  6. package/dist/{chunk-4MPRCVYH.cjs.map → chunk-2KOSRTEJ.cjs.map} +1 -1
  7. package/dist/{chunk-3SV7S3S4.cjs → chunk-37Y47EVC.cjs} +2 -2
  8. package/dist/{chunk-3SV7S3S4.cjs.map → chunk-37Y47EVC.cjs.map} +1 -1
  9. package/dist/chunk-3VFCVBXL.js +2 -0
  10. package/dist/chunk-3VFCVBXL.js.map +1 -0
  11. package/dist/{chunk-QEKBLSE3.js → chunk-42SOFGH3.js} +2 -2
  12. package/dist/{chunk-K4RWSELN.cjs → chunk-45JNVTHN.cjs} +2 -2
  13. package/dist/chunk-45JNVTHN.cjs.map +1 -0
  14. package/dist/chunk-4DHFW3SB.js +2 -0
  15. package/dist/chunk-4DHFW3SB.js.map +1 -0
  16. package/dist/{chunk-BHEHWAUS.cjs → chunk-4X3BK4K3.cjs} +2 -2
  17. package/dist/{chunk-BHEHWAUS.cjs.map → chunk-4X3BK4K3.cjs.map} +1 -1
  18. package/dist/chunk-5QWOAXXI.cjs +2 -0
  19. package/dist/chunk-5QWOAXXI.cjs.map +1 -0
  20. package/dist/{chunk-6M2TG66C.cjs → chunk-5R3LALKT.cjs} +2 -2
  21. package/dist/{chunk-6M2TG66C.cjs.map → chunk-5R3LALKT.cjs.map} +1 -1
  22. package/dist/{chunk-WHNZUG4R.cjs → chunk-AHM6HIFY.cjs} +2 -2
  23. package/dist/{chunk-WHNZUG4R.cjs.map → chunk-AHM6HIFY.cjs.map} +1 -1
  24. package/dist/chunk-AJEG3D37.cjs +2 -0
  25. package/dist/chunk-AJEG3D37.cjs.map +1 -0
  26. package/dist/{chunk-IJJGXLVK.cjs → chunk-AVGPPHTC.cjs} +2 -2
  27. package/dist/{chunk-IJJGXLVK.cjs.map → chunk-AVGPPHTC.cjs.map} +1 -1
  28. package/dist/{chunk-MILIEBTD.cjs → chunk-BIYLFMVG.cjs} +2 -2
  29. package/dist/{chunk-MILIEBTD.cjs.map → chunk-BIYLFMVG.cjs.map} +1 -1
  30. package/dist/chunk-BZXGMEVY.js +2 -0
  31. package/dist/chunk-BZXGMEVY.js.map +1 -0
  32. package/dist/{chunk-WZYQVR44.js → chunk-CK7QFOWD.js} +2 -2
  33. package/dist/{chunk-CJXMLCA2.js → chunk-E6JPYGSG.js} +2 -2
  34. package/dist/{chunk-MLZNGLDO.cjs → chunk-EM33NSIH.cjs} +2 -2
  35. package/dist/{chunk-MLZNGLDO.cjs.map → chunk-EM33NSIH.cjs.map} +1 -1
  36. package/dist/{chunk-JP3ZLMBS.cjs → chunk-EMMIOGQB.cjs} +2 -2
  37. package/dist/{chunk-JP3ZLMBS.cjs.map → chunk-EMMIOGQB.cjs.map} +1 -1
  38. package/dist/{chunk-F6WCIWWX.js → chunk-G5PXDIBC.js} +2 -2
  39. package/dist/{chunk-RTLA6OD6.js → chunk-GH6OOCOX.js} +2 -2
  40. package/dist/chunk-HD4XF4MI.cjs +2 -0
  41. package/dist/chunk-HD4XF4MI.cjs.map +1 -0
  42. package/dist/chunk-KETB2GNA.cjs +2 -0
  43. package/dist/chunk-KETB2GNA.cjs.map +1 -0
  44. package/dist/{chunk-7PJC47FD.js → chunk-L35AV4PZ.js} +2 -2
  45. package/dist/{chunk-RPN3Y4ZQ.js → chunk-M77ZGJEQ.js} +2 -2
  46. package/dist/{chunk-GFG6UJYW.js → chunk-MCSL4BBJ.js} +2 -2
  47. package/dist/{chunk-GATQRCIC.js → chunk-MRID5MOZ.js} +2 -2
  48. package/dist/{chunk-NFPIFSDD.cjs → chunk-ONZJWEZY.cjs} +1 -1
  49. package/dist/{chunk-NFPIFSDD.cjs.map → chunk-ONZJWEZY.cjs.map} +1 -1
  50. package/dist/{chunk-HECLKFB5.js → chunk-SZFDCDUK.js} +1 -1
  51. package/dist/chunk-SZFDCDUK.js.map +1 -0
  52. package/dist/{chunk-UVVOKCAO.js → chunk-TTF7PTFZ.js} +2 -2
  53. package/dist/{chunk-G2YDYU4Q.cjs → chunk-UPFFJYVU.cjs} +2 -2
  54. package/dist/{chunk-G2YDYU4Q.cjs.map → chunk-UPFFJYVU.cjs.map} +1 -1
  55. package/dist/{chunk-GQRNYQV6.js → chunk-UUFCRSJ2.js} +2 -2
  56. package/dist/{chunk-UOGWX5DV.cjs → chunk-UXGRYKUD.cjs} +2 -2
  57. package/dist/{chunk-UOGWX5DV.cjs.map → chunk-UXGRYKUD.cjs.map} +1 -1
  58. package/dist/chunk-UYOL3ZJP.js +2 -0
  59. package/dist/chunk-UYOL3ZJP.js.map +1 -0
  60. package/dist/{chunk-IJWMHLXM.js → chunk-Y2DWTHAK.js} +2 -2
  61. package/dist/chunk-YB4RIRLB.js +2 -0
  62. package/dist/{chunk-GENAMX6B.js.map → chunk-YB4RIRLB.js.map} +1 -1
  63. package/dist/{chunk-F3EHAH7K.cjs → chunk-YDM7CNIQ.cjs} +2 -2
  64. package/dist/{chunk-F3EHAH7K.cjs.map → chunk-YDM7CNIQ.cjs.map} +1 -1
  65. package/dist/{chunk-RPP7J3G6.cjs → chunk-YDYDQJEJ.cjs} +2 -2
  66. package/dist/{chunk-RPP7J3G6.cjs.map → chunk-YDYDQJEJ.cjs.map} +1 -1
  67. package/dist/{chunk-S3PHETLT.js → chunk-YPC4QF7M.js} +2 -2
  68. package/dist/{chunk-JF5CW555.js → chunk-YRM3M5XJ.js} +2 -2
  69. package/dist/chunk-Z4Y63ALC.js +2 -0
  70. package/dist/chunk-Z4Y63ALC.js.map +1 -0
  71. package/dist/chunk-ZLC7RWKQ.js +2 -0
  72. package/dist/chunk-ZLC7RWKQ.js.map +1 -0
  73. package/dist/{chunk-AGVUDBCB.cjs → chunk-ZVE7YUPC.cjs} +2 -2
  74. package/dist/{chunk-AGVUDBCB.cjs.map → chunk-ZVE7YUPC.cjs.map} +1 -1
  75. package/dist/components/Button/Button.cjs +1 -1
  76. package/dist/components/Button/Button.js +1 -1
  77. package/dist/components/Card/Card.cjs +1 -1
  78. package/dist/components/Card/Card.js +1 -1
  79. package/dist/components/Combobox/Combobox.cjs +1 -1
  80. package/dist/components/Combobox/Combobox.js +1 -1
  81. package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
  82. package/dist/components/CurrencyInput/CurrencyInput.d.cts +2 -5
  83. package/dist/components/CurrencyInput/CurrencyInput.d.ts +2 -5
  84. package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
  85. package/dist/components/DateInput/DateInput.cjs +1 -1
  86. package/dist/components/DateInput/DateInput.js +1 -1
  87. package/dist/components/DateInput/DateInputSegment.cjs +1 -1
  88. package/dist/components/DateInput/DateInputSegment.d.cts +2 -6
  89. package/dist/components/DateInput/DateInputSegment.d.ts +2 -6
  90. package/dist/components/DateInput/DateInputSegment.js +1 -1
  91. package/dist/components/DatePicker/DatePicker.cjs +1 -1
  92. package/dist/components/DatePicker/DatePicker.js +1 -1
  93. package/dist/components/HighlightBanner/HighlightBanner.cjs +1 -1
  94. package/dist/components/HighlightBanner/HighlightBanner.js +1 -1
  95. package/dist/components/InputBase/InputBase.cjs +1 -1
  96. package/dist/components/InputBase/InputBase.d.cts +3 -2
  97. package/dist/components/InputBase/InputBase.d.ts +3 -2
  98. package/dist/components/InputBase/InputBase.js +1 -1
  99. package/dist/components/List/List.cjs +1 -1
  100. package/dist/components/List/List.js +1 -1
  101. package/dist/components/Modal/Modal.cjs +1 -1
  102. package/dist/components/Modal/Modal.js +1 -1
  103. package/dist/components/Pagination/Pagination.cjs +1 -1
  104. package/dist/components/Pagination/Pagination.js +1 -1
  105. package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
  106. package/dist/components/PasswordInput/PasswordInput.d.cts +2 -5
  107. package/dist/components/PasswordInput/PasswordInput.d.ts +2 -5
  108. package/dist/components/PasswordInput/PasswordInput.js +1 -1
  109. package/dist/components/ProgressBar/ProgressBar.cjs +1 -1
  110. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  111. package/dist/components/ProgressBar/ProgressBarCircular.cjs +1 -1
  112. package/dist/components/ProgressBar/ProgressBarCircular.js +1 -1
  113. package/dist/components/ProgressBar/ProgressBarLinear.cjs +1 -1
  114. package/dist/components/ProgressBar/ProgressBarLinear.js +1 -1
  115. package/dist/components/SearchInput/SearchInput.cjs +1 -1
  116. package/dist/components/SearchInput/SearchInput.d.cts +2 -5
  117. package/dist/components/SearchInput/SearchInput.d.ts +2 -5
  118. package/dist/components/SearchInput/SearchInput.js +1 -1
  119. package/dist/components/Table/Table.cjs +1 -1
  120. package/dist/components/Table/Table.js +1 -1
  121. package/dist/components/Table/TablePagination.cjs +1 -1
  122. package/dist/components/Table/TablePagination.js +1 -1
  123. package/dist/components/TextInput/TextInput.cjs +1 -1
  124. package/dist/components/TextInput/TextInput.d.cts +2 -5
  125. package/dist/components/TextInput/TextInput.d.ts +2 -5
  126. package/dist/components/TextInput/TextInput.js +1 -1
  127. package/dist/components/ToggleButtonCard/ToggleButtonCard.cjs +1 -1
  128. package/dist/components/ToggleButtonCard/ToggleButtonCard.js +1 -1
  129. package/dist/components/VerificationInput/VerificationInput.cjs +1 -1
  130. package/dist/components/VerificationInput/VerificationInput.d.cts +4 -6
  131. package/dist/components/VerificationInput/VerificationInput.d.ts +4 -6
  132. package/dist/components/VerificationInput/VerificationInput.js +1 -1
  133. package/dist/index.cjs +1 -1
  134. package/dist/index.cjs.map +1 -1
  135. package/dist/index.js +1 -1
  136. package/package.json +1 -1
  137. package/styles.css +1 -1
  138. package/dist/chunk-54YG4VNB.cjs +0 -2
  139. package/dist/chunk-54YG4VNB.cjs.map +0 -1
  140. package/dist/chunk-6TYBHIC2.js +0 -2
  141. package/dist/chunk-6TYBHIC2.js.map +0 -1
  142. package/dist/chunk-7G6BT4OO.cjs +0 -2
  143. package/dist/chunk-7G6BT4OO.cjs.map +0 -1
  144. package/dist/chunk-EBURNEZX.js +0 -2
  145. package/dist/chunk-EBURNEZX.js.map +0 -1
  146. package/dist/chunk-G3CRGGF6.cjs +0 -2
  147. package/dist/chunk-G3CRGGF6.cjs.map +0 -1
  148. package/dist/chunk-GENAMX6B.js +0 -2
  149. package/dist/chunk-HECLKFB5.js.map +0 -1
  150. package/dist/chunk-IURJIQKN.js +0 -2
  151. package/dist/chunk-IURJIQKN.js.map +0 -1
  152. package/dist/chunk-K4RWSELN.cjs.map +0 -1
  153. package/dist/chunk-PEIZ5YXW.js +0 -2
  154. package/dist/chunk-PEIZ5YXW.js.map +0 -1
  155. package/dist/chunk-QCMTR2BT.js +0 -2
  156. package/dist/chunk-QCMTR2BT.js.map +0 -1
  157. package/dist/chunk-QK53VWN5.js +0 -2
  158. package/dist/chunk-QK53VWN5.js.map +0 -1
  159. package/dist/chunk-ZFWAO4WB.cjs +0 -2
  160. package/dist/chunk-ZFWAO4WB.cjs.map +0 -1
  161. package/dist/chunk-ZXN6ZQX5.cjs +0 -2
  162. package/dist/chunk-ZXN6ZQX5.cjs.map +0 -1
  163. package/dist/chunk-ZZOECKRZ.cjs +0 -2
  164. package/dist/chunk-ZZOECKRZ.cjs.map +0 -1
  165. /package/dist/{chunk-QEKBLSE3.js.map → chunk-42SOFGH3.js.map} +0 -0
  166. /package/dist/{chunk-WZYQVR44.js.map → chunk-CK7QFOWD.js.map} +0 -0
  167. /package/dist/{chunk-CJXMLCA2.js.map → chunk-E6JPYGSG.js.map} +0 -0
  168. /package/dist/{chunk-F6WCIWWX.js.map → chunk-G5PXDIBC.js.map} +0 -0
  169. /package/dist/{chunk-RTLA6OD6.js.map → chunk-GH6OOCOX.js.map} +0 -0
  170. /package/dist/{chunk-7PJC47FD.js.map → chunk-L35AV4PZ.js.map} +0 -0
  171. /package/dist/{chunk-RPN3Y4ZQ.js.map → chunk-M77ZGJEQ.js.map} +0 -0
  172. /package/dist/{chunk-GFG6UJYW.js.map → chunk-MCSL4BBJ.js.map} +0 -0
  173. /package/dist/{chunk-GATQRCIC.js.map → chunk-MRID5MOZ.js.map} +0 -0
  174. /package/dist/{chunk-UVVOKCAO.js.map → chunk-TTF7PTFZ.js.map} +0 -0
  175. /package/dist/{chunk-GQRNYQV6.js.map → chunk-UUFCRSJ2.js.map} +0 -0
  176. /package/dist/{chunk-IJWMHLXM.js.map → chunk-Y2DWTHAK.js.map} +0 -0
  177. /package/dist/{chunk-S3PHETLT.js.map → chunk-YPC4QF7M.js.map} +0 -0
  178. /package/dist/{chunk-JF5CW555.js.map → chunk-YRM3M5XJ.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkAJEG3D37cjs = require('./chunk-AJEG3D37.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkAGPVWUNAcjs = require('./chunk-AGPVWUNA.cjs');var _chunkT3TZBSFXcjs = require('./chunk-T3TZBSFX.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react'); var n = _interopRequireWildcard(_react);var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var f="SearchInput",P=_chunk7LZI6HLWcjs.b.call(void 0, f),g= exports.a =n.forwardRef(({className:I,disabled:u,value:r,onClear:p,loading:d,hideLabel:h=!0,helperText:S,id:y,...R},x)=>{let t=n.useRef(null),b=_useMergedRefs.useMergedRefs.call(void 0, x,t),B=n.useCallback(M=>{typeof p!="function"||M.button!==0||(p(),t&&typeof t=="object"&&t.current&&t.current.focus())},[t,p]),{id:E}=_chunkITZEACMWcjs.a.call(void 0, {providedId:y,prefix:"search-input"});return _jsxruntime.jsxs.call(void 0, _chunkAJEG3D37cjs.a,{ref:b,className:_chunkGVVJQBRKcjs.a.call(void 0, P,I),type:"search",enterKeyHint:"search",disabled:u,hideLabel:h,helperText:S,value:r,id:E,...R,children:[_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _hearthreacticons.SearchMediumIcon,{})}),d?_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkT3TZBSFXcjs.a,{size:"xs",color:"primary"})}):null,r!==void 0&&String(r).length>0?_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"clear search",onClick:B,disabled:u,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{})})}):null]})});g.displayName=f;exports.a = g;
2
+ //# sourceMappingURL=chunk-2GIN5F3U.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-2GIN5F3U.cjs","../src/components/SearchInput/SearchInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SearchInput","className","disabled","value","onClear","loading","hideLabel","helperText","providedId","props","forwardedRef","internalRef","inputRef","useMergedRefs","handleClear","event","id","useIds","jsxs","TextInput","cn","jsx","InputSlot","SearchMediumIcon","Spinner","UnstyledIconButton","CloseSmallIcon"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wECSxO,uEAE1B,6DAEO,+CAwCxB,IAtCAA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAoB,CAAA,CAAA,UAAA,CAC/B,CACE,CACE,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CAAY,CAAA,CAAA,CACZ,UAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,GAAGC,CACL,CAAA,CACAC,CAAAA,CAAAA,EACG,CACH,IAAMC,CAAAA,CAAoB,CAAA,CAAA,MAAA,CAAgC,IAAI,CAAA,CACxDC,CAAAA,CAAWC,0CAAAA,CAAcH,CAAcC,CAAW,CAAA,CAElDG,CAAAA,CAAoB,CAAA,CAAA,WAAA,CACvBC,CAAAA,EAA+C,CAC1C,OAAOX,CAAAA,EAAY,UAAA,EAAcW,CAAAA,CAAM,MAAA,GAAW,CAAA,EAAA,CAGtDX,CAAAA,CAAQ,CAAA,CAEJO,CAAAA,EAAe,OAAOA,CAAAA,EAAgB,QAAA,EAAYA,CAAAA,CAAY,OAAA,EAChEA,CAAAA,CAAY,OAAA,CAAQ,KAAA,CAAM,CAAA,CAE9B,CAAA,CACA,CAACA,CAAAA,CAAaP,CAAO,CACvB,CAAA,CAEM,CAAE,EAAA,CAAAY,CAAG,CAAA,CAAIC,iCAAAA,CAAS,UAAA,CAAAT,CAAAA,CAAY,MAAA,CAAQ,cAAe,CAAC,CAAA,CAE5D,OACEU,8BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKP,CAAAA,CACL,SAAA,CAAWQ,iCAAAA,CAAGtB,CAAoBG,CAAS,CAAA,CAC3C,IAAA,CAAK,QAAA,CACL,YAAA,CAAa,QAAA,CACb,QAAA,CAAUC,CAAAA,CACV,SAAA,CAAWI,CAAAA,CACX,UAAA,CAAYC,CAAAA,CACZ,KAAA,CAAOJ,CAAAA,CACP,EAAA,CAAIa,CAAAA,CACH,GAAGP,CAAAA,CAEJ,QAAA,CAAA,CAAAY,6BAAAA,mBAACC,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,kCAACE,CAAA,CAAA,CAAiB,CAAA,CACpB,CAAA,CACClB,CAAAA,CACCgB,6BAAAA,mBAACC,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,mBAACG,CAAA,CAAQ,IAAA,CAAK,IAAA,CAAK,KAAA,CAAM,SAAA,CAAU,CAAA,CACrC,CAAA,CACE,IAAA,CACHrB,CAAAA,GAAU,KAAA,CAAA,EAAa,MAAA,CAAOA,CAAK,CAAA,CAAE,MAAA,CAAS,CAAA,CAC7CkB,6BAAAA,mBAACC,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,mBAACI,CAAA,CACC,IAAA,CAAK,QAAA,CACL,KAAA,CAAM,cAAA,CACN,OAAA,CAASX,CAAAA,CACT,QAAA,CAAUZ,CAAAA,CAEV,QAAA,CAAAmB,6BAAAA,gCAACK,CAAA,CAAA,CAAe,CAAA,CAClB,CAAA,CACF,CAAA,CACE,IAAA,CAAA,CACN,CAEJ,CACF,CAAA,CAEA1B,CAAAA,CAAY,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-2GIN5F3U.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport type { SearchInputProps } from './SearchInput.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { CloseSmallIcon, SearchMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport * as React from 'react';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'SearchInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const SearchInput = React.forwardRef<InputBaseElement, SearchInputProps>(\n (\n {\n className,\n disabled,\n value,\n onClear,\n loading,\n hideLabel = true,\n helperText,\n id: providedId,\n ...props\n },\n forwardedRef\n ) => {\n const internalRef = React.useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const handleClear = React.useCallback(\n (event: React.MouseEvent<HTMLButtonElement>) => {\n if (typeof onClear !== 'function' || event.button !== 0) {\n return;\n }\n onClear();\n\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n internalRef.current.focus();\n }\n },\n [internalRef, onClear]\n );\n\n const { id } = useIds({ providedId, prefix: 'search-input' });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"search\"\n enterKeyHint=\"search\"\n disabled={disabled}\n hideLabel={hideLabel}\n helperText={helperText}\n value={value}\n id={id}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <SearchMediumIcon />\n </InputSlot>\n {loading ? (\n <InputSlot placement=\"suffix\">\n <Spinner size=\"xs\" color=\"primary\" />\n </InputSlot>\n ) : null}\n {value !== undefined && String(value).length > 0 ? (\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"clear search\"\n onClick={handleClear}\n disabled={disabled}\n >\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n ) : null}\n </TextInput>\n );\n }\n);\n\nSearchInput.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkAJEG3D37cjs = require('./chunk-AJEG3D37.cjs');var _chunk5FIJOHVScjs = require('./chunk-5FIJOHVS.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _react = require('react'); var t = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var P="CurrencyInput",z=_chunk7LZI6HLWcjs.b.call(void 0, P),O= exports.a =t.forwardRef(({className:B,disabled:D,value:f,onChange:g,placeholder:M="0.00",disableGroupSeparators:d,...w},N)=>{let[V,b]=t.useState(""),S=t.useRef(null),o=t.useRef(null),e=N||S,h=f!==void 0,C=h?String(_nullishCoalesce(f, () => (""))):V,i=n=>{if(!n)return"";let a=n.split("."),r=a[0]||"";d||(r=r.replace(/\B(?=(\d{3})+(?!\d))/g,","));let s=a[1];return s!==void 0?r+"."+s:r},H=n=>{let a=n.target.value,r=n.target.selectionStart||0,s=i(C),I=a.replace(/[^\d.]/g,""),u=I.split("."),y=u.length>2?u[0]+"."+u.slice(1).join(""):I,p=y.split("."),c=p[1]!==void 0?p[0]+"."+p[1].substring(0,2):y;if(d)o.current=null;else{let l=i(c),L=(s.slice(0,Math.min(r,s.length)).match(/,/g)||[]).length,j=(l.slice(0,Math.min(r,l.length)).match(/,/g)||[]).length-L;o.current=r+j}if(h||b(c),g&&e&&typeof e=="object"&&e.current){let l={...n,target:{...n.target,value:c},currentTarget:{...n.currentTarget,value:c}};g(l)}};return t.useEffect(()=>{e&&typeof e=="object"&&e.current&&o.current!==null&&(e.current.setSelectionRange(o.current,o.current),o.current=null)}),_jsxruntime.jsx.call(void 0, _chunkAJEG3D37cjs.a,{ref:e,className:_chunkGVVJQBRKcjs.a.call(void 0, z,B),type:"text",inputMode:"decimal",disabled:D,value:i(C),onChange:H,placeholder:M,...w,children:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _chunk5FIJOHVScjs.a,{size:"3xl",children:"\xA3"})})})});O.displayName=P;exports.a = O;
2
+ //# sourceMappingURL=chunk-2J6ESRUT.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-2J6ESRUT.cjs","../src/components/CurrencyInput/CurrencyInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CurrencyInput","className","disabled","controlledValue","onChange","placeholder","disableGroupSeparators","props","forwardedRef","internalValue","setInternalValue","localRef","cursorPositionRef","inputRef","isControlled","numericValue","formatValue","value","parts","integerPart","decimalPart","handleChange","e","input","cursorPosition","previousDisplayValue","cleaned","sanitized","finalParts","limitedValue","newDisplayValue","oldCommasBeforeCursor","commaDiff","syntheticEvent","jsx","TextInput","cn","InputSlot","DetailText"],"mappings":"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","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-2J6ESRUT.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ChangeEvent } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport type { CurrencyInputProps } from './CurrencyInput.props';\nimport { DetailText } from '../DetailText/DetailText';\nimport type { InputBaseElement } from '../InputBase/InputBase';\n\nconst COMPONENT_NAME = 'CurrencyInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const CurrencyInput = React.forwardRef<InputBaseElement, CurrencyInputProps>(\n (\n {\n className,\n disabled,\n value: controlledValue,\n onChange,\n placeholder = '0.00',\n disableGroupSeparators,\n ...props\n },\n forwardedRef\n ) => {\n const maxDecimals = 2;\n const [internalValue, setInternalValue] = React.useState<string>('');\n const localRef = React.useRef<HTMLInputElement>(null);\n const cursorPositionRef = React.useRef<number | null>(null);\n\n // Use forwarded ref if provided, otherwise use internal ref\n const inputRef = forwardedRef || localRef;\n\n const isControlled = controlledValue !== undefined;\n const numericValue = isControlled ? String(controlledValue ?? '') : internalValue;\n\n // Format value for display\n const formatValue = (value: string): string => {\n if (!value) return '';\n\n const parts = value.split('.');\n let integerPart = parts[0] || '';\n\n if (!disableGroupSeparators) {\n integerPart = integerPart.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n }\n\n const decimalPart = parts[1];\n return decimalPart !== undefined ? integerPart + '.' + decimalPart : integerPart;\n };\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>): void => {\n const input = e.target.value;\n const cursorPosition = e.target.selectionStart || 0;\n const previousDisplayValue = formatValue(numericValue);\n\n // Remove all non-digits except decimal\n const cleaned = input.replace(/[^\\d.]/g, '');\n\n // Ensure only one decimal point\n const parts = cleaned.split('.');\n const sanitized = parts.length > 2 ? parts[0] + '.' + parts.slice(1).join('') : cleaned;\n\n // Limit decimal places\n const finalParts = sanitized.split('.');\n const limitedValue =\n finalParts[1] !== undefined\n ? finalParts[0] + '.' + finalParts[1].substring(0, maxDecimals)\n : sanitized;\n\n // Calculate new cursor position\n if (!disableGroupSeparators) {\n const newDisplayValue = formatValue(limitedValue);\n const oldCommasBeforeCursor = (\n previousDisplayValue\n .slice(0, Math.min(cursorPosition, previousDisplayValue.length))\n .match(/,/g) || []\n ).length;\n const newCommasBeforeCursor = (\n newDisplayValue.slice(0, Math.min(cursorPosition, newDisplayValue.length)).match(/,/g) ||\n []\n ).length;\n const commaDiff = newCommasBeforeCursor - oldCommasBeforeCursor;\n cursorPositionRef.current = cursorPosition + commaDiff;\n } else {\n cursorPositionRef.current = null;\n }\n if (!isControlled) {\n setInternalValue(limitedValue);\n }\n\n // Return numeric value WITHOUT commas\n if (onChange && inputRef && typeof inputRef === 'object' && inputRef.current) {\n const syntheticEvent = {\n ...e,\n target: {\n ...e.target,\n value: limitedValue, // Raw numeric value without commas\n },\n currentTarget: {\n ...e.currentTarget,\n value: limitedValue,\n },\n } as ChangeEvent<HTMLInputElement>;\n\n onChange(syntheticEvent);\n }\n };\n\n // Restore cursor position after render\n React.useEffect(() => {\n if (\n inputRef &&\n typeof inputRef === 'object' &&\n inputRef.current &&\n cursorPositionRef.current !== null\n ) {\n inputRef.current.setSelectionRange(cursorPositionRef.current, cursorPositionRef.current);\n cursorPositionRef.current = null;\n }\n });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"text\"\n inputMode=\"decimal\"\n disabled={disabled}\n value={formatValue(numericValue)} // Display with commas\n onChange={handleChange}\n placeholder={placeholder}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <DetailText size=\"3xl\">£</DetailText>\n </InputSlot>\n </TextInput>\n );\n }\n);\n\nCurrencyInput.displayName = COMPONENT_NAME;\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNGZ7MXE6cjs = require('./chunk-NGZ7MXE6.cjs');var _chunkSLDUN6XUcjs = require('./chunk-SLDUN6XU.cjs');var _chunk3EK2M2AAcjs = require('./chunk-3EK2M2AA.cjs');var _chunkAGPVWUNAcjs = require('./chunk-AGPVWUNA.cjs');var _chunkT3TZBSFXcjs = require('./chunk-T3TZBSFX.cjs');var _chunkE6ACS2DRcjs = require('./chunk-E6ACS2DR.cjs');var _chunk62YYP3R3cjs = require('./chunk-62YYP3R3.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _jsxruntime = require('react/jsx-runtime');var N="Modal",o=_chunk7LZI6HLWcjs.b.call(void 0, N),O= exports.a =({className:y,image:n,forceMount:D,container:M,heading:I,description:r,hideCloseButton:s,fullScreen:h,loading:d,loadingText:m,children:x,...B})=>{let $={forceMount:D,container:M},p=!!n;return _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal,{...$,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Overlay,{className:_chunk7LZI6HLWcjs.b.call(void 0, "Overlay"),children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}Scroll`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}ScrollPadding`,children:_jsxruntime.jsxs.call(void 0, _radixui.Dialog.Content,{className:_chunkGVVJQBRKcjs.a.call(void 0, o,y),"data-contains-image":p?"":void 0,"data-hide-close-button":s?"":void 0,"data-full-screen":h?"":void 0,...B,children:[_jsxruntime.jsx.call(void 0, _chunkNGZ7MXE6cjs.a,{children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Close","data-visually-hidden":s?"":void 0,className:`${o}CloseIconButton`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseMediumIcon,{})})}),_jsxruntime.jsxs.call(void 0, "div",{className:`${o}OuterContainer`,children:[d?null:_jsxruntime.jsxs.call(void 0, "div",{className:`${o}InnerContainer`,children:[p?_jsxruntime.jsx.call(void 0, "div",{className:`${o}Image`,children:n}):null,_jsxruntime.jsxs.call(void 0, "div",{className:`${o}Header`,children:[_jsxruntime.jsx.call(void 0, _chunkSLDUN6XUcjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkE6ACS2DRcjs.a,{size:"lg",wrap:"wrap",children:I})})}),r?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunk62YYP3R3cjs.a,{size:"md",as:"span",children:r})}):null]})]}),d?_jsxruntime.jsxs.call(void 0, _chunk3EK2M2AAcjs.a,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[_jsxruntime.jsx.call(void 0, _chunkT3TZBSFXcjs.a,{size:"lg"}),m?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkE6ACS2DRcjs.a,{size:"lg",textAlign:"center",wrap:"wrap",children:m})}):null]}):x]})]})})})})})};O.displayName=N;exports.a = O;
2
- //# sourceMappingURL=chunk-4MPRCVYH.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNGZ7MXE6cjs = require('./chunk-NGZ7MXE6.cjs');var _chunk3EK2M2AAcjs = require('./chunk-3EK2M2AA.cjs');var _chunkAGPVWUNAcjs = require('./chunk-AGPVWUNA.cjs');var _chunkT3TZBSFXcjs = require('./chunk-T3TZBSFX.cjs');var _chunkSLDUN6XUcjs = require('./chunk-SLDUN6XU.cjs');var _chunkE6ACS2DRcjs = require('./chunk-E6ACS2DR.cjs');var _chunk62YYP3R3cjs = require('./chunk-62YYP3R3.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _radixui = require('radix-ui');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _jsxruntime = require('react/jsx-runtime');var N="Modal",o=_chunk7LZI6HLWcjs.b.call(void 0, N),O= exports.a =({className:y,image:n,forceMount:D,container:M,heading:I,description:r,hideCloseButton:s,fullScreen:h,loading:d,loadingText:m,children:x,...B})=>{let $={forceMount:D,container:M},p=!!n;return _jsxruntime.jsx.call(void 0, _radixui.Dialog.Portal,{...$,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Overlay,{className:_chunk7LZI6HLWcjs.b.call(void 0, "Overlay"),children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}Scroll`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${o}ScrollPadding`,children:_jsxruntime.jsxs.call(void 0, _radixui.Dialog.Content,{className:_chunkGVVJQBRKcjs.a.call(void 0, o,y),"data-contains-image":p?"":void 0,"data-hide-close-button":s?"":void 0,"data-full-screen":h?"":void 0,...B,children:[_jsxruntime.jsx.call(void 0, _chunkNGZ7MXE6cjs.a,{children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Close","data-visually-hidden":s?"":void 0,className:`${o}CloseIconButton`,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseMediumIcon,{})})}),_jsxruntime.jsxs.call(void 0, "div",{className:`${o}OuterContainer`,children:[d?null:_jsxruntime.jsxs.call(void 0, "div",{className:`${o}InnerContainer`,children:[p?_jsxruntime.jsx.call(void 0, "div",{className:`${o}Image`,children:n}):null,_jsxruntime.jsxs.call(void 0, "div",{className:`${o}Header`,children:[_jsxruntime.jsx.call(void 0, _chunkSLDUN6XUcjs.a,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkE6ACS2DRcjs.a,{size:"lg",wrap:"wrap",children:I})})}),r?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Description,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunk62YYP3R3cjs.a,{size:"md",as:"span",children:r})}):null]})]}),d?_jsxruntime.jsxs.call(void 0, _chunk3EK2M2AAcjs.a,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[_jsxruntime.jsx.call(void 0, _chunkT3TZBSFXcjs.a,{size:"lg"}),m?_jsxruntime.jsx.call(void 0, _radixui.Dialog.Title,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkE6ACS2DRcjs.a,{size:"lg",textAlign:"center",wrap:"wrap",children:m})}):null]}):x]})]})})})})})};O.displayName=N;exports.a = O;
2
+ //# sourceMappingURL=chunk-2KOSRTEJ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-4MPRCVYH.cjs","../src/components/Modal/Modal.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","className","image","forceMount","container","heading","description","hideCloseButton","fullScreen","loading","loadingText","children","props","portalProps","containsImage","jsx","DialogPrimitive"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCEtU,wEAMV,+CA8Cd,IAvCZA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAQ,CAAC,CACpB,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAA,EAAkB,CAChB,IAAMC,CAAAA,CAAc,CAAE,UAAA,CAAAV,CAAAA,CAAY,SAAA,CAAAC,CAAU,CAAA,CACtCU,CAAAA,CAAgB,CAAA,CAAQZ,CAAAA,CAE9B,OACEa,6BAAAA,eAACC,CAAgB,MAAA,CAAhB,CAAwB,GAAGH,CAAAA,CAC1B,QAAA,CAAAE,6BAAAA,eAACC,CAAgB,OAAA,CAAhB,CAAwB,SAAA,CAAWjB,iCAAAA,SAA0B,CAAA,CAC5D,QAAA,CAAAgB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-4MPRCVYH.cjs","sourcesContent":[null,"'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ModalProps } from './Modal.props';\nimport { Heading } from '../Heading/Heading';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { CloseMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { ModalClose } from './ModalClose';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\nimport { Spinner } from '../Spinner/Spinner';\n\nconst COMPONENT_NAME = 'Modal';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const Modal = ({\n className,\n image,\n forceMount,\n container,\n heading,\n description,\n hideCloseButton,\n fullScreen,\n loading,\n loadingText,\n children,\n ...props\n}: ModalProps) => {\n const portalProps = { forceMount, container };\n const containsImage = Boolean(image);\n\n return (\n <DialogPrimitive.Portal {...portalProps}>\n <DialogPrimitive.Overlay className={withGlobalPrefix('Overlay')}>\n <div className={`${componentClassName}Scroll`}>\n <div className={`${componentClassName}ScrollPadding`}>\n <DialogPrimitive.Content\n className={cn(componentClassName, className)}\n data-contains-image={containsImage ? '' : undefined}\n data-hide-close-button={hideCloseButton ? '' : undefined}\n data-full-screen={fullScreen ? '' : undefined}\n {...props}\n >\n <ModalClose>\n <UnstyledIconButton\n type=\"button\"\n label=\"Close\"\n data-visually-hidden={hideCloseButton ? '' : undefined}\n className={`${componentClassName}CloseIconButton`}\n >\n <CloseMediumIcon />\n </UnstyledIconButton>\n </ModalClose>\n <div className={`${componentClassName}OuterContainer`}>\n {!loading ? (\n <div className={`${componentClassName}InnerContainer`}>\n {containsImage ? (\n <div className={`${componentClassName}Image`}>{image}</div>\n ) : null}\n <div className={`${componentClassName}Header`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" wrap=\"wrap\">\n {heading}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {description ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\">\n {description}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </div>\n ) : null}\n\n {loading ? (\n <Flex\n direction=\"column\"\n gap=\"300\"\n alignItems=\"center\"\n paddingY=\"200\"\n width=\"100%\"\n >\n <Spinner size=\"lg\" />\n {loadingText ? (\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textAlign=\"center\" wrap=\"wrap\">\n {loadingText}\n </Heading>\n </DialogPrimitive.Title>\n ) : null}\n </Flex>\n ) : (\n children\n )}\n </div>\n </DialogPrimitive.Content>\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n );\n};\n\nModal.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-2KOSRTEJ.cjs","../src/components/Modal/Modal.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Modal","className","image","forceMount","container","heading","description","hideCloseButton","fullScreen","loading","loadingText","children","props","portalProps","containsImage","jsx","DialogPrimitive"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCEtU,wEAMV,+CA8Cd,IAvCZA,CAAAA,CAAiB,OAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAQ,CAAC,CACpB,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAA,EAAkB,CAChB,IAAMC,CAAAA,CAAc,CAAE,UAAA,CAAAV,CAAAA,CAAY,SAAA,CAAAC,CAAU,CAAA,CACtCU,CAAAA,CAAgB,CAAA,CAAQZ,CAAAA,CAE9B,OACEa,6BAAAA,eAACC,CAAgB,MAAA,CAAhB,CAAwB,GAAGH,CAAAA,CAC1B,QAAA,CAAAE,6BAAAA,eAACC,CAAgB,OAAA,CAAhB,CAAwB,SAAA,CAAWjB,iCAAAA,SAA0B,CAAA,CAC5D,QAAA,CAAAgB,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-2KOSRTEJ.cjs","sourcesContent":[null,"'use client';\n\nimport { Dialog as DialogPrimitive } from 'radix-ui';\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { ModalProps } from './Modal.props';\nimport { Heading } from '../Heading/Heading';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { CloseMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { BodyText } from '../BodyText/BodyText';\nimport { ModalClose } from './ModalClose';\nimport { Box } from '../Box/Box';\nimport { Flex } from '../Flex/Flex';\nimport { Spinner } from '../Spinner/Spinner';\n\nconst COMPONENT_NAME = 'Modal';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const Modal = ({\n className,\n image,\n forceMount,\n container,\n heading,\n description,\n hideCloseButton,\n fullScreen,\n loading,\n loadingText,\n children,\n ...props\n}: ModalProps) => {\n const portalProps = { forceMount, container };\n const containsImage = Boolean(image);\n\n return (\n <DialogPrimitive.Portal {...portalProps}>\n <DialogPrimitive.Overlay className={withGlobalPrefix('Overlay')}>\n <div className={`${componentClassName}Scroll`}>\n <div className={`${componentClassName}ScrollPadding`}>\n <DialogPrimitive.Content\n className={cn(componentClassName, className)}\n data-contains-image={containsImage ? '' : undefined}\n data-hide-close-button={hideCloseButton ? '' : undefined}\n data-full-screen={fullScreen ? '' : undefined}\n {...props}\n >\n <ModalClose>\n <UnstyledIconButton\n type=\"button\"\n label=\"Close\"\n data-visually-hidden={hideCloseButton ? '' : undefined}\n className={`${componentClassName}CloseIconButton`}\n >\n <CloseMediumIcon />\n </UnstyledIconButton>\n </ModalClose>\n <div className={`${componentClassName}OuterContainer`}>\n {!loading ? (\n <div className={`${componentClassName}InnerContainer`}>\n {containsImage ? (\n <div className={`${componentClassName}Image`}>{image}</div>\n ) : null}\n <div className={`${componentClassName}Header`}>\n <Box asChild>\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" wrap=\"wrap\">\n {heading}\n </Heading>\n </DialogPrimitive.Title>\n </Box>\n {description ? (\n <DialogPrimitive.Description asChild>\n <BodyText size=\"md\" as=\"span\">\n {description}\n </BodyText>\n </DialogPrimitive.Description>\n ) : null}\n </div>\n </div>\n ) : null}\n\n {loading ? (\n <Flex\n direction=\"column\"\n gap=\"300\"\n alignItems=\"center\"\n paddingY=\"200\"\n width=\"100%\"\n >\n <Spinner size=\"lg\" />\n {loadingText ? (\n <DialogPrimitive.Title asChild>\n <Heading size=\"lg\" textAlign=\"center\" wrap=\"wrap\">\n {loadingText}\n </Heading>\n </DialogPrimitive.Title>\n ) : null}\n </Flex>\n ) : (\n children\n )}\n </div>\n </DialogPrimitive.Content>\n </div>\n </div>\n </DialogPrimitive.Overlay>\n </DialogPrimitive.Portal>\n );\n};\n\nModal.displayName = COMPONENT_NAME;\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRPP7J3G6cjs = require('./chunk-RPP7J3G6.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var n="TablePagination",p=_chunk7LZI6HLWcjs.b.call(void 0, n),e= exports.a =({className:t,...r})=>_jsxruntime.jsx.call(void 0, _chunkRPP7J3G6cjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, p,t),...r,as:"div"});e.displayName=n;exports.a = e;
2
- //# sourceMappingURL=chunk-3SV7S3S4.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYDYDQJEJcjs = require('./chunk-YDYDQJEJ.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var n="TablePagination",p=_chunk7LZI6HLWcjs.b.call(void 0, n),e= exports.a =({className:t,...r})=>_jsxruntime.jsx.call(void 0, _chunkYDYDQJEJcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, p,t),...r,as:"div"});e.displayName=n;exports.a = e;
2
+ //# sourceMappingURL=chunk-37Y47EVC.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-3SV7S3S4.cjs","../src/components/Table/TablePagination.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TablePagination","className","props","jsx","Pagination","cn"],"mappings":"AAAA,iIAAwC,wDAAoC,wDAAyC,+CCU5G,IAJHA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAkB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAA,EAC7CC,6BAAAA,mBAACC,CAAA,CAAW,SAAA,CAAWC,iCAAAA,CAAGP,CAAoBG,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,EAAA,CAAG,KAAA,CAAM,CAAA,CAGvFF,CAAAA,CAAgB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-3SV7S3S4.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Pagination } from '../Pagination/Pagination';\nimport type { TablePaginationProps } from './TablePagination.props';\n\nconst COMPONENT_NAME = 'TablePagination';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TablePagination = ({ className, ...props }: TablePaginationProps) => {\n return <Pagination className={cn(componentClassName, className)} {...props} as=\"div\" />;\n};\n\nTablePagination.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-37Y47EVC.cjs","../src/components/Table/TablePagination.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TablePagination","className","props","jsx","Pagination","cn"],"mappings":"AAAA,iIAAwC,wDAAoC,wDAAyC,+CCU5G,IAJHA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAkB,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAAA,EAC7CC,6BAAAA,mBAACC,CAAA,CAAW,SAAA,CAAWC,iCAAAA,CAAGP,CAAoBG,CAAS,CAAA,CAAI,GAAGC,CAAAA,CAAO,EAAA,CAAG,KAAA,CAAM,CAAA,CAGvFF,CAAAA,CAAgB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-37Y47EVC.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { Pagination } from '../Pagination/Pagination';\nimport type { TablePaginationProps } from './TablePagination.props';\n\nconst COMPONENT_NAME = 'TablePagination';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TablePagination = ({ className, ...props }: TablePaginationProps) => {\n return <Pagination className={cn(componentClassName, className)} {...props} as=\"div\" />;\n};\n\nTablePagination.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as d}from"./chunk-4DHFW3SB.js";import{a as b}from"./chunk-BCK2XQ4L.js";import{a as m}from"./chunk-OVKYZ4TW.js";import{a as c}from"./chunk-L4OZ3M5X.js";import{a as u}from"./chunk-MSHCGZ4G.js";import{b as f}from"./chunk-TXDSZ3MR.js";import e from"react";import{EyeOffSmallIcon as R,EyeSmallIcon as g}from"@utilitywarehouse/hearth-react-icons";import{useMergedRefs as T}from"@base-ui/utils/useMergedRefs";import{Fragment as N,jsx as i,jsxs as O}from"react/jsx-runtime";var I="PasswordInput",x=f(I),B=e.forwardRef(({className:y,disabled:l,id:w,...E},v)=>{let s=e.useRef(null),M=T(v,s),[o,a]=e.useState(!1),[n,p]=e.useState(!1),S=e.useCallback(()=>{let t=!o,r=!n;a(t),p(r)},[o,n]);e.useEffect(()=>{let t=null;s&&typeof s=="object"&&s.current&&(t=s.current);let r=()=>{t?.type&&(t.type="password",a(!1))};return t&&t.form!==null&&t.form.addEventListener("submit",r),()=>{t?.form&&t.form.removeEventListener("submit",r)}},[s]);let P=`Your password is ${o?"shown":"hidden"}!`;e.useEffect(()=>{setTimeout(()=>{p(!1)},1500)},[n]);let{id:h}=c({providedId:w,prefix:"password-input"});return O(N,{children:[i(d,{ref:M,className:u(x,y),type:o?"text":"password",disabled:l,id:h,...E,children:i(b,{placement:"suffix",children:i(m,{type:"button",label:"toggle password visibility",onClick:S,disabled:l,"aria-pressed":o,children:o?i(g,{}):i(R,{})})})}),i("div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:n?P:""})]})});B.displayName=I;export{B as a};
2
+ //# sourceMappingURL=chunk-3VFCVBXL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/PasswordInput/PasswordInput.tsx"],"sourcesContent":["'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport React from 'react';\nimport type { PasswordInputProps } from './PasswordInput.props';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { EyeOffSmallIcon, EyeSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'PasswordInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const PasswordInput = React.forwardRef<InputBaseElement, PasswordInputProps>(\n ({ className, disabled, id: providedId, ...props }, forwardedRef) => {\n const internalRef = React.useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const [visible, setVisible] = React.useState(false);\n const [showVisibilityMessage, setShowVisibilityMessage] = React.useState(false);\n\n const handleVisibility = React.useCallback(() => {\n const newVisibilityState = !visible;\n const newVisibilityMessageState = !showVisibilityMessage;\n setVisible(newVisibilityState);\n setShowVisibilityMessage(newVisibilityMessageState);\n }, [visible, showVisibilityMessage]);\n\n // If the PasswordInput is inside a form we should switch the input type\n // back to password when its parent form is submitted\n React.useEffect(() => {\n // Get the ref value and ensure proper typing\n let currentElement: HTMLInputElement | null = null;\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = internalRef as React.RefObject<HTMLInputElement>;\n currentElement = refObject.current;\n }\n\n const handleSubmit = () => {\n if (currentElement?.type) {\n currentElement.type = 'password';\n setVisible(false);\n }\n };\n\n if (currentElement && currentElement.form !== null) {\n currentElement.form.addEventListener('submit', handleSubmit);\n }\n return () => {\n if (currentElement?.form) {\n currentElement.form.removeEventListener('submit', handleSubmit);\n }\n };\n }, [internalRef]);\n\n const visibilityMessage = `Your password is ${visible ? 'shown' : 'hidden'}!`;\n\n React.useEffect(() => {\n setTimeout(() => {\n setShowVisibilityMessage(false);\n }, 1500);\n }, [showVisibilityMessage]);\n\n const { id } = useIds({ providedId, prefix: 'password-input' });\n\n return (\n <>\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type={visible ? 'text' : 'password'}\n disabled={disabled}\n id={id}\n {...props}\n >\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"toggle password visibility\"\n onClick={handleVisibility}\n disabled={disabled}\n aria-pressed={visible}\n >\n {visible ? <EyeSmallIcon /> : <EyeOffSmallIcon />}\n </UnstyledIconButton>\n </InputSlot>\n </TextInput>\n <div data-visually-hidden aria-live=\"assertive\" role=\"status\">\n {showVisibilityMessage ? visibilityMessage : ''}\n </div>\n </>\n );\n }\n);\n\nPasswordInput.displayName = COMPONENT_NAME;\n"],"mappings":"gPAIA,OAAOA,MAAW,QAKlB,OAAS,mBAAAC,EAAiB,gBAAAC,MAAoB,uCAG9C,OAAS,iBAAAC,MAAqB,+BA2DxB,mBAAAC,EAiBmB,OAAAC,EAjBnB,QAAAC,MAAA,oBAzDN,IAAMC,EAAiB,gBACjBC,EAAqBC,EAAiBF,CAAc,EAE7CG,EAAgBC,EAAM,WACjC,CAAC,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAIC,EAAY,GAAGC,CAAM,EAAGC,IAAiB,CACnE,IAAMC,EAAcN,EAAM,OAAgC,IAAI,EACxDO,EAAWf,EAAca,EAAcC,CAAW,EAElD,CAACE,EAASC,CAAU,EAAIT,EAAM,SAAS,EAAK,EAC5C,CAACU,EAAuBC,CAAwB,EAAIX,EAAM,SAAS,EAAK,EAExEY,EAAmBZ,EAAM,YAAY,IAAM,CAC/C,IAAMa,EAAqB,CAACL,EACtBM,EAA4B,CAACJ,EACnCD,EAAWI,CAAkB,EAC7BF,EAAyBG,CAAyB,CACpD,EAAG,CAACN,EAASE,CAAqB,CAAC,EAInCV,EAAM,UAAU,IAAM,CAEpB,IAAIe,EAA0C,KAC1CT,GAAe,OAAOA,GAAgB,UAAYA,EAAY,UAGhES,EADkBT,EACS,SAG7B,IAAMU,EAAe,IAAM,CACrBD,GAAgB,OAClBA,EAAe,KAAO,WACtBN,EAAW,EAAK,EAEpB,EAEA,OAAIM,GAAkBA,EAAe,OAAS,MAC5CA,EAAe,KAAK,iBAAiB,SAAUC,CAAY,EAEtD,IAAM,CACPD,GAAgB,MAClBA,EAAe,KAAK,oBAAoB,SAAUC,CAAY,CAElE,CACF,EAAG,CAACV,CAAW,CAAC,EAEhB,IAAMW,EAAoB,oBAAoBT,EAAU,QAAU,QAAQ,IAE1ER,EAAM,UAAU,IAAM,CACpB,WAAW,IAAM,CACfW,EAAyB,EAAK,CAChC,EAAG,IAAI,CACT,EAAG,CAACD,CAAqB,CAAC,EAE1B,GAAM,CAAE,GAAAQ,CAAG,EAAIC,EAAO,CAAE,WAAAhB,EAAY,OAAQ,gBAAiB,CAAC,EAE9D,OACER,EAAAF,EAAA,CACE,UAAAC,EAAC0B,EAAA,CACC,IAAKb,EACL,UAAWc,EAAGxB,EAAoBI,CAAS,EAC3C,KAAMO,EAAU,OAAS,WACzB,SAAUN,EACV,GAAIgB,EACH,GAAGd,EAEJ,SAAAV,EAAC4B,EAAA,CAAU,UAAU,SACnB,SAAA5B,EAAC6B,EAAA,CACC,KAAK,SACL,MAAM,6BACN,QAASX,EACT,SAAUV,EACV,eAAcM,EAEb,SAAAA,EAAUd,EAAC8B,EAAA,EAAa,EAAK9B,EAAC+B,EAAA,EAAgB,EACjD,EACF,EACF,EACA/B,EAAC,OAAI,uBAAoB,GAAC,YAAU,YAAY,KAAK,SAClD,SAAAgB,EAAwBO,EAAoB,GAC/C,GACF,CAEJ,CACF,EAEAlB,EAAc,YAAcH","names":["React","EyeOffSmallIcon","EyeSmallIcon","useMergedRefs","Fragment","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","PasswordInput","React","className","disabled","providedId","props","forwardedRef","internalRef","inputRef","visible","setVisible","showVisibilityMessage","setShowVisibilityMessage","handleVisibility","newVisibilityState","newVisibilityMessageState","currentElement","handleSubmit","visibilityMessage","id","useIds","TextInput","cn","InputSlot","UnstyledIconButton","EyeSmallIcon","EyeOffSmallIcon"]}
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-GENAMX6B.js";import{a as f}from"./chunk-2XO2KEZO.js";import{a as N}from"./chunk-OOCWGQ7U.js";import{a as c}from"./chunk-W6VYE222.js";import{a as p}from"./chunk-BMY6GUJM.js";import{a as m}from"./chunk-MSHCGZ4G.js";import{b as l}from"./chunk-TXDSZ3MR.js";import{jsx as o,jsxs as y}from"react/jsx-runtime";var P="List",t=l(P),b=h=>{let{as:e="ul",className:u,colorScheme:i=void 0,variant:a,heading:r,headingElement:C,helperText:v,trailingContent:x,validationText:T,validationStatus:L,children:n,paddingNone:S,...s}=p(h,c),E={heading:r,headingElement:C,helperText:v,trailingContent:x,validationText:T,validationStatus:L},d={"data-padding-none":S?"":void 0};return y("div",{className:m(t,u),children:[r?o(N,{...E}):null,a===void 0||i===void 0?o(f,{asChild:!0,className:`${t}Container`,role:"list",...d,children:o(e,{...s,children:n})}):o(g,{className:`${t}Container`,paddingNone:!0,variant:a,colorScheme:i,children:o(e,{role:"list",...s,...d,children:n})})]})};b.displayName=P;export{b as a};
2
- //# sourceMappingURL=chunk-QEKBLSE3.js.map
1
+ import{a as g}from"./chunk-YB4RIRLB.js";import{a as f}from"./chunk-2XO2KEZO.js";import{a as N}from"./chunk-OOCWGQ7U.js";import{a as c}from"./chunk-W6VYE222.js";import{a as p}from"./chunk-BMY6GUJM.js";import{a as m}from"./chunk-MSHCGZ4G.js";import{b as l}from"./chunk-TXDSZ3MR.js";import{jsx as o,jsxs as y}from"react/jsx-runtime";var P="List",t=l(P),b=h=>{let{as:e="ul",className:u,colorScheme:i=void 0,variant:a,heading:r,headingElement:C,helperText:v,trailingContent:x,validationText:T,validationStatus:L,children:n,paddingNone:S,...s}=p(h,c),E={heading:r,headingElement:C,helperText:v,trailingContent:x,validationText:T,validationStatus:L},d={"data-padding-none":S?"":void 0};return y("div",{className:m(t,u),children:[r?o(N,{...E}):null,a===void 0||i===void 0?o(f,{asChild:!0,className:`${t}Container`,role:"list",...d,children:o(e,{...s,children:n})}):o(g,{className:`${t}Container`,paddingNone:!0,variant:a,colorScheme:i,children:o(e,{role:"list",...s,...d,children:n})})]})};b.displayName=P;export{b as a};
2
+ //# sourceMappingURL=chunk-42SOFGH3.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4XBLLQTFcjs = require('./chunk-4XBLLQTF.cjs');var _chunk3EK2M2AAcjs = require('./chunk-3EK2M2AA.cjs');var _chunkC3KEJA3Acjs = require('./chunk-C3KEJA3A.cjs');var _chunkFHPC6D24cjs = require('./chunk-FHPC6D24.cjs');var _chunkDEP54IIZcjs = require('./chunk-DEP54IIZ.cjs');var _chunk7YQI4YIIcjs = require('./chunk-7YQI4YII.cjs');var _chunk2WL4HPAPcjs = require('./chunk-2WL4HPAP.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunkA4KDLDVYcjs = require('./chunk-A4KDLDVY.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var d="Card",x=_chunk7LZI6HLWcjs.b.call(void 0, d),g= exports.a =P=>{let{className:n,children:C,colorScheme:D="neutralStrong",shadowColor:N,...h}=_chunkVCSJTDQRcjs.a.call(void 0, P,_chunkC3KEJA3Acjs.a,_chunk7YQI4YIIcjs.a,_chunk4XBLLQTFcjs.a,_chunkRDNRX35Pcjs.a,_chunkFHPC6D24cjs.a,_chunk2WL4HPAPcjs.a,_chunkDEP54IIZcjs.a);return _jsxruntime.jsx.call(void 0, _chunk3EK2M2AAcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, x,n),"data-colorscheme":_chunkA4KDLDVYcjs.a.call(void 0, D),"data-shadowcolor":N,...h,as:"div",children:C})};g.displayName=d;exports.a = g;
2
- //# sourceMappingURL=chunk-K4RWSELN.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4XBLLQTFcjs = require('./chunk-4XBLLQTF.cjs');var _chunk3EK2M2AAcjs = require('./chunk-3EK2M2AA.cjs');var _chunkC3KEJA3Acjs = require('./chunk-C3KEJA3A.cjs');var _chunkFHPC6D24cjs = require('./chunk-FHPC6D24.cjs');var _chunkDEP54IIZcjs = require('./chunk-DEP54IIZ.cjs');var _chunk7YQI4YIIcjs = require('./chunk-7YQI4YII.cjs');var _chunk2WL4HPAPcjs = require('./chunk-2WL4HPAP.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunkA4KDLDVYcjs = require('./chunk-A4KDLDVY.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var n="Card",x=_chunk7LZI6HLWcjs.b.call(void 0, n),g= exports.a =r=>{let{className:P,children:C,colorScheme:D="neutralStrong",shadowColor:N,...h}=_chunkVCSJTDQRcjs.a.call(void 0, r,_chunkC3KEJA3Acjs.a,_chunk7YQI4YIIcjs.a,_chunk4XBLLQTFcjs.a,_chunkRDNRX35Pcjs.a,_chunkFHPC6D24cjs.a,_chunk2WL4HPAPcjs.a,_chunkDEP54IIZcjs.a);return _jsxruntime.jsx.call(void 0, _chunk3EK2M2AAcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, x,P),"data-colorscheme":_chunkA4KDLDVYcjs.a.call(void 0, D),"data-shadowcolor":N,"data-card-variant":r.variant,...h,as:"div",children:C})};g.displayName=n;exports.a = g;
2
+ //# sourceMappingURL=chunk-45JNVTHN.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-45JNVTHN.cjs","../src/components/Card/Card.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Card","props","className","children","colorScheme","shadowColor","cardProps","extractProps","flexPropDefs","gapPropDefs","cardPropDefs","marginPropDefs","sizePropDefs","gridItemPropDefs","flexItemPropDefs","jsx","Flex","cn","kebabCase"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,wDAAyC,+CCoCle,IAtBEA,CAAAA,CAAiB,MAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAQC,CAAAA,EAAqB,CACxC,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,eAAA,CACd,WAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CACFN,CACAO,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBAAAA,CACAC,mBACF,CAAA,CAEA,OACEC,6BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGnB,CAAoBI,CAAS,CAAA,CAC3C,kBAAA,CAAkBgB,iCAAAA,CAAqB,CAAA,CACvC,kBAAA,CAAkBb,CAAAA,CAClB,mBAAA,CAAmBJ,CAAAA,CAAM,OAAA,CACxB,GAAGK,CAAAA,CACJ,EAAA,CAAG,KAAA,CAEF,QAAA,CAAAH,CAAAA,CACH,CAEJ,CAAA,CAEAH,CAAAA,CAAK,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-45JNVTHN.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\nimport { cardPropDefs } from './Card.props';\nimport type { CardProps } from './Card.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { sizePropDefs } from '../../props/size.props';\nimport { gridItemPropDefs } from '../../props/grid-item.props';\nimport { flexItemPropDefs } from '../../props/flex-item.props';\nimport { Flex } from '../Flex/Flex';\nimport { flexPropDefs } from '../Flex/Flex.props';\nimport { kebabCase } from '../../helpers/kebab-case';\nimport { gapPropDefs } from '../../props/gap.props';\n\nconst COMPONENT_NAME = 'Card';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const Card = (props: CardProps) => {\n const {\n className,\n children,\n colorScheme = 'neutralStrong',\n shadowColor,\n ...cardProps\n } = extractProps(\n props,\n flexPropDefs,\n gapPropDefs,\n cardPropDefs,\n marginPropDefs,\n sizePropDefs,\n gridItemPropDefs,\n flexItemPropDefs\n );\n\n return (\n <Flex\n className={cn(componentClassName, className)}\n data-colorscheme={kebabCase(colorScheme)}\n data-shadowcolor={shadowColor}\n data-card-variant={props.variant}\n {...cardProps}\n as=\"div\"\n >\n {children}\n </Flex>\n );\n};\n\nCard.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as x}from"./chunk-SZFDCDUK.js";import{a as T}from"./chunk-HP5ULTGW.js";import{a as c}from"./chunk-W6VYE222.js";import{a as b}from"./chunk-L4OZ3M5X.js";import{a as I}from"./chunk-DVGYWBKQ.js";import{a as f}from"./chunk-BMY6GUJM.js";import{a as m}from"./chunk-MSHCGZ4G.js";import{b as u}from"./chunk-TXDSZ3MR.js";import M from"react";import{jsx as y}from"react/jsx-runtime";var h="TextInput",R=u(h),S=M.forwardRef((v,P)=>{let{className:N,validationStatus:i,validationText:t,label:B,labelVariant:F,helperText:d,children:E,id:O,disabled:e,readOnly:n,hideLabel:g,required:o,placeholder:w,"aria-describedby":C,...D}=f(v,c),{id:l,labelId:s,helperTextId:p,validationTextId:a}=b({providedId:O,prefix:"text-input"}),r=!n&&!e,V={id:l,labelId:s,helperTextId:p,validationTextId:a,label:B,labelVariant:F,helperText:d,validationText:r?t:void 0,validationStatus:r?i:void 0,hideLabel:g,required:o},q=I(C,d?p:void 0,r&&t!==void 0?a:void 0);return y(T,{className:m(R,N),"data-disabled":e?"":void 0,...V,children:y(x,{ref:P,spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:w,"aria-labelledby":s,"aria-describedby":q,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?a:void 0,...D,children:E})})});S.displayName=h;export{S as a};
2
+ //# sourceMappingURL=chunk-4DHFW3SB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/TextInput/TextInput.tsx"],"sourcesContent":["'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { TextInputProps } from './TextInput.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { cn } from '../../helpers/cn';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase, type InputBaseElement } from '../InputBase/InputBase';\nimport { FormField } from '../FormField/FormField';\nimport React from 'react';\n\nconst COMPONENT_NAME = 'TextInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TextInput = React.forwardRef<InputBaseElement, TextInputProps>((props, ref) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n children,\n id: providedId,\n disabled,\n readOnly,\n hideLabel,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n ...textInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'text-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n hideLabel,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n {...formFieldProps}\n >\n <InputBase\n ref={ref}\n spellCheck=\"false\"\n id={id}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n {...textInputProps}\n >\n {children}\n </InputBase>\n </FormField>\n );\n});\n\nTextInput.displayName = COMPONENT_NAME;\n"],"mappings":"gUAWA,OAAOA,MAAW,QAyDZ,cAAAC,MAAA,oBAvDN,IAAMC,EAAiB,YACjBC,EAAqBC,EAAiBF,CAAc,EAE7CG,EAAYL,EAAM,WAA6C,CAACM,EAAOC,IAAQ,CAC1F,GAAM,CACJ,UAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAIC,EACJ,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,YAAAC,EACA,mBAAoBC,EACpB,GAAGC,CACL,EAAIC,EAAajB,EAAOkB,CAAc,EAEhC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,EAAc,iBAAAC,CAAiB,EAAIC,EAAO,CAC7D,WAAAd,EACA,OAAQ,YACV,CAAC,EAEKe,EAAyB,CAACb,GAAY,CAACD,EAEvCe,EAAiB,CACrB,GAAAN,EACA,QAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,MAAAjB,EACA,aAAAC,EACA,WAAAC,EACA,eAAgBiB,EAAiBpB,EAAiB,OAClD,iBAAkBoB,EAAiBrB,EAAmB,OACtD,UAAAS,EACA,SAAAC,CACF,EAEMa,EAAuBC,EAC3BZ,EACER,EAAac,EAAe,OAC9BG,GAAkBpB,IAAmB,OAAYkB,EAAmB,MACtE,EAEA,OACE3B,EAACiC,EAAA,CACC,UAAWC,EAAGhC,EAAoBK,CAAS,EAC3C,gBAAeQ,EAAW,GAAK,OAC9B,GAAGe,EAEJ,SAAA9B,EAACmC,EAAA,CACC,IAAK7B,EACL,WAAW,QACX,GAAIkB,EACJ,SAAUN,EACV,SAAUH,EACV,SAAUC,EACV,YAAcD,EAAyB,OAAdI,EACzB,kBAAiBM,EACjB,mBAAkBM,EAClB,eAAcvB,IAAqB,UAAY,GAAO,OACtD,oBAAmBA,IAAqB,UAAYmB,EAAmB,OACtE,GAAGN,EAEH,SAAAR,EACH,EACF,CAEJ,CAAC,EAEDT,EAAU,YAAcH","names":["React","jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","TextInput","props","ref","className","validationStatus","validationText","label","labelVariant","helperText","children","providedId","disabled","readOnly","hideLabel","required","placeholder","ariaDescribedby","textInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","FormField","cn","InputBase"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk564F3VJCcjs = require('./chunk-564F3VJC.cjs');var _chunk4YWZ4I6Ucjs = require('./chunk-4YWZ4I6U.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var t="ProgressBarCircular",r=_chunk7LZI6HLWcjs.b.call(void 0, t),p= exports.a =({value:i,label:c,labelId:m,valueText:n,...g})=>_jsxruntime.jsxs.call(void 0, "div",{className:r,...g,style:{"--h-value":`${i}`},children:[_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[_jsxruntime.jsx.call(void 0, "circle",{className:`${r}Track`}),_jsxruntime.jsx.call(void 0, "circle",{className:`${r}Indicator`})]}),_jsxruntime.jsxs.call(void 0, "div",{className:`${r}Content`,children:[_jsxruntime.jsx.call(void 0, _chunk564F3VJCcjs.a,{children:n}),_jsxruntime.jsx.call(void 0, _chunk4YWZ4I6Ucjs.a,{id:m,children:c})]})]});p.displayName=t;exports.a = p;
2
- //# sourceMappingURL=chunk-BHEHWAUS.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4YWZ4I6Ucjs = require('./chunk-4YWZ4I6U.cjs');var _chunk564F3VJCcjs = require('./chunk-564F3VJC.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var t="ProgressBarCircular",r=_chunk7LZI6HLWcjs.b.call(void 0, t),p= exports.a =({value:i,label:c,labelId:m,valueText:n,...g})=>_jsxruntime.jsxs.call(void 0, "div",{className:r,...g,style:{"--h-value":`${i}`},children:[_jsxruntime.jsxs.call(void 0, "svg",{xmlns:"http://www.w3.org/2000/svg",role:"img","aria-hidden":"true",children:[_jsxruntime.jsx.call(void 0, "circle",{className:`${r}Track`}),_jsxruntime.jsx.call(void 0, "circle",{className:`${r}Indicator`})]}),_jsxruntime.jsxs.call(void 0, "div",{className:`${r}Content`,children:[_jsxruntime.jsx.call(void 0, _chunk564F3VJCcjs.a,{children:n}),_jsxruntime.jsx.call(void 0, _chunk4YWZ4I6Ucjs.a,{id:m,children:c})]})]});p.displayName=t;exports.a = p;
2
+ //# sourceMappingURL=chunk-4X3BK4K3.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-BHEHWAUS.cjs","../src/components/ProgressBar/ProgressBarCircular.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBarCircular","value","label","labelId","valueText","props","jsxs"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,+CCuBpH,IAlBAA,CAAAA,CAAiB,qBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAQ7CC,CAAAA,aAAsB,CAAC,CAClC,KAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAA,EAEIC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWR,CAAAA,CAAqB,GAAGO,CAAAA,CAAO,KAAA,CAAO,CAAE,WAAA,CAAa,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-BHEHWAUS.cjs","sourcesContent":[null,"import type { ProgressBarInternalProps } from './ProgressBar.props';\nimport { ProgressBarLabel } from './ProgressBarLabel';\nimport { ProgressBarValueText } from './ProgressBarValueText';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\n\nconst COMPONENT_NAME = 'ProgressBarCircular';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ndeclare module 'react' {\n interface CSSProperties {\n '--h-value'?: string;\n }\n}\n\nexport const ProgressBarCircular = ({\n value,\n label,\n labelId,\n valueText,\n ...props\n}: ProgressBarInternalProps) => {\n return (\n <div className={componentClassName} {...props} style={{ '--h-value': `${value}` }}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-hidden=\"true\">\n <circle className={`${componentClassName}Track`} />\n <circle className={`${componentClassName}Indicator`} />\n </svg>\n <div className={`${componentClassName}Content`}>\n <ProgressBarValueText>{valueText}</ProgressBarValueText>\n <ProgressBarLabel id={labelId}>{label}</ProgressBarLabel>\n </div>\n </div>\n );\n};\n\nProgressBarCircular.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-4X3BK4K3.cjs","../src/components/ProgressBar/ProgressBarCircular.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBarCircular","value","label","labelId","valueText","props","jsxs"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,+CCuBpH,IAlBAA,CAAAA,CAAiB,qBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAQ7CC,CAAAA,aAAsB,CAAC,CAClC,KAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAA,EAEIC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWR,CAAAA,CAAqB,GAAGO,CAAAA,CAAO,KAAA,CAAO,CAAE,WAAA,CAAa,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-4X3BK4K3.cjs","sourcesContent":[null,"import type { ProgressBarInternalProps } from './ProgressBar.props';\nimport { ProgressBarLabel } from './ProgressBarLabel';\nimport { ProgressBarValueText } from './ProgressBarValueText';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\n\nconst COMPONENT_NAME = 'ProgressBarCircular';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\ndeclare module 'react' {\n interface CSSProperties {\n '--h-value'?: string;\n }\n}\n\nexport const ProgressBarCircular = ({\n value,\n label,\n labelId,\n valueText,\n ...props\n}: ProgressBarInternalProps) => {\n return (\n <div className={componentClassName} {...props} style={{ '--h-value': `${value}` }}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-hidden=\"true\">\n <circle className={`${componentClassName}Track`} />\n <circle className={`${componentClassName}Indicator`} />\n </svg>\n <div className={`${componentClassName}Content`}>\n <ProgressBarValueText>{valueText}</ProgressBarValueText>\n <ProgressBarLabel id={labelId}>{label}</ProgressBarLabel>\n </div>\n </div>\n );\n};\n\nProgressBarCircular.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkAJEG3D37cjs = require('./chunk-AJEG3D37.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkAGPVWUNAcjs = require('./chunk-AGPVWUNA.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _useMergedRefs = require('@base-ui/utils/useMergedRefs');var _jsxruntime = require('react/jsx-runtime');var I="PasswordInput",x=_chunk7LZI6HLWcjs.b.call(void 0, I),B= exports.a =_react2.default.forwardRef(({className:y,disabled:l,id:w,...E},v)=>{let s=_react2.default.useRef(null),M=_useMergedRefs.useMergedRefs.call(void 0, v,s),[o,a]=_react2.default.useState(!1),[n,p]=_react2.default.useState(!1),S=_react2.default.useCallback(()=>{let t=!o,r=!n;a(t),p(r)},[o,n]);_react2.default.useEffect(()=>{let t=null;s&&typeof s=="object"&&s.current&&(t=s.current);let r=()=>{_optionalChain([t, 'optionalAccess', _ => _.type])&&(t.type="password",a(!1))};return t&&t.form!==null&&t.form.addEventListener("submit",r),()=>{_optionalChain([t, 'optionalAccess', _2 => _2.form])&&t.form.removeEventListener("submit",r)}},[s]);let P=`Your password is ${o?"shown":"hidden"}!`;_react2.default.useEffect(()=>{setTimeout(()=>{p(!1)},1500)},[n]);let{id:h}=_chunkITZEACMWcjs.a.call(void 0, {providedId:w,prefix:"password-input"});return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkAJEG3D37cjs.a,{ref:M,className:_chunkGVVJQBRKcjs.a.call(void 0, x,y),type:o?"text":"password",disabled:l,id:h,...E,children:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"toggle password visibility",onClick:S,disabled:l,"aria-pressed":o,children:o?_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeSmallIcon,{}):_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeOffSmallIcon,{})})})}),_jsxruntime.jsx.call(void 0, "div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:n?P:""})]})});B.displayName=I;exports.a = B;
2
+ //# sourceMappingURL=chunk-5QWOAXXI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-5QWOAXXI.cjs","../src/components/PasswordInput/PasswordInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","PasswordInput","React","className","disabled","providedId","props","forwardedRef","internalRef","inputRef","useMergedRefs","visible","setVisible","showVisibilityMessage","setShowVisibilityMessage","handleVisibility","newVisibilityState","newVisibilityMessageState","currentElement","handleSubmit","visibilityMessage","id","useIds","jsxs","Fragment","jsx","TextInput","cn","InputSlot","UnstyledIconButton","EyeSmallIcon","EyeOffSmallIcon"],"mappings":"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","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-5QWOAXXI.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport React from 'react';\nimport type { PasswordInputProps } from './PasswordInput.props';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { EyeOffSmallIcon, EyeSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'PasswordInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const PasswordInput = React.forwardRef<InputBaseElement, PasswordInputProps>(\n ({ className, disabled, id: providedId, ...props }, forwardedRef) => {\n const internalRef = React.useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const [visible, setVisible] = React.useState(false);\n const [showVisibilityMessage, setShowVisibilityMessage] = React.useState(false);\n\n const handleVisibility = React.useCallback(() => {\n const newVisibilityState = !visible;\n const newVisibilityMessageState = !showVisibilityMessage;\n setVisible(newVisibilityState);\n setShowVisibilityMessage(newVisibilityMessageState);\n }, [visible, showVisibilityMessage]);\n\n // If the PasswordInput is inside a form we should switch the input type\n // back to password when its parent form is submitted\n React.useEffect(() => {\n // Get the ref value and ensure proper typing\n let currentElement: HTMLInputElement | null = null;\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = internalRef as React.RefObject<HTMLInputElement>;\n currentElement = refObject.current;\n }\n\n const handleSubmit = () => {\n if (currentElement?.type) {\n currentElement.type = 'password';\n setVisible(false);\n }\n };\n\n if (currentElement && currentElement.form !== null) {\n currentElement.form.addEventListener('submit', handleSubmit);\n }\n return () => {\n if (currentElement?.form) {\n currentElement.form.removeEventListener('submit', handleSubmit);\n }\n };\n }, [internalRef]);\n\n const visibilityMessage = `Your password is ${visible ? 'shown' : 'hidden'}!`;\n\n React.useEffect(() => {\n setTimeout(() => {\n setShowVisibilityMessage(false);\n }, 1500);\n }, [showVisibilityMessage]);\n\n const { id } = useIds({ providedId, prefix: 'password-input' });\n\n return (\n <>\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type={visible ? 'text' : 'password'}\n disabled={disabled}\n id={id}\n {...props}\n >\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"toggle password visibility\"\n onClick={handleVisibility}\n disabled={disabled}\n aria-pressed={visible}\n >\n {visible ? <EyeSmallIcon /> : <EyeOffSmallIcon />}\n </UnstyledIconButton>\n </InputSlot>\n </TextInput>\n <div data-visually-hidden aria-live=\"assertive\" role=\"status\">\n {showVisibilityMessage ? visibilityMessage : ''}\n </div>\n </>\n );\n }\n);\n\nPasswordInput.displayName = COMPONENT_NAME;\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkMLZNGLDOcjs = require('./chunk-MLZNGLDO.cjs');var _chunk3D7ML7XVcjs = require('./chunk-3D7ML7XV.cjs');var _chunkBHEHWAUScjs = require('./chunk-BHEHWAUS.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkPQUOB5X6cjs = require('./chunk-PQUOB5X6.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var b="ProgressBar",w=_chunk7LZI6HLWcjs.b.call(void 0, b),D= exports.a =N=>{let{className:h,variant:o="linear",colorScheme:s="default",value:T,min:a=0,max:r=100,label:M,formatValueText:t,"aria-valuetext":V,hideLabel:y,...C}=_chunkVCSJTDQRcjs.a.call(void 0, N,_chunk3D7ML7XVcjs.a,_chunkRDNRX35Pcjs.a),{labelId:l}=_chunkITZEACMWcjs.a.call(void 0, {prefix:"progress"}),e=s==="success"?r:Math.max(a,Math.min(T,r)),i=_chunkPQUOB5X6cjs.a.call(void 0, e,a,r),m=t?t(e):`${i}%`,p={value:i,label:M,valueText:m,labelId:l,hideLabel:y};return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkGVVJQBRKcjs.a.call(void 0, w,h),role:"progressbar","aria-valuenow":e,"aria-valuemin":a,"aria-valuemax":r,"aria-valuetext":V||m,"aria-labelledby":l,"data-colorscheme":s,...C,children:[o==="linear"?_jsxruntime.jsx.call(void 0, _chunkMLZNGLDOcjs.a,{...p}):null,o==="circular"?_jsxruntime.jsx.call(void 0, _chunkBHEHWAUScjs.a,{...p}):null]})};D.displayName=b;exports.a = D;
2
- //# sourceMappingURL=chunk-6M2TG66C.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3D7ML7XVcjs = require('./chunk-3D7ML7XV.cjs');var _chunk4X3BK4K3cjs = require('./chunk-4X3BK4K3.cjs');var _chunkEM33NSIHcjs = require('./chunk-EM33NSIH.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkPQUOB5X6cjs = require('./chunk-PQUOB5X6.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var b="ProgressBar",w=_chunk7LZI6HLWcjs.b.call(void 0, b),D= exports.a =N=>{let{className:h,variant:o="linear",colorScheme:s="default",value:T,min:a=0,max:r=100,label:M,formatValueText:t,"aria-valuetext":V,hideLabel:y,...C}=_chunkVCSJTDQRcjs.a.call(void 0, N,_chunk3D7ML7XVcjs.a,_chunkRDNRX35Pcjs.a),{labelId:l}=_chunkITZEACMWcjs.a.call(void 0, {prefix:"progress"}),e=s==="success"?r:Math.max(a,Math.min(T,r)),i=_chunkPQUOB5X6cjs.a.call(void 0, e,a,r),m=t?t(e):`${i}%`,p={value:i,label:M,valueText:m,labelId:l,hideLabel:y};return _jsxruntime.jsxs.call(void 0, "div",{className:_chunkGVVJQBRKcjs.a.call(void 0, w,h),role:"progressbar","aria-valuenow":e,"aria-valuemin":a,"aria-valuemax":r,"aria-valuetext":V||m,"aria-labelledby":l,"data-colorscheme":s,...C,children:[o==="linear"?_jsxruntime.jsx.call(void 0, _chunkEM33NSIHcjs.a,{...p}):null,o==="circular"?_jsxruntime.jsx.call(void 0, _chunk4X3BK4K3cjs.a,{...p}):null]})};D.displayName=b;exports.a = D;
2
+ //# sourceMappingURL=chunk-5R3LALKT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-6M2TG66C.cjs","../src/components/ProgressBar/ProgressBar.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBar","props","className","variant","colorScheme","value","min","max","label","formatValueText","ariaValueText","hideLabel","progressBarProps","extractProps","progressBarPropDefs","marginPropDefs","labelId","useIds","effectiveValue","percentValue","valueToPercent","valueText"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,+CCkD5W,IArCEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAeC,CAAAA,EAA4B,CACtD,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,QAAA,CACV,WAAA,CAAAC,CAAAA,CAAc,SAAA,CACd,KAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CAAM,CAAA,CACN,GAAA,CAAAC,CAAAA,CAAM,GAAA,CACN,KAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAkBC,CAAAA,CAClB,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaZ,CAAOa,mBAAAA,CAAqBC,mBAAc,CAAA,CAErD,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,UAAW,CAAC,CAAA,CAI3CC,CAAAA,CAAiBd,CAAAA,GAAgB,SAAA,CAAYG,CAAAA,CAAM,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAK,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAOE,CAAG,CAAC,CAAA,CAErFY,CAAAA,CAAeC,iCAAAA,CAAeF,CAAgBZ,CAAAA,CAAKC,CAAG,CAAA,CAEtDc,CAAAA,CAAYZ,CAAAA,CAAkBA,CAAAA,CAAgBS,CAAc,CAAA,CAAI,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-6M2TG66C.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { progressBarPropDefs } from './ProgressBar.props';\nimport type { ProgressBarProps } from './ProgressBar.props';\nimport { ProgressBarLinear } from './ProgressBarLinear';\nimport { valueToPercent } from '../../helpers/value-to-percent';\nimport { useIds } from '../../hooks/use-ids';\nimport { ProgressBarCircular } from './ProgressBarCircular';\n\nconst COMPONENT_NAME = 'ProgressBar';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const ProgressBar = (props: ProgressBarProps) => {\n const {\n className,\n variant = 'linear',\n colorScheme = 'default',\n value,\n min = 0,\n max = 100,\n label,\n formatValueText,\n 'aria-valuetext': ariaValueText,\n hideLabel,\n ...progressBarProps\n } = extractProps(props, progressBarPropDefs, marginPropDefs);\n\n const { labelId } = useIds({ prefix: 'progress' });\n\n // Determine the logical value based on status\n // If 'success', we force 100% (max); otherwise, we clamp the actual value.\n const effectiveValue = colorScheme === 'success' ? max : Math.max(min, Math.min(value, max));\n // Get the whole number percentage\n const percentValue = valueToPercent(effectiveValue, min, max);\n // Determine the text display\n const valueText = formatValueText ? formatValueText(effectiveValue) : `${percentValue}%`;\n\n const internalProgressBarProps = {\n value: percentValue,\n label,\n valueText,\n labelId,\n hideLabel,\n };\n\n return (\n <div\n className={cn(componentClassName, className)}\n role=\"progressbar\"\n aria-valuenow={effectiveValue}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuetext={ariaValueText || valueText}\n aria-labelledby={labelId}\n data-colorscheme={colorScheme}\n {...progressBarProps}\n >\n {variant === 'linear' ? <ProgressBarLinear {...internalProgressBarProps} /> : null}\n {variant === 'circular' ? <ProgressBarCircular {...internalProgressBarProps} /> : null}\n </div>\n );\n};\n\nProgressBar.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-5R3LALKT.cjs","../src/components/ProgressBar/ProgressBar.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBar","props","className","variant","colorScheme","value","min","max","label","formatValueText","ariaValueText","hideLabel","progressBarProps","extractProps","progressBarPropDefs","marginPropDefs","labelId","useIds","effectiveValue","percentValue","valueToPercent","valueText"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,+CCkD5W,IArCEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAeC,CAAAA,EAA4B,CACtD,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,QAAA,CACV,WAAA,CAAAC,CAAAA,CAAc,SAAA,CACd,KAAA,CAAAC,CAAAA,CACA,GAAA,CAAAC,CAAAA,CAAM,CAAA,CACN,GAAA,CAAAC,CAAAA,CAAM,GAAA,CACN,KAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAkBC,CAAAA,CAClB,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaZ,CAAOa,mBAAAA,CAAqBC,mBAAc,CAAA,CAErD,CAAE,OAAA,CAAAC,CAAQ,CAAA,CAAIC,iCAAAA,CAAS,MAAA,CAAQ,UAAW,CAAC,CAAA,CAI3CC,CAAAA,CAAiBd,CAAAA,GAAgB,SAAA,CAAYG,CAAAA,CAAM,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAK,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAOE,CAAG,CAAC,CAAA,CAErFY,CAAAA,CAAeC,iCAAAA,CAAeF,CAAgBZ,CAAAA,CAAKC,CAAG,CAAA,CAEtDc,CAAAA,CAAYZ,CAAAA,CAAkBA,CAAAA,CAAgBS,CAAc,CAAA,CAAI,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-5R3LALKT.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { progressBarPropDefs } from './ProgressBar.props';\nimport type { ProgressBarProps } from './ProgressBar.props';\nimport { ProgressBarLinear } from './ProgressBarLinear';\nimport { valueToPercent } from '../../helpers/value-to-percent';\nimport { useIds } from '../../hooks/use-ids';\nimport { ProgressBarCircular } from './ProgressBarCircular';\n\nconst COMPONENT_NAME = 'ProgressBar';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const ProgressBar = (props: ProgressBarProps) => {\n const {\n className,\n variant = 'linear',\n colorScheme = 'default',\n value,\n min = 0,\n max = 100,\n label,\n formatValueText,\n 'aria-valuetext': ariaValueText,\n hideLabel,\n ...progressBarProps\n } = extractProps(props, progressBarPropDefs, marginPropDefs);\n\n const { labelId } = useIds({ prefix: 'progress' });\n\n // Determine the logical value based on status\n // If 'success', we force 100% (max); otherwise, we clamp the actual value.\n const effectiveValue = colorScheme === 'success' ? max : Math.max(min, Math.min(value, max));\n // Get the whole number percentage\n const percentValue = valueToPercent(effectiveValue, min, max);\n // Determine the text display\n const valueText = formatValueText ? formatValueText(effectiveValue) : `${percentValue}%`;\n\n const internalProgressBarProps = {\n value: percentValue,\n label,\n valueText,\n labelId,\n hideLabel,\n };\n\n return (\n <div\n className={cn(componentClassName, className)}\n role=\"progressbar\"\n aria-valuenow={effectiveValue}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuetext={ariaValueText || valueText}\n aria-labelledby={labelId}\n data-colorscheme={colorScheme}\n {...progressBarProps}\n >\n {variant === 'linear' ? <ProgressBarLinear {...internalProgressBarProps} /> : null}\n {variant === 'circular' ? <ProgressBarCircular {...internalProgressBarProps} /> : null}\n </div>\n );\n};\n\nProgressBar.displayName = COMPONENT_NAME;\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkXKYU3KUYcjs = require('./chunk-XKYU3KUY.cjs');var _chunkKGBMFKTEcjs = require('./chunk-KGBMFKTE.cjs');var _chunkT3TZBSFXcjs = require('./chunk-T3TZBSFX.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _chunkMBS63LK7cjs = require('./chunk-MBS63LK7.cjs');var _radixui = require('radix-ui');var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _jsxruntime = require('react/jsx-runtime');var f="Button",e=_chunk7LZI6HLWcjs.b.call(void 0, f),v= exports.a =_react2.default.forwardRef((u,c)=>{let{className:B,children:n,disabled:N,loading:t,asChild:r,...b}=_chunkVCSJTDQRcjs.a.call(void 0, u,_chunkXKYU3KUYcjs.a),C=r?_radixui.Slot.Root:"button";return _jsxruntime.jsx.call(void 0, _chunkKGBMFKTEcjs.a,{ref:c,className:_chunkGVVJQBRKcjs.a.call(void 0, e,B),disabled:N||t,"aria-label":t?"Loading":void 0,asChild:!0,...b,children:_jsxruntime.jsx.call(void 0, C,{children:t?_chunkMBS63LK7cjs.a.call(void 0, {asChild:r,children:n},P=>_jsxruntime.jsxs.call(void 0, "div",{className:`${e}Loading`,children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkT3TZBSFXcjs.a,{size:"xs",currentColor:!0})}),_jsxruntime.jsx.call(void 0, "span",{className:`${e}Hidden`,children:P})]})):n})})});v.displayName=f;exports.a = v;
2
- //# sourceMappingURL=chunk-WHNZUG4R.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkKGBMFKTEcjs = require('./chunk-KGBMFKTE.cjs');var _chunkXKYU3KUYcjs = require('./chunk-XKYU3KUY.cjs');var _chunkT3TZBSFXcjs = require('./chunk-T3TZBSFX.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _chunkMBS63LK7cjs = require('./chunk-MBS63LK7.cjs');var _radixui = require('radix-ui');var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _jsxruntime = require('react/jsx-runtime');var f="Button",e=_chunk7LZI6HLWcjs.b.call(void 0, f),v= exports.a =_react2.default.forwardRef((u,c)=>{let{className:B,children:n,disabled:N,loading:t,asChild:r,...b}=_chunkVCSJTDQRcjs.a.call(void 0, u,_chunkXKYU3KUYcjs.a),C=r?_radixui.Slot.Root:"button";return _jsxruntime.jsx.call(void 0, _chunkKGBMFKTEcjs.a,{ref:c,className:_chunkGVVJQBRKcjs.a.call(void 0, e,B),disabled:N||t,"aria-label":t?"Loading":void 0,asChild:!0,...b,children:_jsxruntime.jsx.call(void 0, C,{children:t?_chunkMBS63LK7cjs.a.call(void 0, {asChild:r,children:n},P=>_jsxruntime.jsxs.call(void 0, "div",{className:`${e}Loading`,children:[_jsxruntime.jsx.call(void 0, "div",{children:_jsxruntime.jsx.call(void 0, _chunkT3TZBSFXcjs.a,{size:"xs",currentColor:!0})}),_jsxruntime.jsx.call(void 0, "span",{className:`${e}Hidden`,children:P})]})):n})})});v.displayName=f;exports.a = v;
2
+ //# sourceMappingURL=chunk-AHM6HIFY.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-WHNZUG4R.cjs","../src/components/Button/Button.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Button","React","props","ref","className","children","disabled","loading","asChild","buttonProps","extractProps","buttonPropDefs","Component","Slot","jsx","ButtonBase","cn","getSubtree","jsxs"],"mappings":"AAAA,iOAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCSzQ,4EAEH,+CAuBJ,IArBRA,CAAAA,CAAiB,QAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAASC,eAAAA,CAAM,UAAA,CAA2C,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACrF,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAAA,CAAU,OAAA,CAAAC,CAAAA,CAAS,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAY,CAAA,CAAIC,iCAAAA,CAC1ER,CACAS,mBACF,CAAA,CACMC,CAAAA,CAAYJ,CAAAA,CAAUK,aAAAA,CAAK,IAAA,CAAO,QAAA,CACxC,OACEC,6BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKZ,CAAAA,CACL,SAAA,CAAWa,iCAAAA,CAAGlB,CAAoBM,CAAS,CAAA,CAC3C,QAAA,CAAUE,CAAAA,EAAYC,CAAAA,CACtB,YAAA,CAAYA,CAAAA,CAAU,SAAA,CAAY,KAAA,CAAA,CAClC,OAAA,CAAO,CAAA,CAAA,CACN,GAAGE,CAAAA,CAEJ,QAAA,CAAAK,6BAAAA,CAACF,CAAA,CACE,QAAA,CAAAL,CAAAA,CACGU,iCAAAA,CAAa,OAAA,CAAAT,CAAAA,CAAS,QAAA,CAAAH,CAAS,CAAA,CAAGA,CAAAA,EAChCa,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-WHNZUG4R.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { ButtonBase, ButtonBaseElement } from '../ButtonBase/ButtonBase';\nimport { buttonPropDefs } from './Button.props';\nimport type { ButtonProps } from './Button.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { Slot } from 'radix-ui';\nimport { getSubtree } from '../../helpers/get-subtree';\nimport React from 'react';\n\nconst COMPONENT_NAME = 'Button';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const Button = React.forwardRef<ButtonBaseElement, ButtonProps>((props, ref) => {\n const { className, children, disabled, loading, asChild, ...buttonProps } = extractProps(\n props,\n buttonPropDefs\n );\n const Component = asChild ? Slot.Root : 'button';\n return (\n <ButtonBase\n ref={ref}\n className={cn(componentClassName, className)}\n disabled={disabled || loading}\n aria-label={loading ? 'Loading' : undefined}\n asChild\n {...buttonProps}\n >\n <Component>\n {loading\n ? getSubtree({ asChild, children }, children => (\n <div className={`${componentClassName}Loading`}>\n <div>\n <Spinner size=\"xs\" currentColor />\n </div>\n <span className={`${componentClassName}Hidden`}>{children}</span>\n </div>\n ))\n : children}\n </Component>\n </ButtonBase>\n );\n});\n\nButton.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-AHM6HIFY.cjs","../src/components/Button/Button.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Button","React","props","ref","className","children","disabled","loading","asChild","buttonProps","extractProps","buttonPropDefs","Component","Slot","jsx","ButtonBase","cn","getSubtree","jsxs"],"mappings":"AAAA,iOAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCSzQ,4EAEH,+CAuBJ,IArBRA,CAAAA,CAAiB,QAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAASC,eAAAA,CAAM,UAAA,CAA2C,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CACrF,GAAM,CAAE,SAAA,CAAAC,CAAAA,CAAW,QAAA,CAAAC,CAAAA,CAAU,QAAA,CAAAC,CAAAA,CAAU,OAAA,CAAAC,CAAAA,CAAS,OAAA,CAAAC,CAAAA,CAAS,GAAGC,CAAY,CAAA,CAAIC,iCAAAA,CAC1ER,CACAS,mBACF,CAAA,CACMC,CAAAA,CAAYJ,CAAAA,CAAUK,aAAAA,CAAK,IAAA,CAAO,QAAA,CACxC,OACEC,6BAAAA,mBAACC,CAAA,CACC,GAAA,CAAKZ,CAAAA,CACL,SAAA,CAAWa,iCAAAA,CAAGlB,CAAoBM,CAAS,CAAA,CAC3C,QAAA,CAAUE,CAAAA,EAAYC,CAAAA,CACtB,YAAA,CAAYA,CAAAA,CAAU,SAAA,CAAY,KAAA,CAAA,CAClC,OAAA,CAAO,CAAA,CAAA,CACN,GAAGE,CAAAA,CAEJ,QAAA,CAAAK,6BAAAA,CAACF,CAAA,CACE,QAAA,CAAAL,CAAAA,CACGU,iCAAAA,CAAa,OAAA,CAAAT,CAAAA,CAAS,QAAA,CAAAH,CAAS,CAAA,CAAGA,CAAAA,EAChCa,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-AHM6HIFY.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { ButtonBase, ButtonBaseElement } from '../ButtonBase/ButtonBase';\nimport { buttonPropDefs } from './Button.props';\nimport type { ButtonProps } from './Button.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { Slot } from 'radix-ui';\nimport { getSubtree } from '../../helpers/get-subtree';\nimport React from 'react';\n\nconst COMPONENT_NAME = 'Button';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const Button = React.forwardRef<ButtonBaseElement, ButtonProps>((props, ref) => {\n const { className, children, disabled, loading, asChild, ...buttonProps } = extractProps(\n props,\n buttonPropDefs\n );\n const Component = asChild ? Slot.Root : 'button';\n return (\n <ButtonBase\n ref={ref}\n className={cn(componentClassName, className)}\n disabled={disabled || loading}\n aria-label={loading ? 'Loading' : undefined}\n asChild\n {...buttonProps}\n >\n <Component>\n {loading\n ? getSubtree({ asChild, children }, children => (\n <div className={`${componentClassName}Loading`}>\n <div>\n <Spinner size=\"xs\" currentColor />\n </div>\n <span className={`${componentClassName}Hidden`}>{children}</span>\n </div>\n ))\n : children}\n </Component>\n </ButtonBase>\n );\n});\n\nButton.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkONZJWEZYcjs = require('./chunk-ONZJWEZY.cjs');var _chunkY36SCAZGcjs = require('./chunk-Y36SCAZG.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkDSW76HKTcjs = require('./chunk-DSW76HKT.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _jsxruntime = require('react/jsx-runtime');var h="TextInput",R=_chunk7LZI6HLWcjs.b.call(void 0, h),S= exports.a =_react2.default.forwardRef((v,P)=>{let{className:N,validationStatus:i,validationText:t,label:B,labelVariant:F,helperText:d,children:E,id:O,disabled:e,readOnly:n,hideLabel:g,required:o,placeholder:w,"aria-describedby":C,...D}=_chunkVCSJTDQRcjs.a.call(void 0, v,_chunkRDNRX35Pcjs.a),{id:l,labelId:s,helperTextId:p,validationTextId:a}=_chunkITZEACMWcjs.a.call(void 0, {providedId:O,prefix:"text-input"}),r=!n&&!e,V={id:l,labelId:s,helperTextId:p,validationTextId:a,label:B,labelVariant:F,helperText:d,validationText:r?t:void 0,validationStatus:r?i:void 0,hideLabel:g,required:o},q=_chunkDSW76HKTcjs.a.call(void 0, C,d?p:void 0,r&&t!==void 0?a:void 0);return _jsxruntime.jsx.call(void 0, _chunkY36SCAZGcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, R,N),"data-disabled":e?"":void 0,...V,children:_jsxruntime.jsx.call(void 0, _chunkONZJWEZYcjs.a,{ref:P,spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:w,"aria-labelledby":s,"aria-describedby":q,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?a:void 0,...D,children:E})})});S.displayName=h;exports.a = S;
2
+ //# sourceMappingURL=chunk-AJEG3D37.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-AJEG3D37.cjs","../src/components/TextInput/TextInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TextInput","React","props","ref","className","validationStatus","validationText","label","labelVariant","helperText","children","providedId","disabled","readOnly","hideLabel","required","placeholder","ariaDescribedby","textInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","jsx","FormField","cn","InputBase"],"mappings":"AAAA,iOAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,4ECWrT,+CAyDZ,IAvDAA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAYC,eAAAA,CAAM,UAAA,CAA6C,CAACC,CAAAA,CAAOC,CAAAA,CAAAA,EAAQ,CAC1F,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,kBAAA,CAAoBC,CAAAA,CACpB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAajB,CAAOkB,mBAAc,CAAA,CAEhC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,iCAAAA,CACtD,UAAA,CAAAd,CAAAA,CACA,MAAA,CAAQ,YACV,CAAC,CAAA,CAEKe,CAAAA,CAAyB,CAACb,CAAAA,EAAY,CAACD,CAAAA,CAEvCe,CAAAA,CAAiB,CACrB,EAAA,CAAAN,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAjB,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBiB,CAAAA,CAAiBpB,CAAAA,CAAiB,KAAA,CAAA,CAClD,gBAAA,CAAkBoB,CAAAA,CAAiBrB,CAAAA,CAAmB,KAAA,CAAA,CACtD,SAAA,CAAAS,CAAAA,CACA,QAAA,CAAAC,CACF,CAAA,CAEMa,CAAAA,CAAuBC,iCAAAA,CAC3BZ,CACER,CAAAA,CAAac,CAAAA,CAAe,KAAA,CAAA,CAC9BG,CAAAA,EAAkBpB,CAAAA,GAAmB,KAAA,CAAA,CAAYkB,CAAAA,CAAmB,KAAA,CACtE,CAAA,CAEA,OACEM,6BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGlC,CAAoBM,CAAS,CAAA,CAC3C,eAAA,CAAeQ,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAC9B,GAAGe,CAAAA,CAEJ,QAAA,CAAAG,6BAAAA,mBAACG,CAAA,CACC,GAAA,CAAK9B,CAAAA,CACL,UAAA,CAAW,OAAA,CACX,EAAA,CAAIkB,CAAAA,CACJ,QAAA,CAAUN,CAAAA,CACV,QAAA,CAAUH,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,WAAA,CAAcD,CAAAA,CAAyB,KAAA,CAAA,CAAdI,CAAAA,CACzB,iBAAA,CAAiBM,CAAAA,CACjB,kBAAA,CAAkBM,CAAAA,CAClB,cAAA,CAAcvB,CAAAA,GAAqB,SAAA,CAAY,CAAA,CAAA,CAAO,KAAA,CAAA,CACtD,mBAAA,CAAmBA,CAAAA,GAAqB,SAAA,CAAYmB,CAAAA,CAAmB,KAAA,CAAA,CACtE,GAAGN,CAAAA,CAEH,QAAA,CAAAR,CAAAA,CACH,CAAA,CACF,CAEJ,CAAC,CAAA,CAEDV,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-AJEG3D37.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { TextInputProps } from './TextInput.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { cn } from '../../helpers/cn';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase, type InputBaseElement } from '../InputBase/InputBase';\nimport { FormField } from '../FormField/FormField';\nimport React from 'react';\n\nconst COMPONENT_NAME = 'TextInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TextInput = React.forwardRef<InputBaseElement, TextInputProps>((props, ref) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n children,\n id: providedId,\n disabled,\n readOnly,\n hideLabel,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n ...textInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'text-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n hideLabel,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n {...formFieldProps}\n >\n <InputBase\n ref={ref}\n spellCheck=\"false\"\n id={id}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n {...textInputProps}\n >\n {children}\n </InputBase>\n </FormField>\n );\n});\n\nTextInput.displayName = COMPONENT_NAME;\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkK4RWSELNcjs = require('./chunk-K4RWSELN.cjs');var _chunk62YYP3R3cjs = require('./chunk-62YYP3R3.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var h="HighlightBanner",a=_chunk7LZI6HLWcjs.b.call(void 0, h),N= exports.a =l=>{let{children:s,className:c,colorScheme:g,heading:p,headingColor:d,...f}=_chunkVCSJTDQRcjs.a.call(void 0, l,_chunkRDNRX35Pcjs.a);return _jsxruntime.jsxs.call(void 0, _chunkK4RWSELNcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, a,c),...f,colorScheme:g,direction:"column",paddingNone:!0,children:[_jsxruntime.jsx.call(void 0, "div",{className:`${a}Heading`,"data-colorscheme":d,children:_jsxruntime.jsx.call(void 0, _chunk62YYP3R3cjs.a,{size:"md",weight:"semibold",textAlign:"center",children:p})}),s]})};N.displayName=h;exports.a = N;
2
- //# sourceMappingURL=chunk-IJJGXLVK.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk45JNVTHNcjs = require('./chunk-45JNVTHN.cjs');var _chunk62YYP3R3cjs = require('./chunk-62YYP3R3.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var h="HighlightBanner",a=_chunk7LZI6HLWcjs.b.call(void 0, h),N= exports.a =l=>{let{children:s,className:c,colorScheme:g,heading:p,headingColor:d,...f}=_chunkVCSJTDQRcjs.a.call(void 0, l,_chunkRDNRX35Pcjs.a);return _jsxruntime.jsxs.call(void 0, _chunk45JNVTHNcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, a,c),...f,colorScheme:g,direction:"column",paddingNone:!0,children:[_jsxruntime.jsx.call(void 0, "div",{className:`${a}Heading`,"data-colorscheme":d,children:_jsxruntime.jsx.call(void 0, _chunk62YYP3R3cjs.a,{size:"md",weight:"semibold",textAlign:"center",children:p})}),s]})};N.displayName=h;exports.a = N;
2
+ //# sourceMappingURL=chunk-AVGPPHTC.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-IJJGXLVK.cjs","../src/components/HighlightBanner/HighlightBanner.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","HighlightBanner","props","children","className","colorScheme","heading","headingColor","highlightBannerProps","extractProps","marginPropDefs","jsxs","Card","cn","jsx"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,+CCgBjP,IAREA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAmBC,CAAAA,EAAgC,CAC9D,GAAM,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,WAAA,CAAAC,CAAAA,CAAa,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,GAAGC,CAAqB,CAAA,CACvFC,iCAAAA,CAAaP,CAAOQ,mBAAc,CAAA,CAEpC,OACEC,8BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGd,CAAoBK,CAAS,CAAA,CAC1C,GAAGI,CAAAA,CACJ,WAAA,CAAaH,CAAAA,CACb,SAAA,CAAU,QAAA,CACV,WAAA,CAAW,CAAA,CAAA,CAEX,QAAA,CAAA,CAAAS,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-IJJGXLVK.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport type { HighlightBannerProps } from './HighlightBanner.props';\nimport { Card } from '../Card/Card';\nimport { BodyText } from '../BodyText/BodyText';\n\nconst COMPONENT_NAME = 'HighlightBanner';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const HighlightBanner = (props: HighlightBannerProps) => {\n const { children, className, colorScheme, heading, headingColor, ...highlightBannerProps } =\n extractProps(props, marginPropDefs);\n\n return (\n <Card\n className={cn(componentClassName, className)}\n {...highlightBannerProps}\n colorScheme={colorScheme}\n direction=\"column\"\n paddingNone\n >\n <div className={`${componentClassName}Heading`} data-colorscheme={headingColor}>\n <BodyText size=\"md\" weight=\"semibold\" textAlign=\"center\">\n {heading}\n </BodyText>\n </div>\n {children}\n </Card>\n );\n};\n\nHighlightBanner.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-AVGPPHTC.cjs","../src/components/HighlightBanner/HighlightBanner.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","HighlightBanner","props","children","className","colorScheme","heading","headingColor","highlightBannerProps","extractProps","marginPropDefs","jsxs","Card","cn","jsx"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,+CCgBjP,IAREA,CAAAA,CAAiB,iBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAmBC,CAAAA,EAAgC,CAC9D,GAAM,CAAE,QAAA,CAAAC,CAAAA,CAAU,SAAA,CAAAC,CAAAA,CAAW,WAAA,CAAAC,CAAAA,CAAa,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,GAAGC,CAAqB,CAAA,CACvFC,iCAAAA,CAAaP,CAAOQ,mBAAc,CAAA,CAEpC,OACEC,8BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGd,CAAoBK,CAAS,CAAA,CAC1C,GAAGI,CAAAA,CACJ,WAAA,CAAaH,CAAAA,CACb,SAAA,CAAU,QAAA,CACV,WAAA,CAAW,CAAA,CAAA,CAEX,QAAA,CAAA,CAAAS,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-AVGPPHTC.cjs","sourcesContent":[null,"import { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport type { HighlightBannerProps } from './HighlightBanner.props';\nimport { Card } from '../Card/Card';\nimport { BodyText } from '../BodyText/BodyText';\n\nconst COMPONENT_NAME = 'HighlightBanner';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const HighlightBanner = (props: HighlightBannerProps) => {\n const { children, className, colorScheme, heading, headingColor, ...highlightBannerProps } =\n extractProps(props, marginPropDefs);\n\n return (\n <Card\n className={cn(componentClassName, className)}\n {...highlightBannerProps}\n colorScheme={colorScheme}\n direction=\"column\"\n paddingNone\n >\n <div className={`${componentClassName}Heading`} data-colorscheme={headingColor}>\n <BodyText size=\"md\" weight=\"semibold\" textAlign=\"center\">\n {heading}\n </BodyText>\n </div>\n {children}\n </Card>\n );\n};\n\nHighlightBanner.displayName = COMPONENT_NAME;\n"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkNFPIFSDDcjs = require('./chunk-NFPIFSDD.cjs');var _chunkY36SCAZGcjs = require('./chunk-Y36SCAZG.cjs');var _chunk342EX54Xcjs = require('./chunk-342EX54X.cjs');var _chunkLCYTX42Acjs = require('./chunk-LCYTX42A.cjs');var _chunkAGPVWUNAcjs = require('./chunk-AGPVWUNA.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _combobox = require('@base-ui/react/combobox');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var T="Combobox",m=_chunk7LZI6HLWcjs.b.call(void 0, T);function G(p){let{className:h,children:d,triggerOnlyOnType:b,validationStatus:g,validationText:A,label:O,labelVariant:V,helperText:B,id:E,disabled:t,required:F,noOptionsFoundText:w,statusText:c,...M}=_chunkVCSJTDQRcjs.a.call(void 0, p,_chunkRDNRX35Pcjs.a),{id:u,labelId:R,helperTextId:U,validationTextId:L}=_chunkITZEACMWcjs.a.call(void 0, {providedId:E,prefix:"combobox"}),f=!t,$={id:u,labelId:R,helperTextId:U,validationTextId:L,label:O,labelVariant:V,helperText:B,validationText:f?A:void 0,validationStatus:f?g:void 0,required:F};return _jsxruntime.jsx.call(void 0, _chunkY36SCAZGcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, m,h),"data-disabled":t?"":void 0,...$,children:_jsxruntime.jsxs.call(void 0, _combobox.Combobox.Root,{openOnInputClick:!b,...M,children:[_jsxruntime.jsx.call(void 0, _combobox.Combobox.Input,{render:_jsxruntime.jsxs.call(void 0, _chunkNFPIFSDDcjs.a,{id:u,disabled:t,children:[_jsxruntime.jsx.call(void 0, _combobox.Combobox.Trigger,{disabled:t,render:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"prefix",asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Open popup",disabled:t,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.SearchMediumIcon,{})})})}),_jsxruntime.jsx.call(void 0, _combobox.Combobox.Clear,{render:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Clear selection",disabled:t,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{})})})}),b?null:_jsxruntime.jsx.call(void 0, _combobox.Combobox.Trigger,{disabled:t,render:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Open popup",disabled:t,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.ExpandSmallIcon,{})})})})]})}),_jsxruntime.jsx.call(void 0, _combobox.Combobox.Portal,{children:_jsxruntime.jsx.call(void 0, _combobox.Combobox.Positioner,{side:"bottom",sideOffset:16,align:"start",alignOffset:-47,children:_jsxruntime.jsxs.call(void 0, _combobox.Combobox.Popup,{className:`${m}Popup`,children:[c?_jsxruntime.jsx.call(void 0, _combobox.Combobox.Status,{children:c}):null,p.items?_jsxruntime.jsx.call(void 0, _chunk342EX54Xcjs.a,{className:`${m}Empty`,children:w}):null,_jsxruntime.jsxs.call(void 0, _radixui.ScrollArea.Root,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaRoot"),type:"auto",children:[_jsxruntime.jsx.call(void 0, _radixui.ScrollArea.Viewport,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaViewport"),children:_jsxruntime.jsx.call(void 0, _combobox.Combobox.List,{className:`${m}List`,children:d||(s=>_jsxruntime.jsx.call(void 0, _chunkLCYTX42Acjs.a,{value:s,children:s},s))})}),_jsxruntime.jsx.call(void 0, _radixui.ScrollArea.Scrollbar,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaScrollbar"),orientation:"vertical",children:_jsxruntime.jsx.call(void 0, _radixui.ScrollArea.Thumb,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaThumb")})})]})]})})})]})})}G.displayName=T;exports.a = G;
2
- //# sourceMappingURL=chunk-MILIEBTD.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk342EX54Xcjs = require('./chunk-342EX54X.cjs');var _chunkLCYTX42Acjs = require('./chunk-LCYTX42A.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkONZJWEZYcjs = require('./chunk-ONZJWEZY.cjs');var _chunkY36SCAZGcjs = require('./chunk-Y36SCAZG.cjs');var _chunkAGPVWUNAcjs = require('./chunk-AGPVWUNA.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkVCSJTDQRcjs = require('./chunk-VCSJTDQR.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _combobox = require('@base-ui/react/combobox');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var T="Combobox",m=_chunk7LZI6HLWcjs.b.call(void 0, T);function G(p){let{className:h,children:d,triggerOnlyOnType:b,validationStatus:g,validationText:A,label:O,labelVariant:V,helperText:B,id:E,disabled:t,required:F,noOptionsFoundText:w,statusText:c,...M}=_chunkVCSJTDQRcjs.a.call(void 0, p,_chunkRDNRX35Pcjs.a),{id:u,labelId:R,helperTextId:U,validationTextId:L}=_chunkITZEACMWcjs.a.call(void 0, {providedId:E,prefix:"combobox"}),f=!t,$={id:u,labelId:R,helperTextId:U,validationTextId:L,label:O,labelVariant:V,helperText:B,validationText:f?A:void 0,validationStatus:f?g:void 0,required:F};return _jsxruntime.jsx.call(void 0, _chunkY36SCAZGcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, m,h),"data-disabled":t?"":void 0,...$,children:_jsxruntime.jsxs.call(void 0, _combobox.Combobox.Root,{openOnInputClick:!b,...M,children:[_jsxruntime.jsx.call(void 0, _combobox.Combobox.Input,{render:_jsxruntime.jsxs.call(void 0, _chunkONZJWEZYcjs.a,{id:u,disabled:t,children:[_jsxruntime.jsx.call(void 0, _combobox.Combobox.Trigger,{disabled:t,render:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"prefix",asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Open popup",disabled:t,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.SearchMediumIcon,{})})})}),_jsxruntime.jsx.call(void 0, _combobox.Combobox.Clear,{render:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Clear selection",disabled:t,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{})})})}),b?null:_jsxruntime.jsx.call(void 0, _combobox.Combobox.Trigger,{disabled:t,render:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkAGPVWUNAcjs.a,{type:"button",label:"Open popup",disabled:t,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.ExpandSmallIcon,{})})})})]})}),_jsxruntime.jsx.call(void 0, _combobox.Combobox.Portal,{children:_jsxruntime.jsx.call(void 0, _combobox.Combobox.Positioner,{side:"bottom",sideOffset:16,align:"start",alignOffset:-47,children:_jsxruntime.jsxs.call(void 0, _combobox.Combobox.Popup,{className:`${m}Popup`,children:[c?_jsxruntime.jsx.call(void 0, _combobox.Combobox.Status,{children:c}):null,p.items?_jsxruntime.jsx.call(void 0, _chunk342EX54Xcjs.a,{className:`${m}Empty`,children:w}):null,_jsxruntime.jsxs.call(void 0, _radixui.ScrollArea.Root,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaRoot"),type:"auto",children:[_jsxruntime.jsx.call(void 0, _radixui.ScrollArea.Viewport,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaViewport"),children:_jsxruntime.jsx.call(void 0, _combobox.Combobox.List,{className:`${m}List`,children:d||(s=>_jsxruntime.jsx.call(void 0, _chunkLCYTX42Acjs.a,{value:s,children:s},s))})}),_jsxruntime.jsx.call(void 0, _radixui.ScrollArea.Scrollbar,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaScrollbar"),orientation:"vertical",children:_jsxruntime.jsx.call(void 0, _radixui.ScrollArea.Thumb,{className:_chunk7LZI6HLWcjs.b.call(void 0, "ScrollAreaThumb")})})]})]})})})]})})}G.displayName=T;exports.a = G;
2
+ //# sourceMappingURL=chunk-BIYLFMVG.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-MILIEBTD.cjs","../src/components/Combobox/Combobox.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Combobox","props","className","children","triggerOnlyOnType","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","required","noOptionsFoundText","statusText","comboboxProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","jsx","FormField","cn","jsxs","ComboboxPrimitive","InputBase","InputSlot","UnstyledIconButton","SearchMediumIcon","CloseSmallIcon","ExpandSmallIcon"],"mappings":"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","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-MILIEBTD.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { useIds } from '../../hooks/use-ids';\nimport { FormField } from '../FormField/FormField';\nimport type { ComboboxProps } from './Combobox.props';\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';\nimport { InputBase } from '../InputBase/InputBase';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport {\n CloseSmallIcon,\n ExpandSmallIcon,\n SearchMediumIcon,\n} from '@utilitywarehouse/hearth-react-icons';\nimport { ComboboxItem } from './ComboboxItem';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { ComboboxEmpty } from './ComboboxEmpty';\n\nconst COMPONENT_NAME = 'Combobox';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport function Combobox<Value, Multiple extends boolean | undefined = false>(\n props: ComboboxProps<Value, Multiple>\n) {\n const {\n className,\n children,\n triggerOnlyOnType,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n required,\n noOptionsFoundText,\n statusText,\n ...comboboxProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'combobox',\n });\n\n const showValidation = !disabled;\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n {...formFieldProps}\n >\n <ComboboxPrimitive.Root openOnInputClick={!triggerOnlyOnType} {...comboboxProps}>\n <ComboboxPrimitive.Input\n render={\n <InputBase id={id} disabled={disabled}>\n <ComboboxPrimitive.Trigger\n disabled={disabled}\n render={\n <InputSlot placement=\"prefix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Open popup\" disabled={disabled}>\n <SearchMediumIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n <ComboboxPrimitive.Clear\n render={\n <InputSlot placement=\"suffix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Clear selection\" disabled={disabled}>\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n {triggerOnlyOnType ? null : (\n <ComboboxPrimitive.Trigger\n disabled={disabled}\n render={\n <InputSlot placement=\"suffix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Open popup\" disabled={disabled}>\n <ExpandSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n )}\n </InputBase>\n }\n />\n\n <ComboboxPrimitive.Portal>\n <ComboboxPrimitive.Positioner\n side=\"bottom\"\n sideOffset={16}\n align=\"start\"\n alignOffset={-47}\n >\n <ComboboxPrimitive.Popup className={`${componentClassName}Popup`}>\n {statusText ? (\n <ComboboxPrimitive.Status>{statusText}</ComboboxPrimitive.Status>\n ) : null}\n {props.items ? (\n <ComboboxEmpty className={`${componentClassName}Empty`}>\n {noOptionsFoundText}\n </ComboboxEmpty>\n ) : null}\n <ScrollAreaPrimitive.Root className={withGlobalPrefix('ScrollAreaRoot')} type=\"auto\">\n <ScrollAreaPrimitive.Viewport className={withGlobalPrefix('ScrollAreaViewport')}>\n <ComboboxPrimitive.List className={`${componentClassName}List`}>\n {children\n ? children\n : (item: string) => (\n <ComboboxItem key={item} value={item}>\n {item}\n </ComboboxItem>\n )}\n </ComboboxPrimitive.List>\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaPrimitive.Scrollbar\n className={withGlobalPrefix('ScrollAreaScrollbar')}\n orientation=\"vertical\"\n >\n <ScrollAreaPrimitive.Thumb className={withGlobalPrefix('ScrollAreaThumb')} />\n </ScrollAreaPrimitive.Scrollbar>\n </ScrollAreaPrimitive.Root>\n </ComboboxPrimitive.Popup>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n </ComboboxPrimitive.Root>\n </FormField>\n );\n}\n\nCombobox.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-BIYLFMVG.cjs","../src/components/Combobox/Combobox.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","Combobox","props","className","children","triggerOnlyOnType","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","required","noOptionsFoundText","statusText","comboboxProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","jsx","FormField","cn","jsxs","ComboboxPrimitive","InputBase","InputSlot","UnstyledIconButton","SearchMediumIcon","CloseSmallIcon","ExpandSmallIcon"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mDCSpZ,wEAOvC,mCAE2C,+CAwDtC,IApDNA,CAAAA,CAAiB,UAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAEnD,SAASC,CAAAA,CACdC,CAAAA,CACA,CACA,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAaf,CAAOgB,mBAAc,CAAA,CAEhC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,iCAAAA,CACtD,UAAA,CAAAZ,CAAAA,CACA,MAAA,CAAQ,UACV,CAAC,CAAA,CAEKa,CAAAA,CAAiB,CAACZ,CAAAA,CAElBa,CAAAA,CAAiB,CACrB,EAAA,CAAAN,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAd,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBc,CAAAA,CAAiBjB,CAAAA,CAAiB,KAAA,CAAA,CAClD,gBAAA,CAAkBiB,CAAAA,CAAiBlB,CAAAA,CAAmB,KAAA,CAAA,CACtD,QAAA,CAAAO,CACF,CAAA,CAEA,OACEa,6BAAAA,mBAACC,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAG7B,CAAoBI,CAAS,CAAA,CAC3C,eAAA,CAAeS,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAC9B,GAAGa,CAAAA,CAEJ,QAAA,CAAAI,8BAAAA,kBAACC,CAAkB,IAAA,CAAlB,CAAuB,gBAAA,CAAkB,CAACzB,CAAAA,CAAoB,GAAGW,CAAAA,CAChE,QAAA,CAAA,CAAAU,6BAAAA,kBAACI,CAAkB,KAAA,CAAlB,CACC,MAAA,CACED,8BAAAA,mBAACE,CAAA,CAAU,EAAA,CAAIZ,CAAAA,CAAI,QAAA,CAAUP,CAAAA,CAC3B,QAAA,CAAA,CAAAc,6BAAAA,kBAACI,CAAkB,OAAA,CAAlB,CACC,QAAA,CAAUlB,CAAAA,CACV,MAAA,CACEc,6BAAAA,mBAACM,CAAA,CAAU,SAAA,CAAU,QAAA,CAAS,OAAA,CAAO,CAAA,CAAA,CACnC,QAAA,CAAAN,6BAAAA,mBAACO,CAAA,CAAmB,IAAA,CAAK,QAAA,CAAS,KAAA,CAAM,YAAA,CAAa,QAAA,CAAUrB,CAAAA,CAC7D,QAAA,CAAAc,6BAAAA,kCAACQ,CAAA,CAAA,CAAiB,CAAA,CACpB,CAAA,CACF,CAAA,CAEJ,CAAA,CACAR,6BAAAA,kBAACI,CAAkB,KAAA,CAAlB,CACC,MAAA,CACEJ,6BAAAA,mBAACM,CAAA,CAAU,SAAA,CAAU,QAAA,CAAS,OAAA,CAAO,CAAA,CAAA,CACnC,QAAA,CAAAN,6BAAAA,mBAACO,CAAA,CAAmB,IAAA,CAAK,QAAA,CAAS,KAAA,CAAM,iBAAA,CAAkB,QAAA,CAAUrB,CAAAA,CAClE,QAAA,CAAAc,6BAAAA,gCAACS,CAAA,CAAA,CAAe,CAAA,CAClB,CAAA,CACF,CAAA,CAEJ,CAAA,CACC9B,CAAAA,CAAoB,IAAA,CACnBqB,6BAAAA,kBAACI,CAAkB,OAAA,CAAlB,CACC,QAAA,CAAUlB,CAAAA,CACV,MAAA,CACEc,6BAAAA,mBAACM,CAAA,CAAU,SAAA,CAAU,QAAA,CAAS,OAAA,CAAO,CAAA,CAAA,CACnC,QAAA,CAAAN,6BAAAA,mBAACO,CAAA,CAAmB,IAAA,CAAK,QAAA,CAAS,KAAA,CAAM,YAAA,CAAa,QAAA,CAAUrB,CAAAA,CAC7D,QAAA,CAAAc,6BAAAA,iCAACU,CAAA,CAAA,CAAgB,CAAA,CACnB,CAAA,CACF,CAAA,CAEJ,CAAA,CAAA,CAEJ,CAAA,CAEJ,CAAA,CAEAV,6BAAAA,kBAACI,CAAkB,MAAA,CAAlB,CACC,QAAA,CAAAJ,6BAAAA,kBAACI,CAAkB,UAAA,CAAlB,CACC,IAAA,CAAK,QAAA,CACL,UAAA,CAAY,EAAA,CACZ,KAAA,CAAM,OAAA,CACN,WAAA,CAAa,CAAA,EAAA,CAEb,QAAA,CAAAD,8BAAAA,kBAACC,CAAkB,KAAA,CAAlB,CAAwB,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-BIYLFMVG.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { useIds } from '../../hooks/use-ids';\nimport { FormField } from '../FormField/FormField';\nimport type { ComboboxProps } from './Combobox.props';\nimport { Combobox as ComboboxPrimitive } from '@base-ui/react/combobox';\nimport { InputBase } from '../InputBase/InputBase';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport {\n CloseSmallIcon,\n ExpandSmallIcon,\n SearchMediumIcon,\n} from '@utilitywarehouse/hearth-react-icons';\nimport { ComboboxItem } from './ComboboxItem';\nimport { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { ComboboxEmpty } from './ComboboxEmpty';\n\nconst COMPONENT_NAME = 'Combobox';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport function Combobox<Value, Multiple extends boolean | undefined = false>(\n props: ComboboxProps<Value, Multiple>\n) {\n const {\n className,\n children,\n triggerOnlyOnType,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n required,\n noOptionsFoundText,\n statusText,\n ...comboboxProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'combobox',\n });\n\n const showValidation = !disabled;\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n return (\n <FormField\n className={cn(componentClassName, className)}\n data-disabled={disabled ? '' : undefined}\n {...formFieldProps}\n >\n <ComboboxPrimitive.Root openOnInputClick={!triggerOnlyOnType} {...comboboxProps}>\n <ComboboxPrimitive.Input\n render={\n <InputBase id={id} disabled={disabled}>\n <ComboboxPrimitive.Trigger\n disabled={disabled}\n render={\n <InputSlot placement=\"prefix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Open popup\" disabled={disabled}>\n <SearchMediumIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n <ComboboxPrimitive.Clear\n render={\n <InputSlot placement=\"suffix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Clear selection\" disabled={disabled}>\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n {triggerOnlyOnType ? null : (\n <ComboboxPrimitive.Trigger\n disabled={disabled}\n render={\n <InputSlot placement=\"suffix\" asChild>\n <UnstyledIconButton type=\"button\" label=\"Open popup\" disabled={disabled}>\n <ExpandSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n }\n />\n )}\n </InputBase>\n }\n />\n\n <ComboboxPrimitive.Portal>\n <ComboboxPrimitive.Positioner\n side=\"bottom\"\n sideOffset={16}\n align=\"start\"\n alignOffset={-47}\n >\n <ComboboxPrimitive.Popup className={`${componentClassName}Popup`}>\n {statusText ? (\n <ComboboxPrimitive.Status>{statusText}</ComboboxPrimitive.Status>\n ) : null}\n {props.items ? (\n <ComboboxEmpty className={`${componentClassName}Empty`}>\n {noOptionsFoundText}\n </ComboboxEmpty>\n ) : null}\n <ScrollAreaPrimitive.Root className={withGlobalPrefix('ScrollAreaRoot')} type=\"auto\">\n <ScrollAreaPrimitive.Viewport className={withGlobalPrefix('ScrollAreaViewport')}>\n <ComboboxPrimitive.List className={`${componentClassName}List`}>\n {children\n ? children\n : (item: string) => (\n <ComboboxItem key={item} value={item}>\n {item}\n </ComboboxItem>\n )}\n </ComboboxPrimitive.List>\n </ScrollAreaPrimitive.Viewport>\n <ScrollAreaPrimitive.Scrollbar\n className={withGlobalPrefix('ScrollAreaScrollbar')}\n orientation=\"vertical\"\n >\n <ScrollAreaPrimitive.Thumb className={withGlobalPrefix('ScrollAreaThumb')} />\n </ScrollAreaPrimitive.Scrollbar>\n </ScrollAreaPrimitive.Root>\n </ComboboxPrimitive.Popup>\n </ComboboxPrimitive.Positioner>\n </ComboboxPrimitive.Portal>\n </ComboboxPrimitive.Root>\n </FormField>\n );\n}\n\nCombobox.displayName = COMPONENT_NAME;\n"]}
@@ -0,0 +1,2 @@
1
+ import{a as m}from"./chunk-4DHFW3SB.js";import{a as o}from"./chunk-BCK2XQ4L.js";import{a}from"./chunk-OVKYZ4TW.js";import{a as s}from"./chunk-WGT24RID.js";import{a as i}from"./chunk-L4OZ3M5X.js";import{a as c}from"./chunk-MSHCGZ4G.js";import{b as l}from"./chunk-TXDSZ3MR.js";import{CloseSmallIcon as N,SearchMediumIcon as T}from"@utilitywarehouse/hearth-react-icons";import*as n from"react";import{useMergedRefs as C}from"@base-ui/utils/useMergedRefs";import{jsx as e,jsxs as H}from"react/jsx-runtime";var f="SearchInput",P=l(f),g=n.forwardRef(({className:I,disabled:u,value:r,onClear:p,loading:d,hideLabel:h=!0,helperText:S,id:y,...R},x)=>{let t=n.useRef(null),b=C(x,t),B=n.useCallback(M=>{typeof p!="function"||M.button!==0||(p(),t&&typeof t=="object"&&t.current&&t.current.focus())},[t,p]),{id:E}=i({providedId:y,prefix:"search-input"});return H(m,{ref:b,className:c(P,I),type:"search",enterKeyHint:"search",disabled:u,hideLabel:h,helperText:S,value:r,id:E,...R,children:[e(o,{placement:"prefix",children:e(T,{})}),d?e(o,{placement:"suffix",children:e(s,{size:"xs",color:"primary"})}):null,r!==void 0&&String(r).length>0?e(o,{placement:"suffix",children:e(a,{type:"button",label:"clear search",onClick:B,disabled:u,children:e(N,{})})}):null]})});g.displayName=f;export{g as a};
2
+ //# sourceMappingURL=chunk-BZXGMEVY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/SearchInput/SearchInput.tsx"],"sourcesContent":["'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport type { SearchInputProps } from './SearchInput.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { CloseSmallIcon, SearchMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport * as React from 'react';\nimport type { InputBaseElement } from '../InputBase/InputBase';\nimport { useMergedRefs } from '@base-ui/utils/useMergedRefs';\n\nconst COMPONENT_NAME = 'SearchInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const SearchInput = React.forwardRef<InputBaseElement, SearchInputProps>(\n (\n {\n className,\n disabled,\n value,\n onClear,\n loading,\n hideLabel = true,\n helperText,\n id: providedId,\n ...props\n },\n forwardedRef\n ) => {\n const internalRef = React.useRef<HTMLInputElement | null>(null);\n const inputRef = useMergedRefs(forwardedRef, internalRef);\n\n const handleClear = React.useCallback(\n (event: React.MouseEvent<HTMLButtonElement>) => {\n if (typeof onClear !== 'function' || event.button !== 0) {\n return;\n }\n onClear();\n\n if (internalRef && typeof internalRef === 'object' && internalRef.current) {\n internalRef.current.focus();\n }\n },\n [internalRef, onClear]\n );\n\n const { id } = useIds({ providedId, prefix: 'search-input' });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"search\"\n enterKeyHint=\"search\"\n disabled={disabled}\n hideLabel={hideLabel}\n helperText={helperText}\n value={value}\n id={id}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <SearchMediumIcon />\n </InputSlot>\n {loading ? (\n <InputSlot placement=\"suffix\">\n <Spinner size=\"xs\" color=\"primary\" />\n </InputSlot>\n ) : null}\n {value !== undefined && String(value).length > 0 ? (\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"clear search\"\n onClick={handleClear}\n disabled={disabled}\n >\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n ) : null}\n </TextInput>\n );\n }\n);\n\nSearchInput.displayName = COMPONENT_NAME;\n"],"mappings":"mRASA,OAAS,kBAAAA,EAAgB,oBAAAC,MAAwB,uCAEjD,UAAYC,MAAW,QAEvB,OAAS,iBAAAC,MAAqB,+BAwCxB,OAaI,OAAAC,EAbJ,QAAAC,MAAA,oBAtCN,IAAMC,EAAiB,cACjBC,EAAqBC,EAAiBF,CAAc,EAE7CG,EAAoB,aAC/B,CACE,CACE,UAAAC,EACA,SAAAC,EACA,MAAAC,EACA,QAAAC,EACA,QAAAC,EACA,UAAAC,EAAY,GACZ,WAAAC,EACA,GAAIC,EACJ,GAAGC,CACL,EACAC,IACG,CACH,IAAMC,EAAoB,SAAgC,IAAI,EACxDC,EAAWlB,EAAcgB,EAAcC,CAAW,EAElDE,EAAoB,cACvBC,GAA+C,CAC1C,OAAOV,GAAY,YAAcU,EAAM,SAAW,IAGtDV,EAAQ,EAEJO,GAAe,OAAOA,GAAgB,UAAYA,EAAY,SAChEA,EAAY,QAAQ,MAAM,EAE9B,EACA,CAACA,EAAaP,CAAO,CACvB,EAEM,CAAE,GAAAW,CAAG,EAAIC,EAAO,CAAE,WAAAR,EAAY,OAAQ,cAAe,CAAC,EAE5D,OACEZ,EAACqB,EAAA,CACC,IAAKL,EACL,UAAWM,EAAGpB,EAAoBG,CAAS,EAC3C,KAAK,SACL,aAAa,SACb,SAAUC,EACV,UAAWI,EACX,WAAYC,EACZ,MAAOJ,EACP,GAAIY,EACH,GAAGN,EAEJ,UAAAd,EAACwB,EAAA,CAAU,UAAU,SACnB,SAAAxB,EAACyB,EAAA,EAAiB,EACpB,EACCf,EACCV,EAACwB,EAAA,CAAU,UAAU,SACnB,SAAAxB,EAAC0B,EAAA,CAAQ,KAAK,KAAK,MAAM,UAAU,EACrC,EACE,KACHlB,IAAU,QAAa,OAAOA,CAAK,EAAE,OAAS,EAC7CR,EAACwB,EAAA,CAAU,UAAU,SACnB,SAAAxB,EAAC2B,EAAA,CACC,KAAK,SACL,MAAM,eACN,QAAST,EACT,SAAUX,EAEV,SAAAP,EAAC4B,EAAA,EAAe,EAClB,EACF,EACE,MACN,CAEJ,CACF,EAEAvB,EAAY,YAAcH","names":["CloseSmallIcon","SearchMediumIcon","React","useMergedRefs","jsx","jsxs","COMPONENT_NAME","componentClassName","withGlobalPrefix","SearchInput","className","disabled","value","onClear","loading","hideLabel","helperText","providedId","props","forwardedRef","internalRef","inputRef","handleClear","event","id","useIds","TextInput","cn","InputSlot","SearchMediumIcon","Spinner","UnstyledIconButton","CloseSmallIcon"]}
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-XZNPGGRR.js";import{a as p}from"./chunk-SPTMOJ5M.js";import{a as d}from"./chunk-WGT24RID.js";import{a as i}from"./chunk-BMY6GUJM.js";import{a as s}from"./chunk-MSHCGZ4G.js";import{b as a}from"./chunk-TXDSZ3MR.js";import{a as m}from"./chunk-AHTIZRCQ.js";import{Slot as g}from"radix-ui";import h from"react";import{jsx as o,jsxs as E}from"react/jsx-runtime";var f="Button",e=a(f),v=h.forwardRef((u,c)=>{let{className:B,children:n,disabled:N,loading:t,asChild:r,...b}=i(u,l),C=r?g.Root:"button";return o(p,{ref:c,className:s(e,B),disabled:N||t,"aria-label":t?"Loading":void 0,asChild:!0,...b,children:o(C,{children:t?m({asChild:r,children:n},P=>E("div",{className:`${e}Loading`,children:[o("div",{children:o(d,{size:"xs",currentColor:!0})}),o("span",{className:`${e}Hidden`,children:P})]})):n})})});v.displayName=f;export{v as a};
2
- //# sourceMappingURL=chunk-WZYQVR44.js.map
1
+ import{a as p}from"./chunk-SPTMOJ5M.js";import{a as l}from"./chunk-XZNPGGRR.js";import{a as d}from"./chunk-WGT24RID.js";import{a as i}from"./chunk-BMY6GUJM.js";import{a as s}from"./chunk-MSHCGZ4G.js";import{b as a}from"./chunk-TXDSZ3MR.js";import{a as m}from"./chunk-AHTIZRCQ.js";import{Slot as g}from"radix-ui";import h from"react";import{jsx as o,jsxs as E}from"react/jsx-runtime";var f="Button",e=a(f),v=h.forwardRef((u,c)=>{let{className:B,children:n,disabled:N,loading:t,asChild:r,...b}=i(u,l),C=r?g.Root:"button";return o(p,{ref:c,className:s(e,B),disabled:N||t,"aria-label":t?"Loading":void 0,asChild:!0,...b,children:o(C,{children:t?m({asChild:r,children:n},P=>E("div",{className:`${e}Loading`,children:[o("div",{children:o(d,{size:"xs",currentColor:!0})}),o("span",{className:`${e}Hidden`,children:P})]})):n})})});v.displayName=f;export{v as a};
2
+ //# sourceMappingURL=chunk-CK7QFOWD.js.map
@@ -1,2 +1,2 @@
1
- import{a as C}from"./chunk-KG5A6IAL.js";import{a as v}from"./chunk-2XO2KEZO.js";import{a as g}from"./chunk-Z6OGYQ26.js";import{a as P}from"./chunk-OVKYZ4TW.js";import{a as u}from"./chunk-WGT24RID.js";import{a as t}from"./chunk-IASCN6R2.js";import{a as f}from"./chunk-2KJSF7BE.js";import{a as c}from"./chunk-MSHCGZ4G.js";import{b as l}from"./chunk-TXDSZ3MR.js";import{Dialog as e}from"radix-ui";import{CloseMediumIcon as w}from"@utilitywarehouse/hearth-react-icons";import{jsx as i,jsxs as a}from"react/jsx-runtime";var N="Modal",o=l(N),O=({className:y,image:n,forceMount:D,container:M,heading:I,description:r,hideCloseButton:s,fullScreen:h,loading:d,loadingText:m,children:x,...B})=>{let $={forceMount:D,container:M},p=!!n;return i(e.Portal,{...$,children:i(e.Overlay,{className:l("Overlay"),children:i("div",{className:`${o}Scroll`,children:i("div",{className:`${o}ScrollPadding`,children:a(e.Content,{className:c(o,y),"data-contains-image":p?"":void 0,"data-hide-close-button":s?"":void 0,"data-full-screen":h?"":void 0,...B,children:[i(C,{children:i(P,{type:"button",label:"Close","data-visually-hidden":s?"":void 0,className:`${o}CloseIconButton`,children:i(w,{})})}),a("div",{className:`${o}OuterContainer`,children:[d?null:a("div",{className:`${o}InnerContainer`,children:[p?i("div",{className:`${o}Image`,children:n}):null,a("div",{className:`${o}Header`,children:[i(v,{asChild:!0,children:i(e.Title,{asChild:!0,children:i(t,{size:"lg",wrap:"wrap",children:I})})}),r?i(e.Description,{asChild:!0,children:i(f,{size:"md",as:"span",children:r})}):null]})]}),d?a(g,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[i(u,{size:"lg"}),m?i(e.Title,{asChild:!0,children:i(t,{size:"lg",textAlign:"center",wrap:"wrap",children:m})}):null]}):x]})]})})})})})};O.displayName=N;export{O as a};
2
- //# sourceMappingURL=chunk-CJXMLCA2.js.map
1
+ import{a as C}from"./chunk-KG5A6IAL.js";import{a as g}from"./chunk-Z6OGYQ26.js";import{a as P}from"./chunk-OVKYZ4TW.js";import{a as u}from"./chunk-WGT24RID.js";import{a as v}from"./chunk-2XO2KEZO.js";import{a as t}from"./chunk-IASCN6R2.js";import{a as f}from"./chunk-2KJSF7BE.js";import{a as c}from"./chunk-MSHCGZ4G.js";import{b as l}from"./chunk-TXDSZ3MR.js";import{Dialog as e}from"radix-ui";import{CloseMediumIcon as w}from"@utilitywarehouse/hearth-react-icons";import{jsx as i,jsxs as a}from"react/jsx-runtime";var N="Modal",o=l(N),O=({className:y,image:n,forceMount:D,container:M,heading:I,description:r,hideCloseButton:s,fullScreen:h,loading:d,loadingText:m,children:x,...B})=>{let $={forceMount:D,container:M},p=!!n;return i(e.Portal,{...$,children:i(e.Overlay,{className:l("Overlay"),children:i("div",{className:`${o}Scroll`,children:i("div",{className:`${o}ScrollPadding`,children:a(e.Content,{className:c(o,y),"data-contains-image":p?"":void 0,"data-hide-close-button":s?"":void 0,"data-full-screen":h?"":void 0,...B,children:[i(C,{children:i(P,{type:"button",label:"Close","data-visually-hidden":s?"":void 0,className:`${o}CloseIconButton`,children:i(w,{})})}),a("div",{className:`${o}OuterContainer`,children:[d?null:a("div",{className:`${o}InnerContainer`,children:[p?i("div",{className:`${o}Image`,children:n}):null,a("div",{className:`${o}Header`,children:[i(v,{asChild:!0,children:i(e.Title,{asChild:!0,children:i(t,{size:"lg",wrap:"wrap",children:I})})}),r?i(e.Description,{asChild:!0,children:i(f,{size:"md",as:"span",children:r})}):null]})]}),d?a(g,{direction:"column",gap:"300",alignItems:"center",paddingY:"200",width:"100%",children:[i(u,{size:"lg"}),m?i(e.Title,{asChild:!0,children:i(t,{size:"lg",textAlign:"center",wrap:"wrap",children:m})}):null]}):x]})]})})})})})};O.displayName=N;export{O as a};
2
+ //# sourceMappingURL=chunk-E6JPYGSG.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk564F3VJCcjs = require('./chunk-564F3VJC.cjs');var _chunk4YWZ4I6Ucjs = require('./chunk-4YWZ4I6U.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var t="ProgressBarLinear",s=_chunk7LZI6HLWcjs.b.call(void 0, t),p= exports.a =({value:d,label:n,valueText:l,labelId:m,hideLabel:a,...P})=>_jsxruntime.jsxs.call(void 0, "div",{className:s,...P,children:[_jsxruntime.jsx.call(void 0, _chunk4YWZ4I6Ucjs.a,{id:m,"data-visually-hidden":a?"":void 0,children:n}),_jsxruntime.jsx.call(void 0, _chunk564F3VJCcjs.a,{"data-visually-hidden":a?"":void 0,children:l}),_jsxruntime.jsx.call(void 0, "div",{className:`${s}Track`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${s}Indicator`,style:{width:`${d}%`}})})]});p.displayName=t;exports.a = p;
2
- //# sourceMappingURL=chunk-MLZNGLDO.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4YWZ4I6Ucjs = require('./chunk-4YWZ4I6U.cjs');var _chunk564F3VJCcjs = require('./chunk-564F3VJC.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var t="ProgressBarLinear",s=_chunk7LZI6HLWcjs.b.call(void 0, t),p= exports.a =({value:d,label:n,valueText:l,labelId:m,hideLabel:a,...P})=>_jsxruntime.jsxs.call(void 0, "div",{className:s,...P,children:[_jsxruntime.jsx.call(void 0, _chunk4YWZ4I6Ucjs.a,{id:m,"data-visually-hidden":a?"":void 0,children:n}),_jsxruntime.jsx.call(void 0, _chunk564F3VJCcjs.a,{"data-visually-hidden":a?"":void 0,children:l}),_jsxruntime.jsx.call(void 0, "div",{className:`${s}Track`,children:_jsxruntime.jsx.call(void 0, "div",{className:`${s}Indicator`,style:{width:`${d}%`}})})]});p.displayName=t;exports.a = p;
2
+ //# sourceMappingURL=chunk-EM33NSIH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-MLZNGLDO.cjs","../src/components/ProgressBar/ProgressBarLinear.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBarLinear","value","label","valueText","labelId","hideLabel","props","jsxs","jsx","ProgressBarLabel","ProgressBarValueText"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,+CCiBtH,IAZEA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAoB,CAAC,CAChC,KAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAA,EAEIC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWT,CAAAA,CAAqB,GAAGQ,CAAAA,CACtC,QAAA,CAAA,CAAAE,6BAAAA,mBAACC,CAAA,CAAiB,EAAA,CAAIL,CAAAA,CAAS,sBAAA,CAAsBC,CAAAA,CAAY,EAAA,CAAK,KAAA,CAAA,CACnE,QAAA,CAAAH,CAAAA,CACH,CAAA,CACAM,6BAAAA,mBAACE,CAAA,CAAqB,sBAAA,CAAsBL,CAAAA,CAAY,EAAA,CAAK,KAAA,CAAA,CAC1D,QAAA,CAAAF,CAAAA,CACH,CAAA,CAEAK,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-MLZNGLDO.cjs","sourcesContent":[null,"import { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { ProgressBarLabel } from './ProgressBarLabel';\nimport { ProgressBarValueText } from './ProgressBarValueText';\nimport type { ProgressBarInternalProps } from './ProgressBar.props';\n\nconst COMPONENT_NAME = 'ProgressBarLinear';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const ProgressBarLinear = ({\n value,\n label,\n valueText,\n labelId,\n hideLabel,\n ...props\n}: ProgressBarInternalProps) => {\n return (\n <div className={componentClassName} {...props}>\n <ProgressBarLabel id={labelId} data-visually-hidden={hideLabel ? '' : undefined}>\n {label}\n </ProgressBarLabel>\n <ProgressBarValueText data-visually-hidden={hideLabel ? '' : undefined}>\n {valueText}\n </ProgressBarValueText>\n\n <div className={`${componentClassName}Track`}>\n <div className={`${componentClassName}Indicator`} style={{ width: `${value}%` }} />\n </div>\n </div>\n );\n};\n\nProgressBarLinear.displayName = COMPONENT_NAME;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-EM33NSIH.cjs","../src/components/ProgressBar/ProgressBarLinear.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","ProgressBarLinear","value","label","valueText","labelId","hideLabel","props","jsxs","jsx","ProgressBarLabel","ProgressBarValueText"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,+CCiBtH,IAZEA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAoB,CAAC,CAChC,KAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAA,EAEIC,8BAAAA,KAAC,CAAA,CAAI,SAAA,CAAWT,CAAAA,CAAqB,GAAGQ,CAAAA,CACtC,QAAA,CAAA,CAAAE,6BAAAA,mBAACC,CAAA,CAAiB,EAAA,CAAIL,CAAAA,CAAS,sBAAA,CAAsBC,CAAAA,CAAY,EAAA,CAAK,KAAA,CAAA,CACnE,QAAA,CAAAH,CAAAA,CACH,CAAA,CACAM,6BAAAA,mBAACE,CAAA,CAAqB,sBAAA,CAAsBL,CAAAA,CAAY,EAAA,CAAK,KAAA,CAAA,CAC1D,QAAA,CAAAF,CAAAA,CACH,CAAA,CAEAK,6BAAAA,KAAC,CAAA,CAAI,SAAA,CAAW,CAAA,EAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-EM33NSIH.cjs","sourcesContent":[null,"import { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { ProgressBarLabel } from './ProgressBarLabel';\nimport { ProgressBarValueText } from './ProgressBarValueText';\nimport type { ProgressBarInternalProps } from './ProgressBar.props';\n\nconst COMPONENT_NAME = 'ProgressBarLinear';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const ProgressBarLinear = ({\n value,\n label,\n valueText,\n labelId,\n hideLabel,\n ...props\n}: ProgressBarInternalProps) => {\n return (\n <div className={componentClassName} {...props}>\n <ProgressBarLabel id={labelId} data-visually-hidden={hideLabel ? '' : undefined}>\n {label}\n </ProgressBarLabel>\n <ProgressBarValueText data-visually-hidden={hideLabel ? '' : undefined}>\n {valueText}\n </ProgressBarValueText>\n\n <div className={`${componentClassName}Track`}>\n <div className={`${componentClassName}Indicator`} style={{ width: `${value}%` }} />\n </div>\n </div>\n );\n};\n\nProgressBarLinear.displayName = COMPONENT_NAME;\n"]}