@commercetools/nimbus 0.0.0-canary-20251203100745 → 0.0.0-canary-20251203155001

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 (497) hide show
  1. package/dist/chunks/{Button-CmpJG0ec.es.js → Button-BjcDZ5eb.es.js} +7 -7
  2. package/dist/chunks/{Button-CmpJG0ec.es.js.map → Button-BjcDZ5eb.es.js.map} +1 -1
  3. package/dist/chunks/{CollectionBuilder-BqQjeKfi.es.js → CollectionBuilder-BnYe2z4W.es.js} +2 -2
  4. package/dist/chunks/{CollectionBuilder-BqQjeKfi.es.js.map → CollectionBuilder-BnYe2z4W.es.js.map} +1 -1
  5. package/dist/chunks/{DateField-Bpk0AwB2.es.js → DateField-C5JgBb30.es.js} +21 -21
  6. package/dist/chunks/{DateField-Bpk0AwB2.es.js.map → DateField-C5JgBb30.es.js.map} +1 -1
  7. package/dist/chunks/{DatePicker-CUW1A5A8.es.js → DatePicker-9m2POezC.es.js} +17 -17
  8. package/dist/chunks/{DatePicker-CUW1A5A8.es.js.map → DatePicker-9m2POezC.es.js.map} +1 -1
  9. package/dist/chunks/{Dialog-BYVU-i0Y.es.js → Dialog-DcnmO0xr.es.js} +24 -24
  10. package/dist/chunks/{Dialog-BYVU-i0Y.es.js.map → Dialog-DcnmO0xr.es.js.map} +1 -1
  11. package/dist/chunks/{FocusScope-bj_mamFe.es.js → FocusScope-CqEZq7sr.es.js} +36 -36
  12. package/dist/chunks/{FocusScope-bj_mamFe.es.js.map → FocusScope-CqEZq7sr.es.js.map} +1 -1
  13. package/dist/chunks/{Group-C9jsb9_m.es.js → Group-BQc9LuMT.es.js} +8 -8
  14. package/dist/chunks/{Group-C9jsb9_m.es.js.map → Group-BQc9LuMT.es.js.map} +1 -1
  15. package/dist/chunks/{Header-CNoClAau.es.js → Header-CliQVNVa.es.js} +5 -5
  16. package/dist/chunks/{Header-CNoClAau.es.js.map → Header-CliQVNVa.es.js.map} +1 -1
  17. package/dist/chunks/{Heading-D804NNml.es.js → Heading-D7Ut7eK3.es.js} +14 -14
  18. package/dist/chunks/{Heading-D804NNml.es.js.map → Heading-D7Ut7eK3.es.js.map} +1 -1
  19. package/dist/chunks/{Input-aKSXZBAh.es.js → Input-Cmg08oRP.es.js} +5 -5
  20. package/dist/chunks/{Input-aKSXZBAh.es.js.map → Input-Cmg08oRP.es.js.map} +1 -1
  21. package/dist/chunks/{Label-Bu5lTMzy.es.js → Label-DIseLESi.es.js} +2 -2
  22. package/dist/chunks/{Label-Bu5lTMzy.es.js.map → Label-DIseLESi.es.js.map} +1 -1
  23. package/dist/chunks/{ListBox-DYbGAoet.es.js → ListBox-CcSs4yTw.es.js} +15 -15
  24. package/dist/chunks/{ListBox-DYbGAoet.es.js.map → ListBox-CcSs4yTw.es.js.map} +1 -1
  25. package/dist/chunks/{Modal-2TttSPy4.es.js → Modal-3QPNDzpi.es.js} +7 -7
  26. package/dist/chunks/{Modal-2TttSPy4.es.js.map → Modal-3QPNDzpi.es.js.map} +1 -1
  27. package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js → OverlayArrow-BIjbCSXk.es.js} +2 -2
  28. package/dist/chunks/{OverlayArrow-qm-lnjhS.es.js.map → OverlayArrow-BIjbCSXk.es.js.map} +1 -1
  29. package/dist/chunks/{ProgressBar-DogfCeuX.es.js → ProgressBar-Dm2Ge45l.es.js} +5 -5
  30. package/dist/chunks/{ProgressBar-DogfCeuX.es.js.map → ProgressBar-Dm2Ge45l.es.js.map} +1 -1
  31. package/dist/chunks/{SelectionManager-CXicxYqF.es.js → SelectionManager-B0Cb1kHW.es.js} +10 -10
  32. package/dist/chunks/{SelectionManager-CXicxYqF.es.js.map → SelectionManager-B0Cb1kHW.es.js.map} +1 -1
  33. package/dist/chunks/{Separator-WCa1iR4U.es.js → Separator-DP89PKAS.es.js} +4 -4
  34. package/dist/chunks/{Separator-WCa1iR4U.es.js.map → Separator-DP89PKAS.es.js.map} +1 -1
  35. package/dist/chunks/{TextArea-JHqAZ7HD.es.js → TextArea-CXEdUjgW.es.js} +5 -5
  36. package/dist/chunks/{TextArea-JHqAZ7HD.es.js.map → TextArea-CXEdUjgW.es.js.map} +1 -1
  37. package/dist/chunks/{ToggleButton-B-feHlsu.es.js → ToggleButton-BqW-X6iJ.es.js} +7 -7
  38. package/dist/chunks/{ToggleButton-B-feHlsu.es.js.map → ToggleButton-BqW-X6iJ.es.js.map} +1 -1
  39. package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js → VisuallyHidden-BLRzeMsq.es.js} +3 -3
  40. package/dist/chunks/{VisuallyHidden-BIA5VRNP.es.js.map → VisuallyHidden-BLRzeMsq.es.js.map} +1 -1
  41. package/dist/chunks/{accordion-_4Vtr930.es.js → accordion-BacJkt5n.es.js} +2 -2
  42. package/dist/chunks/{accordion-_4Vtr930.es.js.map → accordion-BacJkt5n.es.js.map} +1 -1
  43. package/dist/chunks/{accordion-B978Ssd8.cjs.js → accordion-qzbckNub.cjs.js} +2 -2
  44. package/dist/chunks/{accordion-B978Ssd8.cjs.js.map → accordion-qzbckNub.cjs.js.map} +1 -1
  45. package/dist/chunks/accordion.content-Cslx-S6p.cjs.js +2 -0
  46. package/dist/chunks/{accordion.content-Bd2PESBz.cjs.js.map → accordion.content-Cslx-S6p.cjs.js.map} +1 -1
  47. package/dist/chunks/{accordion.content-YkB30Nl0.es.js → accordion.content-SFS_lHjk.es.js} +23 -24
  48. package/dist/chunks/{accordion.content-YkB30Nl0.es.js.map → accordion.content-SFS_lHjk.es.js.map} +1 -1
  49. package/dist/chunks/{alert-_J_dHFj_.es.js → alert-CoJ8asOZ.es.js} +2 -2
  50. package/dist/chunks/{alert-_J_dHFj_.es.js.map → alert-CoJ8asOZ.es.js.map} +1 -1
  51. package/dist/chunks/{alert-55tm3vfU.cjs.js → alert-D6ENEy8f.cjs.js} +2 -2
  52. package/dist/chunks/{alert-55tm3vfU.cjs.js.map → alert-D6ENEy8f.cjs.js.map} +1 -1
  53. package/dist/chunks/badge-CgYpum7D.es.js +17 -0
  54. package/dist/chunks/{badge-DUiqk6w9.es.js.map → badge-CgYpum7D.es.js.map} +1 -1
  55. package/dist/chunks/{button-CvWz8q1N.cjs.js → button-CxL9YuuF.cjs.js} +2 -2
  56. package/dist/chunks/{button-CvWz8q1N.cjs.js.map → button-CxL9YuuF.cjs.js.map} +1 -1
  57. package/dist/chunks/{button-DTxnOPiN.es.js → button-DZew_Si4.es.js} +6 -6
  58. package/dist/chunks/{button-DTxnOPiN.es.js.map → button-DZew_Si4.es.js.map} +1 -1
  59. package/dist/chunks/{calendar-C0WVsTa4.es.js → calendar-CDVjB0zo.es.js} +9 -9
  60. package/dist/chunks/{calendar-C0WVsTa4.es.js.map → calendar-CDVjB0zo.es.js.map} +1 -1
  61. package/dist/chunks/{calendar-CMCE8As1.cjs.js → calendar-Dx5LLOml.cjs.js} +2 -2
  62. package/dist/chunks/{calendar-CMCE8As1.cjs.js.map → calendar-Dx5LLOml.cjs.js.map} +1 -1
  63. package/dist/chunks/{card-D9xReN37.cjs.js → card-DB6gUcAw.cjs.js} +2 -2
  64. package/dist/chunks/{card-D9xReN37.cjs.js.map → card-DB6gUcAw.cjs.js.map} +1 -1
  65. package/dist/chunks/{card-DSxEwCmQ.es.js → card-ydiSozha.es.js} +2 -2
  66. package/dist/chunks/{card-DSxEwCmQ.es.js.map → card-ydiSozha.es.js.map} +1 -1
  67. package/dist/chunks/{checkbox-DMpI_oaX.es.js → checkbox-DuPKJsWQ.es.js} +10 -10
  68. package/dist/chunks/{checkbox-DMpI_oaX.es.js.map → checkbox-DuPKJsWQ.es.js.map} +1 -1
  69. package/dist/chunks/{checkbox-CdXKptM4.cjs.js → checkbox-fwmjQ4Uk.cjs.js} +2 -2
  70. package/dist/chunks/{checkbox-CdXKptM4.cjs.js.map → checkbox-fwmjQ4Uk.cjs.js.map} +1 -1
  71. package/dist/chunks/{collapsible-motion-Dw8EugiR.es.js → collapsible-motion-B5YFRwO4.es.js} +5 -5
  72. package/dist/chunks/{collapsible-motion-Dw8EugiR.es.js.map → collapsible-motion-B5YFRwO4.es.js.map} +1 -1
  73. package/dist/chunks/{collapsible-motion-CA8uQuKZ.cjs.js → collapsible-motion-BiF9lLAN.cjs.js} +2 -2
  74. package/dist/chunks/{collapsible-motion-CA8uQuKZ.cjs.js.map → collapsible-motion-BiF9lLAN.cjs.js.map} +1 -1
  75. package/dist/chunks/{combobox-BMpAKWKs.es.js → combobox-BobLAXh8.es.js} +74 -74
  76. package/dist/chunks/{combobox-BMpAKWKs.es.js.map → combobox-BobLAXh8.es.js.map} +1 -1
  77. package/dist/chunks/{combobox-DPZmJZJF.cjs.js → combobox-CEyLEi9S.cjs.js} +2 -2
  78. package/dist/chunks/{combobox-DPZmJZJF.cjs.js.map → combobox-CEyLEi9S.cjs.js.map} +1 -1
  79. package/dist/chunks/{data-table-B5tlvmbJ.cjs.js → data-table-DpRmr71N.cjs.js} +2 -2
  80. package/dist/chunks/{data-table-B5tlvmbJ.cjs.js.map → data-table-DpRmr71N.cjs.js.map} +1 -1
  81. package/dist/chunks/{data-table-Ch0tFro2.es.js → data-table-uvxFiIVK.es.js} +37 -37
  82. package/dist/chunks/{data-table-Ch0tFro2.es.js.map → data-table-uvxFiIVK.es.js.map} +1 -1
  83. package/dist/chunks/{date-input-lsbLlxie.cjs.js → date-input-BDkIVUEJ.cjs.js} +2 -2
  84. package/dist/chunks/{date-input-lsbLlxie.cjs.js.map → date-input-BDkIVUEJ.cjs.js.map} +1 -1
  85. package/dist/chunks/{date-input-COUAItnm.es.js → date-input-C_dX1XXD.es.js} +4 -4
  86. package/dist/chunks/{date-input-COUAItnm.es.js.map → date-input-C_dX1XXD.es.js.map} +1 -1
  87. package/dist/chunks/{date-picker-B5ZR0GJ3.es.js → date-picker-Cq8qD5Ff.es.js} +14 -14
  88. package/dist/chunks/{date-picker-B5ZR0GJ3.es.js.map → date-picker-Cq8qD5Ff.es.js.map} +1 -1
  89. package/dist/chunks/{date-picker-JA1Mh2WY.cjs.js → date-picker-DODeu1jH.cjs.js} +2 -2
  90. package/dist/chunks/{date-picker-JA1Mh2WY.cjs.js.map → date-picker-DODeu1jH.cjs.js.map} +1 -1
  91. package/dist/chunks/{date-range-picker-CMhOBPtp.es.js → date-range-picker-Bf14iS4A.es.js} +14 -14
  92. package/dist/chunks/{date-range-picker-CMhOBPtp.es.js.map → date-range-picker-Bf14iS4A.es.js.map} +1 -1
  93. package/dist/chunks/{date-range-picker-yzo8osGE.cjs.js → date-range-picker-D1gUgq_6.cjs.js} +2 -2
  94. package/dist/chunks/{date-range-picker-yzo8osGE.cjs.js.map → date-range-picker-D1gUgq_6.cjs.js.map} +1 -1
  95. package/dist/chunks/{date-range-picker-field-UFUo2JuI.cjs.js → date-range-picker-field-Bvvmu7oL.cjs.js} +2 -2
  96. package/dist/chunks/{date-range-picker-field-UFUo2JuI.cjs.js.map → date-range-picker-field-Bvvmu7oL.cjs.js.map} +1 -1
  97. package/dist/chunks/{date-range-picker-field-DaoP69E2.es.js → date-range-picker-field-CqG7wwZc.es.js} +3 -3
  98. package/dist/chunks/{date-range-picker-field-DaoP69E2.es.js.map → date-range-picker-field-CqG7wwZc.es.js.map} +1 -1
  99. package/dist/chunks/{dialog-DNl_apyv.cjs.js → dialog-CS8h46ov.cjs.js} +2 -2
  100. package/dist/chunks/{dialog-DNl_apyv.cjs.js.map → dialog-CS8h46ov.cjs.js.map} +1 -1
  101. package/dist/chunks/{dialog-cV8_ifAL.es.js → dialog-DUZOjwNj.es.js} +7 -7
  102. package/dist/chunks/{dialog-cV8_ifAL.es.js.map → dialog-DUZOjwNj.es.js.map} +1 -1
  103. package/dist/chunks/{draggable-list-4w8RgF1w.cjs.js → draggable-list-CUcHb55R.cjs.js} +2 -2
  104. package/dist/chunks/{draggable-list-4w8RgF1w.cjs.js.map → draggable-list-CUcHb55R.cjs.js.map} +1 -1
  105. package/dist/chunks/{draggable-list-B6YVD64W.es.js → draggable-list-LtLBvlhK.es.js} +22 -22
  106. package/dist/chunks/{draggable-list-B6YVD64W.es.js.map → draggable-list-LtLBvlhK.es.js.map} +1 -1
  107. package/dist/chunks/{drawer-BcgvPugV.cjs.js → drawer-DZt4nA9C.cjs.js} +2 -2
  108. package/dist/chunks/{drawer-BcgvPugV.cjs.js.map → drawer-DZt4nA9C.cjs.js.map} +1 -1
  109. package/dist/chunks/{drawer-ByFci-Lp.es.js → drawer-YCoDb7TU.es.js} +8 -8
  110. package/dist/chunks/{drawer-ByFci-Lp.es.js.map → drawer-YCoDb7TU.es.js.map} +1 -1
  111. package/dist/chunks/{extract-style-props-CJjpdqym.es.js → extract-style-props-CIoUvqFb.es.js} +2 -2
  112. package/dist/chunks/{extract-style-props-CJjpdqym.es.js.map → extract-style-props-CIoUvqFb.es.js.map} +1 -1
  113. package/dist/chunks/{extract-style-props-DL4zPQSN.cjs.js → extract-style-props-DGdckd6P.cjs.js} +2 -2
  114. package/dist/chunks/{extract-style-props-DL4zPQSN.cjs.js.map → extract-style-props-DGdckd6P.cjs.js.map} +1 -1
  115. package/dist/chunks/{focusSafely-RvsgqoUt.es.js → focusSafely-Cwb0Tyy6.es.js} +3 -3
  116. package/dist/chunks/{focusSafely-RvsgqoUt.es.js.map → focusSafely-Cwb0Tyy6.es.js.map} +1 -1
  117. package/dist/chunks/{form-field-D36wdkEj.cjs.js → form-field-CozKmli4.cjs.js} +2 -2
  118. package/dist/chunks/{form-field-D36wdkEj.cjs.js.map → form-field-CozKmli4.cjs.js.map} +1 -1
  119. package/dist/chunks/{form-field-Po_Y_5wQ.es.js → form-field-Df4_JmSU.es.js} +4 -4
  120. package/dist/chunks/{form-field-Po_Y_5wQ.es.js.map → form-field-Df4_JmSU.es.js.map} +1 -1
  121. package/dist/chunks/{getScrollParent-DlqhSzBC.es.js → getScrollParent-MZgwmCKW.es.js} +2 -2
  122. package/dist/chunks/{getScrollParent-DlqhSzBC.es.js.map → getScrollParent-MZgwmCKW.es.js.map} +1 -1
  123. package/dist/chunks/{group-jGsHh1w7.es.js → group-CCBgdph2.es.js} +2 -2
  124. package/dist/chunks/{group-jGsHh1w7.es.js.map → group-CCBgdph2.es.js.map} +1 -1
  125. package/dist/chunks/{heading-CwsT9zp_.es.js → heading-nfjoR4vL.es.js} +2 -2
  126. package/dist/chunks/{heading-CwsT9zp_.es.js.map → heading-nfjoR4vL.es.js.map} +1 -1
  127. package/dist/chunks/{icon-button-ClTyaPhB.cjs.js → icon-button-BPzrehNJ.cjs.js} +2 -2
  128. package/dist/chunks/{icon-button-ClTyaPhB.cjs.js.map → icon-button-BPzrehNJ.cjs.js.map} +1 -1
  129. package/dist/chunks/{icon-button-Cnas4bnJ.es.js → icon-button-hZxuTfRy.es.js} +2 -2
  130. package/dist/chunks/{icon-button-Cnas4bnJ.es.js.map → icon-button-hZxuTfRy.es.js.map} +1 -1
  131. package/dist/chunks/{icon-toggle-button-3hAIS1Mt.es.js → icon-toggle-button-BtyMh4Ys.es.js} +2 -2
  132. package/dist/chunks/{icon-toggle-button-3hAIS1Mt.es.js.map → icon-toggle-button-BtyMh4Ys.es.js.map} +1 -1
  133. package/dist/chunks/{icon-toggle-button-B8ycCaqk.cjs.js → icon-toggle-button-DzoifEyi.cjs.js} +2 -2
  134. package/dist/chunks/{icon-toggle-button-B8ycCaqk.cjs.js.map → icon-toggle-button-DzoifEyi.cjs.js.map} +1 -1
  135. package/dist/chunks/{index-CmfW40Im.es.js → index-CqOsUykV.es.js} +185 -185
  136. package/dist/chunks/index-CqOsUykV.es.js.map +1 -0
  137. package/dist/chunks/{index-DIQn6o2R.cjs.js → index-DdyUbTzB.cjs.js} +3 -3
  138. package/dist/chunks/index-DdyUbTzB.cjs.js.map +1 -0
  139. package/dist/chunks/{kbd-B11Qoo4k.es.js → kbd-Bl5Ncm2d.es.js} +2 -2
  140. package/dist/chunks/{kbd-B11Qoo4k.es.js.map → kbd-Bl5Ncm2d.es.js.map} +1 -1
  141. package/dist/chunks/{link-Db65JZE6.es.js → link-BMUyXcmC.es.js} +9 -9
  142. package/dist/chunks/{link-Db65JZE6.es.js.map → link-BMUyXcmC.es.js.map} +1 -1
  143. package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js → loading-spinner-DF6c3rBM.es.js} +3 -3
  144. package/dist/chunks/{loading-spinner-FBgHlqXQ.es.js.map → loading-spinner-DF6c3rBM.es.js.map} +1 -1
  145. package/dist/chunks/{localized-field-BqedmRuV.es.js → localized-field-BTtMYX2e.es.js} +25 -25
  146. package/dist/chunks/{localized-field-BqedmRuV.es.js.map → localized-field-BTtMYX2e.es.js.map} +1 -1
  147. package/dist/chunks/{localized-field-BudXks_7.cjs.js → localized-field-CKzOQS8a.cjs.js} +2 -2
  148. package/dist/chunks/{localized-field-BudXks_7.cjs.js.map → localized-field-CKzOQS8a.cjs.js.map} +1 -1
  149. package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js → make-element-focusable-7-aXFtDJ.es.js} +6 -6
  150. package/dist/chunks/{make-element-focusable-DVfaQntJ.es.js.map → make-element-focusable-7-aXFtDJ.es.js.map} +1 -1
  151. package/dist/chunks/{menu-DMtIo54m.es.js → menu-9gmr8hQj.es.js} +6 -6
  152. package/dist/chunks/{menu-DMtIo54m.es.js.map → menu-9gmr8hQj.es.js.map} +1 -1
  153. package/dist/chunks/{menu-DGuxJIC6.cjs.js → menu-DbUVggzL.cjs.js} +2 -2
  154. package/dist/chunks/{menu-DGuxJIC6.cjs.js.map → menu-DbUVggzL.cjs.js.map} +1 -1
  155. package/dist/chunks/{mergeProps-D1jjFfMs.es.js → mergeProps-Dsl8k3Ig.es.js} +6 -6
  156. package/dist/chunks/{mergeProps-D1jjFfMs.es.js.map → mergeProps-Dsl8k3Ig.es.js.map} +1 -1
  157. package/dist/chunks/{money-input-B3fxVHDJ.cjs.js → money-input-BelTJgi2.cjs.js} +2 -2
  158. package/dist/chunks/{money-input-B3fxVHDJ.cjs.js.map → money-input-BelTJgi2.cjs.js.map} +1 -1
  159. package/dist/chunks/{money-input-BHveN9w0.es.js → money-input-DiuaCRAq.es.js} +9 -9
  160. package/dist/chunks/{money-input-BHveN9w0.es.js.map → money-input-DiuaCRAq.es.js.map} +1 -1
  161. package/dist/chunks/{money-input-field-CsChyLci.es.js → money-input-field-B8gMfNW7.es.js} +3 -3
  162. package/dist/chunks/{money-input-field-CsChyLci.es.js.map → money-input-field-B8gMfNW7.es.js.map} +1 -1
  163. package/dist/chunks/{money-input-field-FVpMq6tJ.cjs.js → money-input-field-tgZ_nN7r.cjs.js} +2 -2
  164. package/dist/chunks/{money-input-field-FVpMq6tJ.cjs.js.map → money-input-field-tgZ_nN7r.cjs.js.map} +1 -1
  165. package/dist/chunks/{multiline-text-input-C5pMVuYM.cjs.js → multiline-text-input-DJeOCh8z.cjs.js} +2 -2
  166. package/dist/chunks/{multiline-text-input-C5pMVuYM.cjs.js.map → multiline-text-input-DJeOCh8z.cjs.js.map} +1 -1
  167. package/dist/chunks/{multiline-text-input-CTop15Kc.es.js → multiline-text-input-fb-1IzTw.es.js} +5 -5
  168. package/dist/chunks/{multiline-text-input-CTop15Kc.es.js.map → multiline-text-input-fb-1IzTw.es.js.map} +1 -1
  169. package/dist/chunks/{multiline-text-input-field-D_M3z9GG.es.js → multiline-text-input-field-DIjx7INz.es.js} +3 -3
  170. package/dist/chunks/{multiline-text-input-field-D_M3z9GG.es.js.map → multiline-text-input-field-DIjx7INz.es.js.map} +1 -1
  171. package/dist/chunks/{multiline-text-input-field-B3eQzuAg.cjs.js → multiline-text-input-field-EiZALVr9.cjs.js} +2 -2
  172. package/dist/chunks/{multiline-text-input-field-B3eQzuAg.cjs.js.map → multiline-text-input-field-EiZALVr9.cjs.js.map} +1 -1
  173. package/dist/chunks/{nimbus-provider-COP-MGlb.cjs.js → nimbus-provider-BZ1AjgyS.cjs.js} +2 -2
  174. package/dist/chunks/{nimbus-provider-COP-MGlb.cjs.js.map → nimbus-provider-BZ1AjgyS.cjs.js.map} +1 -1
  175. package/dist/chunks/{nimbus-provider-BZuDgONW.es.js → nimbus-provider-XoinDagw.es.js} +2 -2
  176. package/dist/chunks/{nimbus-provider-BZuDgONW.es.js.map → nimbus-provider-XoinDagw.es.js.map} +1 -1
  177. package/dist/chunks/{number-input-Dj9jPceO.cjs.js → number-input-BY8SeNuT.cjs.js} +2 -2
  178. package/dist/chunks/{number-input-Dj9jPceO.cjs.js.map → number-input-BY8SeNuT.cjs.js.map} +1 -1
  179. package/dist/chunks/{number-input-CLoBlpiD.es.js → number-input-DKGtPqlr.es.js} +14 -14
  180. package/dist/chunks/{number-input-CLoBlpiD.es.js.map → number-input-DKGtPqlr.es.js.map} +1 -1
  181. package/dist/chunks/{number-input-field-BKxrwzEz.es.js → number-input-field-DnIN5wjh.es.js} +3 -3
  182. package/dist/chunks/{number-input-field-BKxrwzEz.es.js.map → number-input-field-DnIN5wjh.es.js.map} +1 -1
  183. package/dist/chunks/{number-input-field-DYJa53Un.cjs.js → number-input-field-l6_xjbpB.cjs.js} +2 -2
  184. package/dist/chunks/{number-input-field-DYJa53Un.cjs.js.map → number-input-field-l6_xjbpB.cjs.js.map} +1 -1
  185. package/dist/chunks/{pagination-DNTHTYbV.cjs.js → pagination-Cks7-saP.cjs.js} +2 -2
  186. package/dist/chunks/{pagination-DNTHTYbV.cjs.js.map → pagination-Cks7-saP.cjs.js.map} +1 -1
  187. package/dist/chunks/{pagination-WCa7N8As.es.js → pagination-DAPyY6Zk.es.js} +5 -5
  188. package/dist/chunks/{pagination-WCa7N8As.es.js.map → pagination-DAPyY6Zk.es.js.map} +1 -1
  189. package/dist/chunks/{password-input-B1aemp6U.es.js → password-input-BXrS2-3k.es.js} +4 -4
  190. package/dist/chunks/{password-input-B1aemp6U.es.js.map → password-input-BXrS2-3k.es.js.map} +1 -1
  191. package/dist/chunks/{password-input-CWPQT3AJ.cjs.js → password-input-DG0_r6H_.cjs.js} +2 -2
  192. package/dist/chunks/{password-input-CWPQT3AJ.cjs.js.map → password-input-DG0_r6H_.cjs.js.map} +1 -1
  193. package/dist/chunks/{password-input-field-DGjkta8d.es.js → password-input-field-BIH25kaL.es.js} +3 -3
  194. package/dist/chunks/{password-input-field-DGjkta8d.es.js.map → password-input-field-BIH25kaL.es.js.map} +1 -1
  195. package/dist/chunks/{password-input-field-C3ct8JqT.cjs.js → password-input-field-DMQAWO16.cjs.js} +2 -2
  196. package/dist/chunks/{password-input-field-C3ct8JqT.cjs.js.map → password-input-field-DMQAWO16.cjs.js.map} +1 -1
  197. package/dist/chunks/{popover-B1aRr1CU.es.js → popover-zNeVW5hN.es.js} +2 -2
  198. package/dist/chunks/{popover-B1aRr1CU.es.js.map → popover-zNeVW5hN.es.js.map} +1 -1
  199. package/dist/chunks/{progress-bar-Dny28r_G.cjs.js → progress-bar-DG9JB9bR.cjs.js} +2 -2
  200. package/dist/chunks/{progress-bar-Dny28r_G.cjs.js.map → progress-bar-DG9JB9bR.cjs.js.map} +1 -1
  201. package/dist/chunks/{progress-bar-VQAbvri1.es.js → progress-bar-DYbU-4Vi.es.js} +4 -4
  202. package/dist/chunks/{progress-bar-VQAbvri1.es.js.map → progress-bar-DYbU-4Vi.es.js.map} +1 -1
  203. package/dist/chunks/{radio-input-CIqZ2V6i.cjs.js → radio-input-CA4Y8LF8.cjs.js} +2 -2
  204. package/dist/chunks/{radio-input-CIqZ2V6i.cjs.js.map → radio-input-CA4Y8LF8.cjs.js.map} +1 -1
  205. package/dist/chunks/{radio-input-6FtNHf0N.es.js → radio-input-tsryyQ63.es.js} +42 -42
  206. package/dist/chunks/{radio-input-6FtNHf0N.es.js.map → radio-input-tsryyQ63.es.js.map} +1 -1
  207. package/dist/chunks/{range-calendar-Cumbca_6.es.js → range-calendar-CCKqVOdF.es.js} +10 -10
  208. package/dist/chunks/{range-calendar-Cumbca_6.es.js.map → range-calendar-CCKqVOdF.es.js.map} +1 -1
  209. package/dist/chunks/{range-calendar-Bjst1nRD.cjs.js → range-calendar-CFfa_h1A.cjs.js} +2 -2
  210. package/dist/chunks/{range-calendar-Bjst1nRD.cjs.js.map → range-calendar-CFfa_h1A.cjs.js.map} +1 -1
  211. package/dist/chunks/{rich-text-input-C7jglLdt.es.js → rich-text-input-CoIBknUh.es.js} +13 -13
  212. package/dist/chunks/{rich-text-input-C7jglLdt.es.js.map → rich-text-input-CoIBknUh.es.js.map} +1 -1
  213. package/dist/chunks/{rich-text-input-CpQVkFRl.cjs.js → rich-text-input-D7zyqfNG.cjs.js} +2 -2
  214. package/dist/chunks/{rich-text-input-CpQVkFRl.cjs.js.map → rich-text-input-D7zyqfNG.cjs.js.map} +1 -1
  215. package/dist/chunks/{scoped-search-input-CIUdBb04.cjs.js → scoped-search-input-B7lz2Odg.cjs.js} +2 -2
  216. package/dist/chunks/{scoped-search-input-CIUdBb04.cjs.js.map → scoped-search-input-B7lz2Odg.cjs.js.map} +1 -1
  217. package/dist/chunks/{scoped-search-input-C3N9xhiG.es.js → scoped-search-input-DM_clkPu.es.js} +5 -5
  218. package/dist/chunks/{scoped-search-input-C3N9xhiG.es.js.map → scoped-search-input-DM_clkPu.es.js.map} +1 -1
  219. package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js → scrollIntoView-B7D07fJk.es.js} +5 -5
  220. package/dist/chunks/{scrollIntoView-CQMm8-SR.es.js.map → scrollIntoView-B7D07fJk.es.js.map} +1 -1
  221. package/dist/chunks/{search-input-xfX98rpy.es.js → search-input-CaJyfxW-.es.js} +11 -11
  222. package/dist/chunks/{search-input-xfX98rpy.es.js.map → search-input-CaJyfxW-.es.js.map} +1 -1
  223. package/dist/chunks/{search-input-B2eu94HO.cjs.js → search-input-Cq5nPtbF.cjs.js} +2 -2
  224. package/dist/chunks/{search-input-B2eu94HO.cjs.js.map → search-input-Cq5nPtbF.cjs.js.map} +1 -1
  225. package/dist/chunks/{search-input-field-CiEbfoqx.cjs.js → search-input-field-4wVwDFiQ.cjs.js} +2 -2
  226. package/dist/chunks/{search-input-field-CiEbfoqx.cjs.js.map → search-input-field-4wVwDFiQ.cjs.js.map} +1 -1
  227. package/dist/chunks/{search-input-field-Bt94J1Xu.es.js → search-input-field-zzVNsLn3.es.js} +3 -3
  228. package/dist/chunks/{search-input-field-Bt94J1Xu.es.js.map → search-input-field-zzVNsLn3.es.js.map} +1 -1
  229. package/dist/chunks/{select-OOmONm5T.cjs.js → select-AaF9VDYS.cjs.js} +2 -2
  230. package/dist/chunks/{select-OOmONm5T.cjs.js.map → select-AaF9VDYS.cjs.js.map} +1 -1
  231. package/dist/chunks/{select-6rfY6mk9.es.js → select-C4gMn8gq.es.js} +21 -21
  232. package/dist/chunks/{select-6rfY6mk9.es.js.map → select-C4gMn8gq.es.js.map} +1 -1
  233. package/dist/chunks/{separator-DoOgit09.cjs.js → separator-BadgCkrO.cjs.js} +2 -2
  234. package/dist/chunks/{separator-DoOgit09.cjs.js.map → separator-BadgCkrO.cjs.js.map} +1 -1
  235. package/dist/chunks/{separator-ByExde_2.es.js → separator-Bc2_grIr.es.js} +4 -4
  236. package/dist/chunks/{separator-ByExde_2.es.js.map → separator-Bc2_grIr.es.js.map} +1 -1
  237. package/dist/chunks/{split-button-DtNcxPjS.cjs.js → split-button-CbGHEymu.cjs.js} +2 -2
  238. package/dist/chunks/{split-button-DtNcxPjS.cjs.js.map → split-button-CbGHEymu.cjs.js.map} +1 -1
  239. package/dist/chunks/{split-button-CcfdSUWT.es.js → split-button-DT1Anaq1.es.js} +4 -4
  240. package/dist/chunks/{split-button-CcfdSUWT.es.js.map → split-button-DT1Anaq1.es.js.map} +1 -1
  241. package/dist/chunks/{switch-ZhX47Ufo.es.js → switch-1tLtDt7M.es.js} +7 -7
  242. package/dist/chunks/{switch-ZhX47Ufo.es.js.map → switch-1tLtDt7M.es.js.map} +1 -1
  243. package/dist/chunks/{switch-Bttbn3oV.cjs.js → switch-BxR5TD9Q.cjs.js} +2 -2
  244. package/dist/chunks/{switch-Bttbn3oV.cjs.js.map → switch-BxR5TD9Q.cjs.js.map} +1 -1
  245. package/dist/chunks/{tabs-DWMVR5Mq.cjs.js → tabs-C4EfvdVt.cjs.js} +2 -2
  246. package/dist/chunks/{tabs-DWMVR5Mq.cjs.js.map → tabs-C4EfvdVt.cjs.js.map} +1 -1
  247. package/dist/chunks/{tabs-B7qKxKnI.es.js → tabs-CgoUJCIx.es.js} +13 -13
  248. package/dist/chunks/{tabs-B7qKxKnI.es.js.map → tabs-CgoUJCIx.es.js.map} +1 -1
  249. package/dist/chunks/{tag-group-BkoC3DAk.cjs.js → tag-group-Bu4IPJY2.cjs.js} +2 -2
  250. package/dist/chunks/{tag-group-BkoC3DAk.cjs.js.map → tag-group-Bu4IPJY2.cjs.js.map} +1 -1
  251. package/dist/chunks/{tag-group-7rUsjnet.es.js → tag-group-DauMcIZX.es.js} +19 -19
  252. package/dist/chunks/{tag-group-7rUsjnet.es.js.map → tag-group-DauMcIZX.es.js.map} +1 -1
  253. package/dist/chunks/{text-DvqDjbwb.es.js → text-CIb_VDvO.es.js} +2 -2
  254. package/dist/chunks/{text-DvqDjbwb.es.js.map → text-CIb_VDvO.es.js.map} +1 -1
  255. package/dist/chunks/{text-input-D_3g3kxm.es.js → text-input-BpdFm4J-.es.js} +7 -7
  256. package/dist/chunks/{text-input-D_3g3kxm.es.js.map → text-input-BpdFm4J-.es.js.map} +1 -1
  257. package/dist/chunks/{text-input-Dv2HkOIG.cjs.js → text-input-YkL8bx31.cjs.js} +2 -2
  258. package/dist/chunks/{text-input-Dv2HkOIG.cjs.js.map → text-input-YkL8bx31.cjs.js.map} +1 -1
  259. package/dist/chunks/{text-input-field-DWpejDcH.es.js → text-input-field-B0WhjD0U.es.js} +3 -3
  260. package/dist/chunks/{text-input-field-DWpejDcH.es.js.map → text-input-field-B0WhjD0U.es.js.map} +1 -1
  261. package/dist/chunks/{text-input-field-vYxpIFXm.cjs.js → text-input-field-CPLVnqlr.cjs.js} +2 -2
  262. package/dist/chunks/{text-input-field-vYxpIFXm.cjs.js.map → text-input-field-CPLVnqlr.cjs.js.map} +1 -1
  263. package/dist/chunks/{time-input-CZWkAErU.es.js → time-input-DMyhDH5j.es.js} +4 -4
  264. package/dist/chunks/{time-input-CZWkAErU.es.js.map → time-input-DMyhDH5j.es.js.map} +1 -1
  265. package/dist/chunks/{time-input-CMAP5QkL.cjs.js → time-input-m8zeR_8L.cjs.js} +2 -2
  266. package/dist/chunks/{time-input-CMAP5QkL.cjs.js.map → time-input-m8zeR_8L.cjs.js.map} +1 -1
  267. package/dist/chunks/{toggle-button-QMUjECJO.es.js → toggle-button-B2uXtvzj.es.js} +4 -4
  268. package/dist/chunks/{toggle-button-QMUjECJO.es.js.map → toggle-button-B2uXtvzj.es.js.map} +1 -1
  269. package/dist/chunks/{toggle-button-BnDf2yfy.cjs.js → toggle-button-CHZm868U.cjs.js} +2 -2
  270. package/dist/chunks/{toggle-button-BnDf2yfy.cjs.js.map → toggle-button-CHZm868U.cjs.js.map} +1 -1
  271. package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js → toggle-button-group-BWpmMkEz.es.js} +2 -2
  272. package/dist/chunks/{toggle-button-group-P0oS-q6h.es.js.map → toggle-button-group-BWpmMkEz.es.js.map} +1 -1
  273. package/dist/chunks/{toolbar-Bg2OUmFi.cjs.js → toolbar-BAETJxml.cjs.js} +2 -2
  274. package/dist/chunks/{toolbar-Bg2OUmFi.cjs.js.map → toolbar-BAETJxml.cjs.js.map} +1 -1
  275. package/dist/chunks/{toolbar-C3GiZF_9.es.js → toolbar-BnS73QeG.es.js} +6 -6
  276. package/dist/chunks/{toolbar-C3GiZF_9.es.js.map → toolbar-BnS73QeG.es.js.map} +1 -1
  277. package/dist/chunks/{tooltip-CzEuq_Qi.es.js → tooltip-D3QrrizN.es.js} +7 -7
  278. package/dist/chunks/{tooltip-CzEuq_Qi.es.js.map → tooltip-D3QrrizN.es.js.map} +1 -1
  279. package/dist/chunks/{useButton-B2TbwHSy.es.js → useButton-CiPiehgC.es.js} +4 -4
  280. package/dist/chunks/{useButton-B2TbwHSy.es.js.map → useButton-CiPiehgC.es.js.map} +1 -1
  281. package/dist/chunks/{useDateFormatter-CO08GpLe.es.js → useDateFormatter-886GJ5w1.es.js} +2 -2
  282. package/dist/chunks/{useDateFormatter-CO08GpLe.es.js.map → useDateFormatter-886GJ5w1.es.js.map} +1 -1
  283. package/dist/chunks/{useDisclosureState-BqxwXawT.es.js → useDisclosureState-CWZTR2xM.es.js} +3 -3
  284. package/dist/chunks/{useDisclosureState-BqxwXawT.es.js.map → useDisclosureState-CWZTR2xM.es.js.map} +1 -1
  285. package/dist/chunks/{useEvent-D8bTsAyx.es.js → useEvent-CRo5BZDX.es.js} +6 -6
  286. package/dist/chunks/{useEvent-D8bTsAyx.es.js.map → useEvent-CRo5BZDX.es.js.map} +1 -1
  287. package/dist/chunks/{useField-BfW84CS4.es.js → useField-CHrpmkxe.es.js} +8 -8
  288. package/dist/chunks/{useField-BfW84CS4.es.js.map → useField-CHrpmkxe.es.js.map} +1 -1
  289. package/dist/chunks/{useFocus-TCNvrvTC.es.js → useFocus-CrgTusM3.es.js} +6 -6
  290. package/dist/chunks/{useFocus-TCNvrvTC.es.js.map → useFocus-CrgTusM3.es.js.map} +1 -1
  291. package/dist/chunks/{useFocusRing-oMAqzr3e.es.js → useFocusRing-FPt2Rwil.es.js} +4 -4
  292. package/dist/chunks/{useFocusRing-oMAqzr3e.es.js.map → useFocusRing-FPt2Rwil.es.js.map} +1 -1
  293. package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js → useFocusVisible-B3HmFL2Q.es.js} +6 -6
  294. package/dist/chunks/{useFocusVisible-Uw6yFmFY.es.js.map → useFocusVisible-B3HmFL2Q.es.js.map} +1 -1
  295. package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js → useFocusWithin-EFOG-Jn1.es.js} +6 -6
  296. package/dist/chunks/{useFocusWithin-nAsP7Ru3.es.js.map → useFocusWithin-EFOG-Jn1.es.js.map} +1 -1
  297. package/dist/chunks/{useFocusable-Bm-DQaak.es.js → useFocusable-Cs6i58WP.es.js} +5 -5
  298. package/dist/chunks/{useFocusable-Bm-DQaak.es.js.map → useFocusable-Cs6i58WP.es.js.map} +1 -1
  299. package/dist/chunks/{useFormReset-C52dSDoe.es.js → useFormReset-BGuIA_u2.es.js} +2 -2
  300. package/dist/chunks/{useFormReset-C52dSDoe.es.js.map → useFormReset-BGuIA_u2.es.js.map} +1 -1
  301. package/dist/chunks/{useFormValidation-DxDV9X1M.es.js → useFormValidation-BCVLtR0U.es.js} +3 -3
  302. package/dist/chunks/{useFormValidation-DxDV9X1M.es.js.map → useFormValidation-BCVLtR0U.es.js.map} +1 -1
  303. package/dist/chunks/{useGridListItem-DTjO497o.es.js → useGridListItem-CjGTTOtc.es.js} +10 -10
  304. package/dist/chunks/{useGridListItem-DTjO497o.es.js.map → useGridListItem-CjGTTOtc.es.js.map} +1 -1
  305. package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js → useHasTabbableChild-DXq72IE3.es.js} +3 -3
  306. package/dist/chunks/{useHasTabbableChild-DemFbZRn.es.js.map → useHasTabbableChild-DXq72IE3.es.js.map} +1 -1
  307. package/dist/chunks/{useHover-BtRK9g2L.es.js → useHover-BQRSM3qT.es.js} +2 -2
  308. package/dist/chunks/{useHover-BtRK9g2L.es.js.map → useHover-BQRSM3qT.es.js.map} +1 -1
  309. package/dist/chunks/{useLabel-DfbcmKTa.es.js → useLabel-DQaRD22u.es.js} +5 -5
  310. package/dist/chunks/{useLabel-DfbcmKTa.es.js.map → useLabel-DQaRD22u.es.js.map} +1 -1
  311. package/dist/chunks/{useLabels-Gn8v9XZB.es.js → useLabels-BDqWMehi.es.js} +2 -2
  312. package/dist/chunks/{useLabels-Gn8v9XZB.es.js.map → useLabels-BDqWMehi.es.js.map} +1 -1
  313. package/dist/chunks/{useListState-D9k6HiWm.es.js → useListState-CRfmjiWx.es.js} +2 -2
  314. package/dist/chunks/{useListState-D9k6HiWm.es.js.map → useListState-CRfmjiWx.es.js.map} +1 -1
  315. package/dist/chunks/{usePress-C_IPaF8I.es.js → usePress-BuLomD_X.es.js} +6 -6
  316. package/dist/chunks/{usePress-C_IPaF8I.es.js.map → usePress-BuLomD_X.es.js.map} +1 -1
  317. package/dist/chunks/{useProgressBar-DCj794Zv.es.js → useProgressBar--OvVKto2.es.js} +7 -7
  318. package/dist/chunks/{useProgressBar-DCj794Zv.es.js.map → useProgressBar--OvVKto2.es.js.map} +1 -1
  319. package/dist/chunks/{useSingleSelectListState-C_tE7a5E.es.js → useSingleSelectListState-DFR33TSw.es.js} +2 -2
  320. package/dist/chunks/{useSingleSelectListState-C_tE7a5E.es.js.map → useSingleSelectListState-DFR33TSw.es.js.map} +1 -1
  321. package/dist/chunks/{useSpinButton-BiQ20B5n.es.js → useSpinButton-YcV6vlPf.es.js} +15 -15
  322. package/dist/chunks/{useSpinButton-BiQ20B5n.es.js.map → useSpinButton-YcV6vlPf.es.js.map} +1 -1
  323. package/dist/chunks/{useSyncRef-DmY05o2G.es.js → useSyncRef-BpLviItW.es.js} +2 -2
  324. package/dist/chunks/{useSyncRef-DmY05o2G.es.js.map → useSyncRef-BpLviItW.es.js.map} +1 -1
  325. package/dist/chunks/{useTextField-9WuJfc9u.es.js → useTextField-yuaT8-G4.es.js} +7 -7
  326. package/dist/chunks/{useTextField-9WuJfc9u.es.js.map → useTextField-yuaT8-G4.es.js.map} +1 -1
  327. package/dist/chunks/{useToggle-BZPMewLP.es.js → useToggle-DKP3zVOY.es.js} +5 -5
  328. package/dist/chunks/{useToggle-BZPMewLP.es.js.map → useToggle-DKP3zVOY.es.js.map} +1 -1
  329. package/dist/chunks/{useToolbar-C673xD3E.es.js → useToolbar-CbJkugif.es.js} +3 -3
  330. package/dist/chunks/{useToolbar-C673xD3E.es.js.map → useToolbar-CbJkugif.es.js.map} +1 -1
  331. package/dist/chunks/{utils-9vu7GUaz.es.js → utils-B6pV5ewr.es.js} +12 -12
  332. package/dist/chunks/{utils-9vu7GUaz.es.js.map → utils-B6pV5ewr.es.js.map} +1 -1
  333. package/dist/chunks/{utils-Bl-3nKLa.es.js → utils-oAGBWzI5.es.js} +14 -14
  334. package/dist/chunks/{utils-Bl-3nKLa.es.js.map → utils-oAGBWzI5.es.js.map} +1 -1
  335. package/dist/chunks/{visually-hidden-m5QY9YV7.es.js → visually-hidden-Dj5CT-u_.es.js} +2 -2
  336. package/dist/chunks/{visually-hidden-m5QY9YV7.es.js.map → visually-hidden-Dj5CT-u_.es.js.map} +1 -1
  337. package/dist/components/accordion/accordion.recipe.d.ts +1 -1
  338. package/dist/components/accordion/accordion.slots.d.ts +5 -5
  339. package/dist/components/accordion.cjs +1 -1
  340. package/dist/components/accordion.es.js +2 -2
  341. package/dist/components/alert/alert.recipe.d.ts +1 -1
  342. package/dist/components/alert/alert.slots.d.ts +3 -3
  343. package/dist/components/alert.cjs +1 -1
  344. package/dist/components/alert.es.js +1 -1
  345. package/dist/components/avatar/avatar.slots.d.ts +1 -1
  346. package/dist/components/badge/badge.slots.d.ts +1 -1
  347. package/dist/components/badge.es.js +1 -1
  348. package/dist/components/button.cjs +1 -1
  349. package/dist/components/button.es.js +1 -1
  350. package/dist/components/calendar/calendar.slots.d.ts +8 -8
  351. package/dist/components/calendar.cjs +1 -1
  352. package/dist/components/calendar.es.js +1 -1
  353. package/dist/components/card.cjs +1 -1
  354. package/dist/components/card.es.js +1 -1
  355. package/dist/components/checkbox.cjs +1 -1
  356. package/dist/components/checkbox.es.js +1 -1
  357. package/dist/components/collapsible-motion/collapsible-motion.slots.d.ts +2 -2
  358. package/dist/components/collapsible-motion.cjs +1 -1
  359. package/dist/components/collapsible-motion.es.js +1 -1
  360. package/dist/components/combobox/combobox.recipe.d.ts +1 -1
  361. package/dist/components/combobox/combobox.slots.d.ts +9 -9
  362. package/dist/components/combobox.cjs +1 -1
  363. package/dist/components/combobox.es.js +1 -1
  364. package/dist/components/components.cjs +1 -1
  365. package/dist/components/components.es.js +1 -1
  366. package/dist/components/data-table/data-table.d.ts +3 -3
  367. package/dist/components/data-table/data-table.slots.d.ts +12 -12
  368. package/dist/components/data-table.cjs +1 -1
  369. package/dist/components/data-table.es.js +1 -1
  370. package/dist/components/date-input/date-input.slots.d.ts +5 -5
  371. package/dist/components/date-input.cjs +1 -1
  372. package/dist/components/date-input.es.js +1 -1
  373. package/dist/components/date-picker/date-picker.recipe.d.ts +1 -1
  374. package/dist/components/date-picker/date-picker.slots.d.ts +6 -6
  375. package/dist/components/date-picker.cjs +1 -1
  376. package/dist/components/date-picker.es.js +1 -1
  377. package/dist/components/date-range-picker/date-range-picker.recipe.d.ts +1 -1
  378. package/dist/components/date-range-picker/date-range-picker.slots.d.ts +8 -8
  379. package/dist/components/date-range-picker-field.cjs +1 -1
  380. package/dist/components/date-range-picker-field.es.js +1 -1
  381. package/dist/components/date-range-picker.cjs +1 -1
  382. package/dist/components/date-range-picker.es.js +1 -1
  383. package/dist/components/dialog/dialog.slots.d.ts +9 -9
  384. package/dist/components/dialog.cjs +1 -1
  385. package/dist/components/dialog.es.js +1 -1
  386. package/dist/components/draggable-list/draggable-list.slots.d.ts +4 -4
  387. package/dist/components/draggable-list.cjs +1 -1
  388. package/dist/components/draggable-list.es.js +1 -1
  389. package/dist/components/drawer/drawer.slots.d.ts +10 -10
  390. package/dist/components/drawer.cjs +1 -1
  391. package/dist/components/drawer.es.js +1 -1
  392. package/dist/components/fields.cjs +1 -1
  393. package/dist/components/fields.es.js +7 -7
  394. package/dist/components/form-field/form-field.recipe.d.ts +1 -1
  395. package/dist/components/form-field/form-field.slots.d.ts +2 -2
  396. package/dist/components/form-field.cjs +1 -1
  397. package/dist/components/form-field.es.js +1 -1
  398. package/dist/components/group.es.js +1 -1
  399. package/dist/components/heading.es.js +1 -1
  400. package/dist/components/icon-button.cjs +1 -1
  401. package/dist/components/icon-button.es.js +1 -1
  402. package/dist/components/icon-toggle-button.cjs +1 -1
  403. package/dist/components/icon-toggle-button.es.js +1 -1
  404. package/dist/components/inline-svg/inline-svg.slots.d.ts +1 -1
  405. package/dist/components/kbd.es.js +1 -1
  406. package/dist/components/link/link.slots.d.ts +1 -1
  407. package/dist/components/link.es.js +1 -1
  408. package/dist/components/loading-spinner/loading-spinner.slots.d.ts +1 -1
  409. package/dist/components/loading-spinner.es.js +1 -1
  410. package/dist/components/localized-field/localized-field.slots.d.ts +10 -10
  411. package/dist/components/localized-field.cjs +1 -1
  412. package/dist/components/localized-field.es.js +1 -1
  413. package/dist/components/menu/menu.recipe.d.ts +1 -1
  414. package/dist/components/money-input/money-input.slots.d.ts +6 -6
  415. package/dist/components/money-input-field.cjs +1 -1
  416. package/dist/components/money-input-field.es.js +1 -1
  417. package/dist/components/money-input.cjs +1 -1
  418. package/dist/components/money-input.es.js +1 -1
  419. package/dist/components/multiline-text-input/multiline-text-input.slots.d.ts +3 -3
  420. package/dist/components/multiline-text-input-field.cjs +1 -1
  421. package/dist/components/multiline-text-input-field.es.js +1 -1
  422. package/dist/components/multiline-text-input.cjs +1 -1
  423. package/dist/components/multiline-text-input.es.js +1 -1
  424. package/dist/components/nimbus-provider.cjs +1 -1
  425. package/dist/components/nimbus-provider.es.js +1 -1
  426. package/dist/components/number-input/number-input.slots.d.ts +6 -6
  427. package/dist/components/number-input-field.cjs +1 -1
  428. package/dist/components/number-input-field.es.js +1 -1
  429. package/dist/components/number-input.cjs +1 -1
  430. package/dist/components/number-input.es.js +1 -1
  431. package/dist/components/pagination.cjs +1 -1
  432. package/dist/components/pagination.es.js +1 -1
  433. package/dist/components/password-input-field.cjs +1 -1
  434. package/dist/components/password-input-field.es.js +1 -1
  435. package/dist/components/password-input.cjs +1 -1
  436. package/dist/components/password-input.es.js +1 -1
  437. package/dist/components/patterns.cjs +1 -1
  438. package/dist/components/patterns.es.js +7 -7
  439. package/dist/components/popover.es.js +1 -1
  440. package/dist/components/progress-bar/progress-bar.slots.d.ts +4 -4
  441. package/dist/components/progress-bar.cjs +1 -1
  442. package/dist/components/progress-bar.es.js +1 -1
  443. package/dist/components/radio-input/radio-input.slots.d.ts +2 -2
  444. package/dist/components/radio-input.cjs +1 -1
  445. package/dist/components/radio-input.es.js +1 -1
  446. package/dist/components/range-calendar/range-calendar.slots.d.ts +8 -8
  447. package/dist/components/range-calendar.cjs +1 -1
  448. package/dist/components/range-calendar.es.js +1 -1
  449. package/dist/components/rich-text-input/rich-text-input.slots.d.ts +2 -2
  450. package/dist/components/rich-text-input.cjs +1 -1
  451. package/dist/components/rich-text-input.es.js +1 -1
  452. package/dist/components/scoped-search-input.cjs +1 -1
  453. package/dist/components/scoped-search-input.es.js +1 -1
  454. package/dist/components/search-input-field.cjs +1 -1
  455. package/dist/components/search-input-field.es.js +1 -1
  456. package/dist/components/search-input.cjs +1 -1
  457. package/dist/components/search-input.es.js +1 -1
  458. package/dist/components/select/select.slots.d.ts +7 -7
  459. package/dist/components/select.cjs +1 -1
  460. package/dist/components/select.es.js +1 -1
  461. package/dist/components/separator.cjs +1 -1
  462. package/dist/components/separator.es.js +1 -1
  463. package/dist/components/split-button/split-button.slots.d.ts +3 -3
  464. package/dist/components/split-button.cjs +1 -1
  465. package/dist/components/split-button.es.js +1 -1
  466. package/dist/components/switch/switch.slots.d.ts +3 -3
  467. package/dist/components/switch.cjs +1 -1
  468. package/dist/components/switch.es.js +1 -1
  469. package/dist/components/tabs/tabs.recipe.d.ts +1 -1
  470. package/dist/components/tabs/tabs.slots.d.ts +3 -3
  471. package/dist/components/tabs.cjs +1 -1
  472. package/dist/components/tabs.es.js +1 -1
  473. package/dist/components/tag-group.cjs +1 -1
  474. package/dist/components/tag-group.es.js +1 -1
  475. package/dist/components/text-input-field.cjs +1 -1
  476. package/dist/components/text-input-field.es.js +1 -1
  477. package/dist/components/text-input.cjs +1 -1
  478. package/dist/components/text-input.es.js +1 -1
  479. package/dist/components/text.es.js +1 -1
  480. package/dist/components/time-input/time-input.slots.d.ts +5 -5
  481. package/dist/components/time-input.cjs +1 -1
  482. package/dist/components/time-input.es.js +1 -1
  483. package/dist/components/toggle-button-group.es.js +1 -1
  484. package/dist/components/toggle-button.cjs +1 -1
  485. package/dist/components/toggle-button.es.js +1 -1
  486. package/dist/components/toolbar.cjs +1 -1
  487. package/dist/components/toolbar.es.js +1 -1
  488. package/dist/components/tooltip.es.js +2 -2
  489. package/dist/components/visually-hidden.es.js +1 -1
  490. package/dist/index.cjs +1 -1
  491. package/dist/index.es.js +64 -64
  492. package/dist/theme/slot-recipes/index.d.ts +8 -8
  493. package/package.json +5 -5
  494. package/dist/chunks/accordion.content-Bd2PESBz.cjs.js +0 -2
  495. package/dist/chunks/badge-DUiqk6w9.es.js +0 -17
  496. package/dist/chunks/index-CmfW40Im.es.js.map +0 -1
  497. package/dist/chunks/index-DIQn6o2R.cjs.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { $ as a } from "./utils-9vu7GUaz.es.js";
