@bestow-ui/react 0.9.0 → 0.10.0
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/README.md +2 -2
- package/dist/index.cjs +802 -331
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +460 -203
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +138 -2
- package/dist/index.d.ts +138 -2
- package/dist/index.js +801 -327
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -136,10 +136,10 @@ import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
|
136
136
|
function deepMerge(target, source) {
|
|
137
137
|
if (!source) return target;
|
|
138
138
|
const out = { ...target };
|
|
139
|
-
for (const [key,
|
|
140
|
-
if (
|
|
139
|
+
for (const [key, value4] of Object.entries(source)) {
|
|
140
|
+
if (value4 === void 0) continue;
|
|
141
141
|
const prev = out[key];
|
|
142
|
-
out[key] = typeof
|
|
142
|
+
out[key] = typeof value4 === "object" && typeof prev === "object" ? deepMerge(prev, value4) : value4;
|
|
143
143
|
}
|
|
144
144
|
return out;
|
|
145
145
|
}
|
|
@@ -158,11 +158,11 @@ function mergeThemes(a, b) {
|
|
|
158
158
|
return createTheme(a, b);
|
|
159
159
|
}
|
|
160
160
|
function flatten(partial, contract, out) {
|
|
161
|
-
for (const [key,
|
|
161
|
+
for (const [key, value4] of Object.entries(partial)) {
|
|
162
162
|
const target = contract[key];
|
|
163
163
|
if (target === void 0) continue;
|
|
164
|
-
if (typeof target === "string" && typeof
|
|
165
|
-
else if (typeof target === "object" && typeof
|
|
164
|
+
if (typeof target === "string" && typeof value4 === "string") out[target] = value4;
|
|
165
|
+
else if (typeof target === "object" && typeof value4 === "object") flatten(value4, target, out);
|
|
166
166
|
}
|
|
167
167
|
return out;
|
|
168
168
|
}
|
|
@@ -191,17 +191,17 @@ var ThemeProvider = /* @__PURE__ */ forwardRef(function ThemeProvider2({ theme:
|
|
|
191
191
|
const parent = useContext(ThemeContext);
|
|
192
192
|
const theme = themeProp ?? parent.theme;
|
|
193
193
|
const merged = useMemo(() => mergeThemes(parent.overrides, overrides), [parent.overrides, overrides]);
|
|
194
|
-
const
|
|
194
|
+
const value4 = useMemo(
|
|
195
195
|
() => ({ theme, overrides: merged, style: themeToStyle(merged, theme) }),
|
|
196
196
|
[theme, merged]
|
|
197
197
|
);
|
|
198
|
-
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value:
|
|
198
|
+
return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: value4, children: /* @__PURE__ */ jsx(
|
|
199
199
|
"div",
|
|
200
200
|
{
|
|
201
201
|
ref,
|
|
202
202
|
"data-theme": theme,
|
|
203
203
|
className: cx(themeClass[theme], root, className),
|
|
204
|
-
style:
|
|
204
|
+
style: value4.style ? { ...value4.style, ...style } : style,
|
|
205
205
|
...rest,
|
|
206
206
|
children
|
|
207
207
|
}
|
|
@@ -307,8 +307,8 @@ function getInitials(name) {
|
|
|
307
307
|
return (first(a) + first(b)).toUpperCase();
|
|
308
308
|
}
|
|
309
309
|
var Avatar = /* @__PURE__ */ forwardRef4(function Avatar2({ src, alt, name, fallback: fallback2, size, shape, className, ...rest }, ref) {
|
|
310
|
-
const
|
|
311
|
-
const a11y =
|
|
310
|
+
const label6 = alt ?? name;
|
|
311
|
+
const a11y = label6 ? { role: "img", "aria-label": label6 } : { "aria-hidden": true };
|
|
312
312
|
const initials = name ? getInitials(name) : "";
|
|
313
313
|
return /* @__PURE__ */ jsxs3(RadixAvatar.Root, { ref, className: cx(root3({ size, shape }), className), ...a11y, ...rest, children: [
|
|
314
314
|
src && /* @__PURE__ */ jsx4(RadixAvatar.Image, { src, alt: "", className: image }),
|
|
@@ -425,11 +425,11 @@ var spinner = /* @__PURE__ */ _7a4685({ defaultClassName: "_4b5tg40", variantCla
|
|
|
425
425
|
|
|
426
426
|
// src/components/Spinner/Spinner.tsx
|
|
427
427
|
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
428
|
-
var Spinner = /* @__PURE__ */ forwardRef8(function Spinner2({ size, color, label:
|
|
429
|
-
const a11y =
|
|
428
|
+
var Spinner = /* @__PURE__ */ forwardRef8(function Spinner2({ size, color, label: label6 = "\uB85C\uB529 \uC911", className, ...rest }, ref) {
|
|
429
|
+
const a11y = label6 ? { role: "status" } : { "aria-hidden": true };
|
|
430
430
|
return /* @__PURE__ */ jsxs7("span", { ref, className: cx(spinner({ size, color }), className), ...a11y, ...rest, children: [
|
|
431
431
|
/* @__PURE__ */ jsx8(LoaderIcon, { size: "100%" }),
|
|
432
|
-
|
|
432
|
+
label6 && /* @__PURE__ */ jsx8("span", { className: visuallyHidden, children: label6 })
|
|
433
433
|
] });
|
|
434
434
|
});
|
|
435
435
|
|
|
@@ -511,10 +511,10 @@ import { forwardRef as forwardRef11, useEffect, useRef } from "react";
|
|
|
511
511
|
|
|
512
512
|
// src/utils/mergeRefs.ts
|
|
513
513
|
function mergeRefs(...refs) {
|
|
514
|
-
return (
|
|
514
|
+
return (value4) => {
|
|
515
515
|
for (const ref of refs) {
|
|
516
|
-
if (typeof ref === "function") ref(
|
|
517
|
-
else if (ref) ref.current =
|
|
516
|
+
if (typeof ref === "function") ref(value4);
|
|
517
|
+
else if (ref) ref.current = value4;
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
520
|
}
|
|
@@ -529,7 +529,7 @@ var root4 = /* @__PURE__ */ _7a4688({ defaultClassName: "_1y7mzsn0", variantClas
|
|
|
529
529
|
|
|
530
530
|
// src/components/Checkbox/Checkbox.tsx
|
|
531
531
|
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
532
|
-
var Checkbox = /* @__PURE__ */ forwardRef11(function Checkbox2({ label:
|
|
532
|
+
var Checkbox = /* @__PURE__ */ forwardRef11(function Checkbox2({ label: label6, size, indeterminate = false, invalid, disabled, className, ...rest }, ref) {
|
|
533
533
|
const innerRef = useRef(null);
|
|
534
534
|
useEffect(() => {
|
|
535
535
|
if (innerRef.current) innerRef.current.indeterminate = indeterminate;
|
|
@@ -559,31 +559,302 @@ var Checkbox = /* @__PURE__ */ forwardRef11(function Checkbox2({ label: label5,
|
|
|
559
559
|
) }),
|
|
560
560
|
/* @__PURE__ */ jsx11("svg", { className: indeterminateIcon, viewBox: "0 0 20 20", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx11("path", { d: "M6 10h8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) })
|
|
561
561
|
] }),
|
|
562
|
-
|
|
562
|
+
label6
|
|
563
|
+
] });
|
|
564
|
+
});
|
|
565
|
+
|
|
566
|
+
// src/components/Combobox/Combobox.tsx
|
|
567
|
+
import * as Popover from "@radix-ui/react-popover";
|
|
568
|
+
import {
|
|
569
|
+
forwardRef as forwardRef12,
|
|
570
|
+
useEffect as useEffect2,
|
|
571
|
+
useId,
|
|
572
|
+
useMemo as useMemo2,
|
|
573
|
+
useRef as useRef2,
|
|
574
|
+
useState
|
|
575
|
+
} from "react";
|
|
576
|
+
import { CheckIcon, ChevronDownIcon as ChevronDownIcon2 } from "@bestow-ui/icons";
|
|
577
|
+
|
|
578
|
+
// src/components/Input/Input.css.ts
|
|
579
|
+
import { createRuntimeFn as _7a4689 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
580
|
+
var adornment = "_19p5zvh6";
|
|
581
|
+
var field = "_19p5zvh7";
|
|
582
|
+
var fieldFullWidth = "_19p5zvh8";
|
|
583
|
+
var helperText = /* @__PURE__ */ _7a4689({ defaultClassName: "_19p5zvhb", variantClassNames: { error: { true: "_19p5zvhc" } }, defaultVariants: {}, compoundVariants: [] });
|
|
584
|
+
var input2 = "_19p5zvh5";
|
|
585
|
+
var label = "_19p5zvh9";
|
|
586
|
+
var requiredMark = "_19p5zvha";
|
|
587
|
+
var root5 = /* @__PURE__ */ _7a4689({ defaultClassName: "_19p5zvh0", variantClassNames: { size: { sm: "_19p5zvh1", md: "_19p5zvh2", lg: "_19p5zvh3" }, fullWidth: { true: "_19p5zvh4" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
588
|
+
|
|
589
|
+
// src/components/Select/Select.css.ts
|
|
590
|
+
var content3 = "_1kx81e83";
|
|
591
|
+
var icon4 = "_1kx81e82";
|
|
592
|
+
var item3 = "_1kx81e85";
|
|
593
|
+
var itemIndicator = "_1kx81e86";
|
|
594
|
+
var trigger2 = "_1kx81e80";
|
|
595
|
+
var value = "_1kx81e81";
|
|
596
|
+
var viewport = "_1kx81e84";
|
|
597
|
+
|
|
598
|
+
// src/components/Combobox/Combobox.css.ts
|
|
599
|
+
var content4 = "c2pbq71";
|
|
600
|
+
var empty = "c2pbq72";
|
|
601
|
+
var toggle = "c2pbq70";
|
|
602
|
+
|
|
603
|
+
// src/components/Combobox/Combobox.tsx
|
|
604
|
+
import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
605
|
+
var defaultFilter = (option2, query) => option2.label.toLowerCase().includes(query.trim().toLowerCase());
|
|
606
|
+
var Combobox = /* @__PURE__ */ forwardRef12(function Combobox2(props, ref) {
|
|
607
|
+
const {
|
|
608
|
+
options,
|
|
609
|
+
value: value4,
|
|
610
|
+
defaultValue,
|
|
611
|
+
onValueChange,
|
|
612
|
+
filter = defaultFilter,
|
|
613
|
+
emptyMessage = "\uACB0\uACFC\uAC00 \uC5C6\uC5B4\uC694",
|
|
614
|
+
placeholder,
|
|
615
|
+
label: label6,
|
|
616
|
+
helperText: helperText3,
|
|
617
|
+
error,
|
|
618
|
+
size,
|
|
619
|
+
fullWidth,
|
|
620
|
+
disabled,
|
|
621
|
+
required,
|
|
622
|
+
name,
|
|
623
|
+
id,
|
|
624
|
+
"aria-label": ariaLabel,
|
|
625
|
+
toggleLabel = "\uBAA9\uB85D \uC5F4\uAE30",
|
|
626
|
+
className
|
|
627
|
+
} = props;
|
|
628
|
+
const generatedId = useId();
|
|
629
|
+
const inputId = id ?? generatedId;
|
|
630
|
+
const labelId = `${inputId}-label`;
|
|
631
|
+
const listId = `${inputId}-listbox`;
|
|
632
|
+
const helperId = helperText3 ? `${inputId}-helper` : void 0;
|
|
633
|
+
const optionId = (index) => `${inputId}-option-${index}`;
|
|
634
|
+
const portal2 = usePortalProps();
|
|
635
|
+
const inputRef = useRef2(null);
|
|
636
|
+
const anchorRef = useRef2(null);
|
|
637
|
+
const isControlled = "value" in props;
|
|
638
|
+
const [innerValue, setInnerValue] = useState(defaultValue);
|
|
639
|
+
const selectedValue = isControlled ? value4 : innerValue;
|
|
640
|
+
const selectedOption = options.find((o) => o.value === selectedValue);
|
|
641
|
+
const [open, setOpen] = useState(false);
|
|
642
|
+
const [query, setQuery] = useState(null);
|
|
643
|
+
const [activeIndex, setActiveIndex] = useState(-1);
|
|
644
|
+
const filtered = useMemo2(() => query ? options.filter((o) => filter(o, query)) : options, [options, filter, query]);
|
|
645
|
+
const inputText = query ?? selectedOption?.label ?? "";
|
|
646
|
+
const firstEnabled = (list4, from = 0, step = 1) => {
|
|
647
|
+
for (let i = from; i >= 0 && i < list4.length; i += step) if (!list4[i].disabled) return i;
|
|
648
|
+
return -1;
|
|
649
|
+
};
|
|
650
|
+
const openList = (list4 = filtered, preferLast = false) => {
|
|
651
|
+
setOpen(true);
|
|
652
|
+
const selectedIndex = list4.findIndex((o) => o.value === selectedValue);
|
|
653
|
+
setActiveIndex(
|
|
654
|
+
selectedIndex >= 0 && !list4[selectedIndex].disabled ? selectedIndex : preferLast ? firstEnabled(list4, list4.length - 1, -1) : firstEnabled(list4)
|
|
655
|
+
);
|
|
656
|
+
};
|
|
657
|
+
const close2 = () => {
|
|
658
|
+
setOpen(false);
|
|
659
|
+
setQuery(null);
|
|
660
|
+
setActiveIndex(-1);
|
|
661
|
+
};
|
|
662
|
+
const select = (option2) => {
|
|
663
|
+
if (option2.disabled) return;
|
|
664
|
+
if (!isControlled) setInnerValue(option2.value);
|
|
665
|
+
if (option2.value !== selectedValue) onValueChange?.(option2.value);
|
|
666
|
+
close2();
|
|
667
|
+
};
|
|
668
|
+
const move = (step) => {
|
|
669
|
+
const start = activeIndex < 0 ? step === 1 ? 0 : filtered.length - 1 : activeIndex + step;
|
|
670
|
+
const next = firstEnabled(filtered, start, step);
|
|
671
|
+
if (next >= 0) setActiveIndex(next);
|
|
672
|
+
};
|
|
673
|
+
const handleChange = (event) => {
|
|
674
|
+
const nextQuery = event.target.value;
|
|
675
|
+
const nextList = nextQuery ? options.filter((o) => filter(o, nextQuery)) : options;
|
|
676
|
+
setQuery(nextQuery);
|
|
677
|
+
setOpen(true);
|
|
678
|
+
setActiveIndex(firstEnabled(nextList));
|
|
679
|
+
};
|
|
680
|
+
const handleKeyDown = (event) => {
|
|
681
|
+
switch (event.key) {
|
|
682
|
+
case "ArrowDown":
|
|
683
|
+
event.preventDefault();
|
|
684
|
+
if (!open) openList();
|
|
685
|
+
else move(1);
|
|
686
|
+
break;
|
|
687
|
+
case "ArrowUp":
|
|
688
|
+
event.preventDefault();
|
|
689
|
+
if (!open) openList(filtered, true);
|
|
690
|
+
else move(-1);
|
|
691
|
+
break;
|
|
692
|
+
case "Enter":
|
|
693
|
+
if (open) {
|
|
694
|
+
event.preventDefault();
|
|
695
|
+
const option2 = filtered[activeIndex];
|
|
696
|
+
if (option2) select(option2);
|
|
697
|
+
}
|
|
698
|
+
break;
|
|
699
|
+
case "Escape":
|
|
700
|
+
if (open) {
|
|
701
|
+
event.preventDefault();
|
|
702
|
+
close2();
|
|
703
|
+
}
|
|
704
|
+
break;
|
|
705
|
+
case "Tab":
|
|
706
|
+
if (open) close2();
|
|
707
|
+
break;
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
useEffect2(() => {
|
|
711
|
+
if (!open || activeIndex < 0) return;
|
|
712
|
+
document.getElementById(optionId(activeIndex))?.scrollIntoView?.({ block: "nearest" });
|
|
713
|
+
}, [open, activeIndex]);
|
|
714
|
+
const hasOptions = filtered.length > 0;
|
|
715
|
+
return /* @__PURE__ */ jsxs10("div", { className: cx(field, fullWidth && fieldFullWidth), children: [
|
|
716
|
+
label6 && /* @__PURE__ */ jsxs10("label", { id: labelId, htmlFor: inputId, className: label, children: [
|
|
717
|
+
label6,
|
|
718
|
+
required && /* @__PURE__ */ jsx12("span", { className: requiredMark, "aria-hidden": true, children: "*" })
|
|
719
|
+
] }),
|
|
720
|
+
/* @__PURE__ */ jsxs10(Popover.Root, { open: open && !disabled, onOpenChange: (next) => next ? openList() : close2(), children: [
|
|
721
|
+
/* @__PURE__ */ jsx12(Popover.Anchor, { asChild: true, children: /* @__PURE__ */ jsxs10(
|
|
722
|
+
"div",
|
|
723
|
+
{
|
|
724
|
+
ref: anchorRef,
|
|
725
|
+
className: cx(root5({ size, fullWidth }), className),
|
|
726
|
+
"data-invalid": error || void 0,
|
|
727
|
+
"data-disabled": disabled || void 0,
|
|
728
|
+
children: [
|
|
729
|
+
/* @__PURE__ */ jsx12(
|
|
730
|
+
"input",
|
|
731
|
+
{
|
|
732
|
+
ref: mergeRefs(ref, inputRef),
|
|
733
|
+
id: inputId,
|
|
734
|
+
type: "text",
|
|
735
|
+
role: "combobox",
|
|
736
|
+
"aria-expanded": open,
|
|
737
|
+
"aria-controls": open && hasOptions ? listId : void 0,
|
|
738
|
+
"aria-autocomplete": "list",
|
|
739
|
+
"aria-activedescendant": open && activeIndex >= 0 ? optionId(activeIndex) : void 0,
|
|
740
|
+
"aria-label": label6 ? void 0 : ariaLabel,
|
|
741
|
+
"aria-invalid": error || void 0,
|
|
742
|
+
"aria-required": required || void 0,
|
|
743
|
+
"aria-describedby": helperId,
|
|
744
|
+
autoComplete: "off",
|
|
745
|
+
placeholder,
|
|
746
|
+
disabled,
|
|
747
|
+
value: inputText,
|
|
748
|
+
onChange: handleChange,
|
|
749
|
+
onKeyDown: handleKeyDown,
|
|
750
|
+
onBlur: () => {
|
|
751
|
+
if (open) close2();
|
|
752
|
+
},
|
|
753
|
+
className: input2
|
|
754
|
+
}
|
|
755
|
+
),
|
|
756
|
+
/* @__PURE__ */ jsx12(
|
|
757
|
+
"button",
|
|
758
|
+
{
|
|
759
|
+
type: "button",
|
|
760
|
+
tabIndex: -1,
|
|
761
|
+
"aria-label": toggleLabel,
|
|
762
|
+
"aria-expanded": open,
|
|
763
|
+
disabled,
|
|
764
|
+
className: toggle,
|
|
765
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
766
|
+
onClick: () => {
|
|
767
|
+
if (open) close2();
|
|
768
|
+
else openList(options);
|
|
769
|
+
inputRef.current?.focus();
|
|
770
|
+
},
|
|
771
|
+
children: /* @__PURE__ */ jsx12(ChevronDownIcon2, { size: 16 })
|
|
772
|
+
}
|
|
773
|
+
)
|
|
774
|
+
]
|
|
775
|
+
}
|
|
776
|
+
) }),
|
|
777
|
+
/* @__PURE__ */ jsx12(Popover.Portal, { children: /* @__PURE__ */ jsx12(
|
|
778
|
+
Popover.Content,
|
|
779
|
+
{
|
|
780
|
+
role: "presentation",
|
|
781
|
+
align: "start",
|
|
782
|
+
sideOffset: 4,
|
|
783
|
+
collisionPadding: 8,
|
|
784
|
+
className: cx(portal2.className, content4),
|
|
785
|
+
style: portal2.style,
|
|
786
|
+
onOpenAutoFocus: (event) => event.preventDefault(),
|
|
787
|
+
onCloseAutoFocus: (event) => event.preventDefault(),
|
|
788
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
789
|
+
onInteractOutside: (event) => {
|
|
790
|
+
if (anchorRef.current?.contains(event.target)) event.preventDefault();
|
|
791
|
+
},
|
|
792
|
+
children: hasOptions ? /* @__PURE__ */ jsx12(
|
|
793
|
+
"div",
|
|
794
|
+
{
|
|
795
|
+
id: listId,
|
|
796
|
+
role: "listbox",
|
|
797
|
+
"aria-labelledby": label6 ? labelId : void 0,
|
|
798
|
+
"aria-label": label6 ? void 0 : ariaLabel,
|
|
799
|
+
children: filtered.map((option2, index) => {
|
|
800
|
+
const isSelected = option2.value === selectedValue;
|
|
801
|
+
return (
|
|
802
|
+
// aria-activedescendant 패턴: 포커스·키보드는 입력창이 맡고 항목은 포커스를 받지 않는다 (WAI-ARIA combobox)
|
|
803
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/interactive-supports-focus
|
|
804
|
+
/* @__PURE__ */ jsxs10(
|
|
805
|
+
"div",
|
|
806
|
+
{
|
|
807
|
+
id: optionId(index),
|
|
808
|
+
role: "option",
|
|
809
|
+
"aria-selected": isSelected,
|
|
810
|
+
"aria-disabled": option2.disabled || void 0,
|
|
811
|
+
"data-highlighted": index === activeIndex ? "" : void 0,
|
|
812
|
+
"data-state": isSelected ? "checked" : "unchecked",
|
|
813
|
+
"data-disabled": option2.disabled ? "" : void 0,
|
|
814
|
+
className: item3,
|
|
815
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
816
|
+
onMouseMove: () => !option2.disabled && setActiveIndex(index),
|
|
817
|
+
onClick: () => select(option2),
|
|
818
|
+
children: [
|
|
819
|
+
option2.label,
|
|
820
|
+
isSelected && /* @__PURE__ */ jsx12("span", { className: itemIndicator, "aria-hidden": true, children: /* @__PURE__ */ jsx12(CheckIcon, { size: 16 }) })
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
option2.value
|
|
824
|
+
)
|
|
825
|
+
);
|
|
826
|
+
})
|
|
827
|
+
}
|
|
828
|
+
) : /* @__PURE__ */ jsx12("div", { className: empty, role: "status", children: emptyMessage })
|
|
829
|
+
}
|
|
830
|
+
) })
|
|
831
|
+
] }),
|
|
832
|
+
name && /* @__PURE__ */ jsx12("input", { type: "hidden", name, value: selectedValue ?? "" }),
|
|
833
|
+
helperText3 && /* @__PURE__ */ jsx12("p", { id: helperId, className: helperText({ error }), children: helperText3 })
|
|
563
834
|
] });
|
|
564
835
|
});
|
|
565
836
|
|
|
566
837
|
// src/components/Divider/Divider.tsx
|
|
567
|
-
import { forwardRef as
|
|
838
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
568
839
|
|
|
569
840
|
// src/components/Divider/Divider.css.ts
|
|
570
|
-
import { createRuntimeFn as
|
|
571
|
-
var divider = /* @__PURE__ */
|
|
841
|
+
import { createRuntimeFn as _7a46810 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
842
|
+
var divider = /* @__PURE__ */ _7a46810({ defaultClassName: "_1t3gq8v0", variantClassNames: { orientation: { horizontal: "_1t3gq8v1", vertical: "_1t3gq8v2" } }, defaultVariants: { orientation: "horizontal" }, compoundVariants: [] });
|
|
572
843
|
var labeled = "_1t3gq8v3";
|
|
573
844
|
var line = "_1t3gq8v4";
|
|
574
845
|
|
|
575
846
|
// src/components/Divider/Divider.tsx
|
|
576
|
-
import { jsx as
|
|
577
|
-
var Divider = /* @__PURE__ */
|
|
847
|
+
import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
848
|
+
var Divider = /* @__PURE__ */ forwardRef13(function Divider2({ orientation = "horizontal", decorative, className, children, ...rest }, ref) {
|
|
578
849
|
if (children && orientation === "horizontal") {
|
|
579
|
-
return /* @__PURE__ */
|
|
580
|
-
/* @__PURE__ */
|
|
850
|
+
return /* @__PURE__ */ jsxs11("div", { ref, className: cx(labeled, className), ...rest, children: [
|
|
851
|
+
/* @__PURE__ */ jsx13("span", { className: line, "aria-hidden": true }),
|
|
581
852
|
children,
|
|
582
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ jsx13("span", { className: line, "aria-hidden": true })
|
|
583
854
|
] });
|
|
584
855
|
}
|
|
585
856
|
const a11y = decorative ? { role: "none" } : { role: "separator", "aria-orientation": orientation === "vertical" ? "vertical" : void 0 };
|
|
586
|
-
return /* @__PURE__ */
|
|
857
|
+
return /* @__PURE__ */ jsx13("div", { ref, className: cx(divider({ orientation }), className), ...a11y, ...rest });
|
|
587
858
|
});
|
|
588
859
|
|
|
589
860
|
// src/components/Drawer/Drawer.tsx
|
|
@@ -591,16 +862,16 @@ import * as Dialog from "@radix-ui/react-dialog";
|
|
|
591
862
|
import { XIcon as XIcon2 } from "@bestow-ui/icons";
|
|
592
863
|
|
|
593
864
|
// src/components/IconButton/IconButton.tsx
|
|
594
|
-
import { forwardRef as
|
|
865
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
595
866
|
|
|
596
867
|
// src/components/IconButton/IconButton.css.ts
|
|
597
|
-
import { createRuntimeFn as
|
|
598
|
-
var iconButton = /* @__PURE__ */
|
|
868
|
+
import { createRuntimeFn as _7a46811 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
869
|
+
var iconButton = /* @__PURE__ */ _7a46811({ defaultClassName: "ip9et20", variantClassNames: { size: { sm: "ip9et21", md: "ip9et22", lg: "ip9et23" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
599
870
|
|
|
600
871
|
// src/components/IconButton/IconButton.tsx
|
|
601
|
-
import { jsx as
|
|
602
|
-
var IconButton = /* @__PURE__ */
|
|
603
|
-
return /* @__PURE__ */
|
|
872
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
873
|
+
var IconButton = /* @__PURE__ */ forwardRef14(function IconButton2({ variant = "ghost", color = "neutral", size, loading, className, children, ...rest }, ref) {
|
|
874
|
+
return /* @__PURE__ */ jsx14(
|
|
604
875
|
Button,
|
|
605
876
|
{
|
|
606
877
|
ref,
|
|
@@ -616,10 +887,10 @@ var IconButton = /* @__PURE__ */ forwardRef13(function IconButton2({ variant = "
|
|
|
616
887
|
});
|
|
617
888
|
|
|
618
889
|
// src/components/Drawer/Drawer.css.ts
|
|
619
|
-
import { createRuntimeFn as
|
|
890
|
+
import { createRuntimeFn as _7a46812 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
620
891
|
var body2 = "nmobyvy";
|
|
621
892
|
var closeButton2 = "nmobyvx";
|
|
622
|
-
var
|
|
893
|
+
var content5 = /* @__PURE__ */ _7a46812({ defaultClassName: "nmobyv9", variantClassNames: { side: { right: "nmobyva", left: "nmobyvb", top: "nmobyvc", bottom: "nmobyvd" }, size: { sm: "nmobyve", md: "nmobyvf", lg: "nmobyvg" } }, defaultVariants: { side: "right", size: "md" }, compoundVariants: [[{ side: "right", size: "sm" }, "nmobyvh"], [{ side: "right", size: "md" }, "nmobyvi"], [{ side: "right", size: "lg" }, "nmobyvj"], [{ side: "left", size: "sm" }, "nmobyvk"], [{ side: "left", size: "md" }, "nmobyvl"], [{ side: "left", size: "lg" }, "nmobyvm"], [{ side: "top", size: "sm" }, "nmobyvn"], [{ side: "top", size: "md" }, "nmobyvo"], [{ side: "top", size: "lg" }, "nmobyvp"], [{ side: "bottom", size: "sm" }, "nmobyvq"], [{ side: "bottom", size: "md" }, "nmobyvr"], [{ side: "bottom", size: "lg" }, "nmobyvs"]] });
|
|
623
894
|
var description2 = "nmobyvw";
|
|
624
895
|
var footer2 = "nmobyvz";
|
|
625
896
|
var header3 = "nmobyvt";
|
|
@@ -628,7 +899,7 @@ var overlay = "nmobyv0";
|
|
|
628
899
|
var title2 = "nmobyvv";
|
|
629
900
|
|
|
630
901
|
// src/components/Drawer/Drawer.tsx
|
|
631
|
-
import { jsx as
|
|
902
|
+
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
632
903
|
function Drawer({
|
|
633
904
|
open,
|
|
634
905
|
defaultOpen,
|
|
@@ -637,7 +908,7 @@ function Drawer({
|
|
|
637
908
|
title: title6,
|
|
638
909
|
description: description6,
|
|
639
910
|
children,
|
|
640
|
-
footer:
|
|
911
|
+
footer: footer6,
|
|
641
912
|
side,
|
|
642
913
|
size,
|
|
643
914
|
hideCloseButton = false,
|
|
@@ -645,28 +916,28 @@ function Drawer({
|
|
|
645
916
|
className
|
|
646
917
|
}) {
|
|
647
918
|
const portal2 = usePortalProps();
|
|
648
|
-
return /* @__PURE__ */
|
|
649
|
-
trigger4 && /* @__PURE__ */
|
|
650
|
-
/* @__PURE__ */
|
|
651
|
-
/* @__PURE__ */
|
|
652
|
-
/* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ jsxs12(Dialog.Root, { open, defaultOpen, onOpenChange, children: [
|
|
920
|
+
trigger4 && /* @__PURE__ */ jsx15(Dialog.Trigger, { asChild: true, children: trigger4 }),
|
|
921
|
+
/* @__PURE__ */ jsxs12(Dialog.Portal, { children: [
|
|
922
|
+
/* @__PURE__ */ jsx15(Dialog.Overlay, { className: cx(portal2.className, overlay), style: portal2.style }),
|
|
923
|
+
/* @__PURE__ */ jsxs12(
|
|
653
924
|
Dialog.Content,
|
|
654
925
|
{
|
|
655
|
-
className: cx(portal2.className,
|
|
926
|
+
className: cx(portal2.className, content5({ side, size }), className),
|
|
656
927
|
style: portal2.style,
|
|
657
928
|
"data-side": side ?? "right",
|
|
658
929
|
onPointerDownOutside: closeOnOverlayClick ? void 0 : (event) => event.preventDefault(),
|
|
659
930
|
...description6 ? {} : { "aria-describedby": void 0 },
|
|
660
931
|
children: [
|
|
661
|
-
/* @__PURE__ */
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
description6 && /* @__PURE__ */
|
|
932
|
+
/* @__PURE__ */ jsxs12("div", { className: header3, children: [
|
|
933
|
+
/* @__PURE__ */ jsxs12("div", { className: headings, children: [
|
|
934
|
+
/* @__PURE__ */ jsx15(Dialog.Title, { className: title2, children: title6 }),
|
|
935
|
+
description6 && /* @__PURE__ */ jsx15(Dialog.Description, { className: description2, children: description6 })
|
|
665
936
|
] }),
|
|
666
|
-
!hideCloseButton && /* @__PURE__ */
|
|
937
|
+
!hideCloseButton && /* @__PURE__ */ jsx15(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx15(IconButton, { "aria-label": "\uB2EB\uAE30", size: "sm", className: closeButton2, children: /* @__PURE__ */ jsx15(XIcon2, {}) }) })
|
|
667
938
|
] }),
|
|
668
|
-
children && /* @__PURE__ */
|
|
669
|
-
|
|
939
|
+
children && /* @__PURE__ */ jsx15("div", { className: body2, children }),
|
|
940
|
+
footer6 && /* @__PURE__ */ jsx15("div", { className: footer2, children: footer6 })
|
|
670
941
|
]
|
|
671
942
|
}
|
|
672
943
|
)
|
|
@@ -677,26 +948,26 @@ var DrawerClose = Dialog.Close;
|
|
|
677
948
|
|
|
678
949
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
679
950
|
import * as RadixMenu from "@radix-ui/react-dropdown-menu";
|
|
680
|
-
import { forwardRef as
|
|
951
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
681
952
|
|
|
682
953
|
// src/components/DropdownMenu/DropdownMenu.css.ts
|
|
683
|
-
var
|
|
954
|
+
var content6 = "_1d7ahux0";
|
|
684
955
|
var danger = "_1d7ahux2";
|
|
685
|
-
var
|
|
686
|
-
var
|
|
687
|
-
var
|
|
956
|
+
var icon5 = "_1d7ahux3";
|
|
957
|
+
var item4 = "_1d7ahux1";
|
|
958
|
+
var label2 = "_1d7ahux5";
|
|
688
959
|
var separator2 = "_1d7ahux6";
|
|
689
960
|
var shortcut = "_1d7ahux4";
|
|
690
961
|
|
|
691
962
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
692
|
-
import { jsx as
|
|
963
|
+
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
693
964
|
var DropdownMenu = RadixMenu.Root;
|
|
694
965
|
var DropdownMenuTrigger = RadixMenu.Trigger;
|
|
695
966
|
var DropdownMenuGroup = RadixMenu.Group;
|
|
696
|
-
var DropdownMenuContent = /* @__PURE__ */
|
|
967
|
+
var DropdownMenuContent = /* @__PURE__ */ forwardRef15(
|
|
697
968
|
function DropdownMenuContent2({ className, style, side = "bottom", align = "start", sideOffset = 4, collisionPadding = 8, ...rest }, ref) {
|
|
698
969
|
const portal2 = usePortalProps();
|
|
699
|
-
return /* @__PURE__ */
|
|
970
|
+
return /* @__PURE__ */ jsx16(RadixMenu.Portal, { children: /* @__PURE__ */ jsx16(
|
|
700
971
|
RadixMenu.Content,
|
|
701
972
|
{
|
|
702
973
|
ref,
|
|
@@ -704,59 +975,46 @@ var DropdownMenuContent = /* @__PURE__ */ forwardRef14(
|
|
|
704
975
|
align,
|
|
705
976
|
sideOffset,
|
|
706
977
|
collisionPadding,
|
|
707
|
-
className: cx(portal2.className,
|
|
978
|
+
className: cx(portal2.className, content6, className),
|
|
708
979
|
style: { ...portal2.style, ...style },
|
|
709
980
|
...rest
|
|
710
981
|
}
|
|
711
982
|
) });
|
|
712
983
|
}
|
|
713
984
|
);
|
|
714
|
-
var DropdownMenuItem = /* @__PURE__ */
|
|
985
|
+
var DropdownMenuItem = /* @__PURE__ */ forwardRef15(
|
|
715
986
|
function DropdownMenuItem2({ icon: icon6, shortcut: shortcut2, color = "default", className, children, ...rest }, ref) {
|
|
716
|
-
return /* @__PURE__ */
|
|
717
|
-
icon6 && /* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ jsxs13(RadixMenu.Item, { ref, className: cx(item4, color === "danger" && danger, className), ...rest, children: [
|
|
988
|
+
icon6 && /* @__PURE__ */ jsx16("span", { className: icon5, "aria-hidden": true, children: icon6 }),
|
|
718
989
|
children,
|
|
719
|
-
shortcut2 && /* @__PURE__ */
|
|
990
|
+
shortcut2 && /* @__PURE__ */ jsx16("span", { className: shortcut, "aria-hidden": true, children: shortcut2 })
|
|
720
991
|
] });
|
|
721
992
|
}
|
|
722
993
|
);
|
|
723
|
-
var DropdownMenuLabel = /* @__PURE__ */
|
|
994
|
+
var DropdownMenuLabel = /* @__PURE__ */ forwardRef15(
|
|
724
995
|
function DropdownMenuLabel2({ className, ...rest }, ref) {
|
|
725
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx16(RadixMenu.Label, { ref, className: cx(label2, className), ...rest });
|
|
726
997
|
}
|
|
727
998
|
);
|
|
728
|
-
var DropdownMenuSeparator = /* @__PURE__ */
|
|
999
|
+
var DropdownMenuSeparator = /* @__PURE__ */ forwardRef15(
|
|
729
1000
|
function DropdownMenuSeparator2({ className, ...rest }, ref) {
|
|
730
|
-
return /* @__PURE__ */
|
|
1001
|
+
return /* @__PURE__ */ jsx16(RadixMenu.Separator, { ref, className: cx(separator2, className), ...rest });
|
|
731
1002
|
}
|
|
732
1003
|
);
|
|
733
1004
|
|
|
734
1005
|
// src/components/Input/Input.tsx
|
|
735
|
-
import { forwardRef as
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
var adornment = "_19p5zvh6";
|
|
740
|
-
var field = "_19p5zvh7";
|
|
741
|
-
var fieldFullWidth = "_19p5zvh8";
|
|
742
|
-
var helperText = /* @__PURE__ */ _7a46812({ defaultClassName: "_19p5zvhb", variantClassNames: { error: { true: "_19p5zvhc" } }, defaultVariants: {}, compoundVariants: [] });
|
|
743
|
-
var input2 = "_19p5zvh5";
|
|
744
|
-
var label2 = "_19p5zvh9";
|
|
745
|
-
var requiredMark = "_19p5zvha";
|
|
746
|
-
var root5 = /* @__PURE__ */ _7a46812({ defaultClassName: "_19p5zvh0", variantClassNames: { size: { sm: "_19p5zvh1", md: "_19p5zvh2", lg: "_19p5zvh3" }, fullWidth: { true: "_19p5zvh4" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
747
|
-
|
|
748
|
-
// src/components/Input/Input.tsx
|
|
749
|
-
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
750
|
-
var Input = /* @__PURE__ */ forwardRef15(function Input2({ size, invalid, fullWidth, startAdornment, endAdornment, rootClassName, className, disabled, ...rest }, ref) {
|
|
751
|
-
return /* @__PURE__ */ jsxs13(
|
|
1006
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
1007
|
+
import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1008
|
+
var Input = /* @__PURE__ */ forwardRef16(function Input2({ size, invalid, fullWidth, startAdornment, endAdornment, rootClassName, className, disabled, ...rest }, ref) {
|
|
1009
|
+
return /* @__PURE__ */ jsxs14(
|
|
752
1010
|
"div",
|
|
753
1011
|
{
|
|
754
1012
|
className: cx(root5({ size, fullWidth }), rootClassName),
|
|
755
1013
|
"data-invalid": invalid || void 0,
|
|
756
1014
|
"data-disabled": disabled || void 0,
|
|
757
1015
|
children: [
|
|
758
|
-
startAdornment && /* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
1016
|
+
startAdornment && /* @__PURE__ */ jsx17("span", { className: adornment, children: startAdornment }),
|
|
1017
|
+
/* @__PURE__ */ jsx17(
|
|
760
1018
|
"input",
|
|
761
1019
|
{
|
|
762
1020
|
ref,
|
|
@@ -766,25 +1024,25 @@ var Input = /* @__PURE__ */ forwardRef15(function Input2({ size, invalid, fullWi
|
|
|
766
1024
|
...rest
|
|
767
1025
|
}
|
|
768
1026
|
),
|
|
769
|
-
endAdornment && /* @__PURE__ */
|
|
1027
|
+
endAdornment && /* @__PURE__ */ jsx17("span", { className: adornment, children: endAdornment })
|
|
770
1028
|
]
|
|
771
1029
|
}
|
|
772
1030
|
);
|
|
773
1031
|
});
|
|
774
1032
|
|
|
775
1033
|
// src/components/Input/TextField.tsx
|
|
776
|
-
import { forwardRef as
|
|
777
|
-
import { jsx as
|
|
778
|
-
var TextField = /* @__PURE__ */
|
|
779
|
-
const generatedId =
|
|
1034
|
+
import { forwardRef as forwardRef17, useId as useId2 } from "react";
|
|
1035
|
+
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1036
|
+
var TextField = /* @__PURE__ */ forwardRef17(function TextField2({ label: label6, helperText: helperText3, error, required, fullWidth, id, "aria-describedby": ariaDescribedBy, ...rest }, ref) {
|
|
1037
|
+
const generatedId = useId2();
|
|
780
1038
|
const inputId = id ?? generatedId;
|
|
781
|
-
const helperId =
|
|
782
|
-
return /* @__PURE__ */
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
required && /* @__PURE__ */
|
|
1039
|
+
const helperId = helperText3 ? `${inputId}-helper` : void 0;
|
|
1040
|
+
return /* @__PURE__ */ jsxs15("div", { className: cx(field, fullWidth && fieldFullWidth), children: [
|
|
1041
|
+
label6 && /* @__PURE__ */ jsxs15("label", { htmlFor: inputId, className: label, children: [
|
|
1042
|
+
label6,
|
|
1043
|
+
required && /* @__PURE__ */ jsx18("span", { className: requiredMark, "aria-hidden": true, children: "*" })
|
|
786
1044
|
] }),
|
|
787
|
-
/* @__PURE__ */
|
|
1045
|
+
/* @__PURE__ */ jsx18(
|
|
788
1046
|
Input,
|
|
789
1047
|
{
|
|
790
1048
|
ref,
|
|
@@ -796,7 +1054,7 @@ var TextField = /* @__PURE__ */ forwardRef16(function TextField2({ label: label5
|
|
|
796
1054
|
...rest
|
|
797
1055
|
}
|
|
798
1056
|
),
|
|
799
|
-
|
|
1057
|
+
helperText3 && /* @__PURE__ */ jsx18("p", { id: helperId, className: helperText({ error }), children: helperText3 })
|
|
800
1058
|
] });
|
|
801
1059
|
});
|
|
802
1060
|
|
|
@@ -808,7 +1066,7 @@ import { XIcon as XIcon3 } from "@bestow-ui/icons";
|
|
|
808
1066
|
import { createRuntimeFn as _7a46813 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
809
1067
|
var body3 = "_1pdsmv0a";
|
|
810
1068
|
var closeButton3 = "_1pdsmv09";
|
|
811
|
-
var
|
|
1069
|
+
var content7 = /* @__PURE__ */ _7a46813({ defaultClassName: "_1pdsmv01", variantClassNames: { size: { sm: "_1pdsmv02", md: "_1pdsmv03", lg: "_1pdsmv04" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
812
1070
|
var description3 = "_1pdsmv08";
|
|
813
1071
|
var footer3 = "_1pdsmv0b";
|
|
814
1072
|
var header4 = "_1pdsmv05";
|
|
@@ -817,7 +1075,7 @@ var overlay2 = "_1pdsmv00";
|
|
|
817
1075
|
var title3 = "_1pdsmv07";
|
|
818
1076
|
|
|
819
1077
|
// src/components/Modal/Modal.tsx
|
|
820
|
-
import { jsx as
|
|
1078
|
+
import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
821
1079
|
function Modal({
|
|
822
1080
|
open,
|
|
823
1081
|
defaultOpen,
|
|
@@ -826,34 +1084,34 @@ function Modal({
|
|
|
826
1084
|
title: title6,
|
|
827
1085
|
description: description6,
|
|
828
1086
|
children,
|
|
829
|
-
footer:
|
|
1087
|
+
footer: footer6,
|
|
830
1088
|
size,
|
|
831
1089
|
hideCloseButton = false,
|
|
832
1090
|
closeOnOverlayClick = true,
|
|
833
1091
|
className
|
|
834
1092
|
}) {
|
|
835
1093
|
const portal2 = usePortalProps();
|
|
836
|
-
return /* @__PURE__ */
|
|
837
|
-
trigger4 && /* @__PURE__ */
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ jsxs16(Dialog2.Root, { open, defaultOpen, onOpenChange, children: [
|
|
1095
|
+
trigger4 && /* @__PURE__ */ jsx19(Dialog2.Trigger, { asChild: true, children: trigger4 }),
|
|
1096
|
+
/* @__PURE__ */ jsxs16(Dialog2.Portal, { children: [
|
|
1097
|
+
/* @__PURE__ */ jsx19(Dialog2.Overlay, { className: cx(portal2.className, overlay2), style: portal2.style }),
|
|
1098
|
+
/* @__PURE__ */ jsxs16(
|
|
841
1099
|
Dialog2.Content,
|
|
842
1100
|
{
|
|
843
|
-
className: cx(portal2.className,
|
|
1101
|
+
className: cx(portal2.className, content7({ size }), className),
|
|
844
1102
|
style: portal2.style,
|
|
845
1103
|
onPointerDownOutside: closeOnOverlayClick ? void 0 : (event) => event.preventDefault(),
|
|
846
1104
|
...description6 ? {} : { "aria-describedby": void 0 },
|
|
847
1105
|
children: [
|
|
848
|
-
/* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
/* @__PURE__ */
|
|
851
|
-
description6 && /* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ jsxs16("div", { className: header4, children: [
|
|
1107
|
+
/* @__PURE__ */ jsxs16("div", { className: headings2, children: [
|
|
1108
|
+
/* @__PURE__ */ jsx19(Dialog2.Title, { className: title3, children: title6 }),
|
|
1109
|
+
description6 && /* @__PURE__ */ jsx19(Dialog2.Description, { className: description3, children: description6 })
|
|
852
1110
|
] }),
|
|
853
|
-
!hideCloseButton && /* @__PURE__ */
|
|
1111
|
+
!hideCloseButton && /* @__PURE__ */ jsx19(Dialog2.Close, { className: closeButton3, "aria-label": "\uB2EB\uAE30", children: /* @__PURE__ */ jsx19(XIcon3, { size: 16 }) })
|
|
854
1112
|
] }),
|
|
855
|
-
children && /* @__PURE__ */
|
|
856
|
-
|
|
1113
|
+
children && /* @__PURE__ */ jsx19("div", { className: body3, children }),
|
|
1114
|
+
footer6 && /* @__PURE__ */ jsx19("div", { className: footer3, children: footer6 })
|
|
857
1115
|
]
|
|
858
1116
|
}
|
|
859
1117
|
)
|
|
@@ -864,7 +1122,7 @@ var ModalClose = Dialog2.Close;
|
|
|
864
1122
|
|
|
865
1123
|
// src/components/Pagination/Pagination.tsx
|
|
866
1124
|
import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2 } from "@bestow-ui/icons";
|
|
867
|
-
import { forwardRef as
|
|
1125
|
+
import { forwardRef as forwardRef18, useState as useState2 } from "react";
|
|
868
1126
|
|
|
869
1127
|
// src/components/Pagination/getPaginationItems.ts
|
|
870
1128
|
var range = (start, end) => end < start ? [] : Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
@@ -893,13 +1151,13 @@ function getPaginationItems(page, totalPages, siblingCount = 1, boundaryCount =
|
|
|
893
1151
|
// src/components/Pagination/Pagination.css.ts
|
|
894
1152
|
import { createRuntimeFn as _7a46814 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
895
1153
|
var ellipsis = "_1iraoak4";
|
|
896
|
-
var
|
|
1154
|
+
var item5 = /* @__PURE__ */ _7a46814({ defaultClassName: "_1iraoak1", variantClassNames: { size: { sm: "_1iraoak2", md: "_1iraoak3" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
897
1155
|
var list2 = "_1iraoak0";
|
|
898
1156
|
|
|
899
1157
|
// src/components/Pagination/Pagination.tsx
|
|
900
|
-
import { jsx as
|
|
1158
|
+
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
901
1159
|
var defaultItemLabel = (type, page) => type === "previous" ? "\uC774\uC804 \uD398\uC774\uC9C0" : type === "next" ? "\uB2E4\uC74C \uD398\uC774\uC9C0" : `${page} \uD398\uC774\uC9C0`;
|
|
902
|
-
var Pagination = /* @__PURE__ */
|
|
1160
|
+
var Pagination = /* @__PURE__ */ forwardRef18(function Pagination2({
|
|
903
1161
|
totalPages,
|
|
904
1162
|
page: pageProp,
|
|
905
1163
|
defaultPage = 1,
|
|
@@ -912,7 +1170,7 @@ var Pagination = /* @__PURE__ */ forwardRef17(function Pagination2({
|
|
|
912
1170
|
"aria-label": ariaLabel = "\uD398\uC774\uC9C0 \uD0D0\uC0C9",
|
|
913
1171
|
...rest
|
|
914
1172
|
}, ref) {
|
|
915
|
-
const [uncontrolledPage, setUncontrolledPage] =
|
|
1173
|
+
const [uncontrolledPage, setUncontrolledPage] = useState2(defaultPage);
|
|
916
1174
|
if (totalPages < 1) return null;
|
|
917
1175
|
const page = Math.min(Math.max(pageProp ?? uncontrolledPage, 1), totalPages);
|
|
918
1176
|
const goTo = (next) => {
|
|
@@ -920,9 +1178,9 @@ var Pagination = /* @__PURE__ */ forwardRef17(function Pagination2({
|
|
|
920
1178
|
if (pageProp === void 0) setUncontrolledPage(next);
|
|
921
1179
|
onPageChange?.(next);
|
|
922
1180
|
};
|
|
923
|
-
const itemClass =
|
|
924
|
-
return /* @__PURE__ */
|
|
925
|
-
/* @__PURE__ */
|
|
1181
|
+
const itemClass = item5({ size });
|
|
1182
|
+
return /* @__PURE__ */ jsx20("nav", { ref, "aria-label": ariaLabel, className, ...rest, children: /* @__PURE__ */ jsxs17("ul", { className: list2, children: [
|
|
1183
|
+
/* @__PURE__ */ jsx20("li", { children: /* @__PURE__ */ jsx20(
|
|
926
1184
|
"button",
|
|
927
1185
|
{
|
|
928
1186
|
type: "button",
|
|
@@ -930,11 +1188,11 @@ var Pagination = /* @__PURE__ */ forwardRef17(function Pagination2({
|
|
|
930
1188
|
"aria-label": getItemLabel("previous", page - 1),
|
|
931
1189
|
disabled: page <= 1,
|
|
932
1190
|
onClick: () => goTo(page - 1),
|
|
933
|
-
children: /* @__PURE__ */
|
|
1191
|
+
children: /* @__PURE__ */ jsx20(ChevronLeftIcon, { size: 16 })
|
|
934
1192
|
}
|
|
935
1193
|
) }),
|
|
936
1194
|
getPaginationItems(page, totalPages, siblingCount, boundaryCount).map(
|
|
937
|
-
(item6) => typeof item6 === "number" ? /* @__PURE__ */
|
|
1195
|
+
(item6) => typeof item6 === "number" ? /* @__PURE__ */ jsx20("li", { children: /* @__PURE__ */ jsx20(
|
|
938
1196
|
"button",
|
|
939
1197
|
{
|
|
940
1198
|
type: "button",
|
|
@@ -944,9 +1202,9 @@ var Pagination = /* @__PURE__ */ forwardRef17(function Pagination2({
|
|
|
944
1202
|
onClick: () => goTo(item6),
|
|
945
1203
|
children: item6
|
|
946
1204
|
}
|
|
947
|
-
) }, item6) : /* @__PURE__ */
|
|
1205
|
+
) }, item6) : /* @__PURE__ */ jsx20("li", { "aria-hidden": true, className: cx(itemClass, ellipsis), children: "\u2026" }, item6)
|
|
948
1206
|
),
|
|
949
|
-
/* @__PURE__ */
|
|
1207
|
+
/* @__PURE__ */ jsx20("li", { children: /* @__PURE__ */ jsx20(
|
|
950
1208
|
"button",
|
|
951
1209
|
{
|
|
952
1210
|
type: "button",
|
|
@@ -954,7 +1212,7 @@ var Pagination = /* @__PURE__ */ forwardRef17(function Pagination2({
|
|
|
954
1212
|
"aria-label": getItemLabel("next", page + 1),
|
|
955
1213
|
disabled: page >= totalPages,
|
|
956
1214
|
onClick: () => goTo(page + 1),
|
|
957
|
-
children: /* @__PURE__ */
|
|
1215
|
+
children: /* @__PURE__ */ jsx20(ChevronRightIcon2, { size: 16 })
|
|
958
1216
|
}
|
|
959
1217
|
) })
|
|
960
1218
|
] }) });
|
|
@@ -963,19 +1221,19 @@ var Pagination = /* @__PURE__ */ forwardRef17(function Pagination2({
|
|
|
963
1221
|
// src/components/Popover/Popover.tsx
|
|
964
1222
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
965
1223
|
import { XIcon as XIcon4 } from "@bestow-ui/icons";
|
|
966
|
-
import { useId as
|
|
1224
|
+
import { useId as useId3 } from "react";
|
|
967
1225
|
|
|
968
1226
|
// src/components/Popover/Popover.css.ts
|
|
969
1227
|
var arrow = "_1j99p8x4";
|
|
970
1228
|
var closeButton4 = "_1j99p8x3";
|
|
971
|
-
var
|
|
1229
|
+
var content8 = "_1j99p8x0";
|
|
972
1230
|
var header5 = "_1j99p8x1";
|
|
973
1231
|
var title4 = "_1j99p8x2";
|
|
974
1232
|
|
|
975
1233
|
// src/components/Popover/Popover.tsx
|
|
976
|
-
import { jsx as
|
|
977
|
-
function
|
|
978
|
-
content:
|
|
1234
|
+
import { jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1235
|
+
function Popover2({
|
|
1236
|
+
content: content11,
|
|
979
1237
|
children,
|
|
980
1238
|
title: title6,
|
|
981
1239
|
"aria-label": ariaLabel,
|
|
@@ -991,10 +1249,10 @@ function Popover({
|
|
|
991
1249
|
style
|
|
992
1250
|
}) {
|
|
993
1251
|
const portal2 = usePortalProps();
|
|
994
|
-
const titleId =
|
|
995
|
-
return /* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
1252
|
+
const titleId = useId3();
|
|
1253
|
+
return /* @__PURE__ */ jsxs18(RadixPopover.Root, { open, defaultOpen, onOpenChange, modal, children: [
|
|
1254
|
+
/* @__PURE__ */ jsx21(RadixPopover.Trigger, { asChild: true, children }),
|
|
1255
|
+
/* @__PURE__ */ jsx21(RadixPopover.Portal, { children: /* @__PURE__ */ jsxs18(
|
|
998
1256
|
RadixPopover.Content,
|
|
999
1257
|
{
|
|
1000
1258
|
side,
|
|
@@ -1003,15 +1261,15 @@ function Popover({
|
|
|
1003
1261
|
collisionPadding: 8,
|
|
1004
1262
|
"aria-labelledby": title6 ? titleId : void 0,
|
|
1005
1263
|
"aria-label": title6 ? void 0 : ariaLabel,
|
|
1006
|
-
className: cx(portal2.className,
|
|
1264
|
+
className: cx(portal2.className, content8, className),
|
|
1007
1265
|
style: { ...portal2.style, ...style },
|
|
1008
1266
|
children: [
|
|
1009
|
-
(title6 || showClose) && /* @__PURE__ */
|
|
1010
|
-
title6 && /* @__PURE__ */
|
|
1011
|
-
showClose && /* @__PURE__ */
|
|
1267
|
+
(title6 || showClose) && /* @__PURE__ */ jsxs18("div", { className: header5, children: [
|
|
1268
|
+
title6 && /* @__PURE__ */ jsx21("h2", { id: titleId, className: title4, children: title6 }),
|
|
1269
|
+
showClose && /* @__PURE__ */ jsx21(RadixPopover.Close, { className: closeButton4, "aria-label": "\uB2EB\uAE30", children: /* @__PURE__ */ jsx21(XIcon4, { size: 16 }) })
|
|
1012
1270
|
] }),
|
|
1013
|
-
|
|
1014
|
-
showArrow && /* @__PURE__ */
|
|
1271
|
+
content11,
|
|
1272
|
+
showArrow && /* @__PURE__ */ jsx21(RadixPopover.Arrow, { className: arrow, width: 12, height: 6 })
|
|
1015
1273
|
]
|
|
1016
1274
|
}
|
|
1017
1275
|
) })
|
|
@@ -1020,7 +1278,7 @@ function Popover({
|
|
|
1020
1278
|
var PopoverClose = RadixPopover.Close;
|
|
1021
1279
|
|
|
1022
1280
|
// src/components/Progress/Progress.tsx
|
|
1023
|
-
import { forwardRef as
|
|
1281
|
+
import { forwardRef as forwardRef19, useId as useId4 } from "react";
|
|
1024
1282
|
|
|
1025
1283
|
// src/components/Progress/Progress.css.ts
|
|
1026
1284
|
import { createRuntimeFn as _7a46815 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
@@ -1029,15 +1287,15 @@ var indicator = /* @__PURE__ */ _7a46815({ defaultClassName: "_1tvkq008", varian
|
|
|
1029
1287
|
var label3 = "_1tvkq002";
|
|
1030
1288
|
var root6 = "_1tvkq000";
|
|
1031
1289
|
var track = /* @__PURE__ */ _7a46815({ defaultClassName: "_1tvkq004", variantClassNames: { size: { sm: "_1tvkq005", md: "_1tvkq006", lg: "_1tvkq007" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1032
|
-
var
|
|
1290
|
+
var value2 = "_1tvkq003";
|
|
1033
1291
|
|
|
1034
1292
|
// src/components/Progress/Progress.tsx
|
|
1035
|
-
import { jsx as
|
|
1036
|
-
var defaultFormat = (
|
|
1037
|
-
var Progress = /* @__PURE__ */
|
|
1038
|
-
value:
|
|
1293
|
+
import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1294
|
+
var defaultFormat = (value4, max) => `${Math.round(value4 / max * 100)}%`;
|
|
1295
|
+
var Progress = /* @__PURE__ */ forwardRef19(function Progress2({
|
|
1296
|
+
value: value4,
|
|
1039
1297
|
max = 100,
|
|
1040
|
-
label:
|
|
1298
|
+
label: label6,
|
|
1041
1299
|
"aria-label": ariaLabel,
|
|
1042
1300
|
showValue,
|
|
1043
1301
|
formatValue = defaultFormat,
|
|
@@ -1046,28 +1304,28 @@ var Progress = /* @__PURE__ */ forwardRef18(function Progress2({
|
|
|
1046
1304
|
className,
|
|
1047
1305
|
...rest
|
|
1048
1306
|
}, ref) {
|
|
1049
|
-
const labelId =
|
|
1050
|
-
const isIndeterminate =
|
|
1307
|
+
const labelId = useId4();
|
|
1308
|
+
const isIndeterminate = value4 === void 0 || value4 === null;
|
|
1051
1309
|
const safeMax = max > 0 ? max : 100;
|
|
1052
|
-
const clamped = isIndeterminate ? 0 : Math.min(safeMax, Math.max(0,
|
|
1310
|
+
const clamped = isIndeterminate ? 0 : Math.min(safeMax, Math.max(0, value4));
|
|
1053
1311
|
const valueText = isIndeterminate ? void 0 : formatValue(clamped, safeMax);
|
|
1054
|
-
return /* @__PURE__ */
|
|
1055
|
-
(
|
|
1056
|
-
|
|
1057
|
-
showValue && valueText && /* @__PURE__ */
|
|
1312
|
+
return /* @__PURE__ */ jsxs19("div", { ref, className: cx(root6, className), ...rest, children: [
|
|
1313
|
+
(label6 || showValue && valueText) && /* @__PURE__ */ jsxs19("div", { className: header6, children: [
|
|
1314
|
+
label6 && /* @__PURE__ */ jsx22("span", { id: labelId, className: label3, children: label6 }),
|
|
1315
|
+
showValue && valueText && /* @__PURE__ */ jsx22("span", { className: value2, "aria-hidden": true, children: valueText })
|
|
1058
1316
|
] }),
|
|
1059
|
-
/* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ jsx22(
|
|
1060
1318
|
"div",
|
|
1061
1319
|
{
|
|
1062
1320
|
role: "progressbar",
|
|
1063
|
-
"aria-labelledby":
|
|
1064
|
-
"aria-label":
|
|
1321
|
+
"aria-labelledby": label6 ? labelId : void 0,
|
|
1322
|
+
"aria-label": label6 ? void 0 : ariaLabel,
|
|
1065
1323
|
"aria-valuemin": 0,
|
|
1066
1324
|
"aria-valuemax": safeMax,
|
|
1067
1325
|
"aria-valuenow": isIndeterminate ? void 0 : clamped,
|
|
1068
1326
|
"aria-valuetext": valueText,
|
|
1069
1327
|
className: track({ size }),
|
|
1070
|
-
children: /* @__PURE__ */
|
|
1328
|
+
children: /* @__PURE__ */ jsx22(
|
|
1071
1329
|
"div",
|
|
1072
1330
|
{
|
|
1073
1331
|
className: indicator({ color }),
|
|
@@ -1082,7 +1340,7 @@ var Progress = /* @__PURE__ */ forwardRef18(function Progress2({
|
|
|
1082
1340
|
|
|
1083
1341
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
1084
1342
|
import * as RadixRadioGroup from "@radix-ui/react-radio-group";
|
|
1085
|
-
import { forwardRef as
|
|
1343
|
+
import { forwardRef as forwardRef20, useId as useId5 } from "react";
|
|
1086
1344
|
|
|
1087
1345
|
// src/components/RadioGroup/RadioGroup.css.ts
|
|
1088
1346
|
import { createRuntimeFn as _7a46816 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
@@ -1096,15 +1354,15 @@ var radio = /* @__PURE__ */ _7a46816({ defaultClassName: "_1w9iwjm7", variantCla
|
|
|
1096
1354
|
var text = "_1w9iwjmb";
|
|
1097
1355
|
|
|
1098
1356
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
1099
|
-
import { jsx as
|
|
1100
|
-
var RadioGroup = /* @__PURE__ */
|
|
1357
|
+
import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1358
|
+
var RadioGroup = /* @__PURE__ */ forwardRef20(function RadioGroup2(props, ref) {
|
|
1101
1359
|
const {
|
|
1102
1360
|
options,
|
|
1103
|
-
value:
|
|
1361
|
+
value: value4,
|
|
1104
1362
|
defaultValue,
|
|
1105
1363
|
onValueChange,
|
|
1106
|
-
label:
|
|
1107
|
-
helperText:
|
|
1364
|
+
label: label6,
|
|
1365
|
+
helperText: helperText3,
|
|
1108
1366
|
error,
|
|
1109
1367
|
orientation = "vertical",
|
|
1110
1368
|
size,
|
|
@@ -1116,21 +1374,21 @@ var RadioGroup = /* @__PURE__ */ forwardRef19(function RadioGroup2(props, ref) {
|
|
|
1116
1374
|
className
|
|
1117
1375
|
} = props;
|
|
1118
1376
|
const isControlled = "value" in props;
|
|
1119
|
-
const generatedId =
|
|
1377
|
+
const generatedId = useId5();
|
|
1120
1378
|
const baseId = id ?? generatedId;
|
|
1121
|
-
const labelId =
|
|
1122
|
-
const helperId =
|
|
1123
|
-
return /* @__PURE__ */
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
required && /* @__PURE__ */
|
|
1379
|
+
const labelId = label6 ? `${baseId}-label` : void 0;
|
|
1380
|
+
const helperId = helperText3 ? `${baseId}-helper` : void 0;
|
|
1381
|
+
return /* @__PURE__ */ jsxs20("div", { className: cx(field, className), children: [
|
|
1382
|
+
label6 && /* @__PURE__ */ jsxs20("span", { id: labelId, className: cx(label, groupLabel), children: [
|
|
1383
|
+
label6,
|
|
1384
|
+
required && /* @__PURE__ */ jsx23("span", { className: requiredMark, "aria-hidden": true, children: "*" })
|
|
1127
1385
|
] }),
|
|
1128
|
-
/* @__PURE__ */
|
|
1386
|
+
/* @__PURE__ */ jsx23(
|
|
1129
1387
|
RadixRadioGroup.Root,
|
|
1130
1388
|
{
|
|
1131
1389
|
ref,
|
|
1132
1390
|
id: baseId,
|
|
1133
|
-
value: isControlled ?
|
|
1391
|
+
value: isControlled ? value4 ?? "" : void 0,
|
|
1134
1392
|
defaultValue,
|
|
1135
1393
|
onValueChange,
|
|
1136
1394
|
orientation,
|
|
@@ -1146,8 +1404,8 @@ var RadioGroup = /* @__PURE__ */ forwardRef19(function RadioGroup2(props, ref) {
|
|
|
1146
1404
|
const itemId = `${baseId}-${option2.value}`;
|
|
1147
1405
|
const descriptionId = option2.description ? `${itemId}-description` : void 0;
|
|
1148
1406
|
const itemDisabled = disabled || option2.disabled;
|
|
1149
|
-
return /* @__PURE__ */
|
|
1150
|
-
/* @__PURE__ */
|
|
1407
|
+
return /* @__PURE__ */ jsxs20("div", { className: option({ size }), "data-disabled": itemDisabled || void 0, children: [
|
|
1408
|
+
/* @__PURE__ */ jsx23(
|
|
1151
1409
|
RadixRadioGroup.Item,
|
|
1152
1410
|
{
|
|
1153
1411
|
id: itemId,
|
|
@@ -1155,46 +1413,35 @@ var RadioGroup = /* @__PURE__ */ forwardRef19(function RadioGroup2(props, ref) {
|
|
|
1155
1413
|
disabled: option2.disabled,
|
|
1156
1414
|
"aria-describedby": descriptionId,
|
|
1157
1415
|
className: radio({ size }),
|
|
1158
|
-
children: /* @__PURE__ */
|
|
1416
|
+
children: /* @__PURE__ */ jsx23(RadixRadioGroup.Indicator, { className: indicator2 })
|
|
1159
1417
|
}
|
|
1160
1418
|
),
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
option2.description && /* @__PURE__ */
|
|
1419
|
+
/* @__PURE__ */ jsxs20("span", { className: text, children: [
|
|
1420
|
+
/* @__PURE__ */ jsx23("label", { htmlFor: itemId, className: labelText, children: option2.label }),
|
|
1421
|
+
option2.description && /* @__PURE__ */ jsx23("span", { id: descriptionId, className: description4, children: option2.description })
|
|
1164
1422
|
] })
|
|
1165
1423
|
] }, option2.value);
|
|
1166
1424
|
})
|
|
1167
1425
|
}
|
|
1168
1426
|
),
|
|
1169
|
-
|
|
1427
|
+
helperText3 && /* @__PURE__ */ jsx23("p", { id: helperId, className: helperText({ error }), children: helperText3 })
|
|
1170
1428
|
] });
|
|
1171
1429
|
});
|
|
1172
1430
|
|
|
1173
1431
|
// src/components/Select/Select.tsx
|
|
1174
1432
|
import * as RadixSelect from "@radix-ui/react-select";
|
|
1175
|
-
import { forwardRef as
|
|
1176
|
-
import { CheckIcon, ChevronDownIcon as
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
var content7 = "_1kx81e83";
|
|
1180
|
-
var icon5 = "_1kx81e82";
|
|
1181
|
-
var item5 = "_1kx81e85";
|
|
1182
|
-
var itemIndicator = "_1kx81e86";
|
|
1183
|
-
var trigger2 = "_1kx81e80";
|
|
1184
|
-
var value2 = "_1kx81e81";
|
|
1185
|
-
var viewport = "_1kx81e84";
|
|
1186
|
-
|
|
1187
|
-
// src/components/Select/Select.tsx
|
|
1188
|
-
import { jsx as jsx23, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1189
|
-
var Select = /* @__PURE__ */ forwardRef20(function Select2(props, ref) {
|
|
1433
|
+
import { forwardRef as forwardRef21, useId as useId6 } from "react";
|
|
1434
|
+
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3 } from "@bestow-ui/icons";
|
|
1435
|
+
import { jsx as jsx24, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1436
|
+
var Select = /* @__PURE__ */ forwardRef21(function Select2(props, ref) {
|
|
1190
1437
|
const {
|
|
1191
1438
|
options,
|
|
1192
|
-
value:
|
|
1439
|
+
value: value4,
|
|
1193
1440
|
defaultValue,
|
|
1194
1441
|
onValueChange,
|
|
1195
1442
|
placeholder,
|
|
1196
|
-
label:
|
|
1197
|
-
helperText:
|
|
1443
|
+
label: label6,
|
|
1444
|
+
helperText: helperText3,
|
|
1198
1445
|
error,
|
|
1199
1446
|
size,
|
|
1200
1447
|
fullWidth,
|
|
@@ -1206,26 +1453,26 @@ var Select = /* @__PURE__ */ forwardRef20(function Select2(props, ref) {
|
|
|
1206
1453
|
className
|
|
1207
1454
|
} = props;
|
|
1208
1455
|
const isControlled = "value" in props;
|
|
1209
|
-
const generatedId =
|
|
1456
|
+
const generatedId = useId6();
|
|
1210
1457
|
const triggerId = id ?? generatedId;
|
|
1211
|
-
const helperId =
|
|
1458
|
+
const helperId = helperText3 ? `${triggerId}-helper` : void 0;
|
|
1212
1459
|
const portal2 = usePortalProps();
|
|
1213
|
-
return /* @__PURE__ */
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
required && /* @__PURE__ */
|
|
1460
|
+
return /* @__PURE__ */ jsxs21("div", { className: cx(field, fullWidth && fieldFullWidth), children: [
|
|
1461
|
+
label6 && /* @__PURE__ */ jsxs21("label", { htmlFor: triggerId, className: label, children: [
|
|
1462
|
+
label6,
|
|
1463
|
+
required && /* @__PURE__ */ jsx24("span", { className: requiredMark, "aria-hidden": true, children: "*" })
|
|
1217
1464
|
] }),
|
|
1218
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ jsxs21(
|
|
1219
1466
|
RadixSelect.Root,
|
|
1220
1467
|
{
|
|
1221
|
-
value: isControlled ?
|
|
1468
|
+
value: isControlled ? value4 ?? "" : void 0,
|
|
1222
1469
|
defaultValue,
|
|
1223
1470
|
onValueChange,
|
|
1224
1471
|
disabled,
|
|
1225
1472
|
required,
|
|
1226
1473
|
name,
|
|
1227
1474
|
children: [
|
|
1228
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ jsxs21(
|
|
1229
1476
|
RadixSelect.Trigger,
|
|
1230
1477
|
{
|
|
1231
1478
|
ref,
|
|
@@ -1236,28 +1483,28 @@ var Select = /* @__PURE__ */ forwardRef20(function Select2(props, ref) {
|
|
|
1236
1483
|
"data-invalid": error || void 0,
|
|
1237
1484
|
className: cx(root5({ size, fullWidth }), trigger2, className),
|
|
1238
1485
|
children: [
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1486
|
+
/* @__PURE__ */ jsx24("span", { className: value, children: /* @__PURE__ */ jsx24(RadixSelect.Value, { placeholder }) }),
|
|
1487
|
+
/* @__PURE__ */ jsx24(RadixSelect.Icon, { className: icon4, children: /* @__PURE__ */ jsx24(ChevronDownIcon3, { size: 16 }) })
|
|
1241
1488
|
]
|
|
1242
1489
|
}
|
|
1243
1490
|
),
|
|
1244
|
-
/* @__PURE__ */
|
|
1491
|
+
/* @__PURE__ */ jsx24(RadixSelect.Portal, { children: /* @__PURE__ */ jsx24(
|
|
1245
1492
|
RadixSelect.Content,
|
|
1246
1493
|
{
|
|
1247
1494
|
position: "popper",
|
|
1248
1495
|
sideOffset: 4,
|
|
1249
1496
|
collisionPadding: 8,
|
|
1250
|
-
className: cx(portal2.className,
|
|
1497
|
+
className: cx(portal2.className, content3),
|
|
1251
1498
|
style: portal2.style,
|
|
1252
|
-
children: /* @__PURE__ */
|
|
1499
|
+
children: /* @__PURE__ */ jsx24(RadixSelect.Viewport, { className: viewport, children: options.map((option2) => /* @__PURE__ */ jsxs21(
|
|
1253
1500
|
RadixSelect.Item,
|
|
1254
1501
|
{
|
|
1255
1502
|
value: option2.value,
|
|
1256
1503
|
disabled: option2.disabled,
|
|
1257
|
-
className:
|
|
1504
|
+
className: item3,
|
|
1258
1505
|
children: [
|
|
1259
|
-
/* @__PURE__ */
|
|
1260
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx24(RadixSelect.ItemText, { children: option2.label }),
|
|
1507
|
+
/* @__PURE__ */ jsx24(RadixSelect.ItemIndicator, { className: itemIndicator, children: /* @__PURE__ */ jsx24(CheckIcon2, { size: 16 }) })
|
|
1261
1508
|
]
|
|
1262
1509
|
},
|
|
1263
1510
|
option2.value
|
|
@@ -1267,13 +1514,13 @@ var Select = /* @__PURE__ */ forwardRef20(function Select2(props, ref) {
|
|
|
1267
1514
|
]
|
|
1268
1515
|
}
|
|
1269
1516
|
),
|
|
1270
|
-
|
|
1517
|
+
helperText3 && /* @__PURE__ */ jsx24("p", { id: helperId, className: helperText({ error }), children: helperText3 })
|
|
1271
1518
|
] });
|
|
1272
1519
|
});
|
|
1273
1520
|
|
|
1274
1521
|
// src/components/Skeleton/Skeleton.tsx
|
|
1275
1522
|
import { assignInlineVars as assignInlineVars2 } from "@vanilla-extract/dynamic";
|
|
1276
|
-
import { forwardRef as
|
|
1523
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
1277
1524
|
|
|
1278
1525
|
// src/components/Skeleton/Skeleton.css.ts
|
|
1279
1526
|
import { createRuntimeFn as _7a46817 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
@@ -1283,13 +1530,13 @@ var skeleton = /* @__PURE__ */ _7a46817({ defaultClassName: "_1s8datd2", variant
|
|
|
1283
1530
|
var width = "var(--_1s8datd0)";
|
|
1284
1531
|
|
|
1285
1532
|
// src/components/Skeleton/Skeleton.tsx
|
|
1286
|
-
import { jsx as
|
|
1287
|
-
var toCss = (
|
|
1288
|
-
var Skeleton = /* @__PURE__ */
|
|
1533
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1534
|
+
var toCss = (value4) => typeof value4 === "number" ? `${value4}px` : value4;
|
|
1535
|
+
var Skeleton = /* @__PURE__ */ forwardRef22(function Skeleton2({ variant = "text", width: width2, height: height2, lines: lines2 = 1, className, style, ...rest }, ref) {
|
|
1289
1536
|
const w = toCss(width2 ?? (variant === "circle" ? 40 : "100%"));
|
|
1290
1537
|
const h = toCss(height2 ?? (variant === "circle" ? w : variant === "rect" ? 100 : "1em"));
|
|
1291
1538
|
if (variant === "text" && lines2 > 1) {
|
|
1292
|
-
return /* @__PURE__ */
|
|
1539
|
+
return /* @__PURE__ */ jsx25(
|
|
1293
1540
|
"span",
|
|
1294
1541
|
{
|
|
1295
1542
|
ref,
|
|
@@ -1297,7 +1544,7 @@ var Skeleton = /* @__PURE__ */ forwardRef21(function Skeleton2({ variant = "text
|
|
|
1297
1544
|
className: cx(lines, className),
|
|
1298
1545
|
style: { ...assignInlineVars2({ [width]: w }), ...style },
|
|
1299
1546
|
...rest,
|
|
1300
|
-
children: Array.from({ length: lines2 }, (_, i) => /* @__PURE__ */
|
|
1547
|
+
children: Array.from({ length: lines2 }, (_, i) => /* @__PURE__ */ jsx25(
|
|
1301
1548
|
"span",
|
|
1302
1549
|
{
|
|
1303
1550
|
className: skeleton({ variant }),
|
|
@@ -1308,7 +1555,7 @@ var Skeleton = /* @__PURE__ */ forwardRef21(function Skeleton2({ variant = "text
|
|
|
1308
1555
|
}
|
|
1309
1556
|
);
|
|
1310
1557
|
}
|
|
1311
|
-
return /* @__PURE__ */
|
|
1558
|
+
return /* @__PURE__ */ jsx25(
|
|
1312
1559
|
"span",
|
|
1313
1560
|
{
|
|
1314
1561
|
ref,
|
|
@@ -1320,106 +1567,324 @@ var Skeleton = /* @__PURE__ */ forwardRef21(function Skeleton2({ variant = "text
|
|
|
1320
1567
|
);
|
|
1321
1568
|
});
|
|
1322
1569
|
|
|
1570
|
+
// src/components/Slider/Slider.tsx
|
|
1571
|
+
import * as RadixSlider from "@radix-ui/react-slider";
|
|
1572
|
+
import { forwardRef as forwardRef23, useId as useId7, useState as useState3 } from "react";
|
|
1573
|
+
|
|
1574
|
+
// src/components/Slider/Slider.css.ts
|
|
1575
|
+
import { createRuntimeFn as _7a46818 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1576
|
+
var field2 = "_126mzjm0";
|
|
1577
|
+
var header7 = "_126mzjm1";
|
|
1578
|
+
var helperText2 = "_126mzjm4";
|
|
1579
|
+
var label4 = "_126mzjm2";
|
|
1580
|
+
var range2 = "_126mzjmb";
|
|
1581
|
+
var root7 = /* @__PURE__ */ _7a46818({ defaultClassName: "_126mzjm5", variantClassNames: { size: { sm: "_126mzjm6", md: "_126mzjm7" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1582
|
+
var thumb = /* @__PURE__ */ _7a46818({ defaultClassName: "_126mzjmc", variantClassNames: { size: { sm: "_126mzjmd", md: "_126mzjme" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1583
|
+
var track2 = /* @__PURE__ */ _7a46818({ defaultClassName: "_126mzjm8", variantClassNames: { size: { sm: "_126mzjm9", md: "_126mzjma" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1584
|
+
var value3 = "_126mzjm3";
|
|
1585
|
+
|
|
1586
|
+
// src/components/Slider/Slider.tsx
|
|
1587
|
+
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1588
|
+
var Slider = /* @__PURE__ */ forwardRef23(function Slider2(props, ref) {
|
|
1589
|
+
const {
|
|
1590
|
+
value: value4,
|
|
1591
|
+
defaultValue,
|
|
1592
|
+
onValueChange,
|
|
1593
|
+
min = 0,
|
|
1594
|
+
max = 100,
|
|
1595
|
+
label: label6,
|
|
1596
|
+
"aria-label": ariaLabel,
|
|
1597
|
+
helperText: helperText3,
|
|
1598
|
+
showValue,
|
|
1599
|
+
formatValue = String,
|
|
1600
|
+
thumbLabels = ["\uCD5C\uC18C", "\uCD5C\uB300"],
|
|
1601
|
+
size,
|
|
1602
|
+
id,
|
|
1603
|
+
className,
|
|
1604
|
+
disabled,
|
|
1605
|
+
...rest
|
|
1606
|
+
} = props;
|
|
1607
|
+
const generatedId = useId7();
|
|
1608
|
+
const baseId = id ?? generatedId;
|
|
1609
|
+
const labelId = `${baseId}-label`;
|
|
1610
|
+
const helperId = `${baseId}-helper`;
|
|
1611
|
+
const isControlled = "value" in props;
|
|
1612
|
+
const [innerValue, setInnerValue] = useState3(defaultValue ?? [min]);
|
|
1613
|
+
const current2 = isControlled ? value4 ?? [min] : innerValue;
|
|
1614
|
+
const isRange = current2.length > 1;
|
|
1615
|
+
const handleChange = (next) => {
|
|
1616
|
+
if (!isControlled) setInnerValue(next);
|
|
1617
|
+
onValueChange?.(next);
|
|
1618
|
+
};
|
|
1619
|
+
const valueText = current2.map(formatValue).join(" \u2013 ");
|
|
1620
|
+
return /* @__PURE__ */ jsxs22("div", { className: cx(field2, className), children: [
|
|
1621
|
+
(label6 || showValue) && /* @__PURE__ */ jsxs22("div", { className: header7, children: [
|
|
1622
|
+
label6 && /* @__PURE__ */ jsx26("span", { id: labelId, className: label4, children: label6 }),
|
|
1623
|
+
showValue && /* @__PURE__ */ jsx26("span", { className: value3, "aria-hidden": true, children: valueText })
|
|
1624
|
+
] }),
|
|
1625
|
+
/* @__PURE__ */ jsxs22(
|
|
1626
|
+
RadixSlider.Root,
|
|
1627
|
+
{
|
|
1628
|
+
ref,
|
|
1629
|
+
id: baseId,
|
|
1630
|
+
min,
|
|
1631
|
+
max,
|
|
1632
|
+
disabled,
|
|
1633
|
+
value: current2,
|
|
1634
|
+
onValueChange: handleChange,
|
|
1635
|
+
className: root7({ size }),
|
|
1636
|
+
...rest,
|
|
1637
|
+
children: [
|
|
1638
|
+
/* @__PURE__ */ jsx26(RadixSlider.Track, { className: track2({ size }), children: /* @__PURE__ */ jsx26(RadixSlider.Range, { className: range2 }) }),
|
|
1639
|
+
current2.map((thumbValue, index) => {
|
|
1640
|
+
const thumbLabelId = `${baseId}-thumb-${index}`;
|
|
1641
|
+
return /* @__PURE__ */ jsx26(
|
|
1642
|
+
RadixSlider.Thumb,
|
|
1643
|
+
{
|
|
1644
|
+
className: thumb({ size }),
|
|
1645
|
+
"aria-labelledby": label6 ? isRange ? `${labelId} ${thumbLabelId}` : labelId : isRange ? thumbLabelId : void 0,
|
|
1646
|
+
"aria-label": label6 ? void 0 : isRange ? void 0 : ariaLabel,
|
|
1647
|
+
"aria-valuetext": formatValue(thumbValue),
|
|
1648
|
+
"aria-describedby": helperText3 ? helperId : void 0
|
|
1649
|
+
},
|
|
1650
|
+
index
|
|
1651
|
+
);
|
|
1652
|
+
})
|
|
1653
|
+
]
|
|
1654
|
+
}
|
|
1655
|
+
),
|
|
1656
|
+
isRange && current2.map((_, index) => /* @__PURE__ */ jsxs22("span", { id: `${baseId}-thumb-${index}`, hidden: true, children: [
|
|
1657
|
+
label6 ? "" : ariaLabel ? `${ariaLabel} ` : "",
|
|
1658
|
+
thumbLabels[index] ?? `${index + 1}`
|
|
1659
|
+
] }, index)),
|
|
1660
|
+
helperText3 && /* @__PURE__ */ jsx26("span", { id: helperId, className: helperText2, children: helperText3 })
|
|
1661
|
+
] });
|
|
1662
|
+
});
|
|
1663
|
+
|
|
1323
1664
|
// src/components/Stack/Stack.tsx
|
|
1324
|
-
import { forwardRef as
|
|
1665
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
1325
1666
|
|
|
1326
1667
|
// src/components/Stack/Stack.css.ts
|
|
1327
|
-
import { createRuntimeFn as
|
|
1328
|
-
var stack = /* @__PURE__ */
|
|
1668
|
+
import { createRuntimeFn as _7a46819 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1669
|
+
var stack = /* @__PURE__ */ _7a46819({ defaultClassName: "_1jz9hj90", variantClassNames: { direction: { row: "_1jz9hj91", column: "_1jz9hj92", "row-reverse": "_1jz9hj93", "column-reverse": "_1jz9hj94" }, gap: { "0": "_1jz9hj95", "1": "_1jz9hj96", "2": "_1jz9hj97", "3": "_1jz9hj98", "4": "_1jz9hj99", "5": "_1jz9hj9a", "6": "_1jz9hj9b", "8": "_1jz9hj9c", "10": "_1jz9hj9d", "12": "_1jz9hj9e", "16": "_1jz9hj9f" }, align: { start: "_1jz9hj9g", center: "_1jz9hj9h", end: "_1jz9hj9i", stretch: "_1jz9hj9j", baseline: "_1jz9hj9k" }, justify: { start: "_1jz9hj9l", center: "_1jz9hj9m", end: "_1jz9hj9n", between: "_1jz9hj9o", around: "_1jz9hj9p", evenly: "_1jz9hj9q" }, wrap: { true: "_1jz9hj9r" } }, defaultVariants: { direction: "column" }, compoundVariants: [] });
|
|
1329
1670
|
|
|
1330
1671
|
// src/components/Stack/Stack.tsx
|
|
1331
|
-
import { jsx as
|
|
1332
|
-
var Stack = /* @__PURE__ */
|
|
1333
|
-
return /* @__PURE__ */
|
|
1672
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1673
|
+
var Stack = /* @__PURE__ */ forwardRef24(function Stack2({ as: Component = "div", direction, gap, align, justify, wrap, className, ...rest }, ref) {
|
|
1674
|
+
return /* @__PURE__ */ jsx27(Component, { ref, className: cx(stack({ direction, gap, align, justify, wrap }), className), ...rest });
|
|
1334
1675
|
});
|
|
1335
1676
|
|
|
1336
1677
|
// src/components/Switch/Switch.tsx
|
|
1337
1678
|
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
1338
|
-
import { forwardRef as
|
|
1679
|
+
import { forwardRef as forwardRef25, useId as useId8 } from "react";
|
|
1339
1680
|
|
|
1340
1681
|
// src/components/Switch/Switch.css.ts
|
|
1341
|
-
import { createRuntimeFn as
|
|
1342
|
-
var
|
|
1343
|
-
var
|
|
1344
|
-
var
|
|
1345
|
-
var
|
|
1682
|
+
import { createRuntimeFn as _7a46820 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1683
|
+
var label5 = "o33ul29";
|
|
1684
|
+
var root8 = /* @__PURE__ */ _7a46820({ defaultClassName: "o33ul20", variantClassNames: { size: { sm: "o33ul21", md: "o33ul22" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1685
|
+
var thumb2 = /* @__PURE__ */ _7a46820({ defaultClassName: "o33ul26", variantClassNames: { size: { sm: "o33ul27", md: "o33ul28" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1686
|
+
var track3 = /* @__PURE__ */ _7a46820({ defaultClassName: "o33ul23", variantClassNames: { size: { sm: "o33ul24", md: "o33ul25" } }, defaultVariants: { size: "md" }, compoundVariants: [] });
|
|
1346
1687
|
|
|
1347
1688
|
// src/components/Switch/Switch.tsx
|
|
1348
|
-
import { jsx as
|
|
1349
|
-
var Switch = /* @__PURE__ */
|
|
1350
|
-
const generatedId =
|
|
1689
|
+
import { jsx as jsx28, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1690
|
+
var Switch = /* @__PURE__ */ forwardRef25(function Switch2({ label: label6, size, id, className, disabled, "aria-label": ariaLabel, ...rest }, ref) {
|
|
1691
|
+
const generatedId = useId8();
|
|
1351
1692
|
const switchId = id ?? generatedId;
|
|
1352
|
-
return /* @__PURE__ */
|
|
1353
|
-
/* @__PURE__ */
|
|
1693
|
+
return /* @__PURE__ */ jsxs23("span", { className: cx(root8({ size }), className), "data-disabled": disabled || void 0, children: [
|
|
1694
|
+
/* @__PURE__ */ jsx28(
|
|
1354
1695
|
RadixSwitch.Root,
|
|
1355
1696
|
{
|
|
1356
1697
|
ref,
|
|
1357
1698
|
id: switchId,
|
|
1358
1699
|
disabled,
|
|
1359
1700
|
"aria-label": ariaLabel,
|
|
1360
|
-
className:
|
|
1701
|
+
className: track3({ size }),
|
|
1361
1702
|
...rest,
|
|
1362
|
-
children: /* @__PURE__ */
|
|
1703
|
+
children: /* @__PURE__ */ jsx28(RadixSwitch.Thumb, { className: thumb2({ size }) })
|
|
1363
1704
|
}
|
|
1364
1705
|
),
|
|
1365
|
-
|
|
1706
|
+
label6 && /* @__PURE__ */ jsx28("label", { htmlFor: switchId, className: label5, children: label6 })
|
|
1366
1707
|
] });
|
|
1367
1708
|
});
|
|
1368
1709
|
|
|
1710
|
+
// src/components/Table/Table.tsx
|
|
1711
|
+
import {
|
|
1712
|
+
createContext as createContext2,
|
|
1713
|
+
forwardRef as forwardRef26,
|
|
1714
|
+
useContext as useContext2,
|
|
1715
|
+
useId as useId9
|
|
1716
|
+
} from "react";
|
|
1717
|
+
import { ArrowDownIcon, ArrowUpIcon } from "@bestow-ui/icons";
|
|
1718
|
+
|
|
1719
|
+
// src/components/Table/Table.css.ts
|
|
1720
|
+
import { createRuntimeFn as _7a46821 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1721
|
+
var body4 = "l3ploy5";
|
|
1722
|
+
var caption = "l3ploy2";
|
|
1723
|
+
var cell = /* @__PURE__ */ _7a46821({ defaultClassName: "l3ploy9", variantClassNames: { size: { sm: "l3ploya", md: "l3ployb" }, align: { left: "l3ployc", center: "l3ployd", right: "l3ploye" } }, defaultVariants: { size: "md", align: "left" }, compoundVariants: [] });
|
|
1724
|
+
var container = "l3ploy0";
|
|
1725
|
+
var footer4 = "l3ploy7";
|
|
1726
|
+
var footerCell = "l3ployg";
|
|
1727
|
+
var head = "l3ployf";
|
|
1728
|
+
var header8 = "l3ploy3";
|
|
1729
|
+
var row = "l3ploy8";
|
|
1730
|
+
var sortButton = "l3ployh";
|
|
1731
|
+
var sortIcon = "l3ployi";
|
|
1732
|
+
var stickyHeader = "l3ploy4";
|
|
1733
|
+
var striped = "l3ploy6";
|
|
1734
|
+
var table = "l3ploy1";
|
|
1735
|
+
|
|
1736
|
+
// src/components/Table/Table.tsx
|
|
1737
|
+
import { jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1738
|
+
var TableSizeContext = /* @__PURE__ */ createContext2("md");
|
|
1739
|
+
var TableSectionContext = /* @__PURE__ */ createContext2("body");
|
|
1740
|
+
var Table = /* @__PURE__ */ forwardRef26(function Table2({
|
|
1741
|
+
size = "md",
|
|
1742
|
+
striped: striped2,
|
|
1743
|
+
stickyHeader: stickyHeader2,
|
|
1744
|
+
caption: caption2,
|
|
1745
|
+
"aria-label": ariaLabel,
|
|
1746
|
+
containerClassName,
|
|
1747
|
+
containerStyle,
|
|
1748
|
+
className,
|
|
1749
|
+
children,
|
|
1750
|
+
...rest
|
|
1751
|
+
}, ref) {
|
|
1752
|
+
const captionId = useId9();
|
|
1753
|
+
return /* @__PURE__ */ jsx29(TableSizeContext.Provider, { value: size, children: /* @__PURE__ */ jsx29(
|
|
1754
|
+
"div",
|
|
1755
|
+
{
|
|
1756
|
+
className: cx(container, containerClassName),
|
|
1757
|
+
style: containerStyle,
|
|
1758
|
+
tabIndex: 0,
|
|
1759
|
+
role: "region",
|
|
1760
|
+
"aria-labelledby": caption2 ? captionId : void 0,
|
|
1761
|
+
"aria-label": caption2 ? void 0 : ariaLabel,
|
|
1762
|
+
children: /* @__PURE__ */ jsxs24(
|
|
1763
|
+
"table",
|
|
1764
|
+
{
|
|
1765
|
+
ref,
|
|
1766
|
+
className: cx(table, striped2 && striped, stickyHeader2 && stickyHeader, className),
|
|
1767
|
+
"aria-label": caption2 ? void 0 : ariaLabel,
|
|
1768
|
+
...rest,
|
|
1769
|
+
children: [
|
|
1770
|
+
caption2 && /* @__PURE__ */ jsx29("caption", { id: captionId, className: caption, children: caption2 }),
|
|
1771
|
+
children
|
|
1772
|
+
]
|
|
1773
|
+
}
|
|
1774
|
+
)
|
|
1775
|
+
}
|
|
1776
|
+
) });
|
|
1777
|
+
});
|
|
1778
|
+
var TableHeader = /* @__PURE__ */ forwardRef26(
|
|
1779
|
+
function TableHeader2({ className, ...rest }, ref) {
|
|
1780
|
+
return /* @__PURE__ */ jsx29(TableSectionContext.Provider, { value: "header", children: /* @__PURE__ */ jsx29("thead", { ref, className: cx(header8, className), ...rest }) });
|
|
1781
|
+
}
|
|
1782
|
+
);
|
|
1783
|
+
var TableBody = /* @__PURE__ */ forwardRef26(
|
|
1784
|
+
function TableBody2({ className, ...rest }, ref) {
|
|
1785
|
+
return /* @__PURE__ */ jsx29(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx29("tbody", { ref, className: cx(body4, className), ...rest }) });
|
|
1786
|
+
}
|
|
1787
|
+
);
|
|
1788
|
+
var TableFooter = /* @__PURE__ */ forwardRef26(
|
|
1789
|
+
function TableFooter2({ className, ...rest }, ref) {
|
|
1790
|
+
return /* @__PURE__ */ jsx29(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx29("tfoot", { ref, className: cx(footer4, className), ...rest }) });
|
|
1791
|
+
}
|
|
1792
|
+
);
|
|
1793
|
+
var TableRow = /* @__PURE__ */ forwardRef26(function TableRow2({ selected, className, ...rest }, ref) {
|
|
1794
|
+
return /* @__PURE__ */ jsx29("tr", { ref, className: cx(row, className), "data-state": selected ? "selected" : void 0, ...rest });
|
|
1795
|
+
});
|
|
1796
|
+
var TableHead = /* @__PURE__ */ forwardRef26(function TableHead2({ align, sortDirection, onSort, scope, className, children, ...rest }, ref) {
|
|
1797
|
+
const size = useContext2(TableSizeContext);
|
|
1798
|
+
const section = useContext2(TableSectionContext);
|
|
1799
|
+
const sortable = onSort !== void 0;
|
|
1800
|
+
const direction = sortDirection ?? "none";
|
|
1801
|
+
const SortIcon = direction === "descending" ? ArrowDownIcon : ArrowUpIcon;
|
|
1802
|
+
return /* @__PURE__ */ jsx29(
|
|
1803
|
+
"th",
|
|
1804
|
+
{
|
|
1805
|
+
ref,
|
|
1806
|
+
scope: scope ?? (section === "header" ? "col" : "row"),
|
|
1807
|
+
"aria-sort": sortable && direction !== "none" ? direction : void 0,
|
|
1808
|
+
className: cx(
|
|
1809
|
+
cell({ size, align }),
|
|
1810
|
+
section === "header" ? head : section === "footer" ? footerCell : void 0,
|
|
1811
|
+
className
|
|
1812
|
+
),
|
|
1813
|
+
...rest,
|
|
1814
|
+
children: sortable ? /* @__PURE__ */ jsxs24("button", { type: "button", className: sortButton, onClick: onSort, children: [
|
|
1815
|
+
children,
|
|
1816
|
+
/* @__PURE__ */ jsx29(SortIcon, { size: 14, className: sortIcon, "data-active": direction !== "none", "aria-hidden": true })
|
|
1817
|
+
] }) : children
|
|
1818
|
+
}
|
|
1819
|
+
);
|
|
1820
|
+
});
|
|
1821
|
+
var TableCell = /* @__PURE__ */ forwardRef26(function TableCell2({ align, className, ...rest }, ref) {
|
|
1822
|
+
const size = useContext2(TableSizeContext);
|
|
1823
|
+
const section = useContext2(TableSectionContext);
|
|
1824
|
+
return /* @__PURE__ */ jsx29(
|
|
1825
|
+
"td",
|
|
1826
|
+
{
|
|
1827
|
+
ref,
|
|
1828
|
+
className: cx(cell({ size, align }), section === "footer" && footerCell, className),
|
|
1829
|
+
...rest
|
|
1830
|
+
}
|
|
1831
|
+
);
|
|
1832
|
+
});
|
|
1833
|
+
|
|
1369
1834
|
// src/components/Tabs/Tabs.tsx
|
|
1370
1835
|
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
1371
|
-
import { createContext as
|
|
1836
|
+
import { createContext as createContext3, forwardRef as forwardRef27, useContext as useContext3 } from "react";
|
|
1372
1837
|
|
|
1373
1838
|
// src/components/Tabs/Tabs.css.ts
|
|
1374
|
-
import { createRuntimeFn as
|
|
1375
|
-
var
|
|
1376
|
-
var list3 = /* @__PURE__ */
|
|
1377
|
-
var trigger3 = /* @__PURE__ */
|
|
1839
|
+
import { createRuntimeFn as _7a46822 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1840
|
+
var content9 = "fvhbtda";
|
|
1841
|
+
var list3 = /* @__PURE__ */ _7a46822({ defaultClassName: "fvhbtd0", variantClassNames: { variant: { line: "fvhbtd1", soft: "fvhbtd2" } }, defaultVariants: { variant: "line" }, compoundVariants: [] });
|
|
1842
|
+
var trigger3 = /* @__PURE__ */ _7a46822({ defaultClassName: "fvhbtd3", variantClassNames: { variant: { line: "fvhbtd4", soft: "fvhbtd5" }, size: { sm: "fvhbtd6", md: "fvhbtd7" } }, defaultVariants: { variant: "line", size: "md" }, compoundVariants: [[{ variant: "soft", size: "sm" }, "fvhbtd8"], [{ variant: "soft", size: "md" }, "fvhbtd9"]] });
|
|
1378
1843
|
|
|
1379
1844
|
// src/components/Tabs/Tabs.tsx
|
|
1380
|
-
import { jsx as
|
|
1381
|
-
var TabsStyleContext = /* @__PURE__ */
|
|
1382
|
-
var Tabs = /* @__PURE__ */
|
|
1845
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1846
|
+
var TabsStyleContext = /* @__PURE__ */ createContext3({ variant: "line", size: "md" });
|
|
1847
|
+
var Tabs = /* @__PURE__ */ forwardRef27(function Tabs2({ variant = "line", size = "md", ...props }, ref) {
|
|
1383
1848
|
const controlled = "value" in props ? { value: props.value ?? "" } : {};
|
|
1384
|
-
return /* @__PURE__ */
|
|
1849
|
+
return /* @__PURE__ */ jsx30(TabsStyleContext.Provider, { value: { variant, size }, children: /* @__PURE__ */ jsx30(RadixTabs.Root, { ref, ...props, ...controlled }) });
|
|
1385
1850
|
});
|
|
1386
|
-
var TabsList = /* @__PURE__ */
|
|
1387
|
-
const { variant } =
|
|
1388
|
-
return /* @__PURE__ */
|
|
1851
|
+
var TabsList = /* @__PURE__ */ forwardRef27(function TabsList2({ className, ...rest }, ref) {
|
|
1852
|
+
const { variant } = useContext3(TabsStyleContext);
|
|
1853
|
+
return /* @__PURE__ */ jsx30(RadixTabs.List, { ref, className: cx(list3({ variant }), className), ...rest });
|
|
1389
1854
|
});
|
|
1390
|
-
var TabsTrigger = /* @__PURE__ */
|
|
1391
|
-
const { variant, size } =
|
|
1392
|
-
return /* @__PURE__ */
|
|
1855
|
+
var TabsTrigger = /* @__PURE__ */ forwardRef27(function TabsTrigger2({ className, ...rest }, ref) {
|
|
1856
|
+
const { variant, size } = useContext3(TabsStyleContext);
|
|
1857
|
+
return /* @__PURE__ */ jsx30(RadixTabs.Trigger, { ref, className: cx(trigger3({ variant, size }), className), ...rest });
|
|
1393
1858
|
});
|
|
1394
|
-
var TabsContent = /* @__PURE__ */
|
|
1395
|
-
return /* @__PURE__ */
|
|
1859
|
+
var TabsContent = /* @__PURE__ */ forwardRef27(function TabsContent2({ className, ...rest }, ref) {
|
|
1860
|
+
return /* @__PURE__ */ jsx30(RadixTabs.Content, { ref, className: cx(content9, className), ...rest });
|
|
1396
1861
|
});
|
|
1397
1862
|
|
|
1398
1863
|
// src/components/Textarea/Textarea.tsx
|
|
1399
1864
|
import {
|
|
1400
|
-
forwardRef as
|
|
1865
|
+
forwardRef as forwardRef28,
|
|
1401
1866
|
useCallback,
|
|
1402
|
-
useEffect as
|
|
1403
|
-
useId as
|
|
1867
|
+
useEffect as useEffect3,
|
|
1868
|
+
useId as useId10,
|
|
1404
1869
|
useLayoutEffect,
|
|
1405
|
-
useRef as
|
|
1406
|
-
useState as
|
|
1870
|
+
useRef as useRef3,
|
|
1871
|
+
useState as useState4
|
|
1407
1872
|
} from "react";
|
|
1408
1873
|
|
|
1409
1874
|
// src/components/Textarea/Textarea.css.ts
|
|
1410
|
-
import { createRuntimeFn as
|
|
1875
|
+
import { createRuntimeFn as _7a46823 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1411
1876
|
var count = "_1koawa9";
|
|
1412
1877
|
var countOver = "_1koawaa";
|
|
1413
1878
|
var defaultWidth = "_1koawa7";
|
|
1414
|
-
var
|
|
1415
|
-
var textarea = /* @__PURE__ */
|
|
1879
|
+
var footer5 = "_1koawa8";
|
|
1880
|
+
var textarea = /* @__PURE__ */ _7a46823({ defaultClassName: "_1koawa0", variantClassNames: { size: { sm: "_1koawa1", md: "_1koawa2", lg: "_1koawa3" }, resize: { none: "_1koawa4", vertical: "_1koawa5", both: "_1koawa6" } }, defaultVariants: { size: "md", resize: "vertical" }, compoundVariants: [] });
|
|
1416
1881
|
|
|
1417
1882
|
// src/components/Textarea/Textarea.tsx
|
|
1418
|
-
import { jsx as
|
|
1419
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect :
|
|
1420
|
-
var Textarea = /* @__PURE__ */
|
|
1421
|
-
label:
|
|
1422
|
-
helperText:
|
|
1883
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1884
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect3;
|
|
1885
|
+
var Textarea = /* @__PURE__ */ forwardRef28(function Textarea2({
|
|
1886
|
+
label: label6,
|
|
1887
|
+
helperText: helperText3,
|
|
1423
1888
|
error,
|
|
1424
1889
|
size,
|
|
1425
1890
|
fullWidth,
|
|
@@ -1429,7 +1894,7 @@ var Textarea = /* @__PURE__ */ forwardRef25(function Textarea2({
|
|
|
1429
1894
|
required,
|
|
1430
1895
|
id,
|
|
1431
1896
|
rows = 3,
|
|
1432
|
-
value:
|
|
1897
|
+
value: value4,
|
|
1433
1898
|
defaultValue,
|
|
1434
1899
|
onChange,
|
|
1435
1900
|
maxLength,
|
|
@@ -1438,12 +1903,12 @@ var Textarea = /* @__PURE__ */ forwardRef25(function Textarea2({
|
|
|
1438
1903
|
"aria-describedby": ariaDescribedBy,
|
|
1439
1904
|
...rest
|
|
1440
1905
|
}, ref) {
|
|
1441
|
-
const generatedId =
|
|
1906
|
+
const generatedId = useId10();
|
|
1442
1907
|
const textareaId = id ?? generatedId;
|
|
1443
|
-
const helperId =
|
|
1444
|
-
const innerRef =
|
|
1445
|
-
const [uncontrolledLength, setUncontrolledLength] =
|
|
1446
|
-
const length =
|
|
1908
|
+
const helperId = helperText3 ? `${textareaId}-helper` : void 0;
|
|
1909
|
+
const innerRef = useRef3(null);
|
|
1910
|
+
const [uncontrolledLength, setUncontrolledLength] = useState4(() => String(defaultValue ?? "").length);
|
|
1911
|
+
const length = value4 !== void 0 ? String(value4).length : uncontrolledLength;
|
|
1447
1912
|
const fitHeight = useCallback(() => {
|
|
1448
1913
|
const el = innerRef.current;
|
|
1449
1914
|
if (!autoResize || !el) return;
|
|
@@ -1451,24 +1916,24 @@ var Textarea = /* @__PURE__ */ forwardRef25(function Textarea2({
|
|
|
1451
1916
|
const borders = el.offsetHeight - el.clientHeight;
|
|
1452
1917
|
el.style.height = `${el.scrollHeight + borders}px`;
|
|
1453
1918
|
}, [autoResize]);
|
|
1454
|
-
useIsomorphicLayoutEffect(fitHeight, [fitHeight,
|
|
1919
|
+
useIsomorphicLayoutEffect(fitHeight, [fitHeight, value4]);
|
|
1455
1920
|
const handleChange = (event) => {
|
|
1456
|
-
if (
|
|
1921
|
+
if (value4 === void 0) setUncontrolledLength(event.target.value.length);
|
|
1457
1922
|
fitHeight();
|
|
1458
1923
|
onChange?.(event);
|
|
1459
1924
|
};
|
|
1460
|
-
return /* @__PURE__ */
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
required && /* @__PURE__ */
|
|
1925
|
+
return /* @__PURE__ */ jsxs25("div", { className: cx(field, fullWidth && fieldFullWidth), children: [
|
|
1926
|
+
label6 && /* @__PURE__ */ jsxs25("label", { htmlFor: textareaId, className: label, children: [
|
|
1927
|
+
label6,
|
|
1928
|
+
required && /* @__PURE__ */ jsx31("span", { className: requiredMark, "aria-hidden": true, children: "*" })
|
|
1464
1929
|
] }),
|
|
1465
|
-
/* @__PURE__ */
|
|
1930
|
+
/* @__PURE__ */ jsx31(
|
|
1466
1931
|
"textarea",
|
|
1467
1932
|
{
|
|
1468
1933
|
ref: mergeRefs(innerRef, ref),
|
|
1469
1934
|
id: textareaId,
|
|
1470
1935
|
rows,
|
|
1471
|
-
value:
|
|
1936
|
+
value: value4,
|
|
1472
1937
|
defaultValue,
|
|
1473
1938
|
onChange: handleChange,
|
|
1474
1939
|
maxLength,
|
|
@@ -1484,34 +1949,34 @@ var Textarea = /* @__PURE__ */ forwardRef25(function Textarea2({
|
|
|
1484
1949
|
...rest
|
|
1485
1950
|
}
|
|
1486
1951
|
),
|
|
1487
|
-
(
|
|
1488
|
-
|
|
1489
|
-
showCount && /* @__PURE__ */
|
|
1952
|
+
(helperText3 || showCount) && /* @__PURE__ */ jsxs25("div", { className: footer5, children: [
|
|
1953
|
+
helperText3 && /* @__PURE__ */ jsx31("p", { id: helperId, className: helperText({ error }), children: helperText3 }),
|
|
1954
|
+
showCount && /* @__PURE__ */ jsx31("span", { className: cx(count, maxLength !== void 0 && length >= maxLength && countOver), children: maxLength !== void 0 ? `${length}/${maxLength}` : length })
|
|
1490
1955
|
] })
|
|
1491
1956
|
] });
|
|
1492
1957
|
});
|
|
1493
1958
|
|
|
1494
1959
|
// src/components/Toast/Toast.tsx
|
|
1495
1960
|
import * as RadixToast from "@radix-ui/react-toast";
|
|
1496
|
-
import { createContext as
|
|
1961
|
+
import { createContext as createContext4, useCallback as useCallback2, useContext as useContext4, useMemo as useMemo3, useRef as useRef4, useState as useState5 } from "react";
|
|
1497
1962
|
import { XIcon as XIcon5 } from "@bestow-ui/icons";
|
|
1498
1963
|
|
|
1499
1964
|
// src/components/Toast/Toast.css.ts
|
|
1500
|
-
import { createRuntimeFn as
|
|
1965
|
+
import { createRuntimeFn as _7a46824 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
1501
1966
|
var action2 = "_1g11zvx8";
|
|
1502
1967
|
var close = "_1g11zvx9";
|
|
1503
1968
|
var description5 = "_1g11zvx7";
|
|
1504
1969
|
var title5 = "_1g11zvx6";
|
|
1505
|
-
var toast = /* @__PURE__ */
|
|
1970
|
+
var toast = /* @__PURE__ */ _7a46824({ defaultClassName: "_1g11zvx1", variantClassNames: { variant: { "default": "_1g11zvx2", success: "_1g11zvx3", warning: "_1g11zvx4", danger: "_1g11zvx5" } }, defaultVariants: { variant: "default" }, compoundVariants: [] });
|
|
1506
1971
|
var viewport2 = "_1g11zvx0";
|
|
1507
1972
|
|
|
1508
1973
|
// src/components/Toast/Toast.tsx
|
|
1509
|
-
import { jsx as
|
|
1974
|
+
import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1510
1975
|
var REMOVE_DELAY = 500;
|
|
1511
|
-
var ToastContext = /* @__PURE__ */
|
|
1512
|
-
function ToastProvider({ children, duration = 5e3, label:
|
|
1513
|
-
const [toasts, setToasts] =
|
|
1514
|
-
const nextId =
|
|
1976
|
+
var ToastContext = /* @__PURE__ */ createContext4(null);
|
|
1977
|
+
function ToastProvider({ children, duration = 5e3, label: label6 = "\uC54C\uB9BC" }) {
|
|
1978
|
+
const [toasts, setToasts] = useState5([]);
|
|
1979
|
+
const nextId = useRef4(0);
|
|
1515
1980
|
const portal2 = usePortalProps();
|
|
1516
1981
|
const toast2 = useCallback2((options) => {
|
|
1517
1982
|
const id = nextId.current++;
|
|
@@ -1523,10 +1988,10 @@ function ToastProvider({ children, duration = 5e3, label: label5 = "\uC54C\uB9BC
|
|
|
1523
1988
|
setToasts((prev) => prev.map((t) => isTarget(t) ? { ...t, open: false } : t));
|
|
1524
1989
|
setTimeout(() => setToasts((prev) => prev.filter((t) => t.open || !isTarget(t))), REMOVE_DELAY);
|
|
1525
1990
|
}, []);
|
|
1526
|
-
const
|
|
1527
|
-
return /* @__PURE__ */
|
|
1991
|
+
const value4 = useMemo3(() => ({ toast: toast2, dismiss }), [toast2, dismiss]);
|
|
1992
|
+
return /* @__PURE__ */ jsx32(ToastContext.Provider, { value: value4, children: /* @__PURE__ */ jsxs26(RadixToast.Provider, { duration, label: label6, swipeDirection: "right", children: [
|
|
1528
1993
|
children,
|
|
1529
|
-
toasts.map(({ id, open, title: title6, description: description6, variant, duration: itemDuration, action: action3 }) => /* @__PURE__ */
|
|
1994
|
+
toasts.map(({ id, open, title: title6, description: description6, variant, duration: itemDuration, action: action3 }) => /* @__PURE__ */ jsxs26(
|
|
1530
1995
|
RadixToast.Root,
|
|
1531
1996
|
{
|
|
1532
1997
|
open,
|
|
@@ -1536,19 +2001,19 @@ function ToastProvider({ children, duration = 5e3, label: label5 = "\uC54C\uB9BC
|
|
|
1536
2001
|
},
|
|
1537
2002
|
className: toast({ variant }),
|
|
1538
2003
|
children: [
|
|
1539
|
-
/* @__PURE__ */
|
|
1540
|
-
description6 && /* @__PURE__ */
|
|
1541
|
-
action3 && /* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
2004
|
+
/* @__PURE__ */ jsx32(RadixToast.Title, { className: title5, children: title6 }),
|
|
2005
|
+
description6 && /* @__PURE__ */ jsx32(RadixToast.Description, { className: description5, children: description6 }),
|
|
2006
|
+
action3 && /* @__PURE__ */ jsx32(RadixToast.Action, { asChild: true, altText: action3.altText ?? action3.label, className: action2, children: /* @__PURE__ */ jsx32(Button, { size: "sm", variant: "soft", color: "neutral", onClick: action3.onClick, children: action3.label }) }),
|
|
2007
|
+
/* @__PURE__ */ jsx32(RadixToast.Close, { className: close, "aria-label": "\uB2EB\uAE30", children: /* @__PURE__ */ jsx32(XIcon5, { size: 16 }) })
|
|
1543
2008
|
]
|
|
1544
2009
|
},
|
|
1545
2010
|
id
|
|
1546
2011
|
)),
|
|
1547
|
-
/* @__PURE__ */
|
|
2012
|
+
/* @__PURE__ */ jsx32(RadixToast.Viewport, { className: cx(portal2.className, viewport2), style: portal2.style })
|
|
1548
2013
|
] }) });
|
|
1549
2014
|
}
|
|
1550
2015
|
function useToast() {
|
|
1551
|
-
const context =
|
|
2016
|
+
const context = useContext4(ToastContext);
|
|
1552
2017
|
if (!context) throw new Error("useToast \uB294 ToastProvider \uC548\uC5D0\uC11C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4.");
|
|
1553
2018
|
return context;
|
|
1554
2019
|
}
|
|
@@ -1558,12 +2023,12 @@ import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
|
1558
2023
|
|
|
1559
2024
|
// src/components/Tooltip/Tooltip.css.ts
|
|
1560
2025
|
var arrow2 = "z7rufs1";
|
|
1561
|
-
var
|
|
2026
|
+
var content10 = "z7rufs0";
|
|
1562
2027
|
|
|
1563
2028
|
// src/components/Tooltip/Tooltip.tsx
|
|
1564
|
-
import { jsx as
|
|
2029
|
+
import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1565
2030
|
function Tooltip({
|
|
1566
|
-
content:
|
|
2031
|
+
content: content11,
|
|
1567
2032
|
children,
|
|
1568
2033
|
side = "top",
|
|
1569
2034
|
align = "center",
|
|
@@ -1575,21 +2040,21 @@ function Tooltip({
|
|
|
1575
2040
|
className
|
|
1576
2041
|
}) {
|
|
1577
2042
|
const portal2 = usePortalProps();
|
|
1578
|
-
if (disabled ||
|
|
1579
|
-
return /* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
/* @__PURE__ */
|
|
2043
|
+
if (disabled || content11 == null || content11 === "") return children;
|
|
2044
|
+
return /* @__PURE__ */ jsx33(RadixTooltip.Provider, { delayDuration: delay, children: /* @__PURE__ */ jsxs27(RadixTooltip.Root, { open, defaultOpen, onOpenChange, children: [
|
|
2045
|
+
/* @__PURE__ */ jsx33(RadixTooltip.Trigger, { asChild: true, children }),
|
|
2046
|
+
/* @__PURE__ */ jsx33(RadixTooltip.Portal, { children: /* @__PURE__ */ jsxs27(
|
|
1582
2047
|
RadixTooltip.Content,
|
|
1583
2048
|
{
|
|
1584
2049
|
side,
|
|
1585
2050
|
align,
|
|
1586
2051
|
sideOffset: 6,
|
|
1587
2052
|
collisionPadding: 8,
|
|
1588
|
-
className: cx(portal2.className,
|
|
2053
|
+
className: cx(portal2.className, content10, className),
|
|
1589
2054
|
style: portal2.style,
|
|
1590
2055
|
children: [
|
|
1591
|
-
|
|
1592
|
-
/* @__PURE__ */
|
|
2056
|
+
content11,
|
|
2057
|
+
/* @__PURE__ */ jsx33(RadixTooltip.Arrow, { className: arrow2, width: 10, height: 5 })
|
|
1593
2058
|
]
|
|
1594
2059
|
}
|
|
1595
2060
|
) })
|
|
@@ -1597,14 +2062,14 @@ function Tooltip({
|
|
|
1597
2062
|
}
|
|
1598
2063
|
|
|
1599
2064
|
// src/components/Typography/Typography.tsx
|
|
1600
|
-
import { forwardRef as
|
|
2065
|
+
import { forwardRef as forwardRef29 } from "react";
|
|
1601
2066
|
|
|
1602
2067
|
// src/components/Typography/Typography.css.ts
|
|
1603
|
-
import { createRuntimeFn as
|
|
1604
|
-
var typography = /* @__PURE__ */
|
|
2068
|
+
import { createRuntimeFn as _7a46825 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
2069
|
+
var typography = /* @__PURE__ */ _7a46825({ defaultClassName: "kiolio0", variantClassNames: { variant: { display: "kiolio1", h1: "kiolio2", h2: "kiolio3", h3: "kiolio4", h4: "kiolio5", "body-lg": "kiolio6", body: "kiolio7", "body-sm": "kiolio8", caption: "kiolio9" }, color: { "default": "kiolioa", muted: "kioliob", subtle: "kiolioc", primary: "kioliod", danger: "kiolioe", success: "kioliof", warning: "kioliog", inherit: "kiolioh" }, weight: { regular: "kiolioi", medium: "kiolioj", semibold: "kioliok", bold: "kioliol" }, align: { start: "kioliom", center: "kiolion", end: "kiolioo" }, truncate: { true: "kioliop" } }, defaultVariants: { variant: "body", color: "default" }, compoundVariants: [] });
|
|
1605
2070
|
|
|
1606
2071
|
// src/components/Typography/Typography.tsx
|
|
1607
|
-
import { jsx as
|
|
2072
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1608
2073
|
var defaultElement = {
|
|
1609
2074
|
display: "h1",
|
|
1610
2075
|
h1: "h1",
|
|
@@ -1616,9 +2081,9 @@ var defaultElement = {
|
|
|
1616
2081
|
"body-sm": "p",
|
|
1617
2082
|
caption: "span"
|
|
1618
2083
|
};
|
|
1619
|
-
var Typography = /* @__PURE__ */
|
|
2084
|
+
var Typography = /* @__PURE__ */ forwardRef29(function Typography2({ variant = "body", as, color, weight, align, truncate, className, ...rest }, ref) {
|
|
1620
2085
|
const Component = as ?? defaultElement[variant];
|
|
1621
|
-
return /* @__PURE__ */
|
|
2086
|
+
return /* @__PURE__ */ jsx34(
|
|
1622
2087
|
Component,
|
|
1623
2088
|
{
|
|
1624
2089
|
ref,
|
|
@@ -1640,6 +2105,7 @@ export {
|
|
|
1640
2105
|
CardFooter,
|
|
1641
2106
|
CardHeader,
|
|
1642
2107
|
Checkbox,
|
|
2108
|
+
Combobox,
|
|
1643
2109
|
Divider,
|
|
1644
2110
|
Drawer,
|
|
1645
2111
|
DrawerClose,
|
|
@@ -1656,15 +2122,23 @@ export {
|
|
|
1656
2122
|
Modal,
|
|
1657
2123
|
ModalClose,
|
|
1658
2124
|
Pagination,
|
|
1659
|
-
Popover,
|
|
2125
|
+
Popover2 as Popover,
|
|
1660
2126
|
PopoverClose,
|
|
1661
2127
|
Progress,
|
|
1662
2128
|
RadioGroup,
|
|
1663
2129
|
Select,
|
|
1664
2130
|
Skeleton,
|
|
2131
|
+
Slider,
|
|
1665
2132
|
Spinner,
|
|
1666
2133
|
Stack,
|
|
1667
2134
|
Switch,
|
|
2135
|
+
Table,
|
|
2136
|
+
TableBody,
|
|
2137
|
+
TableCell,
|
|
2138
|
+
TableFooter,
|
|
2139
|
+
TableHead,
|
|
2140
|
+
TableHeader,
|
|
2141
|
+
TableRow,
|
|
1668
2142
|
Tabs,
|
|
1669
2143
|
TabsContent,
|
|
1670
2144
|
TabsList,
|