@sparrowengg/integrations-templates-frontend 1.9.1 → 1.9.2

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.
Files changed (76) hide show
  1. package/dist/cjs/commons/components/draftModal.js +40 -0
  2. package/dist/cjs/commons/components/draftModal.js.map +1 -0
  3. package/dist/cjs/integration-template/components/dashboard.js +230 -133
  4. package/dist/cjs/integration-template/components/dashboard.js.map +1 -1
  5. package/dist/cjs/integration-template/index.js +28 -1
  6. package/dist/cjs/integration-template/index.js.map +1 -1
  7. package/dist/cjs/mapping/index.js +7 -1
  8. package/dist/cjs/mapping/index.js.map +1 -1
  9. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/alert-dialog/alert-dialog.js +114 -0
  10. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/alert-dialog/alert-dialog.js.map +1 -0
  11. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +8 -2
  12. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js.map +1 -1
  13. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-alert.js +119 -0
  14. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-alert.js.map +1 -0
  15. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-confirm.js +133 -0
  16. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-confirm.js.map +1 -0
  17. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-modal.js +117 -0
  18. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-modal.js.map +1 -0
  19. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/index.js +110 -0
  20. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/index.js.map +1 -0
  21. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/store.js +49 -0
  22. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/store.js.map +1 -0
  23. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/grid/grid.js +83 -0
  24. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/grid/grid.js.map +1 -0
  25. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-alert-dialog/dist/index.js +184 -0
  26. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -0
  27. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +4 -0
  28. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
  29. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/close.js +86 -0
  30. package/dist/cjs/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/close.js.map +1 -0
  31. package/dist/cjs/triggers/components/subcomponents.js +160 -25
  32. package/dist/cjs/triggers/components/subcomponents.js.map +1 -1
  33. package/dist/cjs/triggers/components/trigger.js +1 -0
  34. package/dist/cjs/triggers/components/trigger.js.map +1 -1
  35. package/dist/cjs/triggers/constants/index.js.map +1 -1
  36. package/dist/cjs/triggers/index.js +7 -12
  37. package/dist/cjs/triggers/index.js.map +1 -1
  38. package/dist/es/commons/components/draftModal.js +36 -0
  39. package/dist/es/commons/components/draftModal.js.map +1 -0
  40. package/dist/es/integration-template/components/dashboard.js +230 -133
  41. package/dist/es/integration-template/components/dashboard.js.map +1 -1
  42. package/dist/es/integration-template/index.js +28 -1
  43. package/dist/es/integration-template/index.js.map +1 -1
  44. package/dist/es/mapping/index.js +7 -1
  45. package/dist/es/mapping/index.js.map +1 -1
  46. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/alert-dialog/alert-dialog.js +106 -0
  47. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/alert-dialog/alert-dialog.js.map +1 -0
  48. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js +7 -4
  49. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialog.js.map +1 -1
  50. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-alert.js +117 -0
  51. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-alert.js.map +1 -0
  52. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-confirm.js +131 -0
  53. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-confirm.js.map +1 -0
  54. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-modal.js +115 -0
  55. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/default-modal.js.map +1 -0
  56. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/index.js +107 -0
  57. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/index.js.map +1 -0
  58. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/store.js +46 -0
  59. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/dialog/dialogs-manager/store.js.map +1 -0
  60. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/grid/grid.js +81 -0
  61. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/grid/grid.js.map +1 -0
  62. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-alert-dialog/dist/index.js +146 -0
  63. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -0
  64. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js +3 -1
  65. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -1
  66. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/close.js +84 -0
  67. package/dist/es/node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/close.js.map +1 -0
  68. package/dist/es/triggers/components/subcomponents.js +160 -25
  69. package/dist/es/triggers/components/subcomponents.js.map +1 -1
  70. package/dist/es/triggers/components/trigger.js +1 -0
  71. package/dist/es/triggers/components/trigger.js.map +1 -1
  72. package/dist/es/triggers/constants/index.js.map +1 -1
  73. package/dist/es/triggers/index.js +8 -13
  74. package/dist/es/triggers/index.js.map +1 -1
  75. package/dist/index.d.ts +2 -1
  76. package/package.json +1 -1