2
+ import { $ as a } from "./utils-B6pV5ewr.es.js";
3
3
  import { $ as p } from "./Keyboard-Clnp4zAC.es.js";
4
4
  import { createRecipeContext as $, mergeRefs as d } from "@chakra-ui/react";
5
5
  import "@chakra-ui/react/kbd";
@@ -12,4 +12,4 @@ const { withContext: n } = /* @__PURE__ */ $({ key: "kbd" }), b = /* @__PURE__ *
12
12
  export {
13
13
  g as K
14
14
  };
15
- //# sourceMappingURL=kbd-B11Qoo4k.es.js.map
15
+ //# sourceMappingURL=kbd-Bl5Ncm2d.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kbd-B11Qoo4k.es.js","sources":["../../src/components/kbd/kbd.slots.ts","../../src/components/kbd/kbd.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the svg element.\n */\ntype KbdRecipeProps = RecipeProps<\"kbd\"> & UnstyledProp;\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport type KbdRootSlotProps = HTMLChakraProps<\"kbd\", KbdRecipeProps>;\n\nconst { withContext } = createRecipeContext({ key: \"kbd\" });\n\n/**\n * Root component that provides the styling context for the Icon component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const KbdRootSlot: SlotComponent<HTMLElement, KbdRootSlotProps> =\n withContext<HTMLElement, KbdRootSlotProps>(\"kbd\");\n","import { KeyboardContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { type KbdProps as ChakraKbdProps } from \"@chakra-ui/react/kbd\";\nimport { useRef } from \"react\";\nimport type React from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { KbdRootSlot } from \"./kbd.slots\";\n\nexport type KbdProps = Omit<ChakraKbdProps, \"slot\"> & {\n ref?: React.Ref<HTMLElement>;\n slot?: string | null | undefined;\n};\n\n/**\n * # Kbd\n *\n * Renders a keyboard shortcut or key combination, styled for visual clarity.\n * Typically used to visually represent keyboard keys.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/kbd}\n */\nexport const Kbd = ({ ref: forwardedRef, slot, ...props }: KbdProps) => {\n const localRef = useRef<HTMLElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [rest] = useContextProps(props, ref, KeyboardContext);\n\n return <KbdRootSlot ref={ref} slot={slot || undefined} {...rest} />;\n};\n"],"names":["withContext","createRecipeContext","KbdRootSlot","Kbd","forwardedRef","slot","props","localRef","useRef","ref","useObjectRef","mergeRefs","rest","useContextProps","KeyboardContext"],"mappings":";;;;;;;AAqBA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,OAAO,GAM7CC,IACX,gBAAAF,EAA2C,KAAK,GCPrCG,IAAM,CAAC,EAAE,KAAKC,GAAc,MAAAC,GAAM,GAAGC,QAAsB;AACtE,QAAMC,IAAWC,EAAoB,IAAI,GACnCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC,GACpD,CAACQ,CAAI,IAAIC,EAAgBP,GAAOG,GAAKK,CAAe;AAE1D,2BAAQZ,GAAA,EAAY,KAAAO,GAAU,MAAMJ,KAAQ,QAAY,GAAGO,GAAM;AACnE;"}
1
+ {"version":3,"file":"kbd-Bl5Ncm2d.es.js","sources":["../../src/components/kbd/kbd.slots.ts","../../src/components/kbd/kbd.tsx"],"sourcesContent":["import {\n type HTMLChakraProps,\n type RecipeProps,\n type UnstyledProp,\n createRecipeContext,\n} from \"@chakra-ui/react\";\nimport type { SlotComponent } from \"@/type-utils\";\n\n/**\n * Base recipe props interface that combines Chakra UI's recipe props\n * with the unstyled prop option for the svg element.\n */\ntype KbdRecipeProps = RecipeProps<\"kbd\"> & UnstyledProp;\n\n/**\n * Root props interface that extends Chakra's HTML props with our recipe props.\n * This creates a complete set of props for the root element, combining\n * HTML attributes, Chakra's styling system, and our custom recipe props.\n */\nexport type KbdRootSlotProps = HTMLChakraProps<\"kbd\", KbdRecipeProps>;\n\nconst { withContext } = createRecipeContext({ key: \"kbd\" });\n\n/**\n * Root component that provides the styling context for the Icon component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const KbdRootSlot: SlotComponent<HTMLElement, KbdRootSlotProps> =\n withContext<HTMLElement, KbdRootSlotProps>(\"kbd\");\n","import { KeyboardContext, useContextProps } from \"react-aria-components\";\nimport { mergeRefs } from \"@chakra-ui/react\";\nimport { type KbdProps as ChakraKbdProps } from \"@chakra-ui/react/kbd\";\nimport { useRef } from \"react\";\nimport type React from \"react\";\nimport { useObjectRef } from \"react-aria\";\nimport { KbdRootSlot } from \"./kbd.slots\";\n\nexport type KbdProps = Omit<ChakraKbdProps, \"slot\"> & {\n ref?: React.Ref<HTMLElement>;\n slot?: string | null | undefined;\n};\n\n/**\n * # Kbd\n *\n * Renders a keyboard shortcut or key combination, styled for visual clarity.\n * Typically used to visually represent keyboard keys.\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/typography/kbd}\n */\nexport const Kbd = ({ ref: forwardedRef, slot, ...props }: KbdProps) => {\n const localRef = useRef<HTMLElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n const [rest] = useContextProps(props, ref, KeyboardContext);\n\n return <KbdRootSlot ref={ref} slot={slot || undefined} {...rest} />;\n};\n"],"names":["withContext","createRecipeContext","KbdRootSlot","Kbd","forwardedRef","slot","props","localRef","useRef","ref","useObjectRef","mergeRefs","rest","useContextProps","KeyboardContext"],"mappings":";;;;;;;AAqBA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,OAAO,GAM7CC,IACX,gBAAAF,EAA2C,KAAK,GCPrCG,IAAM,CAAC,EAAE,KAAKC,GAAc,MAAAC,GAAM,GAAGC,QAAsB;AACtE,QAAMC,IAAWC,EAAoB,IAAI,GACnCC,IAAMC,EAAaC,EAAUJ,GAAUH,CAAY,CAAC,GACpD,CAACQ,CAAI,IAAIC,EAAgBP,GAAOG,GAAKK,CAAe;AAE1D,2BAAQZ,GAAA,EAAY,KAAAO,GAAU,MAAMJ,KAAQ,QAAY,GAAGO,GAAM;AACnE;"}
@@ -2,11 +2,11 @@ import { jsx as C } from "react/jsx-runtime";
2
2
  import { useRef as R } from "react";
