@addsign/moje-agenda-shared-lib 2.0.4 → 2.0.5

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 (69) hide show
  1. package/dist/Dialog-BtXGfOmv.js +423 -0
  2. package/dist/Dialog-BtXGfOmv.js.map +1 -0
  3. package/dist/assets/style.css +15 -0
  4. package/dist/components/datatable/DataTable.js +2 -1
  5. package/dist/components/datatable/DataTable.js.map +1 -1
  6. package/dist/components/datatable/DataTableServer.js +2 -1
  7. package/dist/components/datatable/DataTableServer.js.map +1 -1
  8. package/dist/components/form/AutocompleteSearchBar.js +2 -1
  9. package/dist/components/form/AutocompleteSearchBar.js.map +1 -1
  10. package/dist/components/form/AutocompleteSearchBarServer.js +2 -1
  11. package/dist/components/form/AutocompleteSearchBarServer.js.map +1 -1
  12. package/dist/components/form/FileInput.js +3 -2
  13. package/dist/components/form/FileInput.js.map +1 -1
  14. package/dist/components/form/FileInputMultiple.js +3 -2
  15. package/dist/components/form/FileInputMultiple.js.map +1 -1
  16. package/dist/components/form/FormField.js +2 -1
  17. package/dist/components/form/FormField.js.map +1 -1
  18. package/dist/components/form/PositionsSelectorSingle.js +2 -1
  19. package/dist/components/form/PositionsSelectorSingle.js.map +1 -1
  20. package/dist/components/form/SelectField.js +2 -1
  21. package/dist/components/form/SelectField.js.map +1 -1
  22. package/dist/components/profiles/ProfileOverview.js +2 -1
  23. package/dist/components/profiles/ProfileOverview.js.map +1 -1
  24. package/dist/components/ui/Combobox.js +17 -7
  25. package/dist/components/ui/Combobox.js.map +1 -1
  26. package/dist/components/ui/Dialog.js +1 -1
  27. package/dist/components/ui/ScrollArea.js +2 -2
  28. package/dist/components/ui/checkbox.d.ts +4 -0
  29. package/dist/components/ui/checkbox.js +180 -0
  30. package/dist/components/ui/checkbox.js.map +1 -0
  31. package/dist/components/ui/command.js +2 -2
  32. package/dist/components/ui/popover.js +7 -6
  33. package/dist/components/ui/popover.js.map +1 -1
  34. package/dist/components/ui/radioGroup.js +7 -5
  35. package/dist/components/ui/radioGroup.js.map +1 -1
  36. package/dist/components/ui/select.js +8 -6
  37. package/dist/components/ui/select.js.map +1 -1
  38. package/dist/components/ui/tooltip.js +6 -5
  39. package/dist/components/ui/tooltip.js.map +1 -1
  40. package/dist/index-BLOUFOiQ.js +2266 -0
  41. package/dist/index-BLOUFOiQ.js.map +1 -0
  42. package/dist/index-CA2QNu6z.js +131 -0
  43. package/dist/index-CA2QNu6z.js.map +1 -0
  44. package/dist/index-CAxGI0Uw.js +230 -0
  45. package/dist/index-CAxGI0Uw.js.map +1 -0
  46. package/dist/index-CDCkSjVs.js +110 -0
  47. package/dist/index-CDCkSjVs.js.map +1 -0
  48. package/dist/index-CDlDRp01.js +1173 -0
  49. package/dist/index-CDlDRp01.js.map +1 -0
  50. package/dist/index-CshadhlS.js +15 -0
  51. package/dist/index-CshadhlS.js.map +1 -0
  52. package/dist/index-DFSwSCB0.js +47 -0
  53. package/dist/index-DFSwSCB0.js.map +1 -0
  54. package/dist/index-Deoi9R3y.js +15 -0
  55. package/dist/index-Deoi9R3y.js.map +1 -0
  56. package/dist/index-DjvLSytK.js +2203 -0
  57. package/dist/index-DjvLSytK.js.map +1 -0
  58. package/dist/index-E5yk6fTE.js +129 -0
  59. package/dist/index-E5yk6fTE.js.map +1 -0
  60. package/dist/index-pLFWXSOv.js +40 -0
  61. package/dist/index-pLFWXSOv.js.map +1 -0
  62. package/dist/main.d.ts +1 -0
  63. package/dist/main.js +3 -1
  64. package/dist/main.js.map +1 -1
  65. package/lib/components/ui/Combobox.tsx +18 -7
  66. package/lib/components/ui/checkbox.tsx +30 -0
  67. package/lib/main.ts +1 -0
  68. package/package.json +4 -2
  69. package/tailwind.config.js +97 -0
