@televet/kibble-ui 5.0.21 → 5.0.23-alpha.1
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-C6EN46Ra.js → alert.component-OcRbeRJa.js} +37 -38
- package/dist/chunks/alert.component-OcRbeRJa.js.map +1 -0
- package/dist/chunks/{alert.types-BlvzpzTn.js → alert.component-nhRTQ5KK.js} +2 -2
- package/dist/chunks/alert.component-nhRTQ5KK.js.map +1 -0
- package/dist/chunks/alert.types-8mtsdXr4.js +2 -0
- package/dist/chunks/alert.types-8mtsdXr4.js.map +1 -0
- package/dist/chunks/alert.types-CPfg5SeM.js +5 -0
- package/dist/chunks/alert.types-CPfg5SeM.js.map +1 -0
- package/dist/chunks/{avatarGroup.component-M84HNv2O.js → avatarGroup.component-BPhQpVYM.js} +2 -2
- package/dist/chunks/{avatarGroup.component-M84HNv2O.js.map → avatarGroup.component-BPhQpVYM.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-HKh7TJ0v.js → buttonGroup.component-CO5lC36l.js} +2 -2
- package/dist/chunks/{buttonGroup.component-HKh7TJ0v.js.map → buttonGroup.component-CO5lC36l.js.map} +1 -1
- package/dist/chunks/{calendar.component-UUc8d3QQ.js → calendar.component-CegJR9ey.js} +2 -2
- package/dist/chunks/{calendar.component-UUc8d3QQ.js.map → calendar.component-CegJR9ey.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-HYxRoILR.js → conversationCard.component-DByFo4jj.js} +3 -3
- package/dist/chunks/{conversationCard.component-HYxRoILR.js.map → conversationCard.component-DByFo4jj.js.map} +1 -1
- package/dist/chunks/{datePicker.component-Dq2vL7Mk.js → datePicker.component-CLTjEX7i.js} +2 -2
- package/dist/chunks/{datePicker.component-Dq2vL7Mk.js.map → datePicker.component-CLTjEX7i.js.map} +1 -1
- package/dist/chunks/{datePicker.provider-CavuOZl4.js → datePicker.provider-CttuPiiS.js} +2 -2
- package/dist/chunks/{datePicker.provider-CavuOZl4.js.map → datePicker.provider-CttuPiiS.js.map} +1 -1
- package/dist/chunks/dateTimePicker.component-CZpAgPHv.js +331 -0
- package/dist/chunks/dateTimePicker.component-CZpAgPHv.js.map +1 -0
- package/dist/chunks/dateTimePicker.component-D1J7ZeX2.js +2 -0
- package/dist/chunks/{dateTimePicker.component-BlWhC5aT.js.map → dateTimePicker.component-D1J7ZeX2.js.map} +1 -1
- package/dist/chunks/{icons-CoSqruIn.js → icons-CEVtpQAi.js} +3 -3
- package/dist/chunks/{icons-CoSqruIn.js.map → icons-CEVtpQAi.js.map} +1 -1
- package/dist/chunks/maintenanceBanner.types-BsNjAlXa.js +2 -0
- package/dist/chunks/maintenanceBanner.types-BsNjAlXa.js.map +1 -0
- package/dist/chunks/maintenanceBanner.types-DerZF_8G.js +31 -0
- package/dist/chunks/maintenanceBanner.types-DerZF_8G.js.map +1 -0
- package/dist/chunks/{menu.component-CV8eVKYt.js → menu.component-WHzMw5ZI.js} +2 -2
- package/dist/chunks/{menu.component-CV8eVKYt.js.map → menu.component-WHzMw5ZI.js.map} +1 -1
- package/dist/chunks/{numberInput.component-V6NQs14b.js → numberInput.component-CRDRjrTH.js} +2 -2
- package/dist/chunks/{numberInput.component-V6NQs14b.js.map → numberInput.component-CRDRjrTH.js.map} +1 -1
- package/dist/chunks/{radioGroup.types-BVbxeB22.js → radioGroup.types-DzSpA07h.js} +2 -2
- package/dist/chunks/{radioGroup.types-BVbxeB22.js.map → radioGroup.types-DzSpA07h.js.map} +1 -1
- package/dist/chunks/{rating-group-DRCWuE5-.js → rating-group-vxglWdry.js} +2 -2
- package/dist/chunks/{rating-group-DRCWuE5-.js.map → rating-group-vxglWdry.js.map} +1 -1
- package/dist/chunks/{rating.component-DeJY9G94.js → rating.component-BWBPSEEk.js} +2 -2
- package/dist/chunks/{rating.component-DeJY9G94.js.map → rating.component-BWBPSEEk.js.map} +1 -1
- package/dist/chunks/{select.component-CIjEq1os.js → select.component-DckP-f8y.js} +43 -43
- package/dist/chunks/{select.component-CIjEq1os.js.map → select.component-DckP-f8y.js.map} +1 -1
- package/dist/chunks/{tag.component-B7V76XfM.js → tag.component-CMsZIhN-.js} +5 -5
- package/dist/chunks/{tag.component-B7V76XfM.js.map → tag.component-CMsZIhN-.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-R4FY7ytN.js → tagBlock.component-CT7_RyJ-.js} +3 -3
- package/dist/chunks/{tagBlock.component-R4FY7ytN.js.map → tagBlock.component-CT7_RyJ-.js.map} +1 -1
- package/dist/chunks/{theme.provider-CvuSdLO6.js → theme.provider-BYXTygyb.js} +2 -2
- package/dist/chunks/{theme.provider-CvuSdLO6.js.map → theme.provider-BYXTygyb.js.map} +1 -1
- package/dist/chunks/timePicker.component-C3x0n7PC.js +2 -0
- package/dist/chunks/timePicker.component-C3x0n7PC.js.map +1 -0
- package/dist/chunks/timePicker.component-CqH4VTcN.js +239 -0
- package/dist/chunks/timePicker.component-CqH4VTcN.js.map +1 -0
- package/dist/chunks/timeRange.component-BvVNCbXV.js +2 -0
- package/dist/chunks/{timeRange.component-BZHpZeAX.js.map → timeRange.component-BvVNCbXV.js.map} +1 -1
- package/dist/chunks/timeRange.component-CZJmccuW.js +26 -0
- package/dist/chunks/{timeRange.component-D3Db8lvh.js.map → timeRange.component-CZJmccuW.js.map} +1 -1
- package/dist/cjs/components/Alert/index.cjs +1 -1
- package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
- package/dist/cjs/components/MaintenanceBanner/index.cjs +2 -0
- package/dist/cjs/components/MaintenanceBanner/index.cjs.map +1 -0
- package/dist/cjs/components/TimePicker/index.cjs +1 -1
- package/dist/cjs/components/TimeRange/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/theme/tokens/colors/index.cjs +1 -1
- package/dist/cjs/theme/tokens/colors/index.cjs.map +1 -1
- package/dist/esm/chakra/index.js +2 -2
- package/dist/esm/components/Alert/index.js +4 -3
- package/dist/esm/components/Alert/index.js.map +1 -1
- package/dist/esm/components/AvatarGroup/index.js +1 -1
- package/dist/esm/components/ButtonGroup/index.js +1 -1
- package/dist/esm/components/Calendar/index.js +1 -1
- package/dist/esm/components/ConversationCard/index.js +1 -1
- package/dist/esm/components/DatePicker/index.js +2 -2
- package/dist/esm/components/DateTimePicker/index.js +1 -1
- package/dist/esm/components/MaintenanceBanner/index.js +6 -0
- package/dist/esm/components/MaintenanceBanner/index.js.map +1 -0
- package/dist/esm/components/Menu/index.js +1 -1
- package/dist/esm/components/NumberInput/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/Rating/index.js +1 -1
- package/dist/esm/components/Select/index.js +1 -1
- package/dist/esm/components/Tag/index.js +1 -1
- package/dist/esm/components/TagBlock/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/index.js +134 -130
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/index.js +157 -153
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/index.js +1 -1
- package/dist/esm/theme/tokens/colors/index.js +10 -10
- package/dist/esm/theme/tokens/colors/index.js.map +1 -1
- package/dist/types/components/DateTimePicker/components/DateTimePickerCustomView/dateTimePickerCustomView.component.d.ts +2 -1
- package/dist/types/components/DateTimePicker/components/DateTimePickerRangeSelector/dateTimePickerRangeSelector.component.d.ts +2 -1
- package/dist/types/components/DateTimePicker/dateTimePicker.component.d.ts +6 -1
- package/dist/types/components/MaintenanceBanner/index.d.ts +2 -0
- package/dist/types/components/MaintenanceBanner/maintenanceBanner.component.d.ts +22 -0
- package/dist/types/components/MaintenanceBanner/maintenanceBanner.types.d.ts +4 -0
- package/dist/types/components/TimePicker/timePicker.component.d.ts +9 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/shared/utils/convertToTimezoneOverride.d.ts +5 -0
- package/package.json +6 -3
- package/dist/chunks/alert.types-BlvzpzTn.js.map +0 -1
- package/dist/chunks/alert.types-C6EN46Ra.js.map +0 -1
- package/dist/chunks/dateTimePicker.component-BlWhC5aT.js +0 -2
- package/dist/chunks/dateTimePicker.component-DnYStcAJ.js +0 -317
- package/dist/chunks/dateTimePicker.component-DnYStcAJ.js.map +0 -1
- package/dist/chunks/timePicker.component-BCMX6aqb.js +0 -220
- package/dist/chunks/timePicker.component-BCMX6aqb.js.map +0 -1
- package/dist/chunks/timePicker.component-D5hw80VV.js +0 -2
- package/dist/chunks/timePicker.component-D5hw80VV.js.map +0 -1
- package/dist/chunks/timeRange.component-BZHpZeAX.js +0 -19
- package/dist/chunks/timeRange.component-D3Db8lvh.js +0 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,167 +1,171 @@
|
|
|
1
|
-
import { A as a
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { C as
|
|
10
|
-
import {
|
|
1
|
+
import { A as a } from "../chunks/alert.component-OcRbeRJa.js";
|
|
2
|
+
import { a as t } from "../chunks/alert.types-CPfg5SeM.js";
|
|
3
|
+
import { A as p } from "../chunks/avatar.component-BL6D6Lw_.js";
|
|
4
|
+
import { a as m, b as n } from "../chunks/avatar.types-C6dZZjdi.js";
|
|
5
|
+
import { A as x } from "../chunks/avatarGroup.component-BPhQpVYM.js";
|
|
6
|
+
import { B as l } from "../chunks/button.component-BO6oee_V.js";
|
|
7
|
+
import { b as u, d as T, c as S, e as b, a as v } from "../chunks/button.types-BjfcUcMn.js";
|
|
8
|
+
import { B as g } from "../chunks/buttonGroup.component-CO5lC36l.js";
|
|
9
|
+
import { C as P } from "../chunks/calendar.component-CegJR9ey.js";
|
|
10
|
+
import { C as y } from "../chunks/card.component-B1AznjWF.js";
|
|
11
|
+
import { c as k } from "../chunks/card.types-Cixp7ouC.js";
|
|
11
12
|
import { C as z } from "../chunks/characterCounter.component-DI_FQNUR.js";
|
|
12
13
|
import { W as V } from "../chunks/checkbox.component-DUJCiZr2.js";
|
|
13
|
-
import { W as
|
|
14
|
-
import { C as
|
|
15
|
-
import { D as
|
|
16
|
-
import { D as
|
|
17
|
-
import { D as
|
|
14
|
+
import { W as w } from "../chunks/checkboxGroup.component-DW9qUlSm.js";
|
|
15
|
+
import { C as L } from "../chunks/conversationCard.component-DByFo4jj.js";
|
|
16
|
+
import { D as G } from "../chunks/datePicker.component-CLTjEX7i.js";
|
|
17
|
+
import { D as N } from "../chunks/datePicker.provider-CttuPiiS.js";
|
|
18
|
+
import { D as E, a as F, c as H } from "../chunks/dateTimePicker.component-CZpAgPHv.js";
|
|
18
19
|
import { D as q } from "../chunks/divider.component-CFOh4Nw3.js";
|
|
19
|
-
import { d as
|
|
20
|
-
import { W as
|
|
21
|
-
import { I as
|
|
22
|
-
import { i as
|
|
23
|
-
import { L as
|
|
24
|
-
import { L as
|
|
25
|
-
import { M as
|
|
26
|
-
import { M as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { W as
|
|
37
|
-
import { W as
|
|
38
|
-
import {
|
|
39
|
-
import { S as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { S as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import { T as mr } from "../chunks/
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import { W as
|
|
50
|
-
import { W as
|
|
51
|
-
import {
|
|
52
|
-
import { T as kr } from "../chunks/
|
|
53
|
-
import { T as
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import { w as
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
20
|
+
import { d as Q, a as U, b as X } from "../chunks/divider.types-6MEkMNbx.js";
|
|
21
|
+
import { W as Z } from "../chunks/heading.component-CpSAN3cv.js";
|
|
22
|
+
import { I as $ } from "../chunks/icon.component-PV_nHBId.js";
|
|
23
|
+
import { i as ro } from "../chunks/icon.types-DLbVfMjG.js";
|
|
24
|
+
import { L as eo } from "../chunks/link.component--URNKuK2.js";
|
|
25
|
+
import { L as so, l as po } from "../chunks/logo.types-C5GwpHjM.js";
|
|
26
|
+
import { M as mo, m as no } from "../chunks/maintenanceBanner.types-DerZF_8G.js";
|
|
27
|
+
import { M as xo } from "../chunks/menu.component-WHzMw5ZI.js";
|
|
28
|
+
import { M as lo, c as uo, a as To, b as So, m as bo } from "../chunks/modal.types-Bq9gdlSr.js";
|
|
29
|
+
import { N as Co } from "../chunks/notificationCounter.component-6Q3q8jWj.js";
|
|
30
|
+
import { n as Do, a as Po } from "../chunks/notificationCounter.types-Dm4PSN2Y.js";
|
|
31
|
+
import { P as yo } from "../chunks/picture.component-DzdHIFN_.js";
|
|
32
|
+
import { W as ko, p as Wo } from "../chunks/pinInput.types-bIGh7aUS.js";
|
|
33
|
+
import { P as Bo } from "../chunks/popover.component-DIYT1Lc0.js";
|
|
34
|
+
import { p as Ao, b as wo, a as Io } from "../chunks/popover.types-CQJj3uOX.js";
|
|
35
|
+
import { W as Ro, a as Go, r as Ko } from "../chunks/radioGroup.types-DzSpA07h.js";
|
|
36
|
+
import { R as Oo } from "../chunks/radiomark.component-D_7wT5VA.js";
|
|
37
|
+
import { W as Fo } from "../chunks/rating.component-BWBPSEEk.js";
|
|
38
|
+
import { W as jo } from "../chunks/ratingDots.component-BhWM7kTg.js";
|
|
39
|
+
import { W as Jo } from "../chunks/select.component-DckP-f8y.js";
|
|
40
|
+
import { S as Uo } from "../chunks/sortableList.component-CbxbBLVQ.js";
|
|
41
|
+
import { S as Yo } from "../chunks/spinner.component-CNHQ8UDz.js";
|
|
42
|
+
import { s as _o } from "../chunks/spinner.types-g7cTFJkb.js";
|
|
43
|
+
import { S as or, s as rr } from "../chunks/styledAvatar.types-BaOkOA8K.js";
|
|
44
|
+
import { S as er, s as tr } from "../chunks/swatch.types-CkrkMi11.js";
|
|
45
|
+
import { W as pr } from "../chunks/switch.component-DjN67nap.js";
|
|
46
|
+
import { T as mr, a as nr, t as fr } from "../chunks/tab.types-BiDpSKGC.js";
|
|
47
|
+
import { T as cr } from "../chunks/tag.component-CMsZIhN-.js";
|
|
48
|
+
import { c as dr, t as ur } from "../chunks/tag.types-B-pzEt1I.js";
|
|
49
|
+
import { T as Sr, a as br } from "../chunks/tagBlock.component-CT7_RyJ-.js";
|
|
50
|
+
import { W as Cr } from "../chunks/text.component-DhuUgP3j.js";
|
|
51
|
+
import { W as Dr } from "../chunks/textInput.component-BeiTxTkS.js";
|
|
52
|
+
import { W as hr } from "../chunks/textarea.component-C6Wt1Pk8.js";
|
|
53
|
+
import { M as Mr, T as kr } from "../chunks/timePicker.component-CqH4VTcN.js";
|
|
54
|
+
import { T as zr } from "../chunks/timeRange.component-CZJmccuW.js";
|
|
55
|
+
import { T as Vr } from "../chunks/timestamp.component-DkLjxUsy.js";
|
|
56
|
+
import { useToast as wr } from "./components/Toast/index.js";
|
|
57
|
+
import { T as Lr } from "../chunks/tooltip.component-CHohp2qn.js";
|
|
58
|
+
import { W as Gr } from "../chunks/numberInput.component-CRDRjrTH.js";
|
|
59
|
+
import { w as Nr } from "../chunks/withDarkMode-C3yba5oU.js";
|
|
60
|
+
import { w as Er } from "../chunks/withLightMode-DUdXB3Uy.js";
|
|
61
|
+
import { useBreakpoint as Hr } from "./hooks/useBreakpoint/index.js";
|
|
62
|
+
import { useColorMode as qr } from "./hooks/useColorMode/index.js";
|
|
63
|
+
import { useColorModeValue as Qr } from "./hooks/useColorModeValue/index.js";
|
|
64
|
+
import { useDeviceType as Xr } from "./hooks/useDeviceType/index.js";
|
|
65
|
+
import { alignments as Zr, flexDirections as _r, placements as $r, statuses as oa, typographyVariants as ra } from "./shared/types/index.js";
|
|
66
|
+
import { c as ea } from "../chunks/theme-BOK659O0.js";
|
|
67
|
+
import { K as sa, k as pa, s as ia } from "../chunks/theme.provider-BYXTygyb.js";
|
|
66
68
|
export {
|
|
67
69
|
a as Alert,
|
|
68
|
-
|
|
70
|
+
p as Avatar,
|
|
69
71
|
x as AvatarGroup,
|
|
70
|
-
|
|
72
|
+
l as Button,
|
|
71
73
|
g as ButtonGroup,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
P as Calendar,
|
|
75
|
+
y as Card,
|
|
74
76
|
z as CharacterCounter,
|
|
75
77
|
V as Checkbox,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
w as CheckboxGroup,
|
|
79
|
+
L as ConversationCard,
|
|
80
|
+
N as DateFormats,
|
|
81
|
+
G as DatePicker,
|
|
82
|
+
E as DateTimePicker,
|
|
81
83
|
F as DateTimePickerDefaultOptionValue,
|
|
82
84
|
q as Divider,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Bo as
|
|
97
|
-
Ro as
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Yo as
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
mr as
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
kr as
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
m as
|
|
121
|
-
|
|
122
|
-
u as
|
|
123
|
-
T as
|
|
124
|
-
S as
|
|
125
|
-
b as
|
|
85
|
+
Z as Heading,
|
|
86
|
+
$ as Icon,
|
|
87
|
+
sa as KibbleThemeProvider,
|
|
88
|
+
eo as Link,
|
|
89
|
+
so as Logo,
|
|
90
|
+
mo as MaintenanceBanner,
|
|
91
|
+
xo as Menu,
|
|
92
|
+
Mr as Meridiem,
|
|
93
|
+
lo as Modal,
|
|
94
|
+
Co as NotificationCounter,
|
|
95
|
+
Gr as NumberInput,
|
|
96
|
+
yo as Picture,
|
|
97
|
+
ko as PinInput,
|
|
98
|
+
Bo as Popover,
|
|
99
|
+
Ro as RadioGroup,
|
|
100
|
+
Oo as Radiomark,
|
|
101
|
+
Fo as Rating,
|
|
102
|
+
jo as RatingDots,
|
|
103
|
+
Jo as Select,
|
|
104
|
+
Uo as SortableList,
|
|
105
|
+
Yo as Spinner,
|
|
106
|
+
or as StyledAvatar,
|
|
107
|
+
er as Swatch,
|
|
108
|
+
pr as Switch,
|
|
109
|
+
mr as Tabs,
|
|
110
|
+
cr as Tag,
|
|
111
|
+
Sr as TagBlock,
|
|
112
|
+
br as TagDisabledState,
|
|
113
|
+
Cr as Text,
|
|
114
|
+
Dr as TextInput,
|
|
115
|
+
hr as Textarea,
|
|
116
|
+
kr as TimePicker,
|
|
117
|
+
zr as TimeRange,
|
|
118
|
+
Vr as Timestamp,
|
|
119
|
+
Lr as Tooltip,
|
|
120
|
+
t as alertButtonPositions,
|
|
121
|
+
Zr as alignments,
|
|
122
|
+
m as avatarSizes,
|
|
123
|
+
n as avatarVariants,
|
|
124
|
+
u as buttonConfigVariants,
|
|
125
|
+
T as buttonIconPositions,
|
|
126
|
+
S as buttonSizes,
|
|
127
|
+
b as buttonSpinnerPlacements,
|
|
128
|
+
v as buttonVariants,
|
|
126
129
|
H as calendarViews,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
bo as
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
130
|
+
k as cardSizes,
|
|
131
|
+
dr as closeButtonDisplays,
|
|
132
|
+
ea as colorModeThemeKey,
|
|
133
|
+
Q as dividerOrientations,
|
|
134
|
+
U as dividerSizes,
|
|
135
|
+
X as dividerVariants,
|
|
136
|
+
_r as flexDirections,
|
|
137
|
+
ro as iconSizes,
|
|
138
|
+
pa as kibbleThemeConfig,
|
|
139
|
+
po as logoTypes,
|
|
140
|
+
no as maintenanceBannerEnvKeys,
|
|
141
|
+
uo as modalMotionPresets,
|
|
142
|
+
To as modalPlacements,
|
|
143
|
+
So as modalScrollBehaviors,
|
|
144
|
+
bo as modalSizes,
|
|
145
|
+
Do as notificationCounterSizes,
|
|
146
|
+
Po as notificationCounterVariants,
|
|
147
|
+
Wo as pinInputTypes,
|
|
148
|
+
$r as placements,
|
|
149
|
+
Ao as popoverSizes,
|
|
150
|
+
wo as popoverTriggerTypes,
|
|
151
|
+
Io as popoverVariants,
|
|
152
|
+
Go as radioAlignments,
|
|
153
|
+
Ko as radioTypes,
|
|
154
|
+
_o as spinnerSizes,
|
|
155
|
+
oa as statuses,
|
|
156
|
+
rr as styledAvatarTypes,
|
|
157
|
+
tr as swatchSizes,
|
|
158
|
+
ia as system,
|
|
159
|
+
nr as tabIconPositions,
|
|
160
|
+
fr as tabSizes,
|
|
161
|
+
ur as tagSizes,
|
|
162
|
+
ra as typographyVariants,
|
|
163
|
+
Hr as useBreakpoint,
|
|
164
|
+
qr as useColorMode,
|
|
165
|
+
Qr as useColorModeValue,
|
|
166
|
+
Xr as useDeviceType,
|
|
167
|
+
wr as useToast,
|
|
168
|
+
Nr as withDarkMode,
|
|
169
|
+
Er as withLightMode
|
|
166
170
|
};
|
|
167
171
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/theme/index.js
CHANGED
|
@@ -60,16 +60,16 @@ const F = {
|
|
|
60
60
|
900: "#48091F"
|
|
61
61
|
},
|
|
62
62
|
warning: {
|
|
63
|
-
50: "#
|
|
64
|
-
100: "#
|
|
65
|
-
200: "#
|
|
66
|
-
300: "#
|
|
67
|
-
400: "#
|
|
68
|
-
500: "#
|
|
69
|
-
600: "#
|
|
70
|
-
700: "#
|
|
71
|
-
800: "#
|
|
72
|
-
900: "#
|
|
63
|
+
50: "#FFFCF4",
|
|
64
|
+
100: "#FFF6D7",
|
|
65
|
+
200: "#FFE695",
|
|
66
|
+
300: "#FFD073",
|
|
67
|
+
400: "#F5BB4B",
|
|
68
|
+
500: "#DF9F23",
|
|
69
|
+
600: "#BF8411",
|
|
70
|
+
700: "#98600C",
|
|
71
|
+
800: "#734500",
|
|
72
|
+
900: "#532D00"
|
|
73
73
|
},
|
|
74
74
|
success: {
|
|
75
75
|
50: "#F6FCEB",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/kibble-primitives/src/core/colors/colors.records.ts"],"sourcesContent":["import { CoreColor, ColorValue } from './colors.types';\n\nexport const coreColors: Record<CoreColor, Record<ColorValue, string>> = {\n primary: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n secondary: {\n 50: '#F6FAFF',\n 100: '#E9F2FF',\n 200: '#CBE2FF',\n 300: '#ADCFFF',\n 400: '#7FAFF2',\n 500: '#497CC3',\n 600: '#305992',\n 700: '#2B5082',\n 800: '#122136',\n 900: '#080E17',\n },\n tertiary: {\n 50: '#FAF8F2',\n 100: '#F6F3EA',\n 200: '#EAE4DD',\n 300: '#DCD1C6',\n 400: '#BCAC9E',\n 500: '#9D7E6B',\n 600: '#7D5B48',\n 700: '#5E3B28',\n 800: '#381F12',\n 900: '#170D07',\n },\n neutral: {\n 50: '#FFFFFF',\n 100: '#FCFBFA',\n 200: '#EDEBEB',\n 300: '#DCDBDA',\n 400: '#BEBCB9',\n 500: '#96928F',\n 600: '#706E6C',\n 700: '#504D4C',\n 800: '#373331',\n 900: '#000000',\n },\n danger: {\n 50: '#FFF4F7',\n 100: '#FFDFE6',\n 200: '#FFC9D4',\n 300: '#F9A7A6',\n 400: '#F78C7F',\n 500: '#EE634A',\n 600: '#CA4038',\n 700: '#A6333F',\n 800: '#82314D',\n 900: '#48091F',\n },\n warning: {\n 50: '#
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/kibble-primitives/src/core/colors/colors.records.ts"],"sourcesContent":["import { CoreColor, ColorValue } from './colors.types';\n\nexport const coreColors: Record<CoreColor, Record<ColorValue, string>> = {\n primary: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n secondary: {\n 50: '#F6FAFF',\n 100: '#E9F2FF',\n 200: '#CBE2FF',\n 300: '#ADCFFF',\n 400: '#7FAFF2',\n 500: '#497CC3',\n 600: '#305992',\n 700: '#2B5082',\n 800: '#122136',\n 900: '#080E17',\n },\n tertiary: {\n 50: '#FAF8F2',\n 100: '#F6F3EA',\n 200: '#EAE4DD',\n 300: '#DCD1C6',\n 400: '#BCAC9E',\n 500: '#9D7E6B',\n 600: '#7D5B48',\n 700: '#5E3B28',\n 800: '#381F12',\n 900: '#170D07',\n },\n neutral: {\n 50: '#FFFFFF',\n 100: '#FCFBFA',\n 200: '#EDEBEB',\n 300: '#DCDBDA',\n 400: '#BEBCB9',\n 500: '#96928F',\n 600: '#706E6C',\n 700: '#504D4C',\n 800: '#373331',\n 900: '#000000',\n },\n danger: {\n 50: '#FFF4F7',\n 100: '#FFDFE6',\n 200: '#FFC9D4',\n 300: '#F9A7A6',\n 400: '#F78C7F',\n 500: '#EE634A',\n 600: '#CA4038',\n 700: '#A6333F',\n 800: '#82314D',\n 900: '#48091F',\n },\n warning: {\n 50: '#FFFCF4',\n 100: '#FFF6D7',\n 200: '#FFE695',\n 300: '#FFD073',\n 400: '#F5BB4B',\n 500: '#DF9F23',\n 600: '#BF8411',\n 700: '#98600C',\n 800: '#734500',\n 900: '#532D00',\n },\n success: {\n 50: '#F6FCEB',\n 100: '#E5F9C6',\n 200: '#CDF197',\n 300: '#BDE87D',\n 400: '#9FCF5D',\n 500: '#6AAE0D',\n 600: '#4F830F',\n 700: '#3E660C',\n 800: '#284309',\n 900: '#1A2D06',\n },\n primaryAlpha: {\n 50: '#4F830F0A',\n 100: '#4F830F0F',\n 200: '#4F830F14',\n 300: '#4F830F29',\n 400: '#4F830F3D',\n 500: '#4F830F5C',\n 600: '#4F830F7A',\n 700: '#4F830F9E',\n 800: '#4F830FCC',\n 900: '#4F830FEB',\n },\n primaryAlphaInverse: {\n 50: '#CDF1970A',\n 100: '#CDF1970F',\n 200: '#CDF19714',\n 300: '#CDF19729',\n 400: '#CDF1973D',\n 500: '#CDF1975C',\n 600: '#CDF1977A',\n 700: '#CDF1979E',\n 800: '#CDF197CC',\n 900: '#CDF197EB',\n },\n secondaryAlpha: {\n 50: '#497CC30A',\n 100: '#497CC30F',\n 200: '#497CC314',\n 300: '#497CC329',\n 400: '#497CC33D',\n 500: '#497CC35C',\n 600: '#497CC37A',\n 700: '#497CC39E',\n 800: '#497CC3CC',\n 900: '#497CC3EB',\n },\n secondaryAlphaInverse: {\n 50: '#CBE2FF0A',\n 100: '#CBE2FF0F',\n 200: '#CBE2FF14',\n 300: '#CBE2FF29',\n 400: '#CBE2FF3D',\n 500: '#CBE2FF5C',\n 600: '#CBE2FF7A',\n 700: '#CBE2FF9E',\n 800: '#CBE2FFCC',\n 900: '#CBE2FFEB',\n },\n blackAlpha: {\n 50: '#0000000a',\n 100: '#0000000f',\n 200: '#00000014',\n 300: '#00000029',\n 400: '#0000003d',\n 500: '#0000005c',\n 600: '#0000007a',\n 700: '#0000009e',\n 800: '#000000cc',\n 900: '#000000eb',\n },\n whiteAlpha: {\n 50: '#FFFFFF0A',\n 100: '#FFFFFF0F',\n 200: '#FFFFFF14',\n 300: '#FFFFFF29',\n 400: '#FFFFFF3D',\n 500: '#FFFFFF5C',\n 600: '#FFFFFF7A',\n 700: '#FFFFFF9E',\n 800: '#FFFFFFCC',\n 900: '#FFFFFFEB',\n },\n dangerAlpha: {\n 50: '#CA40380A',\n 100: '#CA40380F',\n 200: '#CA403814',\n 300: '#CA403829',\n 400: '#CA40383D',\n 500: '#CA40385C',\n 600: '#CA40387A',\n 700: '#CA40389E',\n 800: '#CA4038CC',\n 900: '#CA4038EB',\n },\n dangerAlphaInverse: {\n 50: '#F9A7A60A',\n 100: '#F9A7A60F',\n 200: '#F9A7A614',\n 300: '#F9A7A629',\n 400: '#F9A7A63D',\n 500: '#F9A7A65C',\n 600: '#F9A7A67A',\n 700: '#F9A7A69E',\n 800: '#F9A7A6CC',\n 900: '#F9A7A6EB',\n },\n};\n"],"names":["coreColors"],"mappings":"AAEO,MAAMA,IAA4D;AAAA,EACvE,SAAS;AAAA,IACP,IAAI;AAAA,IACJ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,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,aAAa;AAAA,IACX,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAAA,EACA,oBAAoB;AAAA,IAClB,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAET;"}
|
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
interface DateTimePickerCustomViewProps {
|
|
3
3
|
/** Determines if the calendar view is single. */
|
|
4
4
|
isSingleView: boolean;
|
|
5
|
+
timezoneOverride?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare const DateTimePickerCustomView: ({ isSingleView }: DateTimePickerCustomViewProps) => React.JSX.Element;
|
|
7
|
+
export declare const DateTimePickerCustomView: ({ isSingleView, timezoneOverride, }: DateTimePickerCustomViewProps) => React.JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -5,6 +5,7 @@ interface DateTimePickerRangeSelectorProps {
|
|
|
5
5
|
label: string;
|
|
6
6
|
/** Type of range selector. */
|
|
7
7
|
rangeType: FocusedInput;
|
|
8
|
+
timezoneOverride?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const DateTimePickerRangeSelector: ({ label, rangeType, }: DateTimePickerRangeSelectorProps) => React.JSX.Element;
|
|
10
|
+
export declare const DateTimePickerRangeSelector: ({ label, rangeType, timezoneOverride, }: DateTimePickerRangeSelectorProps) => React.JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -25,9 +25,14 @@ export interface DateTimePickerProps extends DateProps {
|
|
|
25
25
|
* @default true
|
|
26
26
|
*/
|
|
27
27
|
showQuickOptions?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether a specific timezone should override the default timezone we detect from the browser,
|
|
30
|
+
* typically used for impersonations
|
|
31
|
+
*/
|
|
32
|
+
timezoneOverride?: string;
|
|
28
33
|
/** Data test id for the date time picker.
|
|
29
34
|
* @default kibble-datetime-picker
|
|
30
35
|
*/
|
|
31
36
|
'data-testid'?: string;
|
|
32
37
|
}
|
|
33
|
-
export declare const DateTimePicker: ({ trigger, calendarView, portalled, showQuickOptions, ["data-testid"]: dataTestId, ...rest }: DateTimePickerProps) => React.JSX.Element;
|
|
38
|
+
export declare const DateTimePicker: ({ trigger, calendarView, portalled, showQuickOptions, ["data-testid"]: dataTestId, timezoneOverride, ...rest }: DateTimePickerProps) => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AlertProps } from '../Alert/alert.component';
|
|
3
|
+
export interface MaintenanceBannerProps extends Omit<AlertProps, 'title' | 'description' | 'status' | 'hideCloseButton' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* The maintenance message to display.
|
|
6
|
+
* When falsy (undefined, null, or empty string), the banner does not render.
|
|
7
|
+
*/
|
|
8
|
+
message?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Optional secondary line of text displayed below the title.
|
|
11
|
+
*/
|
|
12
|
+
description?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Data test id for the banner.
|
|
15
|
+
* @default kibble-maintenance-banner
|
|
16
|
+
*/
|
|
17
|
+
'data-testid'?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const MaintenanceBanner: {
|
|
20
|
+
({ message, description, ["data-testid"]: dataTestId, ...rest }: MaintenanceBannerProps): React.JSX.Element | null;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
@@ -20,10 +20,18 @@ export interface TimePickerProps {
|
|
|
20
20
|
* @default bottom
|
|
21
21
|
*/
|
|
22
22
|
placement?: Placement;
|
|
23
|
+
/**
|
|
24
|
+
* If set, displays and processes the time in a specific timezone (typically for impersonation)
|
|
25
|
+
*/
|
|
26
|
+
timezoneOverride?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Show the timezone abbreviation (if available) beside the component
|
|
29
|
+
*/
|
|
30
|
+
showTimezoneAbr?: boolean;
|
|
23
31
|
/**
|
|
24
32
|
* Data test id for the time picker.
|
|
25
33
|
* @default kibble-timepicker
|
|
26
34
|
*/
|
|
27
35
|
'data-testid'?: string;
|
|
28
36
|
}
|
|
29
|
-
export declare const TimePicker: ({ initialTime, inputProps, minuteInterval, onTimeChange, onClose, placement, ["data-testid"]: dataTestId, }: TimePickerProps) => React.JSX.Element;
|
|
37
|
+
export declare const TimePicker: ({ initialTime, inputProps, minuteInterval, onTimeChange, onClose, placement, timezoneOverride, showTimezoneAbr, ["data-testid"]: dataTestId, }: TimePickerProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"packages/*"
|
|
5
5
|
],
|
|
6
6
|
"description": "Kibble Design System by Otto",
|
|
7
|
-
"version": "5.0.
|
|
7
|
+
"version": "5.0.23-alpha.1",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/cjs/index.cjs",
|
|
10
10
|
"module": "./dist/esm/index.js",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"publishBeta": "npm run build && npm publish --tag beta",
|
|
37
37
|
"start": "WATCHPACK_POLLING=1 npm run generate:icons & WATCHPACK_POLLING=1 npm run generate:logos & WATCHPACK_POLLING=1 npm run theme:watch & WATCHPACK_POLLING=1 storybook dev -p 6006",
|
|
38
38
|
"test-storybook": "npm run build:preparation && vitest --project=storybook",
|
|
39
|
-
"theme:watch": "chakra typegen ./src/theme/theme.config.ts --watch"
|
|
39
|
+
"theme:watch": "chakra typegen ./src/theme/theme.config.ts --watch",
|
|
40
|
+
"makeLocalPackage": "npm run build && npm pack"
|
|
40
41
|
},
|
|
41
42
|
"engines": {
|
|
42
43
|
"node": ">=20.0.0",
|
|
@@ -175,16 +176,18 @@
|
|
|
175
176
|
"peerDependencies": {
|
|
176
177
|
"@emotion/react": "^11.14.0",
|
|
177
178
|
"date-fns": "^4.1.0",
|
|
179
|
+
"date-fns-tz": "^3.2.0",
|
|
178
180
|
"lodash-es": "^4.17.21",
|
|
181
|
+
"@date-fns/tz": "^1.4.1",
|
|
179
182
|
"react": "^19.0.0"
|
|
180
183
|
},
|
|
181
184
|
"dependencies": {
|
|
182
|
-
"@televet/kibble-primitives": "*",
|
|
183
185
|
"@chakra-ui/react": "^3.24.0",
|
|
184
186
|
"@datepicker-react/hooks": "^2.8.4",
|
|
185
187
|
"@dnd-kit/core": "^6.3.1",
|
|
186
188
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
187
189
|
"@dnd-kit/sortable": "^10.0.0",
|
|
190
|
+
"@televet/kibble-primitives": "*",
|
|
188
191
|
"next-themes": "^0.4.6"
|
|
189
192
|
}
|
|
190
193
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.types-BlvzpzTn.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/alert/alert.js","../../src/components/Alert/components/AlertButton/alertButton.component.tsx","../../src/components/Alert/alert.component.tsx","../../src/components/Alert/alert.types.ts"],"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 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 { Flex } from '@chakra-ui/react/flex';\n\nexport interface AlertButtonProps extends Omit<ButtonProps, 'children'> {\n /** Position of the button.\n * @default topRight\n */\n buttonPosition?: AlertButtonPosition;\n /** Text to display in the button. */\n buttonText: string;\n /** Data test id for the button.\n * @default kibble-alert-button\n */\n 'data-testid'?: string;\n}\n\ninterface InternalAlertButtonProps extends AlertButtonProps {\n /** Status of the alert.\n * @internal\n */\n status: Status;\n}\n\nexport const AlertButton = ({\n buttonPosition = 'topRight',\n buttonText,\n status,\n ['data-testid']: dataTestId = 'kibble-alert-button',\n ...rest\n}: InternalAlertButtonProps): React.JSX.Element => {\n return (\n <Flex\n className=\"Alert__Button\"\n data-testid={dataTestId}\n {...(buttonPosition !== 'topRight' && { pt: 2, pb: 1 })}\n {...(buttonPosition === 'bottomRight' && { justifyContent: 'flex-end' })}\n >\n <Button size=\"xs\" variant={status === 'default' ? 'primary' : 'secondary'} w=\"max-content\" {...rest}>\n {buttonText}\n </Button>\n </Flex>\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 { Flex } from '@chakra-ui/react/flex';\nimport { AlertButton, AlertButtonProps } from './components/AlertButton/alertButton.component';\nimport { StatusIconMap, StatusTypographyMap } from 'shared/records/status';\nimport { IconName } from 'components/Icon/icon.types';\n\nexport interface AlertProps extends Omit<CAlert.RootProps, 'title' | 'status' | 'children' | 'variant' | 'size'> {\n /** Props to customize the alert button. */\n buttonProps?: AlertButtonProps;\n /** The body of the alert */\n description?: React.ReactNode;\n /** Props to customize the description when passed as a string. */\n descriptionProps?: TextProps;\n /**\n * If true, the close button will not be displayed.\n * @default false\n */\n hideCloseButton?: boolean;\n /**\n * If true, the icon will not be displayed.\n * @default false\n */\n hideIcon?: boolean;\n /** Props to customize the icon. */\n iconProps?: IconProps;\n /** Callback function to be called when the close button is clicked. */\n onClose?: React.MouseEventHandler<HTMLButtonElement>;\n /**\n * If true, the alert will use a contrasting variant according to the selected status.\n * @default false\n */\n onContrast?: boolean;\n /**\n * The status of the alert. Determines the color of the alert.\n * @default success\n */\n status?: Status;\n /** The title of the alert. */\n title?: React.ReactNode;\n /** Props to customize the title when passed as a string. */\n titleProps?: HeadingProps;\n /** The name of the icon to be used as the close button. */\n closeButtonIcon?: IconName;\n /** Data test id for the alert.\n * @default kibble-alert\n */\n 'data-testid'?: string;\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 closeButtonIcon = 'close',\n ['data-testid']: dataTestId = 'kibble-alert',\n ...rest\n}: AlertProps): React.JSX.Element => {\n if (buttonProps && !buttonProps.buttonPosition) {\n buttonProps.buttonPosition = 'topRight';\n }\n const isTopRightButton = buttonProps && buttonProps.buttonPosition === 'topRight';\n const WithButtonWrapper = isTopRightButton ? Flex : React.Fragment;\n\n return (\n <CAlert.Root\n className=\"Alert\"\n data-testid={dataTestId}\n {...rest}\n variant={status}\n hideIcon={hideIcon}\n onContrast={onContrast}\n >\n {!hideIcon && (\n <CAlert.Indicator className=\"Alert__Icon\" data-testid={`${dataTestId}-icon`}>\n <Icon\n variant={onContrast ? 'onContrast' : StatusTypographyMap[status]}\n name={iconProps?.name || StatusIconMap[status]}\n size=\"lg\"\n {...iconProps}\n />\n </CAlert.Indicator>\n )}\n <CAlert.Content className=\"Alert__Content\" data-testid={`${dataTestId}-content`}>\n {title && (\n <WithButtonWrapper\n {...(isTopRightButton && {\n justifyContent: 'space-between',\n gap: 2,\n })}\n >\n <CAlert.Title className=\"Alert__Title\" data-testid={`${dataTestId}-title`}>\n <Heading size=\"sm\" variant={onContrast ? 'onContrast' : 'default'} {...titleProps}>\n {title}\n </Heading>\n </CAlert.Title>\n {buttonProps && buttonProps.buttonPosition === 'topRight' && (\n <AlertButton status={status} onContrast={onContrast} {...buttonProps} />\n )}\n </WithButtonWrapper>\n )}\n {description && (\n <WithButtonWrapper {...(isTopRightButton && { justifyContent: 'space-between' })}>\n <CAlert.Description className=\"Alert__Description\" data-testid={`${dataTestId}-description`}>\n {typeof description === 'string' ? (\n <Text size=\"md\" variant={onContrast ? 'onContrast' : 'default'} {...descriptionProps}>\n {description}\n </Text>\n ) : (\n description\n )}\n </CAlert.Description>\n {buttonProps && buttonProps.buttonPosition === 'topRight' && !title && (\n <AlertButton status={status} onContrast={onContrast} {...buttonProps} />\n )}\n </WithButtonWrapper>\n )}\n {buttonProps && buttonProps?.buttonPosition !== 'topRight' && (\n <AlertButton status={status} onContrast={onContrast} {...buttonProps} />\n )}\n </CAlert.Content>\n {!hideCloseButton && (\n <Button\n className=\"Alert__CloseTrigger\"\n data-testid={`${dataTestId}-close-trigger`}\n iconName={closeButtonIcon}\n size=\"xs\"\n variant=\"ghostNeutral\"\n onContrast={onContrast}\n onClick={onClose}\n />\n )}\n </CAlert.Root>\n );\n};\n","export const alertButtonPositions = ['topRight', 'bottomLeft', 'bottomRight'] as const;\nexport type AlertButtonPosition = (typeof alertButtonPositions)[number];\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","AlertButton","buttonPosition","buttonText","status","dataTestId","Flex","Button","Alert","buttonProps","description","descriptionProps","hideCloseButton","hideIcon","iconProps","onClose","onContrast","title","titleProps","closeButtonIcon","isTopRightButton","WithButtonWrapper","React","jsxs","CAlert.Root","CAlert.Indicator","StatusTypographyMap","StatusIconMap","CAlert.Content","CAlert.Title","Heading","CAlert.Description","Text","alertButtonPositions"],"mappings":"+gBASM,CAACA,EAAqBC,CAAqB,EAAIC,gBAAc,CACjE,KAAM,qBACN,SAAU,wBACV,aAAc,WAChB,CAAC,EACK,CACJ,aAAAC,EACA,YAAAC,EACA,UAAWC,CAEb,EAAIC,EAAAA,wBAAwB,CAAE,IAAK,OAAO,CAAE,EACtCC,EAAYJ,EAChB,MACA,OACA,CACE,eAAgB,GAChB,YAAYK,EAASC,EAAO,CAC1B,OAEkBC,EAAAA,kBAAAA,IAAIV,EAAqB,CAAE,MAAO,CAAE,OAAQS,EAAM,QAAU,MAAM,EAAI,SAAUD,CAAS,CAAA,CAEjH,CACA,CACA,EAEMG,EAAaP,EACjB,MACA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