3
3
  import { createRecipeContext as h, mergeRefs as y } from "@chakra-ui/react";
4
4
  import { $ as L } from "./useObjectRef-CaJ5pgjX.es.js";
5
- import { a as b } from "./mergeProps-D1jjFfMs.es.js";
5
+ import { $ } from "./mergeProps-Dsl8k3Ig.es.js";
6
6
  import { $ as v } from "./filterDOMProps-BSVCO5jK.es.js";
7
7
  import { a as D, b as E, c as S } from "./openLink-BNz58j4a.es.js";
8
- import { $ as T } from "./usePress-C_IPaF8I.es.js";
9
- import { $ as w } from "./useFocusable-Bm-DQaak.es.js";
8
+ import { $ as T } from "./usePress-BuLomD_X.es.js";
9
+ import { $ as w } from "./useFocusable-Cs6i58WP.es.js";
10
10
  function _(e, o) {
11
11
  let { elementType: s = "a", onPress: n, onPressStart: i, onPressEnd: t, onClick: c, isDisabled: r, ...d } = e, a = {};
12
12
  s !== "a" && (a = {
@@ -22,27 +22,27 @@ function _(e, o) {
22
22
  ref: o
23
23
  }), P = v(d, {
24
24
  labelable: !0
25
- }), k = b(p, l), u = D(), x = E(e);
25
+ }), k = $(p, l), u = D(), x = E(e);
26
26
  return {
27
27
  isPressed: m,
28
- linkProps: b(P, x, {
28
+ linkProps: $(P, x, {
29
29
  ...k,
30
30
  ...a,
31
31
  "aria-disabled": r || void 0,
32
32
  "aria-current": e["aria-current"],
33
- onClick: ($) => {
33
+ onClick: (b) => {
34
34
  var f;
35
- (f = l.onClick) === null || f === void 0 || f.call(l, $), S($, u, e.href, e.routerOptions);
35
+ (f = l.onClick) === null || f === void 0 || f.call(l, b), S(b, u, e.href, e.routerOptions);
36
36
  }
37
37
  })
38
38
  };
39
39
  }
40
40
  const { withContext: g } = /* @__PURE__ */ h({ key: "link" }), j = /* @__PURE__ */ g("a"), H = (e) => {
41
41
  const { as: o, asChild: s, children: n, ref: i, ...t } = e, c = R(null), r = L(y(c, i)), d = o || (s ? "span" : "a"), { linkProps: a } = _({ ...t, elementType: d }, r);
42
- return /* @__PURE__ */ C(j, { ...b(t, a, { as: o, asChild: s, ref: r }), children: n });
42
+ return /* @__PURE__ */ C(j, { ...$(t, a, { as: o, asChild: s, ref: r }), children: n });
43
43
  };
44
44
  H.displayName = "Link";
45
45
  export {
46
46
  H as L
47
47
  };
48
- //# sourceMappingURL=link-Db65JZE6.es.js.map
48
+ //# sourceMappingURL=link-BMUyXcmC.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"link-Db65JZE6.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+link@3.8.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/link/dist/useLink.mjs","../../src/components/link/link.slots.tsx","../../src/components/link/link.tsx"],"sourcesContent":["import {filterDOMProps as $5Ot33$filterDOMProps, mergeProps as $5Ot33$mergeProps, useRouter as $5Ot33$useRouter, useLinkProps as $5Ot33$useLinkProps, handleLinkClick as $5Ot33$handleLinkClick} from \"@react-aria/utils\";\nimport {useFocusable as $5Ot33$useFocusable, usePress as $5Ot33$usePress} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {\n let { elementType: elementType = 'a', onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onClick: onClick, isDisabled: isDisabled, ...otherProps } = props;\n let linkProps = {};\n if (elementType !== 'a') linkProps = {\n role: 'link',\n tabIndex: !isDisabled ? 0 : undefined\n };\n let { focusableProps: focusableProps } = (0, $5Ot33$useFocusable)(props, ref);\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5Ot33$usePress)({\n onPress: onPress,\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onClick: onClick,\n isDisabled: isDisabled,\n ref: ref\n });\n let domProps = (0, $5Ot33$filterDOMProps)(otherProps, {\n labelable: true\n });\n let interactionHandlers = (0, $5Ot33$mergeProps)(focusableProps, pressProps);\n let router = (0, $5Ot33$useRouter)();\n let routerLinkProps = (0, $5Ot33$useLinkProps)(props);\n return {\n isPressed: isPressed,\n linkProps: (0, $5Ot33$mergeProps)(domProps, routerLinkProps, {\n ...interactionHandlers,\n ...linkProps,\n 'aria-disabled': isDisabled || undefined,\n 'aria-current': props['aria-current'],\n onClick: (e)=>{\n var _pressProps_onClick;\n (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);\n (0, $5Ot33$handleLinkClick)(e, router, props.href, props.routerOptions);\n }\n })\n };\n}\n\n\nexport {$298d61e98472621b$export$dcf14c9974fe2767 as useLink};\n//# sourceMappingURL=useLink.module.js.map\n","import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { LinkRootSlotProps } from \"./link.types\";\n\nconst { withContext } = createRecipeContext({ key: \"link\" });\n\n/**\n * Root component that provides the styling context for the Link component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const LinkRoot = withContext<HTMLAnchorElement, LinkRootSlotProps>(\"a\");\n","import { useRef } from \"react\";\nimport { LinkRoot } from \"./link.slots\";\nimport type { LinkProps } from \"./link.types\";\nimport { useLink, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\n\n/**\n * # Link\n *\n * To allow a user to navigate to a different page or resource\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/navigation/link}\n */\nexport const Link = (props: LinkProps) => {\n const { as, asChild, children, ref: forwardedRef, ...rest } = props;\n\n const localRef = useRef<HTMLAnchorElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = (as as string) || (asChild ? \"span\" : \"a\") || \"a\";\n const { linkProps } = useLink({ ...rest, elementType }, ref);\n\n return (\n <LinkRoot {...mergeProps(rest, linkProps, { as, asChild, ref })}>\n {children}\n </LinkRoot>\n );\n};\n\nLink.displayName = \"Link\";\n"],"names":["$298d61e98472621b$export$dcf14c9974fe2767","props","ref","elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled","otherProps","linkProps","focusableProps","$5Ot33$useFocusable","pressProps","isPressed","$5Ot33$usePress","domProps","$5Ot33$filterDOMProps","interactionHandlers","$5Ot33$mergeProps","router","$5Ot33$useRouter","routerLinkProps","$5Ot33$useLinkProps","e","_pressProps_onClick","$5Ot33$handleLinkClick","withContext","createRecipeContext","LinkRoot","Link","as","asChild","children","forwardedRef","rest","localRef","useRef","useObjectRef","mergeRefs","useLink","jsx","mergeProps"],"mappings":";;;;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E,IAAA8B,GAAI,SAAAC,GAAS,UAAAC,GAAU,KAAKC,GAAc,GAAGC,MAASlC,GAExDmC,IAAWC,EAA0B,IAAI,GACzCnC,IAAMoC,EAAaC,EAAUH,GAAUF,CAAY,CAAC,GAEpD/B,IAAe4B,MAAkBC,IAAU,SAAS,MACpD,EAAE,WAAAtB,MAAc8B,EAAQ,EAAE,GAAGL,GAAM,aAAAhC,EAAA,GAAeD,CAAG;AAE3D,SACE,gBAAAuC,EAACZ,GAAA,EAAU,GAAGa,EAAWP,GAAMzB,GAAW,EAAE,IAAAqB,GAAI,SAAAC,GAAS,KAAA9B,GAAK,GAC3D,UAAA+B,EAAA,CACH;AAEJ;AAEAH,EAAK,cAAc;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"link-BMUyXcmC.es.js","sources":["../../../../node_modules/.pnpm/@react-aria+link@3.8.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@react-aria/link/dist/useLink.mjs","../../src/components/link/link.slots.tsx","../../src/components/link/link.tsx"],"sourcesContent":["import {filterDOMProps as $5Ot33$filterDOMProps, mergeProps as $5Ot33$mergeProps, useRouter as $5Ot33$useRouter, useLinkProps as $5Ot33$useLinkProps, handleLinkClick as $5Ot33$handleLinkClick} from \"@react-aria/utils\";\nimport {useFocusable as $5Ot33$useFocusable, usePress as $5Ot33$usePress} from \"@react-aria/interactions\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {\n let { elementType: elementType = 'a', onPress: onPress, onPressStart: onPressStart, onPressEnd: onPressEnd, onClick: onClick, isDisabled: isDisabled, ...otherProps } = props;\n let linkProps = {};\n if (elementType !== 'a') linkProps = {\n role: 'link',\n tabIndex: !isDisabled ? 0 : undefined\n };\n let { focusableProps: focusableProps } = (0, $5Ot33$useFocusable)(props, ref);\n let { pressProps: pressProps, isPressed: isPressed } = (0, $5Ot33$usePress)({\n onPress: onPress,\n onPressStart: onPressStart,\n onPressEnd: onPressEnd,\n onClick: onClick,\n isDisabled: isDisabled,\n ref: ref\n });\n let domProps = (0, $5Ot33$filterDOMProps)(otherProps, {\n labelable: true\n });\n let interactionHandlers = (0, $5Ot33$mergeProps)(focusableProps, pressProps);\n let router = (0, $5Ot33$useRouter)();\n let routerLinkProps = (0, $5Ot33$useLinkProps)(props);\n return {\n isPressed: isPressed,\n linkProps: (0, $5Ot33$mergeProps)(domProps, routerLinkProps, {\n ...interactionHandlers,\n ...linkProps,\n 'aria-disabled': isDisabled || undefined,\n 'aria-current': props['aria-current'],\n onClick: (e)=>{\n var _pressProps_onClick;\n (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);\n (0, $5Ot33$handleLinkClick)(e, router, props.href, props.routerOptions);\n }\n })\n };\n}\n\n\nexport {$298d61e98472621b$export$dcf14c9974fe2767 as useLink};\n//# sourceMappingURL=useLink.module.js.map\n","import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { LinkRootSlotProps } from \"./link.types\";\n\nconst { withContext } = createRecipeContext({ key: \"link\" });\n\n/**\n * Root component that provides the styling context for the Link component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const LinkRoot = withContext<HTMLAnchorElement, LinkRootSlotProps>(\"a\");\n","import { useRef } from \"react\";\nimport { LinkRoot } from \"./link.slots\";\nimport type { LinkProps } from \"./link.types\";\nimport { useLink, useObjectRef, mergeProps } from \"react-aria\";\nimport { mergeRefs } from \"@chakra-ui/react\";\n\n/**\n * # Link\n *\n * To allow a user to navigate to a different page or resource\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/navigation/link}\n */\nexport const Link = (props: LinkProps) => {\n const { as, asChild, children, ref: forwardedRef, ...rest } = props;\n\n const localRef = useRef<HTMLAnchorElement>(null);\n const ref = useObjectRef(mergeRefs(localRef, forwardedRef));\n\n const elementType = (as as string) || (asChild ? \"span\" : \"a\") || \"a\";\n const { linkProps } = useLink({ ...rest, elementType }, ref);\n\n return (\n <LinkRoot {...mergeProps(rest, linkProps, { as, asChild, ref })}>\n {children}\n </LinkRoot>\n );\n};\n\nLink.displayName = \"Link\";\n"],"names":["$298d61e98472621b$export$dcf14c9974fe2767","props","ref","elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled","otherProps","linkProps","focusableProps","$5Ot33$useFocusable","pressProps","isPressed","$5Ot33$usePress","domProps","$5Ot33$filterDOMProps","interactionHandlers","$5Ot33$mergeProps","router","$5Ot33$useRouter","routerLinkProps","$5Ot33$useLinkProps","e","_pressProps_onClick","$5Ot33$handleLinkClick","withContext","createRecipeContext","LinkRoot","Link","as","asChild","children","forwardedRef","rest","localRef","useRef","useObjectRef","mergeRefs","useLink","jsx","mergeProps"],"mappings":";;;;;;;;;AAeA,SAASA,EAA0CC,GAAOC,GAAK;AAC3D,MAAI,EAAE,aAAaC,IAAc,KAAK,SAASC,GAAS,cAAcC,GAAc,YAAYC,GAAY,SAASC,GAAS,YAAYC,GAAY,GAAGC,EAAU,IAAKR,GACpKS,IAAY,CAAA;AAChB,EAAIP,MAAgB,QAAKO,IAAY;AAAA,IACjC,MAAM;AAAA,IACN,UAAWF,IAAiB,SAAJ;AAAA,EAChC;AACI,MAAI,EAAE,gBAAgBG,EAAc,IAASC,EAAqBX,GAAOC,CAAG,GACxE,EAAE,YAAYW,GAAY,WAAWC,EAAS,IAASC,EAAiB;AAAA,IACxE,SAASX;AAAA,IACT,cAAcC;AAAA,IACd,YAAYC;AAAA,IACZ,SAASC;AAAA,IACT,YAAYC;AAAA,IACZ,KAAKN;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xs as i } from "react/jsx-runtime";
2
2
  import { createRecipeContext as d } from "@chakra-ui/react";
3
3
  import { defineMessages as p, useIntl as l } from "react-intl";
4
- import { $ as c } from "./useProgressBar-DCj794Zv.es.js";
5
- import { a as g } from "./mergeProps-D1jjFfMs.es.js";
4
+ import { $ as c } from "./useProgressBar--OvVKto2.es.js";
5
+ import { $ as g } from "./mergeProps-Dsl8k3Ig.es.js";
6
6
  const { withContext: C } = /* @__PURE__ */ d({ key: "loadingSpinner" }), f = /* @__PURE__ */ C("div"), m = /* @__PURE__ */ p({
7
7
  defaultLoadingMessage: {
8
8
  id: "Nimbus.LoadingSpinner.default",
@@ -56,4 +56,4 @@ h.displayName = "LoadingSpinner";
56
56
  export {
57
57
  h as L
58
58
  };
59
- //# sourceMappingURL=loading-spinner-FBgHlqXQ.es.js.map
59
+ //# sourceMappingURL=loading-spinner-DF6c3rBM.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loading-spinner-FBgHlqXQ.es.js","sources":["../../src/components/loading-spinner/loading-spinner.slots.tsx","../../src/components/loading-spinner/loading-spinner.i18n.ts","../../src/components/loading-spinner/loading-spinner.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { LoadingSpinnerRootSlotProps } from \"./loading-spinner.types\";\n\nconst { withContext } = createRecipeContext({ key: \"loadingSpinner\" });\n\n/**\n * Root component that provides the styling context for the LoadingSpinner component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const LoadingSpinnerRoot = withContext<\n HTMLDivElement,\n LoadingSpinnerRootSlotProps\n>(\"div\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n defaultLoadingMessage: {\n id: \"Nimbus.LoadingSpinner.default\",\n description: \"Default loading message for loading spinners\",\n defaultMessage: \"Loading data\",\n },\n});\n","import { mergeProps, useProgressBar } from \"react-aria\";\nimport { LoadingSpinnerRoot } from \"./loading-spinner.slots\";\nimport type { LoadingSpinnerProps } from \"./loading-spinner.types\";\nimport { messages } from \"./loading-spinner.i18n\";\nimport { useIntl } from \"react-intl\";\n\nconst circlePath =\n \"M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z\";\nconst pointerPath =\n \"M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12\";\n\n/**\n * # LoadingSpinner\n *\n * Indicates ongoing processes or loading states\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/loadingspinner}\n */\nexport const LoadingSpinner = (props: LoadingSpinnerProps) => {\n const intl = useIntl();\n const {\n ref,\n \"aria-label\": ariaLabel = intl.formatMessage(\n messages.defaultLoadingMessage\n ),\n ...restProps\n } = props;\n const { progressBarProps } = useProgressBar({\n isIndeterminate: true,\n \"aria-label\": ariaLabel,\n ...restProps,\n });\n\n return (\n <LoadingSpinnerRoot\n ref={ref}\n {...mergeProps(restProps, progressBarProps)}\n aria-label={ariaLabel}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d={circlePath}\n data-svg-path=\"spinner-circle\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d={pointerPath}\n data-svg-path=\"spinner-pointer\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </LoadingSpinnerRoot>\n );\n};\n\nLoadingSpinner.displayName = \"LoadingSpinner\";\n"],"names":["withContext","createRecipeContext","LoadingSpinnerRoot","messages","defineMessages","circlePath","pointerPath","LoadingSpinner","props","intl","useIntl","ref","ariaLabel","restProps","progressBarProps","useProgressBar","jsx","mergeProps"],"mappings":";;;;;AAGA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,kBAAkB,GAMxDC,IAAqB,gBAAAF,EAGhC,KAAK,GCVMG,IAAW,gBAAAC,EAAe;AAAA,EACrC,uBAAuB;AAAA,IACrB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCFKC,IACJ,mtBACIC,IACJ,4LASWC,IAAiB,CAACC,MAA+B;AAC5D,QAAMC,IAAOC,EAAA,GACP;AAAA,IACJ,KAAAC;AAAA,IACA,cAAcC,IAAYH,EAAK;AAAA,MAC7BN,EAAS;AAAA,IAAA;AAAA,IAEX,GAAGU;AAAA,EAAA,IACDL,GACE,EAAE,kBAAAM,EAAA,IAAqBC,EAAe;AAAA,IAC1C,iBAAiB;AAAA,IACjB,cAAcH;AAAA,IACd,GAAGC;AAAA,EAAA,CACJ;AAED,SACE,gBAAAG;AAAA,IAACd;AAAA,IAAA;AAAA,MACC,KAAAS;AAAA,MACC,GAAGM,EAAWJ,GAAWC,CAAgB;AAAA,MAC1C,cAAYF;AAAA,MAEZ,4BAAC,OAAA,EAAI,OAAM,8BAA6B,SAAQ,aAAY,MAAK,QAC/D,UAAA;AAAA,QAAA,gBAAAI;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAGX;AAAA,YACH,iBAAc;AAAA,YACd,aAAY;AAAA,YACZ,eAAc;AAAA,YACd,gBAAe;AAAA,UAAA;AAAA,QAAA;AAAA,QAEjB,gBAAAW;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAGV;AAAA,YACH,iBAAc;AAAA,YACd,aAAY;AAAA,YACZ,eAAc;AAAA,YACd,gBAAe;AAAA,UAAA;AAAA,QAAA;AAAA,MACjB,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAC,EAAe,cAAc;"}
1
+ {"version":3,"file":"loading-spinner-DF6c3rBM.es.js","sources":["../../src/components/loading-spinner/loading-spinner.slots.tsx","../../src/components/loading-spinner/loading-spinner.i18n.ts","../../src/components/loading-spinner/loading-spinner.tsx"],"sourcesContent":["import { createRecipeContext } from \"@chakra-ui/react\";\nimport type { LoadingSpinnerRootSlotProps } from \"./loading-spinner.types\";\n\nconst { withContext } = createRecipeContext({ key: \"loadingSpinner\" });\n\n/**\n * Root component that provides the styling context for the LoadingSpinner component.\n * Uses Chakra UI's recipe context system for consistent styling across instances.\n */\nexport const LoadingSpinnerRoot = withContext<\n HTMLDivElement,\n LoadingSpinnerRootSlotProps\n>(\"div\");\n","import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n defaultLoadingMessage: {\n id: \"Nimbus.LoadingSpinner.default\",\n description: \"Default loading message for loading spinners\",\n defaultMessage: \"Loading data\",\n },\n});\n","import { mergeProps, useProgressBar } from \"react-aria\";\nimport { LoadingSpinnerRoot } from \"./loading-spinner.slots\";\nimport type { LoadingSpinnerProps } from \"./loading-spinner.types\";\nimport { messages } from \"./loading-spinner.i18n\";\nimport { useIntl } from \"react-intl\";\n\nconst circlePath =\n \"M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z\";\nconst pointerPath =\n \"M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12\";\n\n/**\n * # LoadingSpinner\n *\n * Indicates ongoing processes or loading states\n *\n * @see {@link https://nimbus-documentation.vercel.app/components/feedback/loadingspinner}\n */\nexport const LoadingSpinner = (props: LoadingSpinnerProps) => {\n const intl = useIntl();\n const {\n ref,\n \"aria-label\": ariaLabel = intl.formatMessage(\n messages.defaultLoadingMessage\n ),\n ...restProps\n } = props;\n const { progressBarProps } = useProgressBar({\n isIndeterminate: true,\n \"aria-label\": ariaLabel,\n ...restProps,\n });\n\n return (\n <LoadingSpinnerRoot\n ref={ref}\n {...mergeProps(restProps, progressBarProps)}\n aria-label={ariaLabel}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path\n d={circlePath}\n data-svg-path=\"spinner-circle\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d={pointerPath}\n data-svg-path=\"spinner-pointer\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </LoadingSpinnerRoot>\n );\n};\n\nLoadingSpinner.displayName = \"LoadingSpinner\";\n"],"names":["withContext","createRecipeContext","LoadingSpinnerRoot","messages","defineMessages","circlePath","pointerPath","LoadingSpinner","props","intl","useIntl","ref","ariaLabel","restProps","progressBarProps","useProgressBar","jsx","mergeProps"],"mappings":";;;;;AAGA,MAAM,EAAE,aAAAA,EAAA,IAAgB,gBAAAC,EAAoB,EAAE,KAAK,kBAAkB,GAMxDC,IAAqB,gBAAAF,EAGhC,KAAK,GCVMG,IAAW,gBAAAC,EAAe;AAAA,EACrC,uBAAuB;AAAA,IACrB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCFKC,IACJ,mtBACIC,IACJ,4LASWC,IAAiB,CAACC,MAA+B;AAC5D,QAAMC,IAAOC,EAAA,GACP;AAAA,IACJ,KAAAC;AAAA,IACA,cAAcC,IAAYH,EAAK;AAAA,MAC7BN,EAAS;AAAA,IAAA;AAAA,IAEX,GAAGU;AAAA,EAAA,IACDL,GACE,EAAE,kBAAAM,EAAA,IAAqBC,EAAe;AAAA,IAC1C,iBAAiB;AAAA,IACjB,cAAcH;AAAA,IACd,GAAGC;AAAA,EAAA,CACJ;AAED,SACE,gBAAAG;AAAA,IAACd;AAAA,IAAA;AAAA,MACC,KAAAS;AAAA,MACC,GAAGM,EAAWJ,GAAWC,CAAgB;AAAA,MAC1C,cAAYF;AAAA,MAEZ,4BAAC,OAAA,EAAI,OAAM,8BAA6B,SAAQ,aAAY,MAAK,QAC/D,UAAA;AAAA,QAAA,gBAAAI;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAGX;AAAA,YACH,iBAAc;AAAA,YACd,aAAY;AAAA,YACZ,eAAc;AAAA,YACd,gBAAe;AAAA,UAAA;AAAA,QAAA;AAAA,QAEjB,gBAAAW;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAGV;AAAA,YACH,iBAAc;AAAA,YACd,aAAY;AAAA,YACZ,eAAc;AAAA,YACd,gBAAe;AAAA,UAAA;AAAA,QAAA;AAAA,MACjB,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;AAEAC,EAAe,cAAc;"}
@@ -1,25 +1,25 @@
1
1
  import { jsx as i, jsxs as c, Fragment as re } from "react/jsx-runtime";
2
2
  import { defineMessages as me, FormattedMessage as pe, useIntl as fe } from "react-intl";
3
- import { M as S } from "./money-input-BHveN9w0.es.js";
4
- import { F as I } from "./form-field-Po_Y_5wQ.es.js";
3
+ import { M as S } from "./money-input-DiuaCRAq.es.js";
4
+ import { F as I } from "./form-field-Df4_JmSU.es.js";
5
5
  import { useCallback as he, useState as be, useMemo as Fe } from "react";
6
- import { k as Le, h as ve } from "./Dialog-BYVU-i0Y.es.js";
7
- import { c as xe } from "./CollectionBuilder-BqQjeKfi.es.js";
8
- import { WarningAmber as ne, HelpOutline as Ie, Payments as $e, Language as Me, ErrorOutline as we } from "@commercetools/nimbus-icons";
9
- import { P as Ce } from "./popover-B1aRr1CU.es.js";
6
+ import { k as Le, h as ve } from "./Dialog-DcnmO0xr.es.js";
7
+ import { c as xe } from "./CollectionBuilder-BnYe2z4W.es.js";
8
+ import { WarningAmber as ne, HelpOutline as Ie, Payments as Me, Language as $e, ErrorOutline as we } from "@commercetools/nimbus-icons";
9
+ import { P as Ce } from "./popover-zNeVW5hN.es.js";
10
10
  import { createSlotRecipeContext as je } from "@chakra-ui/react";
11
11
  import { I as W } from "./icon-CenxuChf.es.js";
12
- import { R as Ee } from "./rich-text-input-C7jglLdt.es.js";
13
- import { M as ke } from "./multiline-text-input-CTop15Kc.es.js";
14
- import { T as ze } from "./text-input-D_3g3kxm.es.js";
15
- import { $ as te } from "./mergeProps-D1jjFfMs.es.js";
16
- import { $ as Se } from "./useField-BfW84CS4.es.js";
12
+ import { R as Ee } from "./rich-text-input-CoIBknUh.es.js";
13
+ import { M as ke } from "./multiline-text-input-fb-1IzTw.es.js";
14
+ import { T as ze } from "./text-input-BpdFm4J-.es.js";
15
+ import { a as te } from "./mergeProps-Dsl8k3Ig.es.js";
16
+ import { $ as Se } from "./useField-CHrpmkxe.es.js";
17
17
  import { F as ie } from "./field-errors-ClQprmQz.es.js";
18
18
  import { S as D } from "./stack-CoNreM7B.es.js";
19
- import { I as Pe } from "./icon-button-Cnas4bnJ.es.js";
19
+ import { I as Pe } from "./icon-button-hZxuTfRy.es.js";
20
20
  import { B as oe } from "./box-DuBoAZvq.es.js";
21
- import { B as Te } from "./button-DTxnOPiN.es.js";
22
- const $ = /* @__PURE__ */ me({
21
+ import { B as Te } from "./button-DZew_Si4.es.js";
22
+ const M = /* @__PURE__ */ me({
23
23
  missingRequiredField: {
24
24
  id: "Nimbus.LocalizedField.missingRequiredField",
25
25
  description: "Error message for missing required value",
@@ -52,7 +52,7 @@ const $ = /* @__PURE__ */ me({
52
52
  }
53
53
  }), { withProvider: ye, withContext: p } = /* @__PURE__ */ je({
54
54
  key: "localizedField"
55
- }), Be = /* @__PURE__ */ ye("fieldset", "root"), He = /* @__PURE__ */ p("legend", "label"), Ne = /* @__PURE__ */ p("div", "infoDialog"), Ve = /* @__PURE__ */ p("div", "fieldsContainer"), Re = /* @__PURE__ */ p("div", "description"), Ae = /* @__PURE__ */ p("div", "error"), De = /* @__PURE__ */ p("div", "toggleButtonContainer"), qe = /* @__PURE__ */ p("div", "localeFieldRoot"), We = /* @__PURE__ */ p("div", "localeFieldLabel"), Ue = /* @__PURE__ */ p("div", "localeFieldInput"), Je = () => /* @__PURE__ */ i(I.Error, { children: /* @__PURE__ */ i(pe, { ...$.missingRequiredField }) }), F = (e, t) => e && t ? `${e}.${t}` : void 0, q = (e) => e.split("-")[0], Qe = (e, t) => {
55
+ }), Be = /* @__PURE__ */ ye("fieldset", "root"), He = /* @__PURE__ */ p("legend", "label"), Ne = /* @__PURE__ */ p("div", "infoDialog"), Ve = /* @__PURE__ */ p("div", "fieldsContainer"), Re = /* @__PURE__ */ p("div", "description"), Ae = /* @__PURE__ */ p("div", "error"), De = /* @__PURE__ */ p("div", "toggleButtonContainer"), qe = /* @__PURE__ */ p("div", "localeFieldRoot"), We = /* @__PURE__ */ p("div", "localeFieldLabel"), Ue = /* @__PURE__ */ p("div", "localeFieldInput"), Je = () => /* @__PURE__ */ i(I.Error, { children: /* @__PURE__ */ i(pe, { ...M.missingRequiredField }) }), F = (e, t) => e && t ? `${e}.${t}` : void 0, q = (e) => e.split("-")[0], Qe = (e, t) => {
56
56
  const o = q(e), r = t.filter(
57
57
  (l) => q(l) === o
58
58
  );
@@ -117,7 +117,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
117
117
  id: r,
118
118
  name: n,
119
119
  inputValue: l,
120
- description: M,
120
+ description: $,
121
121
  warning: f,
122
122
  error: h,
123
123
  onChange: L,
@@ -202,7 +202,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
202
202
  )
203
203
  }
204
204
  ) }),
205
- (M || f && s) && /* @__PURE__ */ i(
205
+ ($ || f && s) && /* @__PURE__ */ i(
206
206
  I.Description,
207
207
  {
208
208
  role: f && s ? "status" : void 0,
@@ -213,7 +213,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
213
213
  children: f && s ? /* @__PURE__ */ c(re, { children: [
214
214
  /* @__PURE__ */ i(W, { colorPalette: "warning", children: /* @__PURE__ */ i(ne, {}) }),
215
215
  f
216
- ] }) : M
216
+ ] }) : $
217
217
  }
218
218
  ),
219
219
  h && s && /* @__PURE__ */ i(I.Error, { children: h })
@@ -227,7 +227,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
227
227
  defaultLocaleOrCurrency: r,
228
228
  valuesByLocaleOrCurrency: n,
229
229
  placeholdersByLocaleOrCurrency: l,
230
- descriptionsByLocaleOrCurrency: M,
230
+ descriptionsByLocaleOrCurrency: $,
231
231
  warningsByLocaleOrCurrency: f,
232
232
  errorsByLocaleOrCurrency: h,
233
233
  label: L,
@@ -278,7 +278,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
278
278
  localeOrCurrency: m,
279
279
  inputValue: n[m],
280
280
  placeholder: l?.[m],
281
- description: M?.[m],
281
+ description: $?.[m],
282
282
  warning: f?.[m],
283
283
  error: h?.[m],
284
284
  // autoFocus default/first locale field
@@ -295,7 +295,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
295
295
  ), [
296
296
  n,
297
297
  l,
298
- M,
298
+ $,
299
299
  f,
300
300
  h,
301
301
  r,
@@ -328,7 +328,7 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
328
328
  Pe,
329
329
  {
330
330
  id: _,
331
- "aria-label": k($.infoBoxTriggerAriaLabel),
331
+ "aria-label": k(M.infoBoxTriggerAriaLabel),
332
332
  size: "2xs",
333
333
  colorPalette: "info",
334
334
  variant: "link",
@@ -389,14 +389,14 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
389
389
  /* @__PURE__ */ i(
390
390
  oe,
391
391
  {
392
- as: e === "money" ? $e : Me,
392
+ as: e === "money" ? Me : $e,
393
393
  display: "inline-flex",
394
394
  boxSize: "400",
395
395
  verticalAlign: "text-bottom",
396
396
  mr: "100"
397
397
  }
398
398
  ),
399
- k(e === "money" ? g ? $.hideCurrencies : $.showCurrencies : g ? $.hideLanguages : $.showLanguages)
399
+ k(e === "money" ? g ? M.hideCurrencies : M.showCurrencies : g ? M.hideLanguages : M.showLanguages)
400
400
  ]
401
401
  }
402
402
  ) }),
