@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
package/dist/esm/index.js
CHANGED
|
@@ -1,146 +1,145 @@
|
|
|
1
|
-
import { A as a } from "../chunks/alert.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { W as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { a as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { L as
|
|
21
|
-
import {
|
|
22
|
-
import { M as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { S as
|
|
34
|
-
import {
|
|
35
|
-
import { s as
|
|
36
|
-
import { S as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { T as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { W as
|
|
44
|
-
import { W as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import { T as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import { K as Lr, s as Gr } from "../chunks/theme.provider-CD_LIwCV.js";
|
|
1
|
+
import { A as a, a as e } from "../chunks/alert.types-D7ya3hgF.js";
|
|
2
|
+
import { A as s } from "../chunks/avatar.component-BvnohMit.js";
|
|
3
|
+
import { a as i, b as m } from "../chunks/avatar.types-LQ1Bn8a3.js";
|
|
4
|
+
import { A as x } from "../chunks/avatarGroup.component-BlBlSEzG.js";
|
|
5
|
+
import { B as l } from "../chunks/button.component-BpF3MzbZ.js";
|
|
6
|
+
import { b as c, d, c as T, e as S, a as v } from "../chunks/button.types-CujqF5RD.js";
|
|
7
|
+
import { B as g } from "../chunks/buttonGroup.component-oTaR0Md0.js";
|
|
8
|
+
import { C as P } from "../chunks/card.component-DNX41NGG.js";
|
|
9
|
+
import { c as y } from "../chunks/card.types-Cixp7ouC.js";
|
|
10
|
+
import { C as D } from "../chunks/characterCounter.component-fZjvfJdX.js";
|
|
11
|
+
import { W } from "../chunks/checkbox.component-0xblm1A8.js";
|
|
12
|
+
import { W as V } from "../chunks/checkboxGroup.component-LWTDPWxy.js";
|
|
13
|
+
import { C as A } from "../chunks/conversationCard.component-CP6rnJx7.js";
|
|
14
|
+
import { a as I, D as L } from "../chunks/datePicker.component-CI1zrqXF.js";
|
|
15
|
+
import { D as R, d as K, a as N, b as F } from "../chunks/divider.types-0j5qRXed.js";
|
|
16
|
+
import { W as O } from "../chunks/heading.component-BPvYeKHj.js";
|
|
17
|
+
import { I as q } from "../chunks/icon.component-DGNCL1Yc.js";
|
|
18
|
+
import { i as J } from "../chunks/icon.types-DLbVfMjG.js";
|
|
19
|
+
import { L as U } from "../chunks/link.component-DprieyUG.js";
|
|
20
|
+
import { L as Y, l as Z, a as _ } from "../chunks/logo.types-By8TqyNf.js";
|
|
21
|
+
import { M as oo } from "../chunks/menu.component-CByCZVEI.js";
|
|
22
|
+
import { M as ao, c as eo, a as to, b as so, m as po } from "../chunks/modal.types-Cy96DDCy.js";
|
|
23
|
+
import { N as mo } from "../chunks/notificationCounter.component-Bei8mHSZ.js";
|
|
24
|
+
import { n as xo, a as fo } from "../chunks/notificationCounter.types-S7ENT1Oj.js";
|
|
25
|
+
import { P as uo } from "../chunks/picture.component-DKbaaL64.js";
|
|
26
|
+
import { W as To, p as So } from "../chunks/pinInput.types-DF9d4AgH.js";
|
|
27
|
+
import { P as bo } from "../chunks/popover.component-DKQ2rwkT.js";
|
|
28
|
+
import { p as Co, b as Po, a as ho } from "../chunks/popover.types-C-V7Diw4.js";
|
|
29
|
+
import { W as zo } from "../chunks/radioGroup.component-BfzkPOWR.js";
|
|
30
|
+
import { R as Mo } from "../chunks/ratingDots.component-DbIxSq3Z.js";
|
|
31
|
+
import { W as Bo } from "../chunks/select.component-eJdhSRY0.js";
|
|
32
|
+
import { S as ko } from "../chunks/sortableList.component-DfXzIf2N.js";
|
|
33
|
+
import { S as wo } from "../chunks/spinner.component-mGoJn6ep.js";
|
|
34
|
+
import { s as Lo } from "../chunks/spinner.types-g7cTFJkb.js";
|
|
35
|
+
import { S as Ro, s as Ko } from "../chunks/styledAvatar.types-2wZJjpPn.js";
|
|
36
|
+
import { S as Fo, s as Ho } from "../chunks/swatch.types-DbgA3RWc.js";
|
|
37
|
+
import { W as jo } from "../chunks/switch.component-B1QEXeHo.js";
|
|
38
|
+
import { T as Eo } from "../chunks/tabs.component-CClOddbl.js";
|
|
39
|
+
import { T as Qo } from "../chunks/tag.component-pexJ0TAT.js";
|
|
40
|
+
import { c as Xo, t as Yo } from "../chunks/tag.types-B-pzEt1I.js";
|
|
41
|
+
import { T as _o, a as $o } from "../chunks/tagBlock.component-8QvLF4gf.js";
|
|
42
|
+
import { W as rr } from "../chunks/text.component-DqGLCykU.js";
|
|
43
|
+
import { W as er } from "../chunks/textInput.component-CkeP6E8M.js";
|
|
44
|
+
import { W as sr } from "../chunks/textarea.component-Qns9pf6_.js";
|
|
45
|
+
import { M as ir, T as mr } from "../chunks/timePicker.component-DdBfadnM.js";
|
|
46
|
+
import { T as xr } from "../chunks/timeRange.component-DXtqwVE8.js";
|
|
47
|
+
import { T as lr } from "../chunks/timestamp.component-D2ivFJVk.js";
|
|
48
|
+
import { useToast as cr } from "./components/Toast/index.js";
|
|
49
|
+
import { T as Tr } from "../chunks/tooltip.component-oofe83RC.js";
|
|
50
|
+
import { w as vr, a as br } from "../chunks/index-BknUKotT.js";
|
|
51
|
+
import { useBreakpoint as Cr } from "./hooks/useBreakpoint/index.js";
|
|
52
|
+
import { u as hr, a as yr } from "../chunks/index-CgivotaP.js";
|
|
53
|
+
import { useDeviceType as Dr } from "./hooks/useDeviceType/index.js";
|
|
54
|
+
import { alignments as Wr, flexDirections as Br, placements as Vr, statuses as kr, typographyVariants as Ar } from "./shared/types/index.js";
|
|
55
|
+
import { K as Ir, s as Lr } from "../chunks/theme.provider-DiKqrQhs.js";
|
|
57
56
|
export {
|
|
58
57
|
a as Alert,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
58
|
+
s as Avatar,
|
|
59
|
+
x as AvatarGroup,
|
|
60
|
+
l as Button,
|
|
61
|
+
g as ButtonGroup,
|
|
62
|
+
P as Card,
|
|
63
|
+
D as CharacterCounter,
|
|
64
|
+
W as Checkbox,
|
|
65
|
+
V as CheckboxGroup,
|
|
66
|
+
A as ConversationCard,
|
|
67
|
+
I as DateFormats,
|
|
68
|
+
L as DatePicker,
|
|
69
|
+
R as Divider,
|
|
70
|
+
O as Heading,
|
|
71
|
+
q as Icon,
|
|
72
|
+
Ir as KibbleThemeProvider,
|
|
73
|
+
U as Link,
|
|
74
|
+
Y as Logo,
|
|
75
|
+
oo as Menu,
|
|
76
|
+
ir as Meridiem,
|
|
77
|
+
ao as Modal,
|
|
78
|
+
mo as NotificationCounter,
|
|
79
|
+
uo as Picture,
|
|
80
|
+
To as PinInput,
|
|
81
|
+
bo as Popover,
|
|
82
|
+
zo as RadioGroup,
|
|
83
|
+
Mo as RatingDots,
|
|
84
|
+
Bo as Select,
|
|
85
|
+
ko as SortableList,
|
|
86
|
+
wo as Spinner,
|
|
87
|
+
Ro as StyledAvatar,
|
|
88
|
+
Fo as Swatch,
|
|
89
|
+
jo as Switch,
|
|
90
|
+
Eo as Tabs,
|
|
91
|
+
Qo as Tag,
|
|
92
|
+
_o as TagBlock,
|
|
93
|
+
$o as TagDisabledState,
|
|
94
|
+
rr as Text,
|
|
95
|
+
er as TextInput,
|
|
96
|
+
sr as Textarea,
|
|
97
|
+
mr as TimePicker,
|
|
98
|
+
xr as TimeRange,
|
|
99
|
+
lr as Timestamp,
|
|
100
|
+
Tr as Tooltip,
|
|
101
|
+
e as alertButtonPositions,
|
|
102
|
+
Wr as alignments,
|
|
103
|
+
i as avatarSizes,
|
|
104
|
+
m as avatarVariants,
|
|
105
|
+
c as buttonConfigVariants,
|
|
106
|
+
d as buttonIconPositions,
|
|
107
|
+
T as buttonSizes,
|
|
108
|
+
S as buttonSpinnerPlacements,
|
|
109
|
+
v as buttonVariants,
|
|
110
|
+
y as cardSizes,
|
|
111
|
+
Xo as closeButtonDisplays,
|
|
112
|
+
K as dividerOrientations,
|
|
113
|
+
N as dividerSizes,
|
|
114
|
+
F as dividerVariants,
|
|
115
|
+
Br as flexDirections,
|
|
116
|
+
J as iconSizes,
|
|
117
|
+
Z as logoTypes,
|
|
118
|
+
_ as logoVariants,
|
|
119
|
+
eo as modalMotionPresets,
|
|
120
|
+
to as modalPlacements,
|
|
121
|
+
so as modalScrollBehaviors,
|
|
122
|
+
po as modalSizes,
|
|
123
|
+
xo as notificationCounterSizes,
|
|
124
|
+
fo as notificationCounterVariants,
|
|
125
|
+
So as pinInputTypes,
|
|
126
|
+
Vr as placements,
|
|
127
|
+
Co as popoverSizes,
|
|
128
|
+
Po as popoverTriggerTypes,
|
|
129
|
+
ho as popoverVariants,
|
|
130
|
+
Lo as spinnerSizes,
|
|
131
|
+
kr as statuses,
|
|
132
|
+
Ko as styledAvatarTypes,
|
|
133
|
+
Ho as swatchSizes,
|
|
134
|
+
Lr as system,
|
|
135
|
+
Yo as tagSizes,
|
|
136
|
+
Ar as typographyVariants,
|
|
137
|
+
Cr as useBreakpoint,
|
|
138
|
+
hr as useColorMode,
|
|
139
|
+
yr as useColorModeValue,
|
|
140
|
+
Dr as useDeviceType,
|
|
141
|
+
cr as useToast,
|
|
142
|
+
vr as withDarkMode,
|
|
143
|
+
br as withLightMode
|
|
145
144
|
};
|
|
146
145
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
error: "warningSign",
|
|
3
|
+
warning: "warningSign",
|
|
4
|
+
success: "checkmark",
|
|
5
|
+
info: "infoCircle",
|
|
6
|
+
default: "infoCircle"
|
|
7
|
+
}, r = {
|
|
8
|
+
default: "default",
|
|
9
|
+
error: "danger",
|
|
10
|
+
info: "info",
|
|
11
|
+
success: "success",
|
|
12
|
+
warning: "warning"
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
n as StatusIconMap,
|
|
16
|
+
r as StatusTypographyMap
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/shared/records/status.ts"],"sourcesContent":["import { IconName } from \"components/Icon/icon.types\";\nimport { Status } from \"shared/types/status\";\nimport { TypographyVariant } from \"shared/types/typography\";\n\nexport const StatusIconMap: Record<Status, IconName> = {\n error: \"warningSign\",\n warning: \"warningSign\",\n success: \"checkmark\",\n info: \"infoCircle\",\n default: \"infoCircle\",\n};\n\nexport const StatusTypographyMap: Record<Status, TypographyVariant> = {\n default: \"default\",\n error: \"danger\",\n info: \"info\",\n success: \"success\",\n warning: \"warning\",\n};\n\n// export const StatusTypographyMap: Record<Status, TypographyVariant> = {\n// default: \"default\",\n// error: \"danger\",\n// info: \"info\",\n// success: \"success\",\n// warning: \"warning\",\n// };\n"],"names":["StatusIconMap","StatusTypographyMap"],"mappings":"AAIO,MAAMA,IAA0C;AAAA,EACrD,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AACX,GAEaC,IAAyD;AAAA,EACpE,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AACX;"}
|
package/dist/esm/theme/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps } from '../../../Button/button.component';
|
|
3
|
+
import { Status } from '../../../../shared/types/status';
|
|
4
|
+
export interface ToastActionProps extends Omit<ButtonProps, "children"> {
|
|
5
|
+
buttonText: string;
|
|
6
|
+
buttonPosition?: "topRight" | "bottomLeft";
|
|
7
|
+
}
|
|
8
|
+
interface InternalToastActionProps extends ToastActionProps {
|
|
9
|
+
status: Status;
|
|
10
|
+
}
|
|
11
|
+
export declare const ToastAction: ({ buttonPosition, buttonText, status, ...rest }: InternalToastActionProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ToasterConfig } from './toaster.types';
|
|
2
2
|
export declare const toasterPlacements: readonly ["bottom", "bottom-end", "bottom-start", "top", "top-end", "top-start"];
|
|
3
3
|
export type ToasterPlacement = (typeof toasterPlacements)[number];
|
|
4
|
+
export declare const defaultToasterConfig: ToasterConfig;
|
|
4
5
|
export declare const ToasterConfigMap: Record<ToasterPlacement, ToasterConfig>;
|
|
5
6
|
export declare const bottomToaster: import('@zag-js/toast').Store<any>;
|
|
6
7
|
export declare const bottomEndToaster: import('@zag-js/toast').Store<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './useToast';
|
|
2
2
|
export * from './toast.types';
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon/icon.component';
|
|
3
|
+
import { Status } from '../../shared/types/status';
|
|
4
|
+
import { ToastActionProps } from './components/ToastAction/toastAction.component';
|
|
5
|
+
export interface ToastProps {
|
|
6
|
+
action?: ToastActionProps;
|
|
7
|
+
closable?: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
hideIcon?: boolean;
|
|
10
|
+
icon?: IconProps;
|
|
11
|
+
status?: Status;
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Toast: ({ action, closable, description, hideIcon, icon, status, title, }: ToastProps) => React.JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SystemStyleObject } from '@chakra-ui/react/styled-system';
|
|
2
|
+
type ToastSlot = "root" | "indicator" | "title" | "description" | "closeTrigger" | "actionTrigger";
|
|
3
|
+
type ToastSlotStyles = {
|
|
4
|
+
[key in ToastSlot]?: SystemStyleObject;
|
|
5
|
+
};
|
|
6
|
+
export declare const toastRecipe: import('@chakra-ui/react').SlotRecipeDefinition<ToastSlot, {
|
|
7
|
+
variant: Record<"default" | "info" | "success" | "warning" | "error", ToastSlotStyles>;
|
|
8
|
+
hideIcon: {
|
|
9
|
+
true: {
|
|
10
|
+
root: {
|
|
11
|
+
gap: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
false: {
|
|
15
|
+
root: {
|
|
16
|
+
gap: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToastProps } from './toast.component';
|
|
2
2
|
type ToastStatus = "visible" | "dismissing" | "unmounted";
|
|
3
3
|
interface ToastStatusChangeDetails {
|
|
4
4
|
status: ToastStatus;
|
|
5
5
|
src?: string | undefined;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface ToastOptions extends ToastProps {
|
|
8
8
|
duration?: number;
|
|
9
|
+
id?: string;
|
|
9
10
|
onStatusChange?: (details: ToastStatusChangeDetails) => void;
|
|
10
11
|
removeDelay?: number;
|
|
11
12
|
}
|
|
12
|
-
export type ToastOptions = BaseToastOptions & AlertProps;
|
|
13
13
|
export interface ToastInstance {
|
|
14
14
|
create: (options: ToastOptions) => string;
|
|
15
15
|
dismiss: (id?: string) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './status';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IconName } from '../../components/Icon/icon.types';
|
|
2
|
+
import { Status } from '../types/status';
|
|
3
|
+
import { TypographyVariant } from '../types/typography';
|
|
4
|
+
export declare const StatusIconMap: Record<Status, IconName>;
|
|
5
|
+
export declare const StatusTypographyMap: Record<Status, TypographyVariant>;
|
|
@@ -65,3 +65,17 @@ export declare const sizeTokens: {
|
|
|
65
65
|
value: string;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
+
export declare const breakpointTokens: {
|
|
69
|
+
sm: {
|
|
70
|
+
value: string;
|
|
71
|
+
};
|
|
72
|
+
md: {
|
|
73
|
+
value: string;
|
|
74
|
+
};
|
|
75
|
+
lg: {
|
|
76
|
+
value: string;
|
|
77
|
+
};
|
|
78
|
+
xl: {
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-BjDatQAs.js"),j=require("react"),A=require("./heading.component-CwIseBhq.js"),E=require("./icon.component-C0e0UGBw.js"),_=require("./text.component-CfoAQOZD.js"),R=require("./button.component-Dd9AfGox.js"),v=require("./box-Baq7UBls.js"),b=require("./flex-D14H6HbP.js"),w=require("./provider-NDo8kOkE.js"),k=require("./create-slot-recipe-context-IwVIgtBt.js"),C=require("./factory-D6tdBUPG.js"),c=require("./icons-CTpAjbC-.js"),I=t=>t&&t.__esModule?t:{default:t},q=I(j),[S,y]=w.createContext({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:"<Alert />"}),{withProvider:N,withContext:p,useStyles:B}=k.createSlotRecipeContext({key:"alert"}),W=N("div","root",{forwardAsChild:!0,wrapElement(t,n){return e.jsxRuntimeExports.jsx(S,{value:{status:n.status||"info"},children:t})}}),z=p("div","title"),T=p("div","description"),D=p("div","content"),F={info:c.InfoIcon,warning:c.WarningIcon,success:c.CheckCircleIcon,error:c.WarningIcon,neutral:c.InfoIcon},L=j.forwardRef(function(n,o){const i=y(),a=B(),l=typeof i.status=="string"?F[i.status]:j.Fragment,{children:x=e.jsxRuntimeExports.jsx(l,{}),...s}=n;return e.jsxRuntimeExports.jsx(C.chakra.span,{ref:o,...s,css:[a.indicator,n.css],children:x})}),M={error:"warningSign",warning:"warningSign",success:"checkmark",info:"infoCircle",default:"infoCircle"},H={default:"default",error:"danger",info:"info",success:"success",warning:"warning"},m=({buttonPosition:t="topRight",buttonText:n,status:o,...i})=>e.jsxRuntimeExports.jsx(v.Box,{className:"Alert__Button","data-testid":"kibble-alert-button",...t==="bottomLeft"&&{pt:2,pb:1},children:e.jsxRuntimeExports.jsx(R.Button,{size:"xs",variant:o==="default"?"primary":"secondary",w:"max-content",...i,children:n})}),V=({buttonProps:t,description:n,descriptionProps:o,hideCloseButton:i=!1,hideIcon:a=!1,iconProps:l,onClose:x,onContrast:s=!1,status:r="success",title:u,titleProps:h,...g})=>{t&&!t.buttonPosition&&(t.buttonPosition="topRight");const d=t&&t.buttonPosition==="topRight",f=d?b.Flex:q.default.Fragment;return e.jsxRuntimeExports.jsxs(W,{className:"Alert","data-testid":"kibble-alert",...g,variant:r,hideIcon:a,onContrast:s,children:[!a&&e.jsxRuntimeExports.jsx(L,{className:"Alert__Icon","data-testid":"kibble-alert-icon",children:e.jsxRuntimeExports.jsx(E.Icon,{variant:s?"onContrast":H[r],name:l?.name||M[r],size:"lg",...l})}),e.jsxRuntimeExports.jsxs(D,{className:"Alert__Content","data-testid":"kibble-alert-content",children:[u&&e.jsxRuntimeExports.jsxs(f,{...d&&{justifyContent:"space-between",gap:2},children:[e.jsxRuntimeExports.jsx(z,{className:"Alert__Title","data-testid":"kibble-alert-title",children:e.jsxRuntimeExports.jsx(A.WrappedHeading,{size:"sm",variant:s?"onContrast":"default",...h,children:u})}),t&&t.buttonPosition==="topRight"&&e.jsxRuntimeExports.jsx(m,{status:r,onContrast:s,...t})]}),n&&e.jsxRuntimeExports.jsxs(f,{...d&&{justifyContent:"space-between"},children:[e.jsxRuntimeExports.jsx(T,{className:"Alert__Description","data-testid":"kibble-alert-description",children:typeof n=="string"?e.jsxRuntimeExports.jsx(_.WrappedText,{size:"md",variant:s?"onContrast":"default",...o,children:n}):n}),t&&t.buttonPosition==="topRight"&&!u&&e.jsxRuntimeExports.jsx(m,{status:r,onContrast:s,...t})]}),t?.buttonPosition==="bottomLeft"&&e.jsxRuntimeExports.jsx(m,{status:r,onContrast:s,...t})]}),!i&&e.jsxRuntimeExports.jsx(R.Button,{iconName:"close",size:"xs",variant:"ghostNeutral",onContrast:s,onClick:x})]})};exports.Alert=V;
|
|
2
|
-
//# sourceMappingURL=alert.component-DLOr0ni3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.component-DLOr0ni3.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/alert/alert.js","../../src/components/Alert/alert.records.ts","../../src/components/Alert/components/AlertButton/alertButton.component.tsx","../../src/components/Alert/alert.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef, Fragment } from 'react';\nimport { createContext } from '../../create-context.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { InfoIcon, WarningIcon, CheckCircleIcon } from '../icons.js';\n\nconst [AlertStatusProvider, useAlertStatusContext] = createContext({\n name: \"AlertStatusContext\",\n hookName: \"useAlertStatusContext\",\n providerName: \"<Alert />\"\n});\nconst {\n withProvider,\n withContext,\n useStyles: useAlertStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"alert\" });\nconst AlertRoot = withProvider(\n \"div\",\n \"root\",\n {\n forwardAsChild: true,\n wrapElement(element, props) {\n return (\n // @ts-ignore fix later\n /* @__PURE__ */ jsx(AlertStatusProvider, { value: { status: props.status || \"info\" }, children: element })\n );\n }\n }\n);\nconst AlertPropsProvider = PropsProvider;\nconst AlertTitle = withContext(\n \"div\",\n \"title\"\n);\nconst AlertDescription = withContext(\"div\", \"description\");\nconst AlertContent = withContext(\n \"div\",\n \"content\"\n);\nconst iconMap = {\n info: InfoIcon,\n warning: WarningIcon,\n success: CheckCircleIcon,\n error: WarningIcon,\n neutral: InfoIcon\n};\nconst AlertIndicator = forwardRef(\n function AlertIndicator2(props, ref) {\n const api = useAlertStatusContext();\n const styles = useAlertStyles();\n const Icon = typeof api.status === \"string\" ? iconMap[api.status] : Fragment;\n const { children = /* @__PURE__ */ jsx(Icon, {}), ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, ...rest, css: [styles.indicator, props.css], children });\n }\n);\n\nexport { AlertContent, AlertDescription, AlertIndicator, AlertPropsProvider, AlertRoot, AlertStatusProvider, AlertTitle, useAlertStatusContext, useAlertStyles };\n","import { IconName } from \"components/Icon/icon.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { Status } from \"shared/types/status\";\n\nexport const AlertStatusIcon: Record<Status, IconName> = {\n error: \"warningSign\",\n warning: \"warningSign\",\n success: \"checkmark\",\n info: \"infoCircle\",\n default: \"infoCircle\",\n};\n\nexport const AlertStatusToIconVariant: Record<Status, TypographyVariant> = {\n default: \"default\",\n error: \"danger\",\n info: \"info\",\n success: \"success\",\n warning: \"warning\",\n};\n","import React from \"react\";\nimport { AlertButtonPosition } from \"components/Alert/alert.types\";\nimport { Button, ButtonProps } from \"components/Button/button.component\";\nimport { Status } from \"shared/types/status\";\nimport { Box } from \"@chakra-ui/react/box\";\n\nexport interface AlertButtonProps extends Omit<ButtonProps, \"children\"> {\n buttonPosition?: AlertButtonPosition;\n buttonText: string;\n}\n\ninterface InternalAlertButtonProps extends AlertButtonProps {\n status: Status;\n}\n\nexport const AlertButton = ({\n buttonPosition = \"topRight\",\n buttonText,\n status,\n ...rest\n}: InternalAlertButtonProps): React.JSX.Element => {\n return (\n <Box\n className=\"Alert__Button\"\n data-testid=\"kibble-alert-button\"\n {...(buttonPosition === \"bottomLeft\" && { pt: 2, pb: 1 })}\n >\n <Button\n size=\"xs\"\n variant={status === \"default\" ? \"primary\" : \"secondary\"}\n w=\"max-content\"\n {...rest}\n >\n {buttonText}\n </Button>\n </Box>\n );\n};\n","import React from \"react\";\nimport { Alert as CAlert } from \"@chakra-ui/react/alert\";\nimport { Heading, HeadingProps } from \"components/Heading/heading.component\";\nimport { Icon, IconProps } from \"components/Icon/icon.component\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { Status } from \"shared/types/status\";\nimport { Button } from \"components/Button/button.component\";\nimport { AlertStatusIcon, AlertStatusToIconVariant } from \"./alert.records\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport {\n AlertButton,\n AlertButtonProps,\n} from \"./components/AlertButton/alertButton.component\";\n\nexport interface AlertProps\n extends Omit<\n CAlert.RootProps,\n \"title\" | \"status\" | \"children\" | \"variant\" | \"size\"\n > {\n buttonProps?: AlertButtonProps;\n description?: React.ReactNode;\n descriptionProps?: TextProps;\n hideCloseButton?: boolean;\n hideIcon?: boolean;\n iconProps?: IconProps;\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n onContrast?: boolean;\n status?: Status;\n title?: React.ReactNode;\n titleProps?: HeadingProps;\n}\n\nexport const Alert = ({\n buttonProps,\n description,\n descriptionProps,\n hideCloseButton = false,\n hideIcon = false,\n iconProps,\n onClose,\n onContrast = false,\n status = \"success\",\n title,\n titleProps,\n ...rest\n}: AlertProps): React.JSX.Element => {\n if (buttonProps && !buttonProps.buttonPosition) {\n buttonProps.buttonPosition = \"topRight\";\n }\n const isTopRightButton =\n buttonProps && buttonProps.buttonPosition === \"topRight\";\n const WithButtonWrapper = isTopRightButton ? Flex : React.Fragment;\n\n return (\n <CAlert.Root\n className=\"Alert\"\n data-testid=\"kibble-alert\"\n {...rest}\n variant={status}\n hideIcon={hideIcon}\n onContrast={onContrast}\n >\n {!hideIcon && (\n <CAlert.Indicator\n className=\"Alert__Icon\"\n data-testid=\"kibble-alert-icon\"\n >\n <Icon\n variant={\n onContrast ? \"onContrast\" : AlertStatusToIconVariant[status]\n }\n name={iconProps?.name || AlertStatusIcon[status]}\n size=\"lg\"\n {...iconProps}\n />\n </CAlert.Indicator>\n )}\n <CAlert.Content\n className=\"Alert__Content\"\n data-testid=\"kibble-alert-content\"\n >\n {title && (\n <WithButtonWrapper\n {...(isTopRightButton && {\n justifyContent: \"space-between\",\n gap: 2,\n })}\n >\n <CAlert.Title\n className=\"Alert__Title\"\n data-testid=\"kibble-alert-title\"\n >\n <Heading\n size=\"sm\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...titleProps}\n >\n {title}\n </Heading>\n </CAlert.Title>\n {buttonProps && buttonProps.buttonPosition === \"topRight\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {description && (\n <WithButtonWrapper\n {...(isTopRightButton && { justifyContent: \"space-between\" })}\n >\n <CAlert.Description\n className=\"Alert__Description\"\n data-testid=\"kibble-alert-description\"\n >\n {typeof description === \"string\" ? (\n <Text\n size=\"md\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...descriptionProps}\n >\n {description}\n </Text>\n ) : (\n description\n )}\n </CAlert.Description>\n {buttonProps &&\n buttonProps.buttonPosition === \"topRight\" &&\n !title && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {buttonProps?.buttonPosition === \"bottomLeft\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </CAlert.Content>\n {!hideCloseButton && (\n <Button\n iconName=\"close\"\n size=\"xs\"\n variant=\"ghostNeutral\"\n onContrast={onContrast}\n onClick={onClose}\n />\n )}\n </CAlert.Root>\n );\n};\n"],"names":["AlertStatusProvider","useAlertStatusContext","createContext","withProvider","withContext","useAlertStyles","createSlotRecipeContext","AlertRoot","element","props","jsx","AlertTitle","AlertDescription","AlertContent","iconMap","InfoIcon","WarningIcon","CheckCircleIcon","AlertIndicator","forwardRef","ref","api","styles","Icon","Fragment","children","rest","chakra","AlertStatusIcon","AlertStatusToIconVariant","AlertButton","buttonPosition","buttonText","status","Box","Button","Alert","buttonProps","description","descriptionProps","hideCloseButton","hideIcon","iconProps","onClose","onContrast","title","titleProps","isTopRightButton","WithButtonWrapper","Flex","React","jsxs","CAlert.Root","CAlert.Indicator","CAlert.Content","CAlert.Title","Heading","CAlert.Description","Text"],"mappings":"igBASM,CAACA,EAAqBC,CAAqB,EAAIC,gBAAc,CACjE,KAAM,qBACN,SAAU,wBACV,aAAc,WAChB,CAAC,EACK,CACJ,aAAAC,EACA,YAAAC,EACA,UAAWC,CAEb,EAAIC,EAAAA,wBAAwB,CAAE,IAAK,OAAO,CAAE,EACtCC,EAAYJ,EAChB,MACA,OACA,CACE,eAAgB,GAChB,YAAYK,EAASC,EAAO,CAC1B,OAEkBC,EAAAA,kBAAAA,IAAIV,EAAqB,CAAE,MAAO,CAAE,OAAQS,EAAM,QAAU,MAAM,EAAI,SAAUD,CAAS,CAAA,CAEjH,CACA,CACA,EAEMG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AAU,qBACV,cAAY,2BAEX,SAAA,OAAOnB,GAAgB,SACtB5B,EAAA,kBAAA,IAACgD,EAAA,YAAA,CACC,KAAK,KACL,QAASd,EAAa,aAAe,UACpC,GAAGL,EAEH,SAAAD,CAAA,CAAA,EAGHA,CAAA,CAEJ,EACCD,GACCA,EAAY,iBAAmB,YAC/B,CAACQ,GACCnC,EAAA,kBAAA,IAACoB,EAAA,CACC,OAAAG,EACA,WAAAW,EACC,GAAGP,CAAA,CAAA,CACN,CAAA,CAEN,EAEDA,GAAa,iBAAmB,cAC/B3B,EAAA,kBAAA,IAACoB,EAAA,CACC,OAAAG,EACA,WAAAW,EACC,GAAGP,CAAA,CAAA,CACN,CAAA,CAEJ,EACC,CAACG,GACA9B,EAAA,kBAAA,IAACyB,EAAA,OAAA,CACC,SAAS,QACT,KAAK,KACL,QAAQ,eACR,WAAAS,EACA,QAASD,CAAA,CAAA,CACX,CAAA,CAEJ,CAEJ","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.component-ibWiyGfP.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/alert/alert.js","../../src/components/Alert/alert.records.ts","../../src/components/Alert/components/AlertButton/alertButton.component.tsx","../../src/components/Alert/alert.component.tsx"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { forwardRef, Fragment } from 'react';\nimport { createContext } from '../../create-context.js';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\nimport { InfoIcon, WarningIcon, CheckCircleIcon } from '../icons.js';\n\nconst [AlertStatusProvider, useAlertStatusContext] = createContext({\n name: \"AlertStatusContext\",\n hookName: \"useAlertStatusContext\",\n providerName: \"<Alert />\"\n});\nconst {\n withProvider,\n withContext,\n useStyles: useAlertStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"alert\" });\nconst AlertRoot = withProvider(\n \"div\",\n \"root\",\n {\n forwardAsChild: true,\n wrapElement(element, props) {\n return (\n // @ts-ignore fix later\n /* @__PURE__ */ jsx(AlertStatusProvider, { value: { status: props.status || \"info\" }, children: element })\n );\n }\n }\n);\nconst AlertPropsProvider = PropsProvider;\nconst AlertTitle = withContext(\n \"div\",\n \"title\"\n);\nconst AlertDescription = withContext(\"div\", \"description\");\nconst AlertContent = withContext(\n \"div\",\n \"content\"\n);\nconst iconMap = {\n info: InfoIcon,\n warning: WarningIcon,\n success: CheckCircleIcon,\n error: WarningIcon,\n neutral: InfoIcon\n};\nconst AlertIndicator = forwardRef(\n function AlertIndicator2(props, ref) {\n const api = useAlertStatusContext();\n const styles = useAlertStyles();\n const Icon = typeof api.status === \"string\" ? iconMap[api.status] : Fragment;\n const { children = /* @__PURE__ */ jsx(Icon, {}), ...rest } = props;\n return /* @__PURE__ */ jsx(chakra.span, { ref, ...rest, css: [styles.indicator, props.css], children });\n }\n);\n\nexport { AlertContent, AlertDescription, AlertIndicator, AlertPropsProvider, AlertRoot, AlertStatusProvider, AlertTitle, useAlertStatusContext, useAlertStyles };\n","import { IconName } from \"components/Icon/icon.types\";\nimport { TypographyVariant } from \"shared/types\";\nimport { Status } from \"shared/types/status\";\n\nexport const AlertStatusIcon: Record<Status, IconName> = {\n error: \"warningSign\",\n warning: \"warningSign\",\n success: \"checkmark\",\n info: \"infoCircle\",\n default: \"infoCircle\",\n};\n\nexport const AlertStatusToIconVariant: Record<Status, TypographyVariant> = {\n default: \"default\",\n error: \"danger\",\n info: \"info\",\n success: \"success\",\n warning: \"warning\",\n};\n","import React from \"react\";\nimport { AlertButtonPosition } from \"components/Alert/alert.types\";\nimport { Button, ButtonProps } from \"components/Button/button.component\";\nimport { Status } from \"shared/types/status\";\nimport { Box } from \"@chakra-ui/react/box\";\n\nexport interface AlertButtonProps extends Omit<ButtonProps, \"children\"> {\n buttonPosition?: AlertButtonPosition;\n buttonText: string;\n}\n\ninterface InternalAlertButtonProps extends AlertButtonProps {\n status: Status;\n}\n\nexport const AlertButton = ({\n buttonPosition = \"topRight\",\n buttonText,\n status,\n ...rest\n}: InternalAlertButtonProps): React.JSX.Element => {\n return (\n <Box\n className=\"Alert__Button\"\n data-testid=\"kibble-alert-button\"\n {...(buttonPosition === \"bottomLeft\" && { pt: 2, pb: 1 })}\n >\n <Button\n size=\"xs\"\n variant={status === \"default\" ? \"primary\" : \"secondary\"}\n w=\"max-content\"\n {...rest}\n >\n {buttonText}\n </Button>\n </Box>\n );\n};\n","import React from \"react\";\nimport { Alert as CAlert } from \"@chakra-ui/react/alert\";\nimport { Heading, HeadingProps } from \"components/Heading/heading.component\";\nimport { Icon, IconProps } from \"components/Icon/icon.component\";\nimport { Text, TextProps } from \"components/Text/text.component\";\nimport { Status } from \"shared/types/status\";\nimport { Button } from \"components/Button/button.component\";\nimport { AlertStatusIcon, AlertStatusToIconVariant } from \"./alert.records\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport {\n AlertButton,\n AlertButtonProps,\n} from \"./components/AlertButton/alertButton.component\";\n\nexport interface AlertProps\n extends Omit<\n CAlert.RootProps,\n \"title\" | \"status\" | \"children\" | \"variant\" | \"size\"\n > {\n buttonProps?: AlertButtonProps;\n description?: React.ReactNode;\n descriptionProps?: TextProps;\n hideCloseButton?: boolean;\n hideIcon?: boolean;\n iconProps?: IconProps;\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n onContrast?: boolean;\n status?: Status;\n title?: React.ReactNode;\n titleProps?: HeadingProps;\n}\n\nexport const Alert = ({\n buttonProps,\n description,\n descriptionProps,\n hideCloseButton = false,\n hideIcon = false,\n iconProps,\n onClose,\n onContrast = false,\n status = \"success\",\n title,\n titleProps,\n ...rest\n}: AlertProps): React.JSX.Element => {\n if (buttonProps && !buttonProps.buttonPosition) {\n buttonProps.buttonPosition = \"topRight\";\n }\n const isTopRightButton =\n buttonProps && buttonProps.buttonPosition === \"topRight\";\n const WithButtonWrapper = isTopRightButton ? Flex : React.Fragment;\n\n return (\n <CAlert.Root\n className=\"Alert\"\n data-testid=\"kibble-alert\"\n {...rest}\n variant={status}\n hideIcon={hideIcon}\n onContrast={onContrast}\n >\n {!hideIcon && (\n <CAlert.Indicator\n className=\"Alert__Icon\"\n data-testid=\"kibble-alert-icon\"\n >\n <Icon\n variant={\n onContrast ? \"onContrast\" : AlertStatusToIconVariant[status]\n }\n name={iconProps?.name || AlertStatusIcon[status]}\n size=\"lg\"\n {...iconProps}\n />\n </CAlert.Indicator>\n )}\n <CAlert.Content\n className=\"Alert__Content\"\n data-testid=\"kibble-alert-content\"\n >\n {title && (\n <WithButtonWrapper\n {...(isTopRightButton && {\n justifyContent: \"space-between\",\n gap: 2,\n })}\n >\n <CAlert.Title\n className=\"Alert__Title\"\n data-testid=\"kibble-alert-title\"\n >\n <Heading\n size=\"sm\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...titleProps}\n >\n {title}\n </Heading>\n </CAlert.Title>\n {buttonProps && buttonProps.buttonPosition === \"topRight\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {description && (\n <WithButtonWrapper\n {...(isTopRightButton && { justifyContent: \"space-between\" })}\n >\n <CAlert.Description\n className=\"Alert__Description\"\n data-testid=\"kibble-alert-description\"\n >\n {typeof description === \"string\" ? (\n <Text\n size=\"md\"\n variant={onContrast ? \"onContrast\" : \"default\"}\n {...descriptionProps}\n >\n {description}\n </Text>\n ) : (\n description\n )}\n </CAlert.Description>\n {buttonProps &&\n buttonProps.buttonPosition === \"topRight\" &&\n !title && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </WithButtonWrapper>\n )}\n {buttonProps?.buttonPosition === \"bottomLeft\" && (\n <AlertButton\n status={status}\n onContrast={onContrast}\n {...buttonProps}\n />\n )}\n </CAlert.Content>\n {!hideCloseButton && (\n <Button\n iconName=\"close\"\n size=\"xs\"\n variant=\"ghostNeutral\"\n onContrast={onContrast}\n onClick={onClose}\n />\n )}\n </CAlert.Root>\n );\n};\n"],"names":["AlertStatusProvider","useAlertStatusContext","createContext","withProvider","withContext","useAlertStyles","createSlotRecipeContext","AlertRoot","element","props","jsx","AlertTitle","AlertDescription","AlertContent","iconMap","InfoIcon","WarningIcon","CheckCircleIcon","AlertIndicator","forwardRef","ref","api","styles","Icon","Fragment","children","rest","chakra","AlertStatusIcon","AlertStatusToIconVariant","AlertButton","buttonPosition","buttonText","status","Box","Button","Alert","buttonProps","description","descriptionProps","hideCloseButton","hideIcon","iconProps","onClose","onContrast","title","titleProps","isTopRightButton","WithButtonWrapper","Flex","React","jsxs","CAlert.Root","CAlert.Indicator","CAlert.Content","CAlert.Title","Heading","CAlert.Description","Text"],"mappings":";;;;;;;;;;;;AASA,MAAM,CAACA,GAAqBC,CAAqB,IAAIC,EAAc;AAAA,EACjE,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GACK;AAAA,EACJ,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAWC;AAEb,IAAIC,EAAwB,EAAE,KAAK,QAAO,CAAE,GACtCC,IAAYJ;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,IACE,gBAAgB;AAAA,IAChB,YAAYK,GAASC,GAAO;AAC1B;AAAA;AAAA,QAEkBC,gBAAAA,EAAAA,IAAIV,GAAqB,EAAE,OAAO,EAAE,QAAQS,EAAM,UAAU,OAAM,GAAI,UAAUD,EAAS,CAAA;AAAA;AAAA,IAEjH;AAAA,EACA;AACA,GAEMG,IAAaP;AAAA,EACjB;AAAA,EACA;AACF,GACMQ,IAAmBR,EAAY,OAAO,aAAa,GACnDS,IAAeT;AAAA,EACnB;AAAA,EACA;AACF,GACMU,IAAU;AAAA,EACd,MAAMC;AAAA,EACN,SAASC;AAAA,EACT,SAASC;AAAA,EACT,OAAOD;AAAA,EACP,SAASD;AACX,GACMG,IAAiBC;AAAA,EACrB,SAAyBV,GAAOW,GAAK;AACnC,UAAMC,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AAAA,YACC,UAAS;AAAA,YACT,MAAK;AAAA,YACL,SAAQ;AAAA,YACR,YAAAS;AAAA,YACA,SAASD;AAAA,UAAA;AAAA,QAAA;AAAA,MACX;AAAA,IAAA;AAAA,EAEJ;AAEJ;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.types-JdzSuSVO.js","sources":["../../src/components/Alert/alert.types.ts"],"sourcesContent":["export const alertButtonPositions = [\"topRight\", \"bottomLeft\"] as const;\nexport type AlertButtonPosition = (typeof alertButtonPositions)[number];\n"],"names":["alertButtonPositions"],"mappings":"AAAa,MAAAA,IAAuB,CAAC,YAAY,YAAY;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.types-R_9yno9e.js","sources":["../../src/components/Alert/alert.types.ts"],"sourcesContent":["export const alertButtonPositions = [\"topRight\", \"bottomLeft\"] as const;\nexport type AlertButtonPosition = (typeof alertButtonPositions)[number];\n"],"names":["alertButtonPositions"],"mappings":"aAAa,MAAAA,EAAuB,CAAC,WAAY,YAAY"}
|