@televet/kibble-ui 4.0.0-beta.57 → 4.0.0-beta.59

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 (207) hide show
  1. package/dist/chunks/alert.types-C-tcDvZb.js +2 -0
  2. package/dist/chunks/alert.types-C-tcDvZb.js.map +1 -0
  3. package/dist/chunks/{alert.component-ibWiyGfP.js → alert.types-D7ya3hgF.js} +92 -100
  4. package/dist/chunks/alert.types-D7ya3hgF.js.map +1 -0
  5. package/dist/chunks/{avatar.component-BccCo8cj.js → avatar.component-BvnohMit.js} +20 -20
  6. package/dist/chunks/{avatar.component-BccCo8cj.js.map → avatar.component-BvnohMit.js.map} +1 -1
  7. package/dist/chunks/{avatarGroup.component-CX1pyCYe.js → avatarGroup.component-BlBlSEzG.js} +2 -2
  8. package/dist/chunks/{avatarGroup.component-CX1pyCYe.js.map → avatarGroup.component-BlBlSEzG.js.map} +1 -1
  9. package/dist/chunks/{buttonGroup.component-DD5ngTAx.js → buttonGroup.component-oTaR0Md0.js} +2 -2
  10. package/dist/chunks/{buttonGroup.component-DD5ngTAx.js.map → buttonGroup.component-oTaR0Md0.js.map} +1 -1
  11. package/dist/chunks/{characterCounter.component-DI5bBTYd.js → characterCounter.component-fZjvfJdX.js} +2 -2
  12. package/dist/chunks/{characterCounter.component-DI5bBTYd.js.map → characterCounter.component-fZjvfJdX.js.map} +1 -1
  13. package/dist/chunks/{checkbox.component-C5SGTamU.js → checkbox.component-0xblm1A8.js} +7 -7
  14. package/dist/chunks/{checkbox.component-C5SGTamU.js.map → checkbox.component-0xblm1A8.js.map} +1 -1
  15. package/dist/chunks/{checkbox.records-D942Mp5N.js → checkbox.records-CIoa-J68.js} +30 -30
  16. package/dist/chunks/{checkbox.records-D942Mp5N.js.map → checkbox.records-CIoa-J68.js.map} +1 -1
  17. package/dist/chunks/{checkboxGroup.component-uNcZPAQb.js → checkboxGroup.component-LWTDPWxy.js} +3 -3
  18. package/dist/chunks/{checkboxGroup.component-uNcZPAQb.js.map → checkboxGroup.component-LWTDPWxy.js.map} +1 -1
  19. package/dist/chunks/{conversationCard.component-DFCk4nkI.js → conversationCard.component-CP6rnJx7.js} +7 -7
  20. package/dist/chunks/{conversationCard.component-DFCk4nkI.js.map → conversationCard.component-CP6rnJx7.js.map} +1 -1
  21. package/dist/chunks/{datePicker.component-BNFSOBs_.js → datePicker.component-CI1zrqXF.js} +7 -7
  22. package/dist/chunks/{datePicker.component-BNFSOBs_.js.map → datePicker.component-CI1zrqXF.js.map} +1 -1
  23. package/dist/chunks/{dialog-trigger-zqGa_wOO.js → dialog-trigger-BPlPzPU-.js} +5 -5
  24. package/dist/chunks/{dialog-trigger-zqGa_wOO.js.map → dialog-trigger-BPlPzPU-.js.map} +1 -1
  25. package/dist/chunks/{heading.component-DzTeEnHA.js → heading.component-BPvYeKHj.js} +2 -2
  26. package/dist/chunks/{heading.component-DzTeEnHA.js.map → heading.component-BPvYeKHj.js.map} +1 -1
  27. package/dist/chunks/{index-X8K9tzgE.js → index-BNYygzo-.js} +12 -12
  28. package/dist/chunks/{index-X8K9tzgE.js.map → index-BNYygzo-.js.map} +1 -1
  29. package/dist/chunks/{index-CVMzOz4r.js → index-C2kxTsiE.js} +8 -8
  30. package/dist/chunks/{index-CVMzOz4r.js.map → index-C2kxTsiE.js.map} +1 -1
  31. package/dist/chunks/{index-B8d8Hi2Q.js → index-CYk-7wwG.js} +25 -25
  32. package/dist/chunks/{index-B8d8Hi2Q.js.map → index-CYk-7wwG.js.map} +1 -1
  33. package/dist/chunks/{index-Dw9PbX_m.js → index-CjNAJEk5.js} +4 -4
  34. package/dist/chunks/{index-Dw9PbX_m.js.map → index-CjNAJEk5.js.map} +1 -1
  35. package/dist/chunks/{index-CJ_SaUFt.js → index-Co91SHhW.js} +6 -6
  36. package/dist/chunks/{index-CJ_SaUFt.js.map → index-Co91SHhW.js.map} +1 -1
  37. package/dist/chunks/{index-BsfW-qzE.js → index-D9DU-5GF.js} +12 -12
  38. package/dist/chunks/{index-BsfW-qzE.js.map → index-D9DU-5GF.js.map} +1 -1
  39. package/dist/chunks/{index-COcjj2r_.js → index-DUHFrLMI.js} +9 -9
  40. package/dist/chunks/{index-COcjj2r_.js.map → index-DUHFrLMI.js.map} +1 -1
  41. package/dist/chunks/{index-BavQMU2I.js → index-DcJZ8q0f.js} +4 -4
  42. package/dist/chunks/{index-BavQMU2I.js.map → index-DcJZ8q0f.js.map} +1 -1
  43. package/dist/chunks/{index-DVMzcy6o.js → index-DkJX2kvl.js} +11 -11
  44. package/dist/chunks/{index-DVMzcy6o.js.map → index-DkJX2kvl.js.map} +1 -1
  45. package/dist/chunks/{index-bYxdnAxK.js → index-S1uNQPZj.js} +22 -22
  46. package/dist/chunks/{index-bYxdnAxK.js.map → index-S1uNQPZj.js.map} +1 -1
  47. package/dist/chunks/{index-xa8tmbbH.js → index-j7W9Hyzx.js} +10 -10
  48. package/dist/chunks/{index-xa8tmbbH.js.map → index-j7W9Hyzx.js.map} +1 -1
  49. package/dist/chunks/link.component-CCFg-LIe.js +2 -0
  50. package/dist/chunks/link.component-CCFg-LIe.js.map +1 -0
  51. package/dist/chunks/link.component-DprieyUG.js +60 -0
  52. package/dist/chunks/link.component-DprieyUG.js.map +1 -0
  53. package/dist/chunks/{menu.component-C8c5BRFL.js → menu.component-CByCZVEI.js} +9 -9
  54. package/dist/chunks/{menu.component-C8c5BRFL.js.map → menu.component-CByCZVEI.js.map} +1 -1
  55. package/dist/chunks/{modal.types-CMmBuVKv.js → modal.types-Cy96DDCy.js} +5 -5
  56. package/dist/chunks/{modal.types-CMmBuVKv.js.map → modal.types-Cy96DDCy.js.map} +1 -1
  57. package/dist/chunks/{pinInput.types-CbR1ZXya.js → pinInput.types-DF9d4AgH.js} +6 -6
  58. package/dist/chunks/{pinInput.types-CbR1ZXya.js.map → pinInput.types-DF9d4AgH.js.map} +1 -1
  59. package/dist/chunks/{popover-CBG09o62.js → popover-B9rNOU0g.js} +4 -4
  60. package/dist/chunks/{popover-CBG09o62.js.map → popover-B9rNOU0g.js.map} +1 -1
  61. package/dist/chunks/{popover-root-provider-CKQPoRvU.js → popover-root-provider-CeLLpesI.js} +4 -4
  62. package/dist/chunks/{popover-root-provider-CKQPoRvU.js.map → popover-root-provider-CeLLpesI.js.map} +1 -1
  63. package/dist/chunks/{popover.component-jEg4R1F4.js → popover.component-CCDAwoUM.js} +2 -2
  64. package/dist/chunks/{popover.component-jEg4R1F4.js.map → popover.component-CCDAwoUM.js.map} +1 -1
  65. package/dist/chunks/{popover.component-BCibBOXM.js → popover.component-DKQ2rwkT.js} +8 -8
  66. package/dist/chunks/{popover.component-BCibBOXM.js.map → popover.component-DKQ2rwkT.js.map} +1 -1
  67. package/dist/chunks/{popover.recipe-CMQQRMnL.js → popover.recipe-gSRLrSEY.js} +2 -2
  68. package/dist/chunks/{popover.recipe-CMQQRMnL.js.map → popover.recipe-gSRLrSEY.js.map} +1 -1
  69. package/dist/chunks/{popover.recipe-ByAaERef.js → popover.recipe-luRWdwjO.js} +16 -15
  70. package/dist/chunks/{popover.recipe-ByAaERef.js.map → popover.recipe-luRWdwjO.js.map} +1 -1
  71. package/dist/chunks/{radio.records-DJwjrXUG.js → radio.records-ASPGnfUI.js} +15 -15
  72. package/dist/chunks/{radio.records-DJwjrXUG.js.map → radio.records-ASPGnfUI.js.map} +1 -1
  73. package/dist/chunks/{radioGroup.component-D8Urceiy.js → radioGroup.component-BfzkPOWR.js} +7 -7
  74. package/dist/chunks/{radioGroup.component-D8Urceiy.js.map → radioGroup.component-BfzkPOWR.js.map} +1 -1
  75. package/dist/chunks/{ratingDots.component-BAqZEoHN.js → ratingDots.component-DbIxSq3Z.js} +3 -3
  76. package/dist/chunks/{ratingDots.component-BAqZEoHN.js.map → ratingDots.component-DbIxSq3Z.js.map} +1 -1
  77. package/dist/chunks/{render-strategy-DBmKAZIM.js → render-strategy-C8hwN3bm.js} +2 -2
  78. package/dist/chunks/{render-strategy-DBmKAZIM.js.map → render-strategy-C8hwN3bm.js.map} +1 -1
  79. package/dist/chunks/{select.component-dLGNPkXV.js → select.component-eJdhSRY0.js} +10 -10
  80. package/dist/chunks/{select.component-dLGNPkXV.js.map → select.component-eJdhSRY0.js.map} +1 -1
  81. package/dist/chunks/{sortableList.component-ede9VRq3.js → sortableList.component-DfXzIf2N.js} +3 -3
  82. package/dist/chunks/{sortableList.component-ede9VRq3.js.map → sortableList.component-DfXzIf2N.js.map} +1 -1
  83. package/dist/chunks/{spinner.component-BAUK5XQp.js → spinner.component-mGoJn6ep.js} +2 -2
  84. package/dist/chunks/{spinner.component-BAUK5XQp.js.map → spinner.component-mGoJn6ep.js.map} +1 -1
  85. package/dist/chunks/{styledAvatar.types-DU78JZbu.js → styledAvatar.types-2wZJjpPn.js} +2 -2
  86. package/dist/chunks/{styledAvatar.types-DU78JZbu.js.map → styledAvatar.types-2wZJjpPn.js.map} +1 -1
  87. package/dist/chunks/{switch.component-CTHNQQWw.js → switch.component-B1QEXeHo.js} +12 -12
  88. package/dist/chunks/{switch.component-CTHNQQWw.js.map → switch.component-B1QEXeHo.js.map} +1 -1
  89. package/dist/chunks/{tabs.component-D0mzzXOp.js → tabs.component-CClOddbl.js} +17 -17
  90. package/dist/chunks/{tabs.component-D0mzzXOp.js.map → tabs.component-CClOddbl.js.map} +1 -1
  91. package/dist/chunks/{tagBlock.component-DASuNeVN.js → tagBlock.component-8QvLF4gf.js} +5 -5
  92. package/dist/chunks/{tagBlock.component-DASuNeVN.js.map → tagBlock.component-8QvLF4gf.js.map} +1 -1
  93. package/dist/chunks/{text.component-BkYord5h.js → text.component-DqGLCykU.js} +2 -2
  94. package/dist/chunks/{text.component-BkYord5h.js.map → text.component-DqGLCykU.js.map} +1 -1
  95. package/dist/chunks/{textInput.component-vAoqRc9n.js → textInput.component-CkeP6E8M.js} +6 -6
  96. package/dist/chunks/{textInput.component-vAoqRc9n.js.map → textInput.component-CkeP6E8M.js.map} +1 -1
  97. package/dist/chunks/{textarea.component-BxeH5cIq.js → textarea.component-Qns9pf6_.js} +6 -6
  98. package/dist/chunks/{textarea.component-BxeH5cIq.js.map → textarea.component-Qns9pf6_.js.map} +1 -1
  99. package/dist/chunks/{theme.provider-CD_LIwCV.js → theme.provider-DiKqrQhs.js} +1269 -1087
  100. package/dist/chunks/theme.provider-DiKqrQhs.js.map +1 -0
  101. package/dist/chunks/{theme.provider-8i-Ok9JE.js → theme.provider-DpXAxGz8.js} +4 -4
  102. package/dist/chunks/theme.provider-DpXAxGz8.js.map +1 -0
  103. package/dist/chunks/{timePicker.component-DF-7rTLE.js → timePicker.component-DdBfadnM.js} +3 -3
  104. package/dist/chunks/{timePicker.component-DF-7rTLE.js.map → timePicker.component-DdBfadnM.js.map} +1 -1
  105. package/dist/chunks/{timePicker.component-vHY1O9Nq.js → timePicker.component-j-OQEBFl.js} +2 -2
  106. package/dist/chunks/{timePicker.component-vHY1O9Nq.js.map → timePicker.component-j-OQEBFl.js.map} +1 -1
  107. package/dist/chunks/{timeRange.component-C65E9InX.js → timeRange.component-CYBVUNli.js} +2 -2
  108. package/dist/chunks/{timeRange.component-C65E9InX.js.map → timeRange.component-CYBVUNli.js.map} +1 -1
  109. package/dist/chunks/{timeRange.component-BU22xkmi.js → timeRange.component-DXtqwVE8.js} +2 -2
  110. package/dist/chunks/{timeRange.component-BU22xkmi.js.map → timeRange.component-DXtqwVE8.js.map} +1 -1
  111. package/dist/chunks/{timestamp.component-CgRkR4Nz.js → timestamp.component-D2ivFJVk.js} +3 -3
  112. package/dist/chunks/{timestamp.component-CgRkR4Nz.js.map → timestamp.component-D2ivFJVk.js.map} +1 -1
  113. package/dist/chunks/{toaster.records-oUlJ-9y-.js → toaster.records-BGfpUOVt.js} +4 -3
  114. package/dist/chunks/{toaster.records-oUlJ-9y-.js.map → toaster.records-BGfpUOVt.js.map} +1 -1
  115. package/dist/chunks/{toaster.records-Bkt2-n5c.js → toaster.records-BJo0j1IZ.js} +2 -2
  116. package/dist/chunks/{toaster.records-Bkt2-n5c.js.map → toaster.records-BJo0j1IZ.js.map} +1 -1
  117. package/dist/chunks/{tooltip.component-DX7RPrw8.js → tooltip.component-oofe83RC.js} +37 -37
  118. package/dist/chunks/{tooltip.component-DX7RPrw8.js.map → tooltip.component-oofe83RC.js.map} +1 -1
  119. package/dist/chunks/{typography.records-e6RnkVqN.js → typography.records-jnjWfTLS.js} +2 -2
  120. package/dist/chunks/{typography.records-e6RnkVqN.js.map → typography.records-jnjWfTLS.js.map} +1 -1
  121. package/dist/chunks/{use-field-context-Bxg2bkx0.js → use-field-context-B_G7Yziz.js} +2 -2
  122. package/dist/chunks/{use-field-context-Bxg2bkx0.js.map → use-field-context-B_G7Yziz.js.map} +1 -1
  123. package/dist/chunks/{use-locale-context-BnlMA8su.js → use-locale-context-D-agiW5E.js} +5 -5
  124. package/dist/chunks/{use-locale-context-BnlMA8su.js.map → use-locale-context-D-agiW5E.js.map} +1 -1
  125. package/dist/chunks/{withFormControl-CjY2Infu.js → withFormControl-7frigdfy.js} +11 -11
  126. package/dist/chunks/{withFormControl-CjY2Infu.js.map → withFormControl-7frigdfy.js.map} +1 -1
  127. package/dist/chunks/{withTruncation-DVJpk3rP.js → withTruncation-C6OLiB1e.js} +2 -2
  128. package/dist/chunks/{withTruncation-DVJpk3rP.js.map → withTruncation-C6OLiB1e.js.map} +1 -1
  129. package/dist/cjs/components/Alert/index.cjs +1 -1
  130. package/dist/cjs/components/Link/index.cjs +1 -1
  131. package/dist/cjs/components/Popover/index.cjs +1 -1
  132. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  133. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  134. package/dist/cjs/components/Toast/index.cjs +1 -1
  135. package/dist/cjs/components/Toast/index.cjs.map +1 -1
  136. package/dist/cjs/components/index.cjs +1 -1
  137. package/dist/cjs/index.cjs +1 -1
  138. package/dist/cjs/shared/records/index.cjs +2 -0
  139. package/dist/cjs/shared/records/index.cjs.map +1 -0
  140. package/dist/cjs/theme/index.cjs +1 -1
  141. package/dist/esm/chakra/index.js +8 -8
  142. package/dist/esm/components/Alert/index.js +3 -4
  143. package/dist/esm/components/Alert/index.js.map +1 -1
  144. package/dist/esm/components/Avatar/index.js +1 -1
  145. package/dist/esm/components/AvatarGroup/index.js +1 -1
  146. package/dist/esm/components/ButtonGroup/index.js +1 -1
  147. package/dist/esm/components/CharacterCounter/index.js +1 -1
  148. package/dist/esm/components/Checkbox/index.js +1 -1
  149. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  150. package/dist/esm/components/ConversationCard/index.js +1 -1
  151. package/dist/esm/components/DatePicker/index.js +1 -1
  152. package/dist/esm/components/Heading/index.js +1 -1
  153. package/dist/esm/components/Link/index.js +1 -1
  154. package/dist/esm/components/Menu/index.js +1 -1
  155. package/dist/esm/components/Modal/index.js +1 -1
  156. package/dist/esm/components/PinInput/index.js +1 -1
  157. package/dist/esm/components/Popover/index.js +1 -1
  158. package/dist/esm/components/RadioGroup/index.js +1 -1
  159. package/dist/esm/components/RatingDots/index.js +1 -1
  160. package/dist/esm/components/Select/index.js +1 -1
  161. package/dist/esm/components/SortableList/index.js +1 -1
  162. package/dist/esm/components/Spinner/index.js +1 -1
  163. package/dist/esm/components/StyledAvatar/index.js +1 -1
  164. package/dist/esm/components/Switch/index.js +1 -1
  165. package/dist/esm/components/Tabs/index.js +1 -1
  166. package/dist/esm/components/TagBlock/index.js +1 -1
  167. package/dist/esm/components/Text/index.js +1 -1
  168. package/dist/esm/components/TextInput/index.js +1 -1
  169. package/dist/esm/components/Textarea/index.js +1 -1
  170. package/dist/esm/components/TimePicker/index.js +1 -1
  171. package/dist/esm/components/TimeRange/index.js +1 -1
  172. package/dist/esm/components/Timestamp/index.js +1 -1
  173. package/dist/esm/components/Toast/index.js +41 -20
  174. package/dist/esm/components/Toast/index.js.map +1 -1
  175. package/dist/esm/components/Tooltip/index.js +1 -1
  176. package/dist/esm/components/index.js +123 -124
  177. package/dist/esm/components/index.js.map +1 -1
  178. package/dist/esm/index.js +141 -142
  179. package/dist/esm/index.js.map +1 -1
  180. package/dist/esm/shared/records/index.js +18 -0
  181. package/dist/esm/shared/records/index.js.map +1 -0
  182. package/dist/esm/theme/index.js +1 -1
  183. package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -0
  184. package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +1 -0
  185. package/dist/types/components/Toast/index.d.ts +1 -1
  186. package/dist/types/components/Toast/toast.component.d.ts +14 -3
  187. package/dist/types/components/Toast/toast.recipe.d.ts +21 -0
  188. package/dist/types/components/Toast/toast.types.d.ts +3 -3
  189. package/dist/types/components/Toast/useToast.d.ts +3 -0
  190. package/dist/types/shared/records/index.d.ts +1 -0
  191. package/dist/types/shared/records/status.d.ts +5 -0
  192. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +14 -0
  193. package/package.json +1 -1
  194. package/dist/chunks/alert.component-DLOr0ni3.js +0 -2
  195. package/dist/chunks/alert.component-DLOr0ni3.js.map +0 -1
  196. package/dist/chunks/alert.component-ibWiyGfP.js.map +0 -1
  197. package/dist/chunks/alert.types-JdzSuSVO.js +0 -5
  198. package/dist/chunks/alert.types-JdzSuSVO.js.map +0 -1
  199. package/dist/chunks/alert.types-R_9yno9e.js +0 -2
  200. package/dist/chunks/alert.types-R_9yno9e.js.map +0 -1
  201. package/dist/chunks/link.component-BEoeigC8.js +0 -61
  202. package/dist/chunks/link.component-BEoeigC8.js.map +0 -1
  203. package/dist/chunks/link.component-BNWZ_bjl.js +0 -2
  204. package/dist/chunks/link.component-BNWZ_bjl.js.map +0 -1
  205. package/dist/chunks/theme.provider-8i-Ok9JE.js.map +0 -1
  206. package/dist/chunks/theme.provider-CD_LIwCV.js.map +0 -1
  207. package/dist/types/components/Alert/alert.records.d.ts +0 -5