@@ -467,4 +467,4 @@ const tt = (e, t) => Object.values(e).map((o) => S.convertToMoneyValue(o, t)), i
467
467
  export {
468
468
  kt as L
469
469
  };
470
- //# sourceMappingURL=localized-field-BqedmRuV.es.js.map
470
+ //# sourceMappingURL=localized-field-BTtMYX2e.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"localized-field-BqedmRuV.es.js","sources":["../../src/components/localized-field/localized-field.i18n.ts","../../src/components/localized-field/localized-field.slots.tsx","../../src/components/localized-field/utils/localized-field.utils.tsx","../../src/components/localized-field/components/localized-field.locale-field.tsx","../../src/components/localized-field/components/localized-field.root.tsx","../../src/components/localized-field/localized-field.tsx"],"sourcesContent":["import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n missingRequiredField: {\n id: \"Nimbus.LocalizedField.missingRequiredField\",\n description: \"Error message for missing required value\",\n defaultMessage: \"This field is required. Provide at least one value.\",\n },\n infoBoxTriggerAriaLabel: {\n id: \"Nimbus.LocalizedField.infoBoxTriggerAriaLabel\",\n description: \"aria label for button that triggers more info dialog\",\n defaultMessage: \"more info\",\n },\n showLanguages: {\n id: \"Nimbus.LocalizedField.showLanguages\",\n description:\n \"Label for showing all language inputs when toggle button is pressed\",\n defaultMessage: \"Show all languages\",\n },\n hideLanguages: {\n id: \"Nimbus.LocalizedField.hideLanguages\",\n description:\n \"Label for hiding all language inputs when toggle button is pressed\",\n defaultMessage: \"Hide all languages\",\n },\n showCurrencies: {\n id: \"Nimbus.LocalizedField.showCurrencies\",\n description:\n \"Label for showing all currency inputs when toggle button is pressed\",\n defaultMessage: \"Show all currencies\",\n },\n hideCurrencies: {\n id: \"Nimbus.LocalizedField.hideCurrencies\",\n description:\n \"Label for hiding all currency inputs when toggle button is pressed\",\n defaultMessage: \"Hide all currencies\",\n },\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n LocalizedFieldRootSlotProps,\n LocalizedFieldLabelSlotProps,\n LocalizedFieldInfoDialogSlotProps,\n LocalizedFieldFieldsContainerSlotProps,\n LocalizedFieldDescriptionSlotProps,\n LocalizedFieldErrorSlotProps,\n LocalizedFieldToggleButtonContainerSlotProps,\n LocalizedFieldLocaleFieldRootSlotProps,\n LocalizedFieldLocaleFieldLabelSlotProps,\n LocalizedFieldLocaleFieldInputSlotProps,\n} from \"./localized-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"localizedField\",\n});\n\n// Root Slot\nexport const LocalizedFieldRootSlot = withProvider<\n HTMLFieldSetElement,\n LocalizedFieldRootSlotProps\n>(\"fieldset\", \"root\");\n\n// Label Slot\nexport const LocalizedFieldLabelSlot = withContext<\n HTMLLabelElement,\n LocalizedFieldLabelSlotProps\n>(\"legend\", \"label\");\n\n// InfoDialog Slot\nexport const LocalizedFieldInfoDialogSlot = withContext<\n HTMLDivElement,\n LocalizedFieldInfoDialogSlotProps\n>(\"div\", \"infoDialog\");\n\n// FieldsContainer Slot\nexport const LocalizedFieldFieldsContainerSlot = withContext<\n HTMLDivElement,\n LocalizedFieldFieldsContainerSlotProps\n>(\"div\", \"fieldsContainer\");\n\n// Description Slot\nexport const LocalizedFieldDescriptionSlot = withContext<\n HTMLDivElement,\n LocalizedFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const LocalizedFieldErrorSlot = withContext<\n HTMLDivElement,\n LocalizedFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// ToggleButtonContainer Slot\nexport const LocalizedFieldToggleButtonContainerSlot = withContext<\n HTMLDivElement,\n LocalizedFieldToggleButtonContainerSlotProps\n>(\"div\", \"toggleButtonContainer\");\n\n// LocaleFieldRoot Slot\nexport const LocalizedFieldLocaleFieldRootSlot = withContext<\n HTMLDivElement,\n LocalizedFieldLocaleFieldRootSlotProps\n>(\"div\", \"localeFieldRoot\");\n\n// FieldLabel Slot\nexport const LocalizedFieldLocaleFieldLabelSlot = withContext<\n HTMLDivElement,\n LocalizedFieldLocaleFieldLabelSlotProps\n>(\"div\", \"localeFieldLabel\");\n\n// FieldInput Slot\nexport const LocalizedFieldLocaleFieldInputSlot = withContext<\n HTMLDivElement,\n LocalizedFieldLocaleFieldInputSlotProps\n>(\"div\", \"localeFieldInput\");\n","import { FormattedMessage } from \"react-intl\";\nimport {\n FormField,\n type CurrencyCode,\n type MoneyInputValue,\n type MoneyValue,\n type FieldErrorsData,\n MoneyInput,\n} from \"@/components\";\nimport { messages } from \"../localized-field.i18n\";\nimport type { LocalizedString } from \"../localized-field.types\";\n\ntype LanguagesSplitByDefaultLocale = {\n related: string[];\n unrelated: string[];\n};\n\ntype TouchedLocalizedString = { [locale: string]: boolean };\n\ntype CustomFormikErrors<Values> = {\n [K in keyof Values]?: FieldErrorsData;\n};\n\nexport const RequiredValueErrorMessage = () => (\n <FormField.Error>\n <FormattedMessage {...messages.missingRequiredField} />\n </FormField.Error>\n);\n\nexport const getLocaleFieldAttribute = (\n fieldGroupAttr?: string,\n locale?: string\n): string | undefined =>\n fieldGroupAttr && locale ? `${fieldGroupAttr}.${locale}` : undefined;\n\n// gets the language tag of a given locale, e.g. `de` in `de-DE`\nexport const getLanguageForLocale = (locale: string): string =>\n locale.split(\"-\")[0];\n\n// splits the locales into two groups:\n// - the 'related' array contains locales with the same language tag as the default locale,\n// e.g. if the default locale is de-DE, related would be ['de-DE', 'de-CH']\n// - the 'unrelated' array contains locales with a different different language tag from the default locale\n//. e.g. if the default locale is de-DE, unrelated would be ['pt-BR', 'en-GB', 'zh-Hans']\nexport const splitLanguages = (\n defaultLocale: string,\n locales: string[]\n): LanguagesSplitByDefaultLocale => {\n const defaultLanguage = getLanguageForLocale(defaultLocale);\n const related = locales.filter(\n (locale) => getLanguageForLocale(locale) === defaultLanguage\n );\n const unrelated = locales.filter(\n (locale) => getLanguageForLocale(locale) !== defaultLanguage\n );\n return {\n unrelated,\n related,\n };\n};\n\n// sorts locales with the following priority:\n// - The selected locale is placed first (e.g pt-BR)\n// - All locales using the same language tag as the selected language\n// follow (e.g. pt, pt-PT). They are sorted alphabetically.\n// - All other locales follow, sorted alphabetically as well\nexport const sortLocalesByDefaultLocaleLanguage = (\n defaultLocale: string,\n allLocales: string[]\n): string[] => {\n const { related, unrelated } = splitLanguages(\n defaultLocale,\n allLocales.filter((locale: string) => locale !== defaultLocale)\n );\n\n return [defaultLocale, ...related.sort(), ...unrelated.sort()];\n};\n\nexport const sortCurrencies = (\n defaultCurrency: CurrencyCode,\n allCurrencies: CurrencyCode[]\n) => {\n const remainingCurrencies = allCurrencies.filter(\n (currency) => currency !== defaultCurrency\n );\n return [defaultCurrency, ...remainingCurrencies.sort()];\n};\n\nexport const getHasInvalidLocalizedFields = <TErrors extends object>(\n errors?: TErrors,\n defaultLocaleOrCurrency?: string\n): boolean => {\n if (errors && Object.keys(errors).length > 0 && defaultLocaleOrCurrency) {\n return Object.keys(errors).some(\n (localeOrCurrency) => localeOrCurrency !== defaultLocaleOrCurrency\n );\n }\n return false;\n};\n\nexport const createLocalizedString = (\n locales: string[],\n existingLocalizedString: LocalizedString\n): LocalizedString => {\n const localesInLocalizedString = Array.from(\n new Set([...locales, ...Object.keys(existingLocalizedString)])\n );\n\n return localesInLocalizedString.reduce<LocalizedString>(\n (localizedString, locale) => ({\n ...localizedString,\n [locale]: existingLocalizedString?.[locale] || \"\",\n }),\n {}\n );\n};\n\n// Note: I prefer `isLocalizedStringEmpty`, but keeping this as `isEmpty` for api consistency with UI Kit\nexport const isEmpty = (localizedString?: LocalizedString): boolean => {\n if (!localizedString) return true;\n return Object.values(localizedString).every(\n (value?: string) => !value || value?.trim().length === 0\n );\n};\n\nexport const omitEmptyTranslations = <Translations extends LocalizedString>(\n localizedString: Translations\n): LocalizedString => {\n // TODO: is it necessary to create a util that enforces a consistent warning/error format, e.g.\n // `<COMPONENT_NAME> - Warning: <WARNING_MESSAGE>`\n if (typeof localizedString !== \"object\") {\n console.warn(\n \"Nimbus Localized Field - Warning: omitEmptyTranslations must be called with an object\"\n );\n }\n\n return Object.entries(localizedString).reduce<LocalizedString>(\n (localizedStringWithoutEmptyTranslations, [locale, value]) => {\n if (value && value.trim().length > 0) {\n return {\n ...localizedStringWithoutEmptyTranslations,\n [locale]: value,\n };\n }\n return localizedStringWithoutEmptyTranslations;\n },\n {}\n );\n};\n\nexport const isTouched = (touched?: TouchedLocalizedString): boolean => {\n if (touched) {\n return Object.values(touched).some(Boolean);\n }\n return false;\n};\n\n/**\n * Use this function to convert the Formik `errors` object type to\n * our custom field errors type.\n * This is primarly useful when using TypeScript.\n */\nexport function toFieldErrors<FormValues>(\n errors: unknown\n): CustomFormikErrors<FormValues> {\n return errors as CustomFormikErrors<FormValues>;\n}\n\nexport const convertToMoneyValues = (\n values: MoneyInputValue[],\n currency: string\n): Array<MoneyValue | null> =>\n Object.values(values).map<MoneyValue | null>((value) => {\n return MoneyInput.convertToMoneyValue(value, currency);\n });\n\nexport const parseMoneyValues = (\n moneyValues: MoneyValue[] = [],\n locale: string\n): Record<CurrencyCode, MoneyInputValue> =>\n moneyValues.reduce<Record<CurrencyCode, MoneyInputValue>>(\n (allValues, moneyValue) => {\n const value = MoneyInput.parseMoneyValue(moneyValue, locale);\n return {\n ...allValues,\n [value.currencyCode]: value,\n };\n },\n {} as Record<CurrencyCode, MoneyInputValue>\n );\n\nexport const getHighPrecisionCurrencies = (\n values: Record<CurrencyCode, MoneyInputValue>,\n locale: string\n): CurrencyCode[] => {\n const typedCurrencyCodes = Object.keys(values) as CurrencyCode[];\n return typedCurrencyCodes.filter((currencyCode) =>\n MoneyInput.isHighPrecision(values[currencyCode], locale)\n );\n};\n\nexport const getEmptyCurrencies = (\n values: Record<CurrencyCode, MoneyInputValue>\n): CurrencyCode[] => {\n const typedCurrencyCodes = Object.keys(values) as CurrencyCode[];\n return typedCurrencyCodes.filter((currencyCode) =>\n MoneyInput.isEmpty(values[currencyCode])\n );\n};\n","import { useCallback } from \"react\";\nimport {\n FormField,\n Icon,\n TextInput,\n MoneyInput,\n type CustomEvent,\n MultilineTextInput,\n RichTextInput,\n type MoneyInputValue,\n type CurrencyCode,\n} from \"@/components\";\nimport { WarningAmber } from \"@commercetools/nimbus-icons\";\nimport {\n LocalizedFieldLocaleFieldRootSlot,\n LocalizedFieldLocaleFieldInputSlot,\n LocalizedFieldLocaleFieldLabelSlot,\n} from \"../localized-field.slots\";\nimport type { LocalizedFieldLocaleFieldProps } from \"../localized-field.types\";\n\n/**\n * LocalizedFieldLocaleField - Individual locale or currency input field\n *\n * Renders a single input field for a specific locale or currency with integrated\n * label, description, warning, and error message display. Supports text, multiline,\n * richText, and money input types.\n *\n * @supportsStyleProps\n */\nexport const LocalizedFieldLocaleField = ({\n type,\n size,\n localeOrCurrency,\n id,\n name,\n inputValue: inputValueFromProps,\n description,\n warning,\n error,\n onChange,\n onBlur,\n onFocus,\n isRequired,\n isReadOnly,\n isDisabled,\n isInvalid,\n touched,\n ...otherProps\n}: LocalizedFieldLocaleFieldProps) => {\n let InputComponent:\n | typeof TextInput\n | typeof MultilineTextInput\n | typeof MoneyInput\n | typeof RichTextInput;\n switch (type) {\n case \"text\":\n default:\n InputComponent = TextInput;\n break;\n case \"multiLine\":\n InputComponent = MultilineTextInput;\n break;\n case \"money\":\n InputComponent = MoneyInput;\n break;\n case \"richText\":\n InputComponent = RichTextInput;\n break;\n }\n\n const getInputValue = () => {\n if (type === \"money\") {\n return inputValueFromProps\n ? (inputValueFromProps as MoneyInputValue)\n : ({ amount: \"\", currencyCode: localeOrCurrency } as MoneyInputValue);\n }\n return inputValueFromProps ? inputValueFromProps : \"\";\n };\n\n const inputValue = getInputValue();\n\n const handleChange = useCallback(\n (value: string | CustomEvent | undefined) => {\n // The `MoneyInput` onChange event value is a custom value,\n // and the `MoneyInput` modifies the input id and name since it is in a `group`,\n // so we need to build a separate return object for the MoneInput to return\n // the expected values\n const isMoneyInputEvent = typeof value === \"object\";\n const changeValue = {\n target: isMoneyInputEvent\n ? {\n id: value.target.id,\n name: value.target.name,\n locale: undefined,\n currency: localeOrCurrency as CurrencyCode,\n value: value.target.value,\n }\n : { id, name, locale: localeOrCurrency, currency: undefined, value },\n };\n onChange(changeValue);\n },\n [id, name, localeOrCurrency, onChange]\n );\n\n return (\n <LocalizedFieldLocaleFieldRootSlot asChild>\n <FormField.Root\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={(isInvalid || !!error) && touched}\n direction=\"row\"\n size={size}\n id={id}\n >\n <LocalizedFieldLocaleFieldLabelSlot\n display={type === \"money\" ? \"none\" : undefined}\n {...(isDisabled && { \"data-disabled\": isDisabled })}\n asChild\n >\n <FormField.Label>\n {localeOrCurrency.toLocaleUpperCase()}\n </FormField.Label>\n </LocalizedFieldLocaleFieldLabelSlot>\n <FormField.Input>\n <LocalizedFieldLocaleFieldInputSlot\n aria-required={isRequired}\n asChild\n >\n <InputComponent\n {...otherProps}\n size={size}\n value={inputValue as string & MoneyInputValue}\n onChange={handleChange}\n onBlur={(e: React.FocusEvent | CustomEvent) =>\n onBlur?.(e, localeOrCurrency)\n }\n onFocus={(e: React.FocusEvent | CustomEvent) =>\n onFocus?.(e, localeOrCurrency)\n }\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={(isInvalid || !!error) && touched}\n />\n </LocalizedFieldLocaleFieldInputSlot>\n </FormField.Input>\n {(description || (warning && touched)) && (\n <FormField.Description\n role={warning && touched ? \"status\" : undefined}\n color={warning && touched ? \"warning.11\" : undefined}\n display=\"flex\"\n gap=\"100\"\n alignItems=\"center\"\n >\n {warning && touched ? (\n <>\n <Icon colorPalette=\"warning\">\n <WarningAmber />\n </Icon>\n {warning}\n </>\n ) : (\n description\n )}\n </FormField.Description>\n )}\n {error && touched && <FormField.Error>{error}</FormField.Error>}\n </FormField.Root>\n </LocalizedFieldLocaleFieldRootSlot>\n );\n};\n","import { useState, useMemo } from \"react\";\nimport { useIntl } from \"react-intl\";\nimport {\n Collection as RaCollection,\n Dialog as RaDialog,\n DialogTrigger as RaDialogTrigger,\n} from \"react-aria-components\";\nimport { useField, useId } from \"react-aria\";\nimport {\n ErrorOutline,\n HelpOutline,\n Language,\n Payments,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\nimport {\n Box,\n Button,\n FieldErrors,\n Icon,\n IconButton,\n Stack,\n type CurrencyCode,\n} from \"@/components\";\nimport { Popover } from \"../../popover\";\nimport { messages } from \"../localized-field.i18n\";\nimport {\n LocalizedFieldRootSlot,\n LocalizedFieldLabelSlot,\n LocalizedFieldInfoDialogSlot,\n LocalizedFieldFieldsContainerSlot,\n LocalizedFieldDescriptionSlot,\n LocalizedFieldErrorSlot,\n LocalizedFieldToggleButtonContainerSlot,\n} from \"../localized-field.slots\";\nimport type {\n LocalizedFieldProps,\n MergedLocaleFieldData,\n LocalizedCurrency,\n} from \"../localized-field.types\";\n\nimport {\n getHasInvalidLocalizedFields,\n getLocaleFieldAttribute,\n sortCurrencies,\n sortLocalesByDefaultLocaleLanguage,\n} from \"../utils/localized-field.utils\";\nimport { LocalizedFieldLocaleField } from \"./localized-field.locale-field\";\n\n/**\n * LocalizedField - Root component for managing localized input fields\n *\n * Provides a fieldset container for multiple locale-specific or currency-specific input fields\n * with expand/collapse functionality and integrated validation display. Supports text, multiline,\n * richText, and money input types.\n *\n * @supportsStyleProps\n */\nexport const LocalizedField = ({\n type = \"text\",\n id,\n name,\n defaultLocaleOrCurrency,\n valuesByLocaleOrCurrency,\n placeholdersByLocaleOrCurrency,\n descriptionsByLocaleOrCurrency,\n warningsByLocaleOrCurrency,\n errorsByLocaleOrCurrency,\n label,\n hint,\n description,\n warning,\n warnings,\n renderWarning,\n error,\n errors,\n renderError,\n touched,\n isRequired,\n isDisabled,\n isReadOnly,\n onChange,\n onBlur,\n onFocus,\n defaultExpanded = false,\n displayAllLocalesOrCurrencies = false,\n size,\n autoFocus,\n [\"data-track-component\"]: dataTrackComponent,\n [\"data-testid\"]: dataTestId,\n [\"data-test\"]: dataTest,\n // DOM & Style props for wrapper container\n ...rest\n}: LocalizedFieldProps) => {\n const [expanded, setExpanded] = useState(\n displayAllLocalesOrCurrencies || defaultExpanded\n );\n\n const { formatMessage } = useIntl();\n\n // Used to associate more info dialog with fieldset via `aria-controls`\n const localeFieldsContainerId = useId();\n // Used to associate more info dialog with fieldset via `aria-details`\n const moreDetailsButtonId = useId();\n\n // Either `error` exists, or there are `true` fields in the UI Kit compat `errors` object\n const hasError: boolean = Boolean(\n error || (errors && Object.values(errors).some((error) => error === true))\n );\n\n // Either `warning` exists, or there are `true` fields in the UI Kit compat `warnings` object\n const hasWarning: boolean = Boolean(\n warning || (warnings && Object.values(warnings).some(Boolean))\n );\n\n // FieldGroup is invalid if a non-field-specific error is passed and the group has been touched\n // When FieldGroup is invalid, all fields will display error styling without displaying a field-specific error message\n const isInvalid: boolean = !!(hasError && touched);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField({\n id,\n label,\n description,\n errorMessage: error,\n isInvalid,\n });\n\n // Array of locales/currencies to display as input fields\n const localizationKeys: string[] | CurrencyCode[] = Object.keys(\n valuesByLocaleOrCurrency\n );\n\n // Merge all -ByLocaleOrCurrencies data for each field\n const allDataForFields = useMemo(() => {\n const sortedFieldData =\n type === \"money\"\n ? sortCurrencies(\n defaultLocaleOrCurrency as CurrencyCode,\n localizationKeys as CurrencyCode[]\n )\n : sortLocalesByDefaultLocaleLanguage(\n defaultLocaleOrCurrency,\n localizationKeys\n );\n\n return sortedFieldData.reduce(\n (allFieldData: MergedLocaleFieldData[], localizationKey) => {\n const allDataForLocale = {\n localeOrCurrency: localizationKey,\n inputValue:\n type === \"money\"\n ? (valuesByLocaleOrCurrency as LocalizedCurrency)[localizationKey]\n : (valuesByLocaleOrCurrency[localizationKey] as string),\n placeholder: placeholdersByLocaleOrCurrency?.[localizationKey],\n description: descriptionsByLocaleOrCurrency?.[localizationKey],\n warning: warningsByLocaleOrCurrency?.[localizationKey],\n error: errorsByLocaleOrCurrency?.[localizationKey],\n // autoFocus default/first locale field\n ...(localizationKey === defaultLocaleOrCurrency && autoFocus\n ? { autoFocus }\n : {}),\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n if (\n expanded ||\n // Only display defaultLocaleOrInput field if fieldGroup is not expanded\n (!expanded && localizationKey === defaultLocaleOrCurrency)\n ) {\n return [...allFieldData, allDataForLocale];\n }\n return allFieldData;\n },\n []\n );\n }, [\n valuesByLocaleOrCurrency,\n placeholdersByLocaleOrCurrency,\n descriptionsByLocaleOrCurrency,\n warningsByLocaleOrCurrency,\n errorsByLocaleOrCurrency,\n defaultLocaleOrCurrency,\n expanded,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n ]);\n\n const groupHasInvalidLocalizedFields = getHasInvalidLocalizedFields(\n errorsByLocaleOrCurrency,\n defaultLocaleOrCurrency\n );\n\n const shouldExpandInvalidFields =\n (groupHasInvalidLocalizedFields || hasError) && touched;\n // If there are fields that are invalid, ensure that field group\n // shows all fields so that invalid field is visible\n if (shouldExpandInvalidFields && !expanded) {\n setExpanded(true);\n }\n\n return (\n <LocalizedFieldRootSlot\n {...rest}\n {...fieldProps}\n aria-details={hint ? moreDetailsButtonId : undefined}\n type={type}\n size={size}\n name={name}\n >\n {label && (\n <Stack direction=\"row\" gap=\"0\">\n <LocalizedFieldLabelSlot {...labelProps}>\n {label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </LocalizedFieldLabelSlot>\n {hint && (\n <RaDialogTrigger>\n <IconButton\n id={moreDetailsButtonId}\n aria-label={formatMessage(messages.infoBoxTriggerAriaLabel)}\n size=\"2xs\"\n colorPalette=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n\n <Popover padding={0}>\n <LocalizedFieldInfoDialogSlot asChild>\n <RaDialog>\n <Box p=\"300\">{hint}</Box>\n </RaDialog>\n </LocalizedFieldInfoDialogSlot>\n </Popover>\n </RaDialogTrigger>\n )}\n </Stack>\n )}\n <LocalizedFieldFieldsContainerSlot\n id={localeFieldsContainerId}\n data-expanded={expanded}\n >\n <RaCollection items={allDataForFields}>\n {(item) => {\n return (\n <LocalizedFieldLocaleField\n {...item}\n size={size}\n type={type}\n onChange={onChange}\n onBlur={onBlur}\n onFocus={onFocus}\n touched={touched}\n // Format field attributes to match uikit pattern\n id={getLocaleFieldAttribute(\n fieldProps.id,\n item.localeOrCurrency\n )}\n name={getLocaleFieldAttribute(name, item.localeOrCurrency)}\n data-test={getLocaleFieldAttribute(\n dataTest,\n item.localeOrCurrency\n )}\n data-testid={getLocaleFieldAttribute(\n dataTestId,\n item.localeOrCurrency\n )}\n data-track-component={getLocaleFieldAttribute(\n dataTrackComponent,\n item.localeOrCurrency\n )}\n />\n );\n }}\n </RaCollection>\n </LocalizedFieldFieldsContainerSlot>\n\n {!displayAllLocalesOrCurrencies && localizationKeys.length > 1 && (\n <LocalizedFieldToggleButtonContainerSlot>\n <Button\n aria-controls={localeFieldsContainerId}\n aria-describedby={labelProps.id}\n aria-expanded={expanded}\n onPress={() => setExpanded(!expanded)}\n isDisabled={isDisabled || (shouldExpandInvalidFields && expanded)}\n variant=\"ghost\"\n size=\"2xs\"\n colorPalette=\"primary\"\n >\n <Box\n as={type === \"money\" ? Payments : Language}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {type === \"money\"\n ? expanded\n ? formatMessage(messages.hideCurrencies)\n : formatMessage(messages.showCurrencies)\n : expanded\n ? formatMessage(messages.hideLanguages)\n : formatMessage(messages.showLanguages)}\n </Button>\n </LocalizedFieldToggleButtonContainerSlot>\n )}\n {(description || (hasWarning && touched)) && (\n <LocalizedFieldDescriptionSlot\n role={hasWarning && touched ? \"status\" : undefined}\n color={hasWarning && touched ? \"warning.11\" : undefined}\n // In order to associate the warnings from both the warning and legacy warnings props with the fieldset,\n // we must associate, them to this element with aria-labelledby\n aria-labelledby={`${descriptionProps.id}-warning`}\n {...descriptionProps}\n >\n {/** Warnings are for compat with UI Kit localized fields */}\n {hasWarning && touched ? (\n <>\n <Icon colorPalette=\"warning\">\n <WarningAmber />\n </Icon>\n <Stack gap=\"0\" id={`${descriptionProps.id}-warning`}>\n {warning}\n {warnings && hasWarning && (\n <FieldErrors\n errors={warnings}\n renderError={renderWarning}\n colorPalette=\"warning\"\n role={undefined}\n />\n )}\n </Stack>\n </>\n ) : (\n description\n )}\n </LocalizedFieldDescriptionSlot>\n )}\n {isInvalid && (\n <LocalizedFieldErrorSlot\n // In order to associate the errors from both the error and legacy errors props with the fieldset,\n // we must associate them to this element with aria-labelledby.\n aria-labelledby={`${errorMessageProps.id}-error`}\n role=\"alert\"\n {...errorMessageProps}\n >\n <Icon>\n <ErrorOutline />\n </Icon>\n <Stack gap=\"0\" id={`${errorMessageProps.id}-error`}>\n {error}\n {errors && hasError && (\n <FieldErrors\n errors={errors}\n renderError={renderError}\n role={undefined}\n />\n )}\n </Stack>\n </LocalizedFieldErrorSlot>\n )}\n </LocalizedFieldRootSlot>\n );\n};\n","import { LocalizedFieldRoot } from \"./components\";\nimport {\n getLocaleFieldAttribute,\n createLocalizedString,\n isEmpty,\n omitEmptyTranslations,\n isTouched,\n RequiredValueErrorMessage,\n toFieldErrors,\n convertToMoneyValues,\n parseMoneyValues,\n getHighPrecisionCurrencies,\n getEmptyCurrencies,\n} from \"./utils/localized-field.utils\";\n\n/**\n * LocalizedField component with utility methods for managing localized input fields.\n *\n * This component provides a fieldset for managing multiple locale-specific or currency-specific\n * input fields with expand/collapse functionality and integrated validation display.\n *\n * **Utility Methods** (for compatibility with UI Kit):\n * - `getId` / `getName`: Format field attributes with locale suffix\n * - `isTouched`: Check if any locale field has been touched\n * - `isEmpty`: Check if all locale fields are empty\n * - `createLocalizedString`: Create empty localized string object\n * - `omitEmptyTranslations`: Remove empty translations from localized object\n * - `RequiredValueErrorMessage`: Standard error message component\n * - `toFieldErrors`: Convert errors to field error format\n * - `convertToMoneyValues` / `parseMoneyValues`: Money value conversion utilities\n * - `getHighPrecisionCurrencies` / `getEmptyCurrencies`: Currency utilities\n *\n * @example\n * ```tsx\n * <LocalizedField\n * type=\"text\"\n * label=\"Product Name\"\n * defaultLocaleOrCurrency=\"en\"\n * valuesByLocaleOrCurrency={{ en: \"Product\", de: \"Produkt\" }}\n * onChange={(e) => console.log(e.target.locale, e.target.value)}\n * />\n * ```\n */\nexport const LocalizedField = Object.assign(LocalizedFieldRoot, {\n // Add util methods here for compat with uikit - see https://github.com/commercetools/ui-kit/blob/e97e0c7e8f3e9393981bf1949573212d7c571c90/packages/components/inputs/localized-text-input/src/localized-text-input.tsx#L396\n getId: getLocaleFieldAttribute,\n getName: getLocaleFieldAttribute,\n isTouched,\n isEmpty,\n createLocalizedString,\n omitEmptyTranslations,\n RequiredValueErrorMessage,\n toFieldErrors,\n convertToMoneyValues,\n parseMoneyValues,\n getHighPrecisionCurrencies,\n getEmptyCurrencies,\n});\n"],"names":["messages","defineMessages","withProvider","withContext","createSlotRecipeContext","LocalizedFieldRootSlot","LocalizedFieldLabelSlot","LocalizedFieldInfoDialogSlot","LocalizedFieldFieldsContainerSlot","LocalizedFieldDescriptionSlot","LocalizedFieldErrorSlot","LocalizedFieldToggleButtonContainerSlot","LocalizedFieldLocaleFieldRootSlot","LocalizedFieldLocaleFieldLabelSlot","LocalizedFieldLocaleFieldInputSlot","RequiredValueErrorMessage","jsx","FormField","FormattedMessage","getLocaleFieldAttribute","fieldGroupAttr","locale","getLanguageForLocale","splitLanguages","defaultLocale","locales","defaultLanguage","related","sortLocalesByDefaultLocaleLanguage","allLocales","unrelated","sortCurrencies","defaultCurrency","allCurrencies","remainingCurrencies","currency","getHasInvalidLocalizedFields","errors","defaultLocaleOrCurrency","localeOrCurrency","createLocalizedString","existingLocalizedString","localizedString","isEmpty","value","omitEmptyTranslations","localizedStringWithoutEmptyTranslations","isTouched","touched","toFieldErrors","convertToMoneyValues","values","MoneyInput","parseMoneyValues","moneyValues","allValues","moneyValue","getHighPrecisionCurrencies","currencyCode","getEmptyCurrencies","LocalizedFieldLocaleField","type","size","id","name","inputValueFromProps","description","warning","error","onChange","onBlur","onFocus","isRequired","isReadOnly","isDisabled","isInvalid","otherProps","InputComponent","TextInput","MultilineTextInput","RichTextInput","inputValue","handleChange","useCallback","changeValue","jsxs","e","Fragment","Icon","WarningAmber","LocalizedField","valuesByLocaleOrCurrency","placeholdersByLocaleOrCurrency","descriptionsByLocaleOrCurrency","warningsByLocaleOrCurrency","errorsByLocaleOrCurrency","label","hint","warnings","renderWarning","renderError","defaultExpanded","displayAllLocalesOrCurrencies","autoFocus","dataTrackComponent","dataTestId","dataTest","rest","expanded","setExpanded","useState","formatMessage","useIntl","localeFieldsContainerId","useId","moreDetailsButtonId","hasError","hasWarning","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","localizationKeys","allDataForFields","useMemo","allFieldData","localizationKey","allDataForLocale","shouldExpandInvalidFields","Stack","RaDialogTrigger","IconButton","HelpOutline","Popover","RaDialog","Box","RaCollection","item","Button","Payments","Language","FieldErrors","ErrorOutline","LocalizedFieldRoot"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEO,MAAMA,IAAW,gBAAAC,GAAe;AAAA,EACrC,sBAAsB;AAAA,IACpB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,yBAAyB;AAAA,IACvB,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aACE;AAAA,IACF,gBAAgB;AAAA,EAAA;AAAA,EAElB,eAAe;AAAA,IACb,IAAI;AAAA,IACJ,aACE;AAAA,IACF,gBAAgB;AAAA,EAAA;AAAA,EAElB,gBAAgB;AAAA,IACd,IAAI;AAAA,IACJ,aACE;AAAA,IACF,gBAAgB;AAAA,EAAA;AAAA,EAElB,gBAAgB;AAAA,IACd,IAAI;AAAA,IACJ,aACE;AAAA,IACF,gBAAgB;AAAA,EAAA;AAEpB,CAAC,GCvBK,EAAE,cAAAC,IAAc,aAAAC,EAAA,IAAgB,gBAAAC,GAAwB;AAAA,EAC5D,KAAK;AACP,CAAC,GAGYC,KAAyB,gBAAAH,GAGpC,YAAY,MAAM,GAGPI,KAA0B,gBAAAH,EAGrC,UAAU,OAAO,GAGNI,KAA+B,gBAAAJ,EAG1C,OAAO,YAAY,GAGRK,KAAoC,gBAAAL,EAG/C,OAAO,iBAAiB,GAG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,UAAA;AAAA,cAAA,gBAAAzG,EAACwE,GAAA,EACC,UAAA,gBAAAxE,EAAC+H,IAAA,CAAA,CAAa,GAChB;AAAA,cACA,gBAAA1D,EAAC6C,KAAM,KAAI,KAAI,IAAI,GAAGT,EAAkB,EAAE,UACvC,UAAA;AAAA,gBAAArD;AAAA,gBACA/B,KAAU+E,KACT,gBAAApG;AAAA,kBAAC8H;AAAA,kBAAA;AAAA,oBACC,QAAAzG;AAAA,oBACA,aAAA+D;AAAA,oBACA,MAAM;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACR,EAAA,CAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAIR,GCrUaV,KAAiB,uBAAO,OAAOsD,IAAoB;AAAA;AAAA,EAE9D,OAAO7H;AAAA,EACP,SAASA;AAAA,EACT,WAAA4B;AAAA,EACA,SAAAJ;AAAA,EACA,uBAAAH;AAAA,EACA,uBAAAK;AAAA,EACA,2BAAA9B;AAAA,EACA,eAAAkC;AAAA,EACA,sBAAAC;AAAA,EACA,kBAAAG;AAAA,EACA,4BAAAI;AAAA,EACA,oBAAAE;AACF,CAAC;"}
1
+ {"version":3,"file":"localized-field-BTtMYX2e.es.js","sources":["../../src/components/localized-field/localized-field.i18n.ts","../../src/components/localized-field/localized-field.slots.tsx","../../src/components/localized-field/utils/localized-field.utils.tsx","../../src/components/localized-field/components/localized-field.locale-field.tsx","../../src/components/localized-field/components/localized-field.root.tsx","../../src/components/localized-field/localized-field.tsx"],"sourcesContent":["import { defineMessages } from \"react-intl\";\n\nexport const messages = defineMessages({\n missingRequiredField: {\n id: \"Nimbus.LocalizedField.missingRequiredField\",\n description: \"Error message for missing required value\",\n defaultMessage: \"This field is required. Provide at least one value.\",\n },\n infoBoxTriggerAriaLabel: {\n id: \"Nimbus.LocalizedField.infoBoxTriggerAriaLabel\",\n description: \"aria label for button that triggers more info dialog\",\n defaultMessage: \"more info\",\n },\n showLanguages: {\n id: \"Nimbus.LocalizedField.showLanguages\",\n description:\n \"Label for showing all language inputs when toggle button is pressed\",\n defaultMessage: \"Show all languages\",\n },\n hideLanguages: {\n id: \"Nimbus.LocalizedField.hideLanguages\",\n description:\n \"Label for hiding all language inputs when toggle button is pressed\",\n defaultMessage: \"Hide all languages\",\n },\n showCurrencies: {\n id: \"Nimbus.LocalizedField.showCurrencies\",\n description:\n \"Label for showing all currency inputs when toggle button is pressed\",\n defaultMessage: \"Show all currencies\",\n },\n hideCurrencies: {\n id: \"Nimbus.LocalizedField.hideCurrencies\",\n description:\n \"Label for hiding all currency inputs when toggle button is pressed\",\n defaultMessage: \"Hide all currencies\",\n },\n});\n","import { createSlotRecipeContext } from \"@chakra-ui/react\";\nimport type {\n LocalizedFieldRootSlotProps,\n LocalizedFieldLabelSlotProps,\n LocalizedFieldInfoDialogSlotProps,\n LocalizedFieldFieldsContainerSlotProps,\n LocalizedFieldDescriptionSlotProps,\n LocalizedFieldErrorSlotProps,\n LocalizedFieldToggleButtonContainerSlotProps,\n LocalizedFieldLocaleFieldRootSlotProps,\n LocalizedFieldLocaleFieldLabelSlotProps,\n LocalizedFieldLocaleFieldInputSlotProps,\n} from \"./localized-field.types\";\n\nconst { withProvider, withContext } = createSlotRecipeContext({\n key: \"localizedField\",\n});\n\n// Root Slot\nexport const LocalizedFieldRootSlot = withProvider<\n HTMLFieldSetElement,\n LocalizedFieldRootSlotProps\n>(\"fieldset\", \"root\");\n\n// Label Slot\nexport const LocalizedFieldLabelSlot = withContext<\n HTMLLabelElement,\n LocalizedFieldLabelSlotProps\n>(\"legend\", \"label\");\n\n// InfoDialog Slot\nexport const LocalizedFieldInfoDialogSlot = withContext<\n HTMLDivElement,\n LocalizedFieldInfoDialogSlotProps\n>(\"div\", \"infoDialog\");\n\n// FieldsContainer Slot\nexport const LocalizedFieldFieldsContainerSlot = withContext<\n HTMLDivElement,\n LocalizedFieldFieldsContainerSlotProps\n>(\"div\", \"fieldsContainer\");\n\n// Description Slot\nexport const LocalizedFieldDescriptionSlot = withContext<\n HTMLDivElement,\n LocalizedFieldDescriptionSlotProps\n>(\"div\", \"description\");\n\n// Error Slot\nexport const LocalizedFieldErrorSlot = withContext<\n HTMLDivElement,\n LocalizedFieldErrorSlotProps\n>(\"div\", \"error\");\n\n// ToggleButtonContainer Slot\nexport const LocalizedFieldToggleButtonContainerSlot = withContext<\n HTMLDivElement,\n LocalizedFieldToggleButtonContainerSlotProps\n>(\"div\", \"toggleButtonContainer\");\n\n// LocaleFieldRoot Slot\nexport const LocalizedFieldLocaleFieldRootSlot = withContext<\n HTMLDivElement,\n LocalizedFieldLocaleFieldRootSlotProps\n>(\"div\", \"localeFieldRoot\");\n\n// FieldLabel Slot\nexport const LocalizedFieldLocaleFieldLabelSlot = withContext<\n HTMLDivElement,\n LocalizedFieldLocaleFieldLabelSlotProps\n>(\"div\", \"localeFieldLabel\");\n\n// FieldInput Slot\nexport const LocalizedFieldLocaleFieldInputSlot = withContext<\n HTMLDivElement,\n LocalizedFieldLocaleFieldInputSlotProps\n>(\"div\", \"localeFieldInput\");\n","import { FormattedMessage } from \"react-intl\";\nimport {\n FormField,\n type CurrencyCode,\n type MoneyInputValue,\n type MoneyValue,\n type FieldErrorsData,\n MoneyInput,\n} from \"@/components\";\nimport { messages } from \"../localized-field.i18n\";\nimport type { LocalizedString } from \"../localized-field.types\";\n\ntype LanguagesSplitByDefaultLocale = {\n related: string[];\n unrelated: string[];\n};\n\ntype TouchedLocalizedString = { [locale: string]: boolean };\n\ntype CustomFormikErrors<Values> = {\n [K in keyof Values]?: FieldErrorsData;\n};\n\nexport const RequiredValueErrorMessage = () => (\n <FormField.Error>\n <FormattedMessage {...messages.missingRequiredField} />\n </FormField.Error>\n);\n\nexport const getLocaleFieldAttribute = (\n fieldGroupAttr?: string,\n locale?: string\n): string | undefined =>\n fieldGroupAttr && locale ? `${fieldGroupAttr}.${locale}` : undefined;\n\n// gets the language tag of a given locale, e.g. `de` in `de-DE`\nexport const getLanguageForLocale = (locale: string): string =>\n locale.split(\"-\")[0];\n\n// splits the locales into two groups:\n// - the 'related' array contains locales with the same language tag as the default locale,\n// e.g. if the default locale is de-DE, related would be ['de-DE', 'de-CH']\n// - the 'unrelated' array contains locales with a different different language tag from the default locale\n//. e.g. if the default locale is de-DE, unrelated would be ['pt-BR', 'en-GB', 'zh-Hans']\nexport const splitLanguages = (\n defaultLocale: string,\n locales: string[]\n): LanguagesSplitByDefaultLocale => {\n const defaultLanguage = getLanguageForLocale(defaultLocale);\n const related = locales.filter(\n (locale) => getLanguageForLocale(locale) === defaultLanguage\n );\n const unrelated = locales.filter(\n (locale) => getLanguageForLocale(locale) !== defaultLanguage\n );\n return {\n unrelated,\n related,\n };\n};\n\n// sorts locales with the following priority:\n// - The selected locale is placed first (e.g pt-BR)\n// - All locales using the same language tag as the selected language\n// follow (e.g. pt, pt-PT). They are sorted alphabetically.\n// - All other locales follow, sorted alphabetically as well\nexport const sortLocalesByDefaultLocaleLanguage = (\n defaultLocale: string,\n allLocales: string[]\n): string[] => {\n const { related, unrelated } = splitLanguages(\n defaultLocale,\n allLocales.filter((locale: string) => locale !== defaultLocale)\n );\n\n return [defaultLocale, ...related.sort(), ...unrelated.sort()];\n};\n\nexport const sortCurrencies = (\n defaultCurrency: CurrencyCode,\n allCurrencies: CurrencyCode[]\n) => {\n const remainingCurrencies = allCurrencies.filter(\n (currency) => currency !== defaultCurrency\n );\n return [defaultCurrency, ...remainingCurrencies.sort()];\n};\n\nexport const getHasInvalidLocalizedFields = <TErrors extends object>(\n errors?: TErrors,\n defaultLocaleOrCurrency?: string\n): boolean => {\n if (errors && Object.keys(errors).length > 0 && defaultLocaleOrCurrency) {\n return Object.keys(errors).some(\n (localeOrCurrency) => localeOrCurrency !== defaultLocaleOrCurrency\n );\n }\n return false;\n};\n\nexport const createLocalizedString = (\n locales: string[],\n existingLocalizedString: LocalizedString\n): LocalizedString => {\n const localesInLocalizedString = Array.from(\n new Set([...locales, ...Object.keys(existingLocalizedString)])\n );\n\n return localesInLocalizedString.reduce<LocalizedString>(\n (localizedString, locale) => ({\n ...localizedString,\n [locale]: existingLocalizedString?.[locale] || \"\",\n }),\n {}\n );\n};\n\n// Note: I prefer `isLocalizedStringEmpty`, but keeping this as `isEmpty` for api consistency with UI Kit\nexport const isEmpty = (localizedString?: LocalizedString): boolean => {\n if (!localizedString) return true;\n return Object.values(localizedString).every(\n (value?: string) => !value || value?.trim().length === 0\n );\n};\n\nexport const omitEmptyTranslations = <Translations extends LocalizedString>(\n localizedString: Translations\n): LocalizedString => {\n // TODO: is it necessary to create a util that enforces a consistent warning/error format, e.g.\n // `<COMPONENT_NAME> - Warning: <WARNING_MESSAGE>`\n if (typeof localizedString !== \"object\") {\n console.warn(\n \"Nimbus Localized Field - Warning: omitEmptyTranslations must be called with an object\"\n );\n }\n\n return Object.entries(localizedString).reduce<LocalizedString>(\n (localizedStringWithoutEmptyTranslations, [locale, value]) => {\n if (value && value.trim().length > 0) {\n return {\n ...localizedStringWithoutEmptyTranslations,\n [locale]: value,\n };\n }\n return localizedStringWithoutEmptyTranslations;\n },\n {}\n );\n};\n\nexport const isTouched = (touched?: TouchedLocalizedString): boolean => {\n if (touched) {\n return Object.values(touched).some(Boolean);\n }\n return false;\n};\n\n/**\n * Use this function to convert the Formik `errors` object type to\n * our custom field errors type.\n * This is primarly useful when using TypeScript.\n */\nexport function toFieldErrors<FormValues>(\n errors: unknown\n): CustomFormikErrors<FormValues> {\n return errors as CustomFormikErrors<FormValues>;\n}\n\nexport const convertToMoneyValues = (\n values: MoneyInputValue[],\n currency: string\n): Array<MoneyValue | null> =>\n Object.values(values).map<MoneyValue | null>((value) => {\n return MoneyInput.convertToMoneyValue(value, currency);\n });\n\nexport const parseMoneyValues = (\n moneyValues: MoneyValue[] = [],\n locale: string\n): Record<CurrencyCode, MoneyInputValue> =>\n moneyValues.reduce<Record<CurrencyCode, MoneyInputValue>>(\n (allValues, moneyValue) => {\n const value = MoneyInput.parseMoneyValue(moneyValue, locale);\n return {\n ...allValues,\n [value.currencyCode]: value,\n };\n },\n {} as Record<CurrencyCode, MoneyInputValue>\n );\n\nexport const getHighPrecisionCurrencies = (\n values: Record<CurrencyCode, MoneyInputValue>,\n locale: string\n): CurrencyCode[] => {\n const typedCurrencyCodes = Object.keys(values) as CurrencyCode[];\n return typedCurrencyCodes.filter((currencyCode) =>\n MoneyInput.isHighPrecision(values[currencyCode], locale)\n );\n};\n\nexport const getEmptyCurrencies = (\n values: Record<CurrencyCode, MoneyInputValue>\n): CurrencyCode[] => {\n const typedCurrencyCodes = Object.keys(values) as CurrencyCode[];\n return typedCurrencyCodes.filter((currencyCode) =>\n MoneyInput.isEmpty(values[currencyCode])\n );\n};\n","import { useCallback } from \"react\";\nimport {\n FormField,\n Icon,\n TextInput,\n MoneyInput,\n type CustomEvent,\n MultilineTextInput,\n RichTextInput,\n type MoneyInputValue,\n type CurrencyCode,\n} from \"@/components\";\nimport { WarningAmber } from \"@commercetools/nimbus-icons\";\nimport {\n LocalizedFieldLocaleFieldRootSlot,\n LocalizedFieldLocaleFieldInputSlot,\n LocalizedFieldLocaleFieldLabelSlot,\n} from \"../localized-field.slots\";\nimport type { LocalizedFieldLocaleFieldProps } from \"../localized-field.types\";\n\n/**\n * LocalizedFieldLocaleField - Individual locale or currency input field\n *\n * Renders a single input field for a specific locale or currency with integrated\n * label, description, warning, and error message display. Supports text, multiline,\n * richText, and money input types.\n *\n * @supportsStyleProps\n */\nexport const LocalizedFieldLocaleField = ({\n type,\n size,\n localeOrCurrency,\n id,\n name,\n inputValue: inputValueFromProps,\n description,\n warning,\n error,\n onChange,\n onBlur,\n onFocus,\n isRequired,\n isReadOnly,\n isDisabled,\n isInvalid,\n touched,\n ...otherProps\n}: LocalizedFieldLocaleFieldProps) => {\n let InputComponent:\n | typeof TextInput\n | typeof MultilineTextInput\n | typeof MoneyInput\n | typeof RichTextInput;\n switch (type) {\n case \"text\":\n default:\n InputComponent = TextInput;\n break;\n case \"multiLine\":\n InputComponent = MultilineTextInput;\n break;\n case \"money\":\n InputComponent = MoneyInput;\n break;\n case \"richText\":\n InputComponent = RichTextInput;\n break;\n }\n\n const getInputValue = () => {\n if (type === \"money\") {\n return inputValueFromProps\n ? (inputValueFromProps as MoneyInputValue)\n : ({ amount: \"\", currencyCode: localeOrCurrency } as MoneyInputValue);\n }\n return inputValueFromProps ? inputValueFromProps : \"\";\n };\n\n const inputValue = getInputValue();\n\n const handleChange = useCallback(\n (value: string | CustomEvent | undefined) => {\n // The `MoneyInput` onChange event value is a custom value,\n // and the `MoneyInput` modifies the input id and name since it is in a `group`,\n // so we need to build a separate return object for the MoneInput to return\n // the expected values\n const isMoneyInputEvent = typeof value === \"object\";\n const changeValue = {\n target: isMoneyInputEvent\n ? {\n id: value.target.id,\n name: value.target.name,\n locale: undefined,\n currency: localeOrCurrency as CurrencyCode,\n value: value.target.value,\n }\n : { id, name, locale: localeOrCurrency, currency: undefined, value },\n };\n onChange(changeValue);\n },\n [id, name, localeOrCurrency, onChange]\n );\n\n return (\n <LocalizedFieldLocaleFieldRootSlot asChild>\n <FormField.Root\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={(isInvalid || !!error) && touched}\n direction=\"row\"\n size={size}\n id={id}\n >\n <LocalizedFieldLocaleFieldLabelSlot\n display={type === \"money\" ? \"none\" : undefined}\n {...(isDisabled && { \"data-disabled\": isDisabled })}\n asChild\n >\n <FormField.Label>\n {localeOrCurrency.toLocaleUpperCase()}\n </FormField.Label>\n </LocalizedFieldLocaleFieldLabelSlot>\n <FormField.Input>\n <LocalizedFieldLocaleFieldInputSlot\n aria-required={isRequired}\n asChild\n >\n <InputComponent\n {...otherProps}\n size={size}\n value={inputValue as string & MoneyInputValue}\n onChange={handleChange}\n onBlur={(e: React.FocusEvent | CustomEvent) =>\n onBlur?.(e, localeOrCurrency)\n }\n onFocus={(e: React.FocusEvent | CustomEvent) =>\n onFocus?.(e, localeOrCurrency)\n }\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n isInvalid={(isInvalid || !!error) && touched}\n />\n </LocalizedFieldLocaleFieldInputSlot>\n </FormField.Input>\n {(description || (warning && touched)) && (\n <FormField.Description\n role={warning && touched ? \"status\" : undefined}\n color={warning && touched ? \"warning.11\" : undefined}\n display=\"flex\"\n gap=\"100\"\n alignItems=\"center\"\n >\n {warning && touched ? (\n <>\n <Icon colorPalette=\"warning\">\n <WarningAmber />\n </Icon>\n {warning}\n </>\n ) : (\n description\n )}\n </FormField.Description>\n )}\n {error && touched && <FormField.Error>{error}</FormField.Error>}\n </FormField.Root>\n </LocalizedFieldLocaleFieldRootSlot>\n );\n};\n","import { useState, useMemo } from \"react\";\nimport { useIntl } from \"react-intl\";\nimport {\n Collection as RaCollection,\n Dialog as RaDialog,\n DialogTrigger as RaDialogTrigger,\n} from \"react-aria-components\";\nimport { useField, useId } from \"react-aria\";\nimport {\n ErrorOutline,\n HelpOutline,\n Language,\n Payments,\n WarningAmber,\n} from \"@commercetools/nimbus-icons\";\nimport {\n Box,\n Button,\n FieldErrors,\n Icon,\n IconButton,\n Stack,\n type CurrencyCode,\n} from \"@/components\";\nimport { Popover } from \"../../popover\";\nimport { messages } from \"../localized-field.i18n\";\nimport {\n LocalizedFieldRootSlot,\n LocalizedFieldLabelSlot,\n LocalizedFieldInfoDialogSlot,\n LocalizedFieldFieldsContainerSlot,\n LocalizedFieldDescriptionSlot,\n LocalizedFieldErrorSlot,\n LocalizedFieldToggleButtonContainerSlot,\n} from \"../localized-field.slots\";\nimport type {\n LocalizedFieldProps,\n MergedLocaleFieldData,\n LocalizedCurrency,\n} from \"../localized-field.types\";\n\nimport {\n getHasInvalidLocalizedFields,\n getLocaleFieldAttribute,\n sortCurrencies,\n sortLocalesByDefaultLocaleLanguage,\n} from \"../utils/localized-field.utils\";\nimport { LocalizedFieldLocaleField } from \"./localized-field.locale-field\";\n\n/**\n * LocalizedField - Root component for managing localized input fields\n *\n * Provides a fieldset container for multiple locale-specific or currency-specific input fields\n * with expand/collapse functionality and integrated validation display. Supports text, multiline,\n * richText, and money input types.\n *\n * @supportsStyleProps\n */\nexport const LocalizedField = ({\n type = \"text\",\n id,\n name,\n defaultLocaleOrCurrency,\n valuesByLocaleOrCurrency,\n placeholdersByLocaleOrCurrency,\n descriptionsByLocaleOrCurrency,\n warningsByLocaleOrCurrency,\n errorsByLocaleOrCurrency,\n label,\n hint,\n description,\n warning,\n warnings,\n renderWarning,\n error,\n errors,\n renderError,\n touched,\n isRequired,\n isDisabled,\n isReadOnly,\n onChange,\n onBlur,\n onFocus,\n defaultExpanded = false,\n displayAllLocalesOrCurrencies = false,\n size,\n autoFocus,\n [\"data-track-component\"]: dataTrackComponent,\n [\"data-testid\"]: dataTestId,\n [\"data-test\"]: dataTest,\n // DOM & Style props for wrapper container\n ...rest\n}: LocalizedFieldProps) => {\n const [expanded, setExpanded] = useState(\n displayAllLocalesOrCurrencies || defaultExpanded\n );\n\n const { formatMessage } = useIntl();\n\n // Used to associate more info dialog with fieldset via `aria-controls`\n const localeFieldsContainerId = useId();\n // Used to associate more info dialog with fieldset via `aria-details`\n const moreDetailsButtonId = useId();\n\n // Either `error` exists, or there are `true` fields in the UI Kit compat `errors` object\n const hasError: boolean = Boolean(\n error || (errors && Object.values(errors).some((error) => error === true))\n );\n\n // Either `warning` exists, or there are `true` fields in the UI Kit compat `warnings` object\n const hasWarning: boolean = Boolean(\n warning || (warnings && Object.values(warnings).some(Boolean))\n );\n\n // FieldGroup is invalid if a non-field-specific error is passed and the group has been touched\n // When FieldGroup is invalid, all fields will display error styling without displaying a field-specific error message\n const isInvalid: boolean = !!(hasError && touched);\n\n const { labelProps, fieldProps, descriptionProps, errorMessageProps } =\n useField({\n id,\n label,\n description,\n errorMessage: error,\n isInvalid,\n });\n\n // Array of locales/currencies to display as input fields\n const localizationKeys: string[] | CurrencyCode[] = Object.keys(\n valuesByLocaleOrCurrency\n );\n\n // Merge all -ByLocaleOrCurrencies data for each field\n const allDataForFields = useMemo(() => {\n const sortedFieldData =\n type === \"money\"\n ? sortCurrencies(\n defaultLocaleOrCurrency as CurrencyCode,\n localizationKeys as CurrencyCode[]\n )\n : sortLocalesByDefaultLocaleLanguage(\n defaultLocaleOrCurrency,\n localizationKeys\n );\n\n return sortedFieldData.reduce(\n (allFieldData: MergedLocaleFieldData[], localizationKey) => {\n const allDataForLocale = {\n localeOrCurrency: localizationKey,\n inputValue:\n type === \"money\"\n ? (valuesByLocaleOrCurrency as LocalizedCurrency)[localizationKey]\n : (valuesByLocaleOrCurrency[localizationKey] as string),\n placeholder: placeholdersByLocaleOrCurrency?.[localizationKey],\n description: descriptionsByLocaleOrCurrency?.[localizationKey],\n warning: warningsByLocaleOrCurrency?.[localizationKey],\n error: errorsByLocaleOrCurrency?.[localizationKey],\n // autoFocus default/first locale field\n ...(localizationKey === defaultLocaleOrCurrency && autoFocus\n ? { autoFocus }\n : {}),\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n };\n if (\n expanded ||\n // Only display defaultLocaleOrInput field if fieldGroup is not expanded\n (!expanded && localizationKey === defaultLocaleOrCurrency)\n ) {\n return [...allFieldData, allDataForLocale];\n }\n return allFieldData;\n },\n []\n );\n }, [\n valuesByLocaleOrCurrency,\n placeholdersByLocaleOrCurrency,\n descriptionsByLocaleOrCurrency,\n warningsByLocaleOrCurrency,\n errorsByLocaleOrCurrency,\n defaultLocaleOrCurrency,\n expanded,\n isInvalid,\n isRequired,\n isDisabled,\n isReadOnly,\n ]);\n\n const groupHasInvalidLocalizedFields = getHasInvalidLocalizedFields(\n errorsByLocaleOrCurrency,\n defaultLocaleOrCurrency\n );\n\n const shouldExpandInvalidFields =\n (groupHasInvalidLocalizedFields || hasError) && touched;\n // If there are fields that are invalid, ensure that field group\n // shows all fields so that invalid field is visible\n if (shouldExpandInvalidFields && !expanded) {\n setExpanded(true);\n }\n\n return (\n <LocalizedFieldRootSlot\n {...rest}\n {...fieldProps}\n aria-details={hint ? moreDetailsButtonId : undefined}\n type={type}\n size={size}\n name={name}\n >\n {label && (\n <Stack direction=\"row\" gap=\"0\">\n <LocalizedFieldLabelSlot {...labelProps}>\n {label}\n {isRequired && <sup aria-hidden=\"true\">*</sup>}\n </LocalizedFieldLabelSlot>\n {hint && (\n <RaDialogTrigger>\n <IconButton\n id={moreDetailsButtonId}\n aria-label={formatMessage(messages.infoBoxTriggerAriaLabel)}\n size=\"2xs\"\n colorPalette=\"info\"\n variant=\"link\"\n >\n <HelpOutline />\n </IconButton>\n\n <Popover padding={0}>\n <LocalizedFieldInfoDialogSlot asChild>\n <RaDialog>\n <Box p=\"300\">{hint}</Box>\n </RaDialog>\n </LocalizedFieldInfoDialogSlot>\n </Popover>\n </RaDialogTrigger>\n )}\n </Stack>\n )}\n <LocalizedFieldFieldsContainerSlot\n id={localeFieldsContainerId}\n data-expanded={expanded}\n >\n <RaCollection items={allDataForFields}>\n {(item) => {\n return (\n <LocalizedFieldLocaleField\n {...item}\n size={size}\n type={type}\n onChange={onChange}\n onBlur={onBlur}\n onFocus={onFocus}\n touched={touched}\n // Format field attributes to match uikit pattern\n id={getLocaleFieldAttribute(\n fieldProps.id,\n item.localeOrCurrency\n )}\n name={getLocaleFieldAttribute(name, item.localeOrCurrency)}\n data-test={getLocaleFieldAttribute(\n dataTest,\n item.localeOrCurrency\n )}\n data-testid={getLocaleFieldAttribute(\n dataTestId,\n item.localeOrCurrency\n )}\n data-track-component={getLocaleFieldAttribute(\n dataTrackComponent,\n item.localeOrCurrency\n )}\n />\n );\n }}\n </RaCollection>\n </LocalizedFieldFieldsContainerSlot>\n\n {!displayAllLocalesOrCurrencies && localizationKeys.length > 1 && (\n <LocalizedFieldToggleButtonContainerSlot>\n <Button\n aria-controls={localeFieldsContainerId}\n aria-describedby={labelProps.id}\n aria-expanded={expanded}\n onPress={() => setExpanded(!expanded)}\n isDisabled={isDisabled || (shouldExpandInvalidFields && expanded)}\n variant=\"ghost\"\n size=\"2xs\"\n colorPalette=\"primary\"\n >\n <Box\n as={type === \"money\" ? Payments : Language}\n display=\"inline-flex\"\n boxSize=\"400\"\n verticalAlign=\"text-bottom\"\n mr=\"100\"\n />\n {type === \"money\"\n ? expanded\n ? formatMessage(messages.hideCurrencies)\n : formatMessage(messages.showCurrencies)\n : expanded\n ? formatMessage(messages.hideLanguages)\n : formatMessage(messages.showLanguages)}\n </Button>\n </LocalizedFieldToggleButtonContainerSlot>\n )}\n {(description || (hasWarning && touched)) && (\n <LocalizedFieldDescriptionSlot\n role={hasWarning && touched ? \"status\" : undefined}\n color={hasWarning && touched ? \"warning.11\" : undefined}\n // In order to associate the warnings from both the warning and legacy warnings props with the fieldset,\n // we must associate, them to this element with aria-labelledby\n aria-labelledby={`${descriptionProps.id}-warning`}\n {...descriptionProps}\n >\n {/** Warnings are for compat with UI Kit localized fields */}\n {hasWarning && touched ? (\n <>\n <Icon colorPalette=\"warning\">\n <WarningAmber />\n </Icon>\n <Stack gap=\"0\" id={`${descriptionProps.id}-warning`}>\n {warning}\n {warnings && hasWarning && (\n <FieldErrors\n errors={warnings}\n renderError={renderWarning}\n colorPalette=\"warning\"\n role={undefined}\n />\n )}\n </Stack>\n </>\n ) : (\n description\n )}\n </LocalizedFieldDescriptionSlot>\n )}\n {isInvalid && (\n <LocalizedFieldErrorSlot\n // In order to associate the errors from both the error and legacy errors props with the fieldset,\n // we must associate them to this element with aria-labelledby.\n aria-labelledby={`${errorMessageProps.id}-error`}\n role=\"alert\"\n {...errorMessageProps}\n >\n <Icon>\n <ErrorOutline />\n </Icon>\n <Stack gap=\"0\" id={`${errorMessageProps.id}-error`}>\n {error}\n {errors && hasError && (\n <FieldErrors\n errors={errors}\n renderError={renderError}\n role={undefined}\n />\n )}\n </Stack>\n </LocalizedFieldErrorSlot>\n )}\n </LocalizedFieldRootSlot>\n );\n};\n","import { LocalizedFieldRoot } from \"./components\";\nimport {\n getLocaleFieldAttribute,\n createLocalizedString,\n isEmpty,\n omitEmptyTranslations,\n isTouched,\n RequiredValueErrorMessage,\n toFieldErrors,\n convertToMoneyValues,\n parseMoneyValues,\n getHighPrecisionCurrencies,\n getEmptyCurrencies,\n} from \"./utils/localized-field.utils\";\n\n/**\n * LocalizedField component with utility methods for managing localized input fields.\n *\n * This component provides a fieldset for managing multiple locale-specific or currency-specific\n * input fields with expand/collapse functionality and integrated validation display.\n *\n * **Utility Methods** (for compatibility with UI Kit):\n * - `getId` / `getName`: Format field attributes with locale suffix\n * - `isTouched`: Check if any locale field has been touched\n * - `isEmpty`: Check if all locale fields are empty\n * - `createLocalizedString`: Create empty localized string object\n * - `omitEmptyTranslations`: Remove empty translations from localized object\n * - `RequiredValueErrorMessage`: Standard error message component\n * - `toFieldErrors`: Convert errors to field error format\n * - `convertToMoneyValues` / `parseMoneyValues`: Money value conversion utilities\n * - `getHighPrecisionCurrencies` / `getEmptyCurrencies`: Currency utilities\n *\n * @example\n * ```tsx\n * <LocalizedField\n * type=\"text\"\n * label=\"Product Name\"\n * defaultLocaleOrCurrency=\"en\"\n * valuesByLocaleOrCurrency={{ en: \"Product\", de: \"Produkt\" }}\n * onChange={(e) => console.log(e.target.locale, e.target.value)}\n * />\n * ```\n */\nexport const LocalizedField = Object.assign(LocalizedFieldRoot, {\n // Add util methods here for compat with uikit - see https://github.com/commercetools/ui-kit/blob/e97e0c7e8f3e9393981bf1949573212d7c571c90/packages/components/inputs/localized-text-input/src/localized-text-input.tsx#L396\n getId: getLocaleFieldAttribute,\n getName: getLocaleFieldAttribute,\n isTouched,\n isEmpty,\n createLocalizedString,\n omitEmptyTranslations,\n RequiredValueErrorMessage,\n toFieldErrors,\n convertToMoneyValues,\n parseMoneyValues,\n getHighPrecisionCurrencies,\n getEmptyCurrencies,\n});\n"],"names":["messages","defineMessages","withProvider","withContext","createSlotRecipeContext","LocalizedFieldRootSlot","LocalizedFieldLabelSlot","LocalizedFieldInfoDialogSlot","LocalizedFieldFieldsContainerSlot","LocalizedFieldDescriptionSlot","LocalizedFieldErrorSlot","LocalizedFieldToggleButtonContainerSlot","LocalizedFieldLocaleFieldRootSlot","LocalizedFieldLocaleFieldLabelSlot","LocalizedFieldLocaleFieldInputSlot","RequiredValueErrorMessage","jsx","FormField","FormattedMessage","getLocaleFieldAttribute","fieldGroupAttr","locale","getLanguageForLocale","splitLanguages","defaultLocale","locales","defaultLanguage","related","sortLocalesByDefaultLocaleLanguage","allLocales","unrelated","sortCurrencies","defaultCurrency","allCurrencies","remainingCurrencies","currency","getHasInvalidLocalizedFields","errors","defaultLocaleOrCurrency","localeOrCurrency","createLocalizedString","existingLocalizedString","localizedString","isEmpty","value","omitEmptyTranslations","localizedStringWithoutEmptyTranslations","isTouched","touched","toFieldErrors","convertToMoneyValues","values","MoneyInput","parseMoneyValues","moneyValues","allValues","moneyValue","getHighPrecisionCurrencies","currencyCode","getEmptyCurrencies","LocalizedFieldLocaleField","type","size","id","name","inputValueFromProps","description","warning","error","onChange","onBlur","onFocus","isRequired","isReadOnly","isDisabled","isInvalid","otherProps","InputComponent","TextInput","MultilineTextInput","RichTextInput","inputValue","handleChange","useCallback","changeValue","jsxs","e","Fragment","Icon","WarningAmber","LocalizedField","valuesByLocaleOrCurrency","placeholdersByLocaleOrCurrency","descriptionsByLocaleOrCurrency","warningsByLocaleOrCurrency","errorsByLocaleOrCurrency","label","hint","warnings","renderWarning","renderError","defaultExpanded","displayAllLocalesOrCurrencies","autoFocus","dataTrackComponent","dataTestId","dataTest","rest","expanded","setExpanded","useState","formatMessage","useIntl","localeFieldsContainerId","useId","moreDetailsButtonId","hasError","hasWarning","labelProps","fieldProps","descriptionProps","errorMessageProps","useField","localizationKeys","allDataForFields","useMemo","allFieldData","localizationKey","allDataForLocale","shouldExpandInvalidFields","Stack","RaDialogTrigger","IconButton","HelpOutline","Popover","RaDialog","Box","RaCollection","item","Button","Payments","Language","FieldErrors","ErrorOutline","LocalizedFieldRoot"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAEO,MAAMA,IAAW,gBAAAC,GAAe;AAAA,EACrC,sBAAsB;AAAA,IAC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AO,OAAOsD,IAAoB;AAAA;AAAA,EAE9D,OAAO7H;AAAA,EACP,SAASA;AAAA,EACT,WAAA4B;AAAA,EACA,SAAAJ;AAAA,EACA,uBAAAH;AAAA,EACA,uBAAAK;AAAA,EACA,2BAAA9B;AAAA,EACA,eAAAkC;AAAA,EACA,sBAAAC;AAAA,EACA,kBAAAG;AAAA,EACA,4BAAAI;AAAA,EACA,oBAAAE;AACF,CAAC;"}
@@ -1,2 +1,2 @@
1
- "use strict";const t=require("react/jsx-runtime"),J=require("react-intl"),S=require("./money-input-B3fxVHDJ.cjs.js"),L=require("./form-field-D36wdkEj.cjs.js"),W=require("react"),ie=require("./Dialog-flHBRP1h.cjs.js"),xe=require("./CollectionBuilder-DjRx57vm.cjs.js"),I=require("@commercetools/nimbus-icons"),be=require("./popover-DHeke7qU.cjs.js"),he=require("@chakra-ui/react"),U=require("./icon-D39U--jA.cjs.js"),me=require("./rich-text-input-CpQVkFRl.cjs.js"),Fe=require("./multiline-text-input-C5pMVuYM.cjs.js"),je=require("./text-input-Dv2HkOIG.cjs.js"),re=require("./mergeProps-CxnHrnow.cjs.js"),fe=require("./useField-lK6K_h1G.cjs.js"),se=require("./field-errors-D2re_C_c.cjs.js"),A=require("./stack-CIN13EDn.cjs.js"),Le=require("./icon-button-ClTyaPhB.cjs.js"),oe=require("./box-CWni3A32.cjs.js"),Ie=require("./button-CvWz8q1N.cjs.js"),v=J.defineMessages({missingRequiredField:{id:"Nimbus.LocalizedField.missingRequiredField",description:"Error message for missing required value",defaultMessage:"This field is required. Provide at least one value."},infoBoxTriggerAriaLabel:{id:"Nimbus.LocalizedField.infoBoxTriggerAriaLabel",description:"aria label for button that triggers more info dialog",defaultMessage:"more info"},showLanguages:{id:"Nimbus.LocalizedField.showLanguages",description:"Label for showing all language inputs when toggle button is pressed",defaultMessage:"Show all languages"},hideLanguages:{id:"Nimbus.LocalizedField.hideLanguages",description:"Label for hiding all language inputs when toggle button is pressed",defaultMessage:"Hide all languages"},showCurrencies:{id:"Nimbus.LocalizedField.showCurrencies",description:"Label for showing all currency inputs when toggle button is pressed",defaultMessage:"Show all currencies"},hideCurrencies:{id:"Nimbus.LocalizedField.hideCurrencies",description:"Label for hiding all currency inputs when toggle button is pressed",defaultMessage:"Hide all currencies"}}),{withProvider:ve,withContext:p}=he.createSlotRecipeContext({key:"localizedField"}),$e=ve("fieldset","root"),qe=p("legend","label"),Me=p("div","infoDialog"),we=p("div","fieldsContainer"),Ce=p("div","description"),Ee=p("div","error"),ke=p("div","toggleButtonContainer"),Se=p("div","localeFieldRoot"),ze=p("div","localeFieldLabel"),ye=p("div","localeFieldInput"),Te=()=>t.jsx(L.FormField.Error,{children:t.jsx(J.FormattedMessage,{...v.missingRequiredField})}),m=(e,n)=>e&&n?`${e}.${n}`:void 0,D=e=>e.split("-")[0],Pe=(e,n)=>{const i=D(e),r=n.filter(l=>D(l)===i);return{unrelated:n.filter(l=>D(l)!==i),related:r}},Be=(e,n)=>{const{related:i,unrelated:r}=Pe(e,n.filter(s=>s!==e));return[e,...i.sort(),...r.sort()]},He=(e,n)=>{const i=n.filter(r=>r!==e);return[e,...i.sort()]},Ne=(e,n)=>e&&Object.keys(e).length>0&&n?Object.keys(e).some(i=>i!==n):!1,Ve=(e,n)=>Array.from(new Set([...e,...Object.keys(n)])).reduce((r,s)=>({...r,[s]:n?.[s]||""}),{}),Re=e=>e?Object.values(e).every(n=>!n||n?.trim().length===0):!0,Ae=e=>(typeof e!="object"&&console.warn("Nimbus Localized Field - Warning: omitEmptyTranslations must be called with an object"),Object.entries(e).reduce((n,[i,r])=>r&&r.trim().length>0?{...n,[i]:r}:n,{})),De=e=>e?Object.values(e).some(Boolean):!1;function We(e){return e}const Ue=(e,n)=>Object.values(e).map(i=>S.MoneyInput.convertToMoneyValue(i,n)),Je=(e=[],n)=>e.reduce((i,r)=>{const s=S.MoneyInput.parseMoneyValue(r,n);return{...i,[s.currencyCode]:s}},{}),Qe=(e,n)=>Object.keys(e).filter(r=>S.MoneyInput.isHighPrecision(e[r],n)),Xe=e=>Object.keys(e).filter(i=>S.MoneyInput.isEmpty(e[i])),Ye=({type:e,size:n,localeOrCurrency:i,id:r,name:s,inputValue:l,description:$,warning:x,error:b,onChange:F,onBlur:q,onFocus:M,isRequired:w,isReadOnly:h,isDisabled:j,isInvalid:f,touched:a,...P})=>{let o;switch(e){case"text":default:o=je.TextInput;break;case"multiLine":o=Fe.MultilineTextInput;break;case"money":o=S.MoneyInput;break;case"richText":o=me.RichTextInput;break}const C=e==="money"?l||{amount:"",currencyCode:i}:l||"",y=W.useCallback(d=>{const B={target:typeof d=="object"?{id:d.target.id,name:d.target.name,locale:void 0,currency:i,value:d.target.value}:{id:r,name:s,locale:i,currency:void 0,value:d}};F(B)},[r,s,i,F]);return t.jsx(Se,{asChild:!0,children:t.jsxs(L.FormField.Root,{isDisabled:j,isReadOnly:h,isInvalid:(f||!!b)&&a,direction:"row",size:n,id:r,children:[t.jsx(ze,{display:e==="money"?"none":void 0,...j&&{"data-disabled":j},asChild:!0,children:t.jsx(L.FormField.Label,{children:i.toLocaleUpperCase()})}),t.jsx(L.FormField.Input,{children:t.jsx(ye,{"aria-required":w,asChild:!0,children:t.jsx(o,{...P,size:n,value:C,onChange:y,onBlur:d=>q?.(d,i),onFocus:d=>M?.(d,i),isRequired:w,isDisabled:j,isReadOnly:h,isInvalid:(f||!!b)&&a})})}),($||x&&a)&&t.jsx(L.FormField.Description,{role:x&&a?"status":void 0,color:x&&a?"warning.11":void 0,display:"flex",gap:"100",alignItems:"center",children:x&&a?t.jsxs(t.Fragment,{children:[t.jsx(U.Icon,{colorPalette:"warning",children:t.jsx(I.WarningAmber,{})}),x]}):$}),b&&a&&t.jsx(L.FormField.Error,{children:b})]})})},Ze=({type:e="text",id:n,name:i,defaultLocaleOrCurrency:r,valuesByLocaleOrCurrency:s,placeholdersByLocaleOrCurrency:l,descriptionsByLocaleOrCurrency:$,warningsByLocaleOrCurrency:x,errorsByLocaleOrCurrency:b,label:F,hint:q,description:M,warning:w,warnings:h,renderWarning:j,error:f,errors:a,renderError:P,touched:o,isRequired:z,isDisabled:C,isReadOnly:y,onChange:d,onBlur:Q,onFocus:B,defaultExpanded:ae=!1,displayAllLocalesOrCurrencies:X=!1,size:Y,autoFocus:Z,["data-track-component"]:le,["data-testid"]:de,["data-test"]:ce,...ue})=>{const[c,_]=W.useState(X||ae),{formatMessage:E}=J.useIntl(),G=re.$bdb11010cef70236$export$f680877a34711e37(),O=re.$bdb11010cef70236$export$f680877a34711e37(),H=!!(f||a&&Object.values(a).some(u=>u===!0)),k=!!(w||h&&Object.values(h).some(Boolean)),T=!!(H&&o),{labelProps:K,fieldProps:ee,descriptionProps:N,errorMessageProps:V}=fe.$2baaea4c71418dea$export$294aa081a6c6f55d({id:n,label:F,description:M,errorMessage:f,isInvalid:T}),R=Object.keys(s),ge=W.useMemo(()=>(e==="money"?He(r,R):Be(r,R)).reduce((ne,g)=>{const pe={localeOrCurrency:g,inputValue:s[g],placeholder:l?.[g],description:$?.[g],warning:x?.[g],error:b?.[g],...g===r&&Z?{autoFocus:Z}:{},isInvalid:T,isRequired:z,isDisabled:C,isReadOnly:y};return c||!c&&g===r?[...ne,pe]:ne},[]),[s,l,$,x,b,r,c,T,z,C,y]),te=(Ne(b,r)||H)&&o;return te&&!c&&_(!0),t.jsxs($e,{...ue,...ee,"aria-details":q?O:void 0,type:e,size:Y,name:i,children:[F&&t.jsxs(A.Stack,{direction:"row",gap:"0",children:[t.jsxs(qe,{...K,children:[F,z&&t.jsx("sup",{"aria-hidden":"true",children:"*"})]}),q&&t.jsxs(ie.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[t.jsx(Le.IconButton,{id:O,"aria-label":E(v.infoBoxTriggerAriaLabel),size:"2xs",colorPalette:"info",variant:"link",children:t.jsx(I.HelpOutline,{})}),t.jsx(be.Popover,{padding:0,children:t.jsx(Me,{asChild:!0,children:t.jsx(ie.$de32f1b87079253c$export$3ddf2d174ce01153,{children:t.jsx(oe.Box,{p:"300",children:q})})})})]})]}),t.jsx(we,{id:G,"data-expanded":c,children:t.jsx(xe.$e1995378a142960e$export$fb8073518f34e6ec,{items:ge,children:u=>t.jsx(Ye,{...u,size:Y,type:e,onChange:d,onBlur:Q,onFocus:B,touched:o,id:m(ee.id,u.localeOrCurrency),name:m(i,u.localeOrCurrency),"data-test":m(ce,u.localeOrCurrency),"data-testid":m(de,u.localeOrCurrency),"data-track-component":m(le,u.localeOrCurrency)})})}),!X&&R.length>1&&t.jsx(ke,{children:t.jsxs(Ie.Button,{"aria-controls":G,"aria-describedby":K.id,"aria-expanded":c,onPress:()=>_(!c),isDisabled:C||te&&c,variant:"ghost",size:"2xs",colorPalette:"primary",children:[t.jsx(oe.Box,{as:e==="money"?I.Payments:I.Language,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),E(e==="money"?c?v.hideCurrencies:v.showCurrencies:c?v.hideLanguages:v.showLanguages)]})}),(M||k&&o)&&t.jsx(Ce,{role:k&&o?"status":void 0,color:k&&o?"warning.11":void 0,"aria-labelledby":`${N.id}-warning`,...N,children:k&&o?t.jsxs(t.Fragment,{children:[t.jsx(U.Icon,{colorPalette:"warning",children:t.jsx(I.WarningAmber,{})}),t.jsxs(A.Stack,{gap:"0",id:`${N.id}-warning`,children:[w,h&&k&&t.jsx(se.FieldErrors,{errors:h,renderError:j,colorPalette:"warning",role:void 0})]})]}):M}),T&&t.jsxs(Ee,{"aria-labelledby":`${V.id}-error`,role:"alert",...V,children:[t.jsx(U.Icon,{children:t.jsx(I.ErrorOutline,{})}),t.jsxs(A.Stack,{gap:"0",id:`${V.id}-error`,children:[f,a&&H&&t.jsx(se.FieldErrors,{errors:a,renderError:P,role:void 0})]})]})]})},_e=Object.assign(Ze,{getId:m,getName:m,isTouched:De,isEmpty:Re,createLocalizedString:Ve,omitEmptyTranslations:Ae,RequiredValueErrorMessage:Te,toFieldErrors:We,convertToMoneyValues:Ue,parseMoneyValues:Je,getHighPrecisionCurrencies:Qe,getEmptyCurrencies:Xe});exports.LocalizedField=_e;
2
- //# sourceMappingURL=localized-field-BudXks_7.cjs.js.map
1
+ "use strict";const t=require("react/jsx-runtime"),J=require("react-intl"),S=require("./money-input-BelTJgi2.cjs.js"),L=require("./form-field-CozKmli4.cjs.js"),W=require("react"),ie=require("./Dialog-flHBRP1h.cjs.js"),xe=require("./CollectionBuilder-DjRx57vm.cjs.js"),I=require("@commercetools/nimbus-icons"),be=require("./popover-DHeke7qU.cjs.js"),he=require("@chakra-ui/react"),U=require("./icon-D39U--jA.cjs.js"),me=require("./rich-text-input-D7zyqfNG.cjs.js"),Fe=require("./multiline-text-input-DJeOCh8z.cjs.js"),je=require("./text-input-YkL8bx31.cjs.js"),re=require("./mergeProps-CxnHrnow.cjs.js"),fe=require("./useField-lK6K_h1G.cjs.js"),se=require("./field-errors-D2re_C_c.cjs.js"),A=require("./stack-CIN13EDn.cjs.js"),Le=require("./icon-button-BPzrehNJ.cjs.js"),oe=require("./box-CWni3A32.cjs.js"),Ie=require("./button-CxL9YuuF.cjs.js"),v=J.defineMessages({missingRequiredField:{id:"Nimbus.LocalizedField.missingRequiredField",description:"Error message for missing required value",defaultMessage:"This field is required. Provide at least one value."},infoBoxTriggerAriaLabel:{id:"Nimbus.LocalizedField.infoBoxTriggerAriaLabel",description:"aria label for button that triggers more info dialog",defaultMessage:"more info"},showLanguages:{id:"Nimbus.LocalizedField.showLanguages",description:"Label for showing all language inputs when toggle button is pressed",defaultMessage:"Show all languages"},hideLanguages:{id:"Nimbus.LocalizedField.hideLanguages",description:"Label for hiding all language inputs when toggle button is pressed",defaultMessage:"Hide all languages"},showCurrencies:{id:"Nimbus.LocalizedField.showCurrencies",description:"Label for showing all currency inputs when toggle button is pressed",defaultMessage:"Show all currencies"},hideCurrencies:{id:"Nimbus.LocalizedField.hideCurrencies",description:"Label for hiding all currency inputs when toggle button is pressed",defaultMessage:"Hide all currencies"}}),{withProvider:ve,withContext:p}=he.createSlotRecipeContext({key:"localizedField"}),$e=ve("fieldset","root"),qe=p("legend","label"),Me=p("div","infoDialog"),we=p("div","fieldsContainer"),Ce=p("div","description"),Ee=p("div","error"),ke=p("div","toggleButtonContainer"),Se=p("div","localeFieldRoot"),ze=p("div","localeFieldLabel"),ye=p("div","localeFieldInput"),Te=()=>t.jsx(L.FormField.Error,{children:t.jsx(J.FormattedMessage,{...v.missingRequiredField})}),m=(e,n)=>e&&n?`${e}.${n}`:void 0,D=e=>e.split("-")[0],Pe=(e,n)=>{const i=D(e),r=n.filter(l=>D(l)===i);return{unrelated:n.filter(l=>D(l)!==i),related:r}},Be=(e,n)=>{const{related:i,unrelated:r}=Pe(e,n.filter(s=>s!==e));return[e,...i.sort(),...r.sort()]},He=(e,n)=>{const i=n.filter(r=>r!==e);return[e,...i.sort()]},Ne=(e,n)=>e&&Object.keys(e).length>0&&n?Object.keys(e).some(i=>i!==n):!1,Ve=(e,n)=>Array.from(new Set([...e,...Object.keys(n)])).reduce((r,s)=>({...r,[s]:n?.[s]||""}),{}),Re=e=>e?Object.values(e).every(n=>!n||n?.trim().length===0):!0,Ae=e=>(typeof e!="object"&&console.warn("Nimbus Localized Field - Warning: omitEmptyTranslations must be called with an object"),Object.entries(e).reduce((n,[i,r])=>r&&r.trim().length>0?{...n,[i]:r}:n,{})),De=e=>e?Object.values(e).some(Boolean):!1;function We(e){return e}const Ue=(e,n)=>Object.values(e).map(i=>S.MoneyInput.convertToMoneyValue(i,n)),Je=(e=[],n)=>e.reduce((i,r)=>{const s=S.MoneyInput.parseMoneyValue(r,n);return{...i,[s.currencyCode]:s}},{}),Qe=(e,n)=>Object.keys(e).filter(r=>S.MoneyInput.isHighPrecision(e[r],n)),Xe=e=>Object.keys(e).filter(i=>S.MoneyInput.isEmpty(e[i])),Ye=({type:e,size:n,localeOrCurrency:i,id:r,name:s,inputValue:l,description:$,warning:x,error:b,onChange:F,onBlur:q,onFocus:M,isRequired:w,isReadOnly:h,isDisabled:j,isInvalid:f,touched:a,...P})=>{let o;switch(e){case"text":default:o=je.TextInput;break;case"multiLine":o=Fe.MultilineTextInput;break;case"money":o=S.MoneyInput;break;case"richText":o=me.RichTextInput;break}const C=e==="money"?l||{amount:"",currencyCode:i}:l||"",y=W.useCallback(d=>{const B={target:typeof d=="object"?{id:d.target.id,name:d.target.name,locale:void 0,currency:i,value:d.target.value}:{id:r,name:s,locale:i,currency:void 0,value:d}};F(B)},[r,s,i,F]);return t.jsx(Se,{asChild:!0,children:t.jsxs(L.FormField.Root,{isDisabled:j,isReadOnly:h,isInvalid:(f||!!b)&&a,direction:"row",size:n,id:r,children:[t.jsx(ze,{display:e==="money"?"none":void 0,...j&&{"data-disabled":j},asChild:!0,children:t.jsx(L.FormField.Label,{children:i.toLocaleUpperCase()})}),t.jsx(L.FormField.Input,{children:t.jsx(ye,{"aria-required":w,asChild:!0,children:t.jsx(o,{...P,size:n,value:C,onChange:y,onBlur:d=>q?.(d,i),onFocus:d=>M?.(d,i),isRequired:w,isDisabled:j,isReadOnly:h,isInvalid:(f||!!b)&&a})})}),($||x&&a)&&t.jsx(L.FormField.Description,{role:x&&a?"status":void 0,color:x&&a?"warning.11":void 0,display:"flex",gap:"100",alignItems:"center",children:x&&a?t.jsxs(t.Fragment,{children:[t.jsx(U.Icon,{colorPalette:"warning",children:t.jsx(I.WarningAmber,{})}),x]}):$}),b&&a&&t.jsx(L.FormField.Error,{children:b})]})})},Ze=({type:e="text",id:n,name:i,defaultLocaleOrCurrency:r,valuesByLocaleOrCurrency:s,placeholdersByLocaleOrCurrency:l,descriptionsByLocaleOrCurrency:$,warningsByLocaleOrCurrency:x,errorsByLocaleOrCurrency:b,label:F,hint:q,description:M,warning:w,warnings:h,renderWarning:j,error:f,errors:a,renderError:P,touched:o,isRequired:z,isDisabled:C,isReadOnly:y,onChange:d,onBlur:Q,onFocus:B,defaultExpanded:ae=!1,displayAllLocalesOrCurrencies:X=!1,size:Y,autoFocus:Z,["data-track-component"]:le,["data-testid"]:de,["data-test"]:ce,...ue})=>{const[c,_]=W.useState(X||ae),{formatMessage:E}=J.useIntl(),G=re.$bdb11010cef70236$export$f680877a34711e37(),O=re.$bdb11010cef70236$export$f680877a34711e37(),H=!!(f||a&&Object.values(a).some(u=>u===!0)),k=!!(w||h&&Object.values(h).some(Boolean)),T=!!(H&&o),{labelProps:K,fieldProps:ee,descriptionProps:N,errorMessageProps:V}=fe.$2baaea4c71418dea$export$294aa081a6c6f55d({id:n,label:F,description:M,errorMessage:f,isInvalid:T}),R=Object.keys(s),ge=W.useMemo(()=>(e==="money"?He(r,R):Be(r,R)).reduce((ne,g)=>{const pe={localeOrCurrency:g,inputValue:s[g],placeholder:l?.[g],description:$?.[g],warning:x?.[g],error:b?.[g],...g===r&&Z?{autoFocus:Z}:{},isInvalid:T,isRequired:z,isDisabled:C,isReadOnly:y};return c||!c&&g===r?[...ne,pe]:ne},[]),[s,l,$,x,b,r,c,T,z,C,y]),te=(Ne(b,r)||H)&&o;return te&&!c&&_(!0),t.jsxs($e,{...ue,...ee,"aria-details":q?O:void 0,type:e,size:Y,name:i,children:[F&&t.jsxs(A.Stack,{direction:"row",gap:"0",children:[t.jsxs(qe,{...K,children:[F,z&&t.jsx("sup",{"aria-hidden":"true",children:"*"})]}),q&&t.jsxs(ie.$de32f1b87079253c$export$2e1e1122cf0cba88,{children:[t.jsx(Le.IconButton,{id:O,"aria-label":E(v.infoBoxTriggerAriaLabel),size:"2xs",colorPalette:"info",variant:"link",children:t.jsx(I.HelpOutline,{})}),t.jsx(be.Popover,{padding:0,children:t.jsx(Me,{asChild:!0,children:t.jsx(ie.$de32f1b87079253c$export$3ddf2d174ce01153,{children:t.jsx(oe.Box,{p:"300",children:q})})})})]})]}),t.jsx(we,{id:G,"data-expanded":c,children:t.jsx(xe.$e1995378a142960e$export$fb8073518f34e6ec,{items:ge,children:u=>t.jsx(Ye,{...u,size:Y,type:e,onChange:d,onBlur:Q,onFocus:B,touched:o,id:m(ee.id,u.localeOrCurrency),name:m(i,u.localeOrCurrency),"data-test":m(ce,u.localeOrCurrency),"data-testid":m(de,u.localeOrCurrency),"data-track-component":m(le,u.localeOrCurrency)})})}),!X&&R.length>1&&t.jsx(ke,{children:t.jsxs(Ie.Button,{"aria-controls":G,"aria-describedby":K.id,"aria-expanded":c,onPress:()=>_(!c),isDisabled:C||te&&c,variant:"ghost",size:"2xs",colorPalette:"primary",children:[t.jsx(oe.Box,{as:e==="money"?I.Payments:I.Language,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),E(e==="money"?c?v.hideCurrencies:v.showCurrencies:c?v.hideLanguages:v.showLanguages)]})}),(M||k&&o)&&t.jsx(Ce,{role:k&&o?"status":void 0,color:k&&o?"warning.11":void 0,"aria-labelledby":`${N.id}-warning`,...N,children:k&&o?t.jsxs(t.Fragment,{children:[t.jsx(U.Icon,{colorPalette:"warning",children:t.jsx(I.WarningAmber,{})}),t.jsxs(A.Stack,{gap:"0",id:`${N.id}-warning`,children:[w,h&&k&&t.jsx(se.FieldErrors,{errors:h,renderError:j,colorPalette:"warning",role:void 0})]})]}):M}),T&&t.jsxs(Ee,{"aria-labelledby":`${V.id}-error`,role:"alert",...V,children:[t.jsx(U.Icon,{children:t.jsx(I.ErrorOutline,{})}),t.jsxs(A.Stack,{gap:"0",id:`${V.id}-error`,children:[f,a&&H&&t.jsx(se.FieldErrors,{errors:a,renderError:P,role:void 0})]})]})]})},_e=Object.assign(Ze,{getId:m,getName:m,isTouched:De,isEmpty:Re,createLocalizedString:Ve,omitEmptyTranslations:Ae,RequiredValueErrorMessage:Te,toFieldErrors:We,convertToMoneyValues:Ue,parseMoneyValues:Je,getHighPrecisionCurrencies:Qe,getEmptyCurrencies:Xe});exports.LocalizedField=_e;
2
+ //# sourceMappingURL=localized-field-CKzOQS8a.cjs.js.map