@@ -0,0 +1,184 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var index = require('../../react-context/dist/index.js');
5
+ var index$2 = require('../../react-compose-refs/dist/index.js');
6
+ var index$1 = require('../../react-dialog/dist/index.js');
7
+ var index$3 = require('../../primitive/dist/index.js');
8
+ var index$4 = require('../../react-slot/dist/index.js');
9
+ var jsxRuntime = require('react/jsx-runtime');
10
+
11
+ function _interopNamespaceDefault(e) {
12
+ var n = Object.create(null);
13
+ if (e) {
14
+ Object.keys(e).forEach(function (k) {
15
+ if (k !== 'default') {
16
+ var d = Object.getOwnPropertyDescriptor(e, k);
17
+ Object.defineProperty(n, k, d.get ? d : {
18
+ enumerable: true,
19
+ get: function () { return e[k]; }
20
+ });
21
+ }
22
+ });
23
+ }
24
+ n.default = e;
25
+ return Object.freeze(n);
26
+ }
27
+
28
+ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
29
+
30
+ var ROOT_NAME = "AlertDialog";
31
+ var [createAlertDialogContext, createAlertDialogScope] = index.createContextScope(ROOT_NAME, [
32
+ index$1.createDialogScope
33
+ ]);
34
+ var useDialogScope = index$1.createDialogScope();
35
+ var AlertDialog = (props) => {
36
+ const { __scopeAlertDialog, ...alertDialogProps } = props;
37
+ const dialogScope = useDialogScope(__scopeAlertDialog);
38
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Root, { ...dialogScope, ...alertDialogProps, modal: true });
39
+ };
40
+ AlertDialog.displayName = ROOT_NAME;
41
+ var TRIGGER_NAME = "AlertDialogTrigger";
42
+ var AlertDialogTrigger = React__namespace.forwardRef(
43
+ (props, forwardedRef) => {
44
+ const { __scopeAlertDialog, ...triggerProps } = props;
45
+ const dialogScope = useDialogScope(__scopeAlertDialog);
46
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });
47
+ }
48
+ );
49
+ AlertDialogTrigger.displayName = TRIGGER_NAME;
50
+ var PORTAL_NAME = "AlertDialogPortal";
51
+ var AlertDialogPortal = (props) => {
52
+ const { __scopeAlertDialog, ...portalProps } = props;
53
+ const dialogScope = useDialogScope(__scopeAlertDialog);
54
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Portal, { ...dialogScope, ...portalProps });
55
+ };
56
+ AlertDialogPortal.displayName = PORTAL_NAME;
57
+ var OVERLAY_NAME = "AlertDialogOverlay";
58
+ var AlertDialogOverlay = React__namespace.forwardRef(
59
+ (props, forwardedRef) => {
60
+ const { __scopeAlertDialog, ...overlayProps } = props;
61
+ const dialogScope = useDialogScope(__scopeAlertDialog);
62
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });
63
+ }
64
+ );
65
+ AlertDialogOverlay.displayName = OVERLAY_NAME;
66
+ var CONTENT_NAME = "AlertDialogContent";
67
+ var [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);
68
+ var AlertDialogContent = React__namespace.forwardRef(
69
+ (props, forwardedRef) => {
70
+ const { __scopeAlertDialog, children, ...contentProps } = props;
71
+ const dialogScope = useDialogScope(__scopeAlertDialog);
72
+ const contentRef = React__namespace.useRef(null);
73
+ const composedRefs = index$2.useComposedRefs(forwardedRef, contentRef);
74
+ const cancelRef = React__namespace.useRef(null);
75
+ return /* @__PURE__ */ jsxRuntime.jsx(
76
+ index$1.WarningProvider,
77
+ {
78
+ contentName: CONTENT_NAME,
79
+ titleName: TITLE_NAME,
80
+ docsSlug: "alert-dialog",
81
+ children: /* @__PURE__ */ jsxRuntime.jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxRuntime.jsxs(
82
+ index$1.Content,
83
+ {
84
+ role: "alertdialog",
85
+ ...dialogScope,
86
+ ...contentProps,
87
+ ref: composedRefs,
88
+ onOpenAutoFocus: index$3.composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {
89
+ event.preventDefault();
90
+ cancelRef.current?.focus({ preventScroll: true });
91
+ }),
92
+ onPointerDownOutside: (event) => event.preventDefault(),
93
+ onInteractOutside: (event) => event.preventDefault(),
94
+ children: [
95
+ /* @__PURE__ */ jsxRuntime.jsx(index$4.Slottable, { children }),
96
+ /* @__PURE__ */ jsxRuntime.jsx(DescriptionWarning, { contentRef })
97
+ ]
98
+ }
99
+ ) })
100
+ }
101
+ );
102
+ }
103
+ );
104
+ AlertDialogContent.displayName = CONTENT_NAME;
105
+ var TITLE_NAME = "AlertDialogTitle";
106
+ var AlertDialogTitle = React__namespace.forwardRef(
107
+ (props, forwardedRef) => {
108
+ const { __scopeAlertDialog, ...titleProps } = props;
109
+ const dialogScope = useDialogScope(__scopeAlertDialog);
110
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });
111
+ }
112
+ );
113
+ AlertDialogTitle.displayName = TITLE_NAME;
114
+ var DESCRIPTION_NAME = "AlertDialogDescription";
115
+ var AlertDialogDescription = React__namespace.forwardRef((props, forwardedRef) => {
116
+ const { __scopeAlertDialog, ...descriptionProps } = props;
117
+ const dialogScope = useDialogScope(__scopeAlertDialog);
118
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });
119
+ });
120
+ AlertDialogDescription.displayName = DESCRIPTION_NAME;
121
+ var ACTION_NAME = "AlertDialogAction";
122
+ var AlertDialogAction = React__namespace.forwardRef(
123
+ (props, forwardedRef) => {
124
+ const { __scopeAlertDialog, ...actionProps } = props;
125
+ const dialogScope = useDialogScope(__scopeAlertDialog);
126
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });
127
+ }
128
+ );
129
+ AlertDialogAction.displayName = ACTION_NAME;
130
+ var CANCEL_NAME = "AlertDialogCancel";
131
+ var AlertDialogCancel = React__namespace.forwardRef(
132
+ (props, forwardedRef) => {
133
+ const { __scopeAlertDialog, ...cancelProps } = props;
134
+ const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);
135
+ const dialogScope = useDialogScope(__scopeAlertDialog);
136
+ const ref = index$2.useComposedRefs(forwardedRef, cancelRef);
137
+ return /* @__PURE__ */ jsxRuntime.jsx(index$1.Close, { ...dialogScope, ...cancelProps, ref });
138
+ }
139
+ );
140
+ AlertDialogCancel.displayName = CANCEL_NAME;
141
+ var DescriptionWarning = ({ contentRef }) => {
142
+ const MESSAGE = `\`${CONTENT_NAME}\` requires a description for the component to be accessible for screen reader users.
143
+
144
+ You can add a description to the \`${CONTENT_NAME}\` by passing a \`${DESCRIPTION_NAME}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
145
+
146
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${CONTENT_NAME}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
147
+
148
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
149
+ React__namespace.useEffect(() => {
150
+ const hasDescription = document.getElementById(
151
+ contentRef.current?.getAttribute("aria-describedby")
152
+ );
153
+ if (!hasDescription) console.warn(MESSAGE);
154
+ }, [MESSAGE, contentRef]);
155
+ return null;
156
+ };
157
+ var Root2 = AlertDialog;
158
+ var Portal2 = AlertDialogPortal;
159
+ var Overlay2 = AlertDialogOverlay;
160
+ var Content2 = AlertDialogContent;
161
+ var Action = AlertDialogAction;
162
+ var Cancel = AlertDialogCancel;
163
+ var Title2 = AlertDialogTitle;
164
+ var Description2 = AlertDialogDescription;
165
+
166
+ exports.Action = Action;
167
+ exports.AlertDialog = AlertDialog;
168
+ exports.AlertDialogAction = AlertDialogAction;
169
+ exports.AlertDialogCancel = AlertDialogCancel;
170
+ exports.AlertDialogContent = AlertDialogContent;
171
+ exports.AlertDialogDescription = AlertDialogDescription;
172
+ exports.AlertDialogOverlay = AlertDialogOverlay;
173
+ exports.AlertDialogPortal = AlertDialogPortal;
174
+ exports.AlertDialogTitle = AlertDialogTitle;
175
+ exports.AlertDialogTrigger = AlertDialogTrigger;
176
+ exports.Cancel = Cancel;
177
+ exports.Content = Content2;
178
+ exports.Description = Description2;
179
+ exports.Overlay = Overlay2;
180
+ exports.Portal = Portal2;
181
+ exports.Root = Root2;
182
+ exports.Title = Title2;
183
+ exports.createAlertDialogScope = createAlertDialogScope;
184
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-alert-dialog/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { createContextScope } from '../../react-context/dist/index.js';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { createDialogScope, Trigger, Overlay, WarningProvider, Content, Title, Description, Close, Root, Portal } from '../../react-dialog/dist/index.js';\nimport { composeEventHandlers } from '../../primitive/dist/index.js';\nimport { Slottable } from '../../react-slot/dist/index.js';\nimport { jsx, jsxs } from 'react/jsx-runtime';\n\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\n\nexport { Action, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Cancel, Content2 as Content, Description2 as Description, Overlay2 as Overlay, Portal2 as Portal, Root2 as Root, Title2 as Title, Trigger2 as Trigger, createAlertDialogScope };\n//# sourceMappingURL=index.js.map\n"],"names":["createContextScope","createDialogScope","jsx","Root","React","Trigger","Portal","Overlay","useComposedRefs","WarningProvider","jsxs","Content","composeEventHandlers","Slottable","Title","Description","Close"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAI,SAAS,GAAG,aAAa,CAAC;AAC3B,IAAC,CAAC,wBAAwB,EAAE,sBAAsB,CAAC,GAAGA,wBAAkB,CAAC,SAAS,EAAE;AACvF,EAAEC,yBAAiB;AACnB,CAAC,EAAE;AACH,IAAI,cAAc,GAAGA,yBAAiB,EAAE,CAAC;AACtC,IAAC,WAAW,GAAG,CAAC,KAAK,KAAK;AAC7B,EAAE,MAAM,EAAE,kBAAkB,EAAE,GAAG,gBAAgB,EAAE,GAAG,KAAK,CAAC;AAC5D,EAAE,MAAM,WAAW,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AACzD,EAAE,uBAAuBC,cAAG,CAACC,YAAI,EAAE,EAAE,GAAG,WAAW,EAAE,GAAG,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AACzF,EAAE;AACF,WAAW,CAAC,WAAW,GAAG,SAAS,CAAC;AACpC,IAAI,YAAY,GAAG,oBAAoB,CAAC;AACrC,IAAC,kBAAkB,GAAGC,gBAAK,CAAC,UAAU;AACzC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK;AAC3B,IAAI,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,GAAG,KAAK,CAAC;AAC1D,IAAI,MAAM,WAAW,GAAG,cAAc,CAAC,kBAAkB,CAAC,CAAC;AAC3D,IAAI,uBAAuBF,cAAG,CAACG,eAAO,EAAE,EAAE,GAAG,WAAW,EAAE,GAAG,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC;AAChG,GAAG;AACH,EAAE;AACF,kBAAk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YAAY,CAAC,kBAAkB,CAAC;AAC1D,KAAK,CAAC;AACN,IAAI,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC/C,GAAG,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AAC5B,EAAE,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AACC,IAAC,KAAK,GAAG,YAAY;AAErB,IAAC,OAAO,GAAG,kBAAkB;AAC7B,IAAC,QAAQ,GAAG,mBAAmB;AAC/B,IAAC,QAAQ,GAAG,mBAAmB;AAC/B,IAAC,MAAM,GAAG,kBAAkB;AAC5B,IAAC,MAAM,GAAG,kBAAkB;AAC5B,IAAC,MAAM,GAAG,iBAAiB;AAC3B,IAAC,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -329,12 +329,15 @@ var DescriptionWarning = ({ contentRef, descriptionId }) => {
329
329
  return null;
330
330
  };
331
331
  var Root = Dialog;
332
+ var Trigger = DialogTrigger;
332
333
  var Portal = DialogPortal;
333
334
  var Overlay = DialogOverlay;
334
335
  var Content = DialogContent;
335
336
  var Title = DialogTitle;
336
337
  var Description = DialogDescription;
338
+ var Close = DialogClose;
337
339
 
340
+ exports.Close = Close;
338
341
  exports.Content = Content;
339
342
  exports.Description = Description;
340
343
  exports.Dialog = Dialog;
@@ -349,6 +352,7 @@ exports.Overlay = Overlay;
349
352
  exports.Portal = Portal;
350
353
  exports.Root = Root;
351
354
  exports.Title = Title;
355
+ exports.Trigger = Trigger;
352
356
  exports.WarningProvider = WarningProvider;
353
357
  exports.createDialogScope = createDialogScope;
354
358
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/node_modules/@radix-ui/react-dialog/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { composeEventHandlers } from '../../primitive/dist/index.js';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { createContextScope, createContext as createContext2 } from '../../react-context/dist/index.js';\nimport { useId } from '../../react-id/dist/index.js';\nimport { useControllableState } from '../../react-use-controllable-state/dist/index.js';\nimport { DismissableLayer } from '../../react-dismissable-layer/dist/index.js';\nimport { FocusScope } from '../../react-focus-scope/dist/index.js';\nimport { Portal as Portal$1 } from '../../react-portal/dist/index.js';\nimport { Presence } from '../../react-presence/dist/index.js';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useFocusGuards } from '../../react-focus-guards/dist/index.js';\nimport RemoveScroll from '../../../react-remove-scroll/dist/es2015/Combination.js';\nimport { hideOthers } from '../../../aria-hidden/dist/es2015/index.js';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx, jsxs, Fragment } from 'react/jsx-runtime';\n\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\n\nexport { Close, Content, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };\n//# sourceMappingURL=index.js.map\n"],"names":["createContextScope","React","useControllableState","jsx","useId","useComposedRefs","Primitive","composeEventHandlers","Presence","Portal$1","RemoveScroll","Slot","hideOthers","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","createContext2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAI,WAAW,GAAG,QAAQ,CAAC;AACxB,IAAC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAGA,wBAAkB,CAAC,WAAW,EAAE;AAC/E,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AACvE,IAAC,MAAM,GAAG,CAAC,KAAK,KAAK;AACxB,EAAE,MAAM;AACR,IAAI,aAA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dist/es/node_modules/@radix-ui/react-dialog/dist/index.js"],"sourcesContent":["import * as React from 'react';\nimport { composeEventHandlers } from '../../primitive/dist/index.js';\nimport { useComposedRefs } from '../../react-compose-refs/dist/index.js';\nimport { createContextScope, createContext as createContext2 } from '../../react-context/dist/index.js';\nimport { useId } from '../../react-id/dist/index.js';\nimport { useControllableState } from '../../react-use-controllable-state/dist/index.js';\nimport { DismissableLayer } from '../../react-dismissable-layer/dist/index.js';\nimport { FocusScope } from '../../react-focus-scope/dist/index.js';\nimport { Portal as Portal$1 } from '../../react-portal/dist/index.js';\nimport { Presence } from '../../react-presence/dist/index.js';\nimport { Primitive } from '../../react-primitive/dist/index.js';\nimport { useFocusGuards } from '../../react-focus-guards/dist/index.js';\nimport RemoveScroll from '../../../react-remove-scroll/dist/es2015/Combination.js';\nimport { hideOthers } from '../../../aria-hidden/dist/es2015/index.js';\nimport { Slot } from '../../react-slot/dist/index.js';\nimport { jsx, jsxs, Fragment } from 'react/jsx-runtime';\n\nvar DIALOG_NAME = \"Dialog\";\nvar [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);\nvar [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);\nvar Dialog = (props) => {\n const {\n __scopeDialog,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n modal = true\n } = props;\n const triggerRef = React.useRef(null);\n const contentRef = React.useRef(null);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n DialogProvider,\n {\n scope: __scopeDialog,\n triggerRef,\n contentRef,\n contentId: useId(),\n titleId: useId(),\n descriptionId: useId(),\n open,\n onOpenChange: setOpen,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n modal,\n children\n }\n );\n};\nDialog.displayName = DIALOG_NAME;\nvar TRIGGER_NAME = \"DialogTrigger\";\nvar DialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...triggerProps } = props;\n const context = useDialogContext(TRIGGER_NAME, __scopeDialog);\n const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": context.open,\n \"aria-controls\": context.contentId,\n \"data-state\": getState(context.open),\n ...triggerProps,\n ref: composedTriggerRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"DialogPortal\";\nvar [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {\n forceMount: void 0\n});\nvar DialogPortal = (props) => {\n const { __scopeDialog, forceMount, children, container } = props;\n const context = useDialogContext(PORTAL_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(PortalProvider, { scope: __scopeDialog, forceMount, children: React.Children.map(children, (child) => /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(Portal$1, { asChild: true, container, children: child }) })) });\n};\nDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"DialogOverlay\";\nvar DialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);\n return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;\n }\n);\nDialogOverlay.displayName = OVERLAY_NAME;\nvar DialogOverlayImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...overlayProps } = props;\n const context = useDialogContext(OVERLAY_NAME, __scopeDialog);\n return (\n // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`\n // ie. when `Overlay` and `Content` are siblings\n /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n ...overlayProps,\n ref: forwardedRef,\n style: { pointerEvents: \"auto\", ...overlayProps.style }\n }\n ) })\n );\n }\n);\nvar CONTENT_NAME = \"DialogContent\";\nvar DialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);\n const { forceMount = portalContext.forceMount, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });\n }\n);\nDialogContent.displayName = CONTENT_NAME;\nvar DialogContentModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);\n React.useEffect(() => {\n const content = contentRef.current;\n if (content) return hideOthers(content);\n }, []);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: composedRefs,\n trapFocus: context.open,\n disableOutsidePointerEvents: true,\n onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {\n event.preventDefault();\n context.triggerRef.current?.focus();\n }),\n onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {\n const originalEvent = event.detail.originalEvent;\n const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n const isRightClick = originalEvent.button === 2 || ctrlLeftClick;\n if (isRightClick) event.preventDefault();\n }),\n onFocusOutside: composeEventHandlers(\n props.onFocusOutside,\n (event) => event.preventDefault()\n )\n }\n );\n }\n);\nvar DialogContentNonModal = React.forwardRef(\n (props, forwardedRef) => {\n const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);\n const hasInteractedOutsideRef = React.useRef(false);\n const hasPointerDownOutsideRef = React.useRef(false);\n return /* @__PURE__ */ jsx(\n DialogContentImpl,\n {\n ...props,\n ref: forwardedRef,\n trapFocus: false,\n disableOutsidePointerEvents: false,\n onCloseAutoFocus: (event) => {\n props.onCloseAutoFocus?.(event);\n if (!event.defaultPrevented) {\n if (!hasInteractedOutsideRef.current) context.triggerRef.current?.focus();\n event.preventDefault();\n }\n hasInteractedOutsideRef.current = false;\n hasPointerDownOutsideRef.current = false;\n },\n onInteractOutside: (event) => {\n props.onInteractOutside?.(event);\n if (!event.defaultPrevented) {\n hasInteractedOutsideRef.current = true;\n if (event.detail.originalEvent.type === \"pointerdown\") {\n hasPointerDownOutsideRef.current = true;\n }\n }\n const target = event.target;\n const targetIsTrigger = context.triggerRef.current?.contains(target);\n if (targetIsTrigger) event.preventDefault();\n if (event.detail.originalEvent.type === \"focusin\" && hasPointerDownOutsideRef.current) {\n event.preventDefault();\n }\n }\n }\n );\n }\n);\nvar DialogContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;\n const context = useDialogContext(CONTENT_NAME, __scopeDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n useFocusGuards();\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n loop: true,\n trapped: trapFocus,\n onMountAutoFocus: onOpenAutoFocus,\n onUnmountAutoFocus: onCloseAutoFocus,\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n role: \"dialog\",\n id: context.contentId,\n \"aria-describedby\": context.descriptionId,\n \"aria-labelledby\": context.titleId,\n \"data-state\": getState(context.open),\n ...contentProps,\n ref: composedRefs,\n onDismiss: () => context.onOpenChange(false)\n }\n )\n }\n ),\n /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })\n ] })\n ] });\n }\n);\nvar TITLE_NAME = \"DialogTitle\";\nvar DialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...titleProps } = props;\n const context = useDialogContext(TITLE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });\n }\n);\nDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"DialogDescription\";\nvar DialogDescription = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...descriptionProps } = props;\n const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });\n }\n);\nDialogDescription.displayName = DESCRIPTION_NAME;\nvar CLOSE_NAME = \"DialogClose\";\nvar DialogClose = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeDialog, ...closeProps } = props;\n const context = useDialogContext(CLOSE_NAME, __scopeDialog);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n ...closeProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))\n }\n );\n }\n);\nDialogClose.displayName = CLOSE_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar TITLE_WARNING_NAME = \"DialogTitleWarning\";\nvar [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"dialog\"\n});\nvar TitleWarning = ({ titleId }) => {\n const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);\n const MESSAGE = `\\`${titleWarningContext.contentName}\\` requires a \\`${titleWarningContext.titleName}\\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \\`${titleWarningContext.titleName}\\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;\n React.useEffect(() => {\n if (titleId) {\n const hasTitle = document.getElementById(titleId);\n if (!hasTitle) console.error(MESSAGE);\n }\n }, [MESSAGE, titleId]);\n return null;\n};\nvar DESCRIPTION_WARNING_NAME = \"DialogDescriptionWarning\";\nvar DescriptionWarning = ({ contentRef, descriptionId }) => {\n const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);\n const MESSAGE = `Warning: Missing \\`Description\\` or \\`aria-describedby={undefined}\\` for {${descriptionWarningContext.contentName}}.`;\n React.useEffect(() => {\n const describedById = contentRef.current?.getAttribute(\"aria-describedby\");\n if (descriptionId && describedById) {\n const hasDescription = document.getElementById(descriptionId);\n if (!hasDescription) console.warn(MESSAGE);\n }\n }, [MESSAGE, contentRef, descriptionId]);\n return null;\n};\nvar Root = Dialog;\nvar Trigger = DialogTrigger;\nvar Portal = DialogPortal;\nvar Overlay = DialogOverlay;\nvar Content = DialogContent;\nvar Title = DialogTitle;\nvar Description = DialogDescription;\nvar Close = DialogClose;\n\nexport { Close, Content, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Overlay, Portal, Root, Title, Trigger, WarningProvider, createDialogScope };\n//# sourceMappingURL=index.js.map\n"],"names":["createContextScope","React","useControllableState","jsx","useId","useComposedRefs","Primitive","composeEventHandlers","Presence","Portal$1","RemoveScroll","Slot","hideOthers","useFocusGuards","jsxs","Fragment","FocusScope","DismissableLayer","createContext2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,IAAI,WAAW,GAAG,QAAQ,CAAC;AACxB,IAAC,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAGA,wBAAkB,CAAC,WAAW,EAAE;AAC/E,IAAI,CAAC,cAAc,EAAE,gBAAgB,CAAC,GAAG,mB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AY;AACrB,IAAC,WAAW,GAAG,kBAAkB;AACjC,IAAC,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var React = require('react');
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __defProps = Object.defineProperties;
8
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ const CloseIcon = /* @__PURE__ */ React.forwardRef(
38
+ (_a, ref) => {
39
+ var _b = _a, {
40
+ color = "currentColor",
41
+ size = 32,
42
+ strokeWidth = 1.5
43
+ } = _b, rest = __objRest(_b, [
44
+ "color",
45
+ "size",
46
+ "strokeWidth"
47
+ ]);
48
+ return /* @__PURE__ */ jsxRuntime.jsxs(
49
+ "svg",
50
+ __spreadProps(__spreadValues({
51
+ viewBox: "0 0 32 32",
52
+ fill: "none",
53
+ xmlns: "http://www.w3.org/2000/svg"
54
+ }, rest), {
55
+ width: size,
56
+ height: size,
57
+ ref,
58
+ children: [
59
+ /* @__PURE__ */ jsxRuntime.jsx(
60
+ "path",
61
+ {
62
+ d: "M10.6667 10.6667L21.3333 21.3333",
63
+ stroke: color,
64
+ strokeWidth,
65
+ strokeLinecap: "round",
66
+ strokeLinejoin: "round"
67
+ }
68
+ ),
69
+ /* @__PURE__ */ jsxRuntime.jsx(
70
+ "path",
71
+ {
72
+ d: "M21.3333 10.6667L10.6667 21.3333",
73
+ stroke: color,
74
+ strokeWidth,
75
+ strokeLinecap: "round",
76
+ strokeLinejoin: "round"
77
+ }
78
+ )
79
+ ]
80
+ })
81
+ );
82
+ }
83
+ );
84
+
85
+ exports.CloseIcon = CloseIcon;
86
+ //# sourceMappingURL=close.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"close.js","sources":["../../../../../../../../../../../../../../node_modules/@sparrowengg/twigs-react/dist/es/packages/react-icons/dist/es/icons/close.js"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport React__default from 'react';\n\nvar __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nconst CloseIcon = /* @__PURE__ */ React__default.forwardRef(\n (_a, ref) => {\n var _b = _a, {\n color = \"currentColor\",\n size = 32,\n strokeWidth = 1.5\n } = _b, rest = __objRest(_b, [\n \"color\",\n \"size\",\n \"strokeWidth\"\n ]);\n return /* @__PURE__ */ jsxs(\n \"svg\",\n __spreadProps(__spreadValues({\n viewBox: \"0 0 32 32\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, rest), {\n width: size,\n height: size,\n ref,\n children: [\n /* @__PURE__ */ jsx(\n \"path\",\n {\n d: \"M10.6667 10.6667L21.3333 21.3333\",\n stroke: color,\n strokeWidth,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }\n ),\n /* @__PURE__ */ jsx(\n \"path\",\n {\n d: \"M21.3333 10.6667L10.6667 21.3333\",\n stroke: color,\n strokeWidth,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }\n )\n ]\n })\n );\n }\n);\n\nexport { CloseIcon };\n//# sourceMappingURL=close.js.map\n"],"names":["React__default","jsxs","jsx"],"mappings":";;;;;AAGA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC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