@octavius2929-personal/design-system 0.6.0 → 0.7.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/dist/index.cjs +481 -342
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +30 -15
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.js +434 -300
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -46,8 +46,10 @@ __export(index_exports, {
|
|
|
46
46
|
ListItem: () => ListItem,
|
|
47
47
|
Menu: () => Menu,
|
|
48
48
|
MinusIcon: () => MinusIcon,
|
|
49
|
+
MoneyField: () => MoneyField,
|
|
49
50
|
MoreHorizontalIcon: () => MoreHorizontalIcon,
|
|
50
51
|
Pagination: () => Pagination,
|
|
52
|
+
PasswordField: () => PasswordField,
|
|
51
53
|
PlusIcon: () => PlusIcon,
|
|
52
54
|
Progress: () => Progress,
|
|
53
55
|
Radio: () => Radio,
|
|
@@ -737,13 +739,142 @@ function Switch({ checked = false, onChange, label: label7, disabled: disabled3
|
|
|
737
739
|
] });
|
|
738
740
|
}
|
|
739
741
|
|
|
740
|
-
// src/components/
|
|
742
|
+
// src/components/base-field/index.tsx
|
|
741
743
|
var import_react15 = require("react");
|
|
742
744
|
|
|
743
|
-
// src/components/
|
|
745
|
+
// src/components/base-field/use-styles.ts
|
|
746
|
+
var import_react14 = require("react");
|
|
747
|
+
|
|
748
|
+
// src/components/base-field/use-styles.css.ts
|
|
749
|
+
var field = "use-styles_field__1c3cgd3";
|
|
750
|
+
var helpText = "use-styles_helpText__1c3cgd8";
|
|
751
|
+
var helpTextError = "use-styles_helpTextError__1c3cgd9";
|
|
752
|
+
var input4 = "use-styles_input__1c3cgd4";
|
|
753
|
+
var inputError = "use-styles_inputError__1c3cgd5";
|
|
754
|
+
var inputStartPad = "use-styles_inputStartPad__1c3cgd6";
|
|
755
|
+
var inputTrailingPad = "use-styles_inputTrailingPad__1c3cgd7";
|
|
756
|
+
var labelText = "use-styles_labelText__1c3cgd1";
|
|
757
|
+
var labelTextError = "use-styles_labelTextError__1c3cgd2";
|
|
758
|
+
var root9 = "use-styles_root__1c3cgd0";
|
|
759
|
+
var startIconSlot = "use-styles_startIconSlot__1c3cgda";
|
|
760
|
+
var trailingSlot = "use-styles_trailingSlot__1c3cgdb";
|
|
761
|
+
|
|
762
|
+
// src/components/base-field/use-styles.ts
|
|
763
|
+
function useStyles11({ error, hasStartIcon, hasTrailing, className }) {
|
|
764
|
+
const { themeClass } = useTheme();
|
|
765
|
+
return (0, import_react14.useMemo)(() => {
|
|
766
|
+
const root24 = [themeClass, root9].filter(Boolean).join(" ");
|
|
767
|
+
const labelText2 = [labelText, error && labelTextError].filter(Boolean).join(" ");
|
|
768
|
+
const input6 = [
|
|
769
|
+
input4,
|
|
770
|
+
error && inputError,
|
|
771
|
+
hasStartIcon && inputStartPad,
|
|
772
|
+
hasTrailing && inputTrailingPad,
|
|
773
|
+
className
|
|
774
|
+
].filter(Boolean).join(" ");
|
|
775
|
+
const helpText2 = [helpText, error && helpTextError].filter(Boolean).join(" ");
|
|
776
|
+
return {
|
|
777
|
+
root: root24,
|
|
778
|
+
labelText: labelText2,
|
|
779
|
+
field,
|
|
780
|
+
input: input6,
|
|
781
|
+
helpText: helpText2,
|
|
782
|
+
startIconSlot,
|
|
783
|
+
trailingSlot
|
|
784
|
+
};
|
|
785
|
+
}, [themeClass, error, hasStartIcon, hasTrailing, className]);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
// src/components/base-field/index.tsx
|
|
744
789
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
790
|
+
function BaseField({
|
|
791
|
+
label: label7,
|
|
792
|
+
help,
|
|
793
|
+
error,
|
|
794
|
+
startIcon: StartIcon,
|
|
795
|
+
trailing: trailing2,
|
|
796
|
+
id,
|
|
797
|
+
className,
|
|
798
|
+
children
|
|
799
|
+
}) {
|
|
800
|
+
const autoId = (0, import_react15.useId)();
|
|
801
|
+
const controlId = id ?? autoId;
|
|
802
|
+
const helpId = help != null ? `${controlId}-help` : void 0;
|
|
803
|
+
const classes = useStyles11({
|
|
804
|
+
error,
|
|
805
|
+
hasStartIcon: StartIcon != null,
|
|
806
|
+
hasTrailing: trailing2 != null,
|
|
807
|
+
className
|
|
808
|
+
});
|
|
809
|
+
const control = {
|
|
810
|
+
id: controlId,
|
|
811
|
+
className: classes.input,
|
|
812
|
+
"aria-describedby": helpId,
|
|
813
|
+
"aria-invalid": error ? true : void 0
|
|
814
|
+
};
|
|
815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: classes.root, children: [
|
|
816
|
+
label7 != null && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", { htmlFor: controlId, className: classes.labelText, children: label7 }),
|
|
817
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: classes.field, children: [
|
|
818
|
+
StartIcon != null && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classes.startIconSlot, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StartIcon, { size: 18 }) }),
|
|
819
|
+
children(control),
|
|
820
|
+
trailing2 != null && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: classes.trailingSlot, children: trailing2 })
|
|
821
|
+
] }),
|
|
822
|
+
help != null && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { id: helpId, className: classes.helpText, children: help })
|
|
823
|
+
] });
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
// src/components/text-field/index.tsx
|
|
827
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
828
|
+
function TextField({
|
|
829
|
+
label: label7,
|
|
830
|
+
help,
|
|
831
|
+
error,
|
|
832
|
+
startIcon,
|
|
833
|
+
multiline,
|
|
834
|
+
rows,
|
|
835
|
+
type = "text",
|
|
836
|
+
onChange,
|
|
837
|
+
className,
|
|
838
|
+
id,
|
|
839
|
+
...rest
|
|
840
|
+
}) {
|
|
841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
842
|
+
BaseField,
|
|
843
|
+
{
|
|
844
|
+
label: label7,
|
|
845
|
+
help,
|
|
846
|
+
error,
|
|
847
|
+
startIcon,
|
|
848
|
+
id,
|
|
849
|
+
className,
|
|
850
|
+
children: (control) => multiline ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
851
|
+
"textarea",
|
|
852
|
+
{
|
|
853
|
+
...rest,
|
|
854
|
+
...control,
|
|
855
|
+
rows: rows ?? 4,
|
|
856
|
+
onChange: (e) => onChange?.(e.target.value)
|
|
857
|
+
}
|
|
858
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
859
|
+
"input",
|
|
860
|
+
{
|
|
861
|
+
...rest,
|
|
862
|
+
...control,
|
|
863
|
+
type,
|
|
864
|
+
onChange: (e) => onChange?.(e.target.value)
|
|
865
|
+
}
|
|
866
|
+
)
|
|
867
|
+
}
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// src/components/password-field/index.tsx
|
|
872
|
+
var import_react17 = require("react");
|
|
873
|
+
|
|
874
|
+
// src/components/icons/eye/index.tsx
|
|
875
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
745
876
|
function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
746
|
-
return /* @__PURE__ */ (0,
|
|
877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
747
878
|
"svg",
|
|
748
879
|
{
|
|
749
880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -758,17 +889,17 @@ function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
758
889
|
"aria-hidden": "true",
|
|
759
890
|
...rest,
|
|
760
891
|
children: [
|
|
761
|
-
/* @__PURE__ */ (0,
|
|
762
|
-
/* @__PURE__ */ (0,
|
|
892
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
893
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("circle", { cx: "12", cy: "12", r: "3" })
|
|
763
894
|
]
|
|
764
895
|
}
|
|
765
896
|
);
|
|
766
897
|
}
|
|
767
898
|
|
|
768
899
|
// src/components/icons/eye-off/index.tsx
|
|
769
|
-
var
|
|
900
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
770
901
|
function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
771
|
-
return /* @__PURE__ */ (0,
|
|
902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
772
903
|
"svg",
|
|
773
904
|
{
|
|
774
905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -783,136 +914,142 @@ function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
783
914
|
"aria-hidden": "true",
|
|
784
915
|
...rest,
|
|
785
916
|
children: [
|
|
786
|
-
/* @__PURE__ */ (0,
|
|
787
|
-
/* @__PURE__ */ (0,
|
|
788
|
-
/* @__PURE__ */ (0,
|
|
789
|
-
/* @__PURE__ */ (0,
|
|
917
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
918
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
919
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
920
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "m2 2 20 20" })
|
|
790
921
|
]
|
|
791
922
|
}
|
|
792
923
|
);
|
|
793
924
|
}
|
|
794
925
|
|
|
795
|
-
// src/components/
|
|
796
|
-
var
|
|
926
|
+
// src/components/password-field/use-styles.ts
|
|
927
|
+
var import_react16 = require("react");
|
|
797
928
|
|
|
798
|
-
// src/components/
|
|
799
|
-
var
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
var inputRevealPad = "use-styles_inputRevealPad__vat8gv7";
|
|
805
|
-
var inputStartPad = "use-styles_inputStartPad__vat8gv6";
|
|
806
|
-
var labelText = "use-styles_labelText__vat8gv1";
|
|
807
|
-
var labelTextError = "use-styles_labelTextError__vat8gv2";
|
|
808
|
-
var revealButton = "use-styles_revealButton__vat8gvb";
|
|
809
|
-
var root9 = "use-styles_root__vat8gv0";
|
|
810
|
-
var startIcon = "use-styles_startIcon__vat8gva";
|
|
811
|
-
|
|
812
|
-
// src/components/text-field/use-styles.ts
|
|
813
|
-
function useStyles11({ error, hasStartIcon, hasReveal, className }) {
|
|
814
|
-
const { themeClass } = useTheme();
|
|
815
|
-
return (0, import_react14.useMemo)(() => {
|
|
816
|
-
const root24 = [themeClass, root9].filter(Boolean).join(" ");
|
|
817
|
-
const labelText2 = [labelText, error && labelTextError].filter(Boolean).join(" ");
|
|
818
|
-
const input6 = [
|
|
819
|
-
input4,
|
|
820
|
-
error && inputError,
|
|
821
|
-
hasStartIcon && inputStartPad,
|
|
822
|
-
hasReveal && inputRevealPad,
|
|
823
|
-
className
|
|
824
|
-
].filter(Boolean).join(" ");
|
|
825
|
-
const helpText2 = [helpText, error && helpTextError].filter(Boolean).join(" ");
|
|
826
|
-
return {
|
|
827
|
-
root: root24,
|
|
828
|
-
labelText: labelText2,
|
|
829
|
-
field,
|
|
830
|
-
input: input6,
|
|
831
|
-
helpText: helpText2,
|
|
832
|
-
startIcon,
|
|
833
|
-
revealButton
|
|
834
|
-
};
|
|
835
|
-
}, [themeClass, error, hasStartIcon, hasReveal, className]);
|
|
929
|
+
// src/components/password-field/use-styles.css.ts
|
|
930
|
+
var revealButton = "use-styles_revealButton__rsu9d50";
|
|
931
|
+
|
|
932
|
+
// src/components/password-field/use-styles.ts
|
|
933
|
+
function useStyles12() {
|
|
934
|
+
return (0, import_react16.useMemo)(() => ({ revealButton }), []);
|
|
836
935
|
}
|
|
837
936
|
|
|
838
|
-
// src/components/
|
|
839
|
-
var
|
|
840
|
-
function
|
|
937
|
+
// src/components/password-field/index.tsx
|
|
938
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
939
|
+
function PasswordField({
|
|
841
940
|
label: label7,
|
|
842
941
|
help,
|
|
843
942
|
error,
|
|
844
|
-
startIcon
|
|
845
|
-
multiline,
|
|
846
|
-
rows,
|
|
847
|
-
type = "text",
|
|
943
|
+
startIcon,
|
|
848
944
|
onChange,
|
|
849
|
-
className,
|
|
850
945
|
id,
|
|
946
|
+
className,
|
|
851
947
|
...rest
|
|
852
948
|
}) {
|
|
853
|
-
const [reveal, setReveal] = (0,
|
|
854
|
-
const
|
|
855
|
-
const
|
|
856
|
-
const effectiveType = isPassword ? reveal ? "text" : "password" : type;
|
|
857
|
-
const autoId = (0, import_react15.useId)();
|
|
858
|
-
const controlId = id ?? autoId;
|
|
859
|
-
const classes = useStyles11({
|
|
860
|
-
error,
|
|
861
|
-
hasStartIcon: Boolean(StartIcon),
|
|
862
|
-
hasReveal,
|
|
863
|
-
className
|
|
864
|
-
});
|
|
865
|
-
const handleInputChange = (e) => {
|
|
866
|
-
onChange?.(e.target.value);
|
|
867
|
-
};
|
|
868
|
-
const handleTextareaChange = (e) => {
|
|
949
|
+
const [reveal, setReveal] = (0, import_react17.useState)(false);
|
|
950
|
+
const classes = useStyles12();
|
|
951
|
+
const handleChange = (e) => {
|
|
869
952
|
onChange?.(e.target.value);
|
|
870
953
|
};
|
|
871
954
|
const handleToggleMouseDown = (e) => {
|
|
872
955
|
e.preventDefault();
|
|
873
956
|
};
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
957
|
+
const toggleButton = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
958
|
+
"button",
|
|
959
|
+
{
|
|
960
|
+
type: "button",
|
|
961
|
+
tabIndex: -1,
|
|
962
|
+
className: classes.revealButton,
|
|
963
|
+
"aria-label": reveal ? "Ocultar contrase\xF1a" : "Mostrar contrase\xF1a",
|
|
964
|
+
onMouseDown: handleToggleMouseDown,
|
|
965
|
+
onClick: () => setReveal((r) => !r),
|
|
966
|
+
children: reveal ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EyeOffIcon, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EyeIcon, { size: 18 })
|
|
967
|
+
}
|
|
968
|
+
);
|
|
969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
970
|
+
BaseField,
|
|
971
|
+
{
|
|
972
|
+
label: label7,
|
|
973
|
+
help,
|
|
974
|
+
error,
|
|
975
|
+
startIcon,
|
|
976
|
+
trailing: toggleButton,
|
|
977
|
+
id,
|
|
978
|
+
className,
|
|
979
|
+
children: (control) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("input", { ...rest, ...control, type: reveal ? "text" : "password", onChange: handleChange })
|
|
980
|
+
}
|
|
981
|
+
);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// src/components/money-field/index.tsx
|
|
985
|
+
var import_react18 = require("react");
|
|
986
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
987
|
+
function parseAmount(raw) {
|
|
988
|
+
const cleaned = raw.replace(/[^0-9.-]/g, "");
|
|
989
|
+
if (cleaned === "" || cleaned === "-" || cleaned === ".") return null;
|
|
990
|
+
const n = Number.parseFloat(cleaned);
|
|
991
|
+
return Number.isNaN(n) ? null : n;
|
|
992
|
+
}
|
|
993
|
+
function MoneyField({
|
|
994
|
+
value,
|
|
995
|
+
onChange,
|
|
996
|
+
currency = "USD",
|
|
997
|
+
locale = "en-US",
|
|
998
|
+
label: label7,
|
|
999
|
+
help,
|
|
1000
|
+
error,
|
|
1001
|
+
startIcon,
|
|
1002
|
+
id,
|
|
1003
|
+
className,
|
|
1004
|
+
onFocus,
|
|
1005
|
+
onBlur,
|
|
1006
|
+
...rest
|
|
1007
|
+
}) {
|
|
1008
|
+
const [focused, setFocused] = (0, import_react18.useState)(false);
|
|
1009
|
+
const [draft, setDraft] = (0, import_react18.useState)("");
|
|
1010
|
+
const formatter = (0, import_react18.useMemo)(
|
|
1011
|
+
() => new Intl.NumberFormat(locale, { style: "currency", currency }),
|
|
1012
|
+
[locale, currency]
|
|
1013
|
+
);
|
|
1014
|
+
const displayValue = focused ? draft : value != null ? formatter.format(value) : "";
|
|
1015
|
+
const handleFocus = (e) => {
|
|
1016
|
+
setDraft(value != null ? String(value) : "");
|
|
1017
|
+
setFocused(true);
|
|
1018
|
+
onFocus?.(e);
|
|
1019
|
+
};
|
|
1020
|
+
const handleChange = (e) => setDraft(e.target.value);
|
|
1021
|
+
const handleBlur = (e) => {
|
|
1022
|
+
setFocused(false);
|
|
1023
|
+
onChange?.(parseAmount(draft));
|
|
1024
|
+
onBlur?.(e);
|
|
1025
|
+
};
|
|
1026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1027
|
+
BaseField,
|
|
1028
|
+
{
|
|
1029
|
+
label: label7,
|
|
1030
|
+
help,
|
|
1031
|
+
error,
|
|
1032
|
+
startIcon,
|
|
1033
|
+
id,
|
|
1034
|
+
className,
|
|
1035
|
+
children: (control) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
888
1036
|
"input",
|
|
889
1037
|
{
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
hasReveal && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
898
|
-
"button",
|
|
899
|
-
{
|
|
900
|
-
type: "button",
|
|
901
|
-
tabIndex: -1,
|
|
902
|
-
className: classes.revealButton,
|
|
903
|
-
"aria-label": reveal ? "Ocultar contrase\xF1a" : "Mostrar contrase\xF1a",
|
|
904
|
-
onMouseDown: handleToggleMouseDown,
|
|
905
|
-
onClick: () => setReveal((r) => !r),
|
|
906
|
-
children: reveal ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(EyeOffIcon, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(EyeIcon, { size: 18 })
|
|
1038
|
+
...rest,
|
|
1039
|
+
...control,
|
|
1040
|
+
inputMode: "decimal",
|
|
1041
|
+
value: displayValue,
|
|
1042
|
+
onFocus: handleFocus,
|
|
1043
|
+
onChange: handleChange,
|
|
1044
|
+
onBlur: handleBlur
|
|
907
1045
|
}
|
|
908
1046
|
)
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
] });
|
|
1047
|
+
}
|
|
1048
|
+
);
|
|
912
1049
|
}
|
|
913
1050
|
|
|
914
1051
|
// src/components/icon-button/use-styles.ts
|
|
915
|
-
var
|
|
1052
|
+
var import_react19 = require("react");
|
|
916
1053
|
|
|
917
1054
|
// src/components/icon-button/use-styles.css.ts
|
|
918
1055
|
var accent = "use-styles_accent__18np0q02";
|
|
@@ -920,12 +1057,12 @@ var active = "use-styles_active__18np0q01";
|
|
|
920
1057
|
var root10 = "use-styles_root__18np0q00";
|
|
921
1058
|
|
|
922
1059
|
// src/components/icon-button/use-styles.ts
|
|
923
|
-
function
|
|
1060
|
+
function useStyles13({
|
|
924
1061
|
active: active2 = false,
|
|
925
1062
|
tone: tone4 = "ink"
|
|
926
1063
|
}) {
|
|
927
1064
|
const { themeClass } = useTheme();
|
|
928
|
-
const root24 = (0,
|
|
1065
|
+
const root24 = (0, import_react19.useMemo)(
|
|
929
1066
|
() => [themeClass, root10, tone4 === "accent" && accent, active2 && active].filter(Boolean).join(" "),
|
|
930
1067
|
[themeClass, active2, tone4]
|
|
931
1068
|
);
|
|
@@ -933,14 +1070,14 @@ function useStyles12({
|
|
|
933
1070
|
}
|
|
934
1071
|
|
|
935
1072
|
// src/components/icon-button/index.tsx
|
|
936
|
-
var
|
|
1073
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
937
1074
|
function IconButton({ icon: Icon, active: active2, tone: tone4, title, ...rest }) {
|
|
938
|
-
const { root: root24 } =
|
|
939
|
-
return /* @__PURE__ */ (0,
|
|
1075
|
+
const { root: root24 } = useStyles13({ active: active2, tone: tone4 });
|
|
1076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("button", { className: root24, "aria-label": title, title, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, { size: 18 }) });
|
|
940
1077
|
}
|
|
941
1078
|
|
|
942
1079
|
// src/components/card/use-styles.ts
|
|
943
|
-
var
|
|
1080
|
+
var import_react20 = require("react");
|
|
944
1081
|
|
|
945
1082
|
// src/components/card/use-styles.css.ts
|
|
946
1083
|
var body = "use-styles_body__1fuvd022";
|
|
@@ -949,29 +1086,29 @@ var header = "use-styles_header__1fuvd021";
|
|
|
949
1086
|
var root11 = "use-styles_root__1fuvd020";
|
|
950
1087
|
|
|
951
1088
|
// src/components/card/use-styles.ts
|
|
952
|
-
function
|
|
1089
|
+
function useStyles14() {
|
|
953
1090
|
const { themeClass } = useTheme();
|
|
954
|
-
const root24 = (0,
|
|
1091
|
+
const root24 = (0, import_react20.useMemo)(() => `${themeClass} ${root11}`, [themeClass]);
|
|
955
1092
|
return { root: root24, header, body, footer };
|
|
956
1093
|
}
|
|
957
1094
|
|
|
958
1095
|
// src/components/card/index.tsx
|
|
959
|
-
var
|
|
1096
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
960
1097
|
function CardRoot({ children, ...rest }) {
|
|
961
|
-
const { root: root24 } =
|
|
962
|
-
return /* @__PURE__ */ (0,
|
|
1098
|
+
const { root: root24 } = useStyles14();
|
|
1099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: root24, ...rest, children });
|
|
963
1100
|
}
|
|
964
1101
|
function CardHeader({ children, ...rest }) {
|
|
965
|
-
const { header: header3 } =
|
|
966
|
-
return /* @__PURE__ */ (0,
|
|
1102
|
+
const { header: header3 } = useStyles14();
|
|
1103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: header3, ...rest, children });
|
|
967
1104
|
}
|
|
968
1105
|
function CardBody({ children, ...rest }) {
|
|
969
|
-
const { body: body3 } =
|
|
970
|
-
return /* @__PURE__ */ (0,
|
|
1106
|
+
const { body: body3 } = useStyles14();
|
|
1107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: body3, ...rest, children });
|
|
971
1108
|
}
|
|
972
1109
|
function CardFooter({ children, ...rest }) {
|
|
973
|
-
const { footer: footer2 } =
|
|
974
|
-
return /* @__PURE__ */ (0,
|
|
1110
|
+
const { footer: footer2 } = useStyles14();
|
|
1111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: footer2, ...rest, children });
|
|
975
1112
|
}
|
|
976
1113
|
CardRoot.displayName = "Card";
|
|
977
1114
|
CardHeader.displayName = "Card.Header";
|
|
@@ -984,9 +1121,9 @@ var Card = Object.assign(CardRoot, {
|
|
|
984
1121
|
});
|
|
985
1122
|
|
|
986
1123
|
// src/components/icons/circle-check/index.tsx
|
|
987
|
-
var
|
|
1124
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
988
1125
|
function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
989
|
-
return /* @__PURE__ */ (0,
|
|
1126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
990
1127
|
"svg",
|
|
991
1128
|
{
|
|
992
1129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1001,17 +1138,17 @@ function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1001
1138
|
"aria-hidden": "true",
|
|
1002
1139
|
...rest,
|
|
1003
1140
|
children: [
|
|
1004
|
-
/* @__PURE__ */ (0,
|
|
1005
|
-
/* @__PURE__ */ (0,
|
|
1141
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "m9 12 2 2 4-4" })
|
|
1006
1143
|
]
|
|
1007
1144
|
}
|
|
1008
1145
|
);
|
|
1009
1146
|
}
|
|
1010
1147
|
|
|
1011
1148
|
// src/components/icons/circle-x/index.tsx
|
|
1012
|
-
var
|
|
1149
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1013
1150
|
function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1014
|
-
return /* @__PURE__ */ (0,
|
|
1151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1015
1152
|
"svg",
|
|
1016
1153
|
{
|
|
1017
1154
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1026,18 +1163,18 @@ function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1026
1163
|
"aria-hidden": "true",
|
|
1027
1164
|
...rest,
|
|
1028
1165
|
children: [
|
|
1029
|
-
/* @__PURE__ */ (0,
|
|
1030
|
-
/* @__PURE__ */ (0,
|
|
1031
|
-
/* @__PURE__ */ (0,
|
|
1166
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1167
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "m15 9-6 6" }),
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "m9 9 6 6" })
|
|
1032
1169
|
]
|
|
1033
1170
|
}
|
|
1034
1171
|
);
|
|
1035
1172
|
}
|
|
1036
1173
|
|
|
1037
1174
|
// src/components/icons/info/index.tsx
|
|
1038
|
-
var
|
|
1175
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1039
1176
|
function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1040
|
-
return /* @__PURE__ */ (0,
|
|
1177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1041
1178
|
"svg",
|
|
1042
1179
|
{
|
|
1043
1180
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1052,18 +1189,18 @@ function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1052
1189
|
"aria-hidden": "true",
|
|
1053
1190
|
...rest,
|
|
1054
1191
|
children: [
|
|
1055
|
-
/* @__PURE__ */ (0,
|
|
1056
|
-
/* @__PURE__ */ (0,
|
|
1057
|
-
/* @__PURE__ */ (0,
|
|
1192
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1193
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M12 16v-4" }),
|
|
1194
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M12 8h.01" })
|
|
1058
1195
|
]
|
|
1059
1196
|
}
|
|
1060
1197
|
);
|
|
1061
1198
|
}
|
|
1062
1199
|
|
|
1063
1200
|
// src/components/icons/triangle-alert/index.tsx
|
|
1064
|
-
var
|
|
1201
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1065
1202
|
function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1066
|
-
return /* @__PURE__ */ (0,
|
|
1203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1067
1204
|
"svg",
|
|
1068
1205
|
{
|
|
1069
1206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1078,16 +1215,16 @@ function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1078
1215
|
"aria-hidden": "true",
|
|
1079
1216
|
...rest,
|
|
1080
1217
|
children: [
|
|
1081
|
-
/* @__PURE__ */ (0,
|
|
1082
|
-
/* @__PURE__ */ (0,
|
|
1083
|
-
/* @__PURE__ */ (0,
|
|
1218
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
1219
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M12 9v4" }),
|
|
1220
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { d: "M12 17h.01" })
|
|
1084
1221
|
]
|
|
1085
1222
|
}
|
|
1086
1223
|
);
|
|
1087
1224
|
}
|
|
1088
1225
|
|
|
1089
1226
|
// src/components/alert/use-styles.ts
|
|
1090
|
-
var
|
|
1227
|
+
var import_react21 = require("react");
|
|
1091
1228
|
|
|
1092
1229
|
// src/components/alert/use-styles.css.ts
|
|
1093
1230
|
var content = "use-styles_content__ivsh6u6";
|
|
@@ -1096,12 +1233,12 @@ var root12 = "use-styles_root__ivsh6u0";
|
|
|
1096
1233
|
var severity = { info: "use-styles_severity_info__ivsh6u1", ok: "use-styles_severity_ok__ivsh6u2", warn: "use-styles_severity_warn__ivsh6u3", danger: "use-styles_severity_danger__ivsh6u4" };
|
|
1097
1234
|
|
|
1098
1235
|
// src/components/alert/use-styles.ts
|
|
1099
|
-
function
|
|
1236
|
+
function useStyles15({
|
|
1100
1237
|
severity: severity2 = "info",
|
|
1101
1238
|
className
|
|
1102
1239
|
}) {
|
|
1103
1240
|
const { themeClass } = useTheme();
|
|
1104
|
-
const root24 = (0,
|
|
1241
|
+
const root24 = (0, import_react21.useMemo)(
|
|
1105
1242
|
() => [themeClass, root12, severity[severity2], className].filter(Boolean).join(" "),
|
|
1106
1243
|
[themeClass, severity2, className]
|
|
1107
1244
|
);
|
|
@@ -1113,7 +1250,7 @@ function useStyles14({
|
|
|
1113
1250
|
}
|
|
1114
1251
|
|
|
1115
1252
|
// src/components/alert/index.tsx
|
|
1116
|
-
var
|
|
1253
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1117
1254
|
var defaultIcons = {
|
|
1118
1255
|
info: InfoIcon,
|
|
1119
1256
|
ok: CircleCheckIcon,
|
|
@@ -1128,22 +1265,22 @@ function Alert({
|
|
|
1128
1265
|
children,
|
|
1129
1266
|
...rest
|
|
1130
1267
|
}) {
|
|
1131
|
-
const styles =
|
|
1268
|
+
const styles = useStyles15({ severity: severity2, className });
|
|
1132
1269
|
const IconComponent = icon ?? defaultIcons[severity2];
|
|
1133
|
-
return /* @__PURE__ */ (0,
|
|
1134
|
-
/* @__PURE__ */ (0,
|
|
1135
|
-
/* @__PURE__ */ (0,
|
|
1136
|
-
title != null && /* @__PURE__ */ (0,
|
|
1137
|
-
children != null && /* @__PURE__ */ (0,
|
|
1270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { role: "alert", className: styles.root, ...rest, children: [
|
|
1271
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: styles.iconSlot, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(IconComponent, {}) }),
|
|
1272
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: styles.content, children: [
|
|
1273
|
+
title != null && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { variant: "h4", children: title }),
|
|
1274
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Typography, { variant: "body", color: "fg2", children })
|
|
1138
1275
|
] })
|
|
1139
1276
|
] });
|
|
1140
1277
|
}
|
|
1141
1278
|
|
|
1142
1279
|
// src/components/tooltip/index.tsx
|
|
1143
|
-
var
|
|
1280
|
+
var import_react23 = require("react");
|
|
1144
1281
|
|
|
1145
1282
|
// src/components/tooltip/use-styles.ts
|
|
1146
|
-
var
|
|
1283
|
+
var import_react22 = require("react");
|
|
1147
1284
|
|
|
1148
1285
|
// src/components/tooltip/use-styles.css.ts
|
|
1149
1286
|
var bubble = "use-styles_bubble__h9kvh1 surfaces_inkySurface__6hs0fg2";
|
|
@@ -1151,15 +1288,15 @@ var placement = { top: "use-styles_placement_top__h9kvh2", bottom: "use-styles_p
|
|
|
1151
1288
|
var wrapper = "use-styles_wrapper__h9kvh0";
|
|
1152
1289
|
|
|
1153
1290
|
// src/components/tooltip/use-styles.ts
|
|
1154
|
-
function
|
|
1291
|
+
function useStyles16({
|
|
1155
1292
|
placement: placement2 = "top"
|
|
1156
1293
|
}) {
|
|
1157
1294
|
const { themeClass } = useTheme();
|
|
1158
|
-
const wrapper4 = (0,
|
|
1295
|
+
const wrapper4 = (0, import_react22.useMemo)(
|
|
1159
1296
|
() => [themeClass, wrapper].filter(Boolean).join(" "),
|
|
1160
1297
|
[themeClass]
|
|
1161
1298
|
);
|
|
1162
|
-
const bubble2 = (0,
|
|
1299
|
+
const bubble2 = (0, import_react22.useMemo)(
|
|
1163
1300
|
() => [bubble, placement[placement2]].filter(Boolean).join(" "),
|
|
1164
1301
|
[placement2]
|
|
1165
1302
|
);
|
|
@@ -1167,29 +1304,29 @@ function useStyles15({
|
|
|
1167
1304
|
}
|
|
1168
1305
|
|
|
1169
1306
|
// src/components/tooltip/index.tsx
|
|
1170
|
-
var
|
|
1307
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1171
1308
|
function Tooltip({ label: label7, children, placement: placement2 }) {
|
|
1172
|
-
const [open, setOpen] = (0,
|
|
1173
|
-
const tooltipId = (0,
|
|
1174
|
-
const { wrapper: wrapper4, bubble: bubble2 } =
|
|
1309
|
+
const [open, setOpen] = (0, import_react23.useState)(false);
|
|
1310
|
+
const tooltipId = (0, import_react23.useId)();
|
|
1311
|
+
const { wrapper: wrapper4, bubble: bubble2 } = useStyles16({ placement: placement2 });
|
|
1175
1312
|
const show = () => setOpen(true);
|
|
1176
1313
|
const hide = () => setOpen(false);
|
|
1177
1314
|
const previousDescribedBy = children.props["aria-describedby"];
|
|
1178
1315
|
const describedBy = open ? [previousDescribedBy, tooltipId].filter(Boolean).join(" ") : previousDescribedBy;
|
|
1179
|
-
const trigger2 = (0,
|
|
1180
|
-
return /* @__PURE__ */ (0,
|
|
1316
|
+
const trigger2 = (0, import_react23.cloneElement)(children, { "aria-describedby": describedBy });
|
|
1317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: wrapper4, onMouseEnter: show, onMouseLeave: hide, onFocus: show, onBlur: hide, children: [
|
|
1181
1318
|
trigger2,
|
|
1182
|
-
open && /* @__PURE__ */ (0,
|
|
1319
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { id: tooltipId, role: "tooltip", className: bubble2, children: label7 })
|
|
1183
1320
|
] });
|
|
1184
1321
|
}
|
|
1185
1322
|
|
|
1186
1323
|
// src/components/select/index.tsx
|
|
1187
|
-
var
|
|
1324
|
+
var import_react25 = require("react");
|
|
1188
1325
|
|
|
1189
1326
|
// src/components/icons/chevron-down/index.tsx
|
|
1190
|
-
var
|
|
1327
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1191
1328
|
function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1192
|
-
return /* @__PURE__ */ (0,
|
|
1329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1193
1330
|
"svg",
|
|
1194
1331
|
{
|
|
1195
1332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1203,13 +1340,13 @@ function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1203
1340
|
strokeLinejoin: "round",
|
|
1204
1341
|
"aria-hidden": "true",
|
|
1205
1342
|
...rest,
|
|
1206
|
-
children: /* @__PURE__ */ (0,
|
|
1343
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "m6 9 6 6 6-6" })
|
|
1207
1344
|
}
|
|
1208
1345
|
);
|
|
1209
1346
|
}
|
|
1210
1347
|
|
|
1211
1348
|
// src/components/select/use-styles.ts
|
|
1212
|
-
var
|
|
1349
|
+
var import_react24 = require("react");
|
|
1213
1350
|
|
|
1214
1351
|
// src/components/select/use-styles.css.ts
|
|
1215
1352
|
var chevron = "use-styles_chevron__1w1czpb4";
|
|
@@ -1224,11 +1361,11 @@ var root13 = "use-styles_root__1w1czpb0";
|
|
|
1224
1361
|
var trigger = "use-styles_trigger__1w1czpb2";
|
|
1225
1362
|
|
|
1226
1363
|
// src/components/select/use-styles.ts
|
|
1227
|
-
function
|
|
1364
|
+
function useStyles17({
|
|
1228
1365
|
open = false
|
|
1229
1366
|
}) {
|
|
1230
1367
|
const { themeClass } = useTheme();
|
|
1231
|
-
return (0,
|
|
1368
|
+
return (0, import_react24.useMemo)(() => {
|
|
1232
1369
|
const chevron3 = [chevron, open && chevronOpen].filter(Boolean).join(" ");
|
|
1233
1370
|
return {
|
|
1234
1371
|
root: [themeClass, root13].filter(Boolean).join(" "),
|
|
@@ -1243,12 +1380,12 @@ function useStyles16({
|
|
|
1243
1380
|
}
|
|
1244
1381
|
|
|
1245
1382
|
// src/components/select/index.tsx
|
|
1246
|
-
var
|
|
1383
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1247
1384
|
function Select({ options, value, onChange, placeholder: placeholder2, label: label7, disabled: disabled3 }) {
|
|
1248
|
-
const [open, setOpen] = (0,
|
|
1249
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
1250
|
-
const rootRef = (0,
|
|
1251
|
-
const baseId = (0,
|
|
1385
|
+
const [open, setOpen] = (0, import_react25.useState)(false);
|
|
1386
|
+
const [activeIndex, setActiveIndex] = (0, import_react25.useState)(0);
|
|
1387
|
+
const rootRef = (0, import_react25.useRef)(null);
|
|
1388
|
+
const baseId = (0, import_react25.useId)();
|
|
1252
1389
|
const labelId = `${baseId}-label`;
|
|
1253
1390
|
const optionId = (index) => `${baseId}-option-${index}`;
|
|
1254
1391
|
const {
|
|
@@ -1259,8 +1396,8 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1259
1396
|
chevron: chevron3,
|
|
1260
1397
|
menu: menu2,
|
|
1261
1398
|
optionClass
|
|
1262
|
-
} =
|
|
1263
|
-
(0,
|
|
1399
|
+
} = useStyles17({ open });
|
|
1400
|
+
(0, import_react25.useEffect)(() => {
|
|
1264
1401
|
if (!open) return;
|
|
1265
1402
|
const onPointerDown = (event) => {
|
|
1266
1403
|
if (rootRef.current && !rootRef.current.contains(event.target)) {
|
|
@@ -1320,9 +1457,9 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1320
1457
|
break;
|
|
1321
1458
|
}
|
|
1322
1459
|
};
|
|
1323
|
-
return /* @__PURE__ */ (0,
|
|
1324
|
-
label7 && /* @__PURE__ */ (0,
|
|
1325
|
-
/* @__PURE__ */ (0,
|
|
1460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ref: rootRef, className: root24, children: [
|
|
1461
|
+
label7 && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { id: labelId, className: labelClass, children: label7 }),
|
|
1462
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1326
1463
|
"button",
|
|
1327
1464
|
{
|
|
1328
1465
|
type: "button",
|
|
@@ -1342,17 +1479,17 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1342
1479
|
},
|
|
1343
1480
|
onKeyDown: handleKeyDown,
|
|
1344
1481
|
children: [
|
|
1345
|
-
selected3 ? selected3.label : /* @__PURE__ */ (0,
|
|
1346
|
-
/* @__PURE__ */ (0,
|
|
1482
|
+
selected3 ? selected3.label : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: placeholderClass, children: placeholder2 }),
|
|
1483
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: chevron3, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronDownIcon, { size: 18 }) })
|
|
1347
1484
|
]
|
|
1348
1485
|
}
|
|
1349
1486
|
),
|
|
1350
|
-
open && /* @__PURE__ */ (0,
|
|
1487
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: menu2, role: "listbox", children: options.map((option2, index) => {
|
|
1351
1488
|
const isSelected = option2.value === value;
|
|
1352
1489
|
const isActive = index === activeIndex;
|
|
1353
1490
|
return (
|
|
1354
1491
|
// biome-ignore lint/a11y/useKeyWithClickEvents: keyboard nav lives on the trigger via aria-activedescendant; options are not focusable.
|
|
1355
|
-
/* @__PURE__ */ (0,
|
|
1492
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1356
1493
|
"div",
|
|
1357
1494
|
{
|
|
1358
1495
|
id: optionId(index),
|
|
@@ -1371,7 +1508,7 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1371
1508
|
}
|
|
1372
1509
|
|
|
1373
1510
|
// src/components/slider/use-styles.ts
|
|
1374
|
-
var
|
|
1511
|
+
var import_react26 = require("react");
|
|
1375
1512
|
|
|
1376
1513
|
// src/components/slider/use-styles.css.ts
|
|
1377
1514
|
var input5 = "use-styles_input__okw59n3";
|
|
@@ -1383,9 +1520,9 @@ var track3 = "use-styles_track__okw59n1";
|
|
|
1383
1520
|
var wrapper2 = "use-styles_wrapper__okw59n6";
|
|
1384
1521
|
|
|
1385
1522
|
// src/components/slider/use-styles.ts
|
|
1386
|
-
function
|
|
1523
|
+
function useStyles18() {
|
|
1387
1524
|
const { themeClass } = useTheme();
|
|
1388
|
-
return (0,
|
|
1525
|
+
return (0, import_react26.useMemo)(() => {
|
|
1389
1526
|
const root24 = [themeClass, root14].filter(Boolean).join(" ");
|
|
1390
1527
|
return {
|
|
1391
1528
|
wrapper: wrapper2,
|
|
@@ -1400,7 +1537,7 @@ function useStyles17() {
|
|
|
1400
1537
|
}
|
|
1401
1538
|
|
|
1402
1539
|
// src/components/slider/index.tsx
|
|
1403
|
-
var
|
|
1540
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1404
1541
|
function Slider({
|
|
1405
1542
|
value = 0,
|
|
1406
1543
|
onChange,
|
|
@@ -1410,19 +1547,19 @@ function Slider({
|
|
|
1410
1547
|
disabled: disabled3,
|
|
1411
1548
|
label: label7
|
|
1412
1549
|
}) {
|
|
1413
|
-
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } =
|
|
1550
|
+
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } = useStyles18();
|
|
1414
1551
|
const span = max - min;
|
|
1415
1552
|
const percent = span > 0 ? (value - min) / span * 100 : 0;
|
|
1416
1553
|
const clamped = Math.max(0, Math.min(100, percent));
|
|
1417
1554
|
const handleChange = (e) => {
|
|
1418
1555
|
onChange?.(Number(e.target.value));
|
|
1419
1556
|
};
|
|
1420
|
-
return /* @__PURE__ */ (0,
|
|
1421
|
-
label7 ? /* @__PURE__ */ (0,
|
|
1422
|
-
/* @__PURE__ */ (0,
|
|
1423
|
-
/* @__PURE__ */ (0,
|
|
1424
|
-
/* @__PURE__ */ (0,
|
|
1425
|
-
/* @__PURE__ */ (0,
|
|
1557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: wrapper4, children: [
|
|
1558
|
+
label7 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: labelClass, children: label7 }) : null,
|
|
1559
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: root24, children: [
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: track4 }),
|
|
1561
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: range2, style: { width: `${clamped}%` } }),
|
|
1562
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1426
1563
|
"input",
|
|
1427
1564
|
{
|
|
1428
1565
|
className: input6,
|
|
@@ -1435,16 +1572,16 @@ function Slider({
|
|
|
1435
1572
|
onChange: handleChange
|
|
1436
1573
|
}
|
|
1437
1574
|
),
|
|
1438
|
-
/* @__PURE__ */ (0,
|
|
1575
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: thumb2, style: { left: `${clamped}%` } })
|
|
1439
1576
|
] })
|
|
1440
1577
|
] });
|
|
1441
1578
|
}
|
|
1442
1579
|
|
|
1443
1580
|
// src/components/accordion/index.tsx
|
|
1444
|
-
var
|
|
1581
|
+
var import_react28 = require("react");
|
|
1445
1582
|
|
|
1446
1583
|
// src/components/accordion/use-styles.ts
|
|
1447
|
-
var
|
|
1584
|
+
var import_react27 = require("react");
|
|
1448
1585
|
|
|
1449
1586
|
// src/components/accordion/use-styles.css.ts
|
|
1450
1587
|
var chevron2 = "use-styles_chevron__1cjrdh93";
|
|
@@ -1455,9 +1592,9 @@ var panel = "use-styles_panel__1cjrdh95";
|
|
|
1455
1592
|
var root15 = "use-styles_root__1cjrdh90";
|
|
1456
1593
|
|
|
1457
1594
|
// src/components/accordion/use-styles.ts
|
|
1458
|
-
function
|
|
1595
|
+
function useStyles19({ className }) {
|
|
1459
1596
|
const { themeClass } = useTheme();
|
|
1460
|
-
return (0,
|
|
1597
|
+
return (0, import_react27.useMemo)(
|
|
1461
1598
|
() => ({
|
|
1462
1599
|
root: [themeClass, root15, className].filter(Boolean).join(" "),
|
|
1463
1600
|
item,
|
|
@@ -1470,15 +1607,15 @@ function useStyles18({ className }) {
|
|
|
1470
1607
|
}
|
|
1471
1608
|
|
|
1472
1609
|
// src/components/accordion/index.tsx
|
|
1473
|
-
var
|
|
1610
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1474
1611
|
function Accordion({
|
|
1475
1612
|
items,
|
|
1476
1613
|
multiple = false,
|
|
1477
1614
|
defaultOpen = [],
|
|
1478
1615
|
className
|
|
1479
1616
|
}) {
|
|
1480
|
-
const [open, setOpen] = (0,
|
|
1481
|
-
const { root: root24, item: item3, header: header3, chevronFor, panel: panel2 } =
|
|
1617
|
+
const [open, setOpen] = (0, import_react28.useState)(defaultOpen);
|
|
1618
|
+
const { root: root24, item: item3, header: header3, chevronFor, panel: panel2 } = useStyles19({ className });
|
|
1482
1619
|
const toggle = (id) => {
|
|
1483
1620
|
setOpen((current2) => {
|
|
1484
1621
|
const isOpen = current2.includes(id);
|
|
@@ -1486,12 +1623,12 @@ function Accordion({
|
|
|
1486
1623
|
return multiple ? [...current2, id] : [id];
|
|
1487
1624
|
});
|
|
1488
1625
|
};
|
|
1489
|
-
return /* @__PURE__ */ (0,
|
|
1626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: root24, children: items.map((it) => {
|
|
1490
1627
|
const isOpen = open.includes(it.id);
|
|
1491
1628
|
const panelId = `accordion-panel-${it.id}`;
|
|
1492
1629
|
const headerId = `accordion-header-${it.id}`;
|
|
1493
|
-
return /* @__PURE__ */ (0,
|
|
1494
|
-
/* @__PURE__ */ (0,
|
|
1630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: item3, children: [
|
|
1631
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
1495
1632
|
"button",
|
|
1496
1633
|
{
|
|
1497
1634
|
type: "button",
|
|
@@ -1502,22 +1639,22 @@ function Accordion({
|
|
|
1502
1639
|
onClick: () => toggle(it.id),
|
|
1503
1640
|
children: [
|
|
1504
1641
|
it.title,
|
|
1505
|
-
/* @__PURE__ */ (0,
|
|
1642
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ChevronDownIcon, { className: chevronFor(isOpen) })
|
|
1506
1643
|
]
|
|
1507
1644
|
}
|
|
1508
1645
|
),
|
|
1509
|
-
isOpen && /* @__PURE__ */ (0,
|
|
1646
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { id: panelId, className: panel2, role: "region", "aria-labelledby": headerId, children: it.content })
|
|
1510
1647
|
] }, it.id);
|
|
1511
1648
|
}) });
|
|
1512
1649
|
}
|
|
1513
1650
|
|
|
1514
1651
|
// src/components/breadcrumbs/index.tsx
|
|
1515
|
-
var
|
|
1652
|
+
var import_react30 = require("react");
|
|
1516
1653
|
|
|
1517
1654
|
// src/components/icons/chevron-right/index.tsx
|
|
1518
|
-
var
|
|
1655
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1519
1656
|
function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1520
|
-
return /* @__PURE__ */ (0,
|
|
1657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1521
1658
|
"svg",
|
|
1522
1659
|
{
|
|
1523
1660
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1531,13 +1668,13 @@ function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1531
1668
|
strokeLinejoin: "round",
|
|
1532
1669
|
"aria-hidden": "true",
|
|
1533
1670
|
...rest,
|
|
1534
|
-
children: /* @__PURE__ */ (0,
|
|
1671
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { d: "m9 18 6-6-6-6" })
|
|
1535
1672
|
}
|
|
1536
1673
|
);
|
|
1537
1674
|
}
|
|
1538
1675
|
|
|
1539
1676
|
// src/components/breadcrumbs/use-styles.ts
|
|
1540
|
-
var
|
|
1677
|
+
var import_react29 = require("react");
|
|
1541
1678
|
|
|
1542
1679
|
// src/components/breadcrumbs/use-styles.css.ts
|
|
1543
1680
|
var crumb = "use-styles_crumb__7u0du61";
|
|
@@ -1546,9 +1683,9 @@ var root16 = "use-styles_root__7u0du60";
|
|
|
1546
1683
|
var separator = "use-styles_separator__7u0du63";
|
|
1547
1684
|
|
|
1548
1685
|
// src/components/breadcrumbs/use-styles.ts
|
|
1549
|
-
function
|
|
1686
|
+
function useStyles20({ className }) {
|
|
1550
1687
|
const { themeClass } = useTheme();
|
|
1551
|
-
const root24 = (0,
|
|
1688
|
+
const root24 = (0, import_react29.useMemo)(
|
|
1552
1689
|
() => [themeClass, root16, className].filter(Boolean).join(" "),
|
|
1553
1690
|
[themeClass, className]
|
|
1554
1691
|
);
|
|
@@ -1556,23 +1693,23 @@ function useStyles19({ className }) {
|
|
|
1556
1693
|
}
|
|
1557
1694
|
|
|
1558
1695
|
// src/components/breadcrumbs/index.tsx
|
|
1559
|
-
var
|
|
1696
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1560
1697
|
function Breadcrumbs({ items, className, ...rest }) {
|
|
1561
|
-
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } =
|
|
1562
|
-
return /* @__PURE__ */ (0,
|
|
1698
|
+
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } = useStyles20({ className });
|
|
1699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("nav", { "aria-label": "Breadcrumb", className: root24, ...rest, children: items.map((item3, index) => {
|
|
1563
1700
|
const isLast = index === items.length - 1;
|
|
1564
1701
|
const key = index;
|
|
1565
|
-
return /* @__PURE__ */ (0,
|
|
1566
|
-
isLast ? /* @__PURE__ */ (0,
|
|
1567
|
-
!isLast && /* @__PURE__ */ (0,
|
|
1702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_react30.Fragment, { children: [
|
|
1703
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: current2, "aria-current": "page", children: item3.label }) : item3.href ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("a", { className: crumb2, href: item3.href, children: item3.label }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: crumb2, children: item3.label }),
|
|
1704
|
+
!isLast && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: separator2, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(ChevronRightIcon, { size: 14 }) })
|
|
1568
1705
|
] }, key);
|
|
1569
1706
|
}) });
|
|
1570
1707
|
}
|
|
1571
1708
|
|
|
1572
1709
|
// src/components/icons/chevron-left/index.tsx
|
|
1573
|
-
var
|
|
1710
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1574
1711
|
function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1575
|
-
return /* @__PURE__ */ (0,
|
|
1712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1576
1713
|
"svg",
|
|
1577
1714
|
{
|
|
1578
1715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1586,13 +1723,13 @@ function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1586
1723
|
strokeLinejoin: "round",
|
|
1587
1724
|
"aria-hidden": "true",
|
|
1588
1725
|
...rest,
|
|
1589
|
-
children: /* @__PURE__ */ (0,
|
|
1726
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { d: "m15 18-6-6 6-6" })
|
|
1590
1727
|
}
|
|
1591
1728
|
);
|
|
1592
1729
|
}
|
|
1593
1730
|
|
|
1594
1731
|
// src/components/pagination/use-styles.ts
|
|
1595
|
-
var
|
|
1732
|
+
var import_react31 = require("react");
|
|
1596
1733
|
|
|
1597
1734
|
// src/components/pagination/use-styles.css.ts
|
|
1598
1735
|
var ellipsis = "use-styles_ellipsis__1azgzoh3";
|
|
@@ -1602,9 +1739,9 @@ var pageBtn = "use-styles_pageBtn__1azgzoh1";
|
|
|
1602
1739
|
var root17 = "use-styles_root__1azgzoh0";
|
|
1603
1740
|
|
|
1604
1741
|
// src/components/pagination/use-styles.ts
|
|
1605
|
-
function
|
|
1742
|
+
function useStyles21() {
|
|
1606
1743
|
const { themeClass } = useTheme();
|
|
1607
|
-
return (0,
|
|
1744
|
+
return (0, import_react31.useMemo)(
|
|
1608
1745
|
() => ({
|
|
1609
1746
|
root: [themeClass, root17].filter(Boolean).join(" "),
|
|
1610
1747
|
pageBtnFor: (active2) => [pageBtn, active2 && pageActive].filter(Boolean).join(" "),
|
|
@@ -1616,7 +1753,7 @@ function useStyles20() {
|
|
|
1616
1753
|
}
|
|
1617
1754
|
|
|
1618
1755
|
// src/components/pagination/index.tsx
|
|
1619
|
-
var
|
|
1756
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1620
1757
|
function buildItems(count, page, siblingCount) {
|
|
1621
1758
|
const total = Math.max(1, count);
|
|
1622
1759
|
const first = 1;
|
|
@@ -1631,13 +1768,13 @@ function buildItems(count, page, siblingCount) {
|
|
|
1631
1768
|
return items;
|
|
1632
1769
|
}
|
|
1633
1770
|
function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
1634
|
-
const { root: root24, pageBtnFor, ellipsis: ellipsis2, nav: nav2 } =
|
|
1771
|
+
const { root: root24, pageBtnFor, ellipsis: ellipsis2, nav: nav2 } = useStyles21();
|
|
1635
1772
|
const total = Math.max(1, count);
|
|
1636
1773
|
const current2 = Math.min(Math.max(1, page), total);
|
|
1637
1774
|
const items = buildItems(total, current2, siblingCount);
|
|
1638
1775
|
const go = (n) => onChange?.(Math.min(Math.max(1, n), total));
|
|
1639
|
-
return /* @__PURE__ */ (0,
|
|
1640
|
-
/* @__PURE__ */ (0,
|
|
1776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("nav", { className: root24, "aria-label": "Pagination", children: [
|
|
1777
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1641
1778
|
"button",
|
|
1642
1779
|
{
|
|
1643
1780
|
type: "button",
|
|
@@ -1645,14 +1782,14 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1645
1782
|
"aria-label": "Previous page",
|
|
1646
1783
|
disabled: current2 <= 1,
|
|
1647
1784
|
onClick: () => go(current2 - 1),
|
|
1648
|
-
children: /* @__PURE__ */ (0,
|
|
1785
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ChevronLeftIcon, { size: 18 })
|
|
1649
1786
|
}
|
|
1650
1787
|
),
|
|
1651
1788
|
items.map(
|
|
1652
1789
|
(item3, index) => item3 === "ellipsis" ? (
|
|
1653
1790
|
// biome-ignore lint/suspicious/noArrayIndexKey: ellipsis position is stable per render
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
) : /* @__PURE__ */ (0,
|
|
1791
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: ellipsis2, children: "\u2026" }, `ellipsis-${index}`)
|
|
1792
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1656
1793
|
"button",
|
|
1657
1794
|
{
|
|
1658
1795
|
type: "button",
|
|
@@ -1664,7 +1801,7 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1664
1801
|
item3
|
|
1665
1802
|
)
|
|
1666
1803
|
),
|
|
1667
|
-
/* @__PURE__ */ (0,
|
|
1804
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1668
1805
|
"button",
|
|
1669
1806
|
{
|
|
1670
1807
|
type: "button",
|
|
@@ -1672,17 +1809,17 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1672
1809
|
"aria-label": "Next page",
|
|
1673
1810
|
disabled: current2 >= total,
|
|
1674
1811
|
onClick: () => go(current2 + 1),
|
|
1675
|
-
children: /* @__PURE__ */ (0,
|
|
1812
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ChevronRightIcon, { size: 18 })
|
|
1676
1813
|
}
|
|
1677
1814
|
)
|
|
1678
1815
|
] });
|
|
1679
1816
|
}
|
|
1680
1817
|
|
|
1681
1818
|
// src/components/stepper/index.tsx
|
|
1682
|
-
var
|
|
1819
|
+
var import_react33 = require("react");
|
|
1683
1820
|
|
|
1684
1821
|
// src/components/stepper/use-styles.ts
|
|
1685
|
-
var
|
|
1822
|
+
var import_react32 = require("react");
|
|
1686
1823
|
|
|
1687
1824
|
// src/components/stepper/use-styles.css.ts
|
|
1688
1825
|
var connector = "use-styles_connector__79pt4e7";
|
|
@@ -1695,9 +1832,9 @@ var root18 = "use-styles_root__79pt4e0";
|
|
|
1695
1832
|
var step = "use-styles_step__79pt4e1";
|
|
1696
1833
|
|
|
1697
1834
|
// src/components/stepper/use-styles.ts
|
|
1698
|
-
function
|
|
1835
|
+
function useStyles22({ className }) {
|
|
1699
1836
|
const { themeClass } = useTheme();
|
|
1700
|
-
return (0,
|
|
1837
|
+
return (0, import_react32.useMemo)(() => {
|
|
1701
1838
|
const root24 = [themeClass, root18, className].filter(Boolean).join(" ");
|
|
1702
1839
|
const markerFor = (state) => [
|
|
1703
1840
|
marker,
|
|
@@ -1710,27 +1847,27 @@ function useStyles21({ className }) {
|
|
|
1710
1847
|
}
|
|
1711
1848
|
|
|
1712
1849
|
// src/components/stepper/index.tsx
|
|
1713
|
-
var
|
|
1850
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1714
1851
|
function Stepper({ steps, active: active2 = 0, className, ...rest }) {
|
|
1715
|
-
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } =
|
|
1716
|
-
return /* @__PURE__ */ (0,
|
|
1852
|
+
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } = useStyles22({ className });
|
|
1853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: root24, ...rest, children: steps.map((s, index) => {
|
|
1717
1854
|
const state = index < active2 ? "done" : index === active2 ? "active" : "upcoming";
|
|
1718
1855
|
const isActive = state === "active";
|
|
1719
1856
|
return (
|
|
1720
1857
|
// biome-ignore lint/suspicious/noArrayIndexKey: steps are a static, ordered list with no stable id.
|
|
1721
|
-
/* @__PURE__ */ (0,
|
|
1722
|
-
/* @__PURE__ */ (0,
|
|
1723
|
-
/* @__PURE__ */ (0,
|
|
1724
|
-
/* @__PURE__ */ (0,
|
|
1858
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react33.Fragment, { children: [
|
|
1859
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: step2, "aria-current": isActive ? "step" : void 0, children: [
|
|
1860
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: markerFor(state), children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CheckIcon, { size: 14 }) : index + 1 }),
|
|
1861
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: labelFor(isActive), children: s.label })
|
|
1725
1862
|
] }),
|
|
1726
|
-
index < steps.length - 1 && /* @__PURE__ */ (0,
|
|
1863
|
+
index < steps.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { "data-part": "connector", className: connector2 })
|
|
1727
1864
|
] }, index)
|
|
1728
1865
|
);
|
|
1729
1866
|
}) });
|
|
1730
1867
|
}
|
|
1731
1868
|
|
|
1732
1869
|
// src/components/tabs/use-styles.ts
|
|
1733
|
-
var
|
|
1870
|
+
var import_react34 = require("react");
|
|
1734
1871
|
|
|
1735
1872
|
// src/components/tabs/use-styles.css.ts
|
|
1736
1873
|
var root19 = "use-styles_root__1l4m7t40";
|
|
@@ -1738,9 +1875,9 @@ var tab = "use-styles_tab__1l4m7t41";
|
|
|
1738
1875
|
var tabActive = "use-styles_tabActive__1l4m7t42";
|
|
1739
1876
|
|
|
1740
1877
|
// src/components/tabs/use-styles.ts
|
|
1741
|
-
function
|
|
1878
|
+
function useStyles23() {
|
|
1742
1879
|
const { themeClass } = useTheme();
|
|
1743
|
-
return (0,
|
|
1880
|
+
return (0, import_react34.useMemo)(() => {
|
|
1744
1881
|
const root24 = [themeClass, root19].filter(Boolean).join(" ");
|
|
1745
1882
|
const tabClass = (active2) => [tab, active2 && tabActive].filter(Boolean).join(" ");
|
|
1746
1883
|
return { root: root24, tab, tabClass };
|
|
@@ -1748,12 +1885,12 @@ function useStyles22() {
|
|
|
1748
1885
|
}
|
|
1749
1886
|
|
|
1750
1887
|
// src/components/tabs/index.tsx
|
|
1751
|
-
var
|
|
1888
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1752
1889
|
function Tabs({ items, value, onChange }) {
|
|
1753
|
-
const { root: root24, tabClass } =
|
|
1754
|
-
return /* @__PURE__ */ (0,
|
|
1890
|
+
const { root: root24, tabClass } = useStyles23();
|
|
1891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { role: "tablist", className: root24, children: items.map((item3) => {
|
|
1755
1892
|
const active2 = item3.value === value;
|
|
1756
|
-
return /* @__PURE__ */ (0,
|
|
1893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1757
1894
|
"button",
|
|
1758
1895
|
{
|
|
1759
1896
|
type: "button",
|
|
@@ -1769,10 +1906,10 @@ function Tabs({ items, value, onChange }) {
|
|
|
1769
1906
|
}
|
|
1770
1907
|
|
|
1771
1908
|
// src/components/menu/index.tsx
|
|
1772
|
-
var
|
|
1909
|
+
var import_react36 = require("react");
|
|
1773
1910
|
|
|
1774
1911
|
// src/components/menu/use-styles.ts
|
|
1775
|
-
var
|
|
1912
|
+
var import_react35 = require("react");
|
|
1776
1913
|
|
|
1777
1914
|
// src/components/menu/use-styles.css.ts
|
|
1778
1915
|
var danger = "use-styles_danger__1uyxaj3";
|
|
@@ -1781,9 +1918,9 @@ var list = "use-styles_list__1uyxaj1 surfaces_panelSurface__6hs0fg1";
|
|
|
1781
1918
|
var wrapper3 = "use-styles_wrapper__1uyxaj0";
|
|
1782
1919
|
|
|
1783
1920
|
// src/components/menu/use-styles.ts
|
|
1784
|
-
function
|
|
1921
|
+
function useStyles24() {
|
|
1785
1922
|
const { themeClass } = useTheme();
|
|
1786
|
-
return (0,
|
|
1923
|
+
return (0, import_react35.useMemo)(
|
|
1787
1924
|
() => ({
|
|
1788
1925
|
wrapper: [themeClass, wrapper3].filter(Boolean).join(" "),
|
|
1789
1926
|
list,
|
|
@@ -1795,17 +1932,17 @@ function useStyles23() {
|
|
|
1795
1932
|
}
|
|
1796
1933
|
|
|
1797
1934
|
// src/components/menu/index.tsx
|
|
1798
|
-
var
|
|
1935
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1799
1936
|
function assignRef(ref, value) {
|
|
1800
1937
|
if (typeof ref === "function") ref(value);
|
|
1801
1938
|
else if (ref) ref.current = value;
|
|
1802
1939
|
}
|
|
1803
1940
|
function Menu({ trigger: trigger2, items }) {
|
|
1804
|
-
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } =
|
|
1805
|
-
const [open, setOpen] = (0,
|
|
1806
|
-
const rootRef = (0,
|
|
1807
|
-
const listRef = (0,
|
|
1808
|
-
const triggerRef = (0,
|
|
1941
|
+
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } = useStyles24();
|
|
1942
|
+
const [open, setOpen] = (0, import_react36.useState)(false);
|
|
1943
|
+
const rootRef = (0, import_react36.useRef)(null);
|
|
1944
|
+
const listRef = (0, import_react36.useRef)(null);
|
|
1945
|
+
const triggerRef = (0, import_react36.useRef)(null);
|
|
1809
1946
|
const getMenuItems = () => Array.from(listRef.current?.querySelectorAll('[role="menuitem"]') ?? []);
|
|
1810
1947
|
const focusItemAt = (index) => {
|
|
1811
1948
|
const menuItems = getMenuItems();
|
|
@@ -1817,7 +1954,7 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1817
1954
|
setOpen(false);
|
|
1818
1955
|
triggerRef.current?.focus();
|
|
1819
1956
|
};
|
|
1820
|
-
(0,
|
|
1957
|
+
(0, import_react36.useEffect)(() => {
|
|
1821
1958
|
if (!open) return;
|
|
1822
1959
|
listRef.current?.querySelector('[role="menuitem"]')?.focus();
|
|
1823
1960
|
const onDocMouseDown = (event) => {
|
|
@@ -1873,7 +2010,7 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1873
2010
|
triggerRef.current = node;
|
|
1874
2011
|
assignRef(consumerRef, node);
|
|
1875
2012
|
};
|
|
1876
|
-
const clonedTrigger = (0,
|
|
2013
|
+
const clonedTrigger = (0, import_react36.cloneElement)(trigger2, {
|
|
1877
2014
|
ref: mergedTriggerRef,
|
|
1878
2015
|
"aria-haspopup": "menu",
|
|
1879
2016
|
"aria-expanded": open,
|
|
@@ -1882,9 +2019,9 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1882
2019
|
setOpen((prev) => !prev);
|
|
1883
2020
|
}
|
|
1884
2021
|
});
|
|
1885
|
-
return /* @__PURE__ */ (0,
|
|
2022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ref: rootRef, className: wrapper4, children: [
|
|
1886
2023
|
clonedTrigger,
|
|
1887
|
-
open && /* @__PURE__ */ (0,
|
|
2024
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref: listRef, role: "menu", className: list2, onKeyDown: onMenuKeyDown, children: items.map((entry, index) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1888
2025
|
"button",
|
|
1889
2026
|
{
|
|
1890
2027
|
type: "button",
|
|
@@ -1903,11 +2040,11 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1903
2040
|
}
|
|
1904
2041
|
|
|
1905
2042
|
// src/components/dialog/index.tsx
|
|
1906
|
-
var
|
|
2043
|
+
var import_react38 = require("react");
|
|
1907
2044
|
var import_react_dom = require("react-dom");
|
|
1908
2045
|
|
|
1909
2046
|
// src/components/dialog/use-styles.ts
|
|
1910
|
-
var
|
|
2047
|
+
var import_react37 = require("react");
|
|
1911
2048
|
|
|
1912
2049
|
// src/components/dialog/use-styles.css.ts
|
|
1913
2050
|
var actions = "use-styles_actions__5tstu83";
|
|
@@ -1916,9 +2053,9 @@ var overlay = "use-styles_overlay__5tstu80";
|
|
|
1916
2053
|
var surface = "use-styles_surface__5tstu81";
|
|
1917
2054
|
|
|
1918
2055
|
// src/components/dialog/use-styles.ts
|
|
1919
|
-
function
|
|
2056
|
+
function useStyles25() {
|
|
1920
2057
|
const { themeClass } = useTheme();
|
|
1921
|
-
return (0,
|
|
2058
|
+
return (0, import_react37.useMemo)(
|
|
1922
2059
|
() => ({
|
|
1923
2060
|
overlay: [themeClass, overlay].filter(Boolean).join(" "),
|
|
1924
2061
|
surface,
|
|
@@ -1930,15 +2067,15 @@ function useStyles24() {
|
|
|
1930
2067
|
}
|
|
1931
2068
|
|
|
1932
2069
|
// src/components/dialog/index.tsx
|
|
1933
|
-
var
|
|
2070
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1934
2071
|
var FOCUSABLE = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1935
2072
|
function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
1936
|
-
const { overlay: overlay2, surface: surface2, body: body3, actions: actionsClass } =
|
|
1937
|
-
const surfaceRef = (0,
|
|
1938
|
-
const previouslyFocused = (0,
|
|
1939
|
-
const generatedId = (0,
|
|
2073
|
+
const { overlay: overlay2, surface: surface2, body: body3, actions: actionsClass } = useStyles25();
|
|
2074
|
+
const surfaceRef = (0, import_react38.useRef)(null);
|
|
2075
|
+
const previouslyFocused = (0, import_react38.useRef)(null);
|
|
2076
|
+
const generatedId = (0, import_react38.useId)();
|
|
1940
2077
|
const titleId = title != null ? generatedId : void 0;
|
|
1941
|
-
(0,
|
|
2078
|
+
(0, import_react38.useEffect)(() => {
|
|
1942
2079
|
if (!open) return;
|
|
1943
2080
|
const onKeyDown = (event) => {
|
|
1944
2081
|
if (event.key === "Escape") onClose();
|
|
@@ -1946,13 +2083,13 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1946
2083
|
document.addEventListener("keydown", onKeyDown);
|
|
1947
2084
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
1948
2085
|
}, [open, onClose]);
|
|
1949
|
-
(0,
|
|
2086
|
+
(0, import_react38.useEffect)(() => {
|
|
1950
2087
|
if (!open) return;
|
|
1951
2088
|
previouslyFocused.current = document.activeElement;
|
|
1952
2089
|
surfaceRef.current?.focus();
|
|
1953
2090
|
return () => previouslyFocused.current?.focus?.();
|
|
1954
2091
|
}, [open]);
|
|
1955
|
-
(0,
|
|
2092
|
+
(0, import_react38.useEffect)(() => {
|
|
1956
2093
|
if (!open) return;
|
|
1957
2094
|
const previousOverflow = document.body.style.overflow;
|
|
1958
2095
|
document.body.style.overflow = "hidden";
|
|
@@ -1990,7 +2127,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1990
2127
|
};
|
|
1991
2128
|
return (0, import_react_dom.createPortal)(
|
|
1992
2129
|
// biome-ignore lint/a11y/useKeyWithClickEvents: ESC handled by a document keydown listener.
|
|
1993
|
-
/* @__PURE__ */ (0,
|
|
2130
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: overlay2, "data-testid": "dialog-overlay", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
1994
2131
|
"div",
|
|
1995
2132
|
{
|
|
1996
2133
|
ref: surfaceRef,
|
|
@@ -2002,9 +2139,9 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
2002
2139
|
onClick: stop,
|
|
2003
2140
|
onKeyDown: onSurfaceKeyDown,
|
|
2004
2141
|
children: [
|
|
2005
|
-
title != null && /* @__PURE__ */ (0,
|
|
2006
|
-
children != null && /* @__PURE__ */ (0,
|
|
2007
|
-
actions3 != null && /* @__PURE__ */ (0,
|
|
2142
|
+
title != null && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, { variant: "h3", as: "h2", id: titleId, children: title }),
|
|
2143
|
+
children != null && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: body3, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typography, { variant: "body", color: "fg2", children }) }),
|
|
2144
|
+
actions3 != null && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: actionsClass, children: actions3 })
|
|
2008
2145
|
]
|
|
2009
2146
|
}
|
|
2010
2147
|
) }),
|
|
@@ -2016,7 +2153,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
2016
2153
|
var import_react_dom2 = require("react-dom");
|
|
2017
2154
|
|
|
2018
2155
|
// src/components/snackbar/use-styles.ts
|
|
2019
|
-
var
|
|
2156
|
+
var import_react39 = require("react");
|
|
2020
2157
|
|
|
2021
2158
|
// src/components/snackbar/use-styles.css.ts
|
|
2022
2159
|
var closeBtn = "use-styles_closeBtn__ihzsep2";
|
|
@@ -2024,9 +2161,9 @@ var message = "use-styles_message__ihzsep1";
|
|
|
2024
2161
|
var root20 = "use-styles_root__ihzsep0 surfaces_inkySurface__6hs0fg2";
|
|
2025
2162
|
|
|
2026
2163
|
// src/components/snackbar/use-styles.ts
|
|
2027
|
-
function
|
|
2164
|
+
function useStyles26() {
|
|
2028
2165
|
const { themeClass } = useTheme();
|
|
2029
|
-
return (0,
|
|
2166
|
+
return (0, import_react39.useMemo)(
|
|
2030
2167
|
() => ({
|
|
2031
2168
|
root: [themeClass, root20].filter(Boolean).join(" "),
|
|
2032
2169
|
message,
|
|
@@ -2037,22 +2174,22 @@ function useStyles25() {
|
|
|
2037
2174
|
}
|
|
2038
2175
|
|
|
2039
2176
|
// src/components/snackbar/index.tsx
|
|
2040
|
-
var
|
|
2177
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2041
2178
|
function Snackbar({ open, message: message2, action, onClose }) {
|
|
2042
|
-
const { root: root24, message: messageClass, closeBtn: closeBtn2 } =
|
|
2179
|
+
const { root: root24, message: messageClass, closeBtn: closeBtn2 } = useStyles26();
|
|
2043
2180
|
if (!open || typeof document === "undefined") return null;
|
|
2044
2181
|
return (0, import_react_dom2.createPortal)(
|
|
2045
|
-
/* @__PURE__ */ (0,
|
|
2046
|
-
/* @__PURE__ */ (0,
|
|
2182
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { role: "status", className: root24, children: [
|
|
2183
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: messageClass, children: message2 }),
|
|
2047
2184
|
action,
|
|
2048
|
-
onClose && /* @__PURE__ */ (0,
|
|
2185
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("button", { type: "button", "aria-label": "Close", className: closeBtn2, onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(XIcon, { size: 18 }) })
|
|
2049
2186
|
] }),
|
|
2050
2187
|
document.body
|
|
2051
2188
|
);
|
|
2052
2189
|
}
|
|
2053
2190
|
|
|
2054
2191
|
// src/components/table/use-styles.ts
|
|
2055
|
-
var
|
|
2192
|
+
var import_react40 = require("react");
|
|
2056
2193
|
|
|
2057
2194
|
// src/components/table/use-styles.css.ts
|
|
2058
2195
|
var alignRight = "use-styles_alignRight__1n2cz6i3";
|
|
@@ -2061,9 +2198,9 @@ var td = "use-styles_td__1n2cz6i2";
|
|
|
2061
2198
|
var th = "use-styles_th__1n2cz6i1";
|
|
2062
2199
|
|
|
2063
2200
|
// src/components/table/use-styles.ts
|
|
2064
|
-
function
|
|
2201
|
+
function useStyles27({ className }) {
|
|
2065
2202
|
const { themeClass } = useTheme();
|
|
2066
|
-
const root24 = (0,
|
|
2203
|
+
const root24 = (0, import_react40.useMemo)(
|
|
2067
2204
|
() => [themeClass, root21, className].filter(Boolean).join(" "),
|
|
2068
2205
|
[themeClass, className]
|
|
2069
2206
|
);
|
|
@@ -2071,7 +2208,7 @@ function useStyles26({ className }) {
|
|
|
2071
2208
|
}
|
|
2072
2209
|
|
|
2073
2210
|
// src/components/table/index.tsx
|
|
2074
|
-
var
|
|
2211
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2075
2212
|
function Table({
|
|
2076
2213
|
columns,
|
|
2077
2214
|
rows,
|
|
@@ -2079,17 +2216,17 @@ function Table({
|
|
|
2079
2216
|
className,
|
|
2080
2217
|
...rest
|
|
2081
2218
|
}) {
|
|
2082
|
-
const { root: root24, th: th2, td: td2, alignRight: alignRight2 } =
|
|
2219
|
+
const { root: root24, th: th2, td: td2, alignRight: alignRight2 } = useStyles27({ className });
|
|
2083
2220
|
const headClass = (column) => column.align === "right" ? `${th2} ${alignRight2}` : th2;
|
|
2084
2221
|
const cellClass = (column) => column.align === "right" ? `${td2} ${alignRight2}` : td2;
|
|
2085
|
-
return /* @__PURE__ */ (0,
|
|
2086
|
-
/* @__PURE__ */ (0,
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("table", { className: root24, ...rest, children: [
|
|
2223
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("tr", { children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("th", { className: headClass(column), children: column.header }, column.key)) }) }),
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("tbody", { children: rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("tr", { children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("td", { className: cellClass(column), children: column.render ? column.render(row) : String(row[column.key]) }, column.key)) }, getRowKey ? getRowKey(row, index) : index)) })
|
|
2088
2225
|
] });
|
|
2089
2226
|
}
|
|
2090
2227
|
|
|
2091
2228
|
// src/components/app-bar/use-styles.ts
|
|
2092
|
-
var
|
|
2229
|
+
var import_react41 = require("react");
|
|
2093
2230
|
|
|
2094
2231
|
// src/components/app-bar/use-styles.css.ts
|
|
2095
2232
|
var actions2 = "use-styles_actions__1h133nh2";
|
|
@@ -2097,9 +2234,9 @@ var brand = "use-styles_brand__1h133nh1";
|
|
|
2097
2234
|
var root22 = "use-styles_root__1h133nh0";
|
|
2098
2235
|
|
|
2099
2236
|
// src/components/app-bar/use-styles.ts
|
|
2100
|
-
function
|
|
2237
|
+
function useStyles28({ className }) {
|
|
2101
2238
|
const { themeClass } = useTheme();
|
|
2102
|
-
const root24 = (0,
|
|
2239
|
+
const root24 = (0, import_react41.useMemo)(
|
|
2103
2240
|
() => [themeClass, root22, className].filter(Boolean).join(" "),
|
|
2104
2241
|
[themeClass, className]
|
|
2105
2242
|
);
|
|
@@ -2107,18 +2244,18 @@ function useStyles27({ className }) {
|
|
|
2107
2244
|
}
|
|
2108
2245
|
|
|
2109
2246
|
// src/components/app-bar/index.tsx
|
|
2110
|
-
var
|
|
2247
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2111
2248
|
function AppBar({ brand: brand2, actions: actions3, className, children, ...rest }) {
|
|
2112
|
-
const styles =
|
|
2113
|
-
return /* @__PURE__ */ (0,
|
|
2114
|
-
brand2 !== void 0 ? /* @__PURE__ */ (0,
|
|
2249
|
+
const styles = useStyles28({ className });
|
|
2250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("header", { className: styles.root, ...rest, children: [
|
|
2251
|
+
brand2 !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: styles.brand, children: brand2 }) : null,
|
|
2115
2252
|
children,
|
|
2116
|
-
actions3 !== void 0 ? /* @__PURE__ */ (0,
|
|
2253
|
+
actions3 !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: styles.actions, children: actions3 }) : null
|
|
2117
2254
|
] });
|
|
2118
2255
|
}
|
|
2119
2256
|
|
|
2120
2257
|
// src/components/list-item/use-styles.ts
|
|
2121
|
-
var
|
|
2258
|
+
var import_react42 = require("react");
|
|
2122
2259
|
|
|
2123
2260
|
// src/components/list-item/use-styles.css.ts
|
|
2124
2261
|
var content2 = "use-styles_content__kbreq13";
|
|
@@ -2128,12 +2265,12 @@ var selected2 = "use-styles_selected__kbreq11";
|
|
|
2128
2265
|
var trailing = "use-styles_trailing__kbreq14";
|
|
2129
2266
|
|
|
2130
2267
|
// src/components/list-item/use-styles.ts
|
|
2131
|
-
function
|
|
2268
|
+
function useStyles29({
|
|
2132
2269
|
selected: selected3,
|
|
2133
2270
|
className
|
|
2134
2271
|
}) {
|
|
2135
2272
|
const { themeClass } = useTheme();
|
|
2136
|
-
const root24 = (0,
|
|
2273
|
+
const root24 = (0, import_react42.useMemo)(
|
|
2137
2274
|
() => [themeClass, root23, selected3 && selected2, className].filter(Boolean).join(" "),
|
|
2138
2275
|
[themeClass, selected3, className]
|
|
2139
2276
|
);
|
|
@@ -2141,7 +2278,7 @@ function useStyles28({
|
|
|
2141
2278
|
}
|
|
2142
2279
|
|
|
2143
2280
|
// src/components/list-item/index.tsx
|
|
2144
|
-
var
|
|
2281
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2145
2282
|
function ListItem({
|
|
2146
2283
|
leading: leading2,
|
|
2147
2284
|
trailing: trailing2,
|
|
@@ -2150,18 +2287,18 @@ function ListItem({
|
|
|
2150
2287
|
children,
|
|
2151
2288
|
...rest
|
|
2152
2289
|
}) {
|
|
2153
|
-
const styles =
|
|
2154
|
-
return /* @__PURE__ */ (0,
|
|
2155
|
-
leading2 != null && /* @__PURE__ */ (0,
|
|
2156
|
-
/* @__PURE__ */ (0,
|
|
2157
|
-
trailing2 != null && /* @__PURE__ */ (0,
|
|
2290
|
+
const styles = useStyles29({ selected: selected3, className });
|
|
2291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: styles.root, ...rest, children: [
|
|
2292
|
+
leading2 != null && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: styles.leading, children: leading2 }),
|
|
2293
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: styles.content, children }),
|
|
2294
|
+
trailing2 != null && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: styles.trailing, children: trailing2 })
|
|
2158
2295
|
] });
|
|
2159
2296
|
}
|
|
2160
2297
|
|
|
2161
2298
|
// src/components/icons/chevron-up/index.tsx
|
|
2162
|
-
var
|
|
2299
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2163
2300
|
function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2164
|
-
return /* @__PURE__ */ (0,
|
|
2301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
2165
2302
|
"svg",
|
|
2166
2303
|
{
|
|
2167
2304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2175,15 +2312,15 @@ function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2175
2312
|
strokeLinejoin: "round",
|
|
2176
2313
|
"aria-hidden": "true",
|
|
2177
2314
|
...rest,
|
|
2178
|
-
children: /* @__PURE__ */ (0,
|
|
2315
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { d: "m18 15-6-6-6 6" })
|
|
2179
2316
|
}
|
|
2180
2317
|
);
|
|
2181
2318
|
}
|
|
2182
2319
|
|
|
2183
2320
|
// src/components/icons/search/index.tsx
|
|
2184
|
-
var
|
|
2321
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2185
2322
|
function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2186
|
-
return /* @__PURE__ */ (0,
|
|
2323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2187
2324
|
"svg",
|
|
2188
2325
|
{
|
|
2189
2326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2198,17 +2335,17 @@ function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2198
2335
|
"aria-hidden": "true",
|
|
2199
2336
|
...rest,
|
|
2200
2337
|
children: [
|
|
2201
|
-
/* @__PURE__ */ (0,
|
|
2202
|
-
/* @__PURE__ */ (0,
|
|
2338
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2339
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "m21 21-4.3-4.3" })
|
|
2203
2340
|
]
|
|
2204
2341
|
}
|
|
2205
2342
|
);
|
|
2206
2343
|
}
|
|
2207
2344
|
|
|
2208
2345
|
// src/components/icons/plus/index.tsx
|
|
2209
|
-
var
|
|
2346
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2210
2347
|
function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2211
|
-
return /* @__PURE__ */ (0,
|
|
2348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
2212
2349
|
"svg",
|
|
2213
2350
|
{
|
|
2214
2351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2223,17 +2360,17 @@ function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2223
2360
|
"aria-hidden": "true",
|
|
2224
2361
|
...rest,
|
|
2225
2362
|
children: [
|
|
2226
|
-
/* @__PURE__ */ (0,
|
|
2227
|
-
/* @__PURE__ */ (0,
|
|
2363
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { d: "M5 12h14" }),
|
|
2364
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { d: "M12 5v14" })
|
|
2228
2365
|
]
|
|
2229
2366
|
}
|
|
2230
2367
|
);
|
|
2231
2368
|
}
|
|
2232
2369
|
|
|
2233
2370
|
// src/components/icons/minus/index.tsx
|
|
2234
|
-
var
|
|
2371
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2235
2372
|
function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2236
|
-
return /* @__PURE__ */ (0,
|
|
2373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2237
2374
|
"svg",
|
|
2238
2375
|
{
|
|
2239
2376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2247,15 +2384,15 @@ function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2247
2384
|
strokeLinejoin: "round",
|
|
2248
2385
|
"aria-hidden": "true",
|
|
2249
2386
|
...rest,
|
|
2250
|
-
children: /* @__PURE__ */ (0,
|
|
2387
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M5 12h14" })
|
|
2251
2388
|
}
|
|
2252
2389
|
);
|
|
2253
2390
|
}
|
|
2254
2391
|
|
|
2255
2392
|
// src/components/icons/more-horizontal/index.tsx
|
|
2256
|
-
var
|
|
2393
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2257
2394
|
function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2258
|
-
return /* @__PURE__ */ (0,
|
|
2395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2259
2396
|
"svg",
|
|
2260
2397
|
{
|
|
2261
2398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2270,9 +2407,9 @@ function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2270
2407
|
"aria-hidden": "true",
|
|
2271
2408
|
...rest,
|
|
2272
2409
|
children: [
|
|
2273
|
-
/* @__PURE__ */ (0,
|
|
2274
|
-
/* @__PURE__ */ (0,
|
|
2275
|
-
/* @__PURE__ */ (0,
|
|
2410
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2411
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2412
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("circle", { cx: "5", cy: "12", r: "1" })
|
|
2276
2413
|
]
|
|
2277
2414
|
}
|
|
2278
2415
|
);
|
|
@@ -2305,8 +2442,10 @@ function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2305
2442
|
ListItem,
|
|
2306
2443
|
Menu,
|
|
2307
2444
|
MinusIcon,
|
|
2445
|
+
MoneyField,
|
|
2308
2446
|
MoreHorizontalIcon,
|
|
2309
2447
|
Pagination,
|
|
2448
|
+
PasswordField,
|
|
2310
2449
|
PlusIcon,
|
|
2311
2450
|
Progress,
|
|
2312
2451
|
Radio,
|