@televet/kibble-ui 4.0.0-beta.45 → 4.0.0-beta.47
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/menu.component-CTze16Re.js.map +1 -1
- package/dist/chunks/menu.component-DfMZGgCy.js.map +1 -1
- package/dist/chunks/modal.types-CdZepugS.js +205 -0
- package/dist/chunks/modal.types-CdZepugS.js.map +1 -0
- package/dist/chunks/modal.types-DJwWi7cT.js +2 -0
- package/dist/chunks/modal.types-DJwWi7cT.js.map +1 -0
- package/dist/chunks/select.component-9-2Fo505.js.map +1 -1
- package/dist/chunks/select.component-C4Kx68wP.js.map +1 -1
- package/dist/chunks/tooltip.component-C7RpuMiK.js.map +1 -1
- package/dist/chunks/tooltip.component-DYBYGsfe.js.map +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/modal.types-DYbLPZKq.js +0 -197
- package/dist/chunks/modal.types-DYbLPZKq.js.map +0 -1
- package/dist/chunks/modal.types-Dt-zDnrS.js +0 -2
- package/dist/chunks/modal.types-Dt-zDnrS.js.map +0 -1
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { forwardRef as k, useRef as M, useState as _ } from "react";
|
|
3
|
-
import { B as l } from "./button.component-BWlRjD5a.js";
|
|
4
|
-
import { F as v } from "./flex-C2d2LH-K.js";
|
|
5
|
-
import { c as w } from "./create-slot-recipe-context-DJkLYvCT.js";
|
|
6
|
-
import { c as N } from "./factory-gZxMesut.js";
|
|
7
|
-
import { D as y, a as B, b as P, c as R, d as T, e as A, f as S, u as $, g as E, h as z, i as F } from "./dialog-trigger-sGBMGLMB.js";
|
|
8
|
-
import { W as O } from "./heading.component-DIST7ncC.js";
|
|
9
|
-
import { M as H } from "./tooltip.component-DYBYGsfe.js";
|
|
10
|
-
import { P as I } from "./use-locale-context-zakBNK5b.js";
|
|
11
|
-
const {
|
|
12
|
-
withRootProvider: x,
|
|
13
|
-
withContext: o
|
|
14
|
-
} = w({ key: "dialog" });
|
|
15
|
-
x(
|
|
16
|
-
E,
|
|
17
|
-
{
|
|
18
|
-
defaultProps: { unmountOnExit: !0, lazyMount: !0 }
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
const V = x(y, {
|
|
22
|
-
defaultProps: { unmountOnExit: !0, lazyMount: !0 }
|
|
23
|
-
}), W = o(
|
|
24
|
-
B,
|
|
25
|
-
"trigger",
|
|
26
|
-
{ forwardAsChild: !0 }
|
|
27
|
-
), q = o(R, "positioner", { forwardAsChild: !0 }), G = o(
|
|
28
|
-
T,
|
|
29
|
-
"content",
|
|
30
|
-
{ forwardAsChild: !0 }
|
|
31
|
-
);
|
|
32
|
-
o(z, "description", { forwardAsChild: !0 });
|
|
33
|
-
const J = o(
|
|
34
|
-
S,
|
|
35
|
-
"title",
|
|
36
|
-
{ forwardAsChild: !0 }
|
|
37
|
-
), K = o(A, "closeTrigger", { forwardAsChild: !0 }), L = k(function(s, i) {
|
|
38
|
-
const e = $();
|
|
39
|
-
return /* @__PURE__ */ t.jsx(N.button, { ...s, ref: i, onClick: () => e.setOpen(!1) });
|
|
40
|
-
}), Q = o(
|
|
41
|
-
P,
|
|
42
|
-
"backdrop",
|
|
43
|
-
{ forwardAsChild: !0 }
|
|
44
|
-
), U = o(
|
|
45
|
-
"div",
|
|
46
|
-
"body"
|
|
47
|
-
), X = o(
|
|
48
|
-
"div",
|
|
49
|
-
"footer"
|
|
50
|
-
), Y = o(
|
|
51
|
-
"div",
|
|
52
|
-
"header"
|
|
53
|
-
), Z = ({
|
|
54
|
-
children: a,
|
|
55
|
-
destructive: s,
|
|
56
|
-
disabled: i,
|
|
57
|
-
hideCancel: e = !1,
|
|
58
|
-
loading: r,
|
|
59
|
-
loadingText: n,
|
|
60
|
-
onCancel: d,
|
|
61
|
-
onSubmit: c,
|
|
62
|
-
submitText: m = "Submit",
|
|
63
|
-
...u
|
|
64
|
-
}) => /* @__PURE__ */ t.jsx(
|
|
65
|
-
X,
|
|
66
|
-
{
|
|
67
|
-
className: "Modal__Footer",
|
|
68
|
-
"data-testid": "kibble-modal-footer",
|
|
69
|
-
...u,
|
|
70
|
-
children: a || /* @__PURE__ */ t.jsxs(v, { alignItems: "center", justifyContent: "space-between", w: "100%", children: [
|
|
71
|
-
!e && /* @__PURE__ */ t.jsx(
|
|
72
|
-
L,
|
|
73
|
-
{
|
|
74
|
-
asChild: !0,
|
|
75
|
-
className: "Modal__CancelButton",
|
|
76
|
-
"data-testid": "kibble-modal-cancel-button",
|
|
77
|
-
children: /* @__PURE__ */ t.jsx(l, { variant: "tertiary", onClick: d, children: "Cancel" })
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
/* @__PURE__ */ t.jsx(
|
|
81
|
-
l,
|
|
82
|
-
{
|
|
83
|
-
className: "Modal__SubmitButton",
|
|
84
|
-
"data-testid": "kibble-modal-submit-button",
|
|
85
|
-
onClick: c,
|
|
86
|
-
loading: r,
|
|
87
|
-
loadingText: n,
|
|
88
|
-
disabled: i,
|
|
89
|
-
variant: s ? "primaryDestructive" : "primary",
|
|
90
|
-
children: m
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] })
|
|
94
|
-
}
|
|
95
|
-
), mt = ({
|
|
96
|
-
children: a,
|
|
97
|
-
footerProps: s,
|
|
98
|
-
fullScreenMobile: i = !0,
|
|
99
|
-
header: e,
|
|
100
|
-
headerProps: r,
|
|
101
|
-
hideCloseButton: n = !1,
|
|
102
|
-
hideFooter: d = !1,
|
|
103
|
-
motionPreset: c = "slide-in-bottom",
|
|
104
|
-
placement: m = "center",
|
|
105
|
-
showExpandButton: u = !1,
|
|
106
|
-
size: g = "md",
|
|
107
|
-
trigger: f,
|
|
108
|
-
...b
|
|
109
|
-
}) => {
|
|
110
|
-
const h = { contentRef: M(null) }, [p, C] = _(!1), D = F({
|
|
111
|
-
base: i ? "full" : g,
|
|
112
|
-
md: g
|
|
113
|
-
});
|
|
114
|
-
return /* @__PURE__ */ t.jsxs(
|
|
115
|
-
V,
|
|
116
|
-
{
|
|
117
|
-
motionPreset: c,
|
|
118
|
-
placement: m,
|
|
119
|
-
size: D,
|
|
120
|
-
...b,
|
|
121
|
-
expanded: p,
|
|
122
|
-
children: [
|
|
123
|
-
f && /* @__PURE__ */ t.jsx(W, { asChild: !0, children: f }),
|
|
124
|
-
/* @__PURE__ */ t.jsxs(I, { children: [
|
|
125
|
-
/* @__PURE__ */ t.jsx(Q, {}),
|
|
126
|
-
/* @__PURE__ */ t.jsx(q, { children: /* @__PURE__ */ t.jsxs(H.Provider, { value: h, children: [
|
|
127
|
-
" ",
|
|
128
|
-
/* @__PURE__ */ t.jsxs(G, { className: "Modal", "data-testid": "kibble-modal", children: [
|
|
129
|
-
!n && /* @__PURE__ */ t.jsx(
|
|
130
|
-
K,
|
|
131
|
-
{
|
|
132
|
-
asChild: !0,
|
|
133
|
-
className: "Modal__CloseButton",
|
|
134
|
-
"data-testid": "kibble-modal-close-button",
|
|
135
|
-
children: /* @__PURE__ */ t.jsx(l, { iconName: "close", variant: "ghostNeutral" })
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
u && /* @__PURE__ */ t.jsx(
|
|
139
|
-
l,
|
|
140
|
-
{
|
|
141
|
-
className: "Modal__ExpandButton",
|
|
142
|
-
"data-testid": "kibble-modal-expand-button",
|
|
143
|
-
variant: "ghostNeutral",
|
|
144
|
-
iconName: p ? "arrowsIn" : "arrowsOut",
|
|
145
|
-
position: "absolute",
|
|
146
|
-
top: 2,
|
|
147
|
-
right: 12,
|
|
148
|
-
onClick: () => C((j) => !j)
|
|
149
|
-
}
|
|
150
|
-
),
|
|
151
|
-
/* @__PURE__ */ t.jsx(
|
|
152
|
-
Y,
|
|
153
|
-
{
|
|
154
|
-
className: "Modal__Header",
|
|
155
|
-
"data-testid": "kibble-modal-header",
|
|
156
|
-
children: e && /* @__PURE__ */ t.jsx(
|
|
157
|
-
J,
|
|
158
|
-
{
|
|
159
|
-
className: "Modal__Title",
|
|
160
|
-
"data-testid": "kibble-modal-title",
|
|
161
|
-
asChild: !0,
|
|
162
|
-
children: typeof e == "string" ? /* @__PURE__ */ t.jsx(O, { size: "xl", ...r, children: e }) : e
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
}
|
|
166
|
-
),
|
|
167
|
-
/* @__PURE__ */ t.jsx(
|
|
168
|
-
U,
|
|
169
|
-
{
|
|
170
|
-
className: "Modal__Body",
|
|
171
|
-
"data-testid": "kibble-modal-body",
|
|
172
|
-
children: a
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
!d && /* @__PURE__ */ t.jsx(Z, { ...s })
|
|
176
|
-
] })
|
|
177
|
-
] }) })
|
|
178
|
-
] })
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
);
|
|
182
|
-
}, ut = ["xs", "sm", "md", "lg", "cover", "full"], gt = ["center", "top", "bottom"], ft = ["inside", "outside"], pt = [
|
|
183
|
-
"scale",
|
|
184
|
-
"slide-in-bottom",
|
|
185
|
-
"slide-in-top",
|
|
186
|
-
"slide-in-left",
|
|
187
|
-
"slide-in-right",
|
|
188
|
-
"none"
|
|
189
|
-
];
|
|
190
|
-
export {
|
|
191
|
-
mt as M,
|
|
192
|
-
gt as a,
|
|
193
|
-
ft as b,
|
|
194
|
-
pt as c,
|
|
195
|
-
ut as m
|
|
196
|
-
};
|
|
197
|
-
//# sourceMappingURL=modal.types-DYbLPZKq.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.types-DYbLPZKq.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/dialog/dialog.js","../../src/components/Modal/components/ModalFooter/modalFooter.component.tsx","../../src/components/Modal/modal.component.tsx","../../src/components/Modal/modal.types.ts"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Dialog, useDialogContext } from '@ark-ui/react/dialog';\nimport { forwardRef } from 'react';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withRootProvider,\n withContext,\n useStyles: useDialogStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"dialog\" });\nconst DialogRootProvider = withRootProvider(\n Dialog.RootProvider,\n {\n defaultProps: { unmountOnExit: true, lazyMount: true }\n }\n);\nconst DialogRoot = withRootProvider(Dialog.Root, {\n defaultProps: { unmountOnExit: true, lazyMount: true }\n});\nconst DialogPropsProvider = PropsProvider;\nconst DialogTrigger = withContext(\n Dialog.Trigger,\n \"trigger\",\n { forwardAsChild: true }\n);\nconst DialogPositioner = withContext(Dialog.Positioner, \"positioner\", { forwardAsChild: true });\nconst DialogContent = withContext(\n Dialog.Content,\n \"content\",\n { forwardAsChild: true }\n);\nconst DialogDescription = withContext(Dialog.Description, \"description\", { forwardAsChild: true });\nconst DialogTitle = withContext(\n Dialog.Title,\n \"title\",\n { forwardAsChild: true }\n);\nconst DialogCloseTrigger = withContext(Dialog.CloseTrigger, \"closeTrigger\", { forwardAsChild: true });\nconst DialogActionTrigger = forwardRef(function DialogActionTrigger2(props, ref) {\n const dialog = useDialogContext();\n return /* @__PURE__ */ jsx(chakra.button, { ...props, ref, onClick: () => dialog.setOpen(false) });\n});\nconst DialogBackdrop = withContext(\n Dialog.Backdrop,\n \"backdrop\",\n { forwardAsChild: true }\n);\nconst DialogBody = withContext(\n \"div\",\n \"body\"\n);\nconst DialogFooter = withContext(\n \"div\",\n \"footer\"\n);\nconst DialogHeader = withContext(\n \"div\",\n \"header\"\n);\nconst DialogContext = Dialog.Context;\n\nexport { DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogContext, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogPropsProvider, DialogRoot, DialogRootProvider, DialogTitle, DialogTrigger, useDialogStyles };\n","import React from \"react\";\nimport { Dialog } from \"@chakra-ui/react/dialog\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { Button } from \"components/Button/button.component\";\n\nexport interface ModalFooterProps extends Dialog.FooterProps {\n children?: React.ReactNode;\n destructive?: boolean;\n disabled?: boolean;\n hideCancel?: boolean;\n loading?: boolean;\n loadingText?: string;\n onCancel?: () => void;\n onSubmit?: () => void | Promise<void>;\n submitText?: string;\n}\n\nexport const ModalFooter = ({\n children,\n destructive,\n disabled,\n hideCancel = false,\n loading,\n loadingText,\n onCancel,\n onSubmit,\n submitText = \"Submit\",\n ...rest\n}: ModalFooterProps): React.JSX.Element => {\n return (\n <Dialog.Footer\n className=\"Modal__Footer\"\n data-testid=\"kibble-modal-footer\"\n {...rest}\n >\n {children ? (\n children\n ) : (\n <Flex alignItems=\"center\" justifyContent=\"space-between\" w=\"100%\">\n {!hideCancel && (\n <Dialog.ActionTrigger\n asChild\n className=\"Modal__CancelButton\"\n data-testid=\"kibble-modal-cancel-button\"\n >\n <Button variant=\"tertiary\" onClick={onCancel}>\n Cancel\n </Button>\n </Dialog.ActionTrigger>\n )}\n <Button\n className=\"Modal__SubmitButton\"\n data-testid=\"kibble-modal-submit-button\"\n onClick={onSubmit}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n variant={destructive ? \"primaryDestructive\" : \"primary\"}\n >\n {submitText}\n </Button>\n </Flex>\n )}\n </Dialog.Footer>\n );\n};\n","import React, { useRef, useState } from \"react\";\nimport { Dialog } from \"@chakra-ui/react/dialog\";\nimport { Portal } from \"@chakra-ui/react/portal\";\nimport {\n ModalFooter,\n ModalFooterProps,\n} from \"./components/ModalFooter/modalFooter.component\";\nimport { Heading, HeadingProps } from \"components/Heading/heading.component\";\nimport { ModalMotionPreset, ModalPlacement, ModalSize } from \"./modal.types\";\nimport { Button } from \"components/Button/button.component\";\nimport { useBreakpointValue } from \"@chakra-ui/react\";\nimport { ModalContext } from \"./context/modal.context\";\n\nexport interface ModalProps extends Dialog.RootProps {\n footerProps?: ModalFooterProps;\n fullScreenMobile?: boolean;\n header?: React.ReactNode;\n headerProps?: HeadingProps;\n hideCloseButton?: boolean;\n hideFooter?: boolean;\n motionPreset?: ModalMotionPreset;\n placement?: ModalPlacement;\n showExpandButton?: boolean;\n size?: ModalSize;\n trigger?: React.ReactNode;\n}\n\nexport const Modal = ({\n children,\n footerProps,\n fullScreenMobile = true,\n header,\n headerProps,\n hideCloseButton = false,\n hideFooter = false,\n motionPreset = \"slide-in-bottom\",\n placement = \"center\",\n showExpandButton = false,\n size = \"md\",\n trigger,\n ...rest\n}: ModalProps): React.JSX.Element => {\n const contentRef = useRef<HTMLDivElement>(null!);\n const contextValue = { contentRef };\n const [isExpanded, setIsExpanded] = useState(false);\n const computedSize = useBreakpointValue({\n base: fullScreenMobile ? \"full\" : size,\n md: size,\n });\n\n return (\n <Dialog.Root\n motionPreset={motionPreset}\n placement={placement}\n size={computedSize}\n {...rest}\n expanded={isExpanded}\n >\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <ModalContext.Provider value={contextValue}>\n {\" \"}\n <Dialog.Content className=\"Modal\" data-testid=\"kibble-modal\">\n {!hideCloseButton && (\n <Dialog.CloseTrigger\n asChild\n className=\"Modal__CloseButton\"\n data-testid=\"kibble-modal-close-button\"\n >\n <Button iconName=\"close\" variant=\"ghostNeutral\" />\n </Dialog.CloseTrigger>\n )}\n {showExpandButton && (\n <Button\n className=\"Modal__ExpandButton\"\n data-testid=\"kibble-modal-expand-button\"\n variant=\"ghostNeutral\"\n iconName={isExpanded ? \"arrowsIn\" : \"arrowsOut\"}\n position=\"absolute\"\n top={2}\n right={12}\n onClick={() => setIsExpanded((prev) => !prev)}\n />\n )}\n <Dialog.Header\n className=\"Modal__Header\"\n data-testid=\"kibble-modal-header\"\n >\n {header && (\n <Dialog.Title\n className=\"Modal__Title\"\n data-testid=\"kibble-modal-title\"\n asChild\n >\n {typeof header === \"string\" ? (\n <Heading size=\"xl\" {...headerProps}>\n {header}\n </Heading>\n ) : (\n header\n )}\n </Dialog.Title>\n )}\n </Dialog.Header>\n <Dialog.Body\n className=\"Modal__Body\"\n data-testid=\"kibble-modal-body\"\n >\n {children}\n </Dialog.Body>\n {!hideFooter && <ModalFooter {...footerProps} />}\n </Dialog.Content>\n </ModalContext.Provider>\n </Dialog.Positioner>\n </Portal>\n </Dialog.Root>\n );\n};\n","export const modalSizes = [\"xs\", \"sm\", \"md\", \"lg\", \"cover\", \"full\"] as const;\nexport type ModalSize = (typeof modalSizes)[number];\n\nexport const modalPlacements = [\"center\", \"top\", \"bottom\"] as const;\nexport type ModalPlacement = (typeof modalPlacements)[number];\n\nexport const modalScrollBehaviors = [\"inside\", \"outside\"] as const;\nexport type ModalScrollBehavior = (typeof modalScrollBehaviors)[number];\n\nexport const modalMotionPresets = [\n \"scale\",\n \"slide-in-bottom\",\n \"slide-in-top\",\n \"slide-in-left\",\n \"slide-in-right\",\n \"none\",\n] as const;\nexport type ModalMotionPreset = (typeof modalMotionPresets)[number];\n"],"names":["withRootProvider","withContext","createSlotRecipeContext","Dialog.RootProvider","DialogRoot","Dialog.Root","DialogTrigger","Dialog.Trigger","DialogPositioner","Dialog.Positioner","DialogContent","Dialog.Content","Dialog.Description","DialogTitle","Dialog.Title","DialogCloseTrigger","Dialog.CloseTrigger","DialogActionTrigger","forwardRef","props","ref","dialog","useDialogContext","jsx","chakra","DialogBackdrop","Dialog.Backdrop","DialogBody","DialogFooter","DialogHeader","ModalFooter","children","destructive","disabled","hideCancel","loading","loadingText","onCancel","onSubmit","submitText","rest","Dialog.Footer","jsxs","Flex","Dialog.ActionTrigger","Button","Modal","footerProps","fullScreenMobile","header","headerProps","hideCloseButton","hideFooter","motionPreset","placement","showExpandButton","size","trigger","contextValue","useRef","isExpanded","setIsExpanded","useState","computedSize","useBreakpointValue","Portal","ModalContext","prev","Dialog.Header","Heading","Dialog.Body","modalSizes","modalPlacements","modalScrollBehaviors","modalMotionPresets"],"mappings":";;;;;;;;;;AAQA,MAAM;AAAA,EACJ,kBAAAA;AAAA,EACA,aAAAC;AAGF,IAAIC,EAAwB,EAAE,KAAK,SAAQ,CAAE;AAClBF;AAAA,EACzBG;AAAAA,EACA;AAAA,IACE,cAAc,EAAE,eAAe,IAAM,WAAW,GAAI;AAAA,EACxD;AACA;AACA,MAAMC,IAAaJ,EAAiBK,GAAa;AAAA,EAC/C,cAAc,EAAE,eAAe,IAAM,WAAW,GAAI;AACtD,CAAC,GAEKC,IAAgBL;AAAA,EACpBM;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB,GACMC,IAAmBP,EAAYQ,GAAmB,cAAc,EAAE,gBAAgB,IAAM,GACxFC,IAAgBT;AAAA,EACpBU;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB;AAC0BV,EAAYW,GAAoB,eAAe,EAAE,gBAAgB,GAAM,CAAA;AACjG,MAAMC,IAAcZ;AAAA,EAClBa;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB,GACMC,IAAqBd,EAAYe,GAAqB,gBAAgB,EAAE,gBAAgB,IAAM,GAC9FC,IAAsBC,EAAW,SAA8BC,GAAOC,GAAK;AAC/E,QAAMC,IAASC,EAAkB;AACjC,SAAuBC,gBAAAA,MAAIC,EAAO,QAAQ,EAAE,GAAGL,GAAO,KAAAC,GAAK,SAAS,MAAMC,EAAO,QAAQ,EAAK,EAAC,CAAE;AACnG,CAAC,GACKI,IAAiBxB;AAAA,EACrByB;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB,GACMC,IAAa1B;AAAA,EACjB;AAAA,EACA;AACF,GACM2B,IAAe3B;AAAA,EACnB;AAAA,EACA;AACF,GACM4B,IAAe5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,cAEF5C,gBAAAA,EAAA;AAAA,gBAAC6C;AAAAA,gBAAA;AAAA,kBACC,WAAU;AAAA,kBACV,eAAY;AAAA,kBAEX,UACCnB,KAAA1B,gBAAAA,EAAA;AAAA,oBAACT;AAAAA,oBAAA;AAAA,sBACC,WAAU;AAAA,sBACV,eAAY;AAAA,sBACZ,SAAO;AAAA,sBAEN,UAAA,OAAOmC,KAAW,WAChB1B,gBAAAA,EAAAA,IAAA8C,GAAA,EAAQ,MAAK,MAAM,GAAGnB,GACpB,UAAAD,EACH,CAAA,IAEAA;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAEJ;AAAA,cAEJ;AAAA,cACA1B,gBAAAA,EAAA;AAAA,gBAAC+C;AAAAA,gBAAA;AAAA,kBACC,WAAU;AAAA,kBACV,eAAY;AAAA,kBAEX,UAAAvC;AAAA,gBAAA;AAAA,cACH;AAAA,cACC,CAACqB,KAAe7B,gBAAAA,EAAA,IAAAO,GAAA,EAAa,GAAGiB,EAAa,CAAA;AAAA,YAAA,EAChD,CAAA;AAAA,UAAA,EAAA,CACF,EACF,CAAA;AAAA,QAAA,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ,GCvHawB,KAAa,CAAC,MAAM,MAAM,MAAM,MAAM,SAAS,MAAM,GAGrDC,KAAkB,CAAC,UAAU,OAAO,QAAQ,GAG5CC,KAAuB,CAAC,UAAU,SAAS,GAG3CC,KAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./jsx-runtime-BjDatQAs.js"),p=require("react"),a=require("./button.component-ytAmAAJg.js"),k=require("./flex-DKWxn8hO.js"),_=require("./create-slot-recipe-context-D-pJ8fgs.js"),M=require("./factory-CkTX_WOU.js"),e=require("./dialog-trigger-C86J6PDS.js"),v=require("./heading.component-CgsSnBVo.js"),B=require("./tooltip.component-C7RpuMiK.js"),w=require("./use-locale-context-BdqHZ8L8.js"),{withRootProvider:h,withContext:o}=_.createSlotRecipeContext({key:"dialog"});h(e.DialogRootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const y=h(e.DialogRoot,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),N=o(e.DialogTrigger,"trigger",{forwardAsChild:!0}),P=o(e.DialogPositioner,"positioner",{forwardAsChild:!0}),T=o(e.DialogContent,"content",{forwardAsChild:!0});o(e.DialogDescription,"description",{forwardAsChild:!0});const q=o(e.DialogTitle,"title",{forwardAsChild:!0}),S=o(e.DialogCloseTrigger,"closeTrigger",{forwardAsChild:!0}),A=p.forwardRef(function(n,r){const s=e.useDialogContext();return t.jsxRuntimeExports.jsx(M.chakra.button,{...n,ref:r,onClick:()=>s.setOpen(!1)})}),z=o(e.DialogBackdrop,"backdrop",{forwardAsChild:!0}),F=o("div","body"),O=o("div","footer"),H=o("div","header"),I=({children:i,destructive:n,disabled:r,hideCancel:s=!1,loading:l,loadingText:d,onCancel:c,onSubmit:u,submitText:x="Submit",...m})=>t.jsxRuntimeExports.jsx(O,{className:"Modal__Footer","data-testid":"kibble-modal-footer",...m,children:i||t.jsxRuntimeExports.jsxs(k.Flex,{alignItems:"center",justifyContent:"space-between",w:"100%",children:[!s&&t.jsxRuntimeExports.jsx(A,{asChild:!0,className:"Modal__CancelButton","data-testid":"kibble-modal-cancel-button",children:t.jsxRuntimeExports.jsx(a.Button,{variant:"tertiary",onClick:c,children:"Cancel"})}),t.jsxRuntimeExports.jsx(a.Button,{className:"Modal__SubmitButton","data-testid":"kibble-modal-submit-button",onClick:u,loading:l,loadingText:d,disabled:r,variant:n?"primaryDestructive":"primary",children:x})]})}),V=({children:i,footerProps:n,fullScreenMobile:r=!0,header:s,headerProps:l,hideCloseButton:d=!1,hideFooter:c=!1,motionPreset:u="slide-in-bottom",placement:x="center",showExpandButton:m=!1,size:g="md",trigger:j,...R})=>{const f={contentRef:p.useRef(null)},[b,C]=p.useState(!1),E=e.useBreakpointValue({base:r?"full":g,md:g});return t.jsxRuntimeExports.jsxs(y,{motionPreset:u,placement:x,size:E,...R,expanded:b,children:[j&&t.jsxRuntimeExports.jsx(N,{asChild:!0,children:j}),t.jsxRuntimeExports.jsxs(w.Portal,{children:[t.jsxRuntimeExports.jsx(z,{}),t.jsxRuntimeExports.jsx(P,{children:t.jsxRuntimeExports.jsxs(B.ModalContext.Provider,{value:f,children:[" ",t.jsxRuntimeExports.jsxs(T,{className:"Modal","data-testid":"kibble-modal",children:[!d&&t.jsxRuntimeExports.jsx(S,{asChild:!0,className:"Modal__CloseButton","data-testid":"kibble-modal-close-button",children:t.jsxRuntimeExports.jsx(a.Button,{iconName:"close",variant:"ghostNeutral"})}),m&&t.jsxRuntimeExports.jsx(a.Button,{className:"Modal__ExpandButton","data-testid":"kibble-modal-expand-button",variant:"ghostNeutral",iconName:b?"arrowsIn":"arrowsOut",position:"absolute",top:2,right:12,onClick:()=>C(D=>!D)}),t.jsxRuntimeExports.jsx(H,{className:"Modal__Header","data-testid":"kibble-modal-header",children:s&&t.jsxRuntimeExports.jsx(q,{className:"Modal__Title","data-testid":"kibble-modal-title",asChild:!0,children:typeof s=="string"?t.jsxRuntimeExports.jsx(v.WrappedHeading,{size:"xl",...l,children:s}):s})}),t.jsxRuntimeExports.jsx(F,{className:"Modal__Body","data-testid":"kibble-modal-body",children:i}),!c&&t.jsxRuntimeExports.jsx(I,{...n})]})]})})]})]})},L=["xs","sm","md","lg","cover","full"],W=["center","top","bottom"],G=["inside","outside"],J=["scale","slide-in-bottom","slide-in-top","slide-in-left","slide-in-right","none"];exports.Modal=V;exports.modalMotionPresets=J;exports.modalPlacements=W;exports.modalScrollBehaviors=G;exports.modalSizes=L;
|
|
2
|
-
//# sourceMappingURL=modal.types-Dt-zDnrS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.types-Dt-zDnrS.js","sources":["../../node_modules/@chakra-ui/react/dist/esm/components/dialog/dialog.js","../../src/components/Modal/components/ModalFooter/modalFooter.component.tsx","../../src/components/Modal/modal.component.tsx","../../src/components/Modal/modal.types.ts"],"sourcesContent":["\"use strict\";\n\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { Dialog, useDialogContext } from '@ark-ui/react/dialog';\nimport { forwardRef } from 'react';\nimport { createSlotRecipeContext } from '../../styled-system/create-slot-recipe-context.js';\nimport { chakra } from '../../styled-system/factory.js';\n\nconst {\n withRootProvider,\n withContext,\n useStyles: useDialogStyles,\n PropsProvider\n} = createSlotRecipeContext({ key: \"dialog\" });\nconst DialogRootProvider = withRootProvider(\n Dialog.RootProvider,\n {\n defaultProps: { unmountOnExit: true, lazyMount: true }\n }\n);\nconst DialogRoot = withRootProvider(Dialog.Root, {\n defaultProps: { unmountOnExit: true, lazyMount: true }\n});\nconst DialogPropsProvider = PropsProvider;\nconst DialogTrigger = withContext(\n Dialog.Trigger,\n \"trigger\",\n { forwardAsChild: true }\n);\nconst DialogPositioner = withContext(Dialog.Positioner, \"positioner\", { forwardAsChild: true });\nconst DialogContent = withContext(\n Dialog.Content,\n \"content\",\n { forwardAsChild: true }\n);\nconst DialogDescription = withContext(Dialog.Description, \"description\", { forwardAsChild: true });\nconst DialogTitle = withContext(\n Dialog.Title,\n \"title\",\n { forwardAsChild: true }\n);\nconst DialogCloseTrigger = withContext(Dialog.CloseTrigger, \"closeTrigger\", { forwardAsChild: true });\nconst DialogActionTrigger = forwardRef(function DialogActionTrigger2(props, ref) {\n const dialog = useDialogContext();\n return /* @__PURE__ */ jsx(chakra.button, { ...props, ref, onClick: () => dialog.setOpen(false) });\n});\nconst DialogBackdrop = withContext(\n Dialog.Backdrop,\n \"backdrop\",\n { forwardAsChild: true }\n);\nconst DialogBody = withContext(\n \"div\",\n \"body\"\n);\nconst DialogFooter = withContext(\n \"div\",\n \"footer\"\n);\nconst DialogHeader = withContext(\n \"div\",\n \"header\"\n);\nconst DialogContext = Dialog.Context;\n\nexport { DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogContext, DialogDescription, DialogFooter, DialogHeader, DialogPositioner, DialogPropsProvider, DialogRoot, DialogRootProvider, DialogTitle, DialogTrigger, useDialogStyles };\n","import React from \"react\";\nimport { Dialog } from \"@chakra-ui/react/dialog\";\nimport { Flex } from \"@chakra-ui/react/flex\";\nimport { Button } from \"components/Button/button.component\";\n\nexport interface ModalFooterProps extends Dialog.FooterProps {\n children?: React.ReactNode;\n destructive?: boolean;\n disabled?: boolean;\n hideCancel?: boolean;\n loading?: boolean;\n loadingText?: string;\n onCancel?: () => void;\n onSubmit?: () => void | Promise<void>;\n submitText?: string;\n}\n\nexport const ModalFooter = ({\n children,\n destructive,\n disabled,\n hideCancel = false,\n loading,\n loadingText,\n onCancel,\n onSubmit,\n submitText = \"Submit\",\n ...rest\n}: ModalFooterProps): React.JSX.Element => {\n return (\n <Dialog.Footer\n className=\"Modal__Footer\"\n data-testid=\"kibble-modal-footer\"\n {...rest}\n >\n {children ? (\n children\n ) : (\n <Flex alignItems=\"center\" justifyContent=\"space-between\" w=\"100%\">\n {!hideCancel && (\n <Dialog.ActionTrigger\n asChild\n className=\"Modal__CancelButton\"\n data-testid=\"kibble-modal-cancel-button\"\n >\n <Button variant=\"tertiary\" onClick={onCancel}>\n Cancel\n </Button>\n </Dialog.ActionTrigger>\n )}\n <Button\n className=\"Modal__SubmitButton\"\n data-testid=\"kibble-modal-submit-button\"\n onClick={onSubmit}\n loading={loading}\n loadingText={loadingText}\n disabled={disabled}\n variant={destructive ? \"primaryDestructive\" : \"primary\"}\n >\n {submitText}\n </Button>\n </Flex>\n )}\n </Dialog.Footer>\n );\n};\n","import React, { useRef, useState } from \"react\";\nimport { Dialog } from \"@chakra-ui/react/dialog\";\nimport { Portal } from \"@chakra-ui/react/portal\";\nimport {\n ModalFooter,\n ModalFooterProps,\n} from \"./components/ModalFooter/modalFooter.component\";\nimport { Heading, HeadingProps } from \"components/Heading/heading.component\";\nimport { ModalMotionPreset, ModalPlacement, ModalSize } from \"./modal.types\";\nimport { Button } from \"components/Button/button.component\";\nimport { useBreakpointValue } from \"@chakra-ui/react\";\nimport { ModalContext } from \"./context/modal.context\";\n\nexport interface ModalProps extends Dialog.RootProps {\n footerProps?: ModalFooterProps;\n fullScreenMobile?: boolean;\n header?: React.ReactNode;\n headerProps?: HeadingProps;\n hideCloseButton?: boolean;\n hideFooter?: boolean;\n motionPreset?: ModalMotionPreset;\n placement?: ModalPlacement;\n showExpandButton?: boolean;\n size?: ModalSize;\n trigger?: React.ReactNode;\n}\n\nexport const Modal = ({\n children,\n footerProps,\n fullScreenMobile = true,\n header,\n headerProps,\n hideCloseButton = false,\n hideFooter = false,\n motionPreset = \"slide-in-bottom\",\n placement = \"center\",\n showExpandButton = false,\n size = \"md\",\n trigger,\n ...rest\n}: ModalProps): React.JSX.Element => {\n const contentRef = useRef<HTMLDivElement>(null!);\n const contextValue = { contentRef };\n const [isExpanded, setIsExpanded] = useState(false);\n const computedSize = useBreakpointValue({\n base: fullScreenMobile ? \"full\" : size,\n md: size,\n });\n\n return (\n <Dialog.Root\n motionPreset={motionPreset}\n placement={placement}\n size={computedSize}\n {...rest}\n expanded={isExpanded}\n >\n {trigger && <Dialog.Trigger asChild>{trigger}</Dialog.Trigger>}\n <Portal>\n <Dialog.Backdrop />\n <Dialog.Positioner>\n <ModalContext.Provider value={contextValue}>\n {\" \"}\n <Dialog.Content className=\"Modal\" data-testid=\"kibble-modal\">\n {!hideCloseButton && (\n <Dialog.CloseTrigger\n asChild\n className=\"Modal__CloseButton\"\n data-testid=\"kibble-modal-close-button\"\n >\n <Button iconName=\"close\" variant=\"ghostNeutral\" />\n </Dialog.CloseTrigger>\n )}\n {showExpandButton && (\n <Button\n className=\"Modal__ExpandButton\"\n data-testid=\"kibble-modal-expand-button\"\n variant=\"ghostNeutral\"\n iconName={isExpanded ? \"arrowsIn\" : \"arrowsOut\"}\n position=\"absolute\"\n top={2}\n right={12}\n onClick={() => setIsExpanded((prev) => !prev)}\n />\n )}\n <Dialog.Header\n className=\"Modal__Header\"\n data-testid=\"kibble-modal-header\"\n >\n {header && (\n <Dialog.Title\n className=\"Modal__Title\"\n data-testid=\"kibble-modal-title\"\n asChild\n >\n {typeof header === \"string\" ? (\n <Heading size=\"xl\" {...headerProps}>\n {header}\n </Heading>\n ) : (\n header\n )}\n </Dialog.Title>\n )}\n </Dialog.Header>\n <Dialog.Body\n className=\"Modal__Body\"\n data-testid=\"kibble-modal-body\"\n >\n {children}\n </Dialog.Body>\n {!hideFooter && <ModalFooter {...footerProps} />}\n </Dialog.Content>\n </ModalContext.Provider>\n </Dialog.Positioner>\n </Portal>\n </Dialog.Root>\n );\n};\n","export const modalSizes = [\"xs\", \"sm\", \"md\", \"lg\", \"cover\", \"full\"] as const;\nexport type ModalSize = (typeof modalSizes)[number];\n\nexport const modalPlacements = [\"center\", \"top\", \"bottom\"] as const;\nexport type ModalPlacement = (typeof modalPlacements)[number];\n\nexport const modalScrollBehaviors = [\"inside\", \"outside\"] as const;\nexport type ModalScrollBehavior = (typeof modalScrollBehaviors)[number];\n\nexport const modalMotionPresets = [\n \"scale\",\n \"slide-in-bottom\",\n \"slide-in-top\",\n \"slide-in-left\",\n \"slide-in-right\",\n \"none\",\n] as const;\nexport type ModalMotionPreset = (typeof modalMotionPresets)[number];\n"],"names":["withRootProvider","withContext","createSlotRecipeContext","Dialog.RootProvider","DialogRoot","Dialog.Root","DialogTrigger","Dialog.Trigger","DialogPositioner","Dialog.Positioner","DialogContent","Dialog.Content","Dialog.Description","DialogTitle","Dialog.Title","DialogCloseTrigger","Dialog.CloseTrigger","DialogActionTrigger","forwardRef","props","ref","dialog","useDialogContext","jsx","chakra","DialogBackdrop","Dialog.Backdrop","DialogBody","DialogFooter","DialogHeader","ModalFooter","children","destructive","disabled","hideCancel","loading","loadingText","onCancel","onSubmit","submitText","rest","Dialog.Footer","jsxs","Flex","Dialog.ActionTrigger","Button","Modal","footerProps","fullScreenMobile","header","headerProps","hideCloseButton","hideFooter","motionPreset","placement","showExpandButton","size","trigger","contextValue","useRef","isExpanded","setIsExpanded","useState","computedSize","useBreakpointValue","Portal","ModalContext","prev","Dialog.Header","Heading","Dialog.Body","modalSizes","modalPlacements","modalScrollBehaviors","modalMotionPresets"],"mappings":"oaAQM,CACJ,iBAAAA,EACA,YAAAC,CAGF,EAAIC,EAAuB,wBAAC,CAAE,IAAK,QAAQ,CAAE,EAClBF,EACzBG,EAAmB,mBACnB,CACE,aAAc,CAAE,cAAe,GAAM,UAAW,EAAI,CACxD,CACA,EACA,MAAMC,EAAaJ,EAAiBK,aAAa,CAC/C,aAAc,CAAE,cAAe,GAAM,UAAW,EAAI,CACtD,CAAC,EAEKC,EAAgBL,EACpBM,EAAc,cACd,UACA,CAAE,eAAgB,EAAI,CACxB,EACMC,EAAmBP,EAAYQ,EAAiB,iBAAE,aAAc,CAAE,eAAgB,GAAM,EACxFC,EAAgBT,EACpBU,EAAc,cACd,UACA,CAAE,eAAgB,EAAI,CACxB,EAC0BV,EAAYW,oBAAoB,cAAe,CAAE,eAAgB,EAAM,CAAA,EACjG,MAAMC,EAAcZ,EAClBa,EAAY,YACZ,QACA,CAAE,eAAgB,EAAI,CACxB,EACMC,EAAqBd,EAAYe,EAAmB,mBAAE,eAAgB,CAAE,eAAgB,GAAM,EAC9FC,EAAsBC,EAAAA,WAAW,SAA8BC,EAAOC,EAAK,CAC/E,MAAMC,EAASC,EAAAA,iBAAkB,EACjC,OAAuBC,wBAAIC,EAAAA,OAAO,OAAQ,CAAE,GAAGL,EAAO,IAAAC,EAAK,QAAS,IAAMC,EAAO,QAAQ,EAAK,CAAC,CAAE,CACnG,CAAC,EACKI,EAAiBxB,EACrByB,EAAe,eACf,WACA,CAAE,eAAgB,EAAI,CACxB,EACMC,EAAa1B,EACjB,MACA,MACF,EACM2B,EAAe3B,EACnB,MACA,QACF,EACM4B,EAAe5B,EACnB,MACA,QACF,EC7Ca6B,EAA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