package/dist/esm/index.js CHANGED
@@ -1,146 +1,145 @@
1
- import { A as a } from "../chunks/alert.component-ibWiyGfP.js";
2
- import { a as t } from "../chunks/alert.types-JdzSuSVO.js";
3
- import { A as p } from "../chunks/avatar.component-BccCo8cj.js";
4
- import { a as m, b as x } from "../chunks/avatar.types-LQ1Bn8a3.js";
5
- import { A as n } from "../chunks/avatarGroup.component-CX1pyCYe.js";
6
- import { B as u } from "../chunks/button.component-BpF3MzbZ.js";
7
- import { b as d, d as T, c as S, e as v, a as b } from "../chunks/button.types-CujqF5RD.js";
8
- import { B as C } from "../chunks/buttonGroup.component-DD5ngTAx.js";
9
- import { C as h } from "../chunks/card.component-DNX41NGG.js";
10
- import { c as z } from "../chunks/card.types-Cixp7ouC.js";
11
- import { C as M } from "../chunks/characterCounter.component-DI5bBTYd.js";
12
- import { W as B } from "../chunks/checkbox.component-C5SGTamU.js";
13
- import { W as k } from "../chunks/checkboxGroup.component-uNcZPAQb.js";
14
- import { C as w } from "../chunks/conversationCard.component-DFCk4nkI.js";
15
- import { a as L, D as G } from "../chunks/datePicker.component-BNFSOBs_.js";
16
- import { D as K, d as N, a as F, b as H } from "../chunks/divider.types-0j5qRXed.js";
17
- import { W as j } from "../chunks/heading.component-DzTeEnHA.js";
18
- import { I as E } from "../chunks/icon.component-DGNCL1Yc.js";
19
- import { i as Q } from "../chunks/icon.types-DLbVfMjG.js";
20
- import { L as X } from "../chunks/link.component-BEoeigC8.js";
21
- import { L as Z, l as _, a as $ } from "../chunks/logo.types-By8TqyNf.js";
22
- import { M as ro } from "../chunks/menu.component-C8c5BRFL.js";
23
- import { M as eo, c as to, a as so, b as po, m as io } from "../chunks/modal.types-CMmBuVKv.js";
24
- import { N as xo } from "../chunks/notificationCounter.component-Bei8mHSZ.js";
25
- import { n as no, a as lo } from "../chunks/notificationCounter.types-S7ENT1Oj.js";
26
- import { P as co } from "../chunks/picture.component-DKbaaL64.js";
27
- import { W as So, p as vo } from "../chunks/pinInput.types-CbR1ZXya.js";
28
- import { P as go } from "../chunks/popover.component-BCibBOXM.js";
29
- import { p as Po, b as ho, a as yo } from "../chunks/popover.types-C-V7Diw4.js";
30
- import { W as Do } from "../chunks/radioGroup.component-D8Urceiy.js";
31
- import { R as Wo } from "../chunks/ratingDots.component-BAqZEoHN.js";
32
- import { W as Vo } from "../chunks/select.component-dLGNPkXV.js";
33
- import { S as Ao } from "../chunks/sortableList.component-ede9VRq3.js";
34
- import { S as Io } from "../chunks/spinner.component-BAUK5XQp.js";
35
- import { s as Go } from "../chunks/spinner.types-g7cTFJkb.js";
36
- import { S as Ko, s as No } from "../chunks/styledAvatar.types-DU78JZbu.js";
37
- import { S as Ho, s as Oo } from "../chunks/swatch.types-DbgA3RWc.js";
38
- import { W as qo } from "../chunks/switch.component-CTHNQQWw.js";
39
- import { T as Jo } from "../chunks/tabs.component-D0mzzXOp.js";
40
- import { T as Uo } from "../chunks/tag.component-pexJ0TAT.js";
41
- import { c as Yo, t as Zo } from "../chunks/tag.types-B-pzEt1I.js";
42
- import { T as $o, a as or } from "../chunks/tagBlock.component-DASuNeVN.js";
43
- import { W as ar } from "../chunks/text.component-BkYord5h.js";
44
- import { W as tr } from "../chunks/textInput.component-vAoqRc9n.js";
45
- import { W as pr } from "../chunks/textarea.component-BxeH5cIq.js";
46
- import { M as mr, T as xr } from "../chunks/timePicker.component-DF-7rTLE.js";
47
- import { T as nr } from "../chunks/timeRange.component-BU22xkmi.js";
48
- import { T as ur } from "../chunks/timestamp.component-CgRkR4Nz.js";
49
- import { useToast as dr } from "./components/Toast/index.js";
50
- import { T as Sr } from "../chunks/tooltip.component-DX7RPrw8.js";
51
- import { w as br, a as gr } from "../chunks/index-BknUKotT.js";
52
- import { useBreakpoint as Pr } from "./hooks/useBreakpoint/index.js";
53
- import { u as yr, a as zr } from "../chunks/index-CgivotaP.js";
54
- import { useDeviceType as Mr } from "./hooks/useDeviceType/index.js";
55
- import { alignments as Br, flexDirections as Vr, placements as kr, statuses as Ar, typographyVariants as wr } from "./shared/types/index.js";
56
- import { K as Lr, s as Gr } from "../chunks/theme.provider-CD_LIwCV.js";
1
+ import { A as a, a as e } from "../chunks/alert.types-D7ya3hgF.js";
2
+ import { A as s } from "../chunks/avatar.component-BvnohMit.js";
3
+ import { a as i, b as m } from "../chunks/avatar.types-LQ1Bn8a3.js";
4
+ import { A as x } from "../chunks/avatarGroup.component-BlBlSEzG.js";
5
+ import { B as l } from "../chunks/button.component-BpF3MzbZ.js";
6
+ import { b as c, d, c as T, e as S, a as v } from "../chunks/button.types-CujqF5RD.js";
7
+ import { B as g } from "../chunks/buttonGroup.component-oTaR0Md0.js";
8
+ import { C as P } from "../chunks/card.component-DNX41NGG.js";
9
+ import { c as y } from "../chunks/card.types-Cixp7ouC.js";
10
+ import { C as D } from "../chunks/characterCounter.component-fZjvfJdX.js";
11
+ import { W } from "../chunks/checkbox.component-0xblm1A8.js";
12
+ import { W as V } from "../chunks/checkboxGroup.component-LWTDPWxy.js";
13
+ import { C as A } from "../chunks/conversationCard.component-CP6rnJx7.js";
14
+ import { a as I, D as L } from "../chunks/datePicker.component-CI1zrqXF.js";
15
+ import { D as R, d as K, a as N, b as F } from "../chunks/divider.types-0j5qRXed.js";
16
+ import { W as O } from "../chunks/heading.component-BPvYeKHj.js";
17
+ import { I as q } from "../chunks/icon.component-DGNCL1Yc.js";
18
+ import { i as J } from "../chunks/icon.types-DLbVfMjG.js";
19
+ import { L as U } from "../chunks/link.component-DprieyUG.js";
20
+ import { L as Y, l as Z, a as _ } from "../chunks/logo.types-By8TqyNf.js";
21
+ import { M as oo } from "../chunks/menu.component-CByCZVEI.js";
22
+ import { M as ao, c as eo, a as to, b as so, m as po } from "../chunks/modal.types-Cy96DDCy.js";
23
+ import { N as mo } from "../chunks/notificationCounter.component-Bei8mHSZ.js";
24
+ import { n as xo, a as fo } from "../chunks/notificationCounter.types-S7ENT1Oj.js";
25
+ import { P as uo } from "../chunks/picture.component-DKbaaL64.js";
26
+ import { W as To, p as So } from "../chunks/pinInput.types-DF9d4AgH.js";
27
+ import { P as bo } from "../chunks/popover.component-DKQ2rwkT.js";
28
+ import { p as Co, b as Po, a as ho } from "../chunks/popover.types-C-V7Diw4.js";
29
+ import { W as zo } from "../chunks/radioGroup.component-BfzkPOWR.js";
30
+ import { R as Mo } from "../chunks/ratingDots.component-DbIxSq3Z.js";
31
+ import { W as Bo } from "../chunks/select.component-eJdhSRY0.js";
32
+ import { S as ko } from "../chunks/sortableList.component-DfXzIf2N.js";
33
+ import { S as wo } from "../chunks/spinner.component-mGoJn6ep.js";
34
+ import { s as Lo } from "../chunks/spinner.types-g7cTFJkb.js";
35
+ import { S as Ro, s as Ko } from "../chunks/styledAvatar.types-2wZJjpPn.js";
36
+ import { S as Fo, s as Ho } from "../chunks/swatch.types-DbgA3RWc.js";
37
+ import { W as jo } from "../chunks/switch.component-B1QEXeHo.js";
38
+ import { T as Eo } from "../chunks/tabs.component-CClOddbl.js";
39
+ import { T as Qo } from "../chunks/tag.component-pexJ0TAT.js";
40
+ import { c as Xo, t as Yo } from "../chunks/tag.types-B-pzEt1I.js";
41
+ import { T as _o, a as $o } from "../chunks/tagBlock.component-8QvLF4gf.js";
42
+ import { W as rr } from "../chunks/text.component-DqGLCykU.js";
43
+ import { W as er } from "../chunks/textInput.component-CkeP6E8M.js";
44
+ import { W as sr } from "../chunks/textarea.component-Qns9pf6_.js";
45
+ import { M as ir, T as mr } from "../chunks/timePicker.component-DdBfadnM.js";
46
+ import { T as xr } from "../chunks/timeRange.component-DXtqwVE8.js";
47
+ import { T as lr } from "../chunks/timestamp.component-D2ivFJVk.js";
48
+ import { useToast as cr } from "./components/Toast/index.js";
49
+ import { T as Tr } from "../chunks/tooltip.component-oofe83RC.js";
50
+ import { w as vr, a as br } from "../chunks/index-BknUKotT.js";
51
+ import { useBreakpoint as Cr } from "./hooks/useBreakpoint/index.js";
52
+ import { u as hr, a as yr } from "../chunks/index-CgivotaP.js";
53
+ import { useDeviceType as Dr } from "./hooks/useDeviceType/index.js";
54
+ import { alignments as Wr, flexDirections as Br, placements as Vr, statuses as kr, typographyVariants as Ar } from "./shared/types/index.js";
55
+ import { K as Ir, s as Lr } from "../chunks/theme.provider-DiKqrQhs.js";
57
56
  export {
58
57
  a as Alert,
59
- p as Avatar,
60
- n as AvatarGroup,
61
- u as Button,
62
- C as ButtonGroup,
63
- h as Card,
64
- M as CharacterCounter,
65
- B as Checkbox,
66
- k as CheckboxGroup,
67
- w as ConversationCard,
68
- L as DateFormats,
69
- G as DatePicker,
70
- K as Divider,
71
- j as Heading,
72
- E as Icon,
73
- Lr as KibbleThemeProvider,
74
- X as Link,
75
- Z as Logo,
76
- ro as Menu,
77
- mr as Meridiem,
78
- eo as Modal,
79
- xo as NotificationCounter,
80
- co as Picture,
81
- So as PinInput,
82
- go as Popover,
83
- Do as RadioGroup,
84
- Wo as RatingDots,
85
- Vo as Select,
86
- Ao as SortableList,
87
- Io as Spinner,
88
- Ko as StyledAvatar,
89
- Ho as Swatch,
90
- qo as Switch,
91
- Jo as Tabs,
92
- Uo as Tag,
93
- $o as TagBlock,
94
- or as TagDisabledState,
95
- ar as Text,
96
- tr as TextInput,
97
- pr as Textarea,
98
- xr as TimePicker,
99
- nr as TimeRange,
100
- ur as Timestamp,
101
- Sr as Tooltip,
102
- t as alertButtonPositions,
103
- Br as alignments,
104
- m as avatarSizes,
105
- x as avatarVariants,
106
- d as buttonConfigVariants,
107
- T as buttonIconPositions,
108
- S as buttonSizes,
109
- v as buttonSpinnerPlacements,
110
- b as buttonVariants,
111
- z as cardSizes,
112
- Yo as closeButtonDisplays,
113
- N as dividerOrientations,
114
- F as dividerSizes,
115
- H as dividerVariants,
116
- Vr as flexDirections,
117
- Q as iconSizes,
118
- _ as logoTypes,
119
- $ as logoVariants,
120
- to as modalMotionPresets,
121
- so as modalPlacements,
122
- po as modalScrollBehaviors,
123
- io as modalSizes,
124
- no as notificationCounterSizes,
125
- lo as notificationCounterVariants,
126
- vo as pinInputTypes,
127
- kr as placements,
128
- Po as popoverSizes,
129
- ho as popoverTriggerTypes,
130
- yo as popoverVariants,
131
- Go as spinnerSizes,
132
- Ar as statuses,
133
- No as styledAvatarTypes,
134
- Oo as swatchSizes,
135
- Gr as system,
136
- Zo as tagSizes,
137
- wr as typographyVariants,
138
- Pr as useBreakpoint,
139
- yr as useColorMode,
140
- zr as useColorModeValue,
141
- Mr as useDeviceType,
142
- dr as useToast,
143
- br as withDarkMode,
144
- gr as withLightMode
58
+ s as Avatar,
59
+ x as AvatarGroup,
60
+ l as Button,
61
+ g as ButtonGroup,
62
+ P as Card,
63
+ D as CharacterCounter,
64
+ W as Checkbox,
65
+ V as CheckboxGroup,
66
+ A as ConversationCard,
67
+ I as DateFormats,
68
+ L as DatePicker,
69
+ R as Divider,
70
+ O as Heading,
71
+ q as Icon,
72
+ Ir as KibbleThemeProvider,
73
+ U as Link,
74
+ Y as Logo,
75
+ oo as Menu,
76
+ ir as Meridiem,
77
+ ao as Modal,
78
+ mo as NotificationCounter,
79
+ uo as Picture,
80
+ To as PinInput,
81
+ bo as Popover,
82
+ zo as RadioGroup,
83
+ Mo as RatingDots,
84
+ Bo as Select,
85
+ ko as SortableList,
86
+ wo as Spinner,
87
+ Ro as StyledAvatar,
88
+ Fo as Swatch,
89
+ jo as Switch,
90
+ Eo as Tabs,
91
+ Qo as Tag,
92
+ _o as TagBlock,
93
+ $o as TagDisabledState,
94
+ rr as Text,
95
+ er as TextInput,
96
+ sr as Textarea,
97
+ mr as TimePicker,
98
+ xr as TimeRange,
99
+ lr as Timestamp,
100
+ Tr as Tooltip,
101
+ e as alertButtonPositions,
102
+ Wr as alignments,
103
+ i as avatarSizes,
104
+ m as avatarVariants,
105
+ c as buttonConfigVariants,
106
+ d as buttonIconPositions,
107
+ T as buttonSizes,
108
+ S as buttonSpinnerPlacements,
109
+ v as buttonVariants,
110
+ y as cardSizes,
111
+ Xo as closeButtonDisplays,
112
+ K as dividerOrientations,
113
+ N as dividerSizes,
114
+ F as dividerVariants,
115
+ Br as flexDirections,
116
+ J as iconSizes,
117
+ Z as logoTypes,
118
+ _ as logoVariants,
119
+ eo as modalMotionPresets,
120
+ to as modalPlacements,
121
+ so as modalScrollBehaviors,
122
+ po as modalSizes,
123
+ xo as notificationCounterSizes,
124
+ fo as notificationCounterVariants,
125
+ So as pinInputTypes,
126
+ Vr as placements,
127
+ Co as popoverSizes,
128
+ Po as popoverTriggerTypes,
129
+ ho as popoverVariants,
130
+ Lo as spinnerSizes,
131
+ kr as statuses,
132
+ Ko as styledAvatarTypes,
133
+ Ho as swatchSizes,
134
+ Lr as system,
135
+ Yo as tagSizes,
136
+ Ar as typographyVariants,
137
+ Cr as useBreakpoint,
138
+ hr as useColorMode,
139
+ yr as useColorModeValue,
140
+ Dr as useDeviceType,
141
+ cr as useToast,
142
+ vr as withDarkMode,
143
+ br as withLightMode
145
144
  };
