@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.
- package/dist/chunks/alert.types-C-tcDvZb.js +2 -0
- package/dist/chunks/alert.types-C-tcDvZb.js.map +1 -0
- package/dist/chunks/{alert.component-ibWiyGfP.js → alert.types-D7ya3hgF.js} +92 -100
- package/dist/chunks/alert.types-D7ya3hgF.js.map +1 -0
- package/dist/chunks/{avatar.component-BccCo8cj.js → avatar.component-BvnohMit.js} +20 -20
- package/dist/chunks/{avatar.component-BccCo8cj.js.map → avatar.component-BvnohMit.js.map} +1 -1
- package/dist/chunks/{avatarGroup.component-CX1pyCYe.js → avatarGroup.component-BlBlSEzG.js} +2 -2
- package/dist/chunks/{avatarGroup.component-CX1pyCYe.js.map → avatarGroup.component-BlBlSEzG.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-DD5ngTAx.js → buttonGroup.component-oTaR0Md0.js} +2 -2
- package/dist/chunks/{buttonGroup.component-DD5ngTAx.js.map → buttonGroup.component-oTaR0Md0.js.map} +1 -1
- package/dist/chunks/{characterCounter.component-DI5bBTYd.js → characterCounter.component-fZjvfJdX.js} +2 -2
- package/dist/chunks/{characterCounter.component-DI5bBTYd.js.map → characterCounter.component-fZjvfJdX.js.map} +1 -1
- package/dist/chunks/{checkbox.component-C5SGTamU.js → checkbox.component-0xblm1A8.js} +7 -7
- package/dist/chunks/{checkbox.component-C5SGTamU.js.map → checkbox.component-0xblm1A8.js.map} +1 -1
- package/dist/chunks/{checkbox.records-D942Mp5N.js → checkbox.records-CIoa-J68.js} +30 -30
- package/dist/chunks/{checkbox.records-D942Mp5N.js.map → checkbox.records-CIoa-J68.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-uNcZPAQb.js → checkboxGroup.component-LWTDPWxy.js} +3 -3
- package/dist/chunks/{checkboxGroup.component-uNcZPAQb.js.map → checkboxGroup.component-LWTDPWxy.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-DFCk4nkI.js → conversationCard.component-CP6rnJx7.js} +7 -7
- package/dist/chunks/{conversationCard.component-DFCk4nkI.js.map → conversationCard.component-CP6rnJx7.js.map} +1 -1
- package/dist/chunks/{datePicker.component-BNFSOBs_.js → datePicker.component-CI1zrqXF.js} +7 -7
- package/dist/chunks/{datePicker.component-BNFSOBs_.js.map → datePicker.component-CI1zrqXF.js.map} +1 -1
- package/dist/chunks/{dialog-trigger-zqGa_wOO.js → dialog-trigger-BPlPzPU-.js} +5 -5
- package/dist/chunks/{dialog-trigger-zqGa_wOO.js.map → dialog-trigger-BPlPzPU-.js.map} +1 -1
- package/dist/chunks/{heading.component-DzTeEnHA.js → heading.component-BPvYeKHj.js} +2 -2
- package/dist/chunks/{heading.component-DzTeEnHA.js.map → heading.component-BPvYeKHj.js.map} +1 -1
- package/dist/chunks/{index-X8K9tzgE.js → index-BNYygzo-.js} +12 -12
- package/dist/chunks/{index-X8K9tzgE.js.map → index-BNYygzo-.js.map} +1 -1
- package/dist/chunks/{index-CVMzOz4r.js → index-C2kxTsiE.js} +8 -8
- package/dist/chunks/{index-CVMzOz4r.js.map → index-C2kxTsiE.js.map} +1 -1
- package/dist/chunks/{index-B8d8Hi2Q.js → index-CYk-7wwG.js} +25 -25
- package/dist/chunks/{index-B8d8Hi2Q.js.map → index-CYk-7wwG.js.map} +1 -1
- package/dist/chunks/{index-Dw9PbX_m.js → index-CjNAJEk5.js} +4 -4
- package/dist/chunks/{index-Dw9PbX_m.js.map → index-CjNAJEk5.js.map} +1 -1
- package/dist/chunks/{index-CJ_SaUFt.js → index-Co91SHhW.js} +6 -6
- package/dist/chunks/{index-CJ_SaUFt.js.map → index-Co91SHhW.js.map} +1 -1
- package/dist/chunks/{index-BsfW-qzE.js → index-D9DU-5GF.js} +12 -12
- package/dist/chunks/{index-BsfW-qzE.js.map → index-D9DU-5GF.js.map} +1 -1
- package/dist/chunks/{index-COcjj2r_.js → index-DUHFrLMI.js} +9 -9
- package/dist/chunks/{index-COcjj2r_.js.map → index-DUHFrLMI.js.map} +1 -1
- package/dist/chunks/{index-BavQMU2I.js → index-DcJZ8q0f.js} +4 -4
- package/dist/chunks/{index-BavQMU2I.js.map → index-DcJZ8q0f.js.map} +1 -1
- package/dist/chunks/{index-DVMzcy6o.js → index-DkJX2kvl.js} +11 -11
- package/dist/chunks/{index-DVMzcy6o.js.map → index-DkJX2kvl.js.map} +1 -1
- package/dist/chunks/{index-bYxdnAxK.js → index-S1uNQPZj.js} +22 -22
- package/dist/chunks/{index-bYxdnAxK.js.map → index-S1uNQPZj.js.map} +1 -1
- package/dist/chunks/{index-xa8tmbbH.js → index-j7W9Hyzx.js} +10 -10
- package/dist/chunks/{index-xa8tmbbH.js.map → index-j7W9Hyzx.js.map} +1 -1
- package/dist/chunks/link.component-CCFg-LIe.js +2 -0
- package/dist/chunks/link.component-CCFg-LIe.js.map +1 -0
- package/dist/chunks/link.component-DprieyUG.js +60 -0
- package/dist/chunks/link.component-DprieyUG.js.map +1 -0
- package/dist/chunks/{menu.component-C8c5BRFL.js → menu.component-CByCZVEI.js} +9 -9
- package/dist/chunks/{menu.component-C8c5BRFL.js.map → menu.component-CByCZVEI.js.map} +1 -1
- package/dist/chunks/{modal.types-CMmBuVKv.js → modal.types-Cy96DDCy.js} +5 -5
- package/dist/chunks/{modal.types-CMmBuVKv.js.map → modal.types-Cy96DDCy.js.map} +1 -1
- package/dist/chunks/{pinInput.types-CbR1ZXya.js → pinInput.types-DF9d4AgH.js} +6 -6
- package/dist/chunks/{pinInput.types-CbR1ZXya.js.map → pinInput.types-DF9d4AgH.js.map} +1 -1
- package/dist/chunks/{popover-CBG09o62.js → popover-B9rNOU0g.js} +4 -4
- package/dist/chunks/{popover-CBG09o62.js.map → popover-B9rNOU0g.js.map} +1 -1
- package/dist/chunks/{popover-root-provider-CKQPoRvU.js → popover-root-provider-CeLLpesI.js} +4 -4
- package/dist/chunks/{popover-root-provider-CKQPoRvU.js.map → popover-root-provider-CeLLpesI.js.map} +1 -1
- package/dist/chunks/{popover.component-jEg4R1F4.js → popover.component-CCDAwoUM.js} +2 -2
- package/dist/chunks/{popover.component-jEg4R1F4.js.map → popover.component-CCDAwoUM.js.map} +1 -1
- package/dist/chunks/{popover.component-BCibBOXM.js → popover.component-DKQ2rwkT.js} +8 -8
- package/dist/chunks/{popover.component-BCibBOXM.js.map → popover.component-DKQ2rwkT.js.map} +1 -1
- package/dist/chunks/{popover.recipe-CMQQRMnL.js → popover.recipe-gSRLrSEY.js} +2 -2
- package/dist/chunks/{popover.recipe-CMQQRMnL.js.map → popover.recipe-gSRLrSEY.js.map} +1 -1
- package/dist/chunks/{popover.recipe-ByAaERef.js → popover.recipe-luRWdwjO.js} +16 -15
- package/dist/chunks/{popover.recipe-ByAaERef.js.map → popover.recipe-luRWdwjO.js.map} +1 -1
- package/dist/chunks/{radio.records-DJwjrXUG.js → radio.records-ASPGnfUI.js} +15 -15
- package/dist/chunks/{radio.records-DJwjrXUG.js.map → radio.records-ASPGnfUI.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-D8Urceiy.js → radioGroup.component-BfzkPOWR.js} +7 -7
- package/dist/chunks/{radioGroup.component-D8Urceiy.js.map → radioGroup.component-BfzkPOWR.js.map} +1 -1
- package/dist/chunks/{ratingDots.component-BAqZEoHN.js → ratingDots.component-DbIxSq3Z.js} +3 -3
- package/dist/chunks/{ratingDots.component-BAqZEoHN.js.map → ratingDots.component-DbIxSq3Z.js.map} +1 -1
- package/dist/chunks/{render-strategy-DBmKAZIM.js → render-strategy-C8hwN3bm.js} +2 -2
- package/dist/chunks/{render-strategy-DBmKAZIM.js.map → render-strategy-C8hwN3bm.js.map} +1 -1
- package/dist/chunks/{select.component-dLGNPkXV.js → select.component-eJdhSRY0.js} +10 -10
- package/dist/chunks/{select.component-dLGNPkXV.js.map → select.component-eJdhSRY0.js.map} +1 -1
- package/dist/chunks/{sortableList.component-ede9VRq3.js → sortableList.component-DfXzIf2N.js} +3 -3
- package/dist/chunks/{sortableList.component-ede9VRq3.js.map → sortableList.component-DfXzIf2N.js.map} +1 -1
- package/dist/chunks/{spinner.component-BAUK5XQp.js → spinner.component-mGoJn6ep.js} +2 -2
- package/dist/chunks/{spinner.component-BAUK5XQp.js.map → spinner.component-mGoJn6ep.js.map} +1 -1
- package/dist/chunks/{styledAvatar.types-DU78JZbu.js → styledAvatar.types-2wZJjpPn.js} +2 -2
- package/dist/chunks/{styledAvatar.types-DU78JZbu.js.map → styledAvatar.types-2wZJjpPn.js.map} +1 -1
- package/dist/chunks/{switch.component-CTHNQQWw.js → switch.component-B1QEXeHo.js} +12 -12
- package/dist/chunks/{switch.component-CTHNQQWw.js.map → switch.component-B1QEXeHo.js.map} +1 -1
- package/dist/chunks/{tabs.component-D0mzzXOp.js → tabs.component-CClOddbl.js} +17 -17
- package/dist/chunks/{tabs.component-D0mzzXOp.js.map → tabs.component-CClOddbl.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-DASuNeVN.js → tagBlock.component-8QvLF4gf.js} +5 -5
- package/dist/chunks/{tagBlock.component-DASuNeVN.js.map → tagBlock.component-8QvLF4gf.js.map} +1 -1
- package/dist/chunks/{text.component-BkYord5h.js → text.component-DqGLCykU.js} +2 -2
- package/dist/chunks/{text.component-BkYord5h.js.map → text.component-DqGLCykU.js.map} +1 -1
- package/dist/chunks/{textInput.component-vAoqRc9n.js → textInput.component-CkeP6E8M.js} +6 -6
- package/dist/chunks/{textInput.component-vAoqRc9n.js.map → textInput.component-CkeP6E8M.js.map} +1 -1
- package/dist/chunks/{textarea.component-BxeH5cIq.js → textarea.component-Qns9pf6_.js} +6 -6
- package/dist/chunks/{textarea.component-BxeH5cIq.js.map → textarea.component-Qns9pf6_.js.map} +1 -1
- package/dist/chunks/{theme.provider-CD_LIwCV.js → theme.provider-DiKqrQhs.js} +1269 -1087
- package/dist/chunks/theme.provider-DiKqrQhs.js.map +1 -0
- package/dist/chunks/{theme.provider-8i-Ok9JE.js → theme.provider-DpXAxGz8.js} +4 -4
- package/dist/chunks/theme.provider-DpXAxGz8.js.map +1 -0
- package/dist/chunks/{timePicker.component-DF-7rTLE.js → timePicker.component-DdBfadnM.js} +3 -3
- package/dist/chunks/{timePicker.component-DF-7rTLE.js.map → timePicker.component-DdBfadnM.js.map} +1 -1
- package/dist/chunks/{timePicker.component-vHY1O9Nq.js → timePicker.component-j-OQEBFl.js} +2 -2
- package/dist/chunks/{timePicker.component-vHY1O9Nq.js.map → timePicker.component-j-OQEBFl.js.map} +1 -1
- package/dist/chunks/{timeRange.component-C65E9InX.js → timeRange.component-CYBVUNli.js} +2 -2
- package/dist/chunks/{timeRange.component-C65E9InX.js.map → timeRange.component-CYBVUNli.js.map} +1 -1
- package/dist/chunks/{timeRange.component-BU22xkmi.js → timeRange.component-DXtqwVE8.js} +2 -2
- package/dist/chunks/{timeRange.component-BU22xkmi.js.map → timeRange.component-DXtqwVE8.js.map} +1 -1
- package/dist/chunks/{timestamp.component-CgRkR4Nz.js → timestamp.component-D2ivFJVk.js} +3 -3
- package/dist/chunks/{timestamp.component-CgRkR4Nz.js.map → timestamp.component-D2ivFJVk.js.map} +1 -1
- package/dist/chunks/{toaster.records-oUlJ-9y-.js → toaster.records-BGfpUOVt.js} +4 -3
- package/dist/chunks/{toaster.records-oUlJ-9y-.js.map → toaster.records-BGfpUOVt.js.map} +1 -1
- package/dist/chunks/{toaster.records-Bkt2-n5c.js → toaster.records-BJo0j1IZ.js} +2 -2
- package/dist/chunks/{toaster.records-Bkt2-n5c.js.map → toaster.records-BJo0j1IZ.js.map} +1 -1
- package/dist/chunks/{tooltip.component-DX7RPrw8.js → tooltip.component-oofe83RC.js} +37 -37
- package/dist/chunks/{tooltip.component-DX7RPrw8.js.map → tooltip.component-oofe83RC.js.map} +1 -1
- package/dist/chunks/{typography.records-e6RnkVqN.js → typography.records-jnjWfTLS.js} +2 -2
- package/dist/chunks/{typography.records-e6RnkVqN.js.map → typography.records-jnjWfTLS.js.map} +1 -1
- package/dist/chunks/{use-field-context-Bxg2bkx0.js → use-field-context-B_G7Yziz.js} +2 -2
- package/dist/chunks/{use-field-context-Bxg2bkx0.js.map → use-field-context-B_G7Yziz.js.map} +1 -1
- package/dist/chunks/{use-locale-context-BnlMA8su.js → use-locale-context-D-agiW5E.js} +5 -5
- package/dist/chunks/{use-locale-context-BnlMA8su.js.map → use-locale-context-D-agiW5E.js.map} +1 -1
- package/dist/chunks/{withFormControl-CjY2Infu.js → withFormControl-7frigdfy.js} +11 -11
- package/dist/chunks/{withFormControl-CjY2Infu.js.map → withFormControl-7frigdfy.js.map} +1 -1
- package/dist/chunks/{withTruncation-DVJpk3rP.js → withTruncation-C6OLiB1e.js} +2 -2
- package/dist/chunks/{withTruncation-DVJpk3rP.js.map → withTruncation-C6OLiB1e.js.map} +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/Link/index.cjs +1 -1
- package/dist/cjs/components/Popover/index.cjs +1 -1
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs +1 -1
- package/dist/cjs/components/Toast/index.cjs.map +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/shared/records/index.cjs +2 -0
- package/dist/cjs/shared/records/index.cjs.map +1 -0
- package/dist/cjs/theme/index.cjs +1 -1
- package/dist/esm/chakra/index.js +8 -8
- package/dist/esm/components/Alert/index.js +3 -4
- package/dist/esm/components/Alert/index.js.map +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/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/Link/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 +41 -20
- package/dist/esm/components/Toast/index.js.map +1 -1
- package/dist/esm/components/Tooltip/index.js +1 -1
- package/dist/esm/components/index.js +123 -124
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +141 -142
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/shared/records/index.js +18 -0
- package/dist/esm/shared/records/index.js.map +1 -0
- package/dist/esm/theme/index.js +1 -1
- package/dist/types/components/Toast/components/ToastAction/toastAction.component.d.ts +12 -0
- package/dist/types/components/Toast/components/Toaster/toaster.records.d.ts +1 -0
- package/dist/types/components/Toast/index.d.ts +1 -1
- package/dist/types/components/Toast/toast.component.d.ts +14 -3
- package/dist/types/components/Toast/toast.recipe.d.ts +21 -0
- package/dist/types/components/Toast/toast.types.d.ts +3 -3
- package/dist/types/components/Toast/useToast.d.ts +3 -0
- package/dist/types/shared/records/index.d.ts +1 -0
- package/dist/types/shared/records/status.d.ts +5 -0
- package/dist/types/theme/tokens/sizes/sizes.config.d.ts +14 -0
- package/package.json +1 -1
- package/dist/chunks/alert.component-DLOr0ni3.js +0 -2
- package/dist/chunks/alert.component-DLOr0ni3.js.map +0 -1
- package/dist/chunks/alert.component-ibWiyGfP.js.map +0 -1
- package/dist/chunks/alert.types-JdzSuSVO.js +0 -5
- package/dist/chunks/alert.types-JdzSuSVO.js.map +0 -1
- package/dist/chunks/alert.types-R_9yno9e.js +0 -2
- package/dist/chunks/alert.types-R_9yno9e.js.map +0 -1
- package/dist/chunks/link.component-BEoeigC8.js +0 -61
- package/dist/chunks/link.component-BEoeigC8.js.map +0 -1
- package/dist/chunks/link.component-BNWZ_bjl.js +0 -2
- package/dist/chunks/link.component-BNWZ_bjl.js.map +0 -1
- package/dist/chunks/theme.provider-8i-Ok9JE.js.map +0 -1
- package/dist/chunks/theme.provider-CD_LIwCV.js.map +0 -1
- package/dist/types/components/Alert/alert.records.d.ts +0 -5
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { forwardRef as x } from "react";
|
|
3
|
-
import { W as k } from "./text.component-BkYord5h.js";
|
|
4
|
-
import { I as d } from "./icon.component-DGNCL1Yc.js";
|
|
5
|
-
import { u as f } from "./useIconTextSizeMap-BK-pUrQv.js";
|
|
6
|
-
import { c as j } from "./create-recipe-context-D7FewUR4.js";
|
|
7
|
-
import { H as L } from "./h-stack-Ce6JSBK2.js";
|
|
8
|
-
const { withContext: u } = j({
|
|
9
|
-
key: "link"
|
|
10
|
-
}), z = u("a"), c = ({
|
|
11
|
-
variant: i,
|
|
12
|
-
...r
|
|
13
|
-
}) => /* @__PURE__ */ e.jsx(d, { variant: i || "interactive", ...r }), I = x(
|
|
14
|
-
(i, r) => {
|
|
15
|
-
const {
|
|
16
|
-
children: m,
|
|
17
|
-
external: p,
|
|
18
|
-
iconProps: n,
|
|
19
|
-
size: o = "md",
|
|
20
|
-
variant: t = "interactive",
|
|
21
|
-
...l
|
|
22
|
-
} = i, a = f(o), s = n?.position || "start";
|
|
23
|
-
return /* @__PURE__ */ e.jsx(
|
|
24
|
-
z,
|
|
25
|
-
{
|
|
26
|
-
className: "Link",
|
|
27
|
-
"data-testid": "kibble-link",
|
|
28
|
-
variant: t,
|
|
29
|
-
display: "inline-block",
|
|
30
|
-
size: o,
|
|
31
|
-
ref: r,
|
|
32
|
-
...p && { target: "_blank", rel: "noopener noreferrer" },
|
|
33
|
-
...l,
|
|
34
|
-
children: /* @__PURE__ */ e.jsxs(L, { gap: 1, align: "center", children: [
|
|
35
|
-
n && s === "start" && /* @__PURE__ */ e.jsx(
|
|
36
|
-
c,
|
|
37
|
-
{
|
|
38
|
-
name: n.name,
|
|
39
|
-
variant: t,
|
|
40
|
-
size: a
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ e.jsx(k, { size: o, variant: t, children: m }),
|
|
44
|
-
n && s === "end" && /* @__PURE__ */ e.jsx(
|
|
45
|
-
c,
|
|
46
|
-
{
|
|
47
|
-
name: n.name,
|
|
48
|
-
variant: t,
|
|
49
|
-
size: a
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] })
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
I.displayName = "Link";
|
|
58
|
-
export {
|
|
59
|
-
I as L
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=link.component-BEoeigC8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.component-BEoeigC8.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/link/link.js","../../src/components/Link/components/LinkIcon/linkIcon.component.tsx","../../src/components/Link/link.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"link\"\n});\nconst Link = withContext(\"a\");\nconst LinkPropsProvider = PropsProvider;\n\nexport { Link, LinkPropsProvider };\n","import React from \"react\";\nimport { Icon, IconProps } from \"components/Icon\";\n\nexport interface LinkIconProps extends Pick<IconProps, \"name\"> {\n position?: \"start\" | \"end\";\n}\n\ntype InternalLinkIconProps = Pick<IconProps, \"name\" | \"variant\" | \"size\">;\n\nexport const LinkIcon = ({\n variant,\n ...rest\n}: InternalLinkIconProps): React.JSX.Element => {\n return <Icon variant={variant || \"interactive\"} {...rest} />;\n};\n","import React, { ForwardedRef, forwardRef } from \"react\";\nimport { Link as CLink, LinkProps as CLinkProps } from \"@chakra-ui/react/link\"; // Make sure to use named imports from Chakra UI\nimport { TypographyVariant } from \"shared/types\";\nimport { TextSize } from \"components/Text/text.types\";\nimport { HStack } from \"@chakra-ui/react/stack\";\nimport { Text } from \"components/Text\";\nimport {\n LinkIcon,\n LinkIconProps,\n} from \"./components/LinkIcon/linkIcon.component\";\nimport { useIconTextSizeMap } from \"hooks/useIconTextSizeMap\";\n\nexport interface LinkProps extends CLinkProps {\n iconProps?: LinkIconProps;\n external?: boolean;\n size?: TextSize;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n to?: any;\n variant?: TypographyVariant;\n}\n\nexport const Link = forwardRef(\n (\n props: LinkProps,\n ref: ForwardedRef<HTMLAnchorElement>,\n ): React.JSX.Element => {\n const {\n children,\n external,\n iconProps,\n size = \"md\",\n variant = \"interactive\",\n ...rest\n } = props;\n const mapIconSize = useIconTextSizeMap(size);\n const iconPosition = iconProps?.position || \"start\";\n\n return (\n <CLink\n className=\"Link\"\n data-testid=\"kibble-link\"\n variant={variant}\n display=\"inline-block\"\n size={size}\n ref={ref}\n {...(external && { target: \"_blank\", rel: \"noopener noreferrer\" })}\n {...rest}\n >\n <HStack gap={1} align=\"center\">\n {iconProps && iconPosition === \"start\" && (\n <LinkIcon\n name={iconProps.name}\n variant={variant}\n size={mapIconSize}\n />\n )}\n <Text size={size} variant={variant}>\n {children}\n </Text>\n {iconProps && iconPosition === \"end\" && (\n <LinkIcon\n name={iconProps.name}\n variant={variant}\n size={mapIconSize}\n />\n )}\n </HStack>\n </CLink>\n );\n },\n);\n\nLink.displayName = \"Link\";\n"],"names":["withContext","createRecipeContext","Link","LinkIcon","variant","rest","Icon","forwardRef","props","ref","children","external","iconProps","size","mapIconSize","useIconTextSizeMap","iconPosition","jsx","CLink","jsxs","HStack","Text"],"mappings":";;;;;;;AAIA,MAAM,EAAE,aAAAA,EAA2B,IAAIC,EAAoB;AAAA,EACzD,KAAK;AACP,CAAC,GACKC,IAAOF,EAAY,GAAG,GCEfG,IAAW,CAAC;AAAA,EACvB,SAAAC;AAAA,EACA,GAAGC;AACL,4BACUC,GAAK,EAAA,SAASF,KAAW,eAAgB,GAAGC,GAAM,GCQ/CH,IAAOK;AAAA,EAClB,CACEC,GACAC,MACsB;AAChB,UAAA;AAAA,MACJ,UAAAC;AAAA,MACA,UAAAC;AAAA,MACA,WAAAC;AAAA,MACA,MAAAC,IAAO;AAAA,MACP,SAAAT,IAAU;AAAA,MACV,GAAGC;AAAA,IAAA,IACDG,GACEM,IAAcC,EAAmBF,CAAI,GACrCG,IAAeJ,GAAW,YAAY;AAG1C,WAAAK,gBAAAA,EAAA;AAAA,MAACC;AAAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,eAAY;AAAA,QACZ,SAAAd;AAAA,QACA,SAAQ;AAAA,QACR,MAAAS;AAAA,QACA,KAAAJ;AAAA,QACC,GAAIE,KAAY,EAAE,QAAQ,UAAU,KAAK,sBAAsB;AAAA,QAC/D,GAAGN;AAAA,QAEJ,UAACc,gBAAAA,EAAAA,KAAAC,GAAA,EAAO,KAAK,GAAG,OAAM,UACnB,UAAA;AAAA,UAAAR,KAAaI,MAAiB,WAC7BC,gBAAAA,EAAA;AAAA,YAACd;AAAA,YAAA;AAAA,cACC,MAAMS,EAAU;AAAA,cAChB,SAAAR;AAAA,cACA,MAAMU;AAAA,YAAA;AAAA,UACR;AAAA,UAEDG,gBAAAA,EAAAA,IAAAI,GAAA,EAAK,MAAAR,GAAY,SAAAT,GACf,UAAAM,EACH,CAAA;AAAA,UACCE,KAAaI,MAAiB,SAC7BC,gBAAAA,EAAA;AAAA,YAACd;AAAA,YAAA;AAAA,cACC,MAAMS,EAAU;AAAA,cAChB,SAAAR;AAAA,cACA,MAAMU;AAAA,YAAA;AAAA,UAAA;AAAA,QACR,EAEJ,CAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;AAEAZ,EAAK,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),l=require("react"),k=require("./text.component-CfoAQOZD.js"),j=require("./icon.component-C0e0UGBw.js"),d=require("./useIconTextSizeMap-BXmABb54.js"),R=require("./create-recipe-context-sESms8Eo.js"),q=require("./h-stack-Bjx9hlJo.js"),{withContext:z}=R.createRecipeContext({key:"link"}),E=z("a"),a=({variant:i,...s})=>e.jsxRuntimeExports.jsx(j.Icon,{variant:i||"interactive",...s}),x=l.forwardRef((i,s)=>{const{children:p,external:u,iconProps:t,size:r="md",variant:n="interactive",...m}=i,o=d.useIconTextSizeMap(r),c=t?.position||"start";return e.jsxRuntimeExports.jsx(E,{className:"Link","data-testid":"kibble-link",variant:n,display:"inline-block",size:r,ref:s,...u&&{target:"_blank",rel:"noopener noreferrer"},...m,children:e.jsxRuntimeExports.jsxs(q.HStack,{gap:1,align:"center",children:[t&&c==="start"&&e.jsxRuntimeExports.jsx(a,{name:t.name,variant:n,size:o}),e.jsxRuntimeExports.jsx(k.WrappedText,{size:r,variant:n,children:p}),t&&c==="end"&&e.jsxRuntimeExports.jsx(a,{name:t.name,variant:n,size:o})]})})});x.displayName="Link";exports.Link=x;
|
|
2
|
-
//# sourceMappingURL=link.component-BNWZ_bjl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.component-BNWZ_bjl.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/link/link.js","../../src/components/Link/components/LinkIcon/linkIcon.component.tsx","../../src/components/Link/link.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { createRecipeContext } from '../../styled-system/create-recipe-context.js';\n\nconst { withContext, PropsProvider } = createRecipeContext({\n key: \"link\"\n});\nconst Link = withContext(\"a\");\nconst LinkPropsProvider = PropsProvider;\n\nexport { Link, LinkPropsProvider };\n","import React from \"react\";\nimport { Icon, IconProps } from \"components/Icon\";\n\nexport interface LinkIconProps extends Pick<IconProps, \"name\"> {\n position?: \"start\" | \"end\";\n}\n\ntype InternalLinkIconProps = Pick<IconProps, \"name\" | \"variant\" | \"size\">;\n\nexport const LinkIcon = ({\n variant,\n ...rest\n}: InternalLinkIconProps): React.JSX.Element => {\n return <Icon variant={variant || \"interactive\"} {...rest} />;\n};\n","import React, { ForwardedRef, forwardRef } from \"react\";\nimport { Link as CLink, LinkProps as CLinkProps } from \"@chakra-ui/react/link\"; // Make sure to use named imports from Chakra UI\nimport { TypographyVariant } from \"shared/types\";\nimport { TextSize } from \"components/Text/text.types\";\nimport { HStack } from \"@chakra-ui/react/stack\";\nimport { Text } from \"components/Text\";\nimport {\n LinkIcon,\n LinkIconProps,\n} from \"./components/LinkIcon/linkIcon.component\";\nimport { useIconTextSizeMap } from \"hooks/useIconTextSizeMap\";\n\nexport interface LinkProps extends CLinkProps {\n iconProps?: LinkIconProps;\n external?: boolean;\n size?: TextSize;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n to?: any;\n variant?: TypographyVariant;\n}\n\nexport const Link = forwardRef(\n (\n props: LinkProps,\n ref: ForwardedRef<HTMLAnchorElement>,\n ): React.JSX.Element => {\n const {\n children,\n external,\n iconProps,\n size = \"md\",\n variant = \"interactive\",\n ...rest\n } = props;\n const mapIconSize = useIconTextSizeMap(size);\n const iconPosition = iconProps?.position || \"start\";\n\n return (\n <CLink\n className=\"Link\"\n data-testid=\"kibble-link\"\n variant={variant}\n display=\"inline-block\"\n size={size}\n ref={ref}\n {...(external && { target: \"_blank\", rel: \"noopener noreferrer\" })}\n {...rest}\n >\n <HStack gap={1} align=\"center\">\n {iconProps && iconPosition === \"start\" && (\n <LinkIcon\n name={iconProps.name}\n variant={variant}\n size={mapIconSize}\n />\n )}\n <Text size={size} variant={variant}>\n {children}\n </Text>\n {iconProps && iconPosition === \"end\" && (\n <LinkIcon\n name={iconProps.name}\n variant={variant}\n size={mapIconSize}\n />\n )}\n </HStack>\n </CLink>\n );\n },\n);\n\nLink.displayName = \"Link\";\n"],"names":["withContext","createRecipeContext","Link","LinkIcon","variant","rest","Icon","forwardRef","props","ref","children","external","iconProps","size","mapIconSize","useIconTextSizeMap","iconPosition","jsx","CLink","jsxs","HStack","Text"],"mappings":"mSAIM,CAAE,YAAAA,CAA2B,EAAIC,sBAAoB,CACzD,IAAK,MACP,CAAC,EACKC,EAAOF,EAAY,GAAG,ECEfG,EAAW,CAAC,CACvB,QAAAC,EACA,GAAGC,CACL,4BACUC,EAAAA,KAAK,CAAA,QAASF,GAAW,cAAgB,GAAGC,EAAM,ECQ/CH,EAAOK,EAAA,WAClB,CACEC,EACAC,IACsB,CAChB,KAAA,CACJ,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,KAAAC,EAAO,KACP,QAAAT,EAAU,cACV,GAAGC,CAAA,EACDG,EACEM,EAAcC,qBAAmBF,CAAI,EACrCG,EAAeJ,GAAW,UAAY,QAG1C,OAAAK,EAAA,kBAAA,IAACC,EAAA,CACC,UAAU,OACV,cAAY,cACZ,QAAAd,EACA,QAAQ,eACR,KAAAS,EACA,IAAAJ,EACC,GAAIE,GAAY,CAAE,OAAQ,SAAU,IAAK,qBAAsB,EAC/D,GAAGN,EAEJ,SAACc,EAAAA,kBAAAA,KAAAC,EAAAA,OAAA,CAAO,IAAK,EAAG,MAAM,SACnB,SAAA,CAAAR,GAAaI,IAAiB,SAC7BC,EAAA,kBAAA,IAACd,EAAA,CACC,KAAMS,EAAU,KAChB,QAAAR,EACA,KAAMU,CAAA,CACR,EAEDG,EAAAA,kBAAAA,IAAAI,EAAAA,YAAA,CAAK,KAAAR,EAAY,QAAAT,EACf,SAAAM,CACH,CAAA,EACCE,GAAaI,IAAiB,OAC7BC,EAAA,kBAAA,IAACd,EAAA,CACC,KAAMS,EAAU,KAChB,QAAAR,EACA,KAAMU,CAAA,CAAA,CACR,CAEJ,CAAA,CAAA,CACF,CAAA,CAGN,EAEAZ,EAAK,YAAc","x_google_ignoreList":[0]}
|