atomos_next_genesis 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -74
- package/dist/index.js.map +1 -1
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// app/components/Accordion.tsx
|
|
2
|
-
import
|
|
2
|
+
import React, { useState, useEffect } from "react";
|
|
3
3
|
import { RiArrowDownSLine } from "@remixicon/react";
|
|
4
4
|
|
|
5
5
|
// app/utils/utils.tsx
|
|
@@ -17,10 +17,10 @@ function Accordion({
|
|
|
17
17
|
}) {
|
|
18
18
|
const [openItems, setOpenItems] = useState(() => {
|
|
19
19
|
const defaultOpen = [];
|
|
20
|
-
|
|
21
|
-
if (
|
|
22
|
-
const triggerChild =
|
|
23
|
-
if (
|
|
20
|
+
React.Children.forEach(children, (child) => {
|
|
21
|
+
if (React.isValidElement(child)) {
|
|
22
|
+
const triggerChild = React.Children.toArray(child.props.children)[0];
|
|
23
|
+
if (React.isValidElement(triggerChild) && triggerChild.props.defaultOpen) {
|
|
24
24
|
defaultOpen.push(child.props.value);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -31,8 +31,8 @@ function Accordion({
|
|
|
31
31
|
if (expanded !== void 0) {
|
|
32
32
|
if (expanded) {
|
|
33
33
|
const allValues = [];
|
|
34
|
-
|
|
35
|
-
if (
|
|
34
|
+
React.Children.forEach(children, (child) => {
|
|
35
|
+
if (React.isValidElement(child)) {
|
|
36
36
|
allValues.push(child.props.value);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -53,9 +53,9 @@ function Accordion({
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
if (
|
|
58
|
-
return
|
|
56
|
+
return /* @__PURE__ */ React.createElement("div", { className, role: "region", "aria-label": "Accordion" }, React.Children.map(children, (child) => {
|
|
57
|
+
if (React.isValidElement(child)) {
|
|
58
|
+
return React.cloneElement(
|
|
59
59
|
child,
|
|
60
60
|
{
|
|
61
61
|
openItems,
|
|
@@ -82,7 +82,7 @@ function AccordionItem({
|
|
|
82
82
|
handleToggle(value);
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
return /* @__PURE__ */
|
|
85
|
+
return /* @__PURE__ */ React.createElement(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
className: cn(
|
|
@@ -92,7 +92,7 @@ function AccordionItem({
|
|
|
92
92
|
className
|
|
93
93
|
)
|
|
94
94
|
},
|
|
95
|
-
children && Array.isArray(children) ? /* @__PURE__ */
|
|
95
|
+
children && Array.isArray(children) ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
96
96
|
"div",
|
|
97
97
|
{
|
|
98
98
|
onClick: toggle,
|
|
@@ -110,8 +110,8 @@ function AccordionItem({
|
|
|
110
110
|
id: headerId,
|
|
111
111
|
className: "cursor-pointer"
|
|
112
112
|
},
|
|
113
|
-
|
|
114
|
-
), /* @__PURE__ */
|
|
113
|
+
React.cloneElement(children[0], { isOpen })
|
|
114
|
+
), /* @__PURE__ */ React.createElement(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
117
|
id: contentId,
|
|
@@ -123,7 +123,7 @@ function AccordionItem({
|
|
|
123
123
|
),
|
|
124
124
|
onClick: (e) => e.stopPropagation()
|
|
125
125
|
},
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ React.createElement("div", { className: "p-3.5" }, children[1])
|
|
127
127
|
)) : children
|
|
128
128
|
);
|
|
129
129
|
}
|
|
@@ -131,9 +131,9 @@ function AccordionTrigger({
|
|
|
131
131
|
isOpen,
|
|
132
132
|
children,
|
|
133
133
|
className,
|
|
134
|
-
triggerIcon = /* @__PURE__ */
|
|
134
|
+
triggerIcon = /* @__PURE__ */ React.createElement(RiArrowDownSLine, { size: 18 })
|
|
135
135
|
}) {
|
|
136
|
-
return /* @__PURE__ */
|
|
136
|
+
return /* @__PURE__ */ React.createElement(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
className: cn(
|
|
@@ -143,7 +143,7 @@ function AccordionTrigger({
|
|
|
143
143
|
)
|
|
144
144
|
},
|
|
145
145
|
children,
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ React.createElement(
|
|
147
147
|
"span",
|
|
148
148
|
{
|
|
149
149
|
className: cn(
|
|
@@ -157,12 +157,12 @@ function AccordionTrigger({
|
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
function AccordionContent({ children }) {
|
|
160
|
-
return /* @__PURE__ */
|
|
160
|
+
return /* @__PURE__ */ React.createElement("div", { className: "text-gray-700" }, children);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// app/components/Avatar.tsx
|
|
164
164
|
import Image from "next/image";
|
|
165
|
-
import
|
|
165
|
+
import React2, { forwardRef } from "react";
|
|
166
166
|
var Avatar = forwardRef((props, ref) => {
|
|
167
167
|
const {
|
|
168
168
|
type,
|
|
@@ -184,7 +184,7 @@ var Avatar = forwardRef((props, ref) => {
|
|
|
184
184
|
lg: "w-16 h-16"
|
|
185
185
|
};
|
|
186
186
|
const displayText = type === "text" && props.text ? props.text.length === 2 ? props.text.toUpperCase() : props.text.split(" ").map((word) => word.charAt(0).toUpperCase()).join("").slice(0, 2) : "";
|
|
187
|
-
return /* @__PURE__ */
|
|
187
|
+
return /* @__PURE__ */ React2.createElement(
|
|
188
188
|
"div",
|
|
189
189
|
{
|
|
190
190
|
ref,
|
|
@@ -200,7 +200,7 @@ var Avatar = forwardRef((props, ref) => {
|
|
|
200
200
|
borderRadius: radius
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
|
-
type === "image" && /* @__PURE__ */
|
|
203
|
+
type === "image" && /* @__PURE__ */ React2.createElement(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
className: cn(
|
|
@@ -210,7 +210,7 @@ var Avatar = forwardRef((props, ref) => {
|
|
|
210
210
|
),
|
|
211
211
|
onClick
|
|
212
212
|
},
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ React2.createElement(
|
|
214
214
|
Image,
|
|
215
215
|
{
|
|
216
216
|
fill: true,
|
|
@@ -220,7 +220,7 @@ var Avatar = forwardRef((props, ref) => {
|
|
|
220
220
|
}
|
|
221
221
|
)
|
|
222
222
|
),
|
|
223
|
-
type === "icon" && /* @__PURE__ */
|
|
223
|
+
type === "icon" && /* @__PURE__ */ React2.createElement(
|
|
224
224
|
"div",
|
|
225
225
|
{
|
|
226
226
|
className: cn(
|
|
@@ -233,7 +233,7 @@ var Avatar = forwardRef((props, ref) => {
|
|
|
233
233
|
},
|
|
234
234
|
props.icon
|
|
235
235
|
),
|
|
236
|
-
type === "text" && /* @__PURE__ */
|
|
236
|
+
type === "text" && /* @__PURE__ */ React2.createElement(
|
|
237
237
|
"p",
|
|
238
238
|
{
|
|
239
239
|
onClick,
|
|
@@ -249,7 +249,7 @@ var Avatar = forwardRef((props, ref) => {
|
|
|
249
249
|
},
|
|
250
250
|
displayText
|
|
251
251
|
),
|
|
252
|
-
statusIcon && /* @__PURE__ */
|
|
252
|
+
statusIcon && /* @__PURE__ */ React2.createElement(
|
|
253
253
|
"span",
|
|
254
254
|
{
|
|
255
255
|
className: cn(
|
|
@@ -294,26 +294,26 @@ Avatar.displayName = "Avatar";
|
|
|
294
294
|
var Avatar_default = Avatar;
|
|
295
295
|
|
|
296
296
|
// app/components/AvatarGroup.tsx
|
|
297
|
-
import
|
|
297
|
+
import React3, { forwardRef as forwardRef2 } from "react";
|
|
298
298
|
var AvatarGroup = forwardRef2(
|
|
299
299
|
({ avatars, size = "md", max, className }, ref) => {
|
|
300
300
|
const displayAvatars = max ? avatars.slice(0, max) : avatars;
|
|
301
301
|
const remainingCount = max ? avatars.length - max : 0;
|
|
302
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ React3.createElement(
|
|
303
303
|
"div",
|
|
304
304
|
{
|
|
305
305
|
ref,
|
|
306
306
|
className: cn("flex -space-x-6 rtl:space-x-reverse", className)
|
|
307
307
|
},
|
|
308
|
-
displayAvatars.map((avatar, index) => /* @__PURE__ */
|
|
308
|
+
displayAvatars.map((avatar, index) => /* @__PURE__ */ React3.createElement(
|
|
309
309
|
"div",
|
|
310
310
|
{
|
|
311
311
|
className: "hover:-translate-x-3 transition-all duration-200",
|
|
312
312
|
key: index
|
|
313
313
|
},
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ React3.createElement(Avatar_default, { ...avatar, size })
|
|
315
315
|
)),
|
|
316
|
-
remainingCount > 0 && /* @__PURE__ */
|
|
316
|
+
remainingCount > 0 && /* @__PURE__ */ React3.createElement("div", null, /* @__PURE__ */ React3.createElement(
|
|
317
317
|
Avatar_default,
|
|
318
318
|
{
|
|
319
319
|
type: "text",
|
|
@@ -330,23 +330,23 @@ AvatarGroup.displayName = "AvatarGroup";
|
|
|
330
330
|
var AvatarGroup_default = AvatarGroup;
|
|
331
331
|
|
|
332
332
|
// app/components/Breadcrumb.tsx
|
|
333
|
-
import
|
|
333
|
+
import React4 from "react";
|
|
334
334
|
var Breadcrumbs = ({
|
|
335
335
|
children,
|
|
336
336
|
separator = "/",
|
|
337
337
|
"aria-label": ariaLabel,
|
|
338
338
|
containerClasses
|
|
339
339
|
}) => {
|
|
340
|
-
const items =
|
|
341
|
-
const isLast = index ===
|
|
342
|
-
return /* @__PURE__ */
|
|
340
|
+
const items = React4.Children.toArray(children).map((child, index) => {
|
|
341
|
+
const isLast = index === React4.Children.count(children) - 1;
|
|
342
|
+
return /* @__PURE__ */ React4.createElement("span", { key: index, className: "flex items-center text-text-xs text-gray-700 font-semibold" }, child, !isLast && /* @__PURE__ */ React4.createElement("span", { className: "mx-[6px]" }, separator));
|
|
343
343
|
});
|
|
344
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ React4.createElement("nav", { "aria-label": ariaLabel, className: `flex items-center text-text-xs text-gray-700 font-semibold ${containerClasses}` }, items);
|
|
345
345
|
};
|
|
346
346
|
var Breadcrumb_default = Breadcrumbs;
|
|
347
347
|
|
|
348
348
|
// app/components/Button.tsx
|
|
349
|
-
import
|
|
349
|
+
import React5 from "react";
|
|
350
350
|
import { cva } from "class-variance-authority";
|
|
351
351
|
var buttonVariants = cva(
|
|
352
352
|
"rounded-lg disabled:select-none font-semibold cursor-pointer transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",
|
|
@@ -427,7 +427,7 @@ var Button = ({
|
|
|
427
427
|
// {children}
|
|
428
428
|
// {endIcon}
|
|
429
429
|
// </button>
|
|
430
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ React5.createElement(
|
|
431
431
|
"button",
|
|
432
432
|
{
|
|
433
433
|
...props,
|
|
@@ -440,9 +440,9 @@ var Button = ({
|
|
|
440
440
|
"flex items-center text-center justify-center gap-2"
|
|
441
441
|
)
|
|
442
442
|
},
|
|
443
|
-
startIcon && /* @__PURE__ */
|
|
443
|
+
startIcon && /* @__PURE__ */ React5.createElement("span", { "aria-hidden": "true" }, startIcon),
|
|
444
444
|
children,
|
|
445
|
-
endIcon && /* @__PURE__ */
|
|
445
|
+
endIcon && /* @__PURE__ */ React5.createElement("span", { "aria-hidden": "true" }, endIcon)
|
|
446
446
|
)
|
|
447
447
|
);
|
|
448
448
|
};
|
|
@@ -450,7 +450,7 @@ var Button_default = Button;
|
|
|
450
450
|
|
|
451
451
|
// app/components/Callout.tsx
|
|
452
452
|
import { cva as cva2 } from "class-variance-authority";
|
|
453
|
-
import
|
|
453
|
+
import React6 from "react";
|
|
454
454
|
var calloutVariants = cva2("py-3 px-4 font-medium rounded-md", {
|
|
455
455
|
variants: {
|
|
456
456
|
variant: {
|
|
@@ -538,7 +538,7 @@ var Callout = ({
|
|
|
538
538
|
endIcon,
|
|
539
539
|
className
|
|
540
540
|
}) => {
|
|
541
|
-
return /* @__PURE__ */
|
|
541
|
+
return /* @__PURE__ */ React6.createElement(
|
|
542
542
|
"div",
|
|
543
543
|
{
|
|
544
544
|
role: "alert",
|
|
@@ -548,38 +548,38 @@ var Callout = ({
|
|
|
548
548
|
className
|
|
549
549
|
)
|
|
550
550
|
},
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
endIcon && /* @__PURE__ */
|
|
551
|
+
/* @__PURE__ */ React6.createElement("div", { className: "flex items-center gap-2" }, startIcon && /* @__PURE__ */ React6.createElement("span", null, startIcon), children),
|
|
552
|
+
endIcon && /* @__PURE__ */ React6.createElement("span", null, endIcon)
|
|
553
553
|
);
|
|
554
554
|
};
|
|
555
555
|
var Callout_default = Callout;
|
|
556
556
|
|
|
557
557
|
// app/components/Card.tsx
|
|
558
|
-
import
|
|
558
|
+
import React7 from "react";
|
|
559
559
|
function Card_default({ children, className }) {
|
|
560
|
-
return /* @__PURE__ */
|
|
560
|
+
return /* @__PURE__ */ React7.createElement("div", { className: cn("bg-white rounded-lg border border-gray-200 shadow-sm", className) }, children);
|
|
561
561
|
}
|
|
562
562
|
var CardHeader = ({ children, className }) => {
|
|
563
|
-
return /* @__PURE__ */
|
|
563
|
+
return /* @__PURE__ */ React7.createElement("div", { className: cn("p-4 pb-4", className) }, children);
|
|
564
564
|
};
|
|
565
565
|
var CardTitle = ({ children, className }) => {
|
|
566
|
-
return /* @__PURE__ */
|
|
566
|
+
return /* @__PURE__ */ React7.createElement("h3", { className: cn("text-lg font-semibold text-gray-900 mb-2", className) }, children);
|
|
567
567
|
};
|
|
568
568
|
var CardDescription = ({ children, className }) => {
|
|
569
|
-
return /* @__PURE__ */
|
|
569
|
+
return /* @__PURE__ */ React7.createElement("p", { className: cn("text-sm text-gray-600 mb-4", className) }, children);
|
|
570
570
|
};
|
|
571
571
|
var CardAction = ({ children, className }) => {
|
|
572
|
-
return /* @__PURE__ */
|
|
572
|
+
return /* @__PURE__ */ React7.createElement("div", { className: cn("mt-4", className) }, children);
|
|
573
573
|
};
|
|
574
574
|
var CardContent = ({ children, className }) => {
|
|
575
|
-
return /* @__PURE__ */
|
|
575
|
+
return /* @__PURE__ */ React7.createElement("div", { className: cn("p-6 pt-0", className) }, children);
|
|
576
576
|
};
|
|
577
577
|
var CardFooter = ({ children, className }) => {
|
|
578
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ React7.createElement("div", { className: cn("p-6 pt-0", className) }, children);
|
|
579
579
|
};
|
|
580
580
|
|
|
581
581
|
// app/components/Checkbox.tsx
|
|
582
|
-
import
|
|
582
|
+
import React8, { forwardRef as forwardRef3 } from "react";
|
|
583
583
|
import { cva as cva3 } from "class-variance-authority";
|
|
584
584
|
var checkboxVariant = cva3(
|
|
585
585
|
"peer relative cursor-pointer appearance-none rounded-[4px] border border-gray-300 transition-all checked:border-primary-600 checked:bg-primary-50 hover:bg-primary-50 disabled:opacity-30 disabled:pointer-events-none",
|
|
@@ -598,7 +598,7 @@ var checkboxVariant = cva3(
|
|
|
598
598
|
);
|
|
599
599
|
var Checkbox = forwardRef3(
|
|
600
600
|
({ disabled, checked, size, className, children, id, ...props }, ref) => {
|
|
601
|
-
return /* @__PURE__ */
|
|
601
|
+
return /* @__PURE__ */ React8.createElement("div", { className: "inline-flex relative items-center" }, /* @__PURE__ */ React8.createElement(
|
|
602
602
|
"input",
|
|
603
603
|
{
|
|
604
604
|
type: "checkbox",
|
|
@@ -613,13 +613,13 @@ var Checkbox = forwardRef3(
|
|
|
613
613
|
"focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-offset-2"
|
|
614
614
|
)
|
|
615
615
|
}
|
|
616
|
-
), /* @__PURE__ */
|
|
616
|
+
), /* @__PURE__ */ React8.createElement(
|
|
617
617
|
"span",
|
|
618
618
|
{
|
|
619
619
|
"aria-hidden": "true",
|
|
620
620
|
className: "absolute text-primary-600 transition-opacity opacity-0 pointer-events-none top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 peer-checked:opacity-100"
|
|
621
621
|
},
|
|
622
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ React8.createElement(
|
|
623
623
|
"svg",
|
|
624
624
|
{
|
|
625
625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -629,7 +629,7 @@ var Checkbox = forwardRef3(
|
|
|
629
629
|
stroke: "currentColor",
|
|
630
630
|
strokeWidth: "1"
|
|
631
631
|
},
|
|
632
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ React8.createElement(
|
|
633
633
|
"path",
|
|
634
634
|
{
|
|
635
635
|
fillRule: "evenodd",
|
|
@@ -645,7 +645,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
645
645
|
var Checkbox_default = Checkbox;
|
|
646
646
|
|
|
647
647
|
// app/components/Chip.tsx
|
|
648
|
-
import
|
|
648
|
+
import React9 from "react";
|
|
649
649
|
import { cva as cva4 } from "class-variance-authority";
|
|
650
650
|
var chipVariants = cva4(
|
|
651
651
|
"inline-flex items-center w-fit gap-2 rounded-full capitalize",
|
|
@@ -707,14 +707,14 @@ var Chip = ({
|
|
|
707
707
|
...rest
|
|
708
708
|
}) => {
|
|
709
709
|
const resolvedIntent = intent ?? "default";
|
|
710
|
-
return /* @__PURE__ */
|
|
710
|
+
return /* @__PURE__ */ React9.createElement(
|
|
711
711
|
"span",
|
|
712
712
|
{
|
|
713
713
|
className: cn(chipVariants({ intent: resolvedIntent, size }), className),
|
|
714
714
|
...rest
|
|
715
715
|
},
|
|
716
|
-
startIcon && /* @__PURE__ */
|
|
717
|
-
!startIcon && dot && /* @__PURE__ */
|
|
716
|
+
startIcon && /* @__PURE__ */ React9.createElement("span", { "aria-hidden": "true" }, startIcon),
|
|
717
|
+
!startIcon && dot && /* @__PURE__ */ React9.createElement(
|
|
718
718
|
"span",
|
|
719
719
|
{
|
|
720
720
|
"aria-hidden": "true",
|
|
@@ -725,13 +725,13 @@ var Chip = ({
|
|
|
725
725
|
}
|
|
726
726
|
),
|
|
727
727
|
children,
|
|
728
|
-
endIcon && /* @__PURE__ */
|
|
728
|
+
endIcon && /* @__PURE__ */ React9.createElement("span", { "aria-hidden": "true" }, endIcon)
|
|
729
729
|
);
|
|
730
730
|
};
|
|
731
731
|
var Chip_default = Chip;
|
|
732
732
|
|
|
733
733
|
// app/components/CircularProgress.tsx
|
|
734
|
-
import
|
|
734
|
+
import React10 from "react";
|
|
735
735
|
var CircularProgressBar = ({
|
|
736
736
|
percentage,
|
|
737
737
|
size = 160,
|
|
@@ -743,7 +743,7 @@ var CircularProgressBar = ({
|
|
|
743
743
|
const viewBox = `0 0 ${size} ${size}`;
|
|
744
744
|
const dashArray = radius * Math.PI * 2;
|
|
745
745
|
const dashOffset = dashArray - dashArray * (percentage || 0) / 100;
|
|
746
|
-
return /* @__PURE__ */
|
|
746
|
+
return /* @__PURE__ */ React10.createElement("svg", { width: size, height: size, viewBox }, /* @__PURE__ */ React10.createElement(
|
|
747
747
|
"circle",
|
|
748
748
|
{
|
|
749
749
|
className: "fill-none stroke-gray-200",
|
|
@@ -752,7 +752,7 @@ var CircularProgressBar = ({
|
|
|
752
752
|
r: radius,
|
|
753
753
|
strokeWidth: `${strokeWidth}px`
|
|
754
754
|
}
|
|
755
|
-
), /* @__PURE__ */
|
|
755
|
+
), /* @__PURE__ */ React10.createElement(
|
|
756
756
|
"circle",
|
|
757
757
|
{
|
|
758
758
|
className: "fill-none stroke-primary-600 transition-all delay-200 ease-in",
|
|
@@ -767,7 +767,7 @@ var CircularProgressBar = ({
|
|
|
767
767
|
strokeDashoffset: dashOffset
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
), /* @__PURE__ */
|
|
770
|
+
), /* @__PURE__ */ React10.createElement(
|
|
771
771
|
"text",
|
|
772
772
|
{
|
|
773
773
|
x: "50%",
|
|
@@ -783,14 +783,14 @@ var CircularProgressBar = ({
|
|
|
783
783
|
var CircularProgress_default = CircularProgressBar;
|
|
784
784
|
|
|
785
785
|
// app/components/Divider.tsx
|
|
786
|
-
import
|
|
786
|
+
import React11 from "react";
|
|
787
787
|
var Divider = ({
|
|
788
788
|
width,
|
|
789
789
|
height,
|
|
790
790
|
position = "horizontal",
|
|
791
791
|
className
|
|
792
792
|
}) => {
|
|
793
|
-
return /* @__PURE__ */
|
|
793
|
+
return /* @__PURE__ */ React11.createElement(
|
|
794
794
|
"div",
|
|
795
795
|
{
|
|
796
796
|
style: {
|
|
@@ -808,7 +808,7 @@ var Divider = ({
|
|
|
808
808
|
var Divider_default = Divider;
|
|
809
809
|
|
|
810
810
|
// app/components/Drawer.tsx
|
|
811
|
-
import {
|
|
811
|
+
import React12, {
|
|
812
812
|
useCallback,
|
|
813
813
|
useEffect as useEffect2
|
|
814
814
|
} from "react";
|
|
@@ -839,7 +839,7 @@ var Drawer = ({
|
|
|
839
839
|
window.addEventListener("keydown", handleKeyDown);
|
|
840
840
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
841
841
|
}, [isOpen, handleClose]);
|
|
842
|
-
return /* @__PURE__ */
|
|
842
|
+
return /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement(
|
|
843
843
|
"div",
|
|
844
844
|
{
|
|
845
845
|
className: cn(
|
|
@@ -848,7 +848,7 @@ var Drawer = ({
|
|
|
848
848
|
),
|
|
849
849
|
onClick: () => closeOnOutsideClick && handleClose()
|
|
850
850
|
}
|
|
851
|
-
), /* @__PURE__ */
|
|
851
|
+
), /* @__PURE__ */ React12.createElement(
|
|
852
852
|
"div",
|
|
853
853
|
{
|
|
854
854
|
className: cn(
|
|
@@ -863,19 +863,19 @@ var Drawer = ({
|
|
|
863
863
|
),
|
|
864
864
|
onClick: (e) => e.stopPropagation()
|
|
865
865
|
},
|
|
866
|
-
showCloseButton && /* @__PURE__ */
|
|
866
|
+
showCloseButton && /* @__PURE__ */ React12.createElement(
|
|
867
867
|
Button_default,
|
|
868
868
|
{
|
|
869
869
|
size: "sm",
|
|
870
870
|
variant: "outlined",
|
|
871
871
|
intent: "default-outlined",
|
|
872
872
|
onClick: handleClose,
|
|
873
|
-
startIcon: /* @__PURE__ */
|
|
873
|
+
startIcon: /* @__PURE__ */ React12.createElement(RiCloseLine, { size: 20 }),
|
|
874
874
|
"aria-label": "Close drawer",
|
|
875
875
|
className: "absolute border-none p-1 transition-colors top-3 right-4"
|
|
876
876
|
}
|
|
877
877
|
),
|
|
878
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ React12.createElement("div", { className: "overflow-y-auto h-full" }, children)
|
|
879
879
|
));
|
|
880
880
|
};
|
|
881
881
|
var Drawer_default = Drawer;
|