146
145
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ const n = {
2
+ error: "warningSign",
3
+ warning: "warningSign",
4
+ success: "checkmark",
5
+ info: "infoCircle",
6
+ default: "infoCircle"
7
+ }, r = {
8
+ default: "default",
9
+ error: "danger",
10
+ info: "info",
11
+ success: "success",
12
+ warning: "warning"
13
+ };
14
+ export {
15
+ n as StatusIconMap,
16
+ r as StatusTypographyMap
17
+ };
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/shared/records/status.ts"],"sourcesContent":["import { IconName } from \"components/Icon/icon.types\";\nimport { Status } from \"shared/types/status\";\nimport { TypographyVariant } from \"shared/types/typography\";\n\nexport const StatusIconMap: Record<Status, IconName> = {\n error: \"warningSign\",\n warning: \"warningSign\",\n success: \"checkmark\",\n info: \"infoCircle\",\n default: \"infoCircle\",\n};\n\nexport const StatusTypographyMap: Record<Status, TypographyVariant> = {\n default: \"default\",\n error: \"danger\",\n info: \"info\",\n success: \"success\",\n warning: \"warning\",\n};\n\n// export const StatusTypographyMap: Record<Status, TypographyVariant> = {\n// default: \"default\",\n// error: \"danger\",\n// info: \"info\",\n// success: \"success\",\n// warning: \"warning\",\n// };\n"],"names":["StatusIconMap","StatusTypographyMap"],"mappings":"AAIO,MAAMA,IAA0C;AAAA,EACrD,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AACX,GAEaC,IAAyD;AAAA,EACpE,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AACX;"}
@@ -1,4 +1,4 @@
1
- import { K as r, s as m } from "../../chunks/theme.provider-CD_LIwCV.js";
1
+ import { K as r, s as m } from "../../chunks/theme.provider-DiKqrQhs.js";
2
2
  export {
3
3
  r as KibbleThemeProvider,
4
4
  m as system
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from '../../../Button/button.component';
3
+ import { Status } from '../../../../shared/types/status';
4
+ export interface ToastActionProps extends Omit<ButtonProps, "children"> {
5
+ buttonText: string;
6
+ buttonPosition?: "topRight" | "bottomLeft";
7
+ }
8
+ interface InternalToastActionProps extends ToastActionProps {
9
+ status: Status;
10
+ }
11
+ export declare const ToastAction: ({ buttonPosition, buttonText, status, ...rest }: InternalToastActionProps) => React.JSX.Element;
12
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { ToasterConfig } from './toaster.types';
2
2
  export declare const toasterPlacements: readonly ["bottom", "bottom-end", "bottom-start", "top", "top-end", "top-start"];
3
3
  export type ToasterPlacement = (typeof toasterPlacements)[number];
4
+ export declare const defaultToasterConfig: ToasterConfig;
4
5
  export declare const ToasterConfigMap: Record<ToasterPlacement, ToasterConfig>;
5
6
  export declare const bottomToaster: import('@zag-js/toast').Store<any>;
6
7
  export declare const bottomEndToaster: import('@zag-js/toast').Store<any>;
@@ -1,2 +1,2 @@
1
- export * from './toast.component';
1
+ export * from './useToast';
2
2
  export * from './toast.types';
@@ -1,3 +1,14 @@
1
- import { ToastInstance } from './toast.types';
2
- import { ToasterPlacement } from './components/Toaster/toaster.records';
3
- export declare const useToast: (placement?: ToasterPlacement) => ToastInstance;
1
+ import { default as React } from 'react';
2
+ import { IconProps } from '../Icon/icon.component';
3
+ import { Status } from '../../shared/types/status';
4
+ import { ToastActionProps } from './components/ToastAction/toastAction.component';
5
+ export interface ToastProps {
6
+ action?: ToastActionProps;
7
+ closable?: boolean;
8
+ description?: string;
9
+ hideIcon?: boolean;
10
+ icon?: IconProps;
11
+ status?: Status;
12
+ title?: string;
13
+ }
14
+ export declare const Toast: ({ action, closable, description, hideIcon, icon, status, title, }: ToastProps) => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { SystemStyleObject } from '@chakra-ui/react/styled-system';
2
+ type ToastSlot = "root" | "indicator" | "title" | "description" | "closeTrigger" | "actionTrigger";
3
+ type ToastSlotStyles = {
4
+ [key in ToastSlot]?: SystemStyleObject;
5
+ };
6
+ export declare const toastRecipe: import('@chakra-ui/react').SlotRecipeDefinition<ToastSlot, {
7
+ variant: Record<"default" | "info" | "success" | "warning" | "error", ToastSlotStyles>;
8
+ hideIcon: {
9
+ true: {
10
+ root: {
11
+ gap: number;
12
+ };
13
+ };
14
+ false: {
15
+ root: {
16
+ gap: number;
17
+ };
18
+ };
19
+ };
20
+ }>;
21
+ export {};
@@ -1,15 +1,15 @@
1
- import { AlertProps } from '../Alert';
1
+ import { ToastProps } from './toast.component';
2
2
  type ToastStatus = "visible" | "dismissing" | "unmounted";
3
3
  interface ToastStatusChangeDetails {
4
4
  status: ToastStatus;
5
5
  src?: string | undefined;
6
6
  }
7
- export interface BaseToastOptions {
7
+ export interface ToastOptions extends ToastProps {
8
8
  duration?: number;
9
+ id?: string;
9
10
  onStatusChange?: (details: ToastStatusChangeDetails) => void;
10
11
  removeDelay?: number;
11
12
  }
12
- export type ToastOptions = BaseToastOptions & AlertProps;
13
13
  export interface ToastInstance {
14
14
  create: (options: ToastOptions) => string;
15
15
  dismiss: (id?: string) => void;
@@ -0,0 +1,3 @@
1
+ import { ToastInstance } from './toast.types';
2
+ import { ToasterPlacement } from './components/Toaster/toaster.records';
3
+ export declare const useToast: (placement?: ToasterPlacement) => ToastInstance;
@@ -0,0 +1 @@
1
+ export * from './status';
@@ -0,0 +1,5 @@
1
+ import { IconName } from '../../components/Icon/icon.types';
2
+ import { Status } from '../types/status';
3
+ import { TypographyVariant } from '../types/typography';
4
+ export declare const StatusIconMap: Record<Status, IconName>;
5
+ export declare const StatusTypographyMap: Record<Status, TypographyVariant>;
@@ -65,3 +65,17 @@ export declare const sizeTokens: {
65
65
  value: string;
66
66
  };
67
67
  };
68
+ export declare const breakpointTokens: {
69
+ sm: {
70
+ value: string;
71
+ };
72
+ md: {
73
+ value: string;
74
+ };
75
+ lg: {
76
+ value: string;
77
+ };
78
+ xl: {
79
+ value: string;
80
+ };
81
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@televet/kibble-ui",
3
3
  "description": "Kibble Design System by Otto",
4
- "version": "4.0.0-beta.57",
4
+ "version": "4.0.0-beta.59",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
7
7
  "module": "dist/esm/index.js",
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("./jsx-runtime-BjDatQAs.js"),j=require("react"),A=require("./heading.component-CwIseBhq.js"),E=require("./icon.component-C0e0UGBw.js"),_=require("./text.component-CfoAQOZD.js"),R=require("./button.component-Dd9AfGox.js"),v=require("./box-Baq7UBls.js"),b=require("./flex-D14H6HbP.js"),w=require("./provider-NDo8kOkE.js"),k=require("./create-slot-recipe-context-IwVIgtBt.js"),C=require("./factory-D6tdBUPG.js"),c=require("./icons-CTpAjbC-.js"),I=t=>t&&t.__esModule?t:{default:t},q=I(j),[S,y]=w.createContext({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:N,withContext:p,useStyles:B}=k.createSlotRecipeContext({key:"alert"}),W=N("div","root",{forwardAsChild:!0,wrapElement(t,n){return e.jsxRuntimeExports.jsx(S,{value:{status:n.status||"info"},children:t})}}),z=p("div","title"),T=p("div","description"),D=p("div","content"),F={info:c.InfoIcon,warning:c.WarningIcon,success:c.CheckCircleIcon,error:c.WarningIcon,neutral:c.InfoIcon},L=j.forwardRef(function(n,o){const i=y(),a=B(),l=typeof i.status=="string"?F[i.status]:j.Fragment,{children:x=e.jsxRuntimeExports.jsx(l,{}),...s}=n;return e.jsxRuntimeExports.jsx(C.chakra.span,{ref:o,...s,css:[a.indicator,n.css],children:x})}),M={error:"warningSign",warning:"warningSign",success:"checkmark",info:"infoCircle",default:"infoCircle"},H={default:"default",error:"danger",info:"info",success:"success",warning:"warning"},m=({buttonPosition:t="topRight",buttonText:n,status:o,...i})=>e.jsxRuntimeExports.jsx(v.Box,{className:"Alert__Button","data-testid":"kibble-alert-button",...t==="bottomLeft"&&{pt:2,pb:1},children:e.jsxRuntimeExports.jsx(R.Button,{size:"xs",variant:o==="default"?"primary":"secondary",w:"max-content",...i,children:n})}),V=({buttonProps:t,description:n,descriptionProps:o,hideCloseButton:i=!1,hideIcon:a=!1,iconProps:l,onClose:x,onContrast:s=!1,status:r="success",title:u,titleProps:h,...g})=>{t&&!t.buttonPosition&&(t.buttonPosition="topRight");const d=t&&t.buttonPosition==="topRight",f=d?b.Flex:q.default.Fragment;return e.jsxRuntimeExports.jsxs(W,{className:"Alert","data-testid":"kibble-alert",...g,variant:r,hideIcon:a,onContrast:s,children:[!a&&e.jsxRuntimeExports.jsx(L,{className:"Alert__Icon","data-testid":"kibble-alert-icon",children:e.jsxRuntimeExports.jsx(E.Icon,{variant:s?"onContrast":H[r],name:l?.name||M[r],size:"lg",...l})}),e.jsxRuntimeExports.jsxs(D,{className:"Alert__Content","data-testid":"kibble-alert-content",children:[u&&e.jsxRuntimeExports.jsxs(f,{...d&&{justifyContent:"space-between",gap:2},children:[e.jsxRuntimeExports.jsx(z,{className:"Alert__Title","data-testid":"kibble-alert-title",children:e.jsxRuntimeExports.jsx(A.WrappedHeading,{size:"sm",variant:s?"onContrast":"default",...h,children:u})}),t&&t.buttonPosition==="topRight"&&e.jsxRuntimeExports.jsx(m,{status:r,onContrast:s,...t})]}),n&&e.jsxRuntimeExports.jsxs(f,{...d&&{justifyContent:"space-between"},children:[e.jsxRuntimeExports.jsx(T,{className:"Alert__Description","data-testid":"kibble-alert-description",children:typeof n=="string"?e.jsxRuntimeExports.jsx(_.WrappedText,{size:"md",variant:s?"onContrast":"default",...o,children:n}):n}),t&&t.buttonPosition==="topRight"&&!u&&e.jsxRuntimeExports.jsx(m,{status:r,onContrast:s,...t})]}),t?.buttonPosition==="bottomLeft"&&e.jsxRuntimeExports.jsx(m,{status:r,onContrast:s,...t})]}),!i&&e.jsxRuntimeExports.jsx(R.Button,{iconName:"close",size:"xs",variant:"ghostNeutral",onContrast:s,onClick:x})]})};exports.Alert=V;
2
- //# sourceMappingURL=alert.component-DLOr0ni3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert.component-DLOr0ni3.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/alert/alert.js","../../src/components/Alert/alert.records.ts","../../src/components/Alert/components/AlertButton/alertButton.component.tsx","../../src/components/Alert/alert.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef, Fragment } from 'react';\nimport { createContext } from '../../create-context.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { InfoIcon, WarningIcon, CheckCircleIcon } from '../icons.js';\n\nconst [AlertStatusProvider, useAlertStatusContext] = createContext({\n name: \"AlertStatusContext\",\n hookName: \"useAlertStatusContext\",\n providerName: \"<Alert />\"\n});\nconst {\n withProvider,\n withContext,\n useStyles: useAlertStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"alert\" });\nconst AlertRoot = withProvider(\n \"div\",\n \"root\",\n {\n forwardAsChild: true,\n wrapElement(element, props) {\n return (\n // @ts-ignore fix later\n /* @__PURE__ */ jsx(AlertStatusProvider, { value: { status: props.status || \"info\" }, children: element })\n );\n }\n }\n);\nconst AlertPropsProvider = PropsProvider;\nconst AlertTitle = withContext(\n \"div\",\n \"title\"\n);\nconst AlertDescription = withContext(\"div\", \"description\");\nconst AlertContent = withContext(\n \"div\",\n \"content\"\n);\nconst iconMap = {\n info: InfoIcon,\n warning: WarningIcon,\n success: CheckCircleIcon,\n error: WarningIcon,\n neutral: InfoIcon\n};\nconst AlertIndicator = forwardRef(\n function AlertIndicator2(props, ref) {\n const api = useAlertStatusContext();\n const styles = useAlertStyles();\n const Icon = typeof api.status === \"string\" ? iconMap[api.status] : Fragment;\n const { children = /* @__PURE__ */ jsx(Icon, {}), ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, ...rest, css: [styles.indicator, props.css], children });\n }\n);\n\nexport { AlertContent, AlertDescription, AlertIndicator, AlertPropsProvider, AlertRoot, AlertStatusProvider, AlertTitle, useAlertStatusContext, useAlertStyles };\n","import { IconName } from \"components/Icon/icon.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { Status } from \"shared/types/status\";\n\nexport const AlertStatusIcon: Record<Status, IconName> = {\n error: \"warningSign\",\n warning: \"warningSign\",\n success: \"checkmark\",\n info: \"infoCircle\",\n default: \"infoCircle\",\n};\n\nexport const AlertStatusToIconVariant: Record<Status, TypographyVariant> = {\n default: \"default\",\n error: \"danger\",\n info: \"info\",\n success: \"success\",\n warning: \"warning\",\n};\n","import React from \"react\";\nimport { AlertButtonPosition } from \"components/Alert/alert.types\";\nimport { Button, ButtonProps } from \"components/Button/button.component\";\nimport { Status } from \"shared/types/status\";\nimport { Box } from \"@chakra-ui/react/box\";\n\nexport interface AlertButtonProps extends Omit<ButtonProps, \"children\"> {\n buttonPosition?: AlertButtonPosition;\n buttonText: string;\n}\n\ninterface InternalAlertButtonProps extends AlertButtonProps {\n status: Status;\n}\n\nexport const AlertButton = ({\n buttonPosition = \"topRight\",\n buttonText,\n status,\n ...rest\n}: InternalAlertButtonProps): React.JSX.Element => {\n return (\n <Box\n className=\"Alert__Button\"\n data-testid=\"kibble-alert-button\"\n {...(buttonPosition === \"bottomLeft\" && { pt: 2, pb: 1 })}\n >\n <Button\n size=\"xs\"\n variant={status === \"default\" ? \"primary\" : \"secondary\"}\n w=\"max-content\"\n {...rest}\n >\n {buttonText}\n </Button>\n </Box>\n );\n};\n","import React from \"react\";\nimport { Alert as CAlert } from \"@chakra-ui/react/alert\";\nimport { Heading, HeadingProps } from \"components/Heading/heading.component\";\nimport { Icon, IconProps } from \"components/Icon/icon.component\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { Status } from \"shared/types/status\";\nimport { Button } from \"components/Button/button.component\";\nimport { AlertStatusIcon, AlertStatusToIconVariant } from \"./alert.records\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport {\n AlertButton,\n AlertButtonProps,\n} from \"./components/AlertButton/alertButton.component\";\n\nexport interface AlertProps\n extends Omit<\n CAlert.RootProps,\n \"title\" | \"status\" | \"children\" | \"variant\" | \"size\"\n > {\n buttonProps?: AlertButtonProps;\n description?: React.ReactNode;\n descriptionProps?: TextProps;\n hideCloseButton?: boolean;\n hideIcon?: boolean;\n iconProps?: IconProps;\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n onContrast?: boolean;\n status?: Status;\n title?: React.ReactNode;\n titleProps?: HeadingProps;\n}\n\nexport const Alert = ({\n buttonProps,\n description,\n descriptionProps,\n hideCloseButton = false,\n hideIcon = false,\n iconProps,\n onClose,\n onContrast = false,\n status = \"success\",\n title,\n titleProps,\n ...rest\n}: AlertProps): React.JSX.Element => {\n if (buttonProps && !buttonProps.buttonPosition) {\n buttonProps.buttonPosition = \"topRight\";\n }\n const isTopRightButton =\n buttonProps && buttonProps.buttonPosition === \"topRight\";\n const WithButtonWrapper = isTopRightButton ? Flex : React.Fragment;\n\n return (\n <CAlert.Root\n className=\"Alert\"\n data-testid=\"kibble-alert\"\n {...rest}\n variant={status}\n hideIcon={hideIcon}\n onContrast={onContrast}\n >\n {!hideIcon && (\n <CAlert.Indicator\n className=\"Alert__Icon\"\n data-testid=\"kibble-alert-icon\"\n >\n <Icon\n variant={\n onContrast ? \"onContrast\" : AlertStatusToIconVariant[status]\n }\n name={iconProps?.name || AlertStatusIcon[status]}\n size=\"lg\"\n {...iconProps}\n />\n </CAlert.Indicator>\n )}\n <CAlert.Content\n className=\"Alert__Content\"\n data-testid=\"kibble-alert-content\"\n >\n {title && (\n <WithButtonWrapper\n {...(isTopRightButton && {\n justifyContent: \"space-between\",\n gap: 2,\n })}\n >\n <CAlert.Title\n className=\"Alert__Title\"\n data-testid=\"kibble-alert-title\"\n >\n <Heading\n size=\"sm\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...titleProps}\n >\n {title}\n </Heading>\n </CAlert.Title>\n {buttonProps && buttonProps.buttonPosition === \"topRight\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {description && (\n <WithButtonWrapper\n {...(isTopRightButton && { justifyContent: \"space-between\" })}\n >\n <CAlert.Description\n className=\"Alert__Description\"\n data-testid=\"kibble-alert-description\"\n >\n {typeof description === \"string\" ? (\n <Text\n size=\"md\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...descriptionProps}\n >\n {description}\n </Text>\n ) : (\n description\n )}\n </CAlert.Description>\n {buttonProps &&\n buttonProps.buttonPosition === \"topRight\" &&\n !title && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {buttonProps?.buttonPosition === \"bottomLeft\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </CAlert.Content>\n {!hideCloseButton && (\n <Button\n iconName=\"close\"\n size=\"xs\"\n variant=\"ghostNeutral\"\n onContrast={onContrast}\n onClick={onClose}\n />\n )}\n </CAlert.Root>\n );\n};\n"],"names":["AlertStatusProvider","useAlertStatusContext","createContext","withProvider","withContext","useAlertStyles","createSlotRecipeContext","AlertRoot","element","props","jsx","AlertTitle","AlertDescription","AlertContent","iconMap","InfoIcon","WarningIcon","CheckCircleIcon","AlertIndicator","forwardRef","ref","api","styles","Icon","Fragment","children","rest","chakra","AlertStatusIcon","AlertStatusToIconVariant","AlertButton","buttonPosition","buttonText","status","Box","Button","Alert","buttonProps","description","descriptionProps","hideCloseButton","hideIcon","iconProps","onClose","onContrast","title","titleProps","isTopRightButton","WithButtonWrapper","Flex","React","jsxs","CAlert.Root","CAlert.Indicator","CAlert.Content","CAlert.Title","Heading","CAlert.Description","Text"],"mappings":"igBASM,CAACA,EAAqBC,CAAqB,EAAIC,gBAAc,CACjE,KAAM,qBACN,SAAU,wBACV,aAAc,WAChB,CAAC,EACK,CACJ,aAAAC,EACA,YAAAC,EACA,UAAWC,CAEb,EAAIC,EAAAA,wBAAwB,CAAE,IAAK,OAAO,CAAE,EACtCC,EAAYJ,EAChB,MACA,OACA,CACE,eAAgB,GAChB,YAAYK,EAASC,EAAO,CAC1B,OAEkBC,EAAAA,kBAAAA,IAAIV,EAAqB,CAAE,MAAO,CAAE,OAAQS,EAAM,QAAU,MAAM,EAAI,SAAUD,CAAS,CAAA,CAEjH,CACA,CACA,EAEMG,EAAaP,EACjB,MACA,OACF,EACMQ,EAAmBR,EAAY,MAAO,aAAa,EACnDS,EAAeT,EACnB,MACA,SACF,EACMU,EAAU,CACd,KAAMC,EAAQ,SACd,QAASC,EAAW,YACpB,QAASC,EAAe,gBACxB,MAAOD,EAAW,YAClB,QAASD,EAAAA,QACX,EACMG,EAAiBC,EAAU,WAC/B,SAAyBV,EAAOW,EAAK,CACnC,MAAMC,EAAMpB,EAAuB,EAC7BqB,EAASjB,E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,CAAA,CACN,CAAA,CAEN,EAEDA,GAAa,iBAAmB,cAC/B3B,EAAA,kBAAA,IAACoB,EAAA,CACC,OAAAG,EACA,WAAAW,EACC,GAAGP,CAAA,CAAA,CACN,CAAA,CAEJ,EACC,CAACG,GACA9B,EAAA,kBAAA,IAACyB,EAAA,OAAA,CACC,SAAS,QACT,KAAK,KACL,QAAQ,eACR,WAAAS,EACA,QAASD,CAAA,CAAA,CACX,CAAA,CAEJ,CAEJ","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert.component-ibWiyGfP.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/alert/alert.js","../../src/components/Alert/alert.records.ts","../../src/components/Alert/components/AlertButton/alertButton.component.tsx","../../src/components/Alert/alert.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef, Fragment } from 'react';\nimport { createContext } from '../../create-context.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { InfoIcon, WarningIcon, CheckCircleIcon } from '../icons.js';\n\nconst [AlertStatusProvider, useAlertStatusContext] = createContext({\n name: \"AlertStatusContext\",\n hookName: \"useAlertStatusContext\",\n providerName: \"<Alert />\"\n});\nconst {\n withProvider,\n withContext,\n useStyles: useAlertStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"alert\" });\nconst AlertRoot = withProvider(\n \"div\",\n \"root\",\n {\n forwardAsChild: true,\n wrapElement(element, props) {\n return (\n // @ts-ignore fix later\n /* @__PURE__ */ jsx(AlertStatusProvider, { value: { status: props.status || \"info\" }, children: element })\n );\n }\n }\n);\nconst AlertPropsProvider = PropsProvider;\nconst AlertTitle = withContext(\n \"div\",\n \"title\"\n);\nconst AlertDescription = withContext(\"div\", \"description\");\nconst AlertContent = withContext(\n \"div\",\n \"content\"\n);\nconst iconMap = {\n info: InfoIcon,\n warning: WarningIcon,\n success: CheckCircleIcon,\n error: WarningIcon,\n neutral: InfoIcon\n};\nconst AlertIndicator = forwardRef(\n function AlertIndicator2(props, ref) {\n const api = useAlertStatusContext();\n const styles = useAlertStyles();\n const Icon = typeof api.status === \"string\" ? iconMap[api.status] : Fragment;\n const { children = /* @__PURE__ */ jsx(Icon, {}), ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, ...rest, css: [styles.indicator, props.css], children });\n }\n);\n\nexport { AlertContent, AlertDescription, AlertIndicator, AlertPropsProvider, AlertRoot, AlertStatusProvider, AlertTitle, useAlertStatusContext, useAlertStyles };\n","import { IconName } from \"components/Icon/icon.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { Status } from \"shared/types/status\";\n\nexport const AlertStatusIcon: Record<Status, IconName> = {\n error: \"warningSign\",\n warning: \"warningSign\",\n success: \"checkmark\",\n info: \"infoCircle\",\n default: \"infoCircle\",\n};\n\nexport const AlertStatusToIconVariant: Record<Status, TypographyVariant> = {\n default: \"default\",\n error: \"danger\",\n info: \"info\",\n success: \"success\",\n warning: \"warning\",\n};\n","import React from \"react\";\nimport { AlertButtonPosition } from \"components/Alert/alert.types\";\nimport { Button, ButtonProps } from \"components/Button/button.component\";\nimport { Status } from \"shared/types/status\";\nimport { Box } from \"@chakra-ui/react/box\";\n\nexport interface AlertButtonProps extends Omit<ButtonProps, \"children\"> {\n buttonPosition?: AlertButtonPosition;\n buttonText: string;\n}\n\ninterface InternalAlertButtonProps extends AlertButtonProps {\n status: Status;\n}\n\nexport const AlertButton = ({\n buttonPosition = \"topRight\",\n buttonText,\n status,\n ...rest\n}: InternalAlertButtonProps): React.JSX.Element => {\n return (\n <Box\n className=\"Alert__Button\"\n data-testid=\"kibble-alert-button\"\n {...(buttonPosition === \"bottomLeft\" && { pt: 2, pb: 1 })}\n >\n <Button\n size=\"xs\"\n variant={status === \"default\" ? \"primary\" : \"secondary\"}\n w=\"max-content\"\n {...rest}\n >\n {buttonText}\n </Button>\n </Box>\n );\n};\n","import React from \"react\";\nimport { Alert as CAlert } from \"@chakra-ui/react/alert\";\nimport { Heading, HeadingProps } from \"components/Heading/heading.component\";\nimport { Icon, IconProps } from \"components/Icon/icon.component\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { Status } from \"shared/types/status\";\nimport { Button } from \"components/Button/button.component\";\nimport { AlertStatusIcon, AlertStatusToIconVariant } from \"./alert.records\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport {\n AlertButton,\n AlertButtonProps,\n} from \"./components/AlertButton/alertButton.component\";\n\nexport interface AlertProps\n extends Omit<\n CAlert.RootProps,\n \"title\" | \"status\" | \"children\" | \"variant\" | \"size\"\n > {\n buttonProps?: AlertButtonProps;\n description?: React.ReactNode;\n descriptionProps?: TextProps;\n hideCloseButton?: boolean;\n hideIcon?: boolean;\n iconProps?: IconProps;\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n onContrast?: boolean;\n status?: Status;\n title?: React.ReactNode;\n titleProps?: HeadingProps;\n}\n\nexport const Alert = ({\n buttonProps,\n description,\n descriptionProps,\n hideCloseButton = false,\n hideIcon = false,\n iconProps,\n onClose,\n onContrast = false,\n status = \"success\",\n title,\n titleProps,\n ...rest\n}: AlertProps): React.JSX.Element => {\n if (buttonProps && !buttonProps.buttonPosition) {\n buttonProps.buttonPosition = \"topRight\";\n }\n const isTopRightButton =\n buttonProps && buttonProps.buttonPosition === \"topRight\";\n const WithButtonWrapper = isTopRightButton ? Flex : React.Fragment;\n\n return (\n <CAlert.Root\n className=\"Alert\"\n data-testid=\"kibble-alert\"\n {...rest}\n variant={status}\n hideIcon={hideIcon}\n onContrast={onContrast}\n >\n {!hideIcon && (\n <CAlert.Indicator\n className=\"Alert__Icon\"\n data-testid=\"kibble-alert-icon\"\n >\n <Icon\n variant={\n onContrast ? \"onContrast\" : AlertStatusToIconVariant[status]\n }\n name={iconProps?.name || AlertStatusIcon[status]}\n size=\"lg\"\n {...iconProps}\n />\n </CAlert.Indicator>\n )}\n <CAlert.Content\n className=\"Alert__Content\"\n data-testid=\"kibble-alert-content\"\n >\n {title && (\n <WithButtonWrapper\n {...(isTopRightButton && {\n justifyContent: \"space-between\",\n gap: 2,\n })}\n >\n <CAlert.Title\n className=\"Alert__Title\"\n data-testid=\"kibble-alert-title\"\n >\n <Heading\n size=\"sm\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...titleProps}\n >\n {title}\n </Heading>\n </CAlert.Title>\n {buttonProps && buttonProps.buttonPosition === \"topRight\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {description && (\n <WithButtonWrapper\n {...(isTopRightButton && { justifyContent: \"space-between\" })}\n >\n <CAlert.Description\n className=\"Alert__Description\"\n data-testid=\"kibble-alert-description\"\n >\n {typeof description === \"string\" ? (\n <Text\n size=\"md\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...descriptionProps}\n >\n {description}\n </Text>\n ) : (\n description\n )}\n </CAlert.Description>\n {buttonProps &&\n buttonProps.buttonPosition === \"topRight\" &&\n !title && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {buttonProps?.buttonPosition === \"bottomLeft\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </CAlert.Content>\n {!hideCloseButton && (\n <Button\n iconName=\"close\"\n size=\"xs\"\n variant=\"ghostNeutral\"\n onContrast={onContrast}\n onClick={onClose}\n />\n )}\n </CAlert.Root>\n );\n};\n"],"names":["AlertStatusProvider","useAlertStatusContext","createContext","withProvider","withContext","useAlertStyles","createSlotRecipeContext","AlertRoot","element","props","jsx","AlertTitle","AlertDescription","AlertContent","iconMap","InfoIcon","WarningIcon","CheckCircleIcon","AlertIndicator","forwardRef","ref","api","styles","Icon","Fragment","children","rest","chakra","AlertStatusIcon","AlertStatusToIconVariant","AlertButton","buttonPosition","buttonText","status","Box","Button","Alert","buttonProps","description","descriptionProps","hideCloseButton","hideIcon","iconProps","onClose","onContrast","title","titleProps","isTopRightButton","WithButtonWrapper","Flex","React","jsxs","CAlert.Root","CAlert.Indicator","CAlert.Content","CAlert.Title","Heading","CAlert.Description","Text"],"mappings":";;;;;;;;;;;;AASA,MAAM,CAACA,GAAqBC,CAAqB,IAAIC,EAAc;AAAA,EACjE,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GACK;AAAA,EACJ,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAWC;AAEb,IAAIC,EAAwB,EAAE,KAAK,QAAO,CAAE,GACtCC,IAAYJ;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,IACE,gBAAgB;AAAA,IAChB,YAAYK,GAASC,GAAO;AAC1B;AAAA;AAAA,QAEkBC,gBAAAA,EAAAA,IAAIV,GAAqB,EAAE,OAAO,EAAE,QAAQS,EAAM,UAAU,OAAM,GAAI,UAAUD,EAAS,CAAA;AAAA;AAAA,IAEjH;AAAA,EACA;AACA,GAEMG,IAAaP;AAAA,EACjB;AAAA,EACA;AACF,GACMQ,IAAmBR,EAAY,OAAO,aAAa,GACnDS,IAAeT;AAAA,EACnB;AAAA,EACA;AACF,GACMU,IAAU;AAAA,EACd,MAAMC;AAAA,EACN,SAASC;AAAA,EACT,SAASC;AAAA,EACT,OAAOD;AAAA,EACP,SAASD;AACX,GACMG,IAAiBC;AAAA,EACrB,SAAyBV,GAAOW,GAAK;AACnC,UAAMC,IAAMpB,EAAuB,GAC7BqB,IAASjB,EAAgB,GACzBkB,IAAO,OAAOF,EAAI,UAAW,WAAWP,EAAQO,EAAI,MAAM,IAAIG,GAC9D,EAAE,UAAAC,IAA2Bf,gBAAAA,MAAIa,GAAM,CAAA,CAAE,GAAG,GAAGG,EAAI,IAAKjB;AAC9D,WAAuBC,gBAAAA,EAAG,IAACiB,EAAO,MAAM,EAAE,KAAAP,GAAK,GAAGM,GAAM,KAAK,CAACJ,EAAO,WAAWb,EAA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AAAA,EAAA;AAAA,gBAACH;AAAA,gBAAA;AAAA,kBACE,GAAID,KAAoB,EAAE,gBAAgB,gBAAgB;AAAA,kBAE3D,UAAA;AAAA,oBAAArC,gBAAAA,EAAA;AAAA,sBAAC+C;AAAAA,sBAAA;AAAA,wBACC,WAAU;AAAA,wBACV,eAAY;AAAA,wBAEX,UAAA,OAAOnB,KAAgB,WACtB5B,gBAAAA,EAAA;AAAA,0BAACgD;AAAAA,0BAAA;AAAA,4BACC,MAAK;AAAA,4BACL,SAASd,IAAa,eAAe;AAAA,4BACpC,GAAGL;AAAA,4BAEH,UAAAD;AAAA,0BAAA;AAAA,wBAAA,IAGHA;AAAA,sBAAA;AAAA,oBAEJ;AAAA,oBACCD,KACCA,EAAY,mBAAmB,cAC/B,CAACQ,KACCnC,gBAAAA,EAAA;AAAA,sBAACoB;AAAA,sBAAA;AAAA,wBACC,QAAAG;AAAA,wBACA,YAAAW;AAAA,wBACC,GAAGP;AAAA,sBAAA;AAAA,oBAAA;AAAA,kBACN;AAAA,gBAAA;AAAA,cAEN;AAAA,cAEDA,GAAa,mBAAmB,gBAC/B3B,gBAAAA,EAAA;AAAA,gBAACoB;AAAA,gBAAA;AAAA,kBACC,QAAAG;AAAA,kBACA,YAAAW;AAAA,kBACC,GAAGP;AAAA,gBAAA;AAAA,cAAA;AAAA,YACN;AAAA,UAAA;AAAA,QAEJ;AAAA,QACC,CAACG,KACA9B,gBAAAA,EAAA;AAAA,UAACyB;AAAA,UAAA;AAAA,YACC,UAAS;AAAA,YACT,MAAK;AAAA,YACL,SAAQ;AAAA,YACR,YAAAS;AAAA,YACA,SAASD;AAAA,UAAA;AAAA,QAAA;AAAA,MACX;AAAA,IAAA;AAAA,EAEJ;AAEJ;","x_google_ignoreList":[0]}
@@ -1,5 +0,0 @@
1
- const t = ["topRight", "bottomLeft"];
2
- export {
3
- t as a
4
- };
5
- //# sourceMappingURL=alert.types-JdzSuSVO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert.types-JdzSuSVO.js","sources":["../../src/components/Alert/alert.types.ts"],"sourcesContent":["export const alertButtonPositions = [\"topRight\", \"bottomLeft\"] as const;\nexport type AlertButtonPosition = (typeof alertButtonPositions)[number];\n"],"names":["alertButtonPositions"],"mappings":"AAAa,MAAAA,IAAuB,CAAC,YAAY,YAAY;"}
@@ -1,2 +0,0 @@
1
- "use strict";const t=["topRight","bottomLeft"];exports.alertButtonPositions=t;
2
- //# sourceMappingURL=alert.types-R_9yno9e.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"alert.types-R_9yno9e.js","sources":["../../src/components/Alert/alert.types.ts"],"sourcesContent":["export const alertButtonPositions = [\"topRight\", \"bottomLeft\"] as const;\nexport type AlertButtonPosition = (typeof alertButtonPositions)[number];\n"],"names":["alertButtonPositions"],"mappings":"aAAa,MAAAA,EAAuB,CAAC,WAAY,YAAY"}