@@ -0,0 +1,423 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { c as createContextScope, b as composeEventHandlers, d as createContext2 } from "./index-CDCkSjVs.js";
4
+ import { u as useComposedRefs, S as Slot } from "./index-D9mvqz1C.js";
5
+ import { u as useId } from "./index-Deoi9R3y.js";
6
+ import { u as useControllableState } from "./index-DFSwSCB0.js";
7
+ import { D as DismissableLayer } from "./index-CAxGI0Uw.js";
8
+ import { R as ReactRemoveScroll, h as hideOthers, u as useFocusGuards, F as FocusScope, P as Portal$1 } from "./index-CDlDRp01.js";
9
+ import { P as Presence } from "./index-CA2QNu6z.js";
10
+ import { P as Primitive } from "./index-B761_inZ.js";
11
+ import { cn } from "./utils/utils.js";
12
+ import { X } from "./x-DciOkaU0.js";
13
+ var DIALOG_NAME = "Dialog";
14
+ var [createDialogContext, createDialogScope] = createContextScope(DIALOG_NAME);
15
+ var [DialogProvider, useDialogContext] = createDialogContext(DIALOG_NAME);
16
+ var Dialog$1 = (props) => {
17
+ const {
18
+ __scopeDialog,
19
+ children,
20
+ open: openProp,
21
+ defaultOpen,
22
+ onOpenChange,
23
+ modal = true
24
+ } = props;
25
+ const triggerRef = React.useRef(null);
26
+ const contentRef = React.useRef(null);
27
+ const [open = false, setOpen] = useControllableState({
28
+ prop: openProp,
29
+ defaultProp: defaultOpen,
30
+ onChange: onOpenChange
31
+ });
32
+ return /* @__PURE__ */ jsx(
33
+ DialogProvider,
34
+ {
35
+ scope: __scopeDialog,
36
+ triggerRef,
37
+ contentRef,
38
+ contentId: useId(),
39
+ titleId: useId(),
40
+ descriptionId: useId(),
41
+ open,
42
+ onOpenChange: setOpen,
43
+ onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
44
+ modal,
45
+ children
46
+ }
47
+ );
48
+ };
49
+ Dialog$1.displayName = DIALOG_NAME;
50
+ var TRIGGER_NAME = "DialogTrigger";
51
+ var DialogTrigger$1 = React.forwardRef(
52
+ (props, forwardedRef) => {
53
+ const { __scopeDialog, ...triggerProps } = props;
54
+ const context = useDialogContext(TRIGGER_NAME, __scopeDialog);
55
+ const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
56
+ return /* @__PURE__ */ jsx(
57
+ Primitive.button,
58
+ {
59
+ type: "button",
60
+ "aria-haspopup": "dialog",
61
+ "aria-expanded": context.open,
62
+ "aria-controls": context.contentId,
63
+ "data-state": getState(context.open),
64
+ ...triggerProps,
65
+ ref: composedTriggerRef,
66
+ onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
67
+ }
68
+ );
69
+ }
70
+ );
71
+ DialogTrigger$1.displayName = TRIGGER_NAME;
72
+ var PORTAL_NAME = "DialogPortal";
73
+ var [PortalProvider, usePortalContext] = createDialogContext(PORTAL_NAME, {
74
+ forceMount: void 0
75
+ });
76
+ var DialogPortal$1 = (props) => {
77
+ const { __scopeDialog, forceMount, children, container } = props;
78
+ const context = useDialogContext(PORTAL_NAME, __scopeDialog);
79
+ 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 }) })) });
80
+ };
81
+ DialogPortal$1.displayName = PORTAL_NAME;
82
+ var OVERLAY_NAME = "DialogOverlay";
83
+ var DialogOverlay$1 = React.forwardRef(
84
+ (props, forwardedRef) => {
85
+ const portalContext = usePortalContext(OVERLAY_NAME, props.__scopeDialog);
86
+ const { forceMount = portalContext.forceMount, ...overlayProps } = props;
87
+ const context = useDialogContext(OVERLAY_NAME, props.__scopeDialog);
88
+ return context.modal ? /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsx(DialogOverlayImpl, { ...overlayProps, ref: forwardedRef }) }) : null;
89
+ }
90
+ );
91
+ DialogOverlay$1.displayName = OVERLAY_NAME;
92
+ var DialogOverlayImpl = React.forwardRef(
93
+ (props, forwardedRef) => {
94
+ const { __scopeDialog, ...overlayProps } = props;
95
+ const context = useDialogContext(OVERLAY_NAME, __scopeDialog);
96
+ return (
97
+ // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
98
+ // ie. when `Overlay` and `Content` are siblings
99
+ /* @__PURE__ */ jsx(ReactRemoveScroll, { as: Slot, allowPinchZoom: true, shards: [context.contentRef], children: /* @__PURE__ */ jsx(
100
+ Primitive.div,
101
+ {
102
+ "data-state": getState(context.open),
103
+ ...overlayProps,
104
+ ref: forwardedRef,
105
+ style: { pointerEvents: "auto", ...overlayProps.style }
106
+ }
107
+ ) })
108
+ );
109
+ }
110
+ );
111
+ var CONTENT_NAME = "DialogContent";
112
+ var DialogContent$1 = React.forwardRef(
113
+ (props, forwardedRef) => {
114
+ const portalContext = usePortalContext(CONTENT_NAME, props.__scopeDialog);
115
+ const { forceMount = portalContext.forceMount, ...contentProps } = props;
116
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
117
+ return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ jsx(DialogContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(DialogContentNonModal, { ...contentProps, ref: forwardedRef }) });
118
+ }
119
+ );
120
+ DialogContent$1.displayName = CONTENT_NAME;
121
+ var DialogContentModal = React.forwardRef(
122
+ (props, forwardedRef) => {
123
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
124
+ const contentRef = React.useRef(null);
125
+ const composedRefs = useComposedRefs(forwardedRef, context.contentRef, contentRef);
126
+ React.useEffect(() => {
127
+ const content = contentRef.current;
128
+ if (content)
129
+ return hideOthers(content);
130
+ }, []);
131
+ return /* @__PURE__ */ jsx(
132
+ DialogContentImpl,
133
+ {
134
+ ...props,
135
+ ref: composedRefs,
136
+ trapFocus: context.open,
137
+ disableOutsidePointerEvents: true,
138
+ onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event) => {
139
+ var _a;
140
+ event.preventDefault();
141
+ (_a = context.triggerRef.current) == null ? void 0 : _a.focus();
142
+ }),
143
+ onPointerDownOutside: composeEventHandlers(props.onPointerDownOutside, (event) => {
144
+ const originalEvent = event.detail.originalEvent;
145
+ const ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;
146
+ const isRightClick = originalEvent.button === 2 || ctrlLeftClick;
147
+ if (isRightClick)
148
+ event.preventDefault();
149
+ }),
150
+ onFocusOutside: composeEventHandlers(
151
+ props.onFocusOutside,
152
+ (event) => event.preventDefault()
153
+ )
154
+ }
155
+ );
156
+ }
157
+ );
158
+ var DialogContentNonModal = React.forwardRef(
159
+ (props, forwardedRef) => {
160
+ const context = useDialogContext(CONTENT_NAME, props.__scopeDialog);
161
+ const hasInteractedOutsideRef = React.useRef(false);
162
+ const hasPointerDownOutsideRef = React.useRef(false);
163
+ return /* @__PURE__ */ jsx(
164
+ DialogContentImpl,
165
+ {
166
+ ...props,
167
+ ref: forwardedRef,
168
+ trapFocus: false,
169
+ disableOutsidePointerEvents: false,
170
+ onCloseAutoFocus: (event) => {
171
+ var _a, _b;
172
+ (_a = props.onCloseAutoFocus) == null ? void 0 : _a.call(props, event);
173
+ if (!event.defaultPrevented) {
174
+ if (!hasInteractedOutsideRef.current)
175
+ (_b = context.triggerRef.current) == null ? void 0 : _b.focus();
176
+ event.preventDefault();
177
+ }
178
+ hasInteractedOutsideRef.current = false;
179
+ hasPointerDownOutsideRef.current = false;
180
+ },
181
+ onInteractOutside: (event) => {
182
+ var _a, _b;
183
+ (_a = props.onInteractOutside) == null ? void 0 : _a.call(props, event);
184
+ if (!event.defaultPrevented) {
185
+ hasInteractedOutsideRef.current = true;
186
+ if (event.detail.originalEvent.type === "pointerdown") {
187
+ hasPointerDownOutsideRef.current = true;
188
+ }
189
+ }
190
+ const target = event.target;
191
+ const targetIsTrigger = (_b = context.triggerRef.current) == null ? void 0 : _b.contains(target);
192
+ if (targetIsTrigger)
193
+ event.preventDefault();
194
+ if (event.detail.originalEvent.type === "focusin" && hasPointerDownOutsideRef.current) {
195
+ event.preventDefault();
196
+ }
197
+ }
198
+ }
199
+ );
200
+ }
201
+ );
202
+ var DialogContentImpl = React.forwardRef(
203
+ (props, forwardedRef) => {
204
+ const { __scopeDialog, trapFocus, onOpenAutoFocus, onCloseAutoFocus, ...contentProps } = props;
205
+ const context = useDialogContext(CONTENT_NAME, __scopeDialog);
206
+ const contentRef = React.useRef(null);
207
+ const composedRefs = useComposedRefs(forwardedRef, contentRef);
208
+ useFocusGuards();
209
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
210
+ /* @__PURE__ */ jsx(
211
+ FocusScope,
212
+ {
213
+ asChild: true,
214
+ loop: true,
215
+ trapped: trapFocus,
216
+ onMountAutoFocus: onOpenAutoFocus,
217
+ onUnmountAutoFocus: onCloseAutoFocus,
218
+ children: /* @__PURE__ */ jsx(
219
+ DismissableLayer,
220
+ {
221
+ role: "dialog",
222
+ id: context.contentId,
223
+ "aria-describedby": context.descriptionId,
224
+ "aria-labelledby": context.titleId,
225
+ "data-state": getState(context.open),
226
+ ...contentProps,
227
+ ref: composedRefs,
228
+ onDismiss: () => context.onOpenChange(false)
229
+ }
230
+ )
231
+ }
232
+ ),
233
+ /* @__PURE__ */ jsxs(Fragment, { children: [
234
+ /* @__PURE__ */ jsx(TitleWarning, { titleId: context.titleId }),
235
+ /* @__PURE__ */ jsx(DescriptionWarning, { contentRef, descriptionId: context.descriptionId })
236
+ ] })
237
+ ] });
238
+ }
239
+ );
240
+ var TITLE_NAME = "DialogTitle";
241
+ var DialogTitle$1 = React.forwardRef(
242
+ (props, forwardedRef) => {
243
+ const { __scopeDialog, ...titleProps } = props;
244
+ const context = useDialogContext(TITLE_NAME, __scopeDialog);
245
+ return /* @__PURE__ */ jsx(Primitive.h2, { id: context.titleId, ...titleProps, ref: forwardedRef });
246
+ }
247
+ );
248
+ DialogTitle$1.displayName = TITLE_NAME;
249
+ var DESCRIPTION_NAME = "DialogDescription";
250
+ var DialogDescription$1 = React.forwardRef(
251
+ (props, forwardedRef) => {
252
+ const { __scopeDialog, ...descriptionProps } = props;
253
+ const context = useDialogContext(DESCRIPTION_NAME, __scopeDialog);
254
+ return /* @__PURE__ */ jsx(Primitive.p, { id: context.descriptionId, ...descriptionProps, ref: forwardedRef });
255
+ }
256
+ );
257
+ DialogDescription$1.displayName = DESCRIPTION_NAME;
258
+ var CLOSE_NAME = "DialogClose";
259
+ var DialogClose$1 = React.forwardRef(
260
+ (props, forwardedRef) => {
261
+ const { __scopeDialog, ...closeProps } = props;
262
+ const context = useDialogContext(CLOSE_NAME, __scopeDialog);
263
+ return /* @__PURE__ */ jsx(
264
+ Primitive.button,
265
+ {
266
+ type: "button",
267
+ ...closeProps,
268
+ ref: forwardedRef,
269
+ onClick: composeEventHandlers(props.onClick, () => context.onOpenChange(false))
270
+ }
271
+ );
272
+ }
273
+ );
274
+ DialogClose$1.displayName = CLOSE_NAME;
275
+ function getState(open) {
276
+ return open ? "open" : "closed";
277
+ }
278
+ var TITLE_WARNING_NAME = "DialogTitleWarning";
279
+ var [WarningProvider, useWarningContext] = createContext2(TITLE_WARNING_NAME, {
280
+ contentName: CONTENT_NAME,
281
+ titleName: TITLE_NAME,
282
+ docsSlug: "dialog"
283
+ });
284
+ var TitleWarning = ({ titleId }) => {
285
+ const titleWarningContext = useWarningContext(TITLE_WARNING_NAME);
286
+ const MESSAGE = `\`${titleWarningContext.contentName}\` requires a \`${titleWarningContext.titleName}\` for the component to be accessible for screen reader users.
287
+
288
+ If you want to hide the \`${titleWarningContext.titleName}\`, you can wrap it with our VisuallyHidden component.
289
+
290
+ For more information, see https://radix-ui.com/primitives/docs/components/${titleWarningContext.docsSlug}`;
291
+ React.useEffect(() => {
292
+ if (titleId) {
293
+ const hasTitle = document.getElementById(titleId);
294
+ if (!hasTitle)
295
+ console.error(MESSAGE);
296
+ }
297
+ }, [MESSAGE, titleId]);
298
+ return null;
299
+ };
300
+ var DESCRIPTION_WARNING_NAME = "DialogDescriptionWarning";
301
+ var DescriptionWarning = ({ contentRef, descriptionId }) => {
302
+ const descriptionWarningContext = useWarningContext(DESCRIPTION_WARNING_NAME);
303
+ const MESSAGE = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${descriptionWarningContext.contentName}}.`;
304
+ React.useEffect(() => {
305
+ var _a;
306
+ const describedById = (_a = contentRef.current) == null ? void 0 : _a.getAttribute("aria-describedby");
307
+ if (descriptionId && describedById) {
308
+ const hasDescription = document.getElementById(descriptionId);
309
+ if (!hasDescription)
310
+ console.warn(MESSAGE);
311
+ }
312
+ }, [MESSAGE, contentRef, descriptionId]);
313
+ return null;
314
+ };
315
+ var Root = Dialog$1;
316
+ var Trigger = DialogTrigger$1;
317
+ var Portal = DialogPortal$1;
318
+ var Overlay = DialogOverlay$1;
319
+ var Content = DialogContent$1;
320
+ var Title = DialogTitle$1;
321
+ var Description = DialogDescription$1;
322
+ var Close = DialogClose$1;
323
+ const Dialog = Root;
324
+ const DialogTrigger = Trigger;
325
+ const DialogPortal = Portal;
326
+ const DialogClose = Close;
327
+ const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
328
+ Overlay,
329
+ {
330
+ ref,
331
+ className: cn(
332
+ "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
333
+ className
334
+ ),
335
+ ...props
336
+ }
337
+ ));
338
+ DialogOverlay.displayName = Overlay.displayName;
339
+ const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
340
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
341
+ /* @__PURE__ */ jsxs(
342
+ Content,
343
+ {
344
+ ref,
345
+ className: cn(
346
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
347
+ className
348
+ ),
349
+ ...props,
350
+ children: [
351
+ children,
352
+ /* @__PURE__ */ jsxs(Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
353
+ /* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
354
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
355
+ ] })
356
+ ]
357
+ }
358
+ )
359
+ ] }));
360
+ DialogContent.displayName = Content.displayName;
361
+ const DialogHeader = ({
362
+ className,
363
+ ...props
364
+ }) => /* @__PURE__ */ jsx(
365
+ "div",
366
+ {
367
+ className: cn("flex flex-col space-y-1.5 sm:text-left", className),
368
+ ...props
369
+ }
370
+ );
371
+ DialogHeader.displayName = "DialogHeader";
372
+ const DialogFooter = ({
373
+ className,
374
+ ...props
375
+ }) => /* @__PURE__ */ jsx(
376
+ "div",
377
+ {
378
+ className: cn(
379
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
380
+ className
381
+ ),
382
+ ...props
383
+ }
384
+ );
385
+ DialogFooter.displayName = "DialogFooter";
386
+ const DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
387
+ Title,
388
+ {
389
+ ref,
390
+ className: cn(
391
+ "text-lg font-semibold leading-none tracking-tight",
392
+ className
393
+ ),
394
+ ...props
395
+ }
396
+ ));
397
+ DialogTitle.displayName = Title.displayName;
398
+ const DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
399
+ Description,
400
+ {
401
+ ref,
402
+ className: cn("text-sm text-muted-foreground", className),
403
+ ...props
404
+ }
405
+ ));
406
+ DialogDescription.displayName = Description.displayName;
407
+ export {
408
+ Content as C,
409
+ Dialog as D,
410
+ Overlay as O,
411
+ Portal as P,
412
+ Root as R,
413
+ DialogPortal as a,
414
+ DialogOverlay as b,
415
+ DialogClose as c,
416
+ DialogTrigger as d,
417
+ DialogContent as e,
418
+ DialogHeader as f,
419
+ DialogFooter as g,
420
+ DialogTitle as h,
421
+ DialogDescription as i
422
+ };
423
+ //# sourceMappingURL=Dialog-BtXGfOmv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog-BtXGfOmv.js","sources":["../node_modules/@radix-ui/react-dialog/dist/index.mjs","../lib/components/ui/Dialog.tsx"],"sourcesContent":["\"use client\";\n\n// packages/react/dialog/src/Dialog.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContext, createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { hideOthers } from \"aria-hidden\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\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(PortalPrimitive, { 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] = createContext(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;\nexport {\n Close,\n Content,\n Description,\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogOverlay,\n DialogPortal,\n DialogTitle,\n DialogTrigger,\n Overlay,\n Portal,\n Root,\n Title,\n Trigger,\n WarningProvider,\n createDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\r\nimport { X } from \"lucide-react\";\r\nimport { cn } from \"../../utils/utils\";\r\n\r\nconst Dialog = DialogPrimitive.Root;\r\n\r\nconst DialogTrigger = DialogPrimitive.Trigger;\r\n\r\nconst DialogPortal = DialogPrimitive.Portal;\r\n\r\nconst DialogClose = DialogPrimitive.Close;\r\n\r\nconst DialogOverlay = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Overlay>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Overlay\r\n ref={ref}\r\n className={cn(\r\n \"fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n));\r\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\r\n\r\nconst DialogContent = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\r\n>(({ className, children, ...props }, ref) => (\r\n <DialogPortal>\r\n <DialogOverlay />\r\n <DialogPrimitive.Content\r\n ref={ref}\r\n className={cn(\r\n \"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg\",\r\n className\r\n )}\r\n {...props}\r\n >\r\n {children}\r\n <DialogPrimitive.Close className=\"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground\">\r\n <X className=\"h-4 w-4\" />\r\n <span className=\"sr-only\">Close</span>\r\n </DialogPrimitive.Close>\r\n </DialogPrimitive.Content>\r\n </DialogPortal>\r\n));\r\nDialogContent.displayName = DialogPrimitive.Content.displayName;\r\n\r\nconst DialogHeader = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\"flex flex-col space-y-1.5 sm:text-left\", className)}\r\n {...props}\r\n />\r\n);\r\nDialogHeader.displayName = \"DialogHeader\";\r\n\r\nconst DialogFooter = ({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) => (\r\n <div\r\n className={cn(\r\n \"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n);\r\nDialogFooter.displayName = \"DialogFooter\";\r\n\r\nconst DialogTitle = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Title>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Title\r\n ref={ref}\r\n className={cn(\r\n \"text-lg font-semibold leading-none tracking-tight\",\r\n className\r\n )}\r\n {...props}\r\n />\r\n));\r\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\r\n\r\nconst DialogDescription = React.forwardRef<\r\n React.ElementRef<typeof DialogPrimitive.Description>,\r\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\r\n>(({ className, ...props }, ref) => (\r\n <DialogPrimitive.Description\r\n ref={ref}\r\n className={cn(\"text-sm text-muted-foreground\", className)}\r\n {...props}\r\n />\r\n));\r\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\r\n\r\nexport {\r\n Dialog,\r\n DialogPortal,\r\n DialogOverlay,\r\n DialogClose,\r\n DialogTrigger,\r\n DialogContent,\r\n DialogHeader,\r\n DialogFooter,\r\n DialogTitle,\r\n DialogDescription,\r\n};\r\n"],"names":["Dialog","DialogTrigger","DialogPortal","PortalPrimitive","DialogOverlay","RemoveScroll","DialogContent","DialogTitle","DialogDescription","DialogClose","createContext","DialogPrimitive.Root","DialogPrimitive.Trigger","DialogPrimitive.Portal","DialogPrimitive.Close","DialogPrimitive.Overlay","DialogPrimitive.Content","DialogPrimitive.Title","DialogPrimitive.Description"],"mappings":";;;;;;;;;;;;AAmBA,IAAI,cAAc;AAClB,IAAI,CAAC,qBAAqB,iBAAiB,IAAI,mBAAmB,WAAW;AAC7E,IAAI,CAAC,gBAAgB,gBAAgB,IAAI,oBAAoB,WAAW;AACxE,IAAIA,WAAS,CAAC,UAAU;AACtB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,QAAQ;AAAA,EACT,IAAG;AACJ,QAAM,aAAa,MAAM,OAAO,IAAI;AACpC,QAAM,aAAa,MAAM,OAAO,IAAI;AACpC,QAAM,CAAC,OAAO,OAAO,OAAO,IAAI,qBAAqB;AAAA,IACnD,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,EACd,CAAG;AACD,SAAuB;AAAA,IACrB;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP;AAAA,MACA;AAAA,MACA,WAAW,MAAO;AAAA,MAClB,SAAS,MAAO;AAAA,MAChB,eAAe,MAAO;AAAA,MACtB;AAAA,MACA,cAAc;AAAA,MACd,cAAc,MAAM,YAAY,MAAM,QAAQ,CAAC,aAAa,CAAC,QAAQ,GAAG,CAAC,OAAO,CAAC;AAAA,MACjF;AAAA,MACA;AAAA,IACD;AAAA,EACL;AACA;AACAA,SAAO,cAAc;AACrB,IAAI,eAAe;AACnB,IAAIC,kBAAgB,MAAM;AAAA,EACxB,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,eAAe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,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAW,GAAG,iCAAiC,SAAS;AAAA,IACvD,GAAG;AAAA,EAAA;AACN,CACD;AACD,kBAAkB,cAAcA,YAA4B;","x_google_ignoreList":[0]}
@@ -1027,6 +1027,9 @@ video {
1027
1027
  .w-\[calc\(100\%-40px\)\] {
1028
1028
  width: calc(100% - 40px);
1029
1029
  }
1030
+ .w-\[var\(--radix-popover-trigger-width\)\] {
1031
+ width: var(--radix-popover-trigger-width);
1032
+ }
1030
1033
  .w-auto {
1031
1034
  width: auto;
1032
1035
  }
@@ -3709,6 +3712,12 @@ video {
3709
3712
 
3710
3713
 
3711
3714
 
3715
+ .data-\[state\=checked\]\:bg-primary[data-state=checked] {
3716
+ background-color: var(--color-primary);
3717
+ }
3718
+
3719
+
3720
+
3712
3721
  .data-\[state\=open\]\:bg-accent[data-state=open] {
3713
3722
  background-color: var(--accent);
3714
3723
  }
@@ -3721,6 +3730,12 @@ video {
3721
3730
 
3722
3731
 
3723
3732
 
3733
+ .data-\[state\=checked\]\:text-primary-foreground[data-state=checked] {
3734
+ color: var(--color-primary-text);
3735
+ }
3736
+
3737
+
3738
+
3724
3739
  .data-\[state\=open\]\:text-muted-foreground[data-state=open] {
3725
3740
  color: var(--muted-foreground);
3726
3741
  }
@@ -8,7 +8,7 @@ import Spinner from "../Spinner.js";
8
8
  import "../../index.esm-ifS8v9eQ.js";
9
9
  import "../../jspdf.plugin.autotable-7hp3hM-a.js";
10
10
  import "../../contexts/FederationContext.js";
11
- import "../../Dialog-CLPZ1Y00.js";
11
+ import "../../Dialog-BtXGfOmv.js";
12
12
  import "../ui/ScrollArea.js";
13
13
  import "../ui/input.js";
14
14
  import "../ui/form.js";
@@ -19,6 +19,7 @@ import "../ui/select.js";
19
19
  import "../ui/tooltip.js";
20
20
  import "../ui/separator.js";
21
21
  import "../ui/textarea.js";
22
+ import "../ui/checkbox.js";
22
23
  import "../ui/button.js";
23
24
  import "../../Calendar-DWT4e7Th.js";
24
25
  import "../ui/DateTimePicker.js";