@televet/kibble-ui 4.0.0-beta.113 → 4.0.0-beta.115
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/{buttonGroup.component-Bnd3WutZ.js → buttonGroup.component-BVPTUIF5.js} +2 -2
- package/dist/chunks/{buttonGroup.component-Bnd3WutZ.js.map → buttonGroup.component-BVPTUIF5.js.map} +1 -1
- package/dist/chunks/{buttonGroup.component-BTvvN-mr.js → buttonGroup.component-D_cYz0H1.js} +2 -2
- package/dist/chunks/{buttonGroup.component-BTvvN-mr.js.map → buttonGroup.component-D_cYz0H1.js.map} +1 -1
- package/dist/chunks/{checkbox.component-DCO3f8IY.js → checkbox.component-3YA0AZfA.js} +2 -2
- package/dist/chunks/{checkbox.component-DCO3f8IY.js.map → checkbox.component-3YA0AZfA.js.map} +1 -1
- package/dist/chunks/{checkbox.component-CyWf-jhq.js → checkbox.component-D5LmbbC6.js} +2 -1
- package/dist/chunks/{checkbox.component-CyWf-jhq.js.map → checkbox.component-D5LmbbC6.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-Dwn2XO_5.js → checkboxGroup.component-72jN-0pA.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-Dwn2XO_5.js.map → checkboxGroup.component-72jN-0pA.js.map} +1 -1
- package/dist/chunks/{checkboxGroup.component-Cu6qUJOk.js → checkboxGroup.component-RQoz1ubr.js} +2 -2
- package/dist/chunks/{checkboxGroup.component-Cu6qUJOk.js.map → checkboxGroup.component-RQoz1ubr.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-ZJ5eqIWf.js → conversationCard.component-C-GONVFe.js} +2 -2
- package/dist/chunks/{conversationCard.component-ZJ5eqIWf.js.map → conversationCard.component-C-GONVFe.js.map} +1 -1
- package/dist/chunks/{conversationCard.component-aCCQmc5q.js → conversationCard.component-xQsHec-u.js} +2 -2
- package/dist/chunks/{conversationCard.component-aCCQmc5q.js.map → conversationCard.component-xQsHec-u.js.map} +1 -1
- package/dist/chunks/{datePicker.component--6-jJXIm.js → datePicker.component-BPqrILEE.js} +2 -2
- package/dist/chunks/{datePicker.component--6-jJXIm.js.map → datePicker.component-BPqrILEE.js.map} +1 -1
- package/dist/chunks/{datePicker.component-B6RVRikg.js → datePicker.component-DLs6DpYn.js} +2 -2
- package/dist/chunks/{datePicker.component-B6RVRikg.js.map → datePicker.component-DLs6DpYn.js.map} +1 -1
- package/dist/chunks/dialog-BeivYfW7.js +2 -0
- package/dist/chunks/dialog-BeivYfW7.js.map +1 -0
- package/dist/chunks/dialog-CcVRidaV.js +136 -0
- package/dist/chunks/dialog-CcVRidaV.js.map +1 -0
- package/dist/chunks/{menu.component-DSFy9WEh.js → menu.component-BlQ8OB2z.js} +2 -2
- package/dist/chunks/{menu.component-DSFy9WEh.js.map → menu.component-BlQ8OB2z.js.map} +1 -1
- package/dist/chunks/{menu.component-MeUyoUF9.js → menu.component-DWpVT0ik.js} +2 -2
- package/dist/chunks/{menu.component-MeUyoUF9.js.map → menu.component-DWpVT0ik.js.map} +1 -1
- package/dist/chunks/modal.types-BiEPKa2t.js +2 -0
- package/dist/chunks/modal.types-BiEPKa2t.js.map +1 -0
- package/dist/chunks/modal.types-DqAH_jR5.js +95 -0
- package/dist/chunks/modal.types-DqAH_jR5.js.map +1 -0
- package/dist/chunks/{radioGroup.component-CeIyZmZs.js → radioGroup.component-Bx42wWDx.js} +3 -2
- package/dist/chunks/{radioGroup.component-CeIyZmZs.js.map → radioGroup.component-Bx42wWDx.js.map} +1 -1
- package/dist/chunks/{radioGroup.component-BiLIdd0l.js → radioGroup.component-D6k2Nuu6.js} +2 -2
- package/dist/chunks/{radioGroup.component-BiLIdd0l.js.map → radioGroup.component-D6k2Nuu6.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-B6jDh_wi.js → tagBlock.component-CzajKewM.js} +2 -2
- package/dist/chunks/{tagBlock.component-B6jDh_wi.js.map → tagBlock.component-CzajKewM.js.map} +1 -1
- package/dist/chunks/{tagBlock.component-c3i2tk5Y.js → tagBlock.component-DCHwzZEJ.js} +2 -2
- package/dist/chunks/{tagBlock.component-c3i2tk5Y.js.map → tagBlock.component-DCHwzZEJ.js.map} +1 -1
- package/dist/cjs/chakra/index.cjs +1 -1
- package/dist/cjs/chakra/index.cjs.map +1 -1
- package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
- package/dist/cjs/components/Checkbox/index.cjs +1 -1
- package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
- package/dist/cjs/components/ConversationCard/index.cjs +1 -1
- package/dist/cjs/components/DatePicker/index.cjs +1 -1
- package/dist/cjs/components/Menu/index.cjs +1 -1
- package/dist/cjs/components/Modal/index.cjs +1 -1
- package/dist/cjs/components/RadioGroup/index.cjs +1 -1
- package/dist/cjs/components/TagBlock/index.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/chakra/index.js +1145 -1127
- package/dist/esm/chakra/index.js.map +1 -1
- package/dist/esm/components/ButtonGroup/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/Menu/index.js +1 -1
- package/dist/esm/components/Modal/index.js +1 -1
- package/dist/esm/components/RadioGroup/index.js +1 -1
- package/dist/esm/components/TagBlock/index.js +1 -1
- package/dist/esm/components/index.js +9 -9
- package/dist/esm/index.js +9 -9
- package/dist/types/chakra/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunks/dialog-trigger-Crrp0YGG.js +0 -78
- package/dist/chunks/dialog-trigger-Crrp0YGG.js.map +0 -1
- package/dist/chunks/dialog-trigger-MkOQUjzu.js +0 -2
- package/dist/chunks/dialog-trigger-MkOQUjzu.js.map +0 -1
- package/dist/chunks/modal.types-CTQpaACU.js +0 -2
- package/dist/chunks/modal.types-CTQpaACU.js.map +0 -1
- package/dist/chunks/modal.types-KqIduO4D.js +0 -139
- package/dist/chunks/modal.types-KqIduO4D.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-BjDatQAs.js"),l=require("react"),k=require("./create-slot-recipe-context-IwVIgtBt.js"),w=require("./factory-D6tdBUPG.js"),o=require("./use-locale-context-D0LByRu9.js"),p=require("./render-strategy-C_zp9LNQ.js"),c=require("./index-CHIISuTq.js"),f=require("./index-BR7peqZO.js"),[v,a]=o.createContext({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),u=l.forwardRef((s,r)=>{const e=a(),t=p.useRenderStrategyPropsContext(),n=o.usePresence({...t,present:e.open}),d=c.mergeProps(e.getBackdropProps(),n.getPresenceProps(),s);return n.unmounted?null:i.jsxRuntimeExports.jsx(o.ark.div,{...d,ref:o.composeRefs(n.ref,r)})});u.displayName="DialogBackdrop";const P=l.forwardRef((s,r)=>{const e=a(),t=c.mergeProps(e.getCloseTriggerProps(),s);return i.jsxRuntimeExports.jsx(o.ark.button,{...t,ref:r})});P.displayName="DialogCloseTrigger";const D=l.forwardRef((s,r)=>{const e=a(),t=o.usePresenceContext(),n=c.mergeProps(e.getContentProps(),t.getPresenceProps(),s);return t.unmounted?null:i.jsxRuntimeExports.jsx(o.ark.div,{...n,ref:o.composeRefs(t.ref,r)})});D.displayName="DialogContent";const j=s=>s.children(a()),x=l.forwardRef((s,r)=>{const e=a(),t=c.mergeProps(e.getDescriptionProps(),s);return i.jsxRuntimeExports.jsx(o.ark.div,{...t,ref:r})});x.displayName="DialogDescription";const m=l.forwardRef((s,r)=>{const e=a(),t=c.mergeProps(e.getPositionerProps(),s);return o.usePresenceContext().unmounted?null:i.jsxRuntimeExports.jsx(o.ark.div,{...t,ref:r})});m.displayName="DialogPositioner";const E=s=>{const r=l.useId(),{getRootNode:e}=o.useEnvironmentContext(),{dir:t}=o.useLocaleContext(),n={id:r,getRootNode:e,dir:t,...s},d=o.useMachine(f.machine,n);return f.connect(d,o.normalizeProps)},h=s=>{const[r,{children:e,...t}]=o.splitPresenceProps(s),[n]=p.splitRenderStrategyProps(r),d=E(t),$=o.usePresence(c.mergeProps({present:d.open},r));return i.jsxRuntimeExports.jsx(v,{value:d,children:i.jsxRuntimeExports.jsx(p.RenderStrategyPropsProvider,{value:n,children:i.jsxRuntimeExports.jsx(o.PresenceProvider,{value:$,children:e})})})},y=s=>{const[r,{value:e,children:t}]=o.splitPresenceProps(s),[n]=p.splitRenderStrategyProps(r),d=o.usePresence(c.mergeProps({present:e.open},r));return i.jsxRuntimeExports.jsx(v,{value:e,children:i.jsxRuntimeExports.jsx(p.RenderStrategyPropsProvider,{value:n,children:i.jsxRuntimeExports.jsx(o.PresenceProvider,{value:d,children:t})})})},R=l.forwardRef((s,r)=>{const e=a(),t=c.mergeProps(e.getTitleProps(),s);return i.jsxRuntimeExports.jsx(o.ark.h2,{...t,ref:r})});R.displayName="DialogTitle";const C=l.forwardRef((s,r)=>{const e=a(),t=o.usePresenceContext(),n=c.mergeProps({...e.getTriggerProps(),"aria-controls":t.unmounted?void 0:e.getTriggerProps()["aria-controls"]},s);return i.jsxRuntimeExports.jsx(o.ark.button,{...n,ref:r})});C.displayName="DialogTrigger";const{withRootProvider:T,withContext:g,PropsProvider:S}=k.createSlotRecipeContext({key:"dialog"}),A=T(y,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),N=T(h,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),q=S,B=g(C,"trigger",{forwardAsChild:!0}),b=g(m,"positioner",{forwardAsChild:!0}),z=g(D,"content",{forwardAsChild:!0}),M=g(x,"description",{forwardAsChild:!0}),O=g(R,"title",{forwardAsChild:!0}),F=g(P,"closeTrigger",{forwardAsChild:!0}),H=l.forwardRef(function(r,e){const t=a();return i.jsxRuntimeExports.jsx(w.chakra.button,{...r,ref:e,onClick:()=>t.setOpen(!1)})}),L=g(u,"backdrop",{forwardAsChild:!0}),I=g("div","body"),G=g("div","footer"),J=g("div","header"),K=j;exports.DialogActionTrigger=H;exports.DialogBackdrop=L;exports.DialogBackdrop$1=u;exports.DialogBody=I;exports.DialogCloseTrigger=F;exports.DialogCloseTrigger$1=P;exports.DialogContent=z;exports.DialogContent$1=D;exports.DialogContext=K;exports.DialogContext$1=j;exports.DialogDescription=M;exports.DialogDescription$1=x;exports.DialogFooter=G;exports.DialogHeader=J;exports.DialogPositioner=b;exports.DialogPositioner$1=m;exports.DialogPropsProvider=q;exports.DialogRoot=N;exports.DialogRoot$1=h;exports.DialogRootProvider=A;exports.DialogRootProvider$1=y;exports.DialogTitle=O;exports.DialogTitle$1=R;exports.DialogTrigger=B;exports.DialogTrigger$1=C;exports.useDialogContext=a;
|
|
2
|
+
//# sourceMappingURL=dialog-BeivYfW7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-BeivYfW7.js","sources":["../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js","../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js","../../node_modules/@chakra-ui/react/dist/esm/components/dialog/dialog.js"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [DialogProvider, useDialogContext] = createContext({\n name: \"DialogContext\",\n hookName: \"useDialogContext\",\n providerName: \"<DialogProvider />\"\n});\n\nexport { DialogProvider, useDialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { useRenderStrategyPropsContext } from '../../utils/render-strategy.js';\nimport { ark } from '../factory.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogBackdrop = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const presence = usePresence({ ...renderStrategyProps, present: dialog.open });\n const mergedProps = mergeProps(dialog.getBackdropProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nexport { DialogBackdrop };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogCloseTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getCloseTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogCloseTrigger.displayName = \"DialogCloseTrigger\";\n\nexport { DialogCloseTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContent = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(dialog.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogContent.displayName = \"DialogContent\";\n\nexport { DialogContent };\n","'use client';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContext = (props) => props.children(useDialogContext());\n\nexport { DialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogDescription = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogDescription.displayName = \"DialogDescription\";\n\nexport { DialogDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogPositioner = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogPositioner.displayName = \"DialogPositioner\";\n\nexport { DialogPositioner };\n","'use client';\nimport * as dialog from '@zag-js/dialog';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useDialog = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n getRootNode,\n dir,\n ...props\n };\n const service = useMachine(dialog.machine, machineProps);\n return dialog.connect(service, normalizeProps);\n};\n\nexport { useDialog };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useDialog } from './use-dialog.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRoot = (props) => {\n const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const dialog = useDialog(localProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRootProvider = (props) => {\n const [presenceProps, { value: dialog, children }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTitle = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.h2, { ...mergedProps, ref });\n});\nDialogTitle.displayName = \"DialogTitle\";\n\nexport { DialogTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...dialog.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : dialog.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogTrigger.displayName = \"DialogTrigger\";\n\nexport { DialogTrigger };\n","\"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"],"names":["DialogProvider","useDialogContext","createContext","DialogBackdrop","forwardRef","props","ref","dialog","renderStrategyProps","useRenderStrategyPropsContext","presence","usePresence","mergedProps","mergeProps","jsx","ark","composeRefs","DialogCloseTrigger","DialogContent","usePresenceContext","DialogContext","DialogDescription","DialogPositioner","useDialog","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","dialog.machine","dialog.connect","normalizeProps","DialogRoot","presenceProps","children","localProps","splitPresenceProps","splitRenderStrategyProps","RenderStrategyPropsProvider","PresenceProvider","DialogRootProvider","DialogTitle","DialogTrigger","withRootProvider","withContext","PropsProvider","createSlotRecipeContext","Dialog.RootProvider","Dialog.Root","DialogPropsProvider","Dialog.Trigger","Dialog.Positioner","Dialog.Content","Dialog.Description","Dialog.Title","Dialog.CloseTrigger","DialogActionTrigger","chakra","Dialog.Backdrop","DialogBody","DialogFooter","DialogHeader","Dialog.Context"],"mappings":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AC,EAEA,cAAAC,CACF,EAAIC,0BAAwB,CAAE,IAAK,SAAU,EACvCN,EAAqBG,EACzBI,EACA,CACE,aAAc,CAAE,cAAe,GAAM,UAAW,EAAI,CACxD,CACA,EACMf,EAAaW,EAAiBK,EAAa,CAC/C,aAAc,CAAE,cAAe,GAAM,UAAW,EAAI,CACtD,CAAC,EACKC,EAAsBJ,EACtBH,EAAgBE,EACpBM,EACA,UACA,CAAE,eAAgB,EAAI,CACxB,EACMhC,EAAmB0B,EAAYO,EAAmB,aAAc,CAAE,eAAgB,EAAM,CAAA,EACxFrC,EAAgB8B,EACpBQ,EACA,UACA,CAAE,eAAgB,EAAI,CACxB,EACMnC,EAAoB2B,EAAYS,EAAoB,cAAe,CAAE,eAAgB,EAAM,CAAA,EAC3FZ,EAAcG,EAClBU,EACA,QACA,CAAE,eAAgB,EAAI,CACxB,EACMzC,EAAqB+B,EAAYW,EAAqB,eAAgB,CAAE,eAAgB,EAAM,CAAA,EAC9FC,EAAsBxD,EAAAA,WAAW,SAA8BC,EAAOC,EAAK,CAC/E,MAAMC,EAASN,EAAkB,EACjC,OAAuBa,wBAAI+C,EAAAA,OAAO,OAAQ,CAAE,GAAGxD,EAAO,IAAAC,EAAK,QAAS,IAAMC,EAAO,QAAQ,EAAK,CAAC,CAAE,CACnG,CAAC,EACKJ,EAAiB6C,EACrBc,EACA,WACA,CAAE,eAAgB,EAAI,CACxB,EACMC,EAAaf,EACjB,MACA,MACF,EACMgB,EAAehB,EACnB,MACA,QACF,EACMiB,EAAejB,EACnB,MACA,QACF,EACM5B,EAAgB8C","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { j as n } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { forwardRef as g, useId as $ } from "react";
|
|
3
|
+
import { c as A } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
4
|
+
import { c as S } from "./factory-Ctbv0Ozn.js";
|
|
5
|
+
import { c as b, l as p, f as d, h as P, u, i as B, j as E, k as z, n as M, s as m, m as D } from "./use-locale-context-BNU4MHrO.js";
|
|
6
|
+
import { u as O, s as f, R as x } from "./render-strategy-D5Z6LZ1V.js";
|
|
7
|
+
import { a1 as i } from "./index-Ztgrae6O.js";
|
|
8
|
+
import { m as q, c as F } from "./index-B3d3tRic.js";
|
|
9
|
+
const [v, c] = b({
|
|
10
|
+
name: "DialogContext",
|
|
11
|
+
hookName: "useDialogContext",
|
|
12
|
+
providerName: "<DialogProvider />"
|
|
13
|
+
}), C = g((s, e) => {
|
|
14
|
+
const o = c(), r = O(), t = p({ ...r, present: o.open }), l = i(o.getBackdropProps(), t.getPresenceProps(), s);
|
|
15
|
+
return t.unmounted ? null : /* @__PURE__ */ n.jsx(d.div, { ...l, ref: P(t.ref, e) });
|
|
16
|
+
});
|
|
17
|
+
C.displayName = "DialogBackdrop";
|
|
18
|
+
const h = g((s, e) => {
|
|
19
|
+
const o = c(), r = i(o.getCloseTriggerProps(), s);
|
|
20
|
+
return /* @__PURE__ */ n.jsx(d.button, { ...r, ref: e });
|
|
21
|
+
});
|
|
22
|
+
h.displayName = "DialogCloseTrigger";
|
|
23
|
+
const y = g((s, e) => {
|
|
24
|
+
const o = c(), r = u(), t = i(o.getContentProps(), r.getPresenceProps(), s);
|
|
25
|
+
return r.unmounted ? null : /* @__PURE__ */ n.jsx(d.div, { ...t, ref: P(r.ref, e) });
|
|
26
|
+
});
|
|
27
|
+
y.displayName = "DialogContent";
|
|
28
|
+
const H = (s) => s.children(c()), j = g((s, e) => {
|
|
29
|
+
const o = c(), r = i(o.getDescriptionProps(), s);
|
|
30
|
+
return /* @__PURE__ */ n.jsx(d.div, { ...r, ref: e });
|
|
31
|
+
});
|
|
32
|
+
j.displayName = "DialogDescription";
|
|
33
|
+
const T = g((s, e) => {
|
|
34
|
+
const o = c(), r = i(o.getPositionerProps(), s);
|
|
35
|
+
return u().unmounted ? null : /* @__PURE__ */ n.jsx(d.div, { ...r, ref: e });
|
|
36
|
+
});
|
|
37
|
+
T.displayName = "DialogPositioner";
|
|
38
|
+
const I = (s) => {
|
|
39
|
+
const e = $(), { getRootNode: o } = B(), { dir: r } = E(), t = {
|
|
40
|
+
id: e,
|
|
41
|
+
getRootNode: o,
|
|
42
|
+
dir: r,
|
|
43
|
+
...s
|
|
44
|
+
}, l = z(q, t);
|
|
45
|
+
return F(l, M);
|
|
46
|
+
}, L = (s) => {
|
|
47
|
+
const [e, { children: o, ...r }] = m(s), [t] = f(e), l = I(r), N = p(i({ present: l.open }, e));
|
|
48
|
+
return /* @__PURE__ */ n.jsx(v, { value: l, children: /* @__PURE__ */ n.jsx(x, { value: t, children: /* @__PURE__ */ n.jsx(D, { value: N, children: o }) }) });
|
|
49
|
+
}, G = (s) => {
|
|
50
|
+
const [e, { value: o, children: r }] = m(s), [t] = f(e), l = p(i({ present: o.open }, e));
|
|
51
|
+
return /* @__PURE__ */ n.jsx(v, { value: o, children: /* @__PURE__ */ n.jsx(x, { value: t, children: /* @__PURE__ */ n.jsx(D, { value: l, children: r }) }) });
|
|
52
|
+
}, R = g((s, e) => {
|
|
53
|
+
const o = c(), r = i(o.getTitleProps(), s);
|
|
54
|
+
return /* @__PURE__ */ n.jsx(d.h2, { ...r, ref: e });
|
|
55
|
+
});
|
|
56
|
+
R.displayName = "DialogTitle";
|
|
57
|
+
const k = g((s, e) => {
|
|
58
|
+
const o = c(), r = u(), t = i(
|
|
59
|
+
{
|
|
60
|
+
...o.getTriggerProps(),
|
|
61
|
+
"aria-controls": r.unmounted ? void 0 : o.getTriggerProps()["aria-controls"]
|
|
62
|
+
},
|
|
63
|
+
s
|
|
64
|
+
);
|
|
65
|
+
return /* @__PURE__ */ n.jsx(d.button, { ...t, ref: e });
|
|
66
|
+
});
|
|
67
|
+
k.displayName = "DialogTrigger";
|
|
68
|
+
const {
|
|
69
|
+
withRootProvider: w,
|
|
70
|
+
withContext: a,
|
|
71
|
+
PropsProvider: J
|
|
72
|
+
} = A({ key: "dialog" }), _ = w(
|
|
73
|
+
G,
|
|
74
|
+
{
|
|
75
|
+
defaultProps: { unmountOnExit: !0, lazyMount: !0 }
|
|
76
|
+
}
|
|
77
|
+
), oo = w(L, {
|
|
78
|
+
defaultProps: { unmountOnExit: !0, lazyMount: !0 }
|
|
79
|
+
}), eo = J, ro = a(
|
|
80
|
+
k,
|
|
81
|
+
"trigger",
|
|
82
|
+
{ forwardAsChild: !0 }
|
|
83
|
+
), so = a(T, "positioner", { forwardAsChild: !0 }), to = a(
|
|
84
|
+
y,
|
|
85
|
+
"content",
|
|
86
|
+
{ forwardAsChild: !0 }
|
|
87
|
+
), no = a(j, "description", { forwardAsChild: !0 }), ao = a(
|
|
88
|
+
R,
|
|
89
|
+
"title",
|
|
90
|
+
{ forwardAsChild: !0 }
|
|
91
|
+
), io = a(h, "closeTrigger", { forwardAsChild: !0 }), co = g(function(e, o) {
|
|
92
|
+
const r = c();
|
|
93
|
+
return /* @__PURE__ */ n.jsx(S.button, { ...e, ref: o, onClick: () => r.setOpen(!1) });
|
|
94
|
+
}), lo = a(
|
|
95
|
+
C,
|
|
96
|
+
"backdrop",
|
|
97
|
+
{ forwardAsChild: !0 }
|
|
98
|
+
), go = a(
|
|
99
|
+
"div",
|
|
100
|
+
"body"
|
|
101
|
+
), po = a(
|
|
102
|
+
"div",
|
|
103
|
+
"footer"
|
|
104
|
+
), uo = a(
|
|
105
|
+
"div",
|
|
106
|
+
"header"
|
|
107
|
+
), Po = H;
|
|
108
|
+
export {
|
|
109
|
+
po as D,
|
|
110
|
+
co as a,
|
|
111
|
+
oo as b,
|
|
112
|
+
ro as c,
|
|
113
|
+
lo as d,
|
|
114
|
+
so as e,
|
|
115
|
+
to as f,
|
|
116
|
+
io as g,
|
|
117
|
+
uo as h,
|
|
118
|
+
ao as i,
|
|
119
|
+
go as j,
|
|
120
|
+
Po as k,
|
|
121
|
+
no as l,
|
|
122
|
+
eo as m,
|
|
123
|
+
_ as n,
|
|
124
|
+
H as o,
|
|
125
|
+
C as p,
|
|
126
|
+
h as q,
|
|
127
|
+
y as r,
|
|
128
|
+
j as s,
|
|
129
|
+
T as t,
|
|
130
|
+
c as u,
|
|
131
|
+
L as v,
|
|
132
|
+
G as w,
|
|
133
|
+
R as x,
|
|
134
|
+
k as y
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=dialog-CcVRidaV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-CcVRidaV.js","sources":["../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-backdrop.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-close-trigger.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-content.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-context.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-description.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-positioner.js","../../node_modules/@ark-ui/react/dist/components/dialog/use-dialog.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-root-provider.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-title.js","../../node_modules/@ark-ui/react/dist/components/dialog/dialog-trigger.js","../../node_modules/@chakra-ui/react/dist/esm/components/dialog/dialog.js"],"sourcesContent":["'use client';\nimport { createContext } from '../../utils/create-context.js';\n\nconst [DialogProvider, useDialogContext] = createContext({\n name: \"DialogContext\",\n hookName: \"useDialogContext\",\n providerName: \"<DialogProvider />\"\n});\n\nexport { DialogProvider, useDialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { useRenderStrategyPropsContext } from '../../utils/render-strategy.js';\nimport { ark } from '../factory.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogBackdrop = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const renderStrategyProps = useRenderStrategyPropsContext();\n const presence = usePresence({ ...renderStrategyProps, present: dialog.open });\n const mergedProps = mergeProps(dialog.getBackdropProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogBackdrop.displayName = \"DialogBackdrop\";\n\nexport { DialogBackdrop };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogCloseTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getCloseTriggerProps(), props);\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogCloseTrigger.displayName = \"DialogCloseTrigger\";\n\nexport { DialogCloseTrigger };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { composeRefs } from '../../utils/compose-refs.js';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContent = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(dialog.getContentProps(), presence.getPresenceProps(), props);\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref: composeRefs(presence.ref, ref) });\n});\nDialogContent.displayName = \"DialogContent\";\n\nexport { DialogContent };\n","'use client';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogContext = (props) => props.children(useDialogContext());\n\nexport { DialogContext };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogDescription = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getDescriptionProps(), props);\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogDescription.displayName = \"DialogDescription\";\n\nexport { DialogDescription };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogPositioner = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getPositionerProps(), props);\n const presence = usePresenceContext();\n if (presence.unmounted) {\n return null;\n }\n return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });\n});\nDialogPositioner.displayName = \"DialogPositioner\";\n\nexport { DialogPositioner };\n","'use client';\nimport * as dialog from '@zag-js/dialog';\nimport { useMachine, normalizeProps } from '@zag-js/react';\nimport { useId } from 'react';\nimport { useEnvironmentContext } from '../../providers/environment/use-environment-context.js';\nimport { useLocaleContext } from '../../providers/locale/use-locale-context.js';\n\nconst useDialog = (props) => {\n const id = useId();\n const { getRootNode } = useEnvironmentContext();\n const { dir } = useLocaleContext();\n const machineProps = {\n id,\n getRootNode,\n dir,\n ...props\n };\n const service = useMachine(dialog.machine, machineProps);\n return dialog.connect(service, normalizeProps);\n};\n\nexport { useDialog };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { useDialog } from './use-dialog.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRoot = (props) => {\n const [presenceProps, { children, ...localProps }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const dialog = useDialog(localProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRoot };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { splitRenderStrategyProps, RenderStrategyPropsProvider } from '../../utils/render-strategy.js';\nimport { splitPresenceProps } from '../presence/split-presence-props.js';\nimport { usePresence } from '../presence/use-presence.js';\nimport { PresenceProvider } from '../presence/use-presence-context.js';\nimport { DialogProvider } from './use-dialog-context.js';\n\nconst DialogRootProvider = (props) => {\n const [presenceProps, { value: dialog, children }] = splitPresenceProps(props);\n const [renderStrategyProps] = splitRenderStrategyProps(presenceProps);\n const presence = usePresence(mergeProps({ present: dialog.open }, presenceProps));\n return /* @__PURE__ */ jsx(DialogProvider, { value: dialog, children: /* @__PURE__ */ jsx(RenderStrategyPropsProvider, { value: renderStrategyProps, children: /* @__PURE__ */ jsx(PresenceProvider, { value: presence, children }) }) });\n};\n\nexport { DialogRootProvider };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTitle = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const mergedProps = mergeProps(dialog.getTitleProps(), props);\n return /* @__PURE__ */ jsx(ark.h2, { ...mergedProps, ref });\n});\nDialogTitle.displayName = \"DialogTitle\";\n\nexport { DialogTitle };\n","'use client';\nimport { jsx } from 'react/jsx-runtime';\nimport { mergeProps } from '@zag-js/react';\nimport { forwardRef } from 'react';\nimport { ark } from '../factory.js';\nimport { usePresenceContext } from '../presence/use-presence-context.js';\nimport { useDialogContext } from './use-dialog-context.js';\n\nconst DialogTrigger = forwardRef((props, ref) => {\n const dialog = useDialogContext();\n const presence = usePresenceContext();\n const mergedProps = mergeProps(\n {\n ...dialog.getTriggerProps(),\n \"aria-controls\": presence.unmounted ? void 0 : dialog.getTriggerProps()[\"aria-controls\"]\n },\n props\n );\n return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });\n});\nDialogTrigger.displayName = \"DialogTrigger\";\n\nexport { DialogTrigger };\n","\"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"],"names":["DialogProvider","useDialogContext","createContext","DialogBackdrop","forwardRef","props","ref","dialog","renderStrategyProps","useRenderStrategyPropsContext","presence","usePresence","mergedProps","mergeProps","jsx","ark","composeRefs","DialogCloseTrigger","DialogContent","usePresenceContext","DialogContext","DialogDescription","DialogPositioner","useDialog","id","useId","getRootNode","useEnvironmentContext","dir","useLocaleContext","machineProps","service","useMachine","dialog.machine","dialog.connect","normalizeProps","DialogRoot","presenceProps","children","localProps","splitPresenceProps","splitRenderStrategyProps","RenderStrategyPropsProvider","PresenceProvider","DialogRootProvider","DialogTitle","DialogTrigger","withRootProvider","withContext","PropsProvider","createSlotRecipeContext","Dialog.RootProvider","Dialog.Root","DialogPropsProvider","Dialog.Trigger","Dialog.Positioner","Dialog.Content","Dialog.Description","Dialog.Title","Dialog.CloseTrigger","DialogActionTrigger","chakra","Dialog.Backdrop","DialogBody","DialogFooter","DialogHeader","Dialog.Context"],"mappings":";;;;;;;;AAGK,MAAC,CAACA,GAAgBC,CAAgB,IAAIC,EAAc;AAAA,EACvD,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAChB,CAAC,GCGKC,IAAiBC,EAAW,CAACC,GAAOC,MAAQ;AAChD,QAAMC,IAASN,EAAkB,GAC3BO,IAAsBC,EAA+B,GACrDC,IAAWC,EAAY,EAAE,GAAGH,GAAqB,SAAS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,GAAM,CAAA,GACxFrC,KAAgB8B;AAAA,EACpBQ;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB,GACMnC,KAAoB2B,EAAYS,GAAoB,eAAe,EAAE,gBAAgB,GAAM,CAAA,GAC3FZ,KAAcG;AAAA,EAClBU;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB,GACMzC,KAAqB+B,EAAYW,GAAqB,gBAAgB,EAAE,gBAAgB,GAAM,CAAA,GAC9FC,KAAsBxD,EAAW,SAA8BC,GAAOC,GAAK;AAC/E,QAAMC,IAASN,EAAkB;AACjC,SAAuBa,gBAAAA,MAAI+C,EAAO,QAAQ,EAAE,GAAGxD,GAAO,KAAAC,GAAK,SAAS,MAAMC,EAAO,QAAQ,EAAK,EAAC,CAAE;AACnG,CAAC,GACKJ,KAAiB6C;AAAA,EACrBc;AAAAA,EACA;AAAA,EACA,EAAE,gBAAgB,GAAI;AACxB,GACMC,KAAaf;AAAA,EACjB;AAAA,EACA;AACF,GACMgB,KAAehB;AAAA,EACnB;AAAA,EACA;AACF,GACMiB,KAAejB;AAAA,EACnB;AAAA,EACA;AACF,GACM5B,KAAgB8C;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}
|
|
@@ -8,7 +8,7 @@ import { W as qe } from "./textInput.component-DcGfaX6z.js";
|
|
|
8
8
|
import { S as Je } from "./spinner.component-gmb3jWCv.js";
|
|
9
9
|
import { B as O } from "./box-Ck9I7FYv.js";
|
|
10
10
|
import { u as Qe } from "./usePortalContentRef-DO_jc4W9.js";
|
|
11
|
-
import { W as Ue, u as Xe } from "./checkbox.component-
|
|
11
|
+
import { W as Ue, u as Xe } from "./checkbox.component-D5LmbbC6.js";
|
|
12
12
|
import { c as N, f as g, a as w, u as W, h as Ye, i as Ze, j as et, k as tt, n as nt, s as re, l as se, m as ae, P as ot } from "./use-locale-context-BNU4MHrO.js";
|
|
13
13
|
import { c as rt } from "./create-slot-recipe-context-BJmsuxih.js";
|
|
14
14
|
import { b as st } from "./icons-BXxdrBrf.js";
|
|
@@ -596,4 +596,4 @@ const Ct = ({
|
|
|
596
596
|
export {
|
|
597
597
|
bt as M
|
|
598
598
|
};
|
|
599
|
-
//# sourceMappingURL=menu.component-
|
|
599
|
+
//# sourceMappingURL=menu.component-BlQ8OB2z.js.map
|