@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,38 +1,59 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
const
|
|
3
|
-
bottom:
|
|
4
|
-
"bottom-end":
|
|
5
|
-
"bottom-start":
|
|
6
|
-
top:
|
|
7
|
-
"top-end":
|
|
8
|
-
"top-start":
|
|
9
|
-
},
|
|
10
|
-
const o =
|
|
1
|
+
import { f as u, e as b, t as T, d as c, a as l, b as f, h as e } from "../../../chunks/toaster.records-BGfpUOVt.js";
|
|
2
|
+
const v = {
|
|
3
|
+
bottom: f,
|
|
4
|
+
"bottom-end": l,
|
|
5
|
+
"bottom-start": c,
|
|
6
|
+
top: T,
|
|
7
|
+
"top-end": b,
|
|
8
|
+
"top-start": u
|
|
9
|
+
}, D = (d) => {
|
|
10
|
+
const o = v[d || "top"];
|
|
11
11
|
return {
|
|
12
12
|
create: ({
|
|
13
13
|
description: t,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
duration: a = e.duration,
|
|
15
|
+
id: r = crypto.randomUUID(),
|
|
16
|
+
onStatusChange: s,
|
|
17
|
+
removeDelay: n = e.removeDelay,
|
|
18
|
+
title: i,
|
|
19
|
+
...m
|
|
17
20
|
}) => o.create({
|
|
18
21
|
description: t,
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
duration: a,
|
|
23
|
+
id: r,
|
|
24
|
+
onStatusChange: s,
|
|
25
|
+
removeDelay: n,
|
|
26
|
+
title: i,
|
|
21
27
|
meta: {
|
|
22
|
-
...
|
|
28
|
+
...m
|
|
23
29
|
}
|
|
30
|
+
// type: "loading", This makes the toast persistent and is useful for development
|
|
24
31
|
}),
|
|
25
32
|
dismiss: (t) => {
|
|
26
33
|
o.dismiss(t);
|
|
27
34
|
},
|
|
28
|
-
update: (t,
|
|
29
|
-
const {
|
|
30
|
-
|
|
35
|
+
update: (t, a) => {
|
|
36
|
+
const {
|
|
37
|
+
description: r,
|
|
38
|
+
duration: s = e.duration,
|
|
39
|
+
onStatusChange: n,
|
|
40
|
+
removeDelay: i = e.removeDelay,
|
|
41
|
+
title: m,
|
|
42
|
+
...p
|
|
43
|
+
} = a;
|
|
44
|
+
return o.update(t, {
|
|
45
|
+
description: r,
|
|
46
|
+
duration: s,
|
|
47
|
+
onStatusChange: n,
|
|
48
|
+
removeDelay: i,
|
|
49
|
+
title: m,
|
|
50
|
+
meta: { ...p }
|
|
51
|
+
});
|
|
31
52
|
},
|
|
32
53
|
visible: (t) => o.isVisible(t)
|
|
33
54
|
};
|
|
34
55
|
};
|
|
35
56
|
export {
|
|
36
|
-
|
|
57
|
+
D as useToast
|
|
37
58
|
};
|
|
38
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Toast/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Toast/useToast.ts"],"sourcesContent":["import { CreateToasterReturn } from \"@chakra-ui/react/toast\";\nimport { ToastInstance, ToastOptions } from \"./toast.types\";\nimport {\n bottomEndToaster,\n bottomStartToaster,\n bottomToaster,\n defaultToasterConfig,\n ToasterPlacement,\n topEndToaster,\n topStartToaster,\n topToaster,\n} from \"./components/Toaster/toaster.records\";\n\nconst ToasterMap: Record<ToasterPlacement, CreateToasterReturn> = {\n bottom: bottomToaster,\n \"bottom-end\": bottomEndToaster,\n \"bottom-start\": bottomStartToaster,\n top: topToaster,\n \"top-end\": topEndToaster,\n \"top-start\": topStartToaster,\n};\n\nexport const useToast = (placement?: ToasterPlacement): ToastInstance => {\n const toaster = ToasterMap[placement || \"top\"];\n return {\n create: ({\n description,\n duration = defaultToasterConfig.duration,\n id = crypto.randomUUID(),\n onStatusChange,\n removeDelay = defaultToasterConfig.removeDelay,\n title,\n ...rest\n }: ToastOptions): string => {\n return toaster.create({\n description,\n duration,\n id,\n onStatusChange,\n removeDelay,\n title,\n meta: {\n ...rest,\n },\n // type: \"loading\", This makes the toast persistent and is useful for development\n });\n },\n dismiss: (id?: string): void => {\n toaster.dismiss(id);\n },\n update: (id: string, options: Omit<ToastOptions, \"id\">): string => {\n const {\n description,\n duration = defaultToasterConfig.duration,\n onStatusChange,\n removeDelay = defaultToasterConfig.removeDelay,\n title,\n ...rest\n } = options;\n return toaster.update(id, {\n description,\n duration,\n onStatusChange,\n removeDelay,\n title,\n meta: { ...rest },\n });\n },\n visible: (id: string): boolean => {\n return toaster.isVisible(id);\n },\n };\n};\n"],"names":["ToasterMap","bottomToaster","bottomEndToaster","bottomStartToaster","topToaster","topEndToaster","topStartToaster","useToast","placement","toaster","description","duration","defaultToasterConfig","id","onStatusChange","removeDelay","title","rest","options"],"mappings":";AAaA,MAAMA,IAA4D;AAAA,EAChE,QAAQC;AAAA,EACR,cAAcC;AAAA,EACd,gBAAgBC;AAAA,EAChB,KAAKC;AAAA,EACL,WAAWC;AAAA,EACX,aAAaC;AACf,GAEaC,IAAW,CAACC,MAAgD;AACjE,QAAAC,IAAUT,EAAWQ,KAAa,KAAK;AACtC,SAAA;AAAA,IACL,QAAQ,CAAC;AAAA,MACP,aAAAE;AAAA,MACA,UAAAC,IAAWC,EAAqB;AAAA,MAChC,IAAAC,IAAK,OAAO,WAAW;AAAA,MACvB,gBAAAC;AAAA,MACA,aAAAC,IAAcH,EAAqB;AAAA,MACnC,OAAAI;AAAA,MACA,GAAGC;AAAA,IAAA,MAEIR,EAAQ,OAAO;AAAA,MACpB,aAAAC;AAAA,MACA,UAAAC;AAAA,MACA,IAAAE;AAAA,MACA,gBAAAC;AAAA,MACA,aAAAC;AAAA,MACA,OAAAC;AAAA,MACA,MAAM;AAAA,QACJ,GAAGC;AAAA,MAAA;AAAA;AAAA,IACL,CAED;AAAA,IAEH,SAAS,CAACJ,MAAsB;AAC9B,MAAAJ,EAAQ,QAAQI,CAAE;AAAA,IACpB;AAAA,IACA,QAAQ,CAACA,GAAYK,MAA8C;AAC3D,YAAA;AAAA,QACJ,aAAAR;AAAA,QACA,UAAAC,IAAWC,EAAqB;AAAA,QAChC,gBAAAE;AAAA,QACA,aAAAC,IAAcH,EAAqB;AAAA,QACnC,OAAAI;AAAA,QACA,GAAGC;AAAA,MAAA,IACDC;AACG,aAAAT,EAAQ,OAAOI,GAAI;AAAA,QACxB,aAAAH;AAAA,QACA,UAAAC;AAAA,QACA,gBAAAG;AAAA,QACA,aAAAC;AAAA,QACA,OAAAC;AAAA,QACA,MAAM,EAAE,GAAGC,EAAK;AAAA,MAAA,CACjB;AAAA,IACH;AAAA,IACA,SAAS,CAACJ,MACDJ,EAAQ,UAAUI,CAAE;AAAA,EAE/B;AACF;"}
|
|
@@ -1,127 +1,126 @@
|
|
|
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 ro } from "../../chunks/
|
|
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 { T as ur } from "../../chunks/tooltip.component-DX7RPrw8.js";
|
|
1
|
+
import { A as r, a as t } from "../../chunks/alert.types-D7ya3hgF.js";
|
|
2
|
+
import { A as e } 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 c } from "../../chunks/button.component-BpF3MzbZ.js";
|
|
6
|
+
import { b as T, d, c as l, e as u, a as v } from "../../chunks/button.types-CujqF5RD.js";
|
|
7
|
+
import { B as C } from "../../chunks/buttonGroup.component-oTaR0Md0.js";
|
|
8
|
+
import { C as P } from "../../chunks/card.component-DNX41NGG.js";
|
|
9
|
+
import { c as W } from "../../chunks/card.types-Cixp7ouC.js";
|
|
10
|
+
import { C as B } from "../../chunks/characterCounter.component-fZjvfJdX.js";
|
|
11
|
+
import { W as h } from "../../chunks/checkbox.component-0xblm1A8.js";
|
|
12
|
+
import { W as M } from "../../chunks/checkboxGroup.component-LWTDPWxy.js";
|
|
13
|
+
import { C as k } from "../../chunks/conversationCard.component-CP6rnJx7.js";
|
|
14
|
+
import { a as L, D as G } from "../../chunks/datePicker.component-CI1zrqXF.js";
|
|
15
|
+
import { D as w, d as N, a as F, b as H } from "../../chunks/divider.types-0j5qRXed.js";
|
|
16
|
+
import { W as j } from "../../chunks/heading.component-BPvYeKHj.js";
|
|
17
|
+
import { I as E } from "../../chunks/icon.component-DGNCL1Yc.js";
|
|
18
|
+
import { i as K } 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 ro, c as to, a as so, b as eo, 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 So } from "../../chunks/picture.component-DKbaaL64.js";
|
|
26
|
+
import { W as lo, p as uo } from "../../chunks/pinInput.types-DF9d4AgH.js";
|
|
27
|
+
import { P as bo } from "../../chunks/popover.component-DKQ2rwkT.js";
|
|
28
|
+
import { p as go, b as Po, a as zo } from "../../chunks/popover.types-C-V7Diw4.js";
|
|
29
|
+
import { W as Ao } from "../../chunks/radioGroup.component-BfzkPOWR.js";
|
|
30
|
+
import { R as Do } from "../../chunks/ratingDots.component-DbIxSq3Z.js";
|
|
31
|
+
import { W as yo } from "../../chunks/select.component-eJdhSRY0.js";
|
|
32
|
+
import { S as Vo } from "../../chunks/sortableList.component-DfXzIf2N.js";
|
|
33
|
+
import { S as Io } from "../../chunks/spinner.component-mGoJn6ep.js";
|
|
34
|
+
import { s as Go } from "../../chunks/spinner.types-g7cTFJkb.js";
|
|
35
|
+
import { S as wo, s as No } from "../../chunks/styledAvatar.types-2wZJjpPn.js";
|
|
36
|
+
import { S as Ho, s as Oo } from "../../chunks/swatch.types-DbgA3RWc.js";
|
|
37
|
+
import { W as qo } from "../../chunks/switch.component-B1QEXeHo.js";
|
|
38
|
+
import { T as Jo } 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 aa } from "../../chunks/text.component-DqGLCykU.js";
|
|
43
|
+
import { W as ta } from "../../chunks/textInput.component-CkeP6E8M.js";
|
|
44
|
+
import { W as ea } from "../../chunks/textarea.component-Qns9pf6_.js";
|
|
45
|
+
import { M as ia, T as ma } from "../../chunks/timePicker.component-DdBfadnM.js";
|
|
46
|
+
import { T as xa } from "../../chunks/timeRange.component-DXtqwVE8.js";
|
|
47
|
+
import { T as ca } from "../../chunks/timestamp.component-D2ivFJVk.js";
|
|
48
|
+
import { useToast as Ta } from "./Toast/index.js";
|
|
49
|
+
import { T as la } from "../../chunks/tooltip.component-oofe83RC.js";
|
|
51
50
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
51
|
+
r as Alert,
|
|
52
|
+
e as Avatar,
|
|
53
|
+
x as AvatarGroup,
|
|
54
|
+
c as Button,
|
|
55
|
+
C as ButtonGroup,
|
|
56
|
+
P as Card,
|
|
57
|
+
B as CharacterCounter,
|
|
58
|
+
h as Checkbox,
|
|
59
|
+
M as CheckboxGroup,
|
|
60
|
+
k as ConversationCard,
|
|
61
|
+
L as DateFormats,
|
|
62
|
+
G as DatePicker,
|
|
63
|
+
w as Divider,
|
|
64
|
+
j as Heading,
|
|
65
|
+
E as Icon,
|
|
66
|
+
U as Link,
|
|
67
|
+
Y as Logo,
|
|
68
|
+
oo as Menu,
|
|
69
|
+
ia as Meridiem,
|
|
70
|
+
ro as Modal,
|
|
71
|
+
mo as NotificationCounter,
|
|
72
|
+
So as Picture,
|
|
73
|
+
lo as PinInput,
|
|
74
|
+
bo as Popover,
|
|
75
|
+
Ao as RadioGroup,
|
|
76
|
+
Do as RatingDots,
|
|
77
|
+
yo as Select,
|
|
78
|
+
Vo as SortableList,
|
|
79
|
+
Io as Spinner,
|
|
80
|
+
wo as StyledAvatar,
|
|
81
|
+
Ho as Swatch,
|
|
82
|
+
qo as Switch,
|
|
83
|
+
Jo as Tabs,
|
|
84
|
+
Qo as Tag,
|
|
85
|
+
_o as TagBlock,
|
|
86
|
+
$o as TagDisabledState,
|
|
87
|
+
aa as Text,
|
|
88
|
+
ta as TextInput,
|
|
89
|
+
ea as Textarea,
|
|
90
|
+
ma as TimePicker,
|
|
91
|
+
xa as TimeRange,
|
|
92
|
+
ca as Timestamp,
|
|
93
|
+
la as Tooltip,
|
|
94
|
+
t as alertButtonPositions,
|
|
95
|
+
i as avatarSizes,
|
|
96
|
+
m as avatarVariants,
|
|
97
|
+
T as buttonConfigVariants,
|
|
98
|
+
d as buttonIconPositions,
|
|
99
|
+
l as buttonSizes,
|
|
100
|
+
u as buttonSpinnerPlacements,
|
|
101
|
+
v as buttonVariants,
|
|
102
|
+
W as cardSizes,
|
|
103
|
+
Xo as closeButtonDisplays,
|
|
104
|
+
N as dividerOrientations,
|
|
105
|
+
F as dividerSizes,
|
|
106
|
+
H as dividerVariants,
|
|
107
|
+
K as iconSizes,
|
|
108
|
+
Z as logoTypes,
|
|
109
|
+
_ as logoVariants,
|
|
110
|
+
to as modalMotionPresets,
|
|
111
|
+
so as modalPlacements,
|
|
112
|
+
eo as modalScrollBehaviors,
|
|
113
|
+
po as modalSizes,
|
|
114
|
+
xo as notificationCounterSizes,
|
|
115
|
+
fo as notificationCounterVariants,
|
|
116
|
+
uo as pinInputTypes,
|
|
117
|
+
go as popoverSizes,
|
|
118
|
+
Po as popoverTriggerTypes,
|
|
119
|
+
zo as popoverVariants,
|
|
120
|
+
Go as spinnerSizes,
|
|
121
|
+
No as styledAvatarTypes,
|
|
122
|
+
Oo as swatchSizes,
|
|
123
|
+
Yo as tagSizes,
|
|
124
|
+
Ta as useToast
|
|
126
125
|
};
|
|
127
126
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|