@televet/kibble-ui 4.0.0-beta.115 → 4.0.0-beta.117
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.
- package/dist/chunks/{alert.types-D7zIiGeb.js → alert.types-DMRaA_Ku.js} +3 -3
- package/dist/chunks/{alert.types-D7zIiGeb.js.map → alert.types-DMRaA_Ku.js.map} +1 -1
- package/dist/chunks/{avatar.component-77NanIaH.js → avatar.component-9ntfFFdO.js} +5 -5
- package/dist/chunks/{avatar.component-77NanIaH.js.map → avatar.component-9ntfFFdO.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-dNR80_Br.js → avatarGroup.component-D3hnTX1G.js} +2 -2
- package/dist/chunks/{avatarGroup.component-dNR80_Br.js.map → avatarGroup.component-D3hnTX1G.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BVPTUIF5.js → buttonGroup.component-DzmuqXEs.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BVPTUIF5.js.map → buttonGroup.component-DzmuqXEs.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-D_cYz0H1.js → buttonGroup.component-aBdWtwRc.js} +2 -2
- package/dist/chunks/{buttonGroup.component-D_cYz0H1.js.map → buttonGroup.component-aBdWtwRc.js.map} +1 -1
- package/dist/chunks/card.component-BTiT4hHy.js +2 -0
- package/dist/chunks/{card.component-KNc4HKSh.js.map → card.component-BTiT4hHy.js.map} +1 -1
- package/dist/chunks/{card.component-DNX41NGG.js → card.component-D41Jhrj7.js} +2 -3
- package/dist/chunks/{card.component-DNX41NGG.js.map → card.component-D41Jhrj7.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DElJ1iFK.js → characterCounter.component-vK94fENA.js} +2 -2
- package/dist/chunks/{characterCounter.component-DElJ1iFK.js.map → characterCounter.component-vK94fENA.js.map} +1 -1
- package/dist/chunks/checkbox.anatomy-BJmDPPss.js +2 -0
- package/dist/chunks/checkbox.anatomy-BJmDPPss.js.map +1 -0
- package/dist/chunks/{checkbox.records-Ds6SvFdm.js → checkbox.anatomy-DCCPwuXc.js} +12 -22
- package/dist/chunks/checkbox.anatomy-DCCPwuXc.js.map +1 -0
- package/dist/chunks/checkbox.component-D6mIURLH.js +2 -0
- package/dist/chunks/{checkbox.component-3YA0AZfA.js.map → checkbox.component-D6mIURLH.js.map} +1 -1
- package/dist/chunks/checkbox.component-nvUc_9H7.js +278 -0
- package/dist/chunks/{checkbox.component-D5LmbbC6.js.map → checkbox.component-nvUc_9H7.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-72jN-0pA.js → checkboxGroup.component-BmXZ4DkX.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-72jN-0pA.js.map → checkboxGroup.component-BmXZ4DkX.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-RQoz1ubr.js → checkboxGroup.component-CqaNIOOa.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-RQoz1ubr.js.map → checkboxGroup.component-CqaNIOOa.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-C-GONVFe.js → conversationCard.component-Bk2KjDyd.js} +2 -2
- package/dist/chunks/{conversationCard.component-C-GONVFe.js.map → conversationCard.component-Bk2KjDyd.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-xQsHec-u.js → conversationCard.component-DrMX79WG.js} +8 -8
- package/dist/chunks/{conversationCard.component-xQsHec-u.js.map → conversationCard.component-DrMX79WG.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BPqrILEE.js → datePicker.component-DwkXBtUr.js} +2 -2
- package/dist/chunks/{datePicker.component-BPqrILEE.js.map → datePicker.component-DwkXBtUr.js.map} +1 -1
- package/dist/chunks/{datePicker.component-DLs6DpYn.js → datePicker.component-Mjd2ZVvO.js} +7 -7
- package/dist/chunks/{datePicker.component-DLs6DpYn.js.map → datePicker.component-Mjd2ZVvO.js.map} +1 -1
- package/dist/chunks/{dialog-CcVRidaV.js → dialog-Bnb0zdk3.js} +5 -5
- package/dist/chunks/{dialog-CcVRidaV.js.map → dialog-Bnb0zdk3.js.map} +1 -1
- package/dist/chunks/{heading.component-CSbfsm3W.js → heading.component-D02MeQPl.js} +2 -2
- package/dist/chunks/{heading.component-CSbfsm3W.js.map → heading.component-D02MeQPl.js.map} +1 -1
- package/dist/chunks/{index-Ztgrae6O.js → index-1syExFDc.js} +11 -11
- package/dist/chunks/{index-Ztgrae6O.js.map → index-1syExFDc.js.map} +1 -1
- package/dist/chunks/{index-Cd-5e4RS.js → index-4eV_IBpJ.js} +5 -5
- package/dist/chunks/{index-Cd-5e4RS.js.map → index-4eV_IBpJ.js.map} +1 -1
- package/dist/chunks/{index-BpQwMKfa.js → index-AafzY9XD.js} +10 -10
- package/dist/chunks/{index-BpQwMKfa.js.map → index-AafzY9XD.js.map} +1 -1
- package/dist/chunks/{index-BRBNqTA7.js → index-BDT37VpI.js} +13 -13
- package/dist/chunks/{index-BRBNqTA7.js.map → index-BDT37VpI.js.map} +1 -1
- package/dist/chunks/{index-BXFjoQqm.js → index-BxaZhr7r.js} +3 -3
- package/dist/chunks/{index-BXFjoQqm.js.map → index-BxaZhr7r.js.map} +1 -1
- package/dist/chunks/{index-B3d3tRic.js → index-C2oFXalq.js} +4 -4
- package/dist/chunks/{index-B3d3tRic.js.map → index-C2oFXalq.js.map} +1 -1
- package/dist/chunks/{radio.records-muLWVHhG.js → index-CjxarSH6.js} +22 -33
- package/dist/chunks/index-CjxarSH6.js.map +1 -0
- package/dist/chunks/{index-BODNpj2d.js → index-DT2ktill.js} +3 -3
- package/dist/chunks/{index-BODNpj2d.js.map → index-DT2ktill.js.map} +1 -1
- package/dist/chunks/{index-C-m6RNXT.js → index-DTQrSVxW.js} +11 -11
- package/dist/chunks/{index-C-m6RNXT.js.map → index-DTQrSVxW.js.map} +1 -1
- package/dist/chunks/{index-mndLieJA.js → index-DTrxnRef.js} +4 -4
- package/dist/chunks/{index-mndLieJA.js.map → index-DTrxnRef.js.map} +1 -1
- package/dist/chunks/{index-CX3yrbBD.js → index-O8mh7GXa.js} +3 -3
- package/dist/chunks/{index-CX3yrbBD.js.map → index-O8mh7GXa.js.map} +1 -1
- package/dist/chunks/{radio.records-j0JOqaJ4.js → index-P9qG5HsO.js} +2 -2
- package/dist/chunks/index-P9qG5HsO.js.map +1 -0
- package/dist/chunks/{index-BBxAd1xM.js → index-yedK3W08.js} +3 -3
- package/dist/chunks/{index-BBxAd1xM.js.map → index-yedK3W08.js.map} +1 -1
- package/dist/chunks/{menu.component-DWpVT0ik.js → menu.component-CInWl3xv.js} +2 -2
- package/dist/chunks/{menu.component-DWpVT0ik.js.map → menu.component-CInWl3xv.js.map} +1 -1
- package/dist/chunks/{menu.component-BlQ8OB2z.js → menu.component-CbIae0d2.js} +8 -8
- package/dist/chunks/{menu.component-BlQ8OB2z.js.map → menu.component-CbIae0d2.js.map} +1 -1
- package/dist/chunks/{modal.types-DqAH_jR5.js → modal.types-DxZhJFBH.js} +4 -4
- package/dist/chunks/{modal.types-DqAH_jR5.js.map → modal.types-DxZhJFBH.js.map} +1 -1
- package/dist/chunks/{pinInput.types-DbRKvqia.js → pinInput.types-CLgxXzKy.js} +6 -6
- package/dist/chunks/{pinInput.types-DbRKvqia.js.map → pinInput.types-CLgxXzKy.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-R2bRQ-xz.js → popover-root-provider-BmcuNR6d.js} +4 -4
- package/dist/chunks/{popover-root-provider-R2bRQ-xz.js.map → popover-root-provider-BmcuNR6d.js.map} +1 -1
- package/dist/chunks/{popover.component-5a-hEW2o.js → popover.component-DlFFiYME.js} +7 -7
- package/dist/chunks/{popover.component-5a-hEW2o.js.map → popover.component-DlFFiYME.js.map} +1 -1
- package/dist/chunks/{popover.recipe-DDKba5kq.js → popover.recipe-khnBScTr.js} +4 -4
- package/dist/chunks/{popover.recipe-DDKba5kq.js.map → popover.recipe-khnBScTr.js.map} +1 -1
- package/dist/chunks/radioGroup.component-DLEnjQgU.js +2 -0
- package/dist/chunks/radioGroup.component-DLEnjQgU.js.map +1 -0
- package/dist/chunks/radioGroup.component-Df9hg6FA.js +251 -0
- package/dist/chunks/radioGroup.component-Df9hg6FA.js.map +1 -0
- package/dist/chunks/{ratingDots.component-bcnQi8kP.js → ratingDots.component-Dxhfd6qE.js} +3 -3
- package/dist/chunks/{ratingDots.component-bcnQi8kP.js.map → ratingDots.component-Dxhfd6qE.js.map} +1 -1
- package/dist/chunks/{render-strategy-D5Z6LZ1V.js → render-strategy-QburwdUo.js} +2 -2
- package/dist/chunks/{render-strategy-D5Z6LZ1V.js.map → render-strategy-QburwdUo.js.map} +1 -1
- package/dist/chunks/{select.component-8Rapwb67.js → select.component-o2RuJ5R1.js} +9 -9
- package/dist/chunks/{select.component-8Rapwb67.js.map → select.component-o2RuJ5R1.js.map} +1 -1
- package/dist/chunks/{sortableList.component-ygB3YKGn.js → sortableList.component-DW832-HJ.js} +3 -3
- package/dist/chunks/{sortableList.component-ygB3YKGn.js.map → sortableList.component-DW832-HJ.js.map} +1 -1
- package/dist/chunks/{spinner.component-gmb3jWCv.js → spinner.component-BcOsuuIq.js} +2 -2
- package/dist/chunks/{spinner.component-gmb3jWCv.js.map → spinner.component-BcOsuuIq.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-BlkNvQyA.js → styledAvatar.types-DuRUjNh6.js} +2 -2
- package/dist/chunks/{styledAvatar.types-BlkNvQyA.js.map → styledAvatar.types-DuRUjNh6.js.map} +1 -1
- package/dist/chunks/{switch.component-BBep786n.js → switch.component-C2SVRVqH.js} +6 -6
- package/dist/chunks/{switch.component-BBep786n.js.map → switch.component-C2SVRVqH.js.map} +1 -1
- package/dist/chunks/{tabs.component-CjU_OQuN.js → tabs.component-6PH5mS9S.js} +9 -9
- package/dist/chunks/{tabs.component-CjU_OQuN.js.map → tabs.component-6PH5mS9S.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-CzajKewM.js → tagBlock.component-DkmcQ5Xu.js} +2 -2
- package/dist/chunks/{tagBlock.component-CzajKewM.js.map → tagBlock.component-DkmcQ5Xu.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DCHwzZEJ.js → tagBlock.component-ZiUvAvSs.js} +5 -5
- package/dist/chunks/{tagBlock.component-DCHwzZEJ.js.map → tagBlock.component-ZiUvAvSs.js.map} +1 -1
- package/dist/chunks/{text.component-BMna3XOy.js → text.component-BthmuMFV.js} +2 -2
- package/dist/chunks/{text.component-BMna3XOy.js.map → text.component-BthmuMFV.js.map} +1 -1
- package/dist/chunks/{textInput.component-DcGfaX6z.js → textInput.component-DBOBy5dT.js} +6 -6
- package/dist/chunks/{textInput.component-DcGfaX6z.js.map → textInput.component-DBOBy5dT.js.map} +1 -1
- package/dist/chunks/{textarea.component-8QwVGgBC.js → textarea.component-BNiipjT7.js} +13 -13
- package/dist/chunks/{textarea.component-8QwVGgBC.js.map → textarea.component-BNiipjT7.js.map} +1 -1
- package/dist/chunks/theme.provider-4wzRpSmC.js +24 -0
- package/dist/chunks/theme.provider-4wzRpSmC.js.map +1 -0
- package/dist/chunks/{theme.provider-BwQ8GOqC.js → theme.provider-Ko_Dr9p5.js} +54 -38
- package/dist/chunks/theme.provider-Ko_Dr9p5.js.map +1 -0
- package/dist/chunks/{timePicker.component-CqCqsj0-.js → timePicker.component-9uhrYSK_.js} +3 -3
- package/dist/chunks/{timePicker.component-CqCqsj0-.js.map → timePicker.component-9uhrYSK_.js.map} +1 -1
- package/dist/chunks/{timeRange.component-DUI4EL7X.js → timeRange.component-BSAMk2js.js} +2 -2
- package/dist/chunks/{timeRange.component-DUI4EL7X.js.map → timeRange.component-BSAMk2js.js.map} +1 -1
- package/dist/chunks/{timestamp.component-BQmg8ejt.js → timestamp.component-NeJlrbsQ.js} +3 -3
- package/dist/chunks/{timestamp.component-BQmg8ejt.js.map → timestamp.component-NeJlrbsQ.js.map} +1 -1
- package/dist/chunks/{toaster.records-DcadVT_W.js → toaster.records-DjNU8CFN.js} +2 -2
- package/dist/chunks/{toaster.records-DcadVT_W.js.map → toaster.records-DjNU8CFN.js.map} +1 -1
- package/dist/chunks/{tooltip.component-BBcfv22j.js → tooltip.component-B15VGEn1.js} +3 -3
- package/dist/chunks/{tooltip.component-BBcfv22j.js.map → tooltip.component-B15VGEn1.js.map} +1 -1
- package/dist/chunks/{typography.records-DDZuRT8J.js → typography.records-Cq-V6T7j.js} +2 -2
- package/dist/chunks/{typography.records-DDZuRT8J.js.map → typography.records-Cq-V6T7j.js.map} +1 -1
- package/dist/chunks/{use-field-context-BZaIHuSQ.js → use-field-context-DsQFT-Te.js} +2 -2
- package/dist/chunks/{use-field-context-BZaIHuSQ.js.map → use-field-context-DsQFT-Te.js.map} +1 -1
- package/dist/chunks/{use-locale-context-BNU4MHrO.js → use-locale-context-BA2M-8sK.js} +2 -2
- package/dist/chunks/{use-locale-context-BNU4MHrO.js.map → use-locale-context-BA2M-8sK.js.map} +1 -1
- package/dist/chunks/{withFormControl-CdasHiz1.js → withFormControl-D0tbS4T0.js} +31 -31
- package/dist/chunks/{withFormControl-CdasHiz1.js.map → withFormControl-D0tbS4T0.js.map} +1 -1
- package/dist/chunks/{withTruncation-Do7RgFZB.js → withTruncation-DgpjWopq.js} +2 -2
- package/dist/chunks/{withTruncation-Do7RgFZB.js.map → withTruncation-DgpjWopq.js.map} +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/Card/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +9 -9
- package/dist/esm/components/Alert/index.js +1 -1
- package/dist/esm/components/Avatar/index.js +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Card/index.js +1 -1
- package/dist/esm/components/CharacterCounter/index.js +1 -1
- package/dist/esm/components/Checkbox/index.js +1 -1
- package/dist/esm/components/CheckboxGroup/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +1 -1
- package/dist/esm/components/Heading/index.js +1 -1
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/PinInput/index.js +1 -1
- package/dist/esm/components/Popover/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/RatingDots/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/SortableList/index.js +1 -1
- package/dist/esm/components/Spinner/index.js +1 -1
- package/dist/esm/components/StyledAvatar/index.js +1 -1
- package/dist/esm/components/Switch/index.js +1 -1
- package/dist/esm/components/Tabs/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/Text/index.js +1 -1
- package/dist/esm/components/TextInput/index.js +1 -1
- package/dist/esm/components/Textarea/index.js +1 -1
- package/dist/esm/components/TimePicker/index.js +1 -1
- package/dist/esm/components/TimeRange/index.js +1 -1
- package/dist/esm/components/Timestamp/index.js +1 -1
- package/dist/esm/components/Toast/index.js +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +31 -31
- package/dist/esm/index.js +32 -32
- package/dist/esm/theme/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/card.component-KNc4HKSh.js +0 -2
- package/dist/chunks/checkbox.component-3YA0AZfA.js +0 -2
- package/dist/chunks/checkbox.component-D5LmbbC6.js +0 -282
- package/dist/chunks/checkbox.records-DI3mqSNf.js +0 -2
- package/dist/chunks/checkbox.records-DI3mqSNf.js.map +0 -1
- package/dist/chunks/checkbox.records-Ds6SvFdm.js.map +0 -1
- package/dist/chunks/radio.records-j0JOqaJ4.js.map +0 -1
- package/dist/chunks/radio.records-muLWVHhG.js.map +0 -1
- package/dist/chunks/radioGroup.component-Bx42wWDx.js +0 -255
- package/dist/chunks/radioGroup.component-Bx42wWDx.js.map +0 -1
- package/dist/chunks/radioGroup.component-D6k2Nuu6.js +0 -2
- package/dist/chunks/radioGroup.component-D6k2Nuu6.js.map +0 -1
- package/dist/chunks/theme.provider-4sMCpoiO.js +0 -24
- package/dist/chunks/theme.provider-4sMCpoiO.js.map +0 -1
- package/dist/chunks/theme.provider-BwQ8GOqC.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { W as Q } from "./text.component-
|
|
3
|
-
import { p as
|
|
2
|
+
import { W as Q } from "./text.component-BthmuMFV.js";
|
|
3
|
+
import { p as F, f as U } from "./typography.records-Cq-V6T7j.js";
|
|
4
4
|
import { I as V } from "./icon.component-S_qFWBRf.js";
|
|
5
5
|
import { F as q } from "./flex-smlF8uQG.js";
|
|
6
6
|
import * as X from "react";
|
|
@@ -8,9 +8,9 @@ import { forwardRef as T, useLayoutEffect as Y, useEffect as ee, useState as L,
|
|
|
8
8
|
import { c as M, a as B } from "./factory-Ctbv0Ozn.js";
|
|
9
9
|
import { c as oe } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
10
10
|
import { c as ae } from "./create-recipe-context-D7FewUR4.js";
|
|
11
|
-
import { u as I, F as le } from "./use-field-context-
|
|
12
|
-
import { f as j, c as ne, a as ie, h as de } from "./use-locale-context-
|
|
13
|
-
import { a1 as w,
|
|
11
|
+
import { u as I, F as le } from "./use-field-context-DsQFT-Te.js";
|
|
12
|
+
import { f as j, c as ne, a as ie, h as de } from "./use-locale-context-BA2M-8sK.js";
|
|
13
|
+
import { a1 as w, H as ce, d as x, k as fe } from "./index-1syExFDc.js";
|
|
14
14
|
const O = T((a, t) => {
|
|
15
15
|
const r = I(), e = w(r.getErrorTextProps(), a);
|
|
16
16
|
return r?.invalid ? /* @__PURE__ */ o.jsx(j.span, { ...e, ref: t }) : null;
|
|
@@ -36,11 +36,11 @@ const me = typeof window < "u" ? Y : ee, [Me, ue] = ne({
|
|
|
36
36
|
me(() => {
|
|
37
37
|
const b = P.current;
|
|
38
38
|
if (!b) return;
|
|
39
|
-
const A = ce(b),
|
|
40
|
-
f(!!
|
|
39
|
+
const A = ce(b), H = A.document, k = () => {
|
|
40
|
+
f(!!H.getElementById(u)), C(!!H.getElementById(d));
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
const $ = new A.MutationObserver(
|
|
42
|
+
k();
|
|
43
|
+
const $ = new A.MutationObserver(k);
|
|
44
44
|
return $.observe(b, { childList: !0, subtree: !0 }), () => $.disconnect();
|
|
45
45
|
}, [u, d]);
|
|
46
46
|
const h = p(() => {
|
|
@@ -48,7 +48,7 @@ const me = typeof window < "u" ? Y : ee, [Me, ue] = ne({
|
|
|
48
48
|
return c && s && b.push(u), N && b.push(d), b.join(" ") || void 0;
|
|
49
49
|
}, [s, u, d, c, N]), R = p(
|
|
50
50
|
() => () => ({
|
|
51
|
-
...
|
|
51
|
+
...F.root.attrs,
|
|
52
52
|
id: m,
|
|
53
53
|
ref: P,
|
|
54
54
|
role: "group",
|
|
@@ -59,7 +59,7 @@ const me = typeof window < "u" ? Y : ee, [Me, ue] = ne({
|
|
|
59
59
|
[e, s, l, m]
|
|
60
60
|
), E = p(
|
|
61
61
|
() => () => ({
|
|
62
|
-
...
|
|
62
|
+
...F.label.attrs,
|
|
63
63
|
id: y,
|
|
64
64
|
"data-disabled": x(e),
|
|
65
65
|
"data-invalid": x(s),
|
|
@@ -67,7 +67,7 @@ const me = typeof window < "u" ? Y : ee, [Me, ue] = ne({
|
|
|
67
67
|
htmlFor: i
|
|
68
68
|
}),
|
|
69
69
|
[e, s, l, i, y]
|
|
70
|
-
),
|
|
70
|
+
), g = p(
|
|
71
71
|
() => () => ({
|
|
72
72
|
"aria-describedby": h,
|
|
73
73
|
"aria-invalid": fe(s),
|
|
@@ -82,40 +82,40 @@ const me = typeof window < "u" ? Y : ee, [Me, ue] = ne({
|
|
|
82
82
|
[h, s, n, l, i, e]
|
|
83
83
|
), v = p(
|
|
84
84
|
() => () => ({
|
|
85
|
-
...
|
|
86
|
-
...
|
|
85
|
+
...g(),
|
|
86
|
+
...F.input.attrs
|
|
87
87
|
}),
|
|
88
|
-
[
|
|
88
|
+
[g]
|
|
89
89
|
), S = p(
|
|
90
90
|
() => () => ({
|
|
91
|
-
...
|
|
92
|
-
...
|
|
91
|
+
...g(),
|
|
92
|
+
...F.textarea.attrs
|
|
93
93
|
}),
|
|
94
|
-
[
|
|
94
|
+
[g]
|
|
95
95
|
), Z = p(
|
|
96
96
|
() => () => ({
|
|
97
|
-
...
|
|
98
|
-
...
|
|
97
|
+
...g(),
|
|
98
|
+
...F.select.attrs
|
|
99
99
|
}),
|
|
100
|
-
[
|
|
100
|
+
[g]
|
|
101
101
|
), G = p(
|
|
102
102
|
() => () => ({
|
|
103
103
|
id: d,
|
|
104
|
-
...
|
|
104
|
+
...F.helperText.attrs,
|
|
105
105
|
"data-disabled": x(e)
|
|
106
106
|
}),
|
|
107
107
|
[e, d]
|
|
108
108
|
), J = p(
|
|
109
109
|
() => () => ({
|
|
110
110
|
id: u,
|
|
111
|
-
...
|
|
111
|
+
...F.errorText.attrs,
|
|
112
112
|
"aria-live": "polite"
|
|
113
113
|
}),
|
|
114
114
|
[u]
|
|
115
115
|
), K = p(
|
|
116
116
|
() => () => ({
|
|
117
117
|
"aria-hidden": !0,
|
|
118
|
-
...
|
|
118
|
+
...F.requiredIndicator.attrs
|
|
119
119
|
}),
|
|
120
120
|
[]
|
|
121
121
|
);
|
|
@@ -176,7 +176,7 @@ const { useRecipeResult: xe } = ae({ key: "icon" }), he = X.forwardRef(
|
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
function
|
|
179
|
+
function ge(a) {
|
|
180
180
|
const {
|
|
181
181
|
viewBox: t = "0 0 24 24",
|
|
182
182
|
d: r,
|
|
@@ -196,11 +196,11 @@ function Fe(a) {
|
|
|
196
196
|
return n.displayName = e, n;
|
|
197
197
|
}
|
|
198
198
|
const {
|
|
199
|
-
withProvider:
|
|
199
|
+
withProvider: Fe,
|
|
200
200
|
withContext: _,
|
|
201
201
|
useStyles: be,
|
|
202
202
|
useClassNames: Te
|
|
203
|
-
} = oe({ key: "field" }), Ce =
|
|
203
|
+
} = oe({ key: "field" }), Ce = Fe(
|
|
204
204
|
D,
|
|
205
205
|
"root",
|
|
206
206
|
{ forwardAsChild: !0 }
|
|
@@ -213,7 +213,7 @@ const {
|
|
|
213
213
|
"errorText",
|
|
214
214
|
{ forwardAsChild: !0 }
|
|
215
215
|
);
|
|
216
|
-
|
|
216
|
+
ge({
|
|
217
217
|
d: "M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"
|
|
218
218
|
});
|
|
219
219
|
const ve = T(function(t, r) {
|
|
@@ -253,7 +253,7 @@ const ve = T(function(t, r) {
|
|
|
253
253
|
size: h = "md",
|
|
254
254
|
useInvalidIcon: R = !1,
|
|
255
255
|
useInvalidText: E = !0,
|
|
256
|
-
...
|
|
256
|
+
...g
|
|
257
257
|
}) => {
|
|
258
258
|
const v = /* @__PURE__ */ o.jsxs(
|
|
259
259
|
Pe,
|
|
@@ -313,7 +313,7 @@ const ve = T(function(t, r) {
|
|
|
313
313
|
readOnly: u,
|
|
314
314
|
required: d,
|
|
315
315
|
size: h,
|
|
316
|
-
...
|
|
316
|
+
...g
|
|
317
317
|
}
|
|
318
318
|
),
|
|
319
319
|
R && f && /* @__PURE__ */ o.jsx(V, { className: "FormControl__InvalidIcon", name: "warningSign", variant: N, size: h })
|
|
@@ -349,4 +349,4 @@ const ve = T(function(t, r) {
|
|
|
349
349
|
export {
|
|
350
350
|
Be as w
|
|
351
351
|
};
|
|
352
|
-
//# sourceMappingURL=withFormControl-
|
|
352
|
+
//# sourceMappingURL=withFormControl-D0tbS4T0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withFormControl-CdasHiz1.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-error-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-helper-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-label.js","../../node_modules/@ark-ui/react/dist/utils/use-safe-layout-effect.js","../../node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js","../../node_modules/@ark-ui/react/dist/components/field/use-field.js","../../node_modules/@ark-ui/react/dist/components/field/field-root.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/create-icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/field/field.js","../../src/hocs/withFormControl/withFormControl.records.ts","../../src/hocs/withFormControl/withFormControl.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldErrorText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field.getErrorTextProps(), props);\n if (field?.invalid) {\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n }\n return null;\n});\nFieldErrorText.displayName = \"FieldErrorText\";\n\nexport { FieldErrorText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldHelperText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getHelperTextProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nFieldHelperText.displayName = \"FieldHelperText\";\n\nexport { FieldHelperText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldLabel = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });\n});\nFieldLabel.displayName = \"FieldLabel\";\n\nexport { FieldLabel };\n","'use client';\nimport { useLayoutEffect, useEffect } from 'react';\n\nconst useSafeLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\nexport { useSafeLayoutEffect };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [FieldsetProvider, useFieldsetContext] = createContext({\n name: \"FieldsetContext\",\n hookName: \"useFieldsetContext\",\n providerName: \"<FieldsetProvider />\",\n strict: false\n});\n\nexport { FieldsetProvider, useFieldsetContext };\n","'use client';\nimport { getWindow, dataAttr, ariaAttr } from '@zag-js/dom-query';\nimport { useState, useId, useRef, useMemo } from 'react';\nimport { useSafeLayoutEffect } from '../../utils/use-safe-layout-effect.js';\nimport { useFieldsetContext } from '../fieldset/use-fieldset-context.js';\nimport { parts } from './field.anatomy.js';\n\nconst useField = (props = {}) => {\n const fieldset = useFieldsetContext();\n const { ids, disabled = Boolean(fieldset?.disabled), invalid = false, readOnly = false, required = false } = props;\n const [hasErrorText, setHasErrorText] = useState(false);\n const [hasHelperText, setHasHelperText] = useState(false);\n const id = props.id ?? useId();\n const rootRef = useRef(null);\n const rootId = ids?.control ?? `field::${id}`;\n const errorTextId = ids?.errorText ?? `field::${id}::error-text`;\n const helperTextId = ids?.helperText ?? `field::${id}::helper-text`;\n const labelId = ids?.label ?? `field::${id}::label`;\n useSafeLayoutEffect(() => {\n const rootNode = rootRef.current;\n if (!rootNode) return;\n const win = getWindow(rootNode);\n const doc = win.document;\n const checkTextElements = () => {\n setHasErrorText(!!doc.getElementById(errorTextId));\n setHasHelperText(!!doc.getElementById(helperTextId));\n };\n checkTextElements();\n const observer = new win.MutationObserver(checkTextElements);\n observer.observe(rootNode, { childList: true, subtree: true });\n return () => observer.disconnect();\n }, [errorTextId, helperTextId]);\n const labelIds = useMemo(() => {\n const ids2 = [];\n if (hasErrorText && invalid) ids2.push(errorTextId);\n if (hasHelperText) ids2.push(helperTextId);\n return ids2.join(\" \") || void 0;\n }, [invalid, errorTextId, helperTextId, hasErrorText, hasHelperText]);\n const getRootProps = useMemo(\n () => () => ({\n ...parts.root.attrs,\n id: rootId,\n ref: rootRef,\n role: \"group\",\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly)\n }),\n [disabled, invalid, readOnly, rootId]\n );\n const getLabelProps = useMemo(\n () => () => ({\n ...parts.label.attrs,\n id: labelId,\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly),\n htmlFor: id\n }),\n [disabled, invalid, readOnly, id, labelId]\n );\n const getControlProps = useMemo(\n () => () => ({\n \"aria-describedby\": labelIds,\n \"aria-invalid\": ariaAttr(invalid),\n \"data-invalid\": dataAttr(invalid),\n \"data-required\": dataAttr(required),\n \"data-readonly\": dataAttr(readOnly),\n id,\n required,\n disabled,\n readOnly\n }),\n [labelIds, invalid, required, readOnly, id, disabled]\n );\n const getInputProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.input.attrs\n }),\n [getControlProps]\n );\n const getTextareaProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.textarea.attrs\n }),\n [getControlProps]\n );\n const getSelectProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.select.attrs\n }),\n [getControlProps]\n );\n const getHelperTextProps = useMemo(\n () => () => ({\n id: helperTextId,\n ...parts.helperText.attrs,\n \"data-disabled\": dataAttr(disabled)\n }),\n [disabled, helperTextId]\n );\n const getErrorTextProps = useMemo(\n () => () => ({\n id: errorTextId,\n ...parts.errorText.attrs,\n \"aria-live\": \"polite\"\n }),\n [errorTextId]\n );\n const getRequiredIndicatorProps = useMemo(\n () => () => ({\n \"aria-hidden\": true,\n ...parts.requiredIndicator.attrs\n }),\n []\n );\n return {\n ariaDescribedby: labelIds,\n ids: {\n root: rootId,\n control: id,\n label: labelId,\n errorText: errorTextId,\n helperText: helperTextId\n },\n refs: {\n rootRef\n },\n disabled,\n invalid,\n readOnly,\n required,\n getLabelProps,\n getRootProps,\n getInputProps,\n getTextareaProps,\n getSelectProps,\n getHelperTextProps,\n getErrorTextProps,\n getRequiredIndicatorProps\n };\n};\n\nexport { useField };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useField } from './use-field.js';\nimport { FieldProvider } from './use-field-context.js';\n\nconst FieldRoot = forwardRef((props, ref) => {\n const [useFieldProps, localProps] = createSplitProps()(props, [\n \"id\",\n \"ids\",\n \"disabled\",\n \"invalid\",\n \"readOnly\",\n \"required\"\n ]);\n const field = useField(useFieldProps);\n const mergedProps = mergeProps(field.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(FieldProvider, { value: field, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(ref, field.refs.rootRef) }) });\n});\nFieldRoot.displayName = \"FieldRoot\";\n\nexport { FieldRoot };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst { useRecipeResult, PropsProvider } = createRecipeContext({ key: \"icon\" });\nconst Icon = React.forwardRef(\n function Icon2(props, ref) {\n const {\n styles,\n className,\n props: otherProps\n } = useRecipeResult({ asChild: !props.as, ...props });\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n ref,\n focusable: false,\n \"aria-hidden\": \"true\",\n ...otherProps,\n css: [styles, props.css],\n className: cx(className, props.className)\n }\n );\n }\n);\nconst IconPropsProvider = PropsProvider;\n\nexport { Icon, IconPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Children, forwardRef } from 'react';\nimport { Icon } from './icon.js';\n\nfunction createIcon(options) {\n const {\n viewBox = \"0 0 24 24\",\n d: pathDefinition,\n displayName,\n defaultProps = {}\n } = options;\n const path = Children.toArray(options.path);\n const Comp = forwardRef((props, ref) => /* @__PURE__ */ jsx(\n Icon,\n {\n ref,\n asChild: false,\n viewBox,\n ...defaultProps,\n ...props,\n children: path.length ? path : /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: pathDefinition })\n }\n ));\n Comp.displayName = displayName;\n return Comp;\n}\n\nexport { createIcon };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Field, useFieldContext } from '@ark-ui/react/field';\nimport { forwardRef } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { createIcon } from '../icon/create-icon.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useFieldStyles,\n useClassNames,\n PropsProvider\n} = createSlotRecipeContext({ key: \"field\" });\nconst FieldRoot = withProvider(\n Field.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst FieldPropsProvider = PropsProvider;\nconst FieldLabel = withContext(\n Field.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst FieldHelperText = withContext(Field.HelperText, \"helperText\", { forwardAsChild: true });\nconst FieldErrorText = withContext(\n Field.ErrorText,\n \"errorText\",\n { forwardAsChild: true }\n);\nconst FieldErrorIcon = createIcon({\n d: \"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z\"\n});\nconst FieldRequiredIndicator = forwardRef(function RequiredIndicator(props, ref) {\n const { fallback, children = \"*\", ...restProps } = props;\n const field = useFieldContext();\n const classNames = useClassNames();\n const styles = useFieldStyles();\n if (!field?.required) {\n return fallback;\n }\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"aria-hidden\": \"true\",\n ...restProps,\n className: cx(classNames.requiredIndicator, props.className),\n css: [styles.requiredIndicator, props.css],\n children\n }\n );\n});\n\nexport { FieldErrorIcon, FieldErrorText, FieldHelperText, FieldLabel, FieldPropsProvider, FieldRequiredIndicator, FieldRoot, useFieldStyles };\n","import { FormControlSize } from './withFormControl.types';\n\nexport const optionalTextSizeMap: Record<FormControlSize, number> = {\n sm: 10,\n md: 12,\n lg: 14,\n};\n","import React from 'react';\nimport { Field } from '@chakra-ui/react/field';\nimport { FormControlLabelPosition, FormControlSize } from './withFormControl.types';\nimport { SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { TypographyVariant } from 'shared/types/typography';\nimport { Text } from 'components/Text/text.component';\nimport { optionalTextSizeMap } from './withFormControl.records';\nimport { fontSizes } from 'theme/tokens/typography/typography.records';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Icon } from 'components/Icon/icon.component';\n\nexport interface WithFormControlProps {\n disabled?: boolean;\n errorText?: string;\n formControlStyle?: SystemStyleObject;\n fullWidth?: boolean;\n helperText?: string;\n inlineField?: boolean;\n invalid?: boolean;\n invalidIconColor?: TypographyVariant;\n label?: string | React.ReactNode;\n labelPosition?: FormControlLabelPosition;\n labelStyle?: SystemStyleObject;\n onContrast?: boolean;\n readOnly?: boolean;\n required?: boolean;\n showOptionalElement?: boolean;\n size?: FormControlSize;\n useInvalidIcon?: boolean;\n useInvalidText?: boolean;\n}\n\nexport const withFormControl = <P extends WithFormControlProps>(Component: React.ComponentType<P>): React.FC<P> => {\n const WithFormControl = ({\n disabled = false,\n errorText = 'Field is invalid',\n formControlStyle,\n fullWidth = true,\n helperText,\n inlineField = false,\n invalid = false,\n invalidIconColor = 'danger',\n label,\n labelPosition = 'start',\n labelStyle,\n onContrast = false,\n readOnly = false,\n required = false,\n showOptionalElement = false,\n size = 'md',\n useInvalidIcon = false,\n useInvalidText = true,\n ...props\n }: WithFormControlProps): React.JSX.Element => {\n // TODO: Fix (Optional) for multiple lines\n const labelComponent = (\n <Field.Label\n className=\"FormControl__Label\"\n color={onContrast ? 'text.contrast' : 'text'}\n fontSize={fontSizes[size]}\n {...labelStyle}\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {label}\n <Field.RequiredIndicator\n className=\"FormControl__RequiredIndicator\"\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n {...(!required && {\n fallback: showOptionalElement ? (\n <Text variant={onContrast ? 'subtleOnContrast' : 'subtle'} fontSize={optionalTextSizeMap[size]}>\n {' '}\n (Optional)\n </Text>\n ) : (\n <></>\n ),\n })}\n />\n </Field.Label>\n );\n\n return (\n <Field.Root\n className=\"FormControl group\"\n disabled={disabled}\n invalid={invalid}\n readOnly={readOnly}\n required={required}\n width={fullWidth ? '100%' : 'auto'}\n {...formControlStyle}\n >\n <Flex\n className=\"FormControl__Container\"\n flexDirection={inlineField ? 'row' : 'column'}\n w={inlineField ? 'max-content' : '100%'}\n gap={2}\n >\n {label && labelPosition === 'start' && labelComponent}\n <Flex className=\"FormControl__Content\" alignItems=\"center\" gap={2} w={inlineField ? 'max-content' : '100%'}>\n <Component\n disabled={disabled}\n invalid={invalid}\n onContrast={onContrast}\n readOnly={readOnly}\n required={required}\n size={size}\n {...(props as P)}\n />\n {useInvalidIcon && invalid && (\n <Icon className=\"FormControl__InvalidIcon\" name=\"warningSign\" variant={invalidIconColor} size={size} />\n )}\n </Flex>\n {label && labelPosition === 'end' && labelComponent}\n </Flex>\n {useInvalidText && invalid && (\n <Field.ErrorText\n className=\"FormControl__ErrorText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n >\n {errorText}\n </Field.ErrorText>\n )}\n {helperText && (\n <Field.HelperText\n className=\"FormControl__HelperText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.subtle.contrast' : 'text.subtle'}\n >\n {helperText}\n </Field.HelperText>\n )}\n </Field.Root>\n );\n };\n\n WithFormControl.displayName = `withFormControl(${Component.displayName || Component.name}`;\n return WithFormControl;\n};\n"],"names":["FieldErrorText","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","FieldHelperText","FieldLabel","useSafeLayoutEffect","useLayoutEffect","useEffect","FieldsetProvider","useFieldsetContext","createContext","useField","fieldset","ids","disabled","invalid","readOnly","required","hasErrorText","setHasErrorText","useState","hasHelperText","setHasHelperText","id","useId","rootRef","useRef","rootId","errorTextId","helperTextId","labelId","rootNode","win","getWindow","doc","checkTextElements","observer","labelIds","useMemo","ids2","getRootProps","parts","dataAttr","getLabelProps","getControlProps","ariaAttr","getInputProps","getTextareaProps","getSelectProps","getHelperTextProps","getErrorTextProps","getRequiredIndicatorProps","FieldRoot","useFieldProps","localProps","createSplitProps","FieldProvider","composeRefs","useRecipeResult","createRecipeContext","Icon","React","styles","className","otherProps","chakra","cx","createIcon","options","viewBox","pathDefinition","displayName","defaultProps","path","Children","Comp","withProvider","withContext","useFieldStyles","useClassNames","createSlotRecipeContext","Field.Root","Field.Label","Field.HelperText","Field.ErrorText","FieldRequiredIndicator","fallback","children","restProps","classNames","optionalTextSizeMap","withFormControl","Component","WithFormControl","errorText","formControlStyle","fullWidth","helperText","inlineField","invalidIconColor","label","labelPosition","labelStyle","onContrast","showOptionalElement","size","useInvalidIcon","useInvalidText","labelComponent","jsxs","fontSizes","e","Field.RequiredIndicator","Text","Fragment","Flex"],"mappings":";;;;;;;;;;;;;AAOA,MAAMA,IAAiBC,EAAW,CAACC,GAAOC,MAAQ;AAChD,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,EAAM,kBAAiB,GAAIF,CAAK;AAC/D,SAAIE,GAAO,UACcI,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAH,GAAK,IAEvD;AACT,CAAC;AACDH,EAAe,cAAc;ACR7B,MAAMU,IAAkBT,EAAW,CAACC,GAAOC,MAAQ;AACjD,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,GAAO,mBAAkB,GAAIF,CAAK;AACjE,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC9D,CAAC;AACDO,EAAgB,cAAc;ACL9B,MAAMC,IAAaV,EAAW,CAACC,GAAOC,MAAQ;AAC5C,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,GAAO,cAAa,GAAIF,CAAK;AAC5D,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,OAAO,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC/D,CAAC;AACDQ,EAAW,cAAc;ACTzB,MAAMC,KAAsB,OAAO,SAAW,MAAcC,IAAkBC,ICAxE,CAACC,IAAkBC,EAAkB,IAAIC,GAAc;AAAA,EAC3D,MAAM;AAAA,EACN,UAAU;AAAA,EACV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AAA,cACV,UAAS;AAAA,cACT,OAAOoB,IAAa,yBAAyB;AAAA,cAE5C,UAAAN;AAAA,YAAA;AAAA,UAAA;AAAA,QACH;AAAA,MAAA;AAAA,IAEJ;AAAA,EAEJ;AAEA,SAAAJ,EAAgB,cAAc,mBAAmBD,EAAU,eAAeA,EAAU,IAAI,IACjFC;AACT;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
|
|
1
|
+
{"version":3,"file":"withFormControl-D0tbS4T0.js","sources":["../../node_modules/@ark-ui/react/dist/components/field/field-error-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-helper-text.js","../../node_modules/@ark-ui/react/dist/components/field/field-label.js","../../node_modules/@ark-ui/react/dist/utils/use-safe-layout-effect.js","../../node_modules/@ark-ui/react/dist/components/fieldset/use-fieldset-context.js","../../node_modules/@ark-ui/react/dist/components/field/use-field.js","../../node_modules/@ark-ui/react/dist/components/field/field-root.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/icon/create-icon.js","../../node_modules/@chakra-ui/react/dist/esm/components/field/field.js","../../src/hocs/withFormControl/withFormControl.records.ts","../../src/hocs/withFormControl/withFormControl.tsx"],"sourcesContent":["'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldErrorText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field.getErrorTextProps(), props);\n if (field?.invalid) {\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n }\n return null;\n});\nFieldErrorText.displayName = \"FieldErrorText\";\n\nexport { FieldErrorText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldHelperText = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getHelperTextProps(), props);\n return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });\n});\nFieldHelperText.displayName = \"FieldHelperText\";\n\nexport { FieldHelperText };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useFieldContext } from './use-field-context.js';\n\nconst FieldLabel = forwardRef((props, ref) => {\n const field = useFieldContext();\n const mergedProps = mergeProps(field?.getLabelProps(), props);\n return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });\n});\nFieldLabel.displayName = \"FieldLabel\";\n\nexport { FieldLabel };\n","'use client';\nimport { useLayoutEffect, useEffect } from 'react';\n\nconst useSafeLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\nexport { useSafeLayoutEffect };\n","'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [FieldsetProvider, useFieldsetContext] = createContext({\n name: \"FieldsetContext\",\n hookName: \"useFieldsetContext\",\n providerName: \"<FieldsetProvider />\",\n strict: false\n});\n\nexport { FieldsetProvider, useFieldsetContext };\n","'use client';\nimport { getWindow, dataAttr, ariaAttr } from '@zag-js/dom-query';\nimport { useState, useId, useRef, useMemo } from 'react';\nimport { useSafeLayoutEffect } from '../../utils/use-safe-layout-effect.js';\nimport { useFieldsetContext } from '../fieldset/use-fieldset-context.js';\nimport { parts } from './field.anatomy.js';\n\nconst useField = (props = {}) => {\n const fieldset = useFieldsetContext();\n const { ids, disabled = Boolean(fieldset?.disabled), invalid = false, readOnly = false, required = false } = props;\n const [hasErrorText, setHasErrorText] = useState(false);\n const [hasHelperText, setHasHelperText] = useState(false);\n const id = props.id ?? useId();\n const rootRef = useRef(null);\n const rootId = ids?.control ?? `field::${id}`;\n const errorTextId = ids?.errorText ?? `field::${id}::error-text`;\n const helperTextId = ids?.helperText ?? `field::${id}::helper-text`;\n const labelId = ids?.label ?? `field::${id}::label`;\n useSafeLayoutEffect(() => {\n const rootNode = rootRef.current;\n if (!rootNode) return;\n const win = getWindow(rootNode);\n const doc = win.document;\n const checkTextElements = () => {\n setHasErrorText(!!doc.getElementById(errorTextId));\n setHasHelperText(!!doc.getElementById(helperTextId));\n };\n checkTextElements();\n const observer = new win.MutationObserver(checkTextElements);\n observer.observe(rootNode, { childList: true, subtree: true });\n return () => observer.disconnect();\n }, [errorTextId, helperTextId]);\n const labelIds = useMemo(() => {\n const ids2 = [];\n if (hasErrorText && invalid) ids2.push(errorTextId);\n if (hasHelperText) ids2.push(helperTextId);\n return ids2.join(\" \") || void 0;\n }, [invalid, errorTextId, helperTextId, hasErrorText, hasHelperText]);\n const getRootProps = useMemo(\n () => () => ({\n ...parts.root.attrs,\n id: rootId,\n ref: rootRef,\n role: \"group\",\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly)\n }),\n [disabled, invalid, readOnly, rootId]\n );\n const getLabelProps = useMemo(\n () => () => ({\n ...parts.label.attrs,\n id: labelId,\n \"data-disabled\": dataAttr(disabled),\n \"data-invalid\": dataAttr(invalid),\n \"data-readonly\": dataAttr(readOnly),\n htmlFor: id\n }),\n [disabled, invalid, readOnly, id, labelId]\n );\n const getControlProps = useMemo(\n () => () => ({\n \"aria-describedby\": labelIds,\n \"aria-invalid\": ariaAttr(invalid),\n \"data-invalid\": dataAttr(invalid),\n \"data-required\": dataAttr(required),\n \"data-readonly\": dataAttr(readOnly),\n id,\n required,\n disabled,\n readOnly\n }),\n [labelIds, invalid, required, readOnly, id, disabled]\n );\n const getInputProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.input.attrs\n }),\n [getControlProps]\n );\n const getTextareaProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.textarea.attrs\n }),\n [getControlProps]\n );\n const getSelectProps = useMemo(\n () => () => ({\n ...getControlProps(),\n ...parts.select.attrs\n }),\n [getControlProps]\n );\n const getHelperTextProps = useMemo(\n () => () => ({\n id: helperTextId,\n ...parts.helperText.attrs,\n \"data-disabled\": dataAttr(disabled)\n }),\n [disabled, helperTextId]\n );\n const getErrorTextProps = useMemo(\n () => () => ({\n id: errorTextId,\n ...parts.errorText.attrs,\n \"aria-live\": \"polite\"\n }),\n [errorTextId]\n );\n const getRequiredIndicatorProps = useMemo(\n () => () => ({\n \"aria-hidden\": true,\n ...parts.requiredIndicator.attrs\n }),\n []\n );\n return {\n ariaDescribedby: labelIds,\n ids: {\n root: rootId,\n control: id,\n label: labelId,\n errorText: errorTextId,\n helperText: helperTextId\n },\n refs: {\n rootRef\n },\n disabled,\n invalid,\n readOnly,\n required,\n getLabelProps,\n getRootProps,\n getInputProps,\n getTextareaProps,\n getSelectProps,\n getHelperTextProps,\n getErrorTextProps,\n getRequiredIndicatorProps\n };\n};\n\nexport { useField };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { createSplitProps } from '../../utils/create-split-props.js';\nimport { ark } from '../factory.js';\nimport { useField } from './use-field.js';\nimport { FieldProvider } from './use-field-context.js';\n\nconst FieldRoot = forwardRef((props, ref) => {\n const [useFieldProps, localProps] = createSplitProps()(props, [\n \"id\",\n \"ids\",\n \"disabled\",\n \"invalid\",\n \"readOnly\",\n \"required\"\n ]);\n const field = useField(useFieldProps);\n const mergedProps = mergeProps(field.getRootProps(), localProps);\n return /* @__PURE__ */ jsx(FieldProvider, { value: field, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(ref, field.refs.rootRef) }) });\n});\nFieldRoot.displayName = \"FieldRoot\";\n\nexport { FieldRoot };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport * as React from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst { useRecipeResult, PropsProvider } = createRecipeContext({ key: \"icon\" });\nconst Icon = React.forwardRef(\n function Icon2(props, ref) {\n const {\n styles,\n className,\n props: otherProps\n } = useRecipeResult({ asChild: !props.as, ...props });\n return /* @__PURE__ */ jsx(\n chakra.svg,\n {\n ref,\n focusable: false,\n \"aria-hidden\": \"true\",\n ...otherProps,\n css: [styles, props.css],\n className: cx(className, props.className)\n }\n );\n }\n);\nconst IconPropsProvider = PropsProvider;\n\nexport { Icon, IconPropsProvider };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Children, forwardRef } from 'react';\nimport { Icon } from './icon.js';\n\nfunction createIcon(options) {\n const {\n viewBox = \"0 0 24 24\",\n d: pathDefinition,\n displayName,\n defaultProps = {}\n } = options;\n const path = Children.toArray(options.path);\n const Comp = forwardRef((props, ref) => /* @__PURE__ */ jsx(\n Icon,\n {\n ref,\n asChild: false,\n viewBox,\n ...defaultProps,\n ...props,\n children: path.length ? path : /* @__PURE__ */ jsx(\"path\", { fill: \"currentColor\", d: pathDefinition })\n }\n ));\n Comp.displayName = displayName;\n return Comp;\n}\n\nexport { createIcon };\n","\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Field, useFieldContext } from '@ark-ui/react/field';\nimport { forwardRef } from 'react';\nimport { cx } from '../../utils/cx.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { createIcon } from '../icon/create-icon.js';\n\nconst {\n withProvider,\n withContext,\n useStyles: useFieldStyles,\n useClassNames,\n PropsProvider\n} = createSlotRecipeContext({ key: \"field\" });\nconst FieldRoot = withProvider(\n Field.Root,\n \"root\",\n { forwardAsChild: true }\n);\nconst FieldPropsProvider = PropsProvider;\nconst FieldLabel = withContext(\n Field.Label,\n \"label\",\n { forwardAsChild: true }\n);\nconst FieldHelperText = withContext(Field.HelperText, \"helperText\", { forwardAsChild: true });\nconst FieldErrorText = withContext(\n Field.ErrorText,\n \"errorText\",\n { forwardAsChild: true }\n);\nconst FieldErrorIcon = createIcon({\n d: \"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z\"\n});\nconst FieldRequiredIndicator = forwardRef(function RequiredIndicator(props, ref) {\n const { fallback, children = \"*\", ...restProps } = props;\n const field = useFieldContext();\n const classNames = useClassNames();\n const styles = useFieldStyles();\n if (!field?.required) {\n return fallback;\n }\n return /* @__PURE__ */ jsx(\n chakra.span,\n {\n ref,\n \"aria-hidden\": \"true\",\n ...restProps,\n className: cx(classNames.requiredIndicator, props.className),\n css: [styles.requiredIndicator, props.css],\n children\n }\n );\n});\n\nexport { FieldErrorIcon, FieldErrorText, FieldHelperText, FieldLabel, FieldPropsProvider, FieldRequiredIndicator, FieldRoot, useFieldStyles };\n","import { FormControlSize } from './withFormControl.types';\n\nexport const optionalTextSizeMap: Record<FormControlSize, number> = {\n sm: 10,\n md: 12,\n lg: 14,\n};\n","import React from 'react';\nimport { Field } from '@chakra-ui/react/field';\nimport { FormControlLabelPosition, FormControlSize } from './withFormControl.types';\nimport { SystemStyleObject } from '@chakra-ui/react/styled-system';\nimport { TypographyVariant } from 'shared/types/typography';\nimport { Text } from 'components/Text/text.component';\nimport { optionalTextSizeMap } from './withFormControl.records';\nimport { fontSizes } from 'theme/tokens/typography/typography.records';\nimport { Flex } from '@chakra-ui/react/flex';\nimport { Icon } from 'components/Icon/icon.component';\n\nexport interface WithFormControlProps {\n disabled?: boolean;\n errorText?: string;\n formControlStyle?: SystemStyleObject;\n fullWidth?: boolean;\n helperText?: string;\n inlineField?: boolean;\n invalid?: boolean;\n invalidIconColor?: TypographyVariant;\n label?: string | React.ReactNode;\n labelPosition?: FormControlLabelPosition;\n labelStyle?: SystemStyleObject;\n onContrast?: boolean;\n readOnly?: boolean;\n required?: boolean;\n showOptionalElement?: boolean;\n size?: FormControlSize;\n useInvalidIcon?: boolean;\n useInvalidText?: boolean;\n}\n\nexport const withFormControl = <P extends WithFormControlProps>(Component: React.ComponentType<P>): React.FC<P> => {\n const WithFormControl = ({\n disabled = false,\n errorText = 'Field is invalid',\n formControlStyle,\n fullWidth = true,\n helperText,\n inlineField = false,\n invalid = false,\n invalidIconColor = 'danger',\n label,\n labelPosition = 'start',\n labelStyle,\n onContrast = false,\n readOnly = false,\n required = false,\n showOptionalElement = false,\n size = 'md',\n useInvalidIcon = false,\n useInvalidText = true,\n ...props\n }: WithFormControlProps): React.JSX.Element => {\n // TODO: Fix (Optional) for multiple lines\n const labelComponent = (\n <Field.Label\n className=\"FormControl__Label\"\n color={onContrast ? 'text.contrast' : 'text'}\n fontSize={fontSizes[size]}\n {...labelStyle}\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {label}\n <Field.RequiredIndicator\n className=\"FormControl__RequiredIndicator\"\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n {...(!required && {\n fallback: showOptionalElement ? (\n <Text variant={onContrast ? 'subtleOnContrast' : 'subtle'} fontSize={optionalTextSizeMap[size]}>\n {' '}\n (Optional)\n </Text>\n ) : (\n <></>\n ),\n })}\n />\n </Field.Label>\n );\n\n return (\n <Field.Root\n className=\"FormControl group\"\n disabled={disabled}\n invalid={invalid}\n readOnly={readOnly}\n required={required}\n width={fullWidth ? '100%' : 'auto'}\n {...formControlStyle}\n >\n <Flex\n className=\"FormControl__Container\"\n flexDirection={inlineField ? 'row' : 'column'}\n w={inlineField ? 'max-content' : '100%'}\n gap={2}\n >\n {label && labelPosition === 'start' && labelComponent}\n <Flex className=\"FormControl__Content\" alignItems=\"center\" gap={2} w={inlineField ? 'max-content' : '100%'}>\n <Component\n disabled={disabled}\n invalid={invalid}\n onContrast={onContrast}\n readOnly={readOnly}\n required={required}\n size={size}\n {...(props as P)}\n />\n {useInvalidIcon && invalid && (\n <Icon className=\"FormControl__InvalidIcon\" name=\"warningSign\" variant={invalidIconColor} size={size} />\n )}\n </Flex>\n {label && labelPosition === 'end' && labelComponent}\n </Flex>\n {useInvalidText && invalid && (\n <Field.ErrorText\n className=\"FormControl__ErrorText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.danger.contrast' : 'text.danger'}\n >\n {errorText}\n </Field.ErrorText>\n )}\n {helperText && (\n <Field.HelperText\n className=\"FormControl__HelperText\"\n fontSize=\"xs\"\n color={onContrast ? 'text.subtle.contrast' : 'text.subtle'}\n >\n {helperText}\n </Field.HelperText>\n )}\n </Field.Root>\n );\n };\n\n WithFormControl.displayName = `withFormControl(${Component.displayName || Component.name}`;\n return WithFormControl;\n};\n"],"names":["FieldErrorText","forwardRef","props","ref","field","useFieldContext","mergedProps","mergeProps","jsx","ark","FieldHelperText","FieldLabel","useSafeLayoutEffect","useLayoutEffect","useEffect","FieldsetProvider","useFieldsetContext","createContext","useField","fieldset","ids","disabled","invalid","readOnly","required","hasErrorText","setHasErrorText","useState","hasHelperText","setHasHelperText","id","useId","rootRef","useRef","rootId","errorTextId","helperTextId","labelId","rootNode","win","getWindow","doc","checkTextElements","observer","labelIds","useMemo","ids2","getRootProps","parts","dataAttr","getLabelProps","getControlProps","ariaAttr","getInputProps","getTextareaProps","getSelectProps","getHelperTextProps","getErrorTextProps","getRequiredIndicatorProps","FieldRoot","useFieldProps","localProps","createSplitProps","FieldProvider","composeRefs","useRecipeResult","createRecipeContext","Icon","React","styles","className","otherProps","chakra","cx","createIcon","options","viewBox","pathDefinition","displayName","defaultProps","path","Children","Comp","withProvider","withContext","useFieldStyles","useClassNames","createSlotRecipeContext","Field.Root","Field.Label","Field.HelperText","Field.ErrorText","FieldRequiredIndicator","fallback","children","restProps","classNames","optionalTextSizeMap","withFormControl","Component","WithFormControl","errorText","formControlStyle","fullWidth","helperText","inlineField","invalidIconColor","label","labelPosition","labelStyle","onContrast","showOptionalElement","size","useInvalidIcon","useInvalidText","labelComponent","jsxs","fontSizes","e","Field.RequiredIndicator","Text","Fragment","Flex"],"mappings":";;;;;;;;;;;;;AAOA,MAAMA,IAAiBC,EAAW,CAACC,GAAOC,MAAQ;AAChD,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,EAAM,kBAAiB,GAAIF,CAAK;AAC/D,SAAIE,GAAO,UACcI,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAH,GAAK,IAEvD;AACT,CAAC;AACDH,EAAe,cAAc;ACR7B,MAAMU,IAAkBT,EAAW,CAACC,GAAOC,MAAQ;AACjD,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,GAAO,mBAAkB,GAAIF,CAAK;AACjE,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,MAAM,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC9D,CAAC;AACDO,EAAgB,cAAc;ACL9B,MAAMC,IAAaV,EAAW,CAACC,GAAOC,MAAQ;AAC5C,QAAMC,IAAQC,EAAiB,GACzBC,IAAcC,EAAWH,GAAO,cAAa,GAAIF,CAAK;AAC5D,SAAuBM,gBAAAA,EAAAA,IAAIC,EAAI,OAAO,EAAE,GAAGH,GAAa,KAAAH,GAAK;AAC/D,CAAC;AACDQ,EAAW,cAAc;ACTzB,MAAMC,KAAsB,OAAO,SAAW,MAAcC,IAAkBC,ICAxE,CAACC,IAAkBC,EAAkB,IAAIC,GAAc;AAAA,EAC3D,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,QAAQ;AACV,CAAC,GCDKC,KAAW,CAAChB,IAAQ,OAAO;AAC/B,QAAMiB,IAAWH,GAAoB,GAC/B,EAA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MAAA;AAAA,IAEJ;AAAA,EAEJ;AAEA,SAAAJ,EAAgB,cAAc,mBAAmBD,EAAU,eAAeA,EAAU,IAAI,IACjFC;AACT;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { memo as m, useState as w, useRef as x, useCallback as h, useEffect as g } from "react";
|
|
3
|
-
import { T as k } from "./tooltip.component-
|
|
3
|
+
import { T as k } from "./tooltip.component-B15VGEn1.js";
|
|
4
4
|
import { B as v } from "./box-Ck9I7FYv.js";
|
|
5
5
|
const N = (i) => {
|
|
6
6
|
const l = m(i);
|
|
@@ -64,4 +64,4 @@ const N = (i) => {
|
|
|
64
64
|
export {
|
|
65
65
|
N as w
|
|
66
66
|
};
|
|
67
|
-
//# sourceMappingURL=withTruncation-
|
|
67
|
+
//# sourceMappingURL=withTruncation-DgpjWopq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTruncation-
|
|
1
|
+
{"version":3,"file":"withTruncation-DgpjWopq.js","sources":["../../src/hocs/withTruncation.tsx"],"sourcesContent":["import React, { ReactNode, useCallback, useEffect, useRef, useState, memo } from 'react';\nimport { Box } from '@chakra-ui/react/box';\nimport { Tooltip, TooltipProps } from 'components/Tooltip';\n\nexport interface WithTruncationProps {\n truncated?: boolean;\n noOfLines?: number;\n tooltipProps?: Omit<TooltipProps, 'disabled'>;\n children?: ReactNode | string;\n}\n\nexport const withTruncation = <P extends WithTruncationProps>(Component: React.ComponentType<P>): React.FC<P> => {\n const MemoizedComponent = memo(Component);\n\n function WithTruncation({\n truncated = false,\n noOfLines = 1,\n children,\n tooltipProps,\n ...rest\n }: WithTruncationProps): React.JSX.Element {\n const [isTextOverFlowing, setIsTextOverFlowing] = useState<boolean>(false);\n const containerRef = useRef<HTMLDivElement>(null);\n const resizeObserverRef = useRef<ResizeObserver | null>(null);\n\n const checkOverflow = useCallback(() => {\n if (containerRef.current) {\n const textScrollHeight = containerRef.current?.children[0].scrollHeight || 0;\n const containerOffsetHeight = containerRef.current?.offsetHeight || 0;\n setIsTextOverFlowing(textScrollHeight > containerOffsetHeight);\n }\n }, []);\n\n useEffect(() => {\n if (truncated && containerRef.current) {\n let timeoutId: number;\n\n const debouncedCheck = (): void => {\n window.clearTimeout(timeoutId);\n timeoutId = window.setTimeout(checkOverflow, 100);\n };\n\n resizeObserverRef.current = new ResizeObserver(() => {\n debouncedCheck();\n });\n\n resizeObserverRef.current.observe(containerRef.current);\n checkOverflow(); // Initial check\n\n return (): void => {\n window.clearTimeout(timeoutId);\n if (resizeObserverRef.current) {\n resizeObserverRef.current.disconnect();\n }\n };\n }\n }, [truncated, checkOverflow]);\n\n if (!truncated) {\n return <MemoizedComponent {...(rest as P)}>{children}</MemoizedComponent>;\n }\n\n return (\n <Tooltip\n {...tooltipProps}\n label={tooltipProps?.label || children?.toLocaleString() || ''}\n disabled={!isTextOverFlowing}\n data-testid=\"kibble-truncated-text-tooltip\"\n >\n <Box\n ref={containerRef}\n display=\"inline-block\"\n position=\"relative\"\n className=\"TruncatedText__Wrapper\"\n data-testid=\"kibble-truncated-text-wrapper\"\n >\n <MemoizedComponent\n className=\"TruncatedText__TextContent\"\n data-testid=\"kibble-truncated-text-content\"\n lineClamp={noOfLines}\n {...(rest as P)}\n >\n {children}\n </MemoizedComponent>\n </Box>\n </Tooltip>\n );\n }\n\n WithTruncation.displayName = `withTruncation(${Component.displayName || Component.name}`;\n return memo(WithTruncation);\n};\n"],"names":["withTruncation","Component","MemoizedComponent","memo","WithTruncation","truncated","noOfLines","children","tooltipProps","rest","isTextOverFlowing","setIsTextOverFlowing","useState","containerRef","useRef","resizeObserverRef","checkOverflow","useCallback","textScrollHeight","containerOffsetHeight","useEffect","timeoutId","debouncedCheck","jsx","Tooltip","Box"],"mappings":";;;;AAWa,MAAAA,IAAiB,CAAgCC,MAAmD;AACzG,QAAAC,IAAoBC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AS;AAAA,YACT,WAAU;AAAA,YACV,eAAY;AAAA,YAEZ,UAAAU,gBAAAA,EAAA;AAAA,cAACrB;AAAA,cAAA;AAAA,gBACC,WAAU;AAAA,gBACV,eAAY;AAAA,gBACZ,WAAWI;AAAA,gBACV,GAAIG;AAAA,gBAEJ,UAAAF;AAAA,cAAA;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MACF;AAAA,IACF,IA1BQgB,gBAAAA,EAAA,IAAArB,GAAA,EAAmB,GAAIO,GAAa,UAAAF,EAAS,CAAA;AAAA,EA0BrD;AAIJ,SAAAH,EAAe,cAAc,kBAAkBH,EAAU,eAAeA,EAAU,IAAI,IAC/EE,EAAKC,CAAc;AAC5B;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/buttonGroup.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/buttonGroup.component-DzmuqXEs.js");exports.ButtonGroup=t.ButtonGroup;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/card.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/card.component-BTiT4hHy.js"),r=require("../../../chunks/card.types-MvkQTTZF.js");exports.Card=e.Card;exports.cardSizes=r.cardSizes;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkbox.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkbox.component-D6mIURLH.js");exports.Checkbox=e.WrappedCheckbox;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkboxGroup.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/checkboxGroup.component-BmXZ4DkX.js");exports.CheckboxGroup=e.WrappedCheckboxGroup;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/conversationCard.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/conversationCard.component-Bk2KjDyd.js");exports.ConversationCard=e.ConversationCard;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/datePicker.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/datePicker.component-DwkXBtUr.js");exports.DateFormats=e.DateFormats;exports.DatePicker=e.DatePicker;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/menu.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/menu.component-CInWl3xv.js");exports.Menu=e.Menu;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/radioGroup.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/radioGroup.component-DLEnjQgU.js");exports.RadioGroup=o.WrappedRadioGroup;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/tagBlock.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/tagBlock.component-DkmcQ5Xu.js");exports.TagBlock=e.TagBlock;exports.TagDisabledState=e.TagDisabledState;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../chunks/alert.types-CEvBY7aM.js"),q=require("../../chunks/avatar.component-Dv96XFOF.js"),a=require("../../chunks/avatar.types-Bmt5Uhfb.js"),S=require("../../chunks/avatarGroup.component-CfSBCJKG.js"),v=require("../../chunks/button.component-CsJxgblU.js"),e=require("../../chunks/button.types-Bl1awbi0.js"),T=require("../../chunks/buttonGroup.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../chunks/alert.types-CEvBY7aM.js"),q=require("../../chunks/avatar.component-Dv96XFOF.js"),a=require("../../chunks/avatar.types-Bmt5Uhfb.js"),S=require("../../chunks/avatarGroup.component-CfSBCJKG.js"),v=require("../../chunks/button.component-CsJxgblU.js"),e=require("../../chunks/button.types-Bl1awbi0.js"),T=require("../../chunks/buttonGroup.component-DzmuqXEs.js"),g=require("../../chunks/card.component-BTiT4hHy.js"),y=require("../../chunks/card.types-MvkQTTZF.js"),b=require("../../chunks/characterCounter.component-DXmly18j.js"),C=require("../../chunks/checkbox.component-D6mIURLH.js"),P=require("../../chunks/checkboxGroup.component-BmXZ4DkX.js"),z=require("../../chunks/conversationCard.component-Bk2KjDyd.js"),s=require("../../chunks/datePicker.component-DwkXBtUr.js"),o=require("../../chunks/divider.types-CK5oFy-i.js"),h=require("../../chunks/heading.component-BMvc5kM8.js"),k=require("../../chunks/icon.component-B6R8-DRk.js"),x=require("../../chunks/icon.types-2obj_NKG.js"),V=require("../../chunks/link.component-BCY_f6zw.js"),n=require("../../chunks/logo.types-CA_5hGAi.js"),B=require("../../chunks/menu.component-CInWl3xv.js"),t=require("../../chunks/modal.types-BiEPKa2t.js"),D=require("../../chunks/notificationCounter.component-BhZcuBmr.js"),c=require("../../chunks/notificationCounter.types-B_-siNfi.js"),G=require("../../chunks/picture.component-C2C2r_BU.js"),p=require("../../chunks/pinInput.types-CnU27QDl.js"),I=require("../../chunks/popover.component-B1NHpxuL.js"),r=require("../../chunks/popover.types-BF2KRf_I.js"),f=require("../../chunks/radioGroup.component-DLEnjQgU.js"),A=require("../../chunks/ratingDots.component-BAtcU4JC.js"),W=require("../../chunks/select.component-29vEA8EQ.js"),M=require("../../chunks/sortableList.component-CPYA3KKy.js"),w=require("../../chunks/spinner.component-CzOv8dIY.js"),L=require("../../chunks/spinner.types-BCLN5-H2.js"),u=require("../../chunks/styledAvatar.types-9huVpPvU.js"),d=require("../../chunks/swatch.types-qncm_zG6.js"),R=require("../../chunks/switch.component-DghHmo1Q.js"),O=require("../../chunks/tabs.component-Cnvn_Y5x.js"),F=require("../../chunks/tag.component-DcEASytC.js"),m=require("../../chunks/tag.types-BnDFgTvb.js"),l=require("../../chunks/tagBlock.component-DkmcQ5Xu.js"),H=require("../../chunks/text.component-waIIFgwB.js"),N=require("../../chunks/textInput.component-Dg0NjMGd.js"),j=require("../../chunks/textarea.component-DQAMtD62.js"),_=require("../../chunks/timePicker.component-CbfNMKHg.js"),E=require("../../chunks/timeRange.component-CL5z9FRa.js"),J=require("../../chunks/timestamp.component-B1UUyLk6.js"),K=require("./Toast/index.cjs"),Q=require("../../chunks/tooltip.component-BlX3B2Di.js");exports.Alert=i.Alert;exports.alertButtonPositions=i.alertButtonPositions;exports.Avatar=q.Avatar;exports.avatarSizes=a.avatarSizes;exports.avatarVariants=a.avatarVariants;exports.AvatarGroup=S.AvatarGroup;exports.Button=v.Button;exports.buttonConfigVariants=e.buttonConfigVariants;exports.buttonIconPositions=e.buttonIconPositions;exports.buttonSizes=e.buttonSizes;exports.buttonSpinnerPlacements=e.buttonSpinnerPlacements;exports.buttonVariants=e.buttonVariants;exports.ButtonGroup=T.ButtonGroup;exports.Card=g.Card;exports.cardSizes=y.cardSizes;exports.CharacterCounter=b.CharacterCounter;exports.Checkbox=C.WrappedCheckbox;exports.CheckboxGroup=P.WrappedCheckboxGroup;exports.ConversationCard=z.ConversationCard;exports.DateFormats=s.DateFormats;exports.DatePicker=s.DatePicker;exports.Divider=o.Divider;exports.dividerOrientations=o.dividerOrientations;exports.dividerSizes=o.dividerSizes;exports.dividerVariants=o.dividerVariants;exports.Heading=h.WrappedHeading;exports.Icon=k.Icon;exports.iconSizes=x.iconSizes;exports.Link=V.Link;exports.Logo=n.Logo;exports.logoTypes=n.logoTypes;exports.logoVariants=n.logoVariants;exports.Menu=B.Menu;exports.Modal=t.Modal;exports.modalMotionPresets=t.modalMotionPresets;exports.modalPlacements=t.modalPlacements;exports.modalScrollBehaviors=t.modalScrollBehaviors;exports.modalSizes=t.modalSizes;exports.NotificationCounter=D.NotificationCounter;exports.notificationCounterSizes=c.notificationCounterSizes;exports.notificationCounterVariants=c.notificationCounterVariants;exports.Picture=G.Picture;exports.PinInput=p.WrappedPinInput;exports.pinInputTypes=p.pinInputTypes;exports.Popover=I.Popover;exports.popoverSizes=r.popoverSizes;exports.popoverTriggerTypes=r.popoverTriggerTypes;exports.popoverVariants=r.popoverVariants;exports.RadioGroup=f.WrappedRadioGroup;exports.RatingDots=A.WrappedRatingDots;exports.Select=W.WrappedSelect;exports.SortableList=M.SortableList;exports.Spinner=w.Spinner;exports.spinnerSizes=L.spinnerSizes;exports.StyledAvatar=u.StyledAvatar;exports.styledAvatarTypes=u.styledAvatarTypes;exports.Swatch=d.Swatch;exports.swatchSizes=d.swatchSizes;exports.Switch=R.WrappedSwitch;exports.Tabs=O.Tabs;exports.Tag=F.Tag;exports.closeButtonDisplays=m.closeButtonDisplays;exports.tagSizes=m.tagSizes;exports.TagBlock=l.TagBlock;exports.TagDisabledState=l.TagDisabledState;exports.Text=H.WrappedText;exports.TextInput=N.WrappedTextInput;exports.Textarea=j.WrappedTextarea;exports.Meridiem=_.Meridiem;exports.TimePicker=_.TimePicker;exports.TimeRange=E.TimeRange;exports.Timestamp=J.Timestamp;exports.useToast=K.useToast;exports.Tooltip=Q.Tooltip;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../chunks/alert.types-CEvBY7aM.js"),T=require("../chunks/avatar.component-Dv96XFOF.js"),c=require("../chunks/avatar.types-Bmt5Uhfb.js"),g=require("../chunks/avatarGroup.component-CfSBCJKG.js"),h=require("../chunks/button.component-CsJxgblU.js"),e=require("../chunks/button.types-Bl1awbi0.js"),y=require("../chunks/buttonGroup.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../chunks/alert.types-CEvBY7aM.js"),T=require("../chunks/avatar.component-Dv96XFOF.js"),c=require("../chunks/avatar.types-Bmt5Uhfb.js"),g=require("../chunks/avatarGroup.component-CfSBCJKG.js"),h=require("../chunks/button.component-CsJxgblU.js"),e=require("../chunks/button.types-Bl1awbi0.js"),y=require("../chunks/buttonGroup.component-DzmuqXEs.js"),S=require("../chunks/card.component-BTiT4hHy.js"),b=require("../chunks/card.types-MvkQTTZF.js"),C=require("../chunks/characterCounter.component-DXmly18j.js"),k=require("../chunks/checkbox.component-D6mIURLH.js"),P=require("../chunks/checkboxGroup.component-BmXZ4DkX.js"),x=require("../chunks/conversationCard.component-Bk2KjDyd.js"),p=require("../chunks/datePicker.component-DwkXBtUr.js"),r=require("../chunks/divider.types-CK5oFy-i.js"),M=require("../chunks/heading.component-BMvc5kM8.js"),z=require("../chunks/icon.component-B6R8-DRk.js"),D=require("../chunks/icon.types-2obj_NKG.js"),V=require("../chunks/link.component-BCY_f6zw.js"),n=require("../chunks/logo.types-CA_5hGAi.js"),B=require("../chunks/menu.component-CInWl3xv.js"),t=require("../chunks/modal.types-BiEPKa2t.js"),f=require("../chunks/notificationCounter.component-BhZcuBmr.js"),u=require("../chunks/notificationCounter.types-B_-siNfi.js"),w=require("../chunks/picture.component-C2C2r_BU.js"),d=require("../chunks/pinInput.types-CnU27QDl.js"),G=require("../chunks/popover.component-B1NHpxuL.js"),i=require("../chunks/popover.types-BF2KRf_I.js"),I=require("../chunks/radioGroup.component-DLEnjQgU.js"),A=require("../chunks/ratingDots.component-BAtcU4JC.js"),W=require("../chunks/select.component-29vEA8EQ.js"),L=require("../chunks/sortableList.component-CPYA3KKy.js"),R=require("../chunks/spinner.component-CzOv8dIY.js"),K=require("../chunks/spinner.types-BCLN5-H2.js"),m=require("../chunks/styledAvatar.types-9huVpPvU.js"),l=require("../chunks/swatch.types-qncm_zG6.js"),O=require("../chunks/switch.component-DghHmo1Q.js"),F=require("../chunks/tabs.component-Cnvn_Y5x.js"),H=require("../chunks/tag.component-DcEASytC.js"),_=require("../chunks/tag.types-BnDFgTvb.js"),q=require("../chunks/tagBlock.component-DkmcQ5Xu.js"),N=require("../chunks/text.component-waIIFgwB.js"),j=require("../chunks/textInput.component-Dg0NjMGd.js"),E=require("../chunks/textarea.component-DQAMtD62.js"),v=require("../chunks/timePicker.component-CbfNMKHg.js"),J=require("../chunks/timeRange.component-CL5z9FRa.js"),Q=require("../chunks/timestamp.component-B1UUyLk6.js"),U=require("./components/Toast/index.cjs"),X=require("../chunks/tooltip.component-BlX3B2Di.js"),Y=require("../chunks/withDarkMode-B9LErG-p.js"),Z=require("../chunks/withLightMode-fys9Cbqw.js"),$=require("./hooks/useBreakpoint/index.cjs"),ee=require("./hooks/useColorMode/index.cjs"),te=require("./hooks/useColorModeValue/index.cjs"),oe=require("./hooks/useDeviceType/index.cjs"),o=require("./shared/types/index.cjs"),re=require("../chunks/theme-BFbOz0Jj.js"),s=require("../chunks/theme.provider-4wzRpSmC.js");exports.Alert=a.Alert;exports.alertButtonPositions=a.alertButtonPositions;exports.Avatar=T.Avatar;exports.avatarSizes=c.avatarSizes;exports.avatarVariants=c.avatarVariants;exports.AvatarGroup=g.AvatarGroup;exports.Button=h.Button;exports.buttonConfigVariants=e.buttonConfigVariants;exports.buttonIconPositions=e.buttonIconPositions;exports.buttonSizes=e.buttonSizes;exports.buttonSpinnerPlacements=e.buttonSpinnerPlacements;exports.buttonVariants=e.buttonVariants;exports.ButtonGroup=y.ButtonGroup;exports.Card=S.Card;exports.cardSizes=b.cardSizes;exports.CharacterCounter=C.CharacterCounter;exports.Checkbox=k.WrappedCheckbox;exports.CheckboxGroup=P.WrappedCheckboxGroup;exports.ConversationCard=x.ConversationCard;exports.DateFormats=p.DateFormats;exports.DatePicker=p.DatePicker;exports.Divider=r.Divider;exports.dividerOrientations=r.dividerOrientations;exports.dividerSizes=r.dividerSizes;exports.dividerVariants=r.dividerVariants;exports.Heading=M.WrappedHeading;exports.Icon=z.Icon;exports.iconSizes=D.iconSizes;exports.Link=V.Link;exports.Logo=n.Logo;exports.logoTypes=n.logoTypes;exports.logoVariants=n.logoVariants;exports.Menu=B.Menu;exports.Modal=t.Modal;exports.modalMotionPresets=t.modalMotionPresets;exports.modalPlacements=t.modalPlacements;exports.modalScrollBehaviors=t.modalScrollBehaviors;exports.modalSizes=t.modalSizes;exports.NotificationCounter=f.NotificationCounter;exports.notificationCounterSizes=u.notificationCounterSizes;exports.notificationCounterVariants=u.notificationCounterVariants;exports.Picture=w.Picture;exports.PinInput=d.WrappedPinInput;exports.pinInputTypes=d.pinInputTypes;exports.Popover=G.Popover;exports.popoverSizes=i.popoverSizes;exports.popoverTriggerTypes=i.popoverTriggerTypes;exports.popoverVariants=i.popoverVariants;exports.RadioGroup=I.WrappedRadioGroup;exports.RatingDots=A.WrappedRatingDots;exports.Select=W.WrappedSelect;exports.SortableList=L.SortableList;exports.Spinner=R.Spinner;exports.spinnerSizes=K.spinnerSizes;exports.StyledAvatar=m.StyledAvatar;exports.styledAvatarTypes=m.styledAvatarTypes;exports.Swatch=l.Swatch;exports.swatchSizes=l.swatchSizes;exports.Switch=O.WrappedSwitch;exports.Tabs=F.Tabs;exports.Tag=H.Tag;exports.closeButtonDisplays=_.closeButtonDisplays;exports.tagSizes=_.tagSizes;exports.TagBlock=q.TagBlock;exports.TagDisabledState=q.TagDisabledState;exports.Text=N.WrappedText;exports.TextInput=j.WrappedTextInput;exports.Textarea=E.WrappedTextarea;exports.Meridiem=v.Meridiem;exports.TimePicker=v.TimePicker;exports.TimeRange=J.TimeRange;exports.Timestamp=Q.Timestamp;exports.useToast=U.useToast;exports.Tooltip=X.Tooltip;exports.withDarkMode=Y.withDarkMode;exports.withLightMode=Z.withLightMode;exports.useBreakpoint=$.useBreakpoint;exports.useColorMode=ee.useColorMode;exports.useColorModeValue=te.useColorModeValue;exports.useDeviceType=oe.useDeviceType;exports.alignments=o.alignments;exports.flexDirections=o.flexDirections;exports.placements=o.placements;exports.statuses=o.statuses;exports.typographyVariants=o.typographyVariants;exports.colorModeThemeKey=re.colorModeThemeKey;exports.KibbleThemeProvider=s.KibbleThemeProvider;exports.kibbleThemeConfig=s.kibbleThemeConfig;exports.system=s.system;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/theme/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/theme.provider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../chunks/theme.provider-4wzRpSmC.js");exports.KibbleThemeProvider=e.KibbleThemeProvider;exports.kibbleThemeConfig=e.kibbleThemeConfig;exports.system=e.system;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/esm/chakra/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as Y } from "../../chunks/create-recipe-context-D7FewUR4.js";
|
|
2
2
|
import { j as s } from "../../chunks/jsx-runtime-C5mzlN2N.js";
|
|
3
|
-
import { n as Xn, o as Zn, p as Jn, q as Kn, r as es, s as ts, b as os, t as rs, u as ns, v as ss, w as is, x as as, y as ls, z as cs, A as ds, B as ps, C as us, D as gs, E as Ps, F as ms, G as Cs, H as hs, I as vs, J as xs } from "../../chunks/index-
|
|
4
|
-
import { m as wP } from "../../chunks/index-
|
|
5
|
-
import { a1 as d, c as Ee, aN as bs, ab as fs, b as Fe, d as f,
|
|
3
|
+
import { n as Xn, o as Zn, p as Jn, q as Kn, r as es, s as ts, b as os, t as rs, u as ns, v as ss, w as is, x as as, y as ls, z as cs, A as ds, B as ps, C as us, D as gs, E as Ps, F as ms, G as Cs, H as hs, I as vs, J as xs } from "../../chunks/index-BxaZhr7r.js";
|
|
4
|
+
import { m as wP } from "../../chunks/index-BxaZhr7r.js";
|
|
5
|
+
import { a1 as d, c as Ee, aN as bs, ab as fs, b as Fe, d as f, H as Ss, bb as ys, a$ as Ts, aw as ws } from "../../chunks/index-1syExFDc.js";
|
|
6
6
|
import * as et from "react";
|
|
7
7
|
import { forwardRef as a, Children as Is, useMemo as X, Fragment as ks, useId as I, useRef as tt, useState as _e, useEffect as ot, isValidElement as rt, cloneElement as js, useCallback as je } from "react";
|
|
8
|
-
import { c as x, a as g, j as y, i as w, k, n as j, f as l, b as oe, u as nt, h as st, s as Oe, l as De, m as it } from "../../chunks/use-locale-context-
|
|
9
|
-
import { P as kP } from "../../chunks/use-locale-context-
|
|
8
|
+
import { c as x, a as g, j as y, i as w, k, n as j, f as l, b as oe, u as nt, h as st, s as Oe, l as De, m as it } from "../../chunks/use-locale-context-BA2M-8sK.js";
|
|
9
|
+
import { P as kP } from "../../chunks/use-locale-context-BA2M-8sK.js";
|
|
10
10
|
import { c as $, a as be, f as $s, m as at } from "../../chunks/factory-Ctbv0Ozn.js";
|
|
11
11
|
import { d as Rs } from "../../chunks/config-DlTdf-Yt.js";
|
|
12
12
|
import { e as $P, b as RP, j as NP, a as AP, l as EP } from "../../chunks/config-DlTdf-Yt.js";
|
|
@@ -25,11 +25,11 @@ import { W as WP, a as YP } from "../../chunks/wrap-B8tBNeBY.js";
|
|
|
25
25
|
import { c as b } from "../../chunks/create-slot-recipe-context-BJmsuxih.js";
|
|
26
26
|
import { Q as Es, c as dt, E as Fs, d as _s, e as Os, b as pt, P as Ds, C as Vs, F as Ls, f as Us, g as Gs, S as zs, A as Bs, h as Ms } from "../../chunks/icons-BXxdrBrf.js";
|
|
27
27
|
import { b as qs, L as Hs, a as Qs, c as Ws } from "../../chunks/list-DqH5ttQG.js";
|
|
28
|
-
import { u as Ys, s as ut, R as gt } from "../../chunks/render-strategy-
|
|
29
|
-
import { P as Xs, b as Zs, a as Js, c as Ks, d as ei } from "../../chunks/popover-root-provider-
|
|
28
|
+
import { u as Ys, s as ut, R as gt } from "../../chunks/render-strategy-QburwdUo.js";
|
|
29
|
+
import { P as Xs, b as Zs, a as Js, c as Ks, d as ei } from "../../chunks/popover-root-provider-BmcuNR6d.js";
|
|
30
30
|
import { I as Pt, S as ti } from "../../chunks/icon-button-DTZOklQ9.js";
|
|
31
|
-
import { u as D } from "../../chunks/use-field-context-
|
|
32
|
-
import { a as oi, d as ri, j as ni, g as si, f as ii, k as ai, l as li, D as ci, h as di, e as pi, m as ui, b as gi, n as Pi, i as mi, c as Ci, o as hi, u as vi, p as xi, q as bi, r as fi, s as Si, t as yi, v as Ti, w as wi, x as Ii, y as ki } from "../../chunks/dialog-
|
|
31
|
+
import { u as D } from "../../chunks/use-field-context-DsQFT-Te.js";
|
|
32
|
+
import { a as oi, d as ri, j as ni, g as si, f as ii, k as ai, l as li, D as ci, h as di, e as pi, m as ui, b as gi, n as Pi, i as mi, c as Ci, o as hi, u as vi, p as xi, q as bi, r as fi, s as Si, t as yi, v as Ti, w as wi, x as Ii, y as ki } from "../../chunks/dialog-Bnb0zdk3.js";
|
|
33
33
|
import { u as ji } from "../../chunks/use-slot-recipe-DhtQ1j_5.js";
|
|
34
34
|
import { a as Ze } from "../../chunks/use-breakpoint-MQ7agQJe.js";
|
|
35
35
|
import { u as ZP, b as JP } from "../../chunks/use-breakpoint-MQ7agQJe.js";
|