@sovereignfs/ui 0.90.0 → 0.92.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/Auth.module.css +4 -0
- package/dist/index.d.ts +25 -15
- package/dist/index.js +1064 -571
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
// src/components/LegalLinks/LegalLinks.tsx
|
|
2
4
|
import styles from "./LegalLinks.module.css";
|
|
3
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -38,13 +40,13 @@ function AuthCard({ brand, title, lead, legal = true, wide, children }) {
|
|
|
38
40
|
// src/components/Auth/BrandBadge.tsx
|
|
39
41
|
import styles4 from "./Auth.module.css";
|
|
40
42
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
41
|
-
function BrandBadge({ name, size = "md" }) {
|
|
43
|
+
function BrandBadge({ name, mark, size = "md" }) {
|
|
42
44
|
return /* @__PURE__ */ jsx4(
|
|
43
45
|
"span",
|
|
44
46
|
{
|
|
45
47
|
className: size === "lg" ? `${styles4.badge} ${styles4.badgeLg}` : styles4.badge,
|
|
46
48
|
"aria-hidden": "true",
|
|
47
|
-
children: name.trim()[0]?.toUpperCase()
|
|
49
|
+
children: mark?.trim() || name.trim()[0]?.toUpperCase() || "S"
|
|
48
50
|
}
|
|
49
51
|
);
|
|
50
52
|
}
|
|
@@ -146,8 +148,14 @@ function AuthButton({ className, type = "button", ...rest }) {
|
|
|
146
148
|
function AuthDivider({ children = "or" }) {
|
|
147
149
|
return /* @__PURE__ */ jsx8("div", { className: styles8.divider, "aria-hidden": "true", children });
|
|
148
150
|
}
|
|
149
|
-
function AuthFooter({ className, ...rest }) {
|
|
150
|
-
return /* @__PURE__ */ jsx8(
|
|
151
|
+
function AuthFooter({ align = "center", className, ...rest }) {
|
|
152
|
+
return /* @__PURE__ */ jsx8(
|
|
153
|
+
"p",
|
|
154
|
+
{
|
|
155
|
+
className: join(styles8.footer, align === "start" && styles8.footerStart, className),
|
|
156
|
+
...rest
|
|
157
|
+
}
|
|
158
|
+
);
|
|
151
159
|
}
|
|
152
160
|
function AuthLink({
|
|
153
161
|
className,
|
|
@@ -2870,6 +2878,470 @@ function UserXIcon(props) {
|
|
|
2870
2878
|
);
|
|
2871
2879
|
}
|
|
2872
2880
|
|
|
2881
|
+
// src/components/Icon/icons/panel-left-close.tsx
|
|
2882
|
+
import { jsx as jsx118, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
2883
|
+
function PanelLeftCloseIcon(props) {
|
|
2884
|
+
return /* @__PURE__ */ jsxs99(
|
|
2885
|
+
"svg",
|
|
2886
|
+
{
|
|
2887
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2888
|
+
viewBox: "0 0 24 24",
|
|
2889
|
+
fill: "none",
|
|
2890
|
+
stroke: "currentColor",
|
|
2891
|
+
strokeWidth: "2",
|
|
2892
|
+
strokeLinecap: "round",
|
|
2893
|
+
strokeLinejoin: "round",
|
|
2894
|
+
...props,
|
|
2895
|
+
children: [
|
|
2896
|
+
/* @__PURE__ */ jsx118("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
2897
|
+
/* @__PURE__ */ jsx118("path", { d: "M9 3v18" }),
|
|
2898
|
+
/* @__PURE__ */ jsx118("path", { d: "m16 15-3-3 3-3" })
|
|
2899
|
+
]
|
|
2900
|
+
}
|
|
2901
|
+
);
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
// src/components/Icon/icons/panel-left-open.tsx
|
|
2905
|
+
import { jsx as jsx119, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
2906
|
+
function PanelLeftOpenIcon(props) {
|
|
2907
|
+
return /* @__PURE__ */ jsxs100(
|
|
2908
|
+
"svg",
|
|
2909
|
+
{
|
|
2910
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2911
|
+
viewBox: "0 0 24 24",
|
|
2912
|
+
fill: "none",
|
|
2913
|
+
stroke: "currentColor",
|
|
2914
|
+
strokeWidth: "2",
|
|
2915
|
+
strokeLinecap: "round",
|
|
2916
|
+
strokeLinejoin: "round",
|
|
2917
|
+
...props,
|
|
2918
|
+
children: [
|
|
2919
|
+
/* @__PURE__ */ jsx119("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
2920
|
+
/* @__PURE__ */ jsx119("path", { d: "M9 3v18" }),
|
|
2921
|
+
/* @__PURE__ */ jsx119("path", { d: "m14 9 3 3-3 3" })
|
|
2922
|
+
]
|
|
2923
|
+
}
|
|
2924
|
+
);
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
// src/components/Icon/icons/list-todo.tsx
|
|
2928
|
+
import { jsx as jsx120, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
2929
|
+
function ListTodoIcon(props) {
|
|
2930
|
+
return /* @__PURE__ */ jsxs101(
|
|
2931
|
+
"svg",
|
|
2932
|
+
{
|
|
2933
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2934
|
+
viewBox: "0 0 24 24",
|
|
2935
|
+
fill: "none",
|
|
2936
|
+
stroke: "currentColor",
|
|
2937
|
+
strokeWidth: "2",
|
|
2938
|
+
strokeLinecap: "round",
|
|
2939
|
+
strokeLinejoin: "round",
|
|
2940
|
+
...props,
|
|
2941
|
+
children: [
|
|
2942
|
+
/* @__PURE__ */ jsx120("path", { d: "M13 5h8" }),
|
|
2943
|
+
/* @__PURE__ */ jsx120("path", { d: "M13 12h8" }),
|
|
2944
|
+
/* @__PURE__ */ jsx120("path", { d: "M13 19h8" }),
|
|
2945
|
+
/* @__PURE__ */ jsx120("path", { d: "m3 17 2 2 4-4" }),
|
|
2946
|
+
/* @__PURE__ */ jsx120("rect", { x: "3", y: "4", width: "6", height: "6", rx: "1" })
|
|
2947
|
+
]
|
|
2948
|
+
}
|
|
2949
|
+
);
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
// src/components/Icon/icons/user-plus.tsx
|
|
2953
|
+
import { jsx as jsx121, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
2954
|
+
function UserPlusIcon(props) {
|
|
2955
|
+
return /* @__PURE__ */ jsxs102(
|
|
2956
|
+
"svg",
|
|
2957
|
+
{
|
|
2958
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2959
|
+
viewBox: "0 0 24 24",
|
|
2960
|
+
fill: "none",
|
|
2961
|
+
stroke: "currentColor",
|
|
2962
|
+
strokeWidth: "2",
|
|
2963
|
+
strokeLinecap: "round",
|
|
2964
|
+
strokeLinejoin: "round",
|
|
2965
|
+
...props,
|
|
2966
|
+
children: [
|
|
2967
|
+
/* @__PURE__ */ jsx121("path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }),
|
|
2968
|
+
/* @__PURE__ */ jsx121("circle", { cx: "9", cy: "7", r: "4" }),
|
|
2969
|
+
/* @__PURE__ */ jsx121("line", { x1: "19", x2: "19", y1: "8", y2: "14" }),
|
|
2970
|
+
/* @__PURE__ */ jsx121("line", { x1: "22", x2: "16", y1: "11", y2: "11" })
|
|
2971
|
+
]
|
|
2972
|
+
}
|
|
2973
|
+
);
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
// src/components/Icon/icons/calendar-days.tsx
|
|
2977
|
+
import { jsx as jsx122, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
2978
|
+
function CalendarDaysIcon(props) {
|
|
2979
|
+
return /* @__PURE__ */ jsxs103(
|
|
2980
|
+
"svg",
|
|
2981
|
+
{
|
|
2982
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2983
|
+
viewBox: "0 0 24 24",
|
|
2984
|
+
fill: "none",
|
|
2985
|
+
stroke: "currentColor",
|
|
2986
|
+
strokeWidth: "2",
|
|
2987
|
+
strokeLinecap: "round",
|
|
2988
|
+
strokeLinejoin: "round",
|
|
2989
|
+
...props,
|
|
2990
|
+
children: [
|
|
2991
|
+
/* @__PURE__ */ jsx122("path", { d: "M8 2v3" }),
|
|
2992
|
+
/* @__PURE__ */ jsx122("path", { d: "M16 2v3" }),
|
|
2993
|
+
/* @__PURE__ */ jsx122("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
2994
|
+
/* @__PURE__ */ jsx122("path", { d: "M3 9h18" }),
|
|
2995
|
+
/* @__PURE__ */ jsx122("path", { d: "M8 13h.01" }),
|
|
2996
|
+
/* @__PURE__ */ jsx122("path", { d: "M12 13h.01" }),
|
|
2997
|
+
/* @__PURE__ */ jsx122("path", { d: "M16 13h.01" }),
|
|
2998
|
+
/* @__PURE__ */ jsx122("path", { d: "M8 17h.01" }),
|
|
2999
|
+
/* @__PURE__ */ jsx122("path", { d: "M12 17h.01" }),
|
|
3000
|
+
/* @__PURE__ */ jsx122("path", { d: "M16 17h.01" })
|
|
3001
|
+
]
|
|
3002
|
+
}
|
|
3003
|
+
);
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
// src/components/Icon/icons/folder-kanban.tsx
|
|
3007
|
+
import { jsx as jsx123, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
3008
|
+
function FolderKanbanIcon(props) {
|
|
3009
|
+
return /* @__PURE__ */ jsxs104(
|
|
3010
|
+
"svg",
|
|
3011
|
+
{
|
|
3012
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3013
|
+
viewBox: "0 0 24 24",
|
|
3014
|
+
fill: "none",
|
|
3015
|
+
stroke: "currentColor",
|
|
3016
|
+
strokeWidth: "2",
|
|
3017
|
+
strokeLinecap: "round",
|
|
3018
|
+
strokeLinejoin: "round",
|
|
3019
|
+
...props,
|
|
3020
|
+
children: [
|
|
3021
|
+
/* @__PURE__ */ jsx123("path", { d: "M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z" }),
|
|
3022
|
+
/* @__PURE__ */ jsx123("path", { d: "M8 10v4" }),
|
|
3023
|
+
/* @__PURE__ */ jsx123("path", { d: "M12 10v2" }),
|
|
3024
|
+
/* @__PURE__ */ jsx123("path", { d: "M16 10v6" })
|
|
3025
|
+
]
|
|
3026
|
+
}
|
|
3027
|
+
);
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
// src/components/Icon/icons/folder-lock.tsx
|
|
3031
|
+
import { jsx as jsx124, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
3032
|
+
function FolderLockIcon(props) {
|
|
3033
|
+
return /* @__PURE__ */ jsxs105(
|
|
3034
|
+
"svg",
|
|
3035
|
+
{
|
|
3036
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3037
|
+
viewBox: "0 0 24 24",
|
|
3038
|
+
fill: "none",
|
|
3039
|
+
stroke: "currentColor",
|
|
3040
|
+
strokeWidth: "2",
|
|
3041
|
+
strokeLinecap: "round",
|
|
3042
|
+
strokeLinejoin: "round",
|
|
3043
|
+
...props,
|
|
3044
|
+
children: [
|
|
3045
|
+
/* @__PURE__ */ jsx124("rect", { width: "8", height: "5", x: "14", y: "17", rx: "1" }),
|
|
3046
|
+
/* @__PURE__ */ jsx124("path", { d: "M10 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v2.5" }),
|
|
3047
|
+
/* @__PURE__ */ jsx124("path", { d: "M20 17v-2a2 2 0 1 0-4 0v2" })
|
|
3048
|
+
]
|
|
3049
|
+
}
|
|
3050
|
+
);
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
// src/components/Icon/icons/folder-plus.tsx
|
|
3054
|
+
import { jsx as jsx125, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
3055
|
+
function FolderPlusIcon(props) {
|
|
3056
|
+
return /* @__PURE__ */ jsxs106(
|
|
3057
|
+
"svg",
|
|
3058
|
+
{
|
|
3059
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3060
|
+
viewBox: "0 0 24 24",
|
|
3061
|
+
fill: "none",
|
|
3062
|
+
stroke: "currentColor",
|
|
3063
|
+
strokeWidth: "2",
|
|
3064
|
+
strokeLinecap: "round",
|
|
3065
|
+
strokeLinejoin: "round",
|
|
3066
|
+
...props,
|
|
3067
|
+
children: [
|
|
3068
|
+
/* @__PURE__ */ jsx125("path", { d: "M12 10v6" }),
|
|
3069
|
+
/* @__PURE__ */ jsx125("path", { d: "M9 13h6" }),
|
|
3070
|
+
/* @__PURE__ */ jsx125("path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" })
|
|
3071
|
+
]
|
|
3072
|
+
}
|
|
3073
|
+
);
|
|
3074
|
+
}
|
|
3075
|
+
|
|
3076
|
+
// src/components/Icon/icons/folder-input.tsx
|
|
3077
|
+
import { jsx as jsx126, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
3078
|
+
function FolderInputIcon(props) {
|
|
3079
|
+
return /* @__PURE__ */ jsxs107(
|
|
3080
|
+
"svg",
|
|
3081
|
+
{
|
|
3082
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3083
|
+
viewBox: "0 0 24 24",
|
|
3084
|
+
fill: "none",
|
|
3085
|
+
stroke: "currentColor",
|
|
3086
|
+
strokeWidth: "2",
|
|
3087
|
+
strokeLinecap: "round",
|
|
3088
|
+
strokeLinejoin: "round",
|
|
3089
|
+
...props,
|
|
3090
|
+
children: [
|
|
3091
|
+
/* @__PURE__ */ jsx126("path", { d: "M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1" }),
|
|
3092
|
+
/* @__PURE__ */ jsx126("path", { d: "M2 13h10" }),
|
|
3093
|
+
/* @__PURE__ */ jsx126("path", { d: "m9 16 3-3-3-3" })
|
|
3094
|
+
]
|
|
3095
|
+
}
|
|
3096
|
+
);
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
// src/components/Icon/icons/file-image.tsx
|
|
3100
|
+
import { jsx as jsx127, jsxs as jsxs108 } from "react/jsx-runtime";
|
|
3101
|
+
function FileImageIcon(props) {
|
|
3102
|
+
return /* @__PURE__ */ jsxs108(
|
|
3103
|
+
"svg",
|
|
3104
|
+
{
|
|
3105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3106
|
+
viewBox: "0 0 24 24",
|
|
3107
|
+
fill: "none",
|
|
3108
|
+
stroke: "currentColor",
|
|
3109
|
+
strokeWidth: "2",
|
|
3110
|
+
strokeLinecap: "round",
|
|
3111
|
+
strokeLinejoin: "round",
|
|
3112
|
+
...props,
|
|
3113
|
+
children: [
|
|
3114
|
+
/* @__PURE__ */ jsx127("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
3115
|
+
/* @__PURE__ */ jsx127("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
3116
|
+
/* @__PURE__ */ jsx127("circle", { cx: "10", cy: "12", r: "2" }),
|
|
3117
|
+
/* @__PURE__ */ jsx127("path", { d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22" })
|
|
3118
|
+
]
|
|
3119
|
+
}
|
|
3120
|
+
);
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
// src/components/Icon/icons/square-text.tsx
|
|
3124
|
+
import { jsx as jsx128, jsxs as jsxs109 } from "react/jsx-runtime";
|
|
3125
|
+
function SquareTextIcon(props) {
|
|
3126
|
+
return /* @__PURE__ */ jsxs109(
|
|
3127
|
+
"svg",
|
|
3128
|
+
{
|
|
3129
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3130
|
+
viewBox: "0 0 24 24",
|
|
3131
|
+
fill: "none",
|
|
3132
|
+
stroke: "currentColor",
|
|
3133
|
+
strokeWidth: "2",
|
|
3134
|
+
strokeLinecap: "round",
|
|
3135
|
+
strokeLinejoin: "round",
|
|
3136
|
+
...props,
|
|
3137
|
+
children: [
|
|
3138
|
+
/* @__PURE__ */ jsx128("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
3139
|
+
/* @__PURE__ */ jsx128("path", { d: "M7 8h8" }),
|
|
3140
|
+
/* @__PURE__ */ jsx128("path", { d: "M7 12h10" }),
|
|
3141
|
+
/* @__PURE__ */ jsx128("path", { d: "M7 16h6" })
|
|
3142
|
+
]
|
|
3143
|
+
}
|
|
3144
|
+
);
|
|
3145
|
+
}
|
|
3146
|
+
|
|
3147
|
+
// src/components/Icon/icons/file-code-corner.tsx
|
|
3148
|
+
import { jsx as jsx129, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
3149
|
+
function FileCodeCornerIcon(props) {
|
|
3150
|
+
return /* @__PURE__ */ jsxs110(
|
|
3151
|
+
"svg",
|
|
3152
|
+
{
|
|
3153
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3154
|
+
viewBox: "0 0 24 24",
|
|
3155
|
+
fill: "none",
|
|
3156
|
+
stroke: "currentColor",
|
|
3157
|
+
strokeWidth: "2",
|
|
3158
|
+
strokeLinecap: "round",
|
|
3159
|
+
strokeLinejoin: "round",
|
|
3160
|
+
...props,
|
|
3161
|
+
children: [
|
|
3162
|
+
/* @__PURE__ */ jsx129("path", { d: "M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35" }),
|
|
3163
|
+
/* @__PURE__ */ jsx129("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
3164
|
+
/* @__PURE__ */ jsx129("path", { d: "m5 16-3 3 3 3" }),
|
|
3165
|
+
/* @__PURE__ */ jsx129("path", { d: "m9 22 3-3-3-3" })
|
|
3166
|
+
]
|
|
3167
|
+
}
|
|
3168
|
+
);
|
|
3169
|
+
}
|
|
3170
|
+
|
|
3171
|
+
// src/components/Icon/icons/archive-x.tsx
|
|
3172
|
+
import { jsx as jsx130, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
3173
|
+
function ArchiveXIcon(props) {
|
|
3174
|
+
return /* @__PURE__ */ jsxs111(
|
|
3175
|
+
"svg",
|
|
3176
|
+
{
|
|
3177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3178
|
+
viewBox: "0 0 24 24",
|
|
3179
|
+
fill: "none",
|
|
3180
|
+
stroke: "currentColor",
|
|
3181
|
+
strokeWidth: "2",
|
|
3182
|
+
strokeLinecap: "round",
|
|
3183
|
+
strokeLinejoin: "round",
|
|
3184
|
+
...props,
|
|
3185
|
+
children: [
|
|
3186
|
+
/* @__PURE__ */ jsx130("rect", { width: "20", height: "5", x: "2", y: "3", rx: "1" }),
|
|
3187
|
+
/* @__PURE__ */ jsx130("path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" }),
|
|
3188
|
+
/* @__PURE__ */ jsx130("path", { d: "m9.5 17 5-5" }),
|
|
3189
|
+
/* @__PURE__ */ jsx130("path", { d: "m9.5 12 5 5" })
|
|
3190
|
+
]
|
|
3191
|
+
}
|
|
3192
|
+
);
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
// src/components/Icon/icons/settings-2.tsx
|
|
3196
|
+
import { jsx as jsx131, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
3197
|
+
function Settings2Icon(props) {
|
|
3198
|
+
return /* @__PURE__ */ jsxs112(
|
|
3199
|
+
"svg",
|
|
3200
|
+
{
|
|
3201
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3202
|
+
viewBox: "0 0 24 24",
|
|
3203
|
+
fill: "none",
|
|
3204
|
+
stroke: "currentColor",
|
|
3205
|
+
strokeWidth: "2",
|
|
3206
|
+
strokeLinecap: "round",
|
|
3207
|
+
strokeLinejoin: "round",
|
|
3208
|
+
...props,
|
|
3209
|
+
children: [
|
|
3210
|
+
/* @__PURE__ */ jsx131("path", { d: "M14 17H5" }),
|
|
3211
|
+
/* @__PURE__ */ jsx131("path", { d: "M19 7h-9" }),
|
|
3212
|
+
/* @__PURE__ */ jsx131("circle", { cx: "17", cy: "17", r: "3" }),
|
|
3213
|
+
/* @__PURE__ */ jsx131("circle", { cx: "7", cy: "7", r: "3" })
|
|
3214
|
+
]
|
|
3215
|
+
}
|
|
3216
|
+
);
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
// src/components/Icon/icons/arrow-right-left.tsx
|
|
3220
|
+
import { jsx as jsx132, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
3221
|
+
function ArrowRightLeftIcon(props) {
|
|
3222
|
+
return /* @__PURE__ */ jsxs113(
|
|
3223
|
+
"svg",
|
|
3224
|
+
{
|
|
3225
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3226
|
+
viewBox: "0 0 24 24",
|
|
3227
|
+
fill: "none",
|
|
3228
|
+
stroke: "currentColor",
|
|
3229
|
+
strokeWidth: "2",
|
|
3230
|
+
strokeLinecap: "round",
|
|
3231
|
+
strokeLinejoin: "round",
|
|
3232
|
+
...props,
|
|
3233
|
+
children: [
|
|
3234
|
+
/* @__PURE__ */ jsx132("path", { d: "m16 3 4 4-4 4" }),
|
|
3235
|
+
/* @__PURE__ */ jsx132("path", { d: "M20 7H4" }),
|
|
3236
|
+
/* @__PURE__ */ jsx132("path", { d: "m8 21-4-4 4-4" }),
|
|
3237
|
+
/* @__PURE__ */ jsx132("path", { d: "M4 17h16" })
|
|
3238
|
+
]
|
|
3239
|
+
}
|
|
3240
|
+
);
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
// src/components/Icon/icons/save.tsx
|
|
3244
|
+
import { jsx as jsx133, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
3245
|
+
function SaveIcon(props) {
|
|
3246
|
+
return /* @__PURE__ */ jsxs114(
|
|
3247
|
+
"svg",
|
|
3248
|
+
{
|
|
3249
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3250
|
+
viewBox: "0 0 24 24",
|
|
3251
|
+
fill: "none",
|
|
3252
|
+
stroke: "currentColor",
|
|
3253
|
+
strokeWidth: "2",
|
|
3254
|
+
strokeLinecap: "round",
|
|
3255
|
+
strokeLinejoin: "round",
|
|
3256
|
+
...props,
|
|
3257
|
+
children: [
|
|
3258
|
+
/* @__PURE__ */ jsx133("path", { d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" }),
|
|
3259
|
+
/* @__PURE__ */ jsx133("path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" }),
|
|
3260
|
+
/* @__PURE__ */ jsx133("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" })
|
|
3261
|
+
]
|
|
3262
|
+
}
|
|
3263
|
+
);
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
// src/components/Icon/icons/hard-drive.tsx
|
|
3267
|
+
import { jsx as jsx134, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
3268
|
+
function HardDriveIcon(props) {
|
|
3269
|
+
return /* @__PURE__ */ jsxs115(
|
|
3270
|
+
"svg",
|
|
3271
|
+
{
|
|
3272
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3273
|
+
viewBox: "0 0 24 24",
|
|
3274
|
+
fill: "none",
|
|
3275
|
+
stroke: "currentColor",
|
|
3276
|
+
strokeWidth: "2",
|
|
3277
|
+
strokeLinecap: "round",
|
|
3278
|
+
strokeLinejoin: "round",
|
|
3279
|
+
...props,
|
|
3280
|
+
children: [
|
|
3281
|
+
/* @__PURE__ */ jsx134("path", { d: "M10 16h.01" }),
|
|
3282
|
+
/* @__PURE__ */ jsx134("path", { d: "M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }),
|
|
3283
|
+
/* @__PURE__ */ jsx134("path", { d: "M21.946 12.013H2.054" }),
|
|
3284
|
+
/* @__PURE__ */ jsx134("path", { d: "M6 16h.01" })
|
|
3285
|
+
]
|
|
3286
|
+
}
|
|
3287
|
+
);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
// src/components/Icon/icons/notebook-pen.tsx
|
|
3291
|
+
import { jsx as jsx135, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
3292
|
+
function NotebookPenIcon(props) {
|
|
3293
|
+
return /* @__PURE__ */ jsxs116(
|
|
3294
|
+
"svg",
|
|
3295
|
+
{
|
|
3296
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3297
|
+
viewBox: "0 0 24 24",
|
|
3298
|
+
fill: "none",
|
|
3299
|
+
stroke: "currentColor",
|
|
3300
|
+
strokeWidth: "2",
|
|
3301
|
+
strokeLinecap: "round",
|
|
3302
|
+
strokeLinejoin: "round",
|
|
3303
|
+
...props,
|
|
3304
|
+
children: [
|
|
3305
|
+
/* @__PURE__ */ jsx135("path", { d: "M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4" }),
|
|
3306
|
+
/* @__PURE__ */ jsx135("path", { d: "M2 6h4" }),
|
|
3307
|
+
/* @__PURE__ */ jsx135("path", { d: "M2 10h4" }),
|
|
3308
|
+
/* @__PURE__ */ jsx135("path", { d: "M2 14h4" }),
|
|
3309
|
+
/* @__PURE__ */ jsx135("path", { d: "M2 18h4" }),
|
|
3310
|
+
/* @__PURE__ */ jsx135("path", { d: "M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z" })
|
|
3311
|
+
]
|
|
3312
|
+
}
|
|
3313
|
+
);
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
// src/components/Icon/icons/fingerprint-pattern.tsx
|
|
3317
|
+
import { jsx as jsx136, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
3318
|
+
function FingerprintPatternIcon(props) {
|
|
3319
|
+
return /* @__PURE__ */ jsxs117(
|
|
3320
|
+
"svg",
|
|
3321
|
+
{
|
|
3322
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3323
|
+
viewBox: "0 0 24 24",
|
|
3324
|
+
fill: "none",
|
|
3325
|
+
stroke: "currentColor",
|
|
3326
|
+
strokeWidth: "2",
|
|
3327
|
+
strokeLinecap: "round",
|
|
3328
|
+
strokeLinejoin: "round",
|
|
3329
|
+
...props,
|
|
3330
|
+
children: [
|
|
3331
|
+
/* @__PURE__ */ jsx136("path", { d: "M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4" }),
|
|
3332
|
+
/* @__PURE__ */ jsx136("path", { d: "M14 13.12c0 2.38 0 6.38-1 8.88" }),
|
|
3333
|
+
/* @__PURE__ */ jsx136("path", { d: "M17.29 21.02c.12-.6.43-2.3.5-3.02" }),
|
|
3334
|
+
/* @__PURE__ */ jsx136("path", { d: "M2 12a10 10 0 0 1 18-6" }),
|
|
3335
|
+
/* @__PURE__ */ jsx136("path", { d: "M2 16h.01" }),
|
|
3336
|
+
/* @__PURE__ */ jsx136("path", { d: "M21.8 16c.2-2 .131-5.354 0-6" }),
|
|
3337
|
+
/* @__PURE__ */ jsx136("path", { d: "M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2" }),
|
|
3338
|
+
/* @__PURE__ */ jsx136("path", { d: "M8.65 22c.21-.66.45-1.32.57-2" }),
|
|
3339
|
+
/* @__PURE__ */ jsx136("path", { d: "M9 6.8a6 6 0 0 1 9 5.2v2" })
|
|
3340
|
+
]
|
|
3341
|
+
}
|
|
3342
|
+
);
|
|
3343
|
+
}
|
|
3344
|
+
|
|
2873
3345
|
// src/components/Icon/icons/index.ts
|
|
2874
3346
|
var ICONS = {
|
|
2875
3347
|
house: HouseIcon,
|
|
@@ -2974,12 +3446,31 @@ var ICONS = {
|
|
|
2974
3446
|
"credit-card": CreditCardIcon,
|
|
2975
3447
|
ban: BanIcon,
|
|
2976
3448
|
"shield-off": ShieldOffIcon,
|
|
2977
|
-
"user-x": UserXIcon
|
|
3449
|
+
"user-x": UserXIcon,
|
|
3450
|
+
"panel-left-close": PanelLeftCloseIcon,
|
|
3451
|
+
"panel-left-open": PanelLeftOpenIcon,
|
|
3452
|
+
"list-todo": ListTodoIcon,
|
|
3453
|
+
"user-plus": UserPlusIcon,
|
|
3454
|
+
"calendar-days": CalendarDaysIcon,
|
|
3455
|
+
"folder-kanban": FolderKanbanIcon,
|
|
3456
|
+
"folder-lock": FolderLockIcon,
|
|
3457
|
+
"folder-plus": FolderPlusIcon,
|
|
3458
|
+
"folder-input": FolderInputIcon,
|
|
3459
|
+
"file-image": FileImageIcon,
|
|
3460
|
+
"square-text": SquareTextIcon,
|
|
3461
|
+
"file-code-corner": FileCodeCornerIcon,
|
|
3462
|
+
"archive-x": ArchiveXIcon,
|
|
3463
|
+
"settings-2": Settings2Icon,
|
|
3464
|
+
"arrow-right-left": ArrowRightLeftIcon,
|
|
3465
|
+
save: SaveIcon,
|
|
3466
|
+
"hard-drive": HardDriveIcon,
|
|
3467
|
+
"notebook-pen": NotebookPenIcon,
|
|
3468
|
+
"fingerprint-pattern": FingerprintPatternIcon
|
|
2978
3469
|
};
|
|
2979
3470
|
|
|
2980
3471
|
// src/components/Icon/Icon.tsx
|
|
2981
3472
|
import styles15 from "./Icon.module.css";
|
|
2982
|
-
import { jsx as
|
|
3473
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
2983
3474
|
function Icon({
|
|
2984
3475
|
name,
|
|
2985
3476
|
size = "md",
|
|
@@ -2988,14 +3479,14 @@ function Icon({
|
|
|
2988
3479
|
}) {
|
|
2989
3480
|
const Svg = ICONS[name];
|
|
2990
3481
|
const classes = [styles15.root, styles15[size], className].filter(Boolean).join(" ");
|
|
2991
|
-
return /* @__PURE__ */
|
|
3482
|
+
return /* @__PURE__ */ jsx137(Svg, { className: classes, role: aria["aria-label"] ? "img" : void 0, ...aria });
|
|
2992
3483
|
}
|
|
2993
3484
|
|
|
2994
3485
|
// src/components/Toggle/Toggle.tsx
|
|
2995
3486
|
import styles16 from "./Toggle.module.css";
|
|
2996
|
-
import { jsx as
|
|
3487
|
+
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
2997
3488
|
function Toggle({ checked, onChange, disabled, className, ...rest }) {
|
|
2998
|
-
return /* @__PURE__ */
|
|
3489
|
+
return /* @__PURE__ */ jsx138(
|
|
2999
3490
|
"button",
|
|
3000
3491
|
{
|
|
3001
3492
|
type: "button",
|
|
@@ -3005,14 +3496,14 @@ function Toggle({ checked, onChange, disabled, className, ...rest }) {
|
|
|
3005
3496
|
className: [styles16.track, checked ? styles16.on : styles16.off, className].filter(Boolean).join(" "),
|
|
3006
3497
|
onClick: () => onChange(!checked),
|
|
3007
3498
|
...rest,
|
|
3008
|
-
children: /* @__PURE__ */
|
|
3499
|
+
children: /* @__PURE__ */ jsx138("span", { className: styles16.thumb })
|
|
3009
3500
|
}
|
|
3010
3501
|
);
|
|
3011
3502
|
}
|
|
3012
3503
|
|
|
3013
3504
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
3014
3505
|
import styles17 from "./SegmentedControl.module.css";
|
|
3015
|
-
import { jsx as
|
|
3506
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
3016
3507
|
function SegmentedControl({
|
|
3017
3508
|
value,
|
|
3018
3509
|
onChange,
|
|
@@ -3020,7 +3511,7 @@ function SegmentedControl({
|
|
|
3020
3511
|
size = "md",
|
|
3021
3512
|
"aria-label": ariaLabel
|
|
3022
3513
|
}) {
|
|
3023
|
-
return /* @__PURE__ */
|
|
3514
|
+
return /* @__PURE__ */ jsx139(
|
|
3024
3515
|
"div",
|
|
3025
3516
|
{
|
|
3026
3517
|
role: "radiogroup",
|
|
@@ -3028,7 +3519,7 @@ function SegmentedControl({
|
|
|
3028
3519
|
className: [styles17.track, styles17[size]].join(" "),
|
|
3029
3520
|
children: options.map((opt) => {
|
|
3030
3521
|
const active = opt.value === value;
|
|
3031
|
-
return /* @__PURE__ */
|
|
3522
|
+
return /* @__PURE__ */ jsx139(
|
|
3032
3523
|
"button",
|
|
3033
3524
|
{
|
|
3034
3525
|
type: "button",
|
|
@@ -3047,11 +3538,11 @@ function SegmentedControl({
|
|
|
3047
3538
|
|
|
3048
3539
|
// src/components/Tabs/Tabs.tsx
|
|
3049
3540
|
import styles18 from "./Tabs.module.css";
|
|
3050
|
-
import { jsx as
|
|
3541
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
3051
3542
|
function Tabs({ items, value, onChange, "aria-label": ariaLabel }) {
|
|
3052
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsx140("div", { role: "tablist", "aria-label": ariaLabel, className: styles18.tablist, children: items.map((item) => {
|
|
3053
3544
|
const active = item.value === value;
|
|
3054
|
-
return /* @__PURE__ */
|
|
3545
|
+
return /* @__PURE__ */ jsx140(
|
|
3055
3546
|
"button",
|
|
3056
3547
|
{
|
|
3057
3548
|
type: "button",
|
|
@@ -3068,15 +3559,15 @@ function Tabs({ items, value, onChange, "aria-label": ariaLabel }) {
|
|
|
3068
3559
|
|
|
3069
3560
|
// src/components/Select/Select.tsx
|
|
3070
3561
|
import styles19 from "./Select.module.css";
|
|
3071
|
-
import { jsx as
|
|
3562
|
+
import { jsx as jsx141, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
3072
3563
|
function Select({ className, size = "md", children, ...rest }) {
|
|
3073
|
-
return /* @__PURE__ */
|
|
3564
|
+
return /* @__PURE__ */ jsxs118(
|
|
3074
3565
|
"div",
|
|
3075
3566
|
{
|
|
3076
3567
|
className: [styles19.wrapper, size === "sm" ? styles19.sm : void 0, className].filter(Boolean).join(" "),
|
|
3077
3568
|
children: [
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ jsx141("select", { className: styles19.select, ...rest, children }),
|
|
3570
|
+
/* @__PURE__ */ jsx141(
|
|
3080
3571
|
"svg",
|
|
3081
3572
|
{
|
|
3082
3573
|
className: styles19.chevron,
|
|
@@ -3089,7 +3580,7 @@ function Select({ className, size = "md", children, ...rest }) {
|
|
|
3089
3580
|
strokeWidth: "2",
|
|
3090
3581
|
strokeLinecap: "round",
|
|
3091
3582
|
strokeLinejoin: "round",
|
|
3092
|
-
children: /* @__PURE__ */
|
|
3583
|
+
children: /* @__PURE__ */ jsx141("polyline", { points: "6 9 12 15 18 9" })
|
|
3093
3584
|
}
|
|
3094
3585
|
)
|
|
3095
3586
|
]
|
|
@@ -3099,18 +3590,18 @@ function Select({ className, size = "md", children, ...rest }) {
|
|
|
3099
3590
|
|
|
3100
3591
|
// src/components/SystemBanner/SystemBanner.tsx
|
|
3101
3592
|
import styles20 from "./SystemBanner.module.css";
|
|
3102
|
-
import { jsx as
|
|
3593
|
+
import { jsx as jsx142, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
3103
3594
|
function SystemBanner({ variant = "info", onDismiss, children }) {
|
|
3104
|
-
return /* @__PURE__ */
|
|
3105
|
-
/* @__PURE__ */
|
|
3106
|
-
onDismiss && /* @__PURE__ */
|
|
3595
|
+
return /* @__PURE__ */ jsxs119("div", { role: "status", "aria-live": "polite", className: [styles20.banner, styles20[variant]].join(" "), children: [
|
|
3596
|
+
/* @__PURE__ */ jsx142("span", { className: styles20.content, children }),
|
|
3597
|
+
onDismiss && /* @__PURE__ */ jsx142(
|
|
3107
3598
|
"button",
|
|
3108
3599
|
{
|
|
3109
3600
|
type: "button",
|
|
3110
3601
|
className: styles20.dismiss,
|
|
3111
3602
|
onClick: onDismiss,
|
|
3112
3603
|
"aria-label": "Dismiss banner",
|
|
3113
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ jsx142(
|
|
3114
3605
|
"svg",
|
|
3115
3606
|
{
|
|
3116
3607
|
width: "14",
|
|
@@ -3119,7 +3610,7 @@ function SystemBanner({ variant = "info", onDismiss, children }) {
|
|
|
3119
3610
|
fill: "none",
|
|
3120
3611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3121
3612
|
"aria-hidden": true,
|
|
3122
|
-
children: /* @__PURE__ */
|
|
3613
|
+
children: /* @__PURE__ */ jsx142(
|
|
3123
3614
|
"path",
|
|
3124
3615
|
{
|
|
3125
3616
|
d: "M1 1L13 13M13 1L1 13",
|
|
@@ -3247,7 +3738,7 @@ function useOverlayKeyboardTrap(panelRef, open, onClose) {
|
|
|
3247
3738
|
|
|
3248
3739
|
// src/components/Popover/Popover.tsx
|
|
3249
3740
|
import styles21 from "./Popover.module.css";
|
|
3250
|
-
import { jsx as
|
|
3741
|
+
import { jsx as jsx143, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
3251
3742
|
var TRIGGER_GAP = 8;
|
|
3252
3743
|
var VIEWPORT_MARGIN = 4;
|
|
3253
3744
|
function Popover({
|
|
@@ -3347,9 +3838,9 @@ function Popover({
|
|
|
3347
3838
|
document.addEventListener("keydown", handleKeyDown);
|
|
3348
3839
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
3349
3840
|
}, [open, onClose]);
|
|
3350
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsxs120("div", { ref: containerRef, className: [styles21.container, className].filter(Boolean).join(" "), children: [
|
|
3351
3842
|
trigger,
|
|
3352
|
-
open && /* @__PURE__ */
|
|
3843
|
+
open && /* @__PURE__ */ jsx143(
|
|
3353
3844
|
"div",
|
|
3354
3845
|
{
|
|
3355
3846
|
ref: panelRef,
|
|
@@ -3371,16 +3862,16 @@ function Popover({
|
|
|
3371
3862
|
|
|
3372
3863
|
// src/components/Input/Input.tsx
|
|
3373
3864
|
import styles22 from "./Input.module.css";
|
|
3374
|
-
import { jsx as
|
|
3865
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
3375
3866
|
function Input({ type = "text", className, ...rest }) {
|
|
3376
3867
|
const classes = [styles22.input, className].filter(Boolean).join(" ");
|
|
3377
|
-
return /* @__PURE__ */
|
|
3868
|
+
return /* @__PURE__ */ jsx144("input", { type, className: classes, ...rest });
|
|
3378
3869
|
}
|
|
3379
3870
|
|
|
3380
3871
|
// src/components/Textarea/Textarea.tsx
|
|
3381
3872
|
import { useLayoutEffect as useLayoutEffect2, useRef as useRef4 } from "react";
|
|
3382
3873
|
import styles23 from "./Textarea.module.css";
|
|
3383
|
-
import { jsx as
|
|
3874
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
3384
3875
|
function Textarea({ className, rows = 4, autoGrow = false, ...rest }) {
|
|
3385
3876
|
const ref = useRef4(null);
|
|
3386
3877
|
useLayoutEffect2(() => {
|
|
@@ -3390,12 +3881,12 @@ function Textarea({ className, rows = 4, autoGrow = false, ...rest }) {
|
|
|
3390
3881
|
el.style.height = `${el.scrollHeight}px`;
|
|
3391
3882
|
}, [autoGrow, rest.value, rest.defaultValue]);
|
|
3392
3883
|
const classes = [styles23.textarea, autoGrow ? styles23.textareaAutoGrow : "", className].filter(Boolean).join(" ");
|
|
3393
|
-
return /* @__PURE__ */
|
|
3884
|
+
return /* @__PURE__ */ jsx145("textarea", { ref, rows, className: classes, ...rest });
|
|
3394
3885
|
}
|
|
3395
3886
|
|
|
3396
3887
|
// src/components/CodeTextarea/CodeTextarea.tsx
|
|
3397
3888
|
import styles24 from "./CodeTextarea.module.css";
|
|
3398
|
-
import { jsx as
|
|
3889
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
3399
3890
|
function CodeTextarea({
|
|
3400
3891
|
className,
|
|
3401
3892
|
rows = 12,
|
|
@@ -3406,7 +3897,7 @@ function CodeTextarea({
|
|
|
3406
3897
|
...rest
|
|
3407
3898
|
}) {
|
|
3408
3899
|
const classes = [styles24.textarea, invalid ? styles24.invalid : void 0, className].filter(Boolean).join(" ");
|
|
3409
|
-
return /* @__PURE__ */
|
|
3900
|
+
return /* @__PURE__ */ jsx146(
|
|
3410
3901
|
"textarea",
|
|
3411
3902
|
{
|
|
3412
3903
|
rows,
|
|
@@ -3421,7 +3912,7 @@ function CodeTextarea({
|
|
|
3421
3912
|
|
|
3422
3913
|
// src/components/StatusBadge/StatusBadge.tsx
|
|
3423
3914
|
import styles25 from "./StatusBadge.module.css";
|
|
3424
|
-
import { jsx as
|
|
3915
|
+
import { jsx as jsx147, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
3425
3916
|
var STATUS_CLASS = {
|
|
3426
3917
|
unmodified: styles25.neutral,
|
|
3427
3918
|
draft: styles25.info,
|
|
@@ -3449,14 +3940,14 @@ function StatusBadge({
|
|
|
3449
3940
|
"aria-label": ariaLabel
|
|
3450
3941
|
}) {
|
|
3451
3942
|
const label = children ?? STATUS_LABEL[status];
|
|
3452
|
-
return /* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ jsxs121(
|
|
3453
3944
|
"span",
|
|
3454
3945
|
{
|
|
3455
3946
|
className: [styles25.badge, STATUS_CLASS[status], className].filter(Boolean).join(" "),
|
|
3456
3947
|
"aria-label": ariaLabel,
|
|
3457
3948
|
children: [
|
|
3458
|
-
/* @__PURE__ */
|
|
3459
|
-
/* @__PURE__ */
|
|
3949
|
+
/* @__PURE__ */ jsx147("span", { className: styles25.dot, "aria-hidden": "true" }),
|
|
3950
|
+
/* @__PURE__ */ jsx147("span", { className: styles25.label, children: label })
|
|
3460
3951
|
]
|
|
3461
3952
|
}
|
|
3462
3953
|
);
|
|
@@ -3465,7 +3956,7 @@ function StatusBadge({
|
|
|
3465
3956
|
// src/components/SplitPane/SplitPane.tsx
|
|
3466
3957
|
import { useCallback, useEffect as useEffect3, useRef as useRef5, useState as useState3 } from "react";
|
|
3467
3958
|
import styles26 from "./SplitPane.module.css";
|
|
3468
|
-
import { jsx as
|
|
3959
|
+
import { jsx as jsx148, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
3469
3960
|
var clampSize = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
3470
3961
|
function SplitPane({
|
|
3471
3962
|
primary,
|
|
@@ -3551,15 +4042,15 @@ function SplitPane({
|
|
|
3551
4042
|
const style = {
|
|
3552
4043
|
"--split-pane-primary-size": `${primarySize}%`
|
|
3553
4044
|
};
|
|
3554
|
-
return /* @__PURE__ */
|
|
4045
|
+
return /* @__PURE__ */ jsxs122(
|
|
3555
4046
|
"div",
|
|
3556
4047
|
{
|
|
3557
4048
|
ref: containerRef,
|
|
3558
4049
|
className: [styles26.splitPane, className].filter(Boolean).join(" "),
|
|
3559
4050
|
style,
|
|
3560
4051
|
children: [
|
|
3561
|
-
/* @__PURE__ */
|
|
3562
|
-
resizable && /* @__PURE__ */
|
|
4052
|
+
/* @__PURE__ */ jsx148("section", { className: styles26.pane, "aria-label": primaryLabel, children: primary }),
|
|
4053
|
+
resizable && /* @__PURE__ */ jsx148(
|
|
3563
4054
|
"button",
|
|
3564
4055
|
{
|
|
3565
4056
|
type: "button",
|
|
@@ -3569,7 +4060,7 @@ function SplitPane({
|
|
|
3569
4060
|
onKeyDown: resizeWithKeyboard
|
|
3570
4061
|
}
|
|
3571
4062
|
),
|
|
3572
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ jsx148("section", { className: styles26.pane, "aria-label": secondaryLabel, children: secondary })
|
|
3573
4064
|
]
|
|
3574
4065
|
}
|
|
3575
4066
|
);
|
|
@@ -3578,7 +4069,7 @@ function SplitPane({
|
|
|
3578
4069
|
// src/components/TagInput/TagInput.tsx
|
|
3579
4070
|
import { useMemo, useState as useState4 } from "react";
|
|
3580
4071
|
import styles27 from "./TagInput.module.css";
|
|
3581
|
-
import { jsx as
|
|
4072
|
+
import { jsx as jsx149, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
3582
4073
|
var DEFAULT_SEPARATORS = /[\n,]+/;
|
|
3583
4074
|
var splitTags = (value, separators) => value.split(separators).map((tag) => tag.trim()).filter(Boolean);
|
|
3584
4075
|
function TagInput({
|
|
@@ -3652,8 +4143,8 @@ function TagInput({
|
|
|
3652
4143
|
event.preventDefault();
|
|
3653
4144
|
addTags(tags);
|
|
3654
4145
|
};
|
|
3655
|
-
return /* @__PURE__ */
|
|
3656
|
-
/* @__PURE__ */
|
|
4146
|
+
return /* @__PURE__ */ jsxs123("div", { className: [styles27.wrapper, className].filter(Boolean).join(" "), children: [
|
|
4147
|
+
/* @__PURE__ */ jsxs123(
|
|
3657
4148
|
"div",
|
|
3658
4149
|
{
|
|
3659
4150
|
className: [
|
|
@@ -3662,9 +4153,9 @@ function TagInput({
|
|
|
3662
4153
|
error || localError || ariaInvalid ? styles27.invalid : void 0
|
|
3663
4154
|
].filter(Boolean).join(" "),
|
|
3664
4155
|
children: [
|
|
3665
|
-
value.map((tag, index) => /* @__PURE__ */
|
|
3666
|
-
/* @__PURE__ */
|
|
3667
|
-
/* @__PURE__ */
|
|
4156
|
+
value.map((tag, index) => /* @__PURE__ */ jsxs123("span", { className: styles27.tag, children: [
|
|
4157
|
+
/* @__PURE__ */ jsx149("span", { className: styles27.tagLabel, children: tag }),
|
|
4158
|
+
/* @__PURE__ */ jsx149(
|
|
3668
4159
|
"button",
|
|
3669
4160
|
{
|
|
3670
4161
|
type: "button",
|
|
@@ -3676,7 +4167,7 @@ function TagInput({
|
|
|
3676
4167
|
}
|
|
3677
4168
|
)
|
|
3678
4169
|
] }, `${tag}-${index}`)),
|
|
3679
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ jsx149(
|
|
3680
4171
|
"input",
|
|
3681
4172
|
{
|
|
3682
4173
|
id,
|
|
@@ -3698,7 +4189,7 @@ function TagInput({
|
|
|
3698
4189
|
]
|
|
3699
4190
|
}
|
|
3700
4191
|
),
|
|
3701
|
-
message && /* @__PURE__ */
|
|
4192
|
+
message && /* @__PURE__ */ jsx149(
|
|
3702
4193
|
"p",
|
|
3703
4194
|
{
|
|
3704
4195
|
id: messageId,
|
|
@@ -3746,7 +4237,7 @@ function usePrefersReducedMotion() {
|
|
|
3746
4237
|
|
|
3747
4238
|
// src/components/OverlayHeader/OverlayHeader.tsx
|
|
3748
4239
|
import styles28 from "./OverlayHeader.module.css";
|
|
3749
|
-
import { jsx as
|
|
4240
|
+
import { jsx as jsx150, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
3750
4241
|
function OverlayHeader({
|
|
3751
4242
|
title,
|
|
3752
4243
|
onClose,
|
|
@@ -3757,20 +4248,20 @@ function OverlayHeader({
|
|
|
3757
4248
|
rowClassName,
|
|
3758
4249
|
titleClassName
|
|
3759
4250
|
}) {
|
|
3760
|
-
return /* @__PURE__ */
|
|
3761
|
-
/* @__PURE__ */
|
|
3762
|
-
onBack && /* @__PURE__ */
|
|
3763
|
-
/* @__PURE__ */
|
|
3764
|
-
action && /* @__PURE__ */
|
|
3765
|
-
/* @__PURE__ */
|
|
4251
|
+
return /* @__PURE__ */ jsxs124("div", { className: [styles28.header, className].filter(Boolean).join(" "), children: [
|
|
4252
|
+
/* @__PURE__ */ jsxs124("div", { className: [styles28.row, rowClassName].filter(Boolean).join(" "), children: [
|
|
4253
|
+
onBack && /* @__PURE__ */ jsx150("button", { type: "button", className: styles28.backButton, "aria-label": "Back", onClick: onBack, children: /* @__PURE__ */ jsx150(Icon, { name: "chevron-left", size: "md", "aria-hidden": true }) }),
|
|
4254
|
+
/* @__PURE__ */ jsx150("span", { className: [styles28.title, titleClassName].filter(Boolean).join(" "), children: title }),
|
|
4255
|
+
action && /* @__PURE__ */ jsx150("div", { className: styles28.action, children: action }),
|
|
4256
|
+
/* @__PURE__ */ jsx150("button", { type: "button", className: styles28.closeButton, "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx150(Icon, { name: "x", size: "sm", "aria-hidden": true }) })
|
|
3766
4257
|
] }),
|
|
3767
|
-
secondRow && /* @__PURE__ */
|
|
4258
|
+
secondRow && /* @__PURE__ */ jsx150("div", { className: styles28.secondRow, children: secondRow })
|
|
3768
4259
|
] });
|
|
3769
4260
|
}
|
|
3770
4261
|
|
|
3771
4262
|
// src/components/Dialog/Dialog.tsx
|
|
3772
4263
|
import styles29 from "./Dialog.module.css";
|
|
3773
|
-
import { Fragment as Fragment2, jsx as
|
|
4264
|
+
import { Fragment as Fragment2, jsx as jsx151, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
3774
4265
|
var OverlaySecondRowContext = createContext(
|
|
3775
4266
|
void 0
|
|
3776
4267
|
);
|
|
@@ -3816,7 +4307,7 @@ function Dialog({
|
|
|
3816
4307
|
// per keypress (the keydown bubbles through this element on its way to
|
|
3817
4308
|
// document), which is exactly the kind of bug that turns a single Escape
|
|
3818
4309
|
// press into two router.back() calls for @modal-driven consumers.
|
|
3819
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ jsx151(
|
|
3820
4311
|
"div",
|
|
3821
4312
|
{
|
|
3822
4313
|
className: [styles29.scrim, isOpenPhase ? styles29.scrimOpen : ""].filter(Boolean).join(" "),
|
|
@@ -3824,7 +4315,7 @@ function Dialog({
|
|
|
3824
4315
|
onClick: (e) => {
|
|
3825
4316
|
if (e.target === e.currentTarget) onClose();
|
|
3826
4317
|
},
|
|
3827
|
-
children: /* @__PURE__ */
|
|
4318
|
+
children: /* @__PURE__ */ jsxs125(
|
|
3828
4319
|
"div",
|
|
3829
4320
|
{
|
|
3830
4321
|
ref: panelRef,
|
|
@@ -3842,7 +4333,7 @@ function Dialog({
|
|
|
3842
4333
|
mobile. It carries its own close button, so the separate
|
|
3843
4334
|
desktop-only .close button below is skipped entirely in this
|
|
3844
4335
|
branch — never render both at once. */
|
|
3845
|
-
/* @__PURE__ */
|
|
4336
|
+
/* @__PURE__ */ jsx151(
|
|
3846
4337
|
OverlayHeader,
|
|
3847
4338
|
{
|
|
3848
4339
|
title: header,
|
|
@@ -3852,8 +4343,8 @@ function Dialog({
|
|
|
3852
4343
|
titleClassName
|
|
3853
4344
|
}
|
|
3854
4345
|
)
|
|
3855
|
-
) : /* @__PURE__ */
|
|
3856
|
-
/* @__PURE__ */
|
|
4346
|
+
) : /* @__PURE__ */ jsxs125(Fragment2, { children: [
|
|
4347
|
+
/* @__PURE__ */ jsx151(
|
|
3857
4348
|
OverlayHeader,
|
|
3858
4349
|
{
|
|
3859
4350
|
title,
|
|
@@ -3864,10 +4355,10 @@ function Dialog({
|
|
|
3864
4355
|
titleClassName
|
|
3865
4356
|
}
|
|
3866
4357
|
),
|
|
3867
|
-
/* @__PURE__ */
|
|
4358
|
+
/* @__PURE__ */ jsx151("button", { type: "button", className: styles29.close, "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx151(Icon, { name: "x", size: "md", "aria-hidden": true }) })
|
|
3868
4359
|
] }),
|
|
3869
|
-
/* @__PURE__ */
|
|
3870
|
-
footer && /* @__PURE__ */
|
|
4360
|
+
/* @__PURE__ */ jsx151("div", { className: styles29.content, children: /* @__PURE__ */ jsx151(OverlaySecondRowContext.Provider, { value: setSecondRow, children }) }),
|
|
4361
|
+
footer && /* @__PURE__ */ jsx151("div", { className: styles29.footer, children: footer })
|
|
3871
4362
|
]
|
|
3872
4363
|
}
|
|
3873
4364
|
)
|
|
@@ -3881,7 +4372,7 @@ function Dialog({
|
|
|
3881
4372
|
import { useRef as useRef7 } from "react";
|
|
3882
4373
|
import { createPortal as createPortal2 } from "react-dom";
|
|
3883
4374
|
import styles30 from "./Drawer.module.css";
|
|
3884
|
-
import { jsx as
|
|
4375
|
+
import { jsx as jsx152, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
3885
4376
|
var SWIPE_DISMISS_THRESHOLD_PX = 100;
|
|
3886
4377
|
function Drawer({
|
|
3887
4378
|
open,
|
|
@@ -3935,7 +4426,7 @@ function Drawer({
|
|
|
3935
4426
|
// No onKeyDown here — useOverlayKeyboardTrap above already owns Escape via a
|
|
3936
4427
|
// document-level listener; a second handler here used to double-fire onClose
|
|
3937
4428
|
// per keypress (see Dialog.tsx's identical fix for the full explanation).
|
|
3938
|
-
/* @__PURE__ */
|
|
4429
|
+
/* @__PURE__ */ jsx152(
|
|
3939
4430
|
"div",
|
|
3940
4431
|
{
|
|
3941
4432
|
className: [styles30.scrim, isOpenPhase ? styles30.scrimOpen : ""].filter(Boolean).join(" "),
|
|
@@ -3943,7 +4434,7 @@ function Drawer({
|
|
|
3943
4434
|
onClick: (e) => {
|
|
3944
4435
|
if (e.target === e.currentTarget) onClose();
|
|
3945
4436
|
},
|
|
3946
|
-
children: /* @__PURE__ */
|
|
4437
|
+
children: /* @__PURE__ */ jsxs126(
|
|
3947
4438
|
"div",
|
|
3948
4439
|
{
|
|
3949
4440
|
ref: panelRef,
|
|
@@ -3957,7 +4448,7 @@ function Drawer({
|
|
|
3957
4448
|
isOpenPhase ? styles30.panelOpen : ""
|
|
3958
4449
|
].filter(Boolean).join(" "),
|
|
3959
4450
|
children: [
|
|
3960
|
-
/* @__PURE__ */
|
|
4451
|
+
/* @__PURE__ */ jsx152(
|
|
3961
4452
|
"div",
|
|
3962
4453
|
{
|
|
3963
4454
|
className: styles30.handle,
|
|
@@ -3968,8 +4459,8 @@ function Drawer({
|
|
|
3968
4459
|
onPointerCancel: (e) => releaseDrag(e, false)
|
|
3969
4460
|
}
|
|
3970
4461
|
),
|
|
3971
|
-
title && /* @__PURE__ */
|
|
3972
|
-
/* @__PURE__ */
|
|
4462
|
+
title && /* @__PURE__ */ jsx152(OverlayHeader, { title, onClose }),
|
|
4463
|
+
/* @__PURE__ */ jsx152("div", { className: styles30.body, children })
|
|
3973
4464
|
]
|
|
3974
4465
|
}
|
|
3975
4466
|
)
|
|
@@ -3983,7 +4474,7 @@ function Drawer({
|
|
|
3983
4474
|
import { useRef as useRef8 } from "react";
|
|
3984
4475
|
import { createPortal as createPortal3 } from "react-dom";
|
|
3985
4476
|
import styles31 from "./Sheet.module.css";
|
|
3986
|
-
import { jsx as
|
|
4477
|
+
import { jsx as jsx153, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
3987
4478
|
function Sheet({
|
|
3988
4479
|
open,
|
|
3989
4480
|
onClose,
|
|
@@ -4006,7 +4497,7 @@ function Sheet({
|
|
|
4006
4497
|
useOverlayKeyboardTrap(panelRef, open, onClose);
|
|
4007
4498
|
if (!mounted || !portalTarget) return null;
|
|
4008
4499
|
return createPortal3(
|
|
4009
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ jsxs127(
|
|
4010
4501
|
"div",
|
|
4011
4502
|
{
|
|
4012
4503
|
ref: panelRef,
|
|
@@ -4020,8 +4511,8 @@ function Sheet({
|
|
|
4020
4511
|
phase === "open" ? styles31.panelOpen : ""
|
|
4021
4512
|
].filter(Boolean).join(" "),
|
|
4022
4513
|
children: [
|
|
4023
|
-
title && /* @__PURE__ */
|
|
4024
|
-
/* @__PURE__ */
|
|
4514
|
+
title && /* @__PURE__ */ jsx153(OverlayHeader, { title, onClose, onBack, action: headerAction }),
|
|
4515
|
+
/* @__PURE__ */ jsx153("div", { className: styles31.content, children })
|
|
4025
4516
|
]
|
|
4026
4517
|
}
|
|
4027
4518
|
),
|
|
@@ -4032,7 +4523,7 @@ function Sheet({
|
|
|
4032
4523
|
// src/components/ConfirmDialog/ConfirmDialog.tsx
|
|
4033
4524
|
import { useEffect as useEffect6, useRef as useRef9 } from "react";
|
|
4034
4525
|
import styles32 from "./ConfirmDialog.module.css";
|
|
4035
|
-
import { jsx as
|
|
4526
|
+
import { jsx as jsx154, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
4036
4527
|
function ConfirmDialog({
|
|
4037
4528
|
open,
|
|
4038
4529
|
onClose,
|
|
@@ -4066,7 +4557,7 @@ function ConfirmDialog({
|
|
|
4066
4557
|
}, [onClose]);
|
|
4067
4558
|
return (
|
|
4068
4559
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
4069
|
-
/* @__PURE__ */
|
|
4560
|
+
/* @__PURE__ */ jsx154(
|
|
4070
4561
|
"dialog",
|
|
4071
4562
|
{
|
|
4072
4563
|
ref: dialogRef,
|
|
@@ -4075,12 +4566,12 @@ function ConfirmDialog({
|
|
|
4075
4566
|
onClick: (e) => {
|
|
4076
4567
|
if (e.target === e.currentTarget) dialogRef.current?.close();
|
|
4077
4568
|
},
|
|
4078
|
-
children: /* @__PURE__ */
|
|
4079
|
-
/* @__PURE__ */
|
|
4080
|
-
/* @__PURE__ */
|
|
4081
|
-
error && /* @__PURE__ */
|
|
4082
|
-
/* @__PURE__ */
|
|
4083
|
-
/* @__PURE__ */
|
|
4569
|
+
children: /* @__PURE__ */ jsxs128("div", { className: styles32.body, children: [
|
|
4570
|
+
/* @__PURE__ */ jsx154("h2", { className: styles32.title, children: title }),
|
|
4571
|
+
/* @__PURE__ */ jsx154("div", { className: styles32.message, children: message }),
|
|
4572
|
+
error && /* @__PURE__ */ jsx154("p", { className: styles32.error, children: error }),
|
|
4573
|
+
/* @__PURE__ */ jsxs128("div", { className: styles32.actions, children: [
|
|
4574
|
+
/* @__PURE__ */ jsx154(
|
|
4084
4575
|
Button,
|
|
4085
4576
|
{
|
|
4086
4577
|
type: "button",
|
|
@@ -4098,7 +4589,7 @@ function ConfirmDialog({
|
|
|
4098
4589
|
// -text-on-error tokens the codebase already introduced for this
|
|
4099
4590
|
// exact "reads as a filled action button, not a tinted status
|
|
4100
4591
|
// surface" case (see semantic.css).
|
|
4101
|
-
/* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ jsx154(
|
|
4102
4593
|
"button",
|
|
4103
4594
|
{
|
|
4104
4595
|
type: "button",
|
|
@@ -4108,7 +4599,7 @@ function ConfirmDialog({
|
|
|
4108
4599
|
children: confirmLabel
|
|
4109
4600
|
}
|
|
4110
4601
|
)
|
|
4111
|
-
) : /* @__PURE__ */
|
|
4602
|
+
) : /* @__PURE__ */ jsx154(Button, { type: "button", variant: "primary", onClick: onConfirm, disabled: pending, children: confirmLabel })
|
|
4112
4603
|
] })
|
|
4113
4604
|
] })
|
|
4114
4605
|
}
|
|
@@ -4695,26 +5186,26 @@ function useSwipeStack({
|
|
|
4695
5186
|
|
|
4696
5187
|
// src/components/Menu/Menu.tsx
|
|
4697
5188
|
import styles33 from "./Menu.module.css";
|
|
4698
|
-
import { Fragment as Fragment3, jsx as
|
|
5189
|
+
import { Fragment as Fragment3, jsx as jsx155, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
4699
5190
|
function MenuEntries({
|
|
4700
5191
|
items,
|
|
4701
5192
|
onSelect
|
|
4702
5193
|
}) {
|
|
4703
|
-
return /* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ jsx155("ul", { className: styles33.list, role: "menu", children: items.map((entry, index) => {
|
|
4704
5195
|
if (entry.type === "separator") {
|
|
4705
|
-
return /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsx155("li", { role: "separator", className: styles33.separator }, index);
|
|
4706
5197
|
}
|
|
4707
5198
|
if (entry.type === "label") {
|
|
4708
|
-
return /* @__PURE__ */
|
|
5199
|
+
return /* @__PURE__ */ jsx155("li", { role: "presentation", className: styles33.label, children: entry.label }, index);
|
|
4709
5200
|
}
|
|
4710
5201
|
const isCheckable = entry.checked !== void 0;
|
|
4711
5202
|
const className = [styles33.item, entry.destructive ? styles33.itemDestructive : ""].filter(Boolean).join(" ");
|
|
4712
|
-
const content = /* @__PURE__ */
|
|
4713
|
-
isCheckable && /* @__PURE__ */
|
|
4714
|
-
entry.icon && /* @__PURE__ */
|
|
5203
|
+
const content = /* @__PURE__ */ jsxs129(Fragment3, { children: [
|
|
5204
|
+
isCheckable && /* @__PURE__ */ jsx155("span", { className: styles33.check, "aria-hidden": true, children: entry.checked && /* @__PURE__ */ jsx155(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
|
|
5205
|
+
entry.icon && /* @__PURE__ */ jsx155(Icon, { name: entry.icon, size: "sm", "aria-hidden": true }),
|
|
4715
5206
|
entry.label
|
|
4716
5207
|
] });
|
|
4717
|
-
return /* @__PURE__ */
|
|
5208
|
+
return /* @__PURE__ */ jsx155("li", { role: "none", children: entry.href ? /* @__PURE__ */ jsx155(
|
|
4718
5209
|
"a",
|
|
4719
5210
|
{
|
|
4720
5211
|
role: "menuitem",
|
|
@@ -4723,7 +5214,7 @@ function MenuEntries({
|
|
|
4723
5214
|
onClick: () => onSelect(entry),
|
|
4724
5215
|
children: content
|
|
4725
5216
|
}
|
|
4726
|
-
) : /* @__PURE__ */
|
|
5217
|
+
) : /* @__PURE__ */ jsx155(
|
|
4727
5218
|
"button",
|
|
4728
5219
|
{
|
|
4729
5220
|
role: isCheckable ? "menuitemradio" : "menuitem",
|
|
@@ -4747,7 +5238,7 @@ function Menu({
|
|
|
4747
5238
|
width
|
|
4748
5239
|
}) {
|
|
4749
5240
|
const isMobile = useIsMobile();
|
|
4750
|
-
const list = /* @__PURE__ */
|
|
5241
|
+
const list = /* @__PURE__ */ jsx155(
|
|
4751
5242
|
MenuEntries,
|
|
4752
5243
|
{
|
|
4753
5244
|
items,
|
|
@@ -4758,12 +5249,12 @@ function Menu({
|
|
|
4758
5249
|
}
|
|
4759
5250
|
);
|
|
4760
5251
|
if (isMobile) {
|
|
4761
|
-
return /* @__PURE__ */
|
|
5252
|
+
return /* @__PURE__ */ jsxs129(Fragment3, { children: [
|
|
4762
5253
|
trigger,
|
|
4763
|
-
/* @__PURE__ */
|
|
5254
|
+
/* @__PURE__ */ jsx155(Drawer, { open, onClose, "aria-label": ariaLabel, children: list })
|
|
4764
5255
|
] });
|
|
4765
5256
|
}
|
|
4766
|
-
return /* @__PURE__ */
|
|
5257
|
+
return /* @__PURE__ */ jsx155(
|
|
4767
5258
|
Popover,
|
|
4768
5259
|
{
|
|
4769
5260
|
trigger,
|
|
@@ -4780,7 +5271,7 @@ function Menu({
|
|
|
4780
5271
|
// src/components/UserMenu/UserMenu.tsx
|
|
4781
5272
|
import { useState as useState12 } from "react";
|
|
4782
5273
|
import styles34 from "./UserMenu.module.css";
|
|
4783
|
-
import { jsx as
|
|
5274
|
+
import { jsx as jsx156, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
4784
5275
|
function initials(value) {
|
|
4785
5276
|
const trimmed = value.trim();
|
|
4786
5277
|
if (!trimmed) return "?";
|
|
@@ -4798,7 +5289,7 @@ function UserMenu({
|
|
|
4798
5289
|
}) {
|
|
4799
5290
|
const [open, setOpen] = useState12(false);
|
|
4800
5291
|
const displayName = name || email || "";
|
|
4801
|
-
return /* @__PURE__ */
|
|
5292
|
+
return /* @__PURE__ */ jsxs130(
|
|
4802
5293
|
Popover,
|
|
4803
5294
|
{
|
|
4804
5295
|
align,
|
|
@@ -4806,7 +5297,7 @@ function UserMenu({
|
|
|
4806
5297
|
"aria-label": ariaLabel,
|
|
4807
5298
|
open,
|
|
4808
5299
|
onClose: () => setOpen(false),
|
|
4809
|
-
trigger: /* @__PURE__ */
|
|
5300
|
+
trigger: /* @__PURE__ */ jsx156(
|
|
4810
5301
|
"button",
|
|
4811
5302
|
{
|
|
4812
5303
|
type: "button",
|
|
@@ -4815,21 +5306,21 @@ function UserMenu({
|
|
|
4815
5306
|
"aria-expanded": open,
|
|
4816
5307
|
onClick: () => setOpen((v) => !v),
|
|
4817
5308
|
className: [styles34.trigger, size === "sm" ? styles34.triggerSm : ""].filter(Boolean).join(" "),
|
|
4818
|
-
children: avatarUrl ? /* @__PURE__ */
|
|
5309
|
+
children: avatarUrl ? /* @__PURE__ */ jsx156("img", { src: avatarUrl, alt: "", className: styles34.triggerImg }) : initials(displayName)
|
|
4819
5310
|
}
|
|
4820
5311
|
),
|
|
4821
5312
|
children: [
|
|
4822
|
-
displayName && /* @__PURE__ */
|
|
4823
|
-
/* @__PURE__ */
|
|
4824
|
-
/* @__PURE__ */
|
|
4825
|
-
/* @__PURE__ */
|
|
4826
|
-
name && /* @__PURE__ */
|
|
4827
|
-
email && /* @__PURE__ */
|
|
5313
|
+
displayName && /* @__PURE__ */ jsxs130("div", { className: styles34.panelHeader, children: [
|
|
5314
|
+
/* @__PURE__ */ jsxs130("div", { className: styles34.userHeader, children: [
|
|
5315
|
+
/* @__PURE__ */ jsx156("span", { className: styles34.menuAvatar, "aria-hidden": "true", children: avatarUrl ? /* @__PURE__ */ jsx156("img", { src: avatarUrl, alt: "", className: styles34.menuAvatarImg }) : initials(displayName) }),
|
|
5316
|
+
/* @__PURE__ */ jsxs130("span", { className: styles34.userInfo, children: [
|
|
5317
|
+
name && /* @__PURE__ */ jsx156("span", { className: styles34.userName, children: name }),
|
|
5318
|
+
email && /* @__PURE__ */ jsx156("span", { className: styles34.userEmail, children: email })
|
|
4828
5319
|
] })
|
|
4829
5320
|
] }),
|
|
4830
|
-
/* @__PURE__ */
|
|
5321
|
+
/* @__PURE__ */ jsx156("hr", { className: styles34.divider })
|
|
4831
5322
|
] }),
|
|
4832
|
-
/* @__PURE__ */
|
|
5323
|
+
/* @__PURE__ */ jsx156(
|
|
4833
5324
|
MenuEntries,
|
|
4834
5325
|
{
|
|
4835
5326
|
items,
|
|
@@ -4849,14 +5340,14 @@ import { useState as useState13 } from "react";
|
|
|
4849
5340
|
|
|
4850
5341
|
// src/components/Spinner/Spinner.tsx
|
|
4851
5342
|
import styles35 from "./Spinner.module.css";
|
|
4852
|
-
import { jsx as
|
|
5343
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
4853
5344
|
var sizeClass = {
|
|
4854
5345
|
sm: styles35.sm,
|
|
4855
5346
|
md: styles35.md,
|
|
4856
5347
|
lg: styles35.lg
|
|
4857
5348
|
};
|
|
4858
5349
|
function Spinner({ size = "md", label = "Loading\u2026", className }) {
|
|
4859
|
-
return /* @__PURE__ */
|
|
5350
|
+
return /* @__PURE__ */ jsx157(
|
|
4860
5351
|
"span",
|
|
4861
5352
|
{
|
|
4862
5353
|
role: "status",
|
|
@@ -4868,16 +5359,16 @@ function Spinner({ size = "md", label = "Loading\u2026", className }) {
|
|
|
4868
5359
|
|
|
4869
5360
|
// src/components/AppsLauncher/AppsLauncher.tsx
|
|
4870
5361
|
import styles36 from "./AppsLauncher.module.css";
|
|
4871
|
-
import { Fragment as Fragment4, jsx as
|
|
5362
|
+
import { Fragment as Fragment4, jsx as jsx158, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
4872
5363
|
function AppsLauncherTile({ icon, label, href, onClick }) {
|
|
4873
|
-
const content = /* @__PURE__ */
|
|
4874
|
-
/* @__PURE__ */
|
|
4875
|
-
/* @__PURE__ */
|
|
5364
|
+
const content = /* @__PURE__ */ jsxs131(Fragment4, { children: [
|
|
5365
|
+
/* @__PURE__ */ jsx158("span", { className: styles36.tileIcon, "aria-hidden": "true", children: icon }),
|
|
5366
|
+
/* @__PURE__ */ jsx158("span", { className: styles36.tileName, children: label })
|
|
4876
5367
|
] });
|
|
4877
5368
|
if (href) {
|
|
4878
|
-
return /* @__PURE__ */
|
|
5369
|
+
return /* @__PURE__ */ jsx158("a", { href, className: styles36.tile, onClick, children: content });
|
|
4879
5370
|
}
|
|
4880
|
-
return /* @__PURE__ */
|
|
5371
|
+
return /* @__PURE__ */ jsx158("button", { type: "button", className: styles36.tile, onClick, children: content });
|
|
4881
5372
|
}
|
|
4882
5373
|
function AppsLauncher({
|
|
4883
5374
|
items,
|
|
@@ -4889,7 +5380,7 @@ function AppsLauncher({
|
|
|
4889
5380
|
align = "right"
|
|
4890
5381
|
}) {
|
|
4891
5382
|
const [open, setOpen] = useState13(false);
|
|
4892
|
-
return /* @__PURE__ */
|
|
5383
|
+
return /* @__PURE__ */ jsxs131(
|
|
4893
5384
|
Popover,
|
|
4894
5385
|
{
|
|
4895
5386
|
align,
|
|
@@ -4897,7 +5388,7 @@ function AppsLauncher({
|
|
|
4897
5388
|
"aria-label": ariaLabel,
|
|
4898
5389
|
open,
|
|
4899
5390
|
onClose: () => setOpen(false),
|
|
4900
|
-
trigger: /* @__PURE__ */
|
|
5391
|
+
trigger: /* @__PURE__ */ jsx158(
|
|
4901
5392
|
"button",
|
|
4902
5393
|
{
|
|
4903
5394
|
type: "button",
|
|
@@ -4906,12 +5397,12 @@ function AppsLauncher({
|
|
|
4906
5397
|
"aria-expanded": open,
|
|
4907
5398
|
onClick: () => setOpen((v) => !v),
|
|
4908
5399
|
className: styles36.trigger,
|
|
4909
|
-
children: triggerIcon ?? /* @__PURE__ */
|
|
5400
|
+
children: triggerIcon ?? /* @__PURE__ */ jsx158(Icon, { name: "layout-grid", size: "md", "aria-hidden": true })
|
|
4910
5401
|
}
|
|
4911
5402
|
),
|
|
4912
5403
|
children: [
|
|
4913
|
-
/* @__PURE__ */
|
|
4914
|
-
loading ? /* @__PURE__ */
|
|
5404
|
+
/* @__PURE__ */ jsx158("div", { className: styles36.header, children: ariaLabel }),
|
|
5405
|
+
loading ? /* @__PURE__ */ jsx158("div", { className: styles36.loading, children: /* @__PURE__ */ jsx158(Spinner, { size: "md", label: "Loading apps\u2026" }) }) : error ? /* @__PURE__ */ jsx158("p", { className: styles36.error, children: errorMessage }) : /* @__PURE__ */ jsx158("div", { className: styles36.grid, children: items.map(({ key, ...item }) => /* @__PURE__ */ jsx158(AppsLauncherTile, { ...item }, key)) })
|
|
4915
5406
|
]
|
|
4916
5407
|
}
|
|
4917
5408
|
);
|
|
@@ -4920,9 +5411,9 @@ function AppsLauncher({
|
|
|
4920
5411
|
// src/components/NotificationsPanel/NotificationsPanel.tsx
|
|
4921
5412
|
import { useState as useState14 } from "react";
|
|
4922
5413
|
import styles37 from "./NotificationsPanel.module.css";
|
|
4923
|
-
import { Fragment as Fragment5, jsx as
|
|
5414
|
+
import { Fragment as Fragment5, jsx as jsx159, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
4924
5415
|
function NotificationRow({ item }) {
|
|
4925
|
-
const titleContent = item.href ? /* @__PURE__ */
|
|
5416
|
+
const titleContent = item.href ? /* @__PURE__ */ jsx159("a", { href: item.href, className: styles37.itemTitle, onClick: item.onOpen, children: item.title }) : !item.read ? /* @__PURE__ */ jsx159(
|
|
4926
5417
|
"button",
|
|
4927
5418
|
{
|
|
4928
5419
|
type: "button",
|
|
@@ -4931,23 +5422,23 @@ function NotificationRow({ item }) {
|
|
|
4931
5422
|
onClick: item.onOpen,
|
|
4932
5423
|
children: item.title
|
|
4933
5424
|
}
|
|
4934
|
-
) : /* @__PURE__ */
|
|
4935
|
-
return /* @__PURE__ */
|
|
4936
|
-
/* @__PURE__ */
|
|
4937
|
-
/* @__PURE__ */
|
|
5425
|
+
) : /* @__PURE__ */ jsx159("span", { className: styles37.itemTitle, children: item.title });
|
|
5426
|
+
return /* @__PURE__ */ jsxs132("li", { className: [styles37.item, item.read ? styles37.itemRead : ""].filter(Boolean).join(" "), children: [
|
|
5427
|
+
/* @__PURE__ */ jsx159("div", { className: styles37.categoryIcon, children: item.icon }),
|
|
5428
|
+
/* @__PURE__ */ jsxs132("div", { className: styles37.itemBody, children: [
|
|
4938
5429
|
titleContent,
|
|
4939
|
-
/* @__PURE__ */
|
|
5430
|
+
/* @__PURE__ */ jsx159("span", { className: styles37.itemTime, children: item.timeLabel })
|
|
4940
5431
|
] }),
|
|
4941
|
-
/* @__PURE__ */
|
|
4942
|
-
!item.read && /* @__PURE__ */
|
|
4943
|
-
/* @__PURE__ */
|
|
5432
|
+
/* @__PURE__ */ jsxs132("div", { className: styles37.itemEnd, children: [
|
|
5433
|
+
!item.read && /* @__PURE__ */ jsx159("span", { className: styles37.unreadDot, "aria-label": "Unread" }),
|
|
5434
|
+
/* @__PURE__ */ jsx159(
|
|
4944
5435
|
"button",
|
|
4945
5436
|
{
|
|
4946
5437
|
type: "button",
|
|
4947
5438
|
className: styles37.dismissBtn,
|
|
4948
5439
|
"aria-label": `Dismiss: ${item.title}`,
|
|
4949
5440
|
onClick: item.onDismiss,
|
|
4950
|
-
children: /* @__PURE__ */
|
|
5441
|
+
children: /* @__PURE__ */ jsx159(Icon, { name: "x", size: "sm", "aria-hidden": true })
|
|
4951
5442
|
}
|
|
4952
5443
|
)
|
|
4953
5444
|
] })
|
|
@@ -4964,7 +5455,7 @@ function NotificationsPanel({
|
|
|
4964
5455
|
viewAllHref
|
|
4965
5456
|
}) {
|
|
4966
5457
|
const [open, setOpen] = useState14(false);
|
|
4967
|
-
return /* @__PURE__ */
|
|
5458
|
+
return /* @__PURE__ */ jsxs132(
|
|
4968
5459
|
Popover,
|
|
4969
5460
|
{
|
|
4970
5461
|
align,
|
|
@@ -4972,7 +5463,7 @@ function NotificationsPanel({
|
|
|
4972
5463
|
"aria-label": ariaLabel,
|
|
4973
5464
|
open,
|
|
4974
5465
|
onClose: () => setOpen(false),
|
|
4975
|
-
trigger: /* @__PURE__ */
|
|
5466
|
+
trigger: /* @__PURE__ */ jsxs132(
|
|
4976
5467
|
"button",
|
|
4977
5468
|
{
|
|
4978
5469
|
type: "button",
|
|
@@ -4982,36 +5473,36 @@ function NotificationsPanel({
|
|
|
4982
5473
|
onClick: () => setOpen((v) => !v),
|
|
4983
5474
|
className: styles37.trigger,
|
|
4984
5475
|
children: [
|
|
4985
|
-
/* @__PURE__ */
|
|
4986
|
-
unreadCount > 0 && /* @__PURE__ */
|
|
5476
|
+
/* @__PURE__ */ jsx159(Icon, { name: "bell", size: "lg", "aria-hidden": true }),
|
|
5477
|
+
unreadCount > 0 && /* @__PURE__ */ jsx159("span", { className: styles37.badge, "aria-hidden": "true", children: unreadCount > 99 ? "99+" : unreadCount })
|
|
4987
5478
|
]
|
|
4988
5479
|
}
|
|
4989
5480
|
),
|
|
4990
5481
|
children: [
|
|
4991
|
-
/* @__PURE__ */
|
|
4992
|
-
/* @__PURE__ */
|
|
4993
|
-
/* @__PURE__ */
|
|
4994
|
-
items.length > 0 && /* @__PURE__ */
|
|
4995
|
-
unreadCount > 0 && onMarkAllRead && /* @__PURE__ */
|
|
4996
|
-
onClearAll && /* @__PURE__ */
|
|
5482
|
+
/* @__PURE__ */ jsxs132("div", { className: styles37.header, children: [
|
|
5483
|
+
/* @__PURE__ */ jsx159("span", { className: styles37.headerTitle, children: ariaLabel }),
|
|
5484
|
+
/* @__PURE__ */ jsxs132("div", { className: styles37.headerActions, children: [
|
|
5485
|
+
items.length > 0 && /* @__PURE__ */ jsxs132(Fragment5, { children: [
|
|
5486
|
+
unreadCount > 0 && onMarkAllRead && /* @__PURE__ */ jsx159("button", { type: "button", className: styles37.actionBtn, onClick: onMarkAllRead, children: "Mark all read" }),
|
|
5487
|
+
onClearAll && /* @__PURE__ */ jsx159("button", { type: "button", className: styles37.actionBtn, onClick: onClearAll, children: "Clear all" })
|
|
4997
5488
|
] }),
|
|
4998
|
-
/* @__PURE__ */
|
|
5489
|
+
/* @__PURE__ */ jsx159(
|
|
4999
5490
|
"button",
|
|
5000
5491
|
{
|
|
5001
5492
|
type: "button",
|
|
5002
5493
|
className: styles37.closeBtn,
|
|
5003
5494
|
"aria-label": `Close ${ariaLabel.toLowerCase()}`,
|
|
5004
5495
|
onClick: () => setOpen(false),
|
|
5005
|
-
children: /* @__PURE__ */
|
|
5496
|
+
children: /* @__PURE__ */ jsx159(Icon, { name: "x", size: "sm", "aria-hidden": true })
|
|
5006
5497
|
}
|
|
5007
5498
|
)
|
|
5008
5499
|
] })
|
|
5009
5500
|
] }),
|
|
5010
|
-
/* @__PURE__ */
|
|
5011
|
-
/* @__PURE__ */
|
|
5012
|
-
/* @__PURE__ */
|
|
5013
|
-
] }) : items.map((item) => /* @__PURE__ */
|
|
5014
|
-
viewAllHref && /* @__PURE__ */
|
|
5501
|
+
/* @__PURE__ */ jsx159("ul", { className: styles37.list, "aria-label": `${ariaLabel} list`, children: items.length === 0 ? /* @__PURE__ */ jsxs132("li", { className: styles37.empty, children: [
|
|
5502
|
+
/* @__PURE__ */ jsx159("span", { className: styles37.emptyIcon, "aria-hidden": "true", children: /* @__PURE__ */ jsx159(Icon, { name: "bell", size: "lg", "aria-hidden": true }) }),
|
|
5503
|
+
/* @__PURE__ */ jsx159("span", { className: styles37.emptyText, children: emptyMessage })
|
|
5504
|
+
] }) : items.map((item) => /* @__PURE__ */ jsx159(NotificationRow, { item }, item.id)) }),
|
|
5505
|
+
viewAllHref && /* @__PURE__ */ jsx159("a", { href: viewAllHref, className: styles37.viewAll, onClick: () => setOpen(false), children: "View all" })
|
|
5015
5506
|
]
|
|
5016
5507
|
}
|
|
5017
5508
|
);
|
|
@@ -5029,7 +5520,7 @@ import {
|
|
|
5029
5520
|
useState as useState15
|
|
5030
5521
|
} from "react";
|
|
5031
5522
|
import styles38 from "./Toast.module.css";
|
|
5032
|
-
import { jsx as
|
|
5523
|
+
import { jsx as jsx160, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
5033
5524
|
var ToastContext = createContext2(null);
|
|
5034
5525
|
function useToast() {
|
|
5035
5526
|
const ctx = useContext2(ToastContext);
|
|
@@ -5067,16 +5558,16 @@ function ToastProvider({ children }) {
|
|
|
5067
5558
|
};
|
|
5068
5559
|
}, []);
|
|
5069
5560
|
const value = useMemo2(() => ({ show, dismiss }), [show, dismiss]);
|
|
5070
|
-
return /* @__PURE__ */
|
|
5561
|
+
return /* @__PURE__ */ jsxs133(ToastContext.Provider, { value, children: [
|
|
5071
5562
|
children,
|
|
5072
|
-
/* @__PURE__ */
|
|
5563
|
+
/* @__PURE__ */ jsx160(
|
|
5073
5564
|
"ol",
|
|
5074
5565
|
{
|
|
5075
5566
|
className: styles38.region,
|
|
5076
5567
|
"aria-label": "Notifications",
|
|
5077
5568
|
"aria-live": "polite",
|
|
5078
5569
|
"aria-atomic": "false",
|
|
5079
|
-
children: toasts.map((toast) => /* @__PURE__ */
|
|
5570
|
+
children: toasts.map((toast) => /* @__PURE__ */ jsx160(Toast, { ...toast, onDismiss: dismiss }, toast.id))
|
|
5080
5571
|
}
|
|
5081
5572
|
)
|
|
5082
5573
|
] });
|
|
@@ -5099,18 +5590,18 @@ function Toast({
|
|
|
5099
5590
|
}) {
|
|
5100
5591
|
const categoryClass = styles38[category] ?? styles38.info;
|
|
5101
5592
|
const iconName = CATEGORY_ICON[category] ?? "info";
|
|
5102
|
-
return /* @__PURE__ */
|
|
5593
|
+
return /* @__PURE__ */ jsxs133(
|
|
5103
5594
|
"li",
|
|
5104
5595
|
{
|
|
5105
5596
|
role: "status",
|
|
5106
5597
|
className: `${styles38.toast} ${String(categoryClass)} ${exiting ? styles38.exiting : ""}`,
|
|
5107
5598
|
children: [
|
|
5108
|
-
/* @__PURE__ */
|
|
5109
|
-
/* @__PURE__ */
|
|
5110
|
-
/* @__PURE__ */
|
|
5111
|
-
message && /* @__PURE__ */
|
|
5599
|
+
/* @__PURE__ */ jsx160("span", { className: styles38.icon, "aria-hidden": "true", children: /* @__PURE__ */ jsx160(Icon, { name: iconName, size: "sm", "aria-hidden": true }) }),
|
|
5600
|
+
/* @__PURE__ */ jsxs133("div", { className: styles38.body, children: [
|
|
5601
|
+
/* @__PURE__ */ jsx160("div", { className: styles38.title, children: title }),
|
|
5602
|
+
message && /* @__PURE__ */ jsx160("div", { className: styles38.message, children: message })
|
|
5112
5603
|
] }),
|
|
5113
|
-
/* @__PURE__ */
|
|
5604
|
+
/* @__PURE__ */ jsx160(
|
|
5114
5605
|
"button",
|
|
5115
5606
|
{
|
|
5116
5607
|
type: "button",
|
|
@@ -5127,7 +5618,7 @@ function Toast({
|
|
|
5127
5618
|
|
|
5128
5619
|
// src/components/CardTile/CardTile.tsx
|
|
5129
5620
|
import styles39 from "./CardTile.module.css";
|
|
5130
|
-
import { jsx as
|
|
5621
|
+
import { jsx as jsx161, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
5131
5622
|
function CardTileGrid({
|
|
5132
5623
|
children,
|
|
5133
5624
|
minTileWidth = 200,
|
|
@@ -5135,7 +5626,7 @@ function CardTileGrid({
|
|
|
5135
5626
|
dense = false
|
|
5136
5627
|
}) {
|
|
5137
5628
|
const style = { "--sv-card-tile-min-width": `${minTileWidth}px` };
|
|
5138
|
-
return /* @__PURE__ */
|
|
5629
|
+
return /* @__PURE__ */ jsx161(
|
|
5139
5630
|
"div",
|
|
5140
5631
|
{
|
|
5141
5632
|
className: [styles39.grid, dense && styles39.gridDense, className].filter(Boolean).join(" "),
|
|
@@ -5153,13 +5644,13 @@ function CardTile({
|
|
|
5153
5644
|
...rest
|
|
5154
5645
|
}) {
|
|
5155
5646
|
const isIcon = variant === "icon";
|
|
5156
|
-
return /* @__PURE__ */
|
|
5647
|
+
return /* @__PURE__ */ jsxs134(
|
|
5157
5648
|
"div",
|
|
5158
5649
|
{
|
|
5159
5650
|
className: [styles39.tile, isIcon && styles39.tileIcon, className].filter(Boolean).join(" "),
|
|
5160
5651
|
...rest,
|
|
5161
5652
|
children: [
|
|
5162
|
-
/* @__PURE__ */
|
|
5653
|
+
/* @__PURE__ */ jsx161(
|
|
5163
5654
|
"div",
|
|
5164
5655
|
{
|
|
5165
5656
|
className: styles39.banner,
|
|
@@ -5168,7 +5659,7 @@ function CardTile({
|
|
|
5168
5659
|
children: banner
|
|
5169
5660
|
}
|
|
5170
5661
|
),
|
|
5171
|
-
/* @__PURE__ */
|
|
5662
|
+
/* @__PURE__ */ jsx161("div", { className: styles39.footer, children })
|
|
5172
5663
|
]
|
|
5173
5664
|
}
|
|
5174
5665
|
);
|
|
@@ -5182,7 +5673,7 @@ function NewCardTile({
|
|
|
5182
5673
|
...rest
|
|
5183
5674
|
}) {
|
|
5184
5675
|
const isIcon = variant === "icon";
|
|
5185
|
-
return /* @__PURE__ */
|
|
5676
|
+
return /* @__PURE__ */ jsxs134(
|
|
5186
5677
|
"button",
|
|
5187
5678
|
{
|
|
5188
5679
|
type,
|
|
@@ -5190,7 +5681,7 @@ function NewCardTile({
|
|
|
5190
5681
|
...rest,
|
|
5191
5682
|
"aria-label": isIcon ? label : void 0,
|
|
5192
5683
|
children: [
|
|
5193
|
-
/* @__PURE__ */
|
|
5684
|
+
/* @__PURE__ */ jsx161(Icon, { name: icon, size: isIcon ? "md" : "sm", "aria-hidden": true }),
|
|
5194
5685
|
!isIcon && label
|
|
5195
5686
|
]
|
|
5196
5687
|
}
|
|
@@ -5200,7 +5691,7 @@ function NewCardTile({
|
|
|
5200
5691
|
// src/components/FormField/FormField.tsx
|
|
5201
5692
|
import { useId as useId4 } from "react";
|
|
5202
5693
|
import styles40 from "./FormField.module.css";
|
|
5203
|
-
import { jsx as
|
|
5694
|
+
import { jsx as jsx162, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
5204
5695
|
function FormField({
|
|
5205
5696
|
label,
|
|
5206
5697
|
hint,
|
|
@@ -5221,27 +5712,27 @@ function FormField({
|
|
|
5221
5712
|
"aria-invalid": error ? true : void 0,
|
|
5222
5713
|
required: required || void 0
|
|
5223
5714
|
};
|
|
5224
|
-
return /* @__PURE__ */
|
|
5225
|
-
/* @__PURE__ */
|
|
5715
|
+
return /* @__PURE__ */ jsxs135("div", { className: [styles40.field, className].filter(Boolean).join(" "), children: [
|
|
5716
|
+
/* @__PURE__ */ jsxs135("label", { className: styles40.label, htmlFor: fieldId, children: [
|
|
5226
5717
|
label,
|
|
5227
|
-
required && /* @__PURE__ */
|
|
5718
|
+
required && /* @__PURE__ */ jsx162("span", { className: styles40.required, "aria-hidden": "true", children: "*" })
|
|
5228
5719
|
] }),
|
|
5229
5720
|
children(field),
|
|
5230
|
-
hint && !error && /* @__PURE__ */
|
|
5231
|
-
error && /* @__PURE__ */
|
|
5721
|
+
hint && !error && /* @__PURE__ */ jsx162("p", { id: hintId, className: styles40.hint, children: hint }),
|
|
5722
|
+
error && /* @__PURE__ */ jsx162("p", { id: errorId, className: styles40.error, role: "alert", children: error })
|
|
5232
5723
|
] });
|
|
5233
5724
|
}
|
|
5234
5725
|
|
|
5235
5726
|
// src/components/ResponsiveSurface/ResponsiveSurface.tsx
|
|
5236
|
-
import { Fragment as Fragment6, jsx as
|
|
5727
|
+
import { Fragment as Fragment6, jsx as jsx163 } from "react/jsx-runtime";
|
|
5237
5728
|
function ResponsiveSurface({ web, mobile, breakpointPx }) {
|
|
5238
5729
|
const { value } = useResponsiveLayout({ web, mobile, breakpointPx });
|
|
5239
|
-
return /* @__PURE__ */
|
|
5730
|
+
return /* @__PURE__ */ jsx163(Fragment6, { children: value });
|
|
5240
5731
|
}
|
|
5241
5732
|
|
|
5242
5733
|
// src/components/PageHeader/PageHeader.tsx
|
|
5243
5734
|
import styles41 from "./PageHeader.module.css";
|
|
5244
|
-
import { jsx as
|
|
5735
|
+
import { jsx as jsx164, jsxs as jsxs136 } from "react/jsx-runtime";
|
|
5245
5736
|
var HEADING_TAG = { 1: "h1", 2: "h2", 3: "h3" };
|
|
5246
5737
|
function PageHeaderWeb({
|
|
5247
5738
|
title,
|
|
@@ -5252,15 +5743,15 @@ function PageHeaderWeb({
|
|
|
5252
5743
|
className
|
|
5253
5744
|
}) {
|
|
5254
5745
|
const Heading = HEADING_TAG[headingLevel];
|
|
5255
|
-
return /* @__PURE__ */
|
|
5256
|
-
/* @__PURE__ */
|
|
5257
|
-
/* @__PURE__ */
|
|
5258
|
-
icon && /* @__PURE__ */
|
|
5259
|
-
/* @__PURE__ */
|
|
5746
|
+
return /* @__PURE__ */ jsxs136("header", { className: [styles41.header, className].filter(Boolean).join(" "), children: [
|
|
5747
|
+
/* @__PURE__ */ jsxs136("div", { className: styles41.text, children: [
|
|
5748
|
+
/* @__PURE__ */ jsxs136("div", { className: styles41.titleRow, children: [
|
|
5749
|
+
icon && /* @__PURE__ */ jsx164(Icon, { name: icon, size: "lg", "aria-hidden": true }),
|
|
5750
|
+
/* @__PURE__ */ jsx164(Heading, { className: styles41.title, children: title })
|
|
5260
5751
|
] }),
|
|
5261
|
-
description && /* @__PURE__ */
|
|
5752
|
+
description && /* @__PURE__ */ jsx164("p", { className: styles41.description, children: description })
|
|
5262
5753
|
] }),
|
|
5263
|
-
action && /* @__PURE__ */
|
|
5754
|
+
action && /* @__PURE__ */ jsx164("div", { className: styles41.action, children: action })
|
|
5264
5755
|
] });
|
|
5265
5756
|
}
|
|
5266
5757
|
function PageHeaderMobile({
|
|
@@ -5273,8 +5764,8 @@ function PageHeaderMobile({
|
|
|
5273
5764
|
className
|
|
5274
5765
|
}) {
|
|
5275
5766
|
const Heading = HEADING_TAG[headingLevel];
|
|
5276
|
-
return /* @__PURE__ */
|
|
5277
|
-
onBack && /* @__PURE__ */
|
|
5767
|
+
return /* @__PURE__ */ jsxs136("header", { className: [styles41.mobileHeader, className].filter(Boolean).join(" "), children: [
|
|
5768
|
+
onBack && /* @__PURE__ */ jsx164(
|
|
5278
5769
|
Button,
|
|
5279
5770
|
{
|
|
5280
5771
|
variant: "ghost",
|
|
@@ -5282,13 +5773,13 @@ function PageHeaderMobile({
|
|
|
5282
5773
|
"aria-label": "Back",
|
|
5283
5774
|
onClick: onBack,
|
|
5284
5775
|
className: styles41.mobileBack,
|
|
5285
|
-
children: /* @__PURE__ */
|
|
5776
|
+
children: /* @__PURE__ */ jsx164(Icon, { name: "circle-chevron-left", size: "md", "aria-hidden": true })
|
|
5286
5777
|
}
|
|
5287
5778
|
),
|
|
5288
|
-
icon && /* @__PURE__ */
|
|
5289
|
-
/* @__PURE__ */
|
|
5290
|
-
action && /* @__PURE__ */
|
|
5291
|
-
onMenuClick && /* @__PURE__ */
|
|
5779
|
+
icon && /* @__PURE__ */ jsx164(Icon, { name: icon, size: "md", "aria-hidden": true, className: styles41.mobileTitleIcon }),
|
|
5780
|
+
/* @__PURE__ */ jsx164(Heading, { className: styles41.mobileTitle, children: title }),
|
|
5781
|
+
action && /* @__PURE__ */ jsx164("div", { className: styles41.mobileAction, children: action }),
|
|
5782
|
+
onMenuClick && /* @__PURE__ */ jsx164(
|
|
5292
5783
|
Button,
|
|
5293
5784
|
{
|
|
5294
5785
|
variant: "ghost",
|
|
@@ -5296,7 +5787,7 @@ function PageHeaderMobile({
|
|
|
5296
5787
|
"aria-label": "Menu",
|
|
5297
5788
|
onClick: onMenuClick,
|
|
5298
5789
|
className: styles41.mobileMenu,
|
|
5299
|
-
children: /* @__PURE__ */
|
|
5790
|
+
children: /* @__PURE__ */ jsx164(Icon, { name: "ellipsis-vertical", size: "md", "aria-hidden": true })
|
|
5300
5791
|
}
|
|
5301
5792
|
)
|
|
5302
5793
|
] });
|
|
@@ -5311,10 +5802,10 @@ function PageHeader({
|
|
|
5311
5802
|
onBack,
|
|
5312
5803
|
onMenuClick
|
|
5313
5804
|
}) {
|
|
5314
|
-
return /* @__PURE__ */
|
|
5805
|
+
return /* @__PURE__ */ jsx164(
|
|
5315
5806
|
ResponsiveSurface,
|
|
5316
5807
|
{
|
|
5317
|
-
web: /* @__PURE__ */
|
|
5808
|
+
web: /* @__PURE__ */ jsx164(
|
|
5318
5809
|
PageHeaderWeb,
|
|
5319
5810
|
{
|
|
5320
5811
|
title,
|
|
@@ -5325,7 +5816,7 @@ function PageHeader({
|
|
|
5325
5816
|
className
|
|
5326
5817
|
}
|
|
5327
5818
|
),
|
|
5328
|
-
mobile: /* @__PURE__ */
|
|
5819
|
+
mobile: /* @__PURE__ */ jsx164(
|
|
5329
5820
|
PageHeaderMobile,
|
|
5330
5821
|
{
|
|
5331
5822
|
title,
|
|
@@ -5343,7 +5834,7 @@ function PageHeader({
|
|
|
5343
5834
|
|
|
5344
5835
|
// src/components/PageContainer/PageContainer.tsx
|
|
5345
5836
|
import styles42 from "./PageContainer.module.css";
|
|
5346
|
-
import { jsx as
|
|
5837
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
5347
5838
|
var maxWidthClass = {
|
|
5348
5839
|
sm: styles42.sm,
|
|
5349
5840
|
md: styles42.md,
|
|
@@ -5364,17 +5855,18 @@ function PageContainer({
|
|
|
5364
5855
|
...rest
|
|
5365
5856
|
}) {
|
|
5366
5857
|
const cls = [styles42.container, maxWidthClass[maxWidth], paddingClass2[padding], className].filter(Boolean).join(" ");
|
|
5367
|
-
return /* @__PURE__ */
|
|
5858
|
+
return /* @__PURE__ */ jsx165("div", { className: cls, ...rest, children });
|
|
5368
5859
|
}
|
|
5369
5860
|
|
|
5370
5861
|
// src/components/Header/Header.tsx
|
|
5371
5862
|
import styles43 from "./Header.module.css";
|
|
5372
|
-
import { jsx as
|
|
5863
|
+
import { jsx as jsx166, jsxs as jsxs137 } from "react/jsx-runtime";
|
|
5373
5864
|
function Header({
|
|
5374
5865
|
instanceName,
|
|
5375
5866
|
instanceLogoUrl,
|
|
5376
5867
|
homeHref,
|
|
5377
5868
|
plugin,
|
|
5869
|
+
leading,
|
|
5378
5870
|
launcher,
|
|
5379
5871
|
notifications,
|
|
5380
5872
|
avatarMenu,
|
|
@@ -5383,18 +5875,19 @@ function Header({
|
|
|
5383
5875
|
}) {
|
|
5384
5876
|
const brandInitial = instanceName.charAt(0).toUpperCase() || "S";
|
|
5385
5877
|
const cls = [styles43.header, className].filter(Boolean).join(" ");
|
|
5386
|
-
return /* @__PURE__ */
|
|
5387
|
-
/* @__PURE__ */
|
|
5388
|
-
|
|
5389
|
-
|
|
5878
|
+
return /* @__PURE__ */ jsxs137("header", { className: cls, ...rest, children: [
|
|
5879
|
+
/* @__PURE__ */ jsxs137("div", { className: styles43.left, children: [
|
|
5880
|
+
leading,
|
|
5881
|
+
/* @__PURE__ */ jsx166("a", { href: homeHref, className: styles43.brandBadge, "aria-label": `${instanceName} home`, children: instanceLogoUrl ? /* @__PURE__ */ jsx166("img", { src: instanceLogoUrl, alt: "", className: styles43.brandLogoImg }) : brandInitial }),
|
|
5882
|
+
plugin && (plugin.href ? /* @__PURE__ */ jsxs137("a", { href: plugin.href, className: styles43.plugin, children: [
|
|
5390
5883
|
plugin.icon,
|
|
5391
|
-
/* @__PURE__ */
|
|
5392
|
-
] }) : /* @__PURE__ */
|
|
5884
|
+
/* @__PURE__ */ jsx166("span", { className: styles43.pluginName, children: plugin.name })
|
|
5885
|
+
] }) : /* @__PURE__ */ jsxs137("span", { className: styles43.plugin, children: [
|
|
5393
5886
|
plugin.icon,
|
|
5394
|
-
/* @__PURE__ */
|
|
5887
|
+
/* @__PURE__ */ jsx166("span", { className: styles43.pluginName, children: plugin.name })
|
|
5395
5888
|
] }))
|
|
5396
5889
|
] }),
|
|
5397
|
-
/* @__PURE__ */
|
|
5890
|
+
/* @__PURE__ */ jsxs137("div", { className: styles43.right, children: [
|
|
5398
5891
|
launcher,
|
|
5399
5892
|
notifications,
|
|
5400
5893
|
avatarMenu
|
|
@@ -5434,9 +5927,9 @@ function usePublishShellChromeHeight(ref, cssVariable) {
|
|
|
5434
5927
|
|
|
5435
5928
|
// src/components/MobileHeader/MobileHeader.tsx
|
|
5436
5929
|
import styles44 from "./MobileHeader.module.css";
|
|
5437
|
-
import { jsx as
|
|
5930
|
+
import { jsx as jsx167, jsxs as jsxs138 } from "react/jsx-runtime";
|
|
5438
5931
|
function DefaultLogo() {
|
|
5439
|
-
return /* @__PURE__ */
|
|
5932
|
+
return /* @__PURE__ */ jsx167("span", { className: styles44.defaultLogo, "aria-hidden": "true", children: "S" });
|
|
5440
5933
|
}
|
|
5441
5934
|
function MobileHeader({
|
|
5442
5935
|
logo,
|
|
@@ -5449,12 +5942,12 @@ function MobileHeader({
|
|
|
5449
5942
|
const headerRef = useRef17(null);
|
|
5450
5943
|
usePublishShellChromeHeight(headerRef, "--sv-shell-header-height");
|
|
5451
5944
|
const cls = [styles44.header, className].filter(Boolean).join(" ");
|
|
5452
|
-
return /* @__PURE__ */
|
|
5453
|
-
/* @__PURE__ */
|
|
5454
|
-
logo ?? /* @__PURE__ */
|
|
5455
|
-
title && /* @__PURE__ */
|
|
5945
|
+
return /* @__PURE__ */ jsxs138("div", { className: cls, ...rest, ref: headerRef, children: [
|
|
5946
|
+
/* @__PURE__ */ jsxs138("div", { className: styles44.brandGroup, children: [
|
|
5947
|
+
logo ?? /* @__PURE__ */ jsx167(DefaultLogo, {}),
|
|
5948
|
+
title && /* @__PURE__ */ jsx167("span", { className: styles44.title, children: title })
|
|
5456
5949
|
] }),
|
|
5457
|
-
/* @__PURE__ */
|
|
5950
|
+
/* @__PURE__ */ jsxs138("div", { className: styles44.right, children: [
|
|
5458
5951
|
bell,
|
|
5459
5952
|
avatarMenu
|
|
5460
5953
|
] })
|
|
@@ -5464,11 +5957,11 @@ function MobileHeader({
|
|
|
5464
5957
|
// src/components/MobileFooter/MobileFooter.tsx
|
|
5465
5958
|
import { useRef as useRef18 } from "react";
|
|
5466
5959
|
import styles45 from "./MobileFooter.module.css";
|
|
5467
|
-
import { jsx as
|
|
5960
|
+
import { jsx as jsx168, jsxs as jsxs139 } from "react/jsx-runtime";
|
|
5468
5961
|
function FooterNavItem({ icon, label, href, onClick, active }) {
|
|
5469
5962
|
const className = [styles45.navItem, active ? styles45.navItemActive : ""].filter(Boolean).join(" ");
|
|
5470
5963
|
if (href) {
|
|
5471
|
-
return /* @__PURE__ */
|
|
5964
|
+
return /* @__PURE__ */ jsx168(
|
|
5472
5965
|
"a",
|
|
5473
5966
|
{
|
|
5474
5967
|
href,
|
|
@@ -5479,7 +5972,7 @@ function FooterNavItem({ icon, label, href, onClick, active }) {
|
|
|
5479
5972
|
}
|
|
5480
5973
|
);
|
|
5481
5974
|
}
|
|
5482
|
-
return /* @__PURE__ */
|
|
5975
|
+
return /* @__PURE__ */ jsx168("button", { type: "button", className, "aria-label": label, onClick, children: icon });
|
|
5483
5976
|
}
|
|
5484
5977
|
function MobileFooter({
|
|
5485
5978
|
onOpenApps,
|
|
@@ -5503,9 +5996,9 @@ function MobileFooter({
|
|
|
5503
5996
|
styles45.navItemApps,
|
|
5504
5997
|
launcherOpen ? styles45.navItemAppsOpen : ""
|
|
5505
5998
|
].filter(Boolean).join(" ");
|
|
5506
|
-
return /* @__PURE__ */
|
|
5507
|
-
leftIcons.map((item) => /* @__PURE__ */
|
|
5508
|
-
/* @__PURE__ */
|
|
5999
|
+
return /* @__PURE__ */ jsxs139("nav", { ...rest, ref: navRef, className: cls, "aria-label": "App navigation", children: [
|
|
6000
|
+
leftIcons.map((item) => /* @__PURE__ */ jsx168(FooterNavItem, { ...item }, item.label)),
|
|
6001
|
+
/* @__PURE__ */ jsx168(
|
|
5509
6002
|
"button",
|
|
5510
6003
|
{
|
|
5511
6004
|
type: "button",
|
|
@@ -5514,49 +6007,49 @@ function MobileFooter({
|
|
|
5514
6007
|
"aria-expanded": launcherOpen,
|
|
5515
6008
|
"aria-haspopup": "dialog",
|
|
5516
6009
|
onClick: onOpenApps,
|
|
5517
|
-
children: launcherIcon ?? /* @__PURE__ */
|
|
6010
|
+
children: launcherIcon ?? /* @__PURE__ */ jsx168(Icon, { name: "grid-2x2", size: "md", "aria-hidden": true })
|
|
5518
6011
|
}
|
|
5519
6012
|
),
|
|
5520
|
-
rightIcons.map((item) => /* @__PURE__ */
|
|
6013
|
+
rightIcons.map((item) => /* @__PURE__ */ jsx168(FooterNavItem, { ...item }, item.label))
|
|
5521
6014
|
] });
|
|
5522
6015
|
}
|
|
5523
6016
|
|
|
5524
6017
|
// src/components/MobileAppsDrawer/MobileAppsDrawer.tsx
|
|
5525
6018
|
import styles46 from "./MobileAppsDrawer.module.css";
|
|
5526
|
-
import { Fragment as Fragment7, jsx as
|
|
6019
|
+
import { Fragment as Fragment7, jsx as jsx169, jsxs as jsxs140 } from "react/jsx-runtime";
|
|
5527
6020
|
function DrawerGridTile({ icon, label, href, onClick }) {
|
|
5528
|
-
const content = /* @__PURE__ */
|
|
5529
|
-
/* @__PURE__ */
|
|
5530
|
-
/* @__PURE__ */
|
|
6021
|
+
const content = /* @__PURE__ */ jsxs140(Fragment7, { children: [
|
|
6022
|
+
/* @__PURE__ */ jsx169("span", { className: styles46.gridIcon, "aria-hidden": "true", children: icon }),
|
|
6023
|
+
/* @__PURE__ */ jsx169("span", { className: styles46.gridName, children: label })
|
|
5531
6024
|
] });
|
|
5532
6025
|
if (href) {
|
|
5533
|
-
return /* @__PURE__ */
|
|
6026
|
+
return /* @__PURE__ */ jsx169("a", { href, className: styles46.gridItem, onClick, children: content });
|
|
5534
6027
|
}
|
|
5535
|
-
return /* @__PURE__ */
|
|
6028
|
+
return /* @__PURE__ */ jsx169("button", { type: "button", className: styles46.gridItem, onClick, children: content });
|
|
5536
6029
|
}
|
|
5537
6030
|
function MobileAppsDrawer({ open, onClose, items, ...rest }) {
|
|
5538
6031
|
const ariaLabel = rest["aria-label"];
|
|
5539
|
-
return /* @__PURE__ */
|
|
6032
|
+
return /* @__PURE__ */ jsx169(Drawer, { open, onClose, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx169("nav", { "aria-label": ariaLabel, children: /* @__PURE__ */ jsx169("ul", { className: styles46.grid, children: items.map(({ key, ...item }) => /* @__PURE__ */ jsx169("li", { children: /* @__PURE__ */ jsx169(DrawerGridTile, { ...item }, key) }, key)) }) }) });
|
|
5540
6033
|
}
|
|
5541
6034
|
|
|
5542
6035
|
// src/components/EmptyState/EmptyState.tsx
|
|
5543
6036
|
import styles47 from "./EmptyState.module.css";
|
|
5544
|
-
import { jsx as
|
|
6037
|
+
import { jsx as jsx170, jsxs as jsxs141 } from "react/jsx-runtime";
|
|
5545
6038
|
function EmptyState({ icon, heading, description, action, className }) {
|
|
5546
|
-
return /* @__PURE__ */
|
|
5547
|
-
icon && /* @__PURE__ */
|
|
5548
|
-
/* @__PURE__ */
|
|
5549
|
-
description && /* @__PURE__ */
|
|
6039
|
+
return /* @__PURE__ */ jsxs141("div", { className: [styles47.root, className].filter(Boolean).join(" "), children: [
|
|
6040
|
+
icon && /* @__PURE__ */ jsx170("span", { className: styles47.icon, children: /* @__PURE__ */ jsx170(Icon, { name: icon, size: "lg", "aria-hidden": true }) }),
|
|
6041
|
+
/* @__PURE__ */ jsx170("h2", { className: styles47.heading, children: heading }),
|
|
6042
|
+
description && /* @__PURE__ */ jsx170("p", { className: styles47.description, children: description }),
|
|
5550
6043
|
action
|
|
5551
6044
|
] });
|
|
5552
6045
|
}
|
|
5553
6046
|
|
|
5554
6047
|
// src/components/OfflineGate/OfflineGate.tsx
|
|
5555
|
-
import { Fragment as Fragment8, jsx as
|
|
6048
|
+
import { Fragment as Fragment8, jsx as jsx171 } from "react/jsx-runtime";
|
|
5556
6049
|
function OfflineGate({ children, surfaceName, className }) {
|
|
5557
6050
|
const isOffline = useIsOffline();
|
|
5558
|
-
if (!isOffline) return /* @__PURE__ */
|
|
5559
|
-
return /* @__PURE__ */
|
|
6051
|
+
if (!isOffline) return /* @__PURE__ */ jsx171(Fragment8, { children });
|
|
6052
|
+
return /* @__PURE__ */ jsx171(
|
|
5560
6053
|
EmptyState,
|
|
5561
6054
|
{
|
|
5562
6055
|
icon: "alert-triangle",
|
|
@@ -5568,15 +6061,15 @@ function OfflineGate({ children, surfaceName, className }) {
|
|
|
5568
6061
|
}
|
|
5569
6062
|
|
|
5570
6063
|
// src/components/DeviceOnlyGate/DeviceOnlyGate.tsx
|
|
5571
|
-
import { Fragment as Fragment9, jsx as
|
|
6064
|
+
import { Fragment as Fragment9, jsx as jsx172 } from "react/jsx-runtime";
|
|
5572
6065
|
function DeviceOnlyGate({
|
|
5573
6066
|
children,
|
|
5574
6067
|
surfaceName,
|
|
5575
6068
|
available,
|
|
5576
6069
|
className
|
|
5577
6070
|
}) {
|
|
5578
|
-
if (available) return /* @__PURE__ */
|
|
5579
|
-
return /* @__PURE__ */
|
|
6071
|
+
if (available) return /* @__PURE__ */ jsx172(Fragment9, { children });
|
|
6072
|
+
return /* @__PURE__ */ jsx172(
|
|
5580
6073
|
EmptyState,
|
|
5581
6074
|
{
|
|
5582
6075
|
icon: "smartphone",
|
|
@@ -5588,7 +6081,7 @@ function DeviceOnlyGate({
|
|
|
5588
6081
|
}
|
|
5589
6082
|
|
|
5590
6083
|
// src/components/DeviceStorageKeyGate/DeviceStorageKeyGate.tsx
|
|
5591
|
-
import { Fragment as Fragment10, jsx as
|
|
6084
|
+
import { Fragment as Fragment10, jsx as jsx173 } from "react/jsx-runtime";
|
|
5592
6085
|
function DeviceStorageKeyGate({
|
|
5593
6086
|
children,
|
|
5594
6087
|
surfaceName,
|
|
@@ -5597,9 +6090,9 @@ function DeviceStorageKeyGate({
|
|
|
5597
6090
|
className
|
|
5598
6091
|
}) {
|
|
5599
6092
|
if (status === "checking") return null;
|
|
5600
|
-
if (status === "set-up") return /* @__PURE__ */
|
|
6093
|
+
if (status === "set-up") return /* @__PURE__ */ jsx173(Fragment10, { children });
|
|
5601
6094
|
if (status === "unsupported") {
|
|
5602
|
-
return /* @__PURE__ */
|
|
6095
|
+
return /* @__PURE__ */ jsx173(
|
|
5603
6096
|
EmptyState,
|
|
5604
6097
|
{
|
|
5605
6098
|
icon: "smartphone",
|
|
@@ -5610,7 +6103,7 @@ function DeviceStorageKeyGate({
|
|
|
5610
6103
|
);
|
|
5611
6104
|
}
|
|
5612
6105
|
if (status === "no-device-auth") {
|
|
5613
|
-
return /* @__PURE__ */
|
|
6106
|
+
return /* @__PURE__ */ jsx173(
|
|
5614
6107
|
EmptyState,
|
|
5615
6108
|
{
|
|
5616
6109
|
icon: "alert-triangle",
|
|
@@ -5620,7 +6113,7 @@ function DeviceStorageKeyGate({
|
|
|
5620
6113
|
}
|
|
5621
6114
|
);
|
|
5622
6115
|
}
|
|
5623
|
-
return /* @__PURE__ */
|
|
6116
|
+
return /* @__PURE__ */ jsx173(
|
|
5624
6117
|
EmptyState,
|
|
5625
6118
|
{
|
|
5626
6119
|
icon: "lock",
|
|
@@ -5635,7 +6128,7 @@ function DeviceStorageKeyGate({
|
|
|
5635
6128
|
// src/components/Avatar/Avatar.tsx
|
|
5636
6129
|
import { useState as useState16 } from "react";
|
|
5637
6130
|
import styles48 from "./Avatar.module.css";
|
|
5638
|
-
import { jsx as
|
|
6131
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
5639
6132
|
function initials2(name) {
|
|
5640
6133
|
const parts = name.trim().split(/\s+/);
|
|
5641
6134
|
if (parts.length === 1) return (parts[0] ?? "").slice(0, 2).toUpperCase();
|
|
@@ -5650,17 +6143,17 @@ function Avatar({ name, src, size = "md", className }) {
|
|
|
5650
6143
|
const [imgFailed, setImgFailed] = useState16(false);
|
|
5651
6144
|
const cls = [styles48.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
|
|
5652
6145
|
if (src && !imgFailed) {
|
|
5653
|
-
return /* @__PURE__ */
|
|
6146
|
+
return /* @__PURE__ */ jsx174("span", { className: cls, "aria-label": name, children: /* @__PURE__ */ jsx174("img", { src, alt: name, className: styles48.img, onError: () => setImgFailed(true) }) });
|
|
5654
6147
|
}
|
|
5655
|
-
return /* @__PURE__ */
|
|
6148
|
+
return /* @__PURE__ */ jsx174("span", { className: cls, "aria-label": name, children: initials2(name) });
|
|
5656
6149
|
}
|
|
5657
6150
|
|
|
5658
6151
|
// src/components/NavTabs/NavTabs.tsx
|
|
5659
6152
|
import { Fragment as Fragment11 } from "react";
|
|
5660
6153
|
import styles49 from "./NavTabs.module.css";
|
|
5661
|
-
import { jsx as
|
|
6154
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
5662
6155
|
function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
|
|
5663
|
-
return /* @__PURE__ */
|
|
6156
|
+
return /* @__PURE__ */ jsx175(
|
|
5664
6157
|
"nav",
|
|
5665
6158
|
{
|
|
5666
6159
|
className: [styles49.nav, className].filter(Boolean).join(" "),
|
|
@@ -5672,7 +6165,7 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
|
|
|
5672
6165
|
"aria-current": item.active ? "page" : void 0,
|
|
5673
6166
|
children: item.label
|
|
5674
6167
|
};
|
|
5675
|
-
return /* @__PURE__ */
|
|
6168
|
+
return /* @__PURE__ */ jsx175(Fragment11, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx175(
|
|
5676
6169
|
"a",
|
|
5677
6170
|
{
|
|
5678
6171
|
href: linkProps.href,
|
|
@@ -5689,7 +6182,7 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
|
|
|
5689
6182
|
// src/components/Tooltip/Tooltip.tsx
|
|
5690
6183
|
import { useId as useId5 } from "react";
|
|
5691
6184
|
import styles50 from "./Tooltip.module.css";
|
|
5692
|
-
import { jsx as
|
|
6185
|
+
import { jsx as jsx176, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
5693
6186
|
var sideClass = {
|
|
5694
6187
|
top: styles50.top,
|
|
5695
6188
|
bottom: styles50.bottom,
|
|
@@ -5698,15 +6191,15 @@ var sideClass = {
|
|
|
5698
6191
|
};
|
|
5699
6192
|
function Tooltip({ content, children, side = "top" }) {
|
|
5700
6193
|
const tipId = useId5();
|
|
5701
|
-
return /* @__PURE__ */
|
|
5702
|
-
/* @__PURE__ */
|
|
5703
|
-
/* @__PURE__ */
|
|
6194
|
+
return /* @__PURE__ */ jsxs142("span", { className: styles50.wrapper, children: [
|
|
6195
|
+
/* @__PURE__ */ jsx176("span", { "aria-describedby": tipId, children }),
|
|
6196
|
+
/* @__PURE__ */ jsx176("span", { id: tipId, role: "tooltip", className: [styles50.tip, sideClass[side]].join(" "), children: content })
|
|
5704
6197
|
] });
|
|
5705
6198
|
}
|
|
5706
6199
|
|
|
5707
6200
|
// src/components/Checkbox/Checkbox.tsx
|
|
5708
6201
|
import styles51 from "./Checkbox.module.css";
|
|
5709
|
-
import { jsx as
|
|
6202
|
+
import { jsx as jsx177, jsxs as jsxs143 } from "react/jsx-runtime";
|
|
5710
6203
|
function Checkbox({
|
|
5711
6204
|
checked,
|
|
5712
6205
|
onChange,
|
|
@@ -5718,9 +6211,9 @@ function Checkbox({
|
|
|
5718
6211
|
...rest
|
|
5719
6212
|
}) {
|
|
5720
6213
|
const inputId = id ?? `checkbox-${label.toLowerCase().replace(/\s+/g, "-")}`;
|
|
5721
|
-
return /* @__PURE__ */
|
|
5722
|
-
/* @__PURE__ */
|
|
5723
|
-
/* @__PURE__ */
|
|
6214
|
+
return /* @__PURE__ */ jsxs143("span", { className: [styles51.root, className].filter(Boolean).join(" "), children: [
|
|
6215
|
+
/* @__PURE__ */ jsxs143("span", { className: [styles51.box, checked ? styles51.checked : ""].filter(Boolean).join(" "), children: [
|
|
6216
|
+
/* @__PURE__ */ jsx177(
|
|
5724
6217
|
"input",
|
|
5725
6218
|
{
|
|
5726
6219
|
...rest,
|
|
@@ -5732,7 +6225,7 @@ function Checkbox({
|
|
|
5732
6225
|
onChange: (e) => onChange(e.target.checked)
|
|
5733
6226
|
}
|
|
5734
6227
|
),
|
|
5735
|
-
checked && /* @__PURE__ */
|
|
6228
|
+
checked && /* @__PURE__ */ jsx177("svg", { className: styles51.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx177(
|
|
5736
6229
|
"path",
|
|
5737
6230
|
{
|
|
5738
6231
|
d: "M1 4l3 3 5-6",
|
|
@@ -5743,7 +6236,7 @@ function Checkbox({
|
|
|
5743
6236
|
}
|
|
5744
6237
|
) })
|
|
5745
6238
|
] }),
|
|
5746
|
-
label && /* @__PURE__ */
|
|
6239
|
+
label && /* @__PURE__ */ jsx177(
|
|
5747
6240
|
"label",
|
|
5748
6241
|
{
|
|
5749
6242
|
htmlFor: inputId,
|
|
@@ -5761,7 +6254,7 @@ function Checkbox({
|
|
|
5761
6254
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
5762
6255
|
import { useId as useId6 } from "react";
|
|
5763
6256
|
import styles52 from "./RadioGroup.module.css";
|
|
5764
|
-
import { jsx as
|
|
6257
|
+
import { jsx as jsx178, jsxs as jsxs144 } from "react/jsx-runtime";
|
|
5765
6258
|
function RadioGroup({
|
|
5766
6259
|
items,
|
|
5767
6260
|
value,
|
|
@@ -5778,7 +6271,7 @@ function RadioGroup({
|
|
|
5778
6271
|
}) {
|
|
5779
6272
|
const generatedName = useId6();
|
|
5780
6273
|
const groupName = name ?? generatedName;
|
|
5781
|
-
return /* @__PURE__ */
|
|
6274
|
+
return /* @__PURE__ */ jsx178(
|
|
5782
6275
|
"div",
|
|
5783
6276
|
{
|
|
5784
6277
|
id,
|
|
@@ -5793,14 +6286,14 @@ function RadioGroup({
|
|
|
5793
6286
|
const checked = item.value === value;
|
|
5794
6287
|
const itemDisabled = disabled || item.disabled;
|
|
5795
6288
|
const inputId = `${groupName}-${item.value}`;
|
|
5796
|
-
return /* @__PURE__ */
|
|
6289
|
+
return /* @__PURE__ */ jsxs144(
|
|
5797
6290
|
"label",
|
|
5798
6291
|
{
|
|
5799
6292
|
htmlFor: inputId,
|
|
5800
6293
|
className: [styles52.option, itemDisabled ? styles52.disabled : ""].filter(Boolean).join(" "),
|
|
5801
6294
|
children: [
|
|
5802
|
-
/* @__PURE__ */
|
|
5803
|
-
/* @__PURE__ */
|
|
6295
|
+
/* @__PURE__ */ jsxs144("span", { className: [styles52.circle, checked ? styles52.checked : ""].join(" "), children: [
|
|
6296
|
+
/* @__PURE__ */ jsx178(
|
|
5804
6297
|
"input",
|
|
5805
6298
|
{
|
|
5806
6299
|
id: inputId,
|
|
@@ -5814,9 +6307,9 @@ function RadioGroup({
|
|
|
5814
6307
|
onChange: () => onChange(item.value)
|
|
5815
6308
|
}
|
|
5816
6309
|
),
|
|
5817
|
-
checked && /* @__PURE__ */
|
|
6310
|
+
checked && /* @__PURE__ */ jsx178("span", { className: styles52.dot })
|
|
5818
6311
|
] }),
|
|
5819
|
-
/* @__PURE__ */
|
|
6312
|
+
/* @__PURE__ */ jsx178("span", { className: styles52.optionLabel, children: item.label })
|
|
5820
6313
|
]
|
|
5821
6314
|
},
|
|
5822
6315
|
item.value
|
|
@@ -5829,7 +6322,7 @@ function RadioGroup({
|
|
|
5829
6322
|
// src/components/Slider/Slider.tsx
|
|
5830
6323
|
import { useId as useId7 } from "react";
|
|
5831
6324
|
import styles53 from "./Slider.module.css";
|
|
5832
|
-
import { jsx as
|
|
6325
|
+
import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
|
|
5833
6326
|
function Slider({
|
|
5834
6327
|
value,
|
|
5835
6328
|
onChange,
|
|
@@ -5848,9 +6341,9 @@ function Slider({
|
|
|
5848
6341
|
const generatedId = useId7();
|
|
5849
6342
|
const inputId = id ?? generatedId;
|
|
5850
6343
|
const fillPercent = max > min ? (value - min) / (max - min) * 100 : 0;
|
|
5851
|
-
return /* @__PURE__ */
|
|
5852
|
-
label && /* @__PURE__ */
|
|
5853
|
-
/* @__PURE__ */
|
|
6344
|
+
return /* @__PURE__ */ jsxs145("div", { className: [styles53.root, className].filter(Boolean).join(" "), children: [
|
|
6345
|
+
label && /* @__PURE__ */ jsx179("label", { htmlFor: inputId, className: styles53.label, children: label }),
|
|
6346
|
+
/* @__PURE__ */ jsx179(
|
|
5854
6347
|
"input",
|
|
5855
6348
|
{
|
|
5856
6349
|
id: inputId,
|
|
@@ -5874,10 +6367,10 @@ function Slider({
|
|
|
5874
6367
|
|
|
5875
6368
|
// src/components/Progress/Progress.tsx
|
|
5876
6369
|
import styles54 from "./Progress.module.css";
|
|
5877
|
-
import { jsx as
|
|
6370
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
5878
6371
|
function Progress({ value, label, id, className }) {
|
|
5879
6372
|
const clamped = Math.min(100, Math.max(0, value));
|
|
5880
|
-
return /* @__PURE__ */
|
|
6373
|
+
return /* @__PURE__ */ jsx180(
|
|
5881
6374
|
"div",
|
|
5882
6375
|
{
|
|
5883
6376
|
id,
|
|
@@ -5887,36 +6380,36 @@ function Progress({ value, label, id, className }) {
|
|
|
5887
6380
|
"aria-valuemax": 100,
|
|
5888
6381
|
"aria-label": label,
|
|
5889
6382
|
className: [styles54.track, className].filter(Boolean).join(" "),
|
|
5890
|
-
children: /* @__PURE__ */
|
|
6383
|
+
children: /* @__PURE__ */ jsx180("div", { className: styles54.fill, style: { width: `${clamped}%` } })
|
|
5891
6384
|
}
|
|
5892
6385
|
);
|
|
5893
6386
|
}
|
|
5894
6387
|
|
|
5895
6388
|
// src/components/Table/Table.tsx
|
|
5896
6389
|
import styles55 from "./Table.module.css";
|
|
5897
|
-
import { jsx as
|
|
6390
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
5898
6391
|
function Table({ children, className }) {
|
|
5899
|
-
return /* @__PURE__ */
|
|
6392
|
+
return /* @__PURE__ */ jsx181("div", { className: styles55.scrollContainer, children: /* @__PURE__ */ jsx181("table", { className: [styles55.table, className].filter(Boolean).join(" "), children }) });
|
|
5900
6393
|
}
|
|
5901
6394
|
function TableHead({ children }) {
|
|
5902
|
-
return /* @__PURE__ */
|
|
6395
|
+
return /* @__PURE__ */ jsx181("thead", { className: styles55.head, children });
|
|
5903
6396
|
}
|
|
5904
6397
|
function TableBody({ children }) {
|
|
5905
|
-
return /* @__PURE__ */
|
|
6398
|
+
return /* @__PURE__ */ jsx181("tbody", { className: styles55.body, children });
|
|
5906
6399
|
}
|
|
5907
6400
|
function TableRow({ children }) {
|
|
5908
|
-
return /* @__PURE__ */
|
|
6401
|
+
return /* @__PURE__ */ jsx181("tr", { className: styles55.row, children });
|
|
5909
6402
|
}
|
|
5910
6403
|
function TableHeaderCell({ children, ...rest }) {
|
|
5911
|
-
return /* @__PURE__ */
|
|
6404
|
+
return /* @__PURE__ */ jsx181("th", { className: styles55.th, ...rest, children });
|
|
5912
6405
|
}
|
|
5913
6406
|
function TableCell({ children, ...rest }) {
|
|
5914
|
-
return /* @__PURE__ */
|
|
6407
|
+
return /* @__PURE__ */ jsx181("td", { className: styles55.td, ...rest, children });
|
|
5915
6408
|
}
|
|
5916
6409
|
|
|
5917
6410
|
// src/components/Alert/Alert.tsx
|
|
5918
6411
|
import styles56 from "./Alert.module.css";
|
|
5919
|
-
import { jsx as
|
|
6412
|
+
import { jsx as jsx182, jsxs as jsxs146 } from "react/jsx-runtime";
|
|
5920
6413
|
var DEFAULT_ICON = {
|
|
5921
6414
|
info: "info",
|
|
5922
6415
|
success: "circle-check",
|
|
@@ -5926,17 +6419,17 @@ var DEFAULT_ICON = {
|
|
|
5926
6419
|
};
|
|
5927
6420
|
function Alert({ variant, heading, icon, children, id, className }) {
|
|
5928
6421
|
const resolvedIcon = icon === void 0 ? DEFAULT_ICON[variant] : icon || void 0;
|
|
5929
|
-
return /* @__PURE__ */
|
|
6422
|
+
return /* @__PURE__ */ jsxs146(
|
|
5930
6423
|
"div",
|
|
5931
6424
|
{
|
|
5932
6425
|
id,
|
|
5933
6426
|
role: variant === "error" ? "alert" : "status",
|
|
5934
6427
|
className: [styles56.alert, styles56[variant], className].filter(Boolean).join(" "),
|
|
5935
6428
|
children: [
|
|
5936
|
-
resolvedIcon && /* @__PURE__ */
|
|
5937
|
-
/* @__PURE__ */
|
|
5938
|
-
heading && /* @__PURE__ */
|
|
5939
|
-
/* @__PURE__ */
|
|
6429
|
+
resolvedIcon && /* @__PURE__ */ jsx182(Icon, { name: resolvedIcon, size: "sm", className: styles56.icon, "aria-hidden": true }),
|
|
6430
|
+
/* @__PURE__ */ jsxs146("div", { className: styles56.content, children: [
|
|
6431
|
+
heading && /* @__PURE__ */ jsx182("p", { className: styles56.heading, children: heading }),
|
|
6432
|
+
/* @__PURE__ */ jsx182("div", { className: styles56.body, children })
|
|
5940
6433
|
] })
|
|
5941
6434
|
]
|
|
5942
6435
|
}
|
|
@@ -5945,25 +6438,25 @@ function Alert({ variant, heading, icon, children, id, className }) {
|
|
|
5945
6438
|
|
|
5946
6439
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
5947
6440
|
import styles57 from "./Breadcrumb.module.css";
|
|
5948
|
-
import { jsx as
|
|
6441
|
+
import { jsx as jsx183, jsxs as jsxs147 } from "react/jsx-runtime";
|
|
5949
6442
|
function Breadcrumb({
|
|
5950
6443
|
items,
|
|
5951
6444
|
renderLink,
|
|
5952
6445
|
className,
|
|
5953
6446
|
"aria-label": ariaLabel = "Breadcrumb"
|
|
5954
6447
|
}) {
|
|
5955
|
-
return /* @__PURE__ */
|
|
6448
|
+
return /* @__PURE__ */ jsx183("nav", { "aria-label": ariaLabel, className: [styles57.nav, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx183("ol", { className: styles57.list, children: items.map((item, index) => {
|
|
5956
6449
|
const isLast = index === items.length - 1;
|
|
5957
|
-
return /* @__PURE__ */
|
|
5958
|
-
item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */
|
|
5959
|
-
!isLast && /* @__PURE__ */
|
|
6450
|
+
return /* @__PURE__ */ jsxs147("li", { className: styles57.item, children: [
|
|
6451
|
+
item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */ jsx183("a", { href: item.href, className: styles57.link, children: item.label }) : /* @__PURE__ */ jsx183("span", { className: styles57.current, "aria-current": "page", children: item.label }),
|
|
6452
|
+
!isLast && /* @__PURE__ */ jsx183(Icon, { name: "chevron-right", size: "xs", "aria-hidden": true, className: styles57.separator })
|
|
5960
6453
|
] }, item.label + index);
|
|
5961
6454
|
}) }) });
|
|
5962
6455
|
}
|
|
5963
6456
|
|
|
5964
6457
|
// src/components/Pagination/Pagination.tsx
|
|
5965
6458
|
import styles58 from "./Pagination.module.css";
|
|
5966
|
-
import { jsx as
|
|
6459
|
+
import { jsx as jsx184, jsxs as jsxs148 } from "react/jsx-runtime";
|
|
5967
6460
|
function getPageList(page, totalPages) {
|
|
5968
6461
|
if (totalPages <= 1) return [1];
|
|
5969
6462
|
const siblingCount = 1;
|
|
@@ -5986,8 +6479,8 @@ function Pagination({
|
|
|
5986
6479
|
"aria-label": ariaLabel = "Pagination"
|
|
5987
6480
|
}) {
|
|
5988
6481
|
const pages = getPageList(page, totalPages);
|
|
5989
|
-
return /* @__PURE__ */
|
|
5990
|
-
/* @__PURE__ */
|
|
6482
|
+
return /* @__PURE__ */ jsxs148("nav", { "aria-label": ariaLabel, className: [styles58.nav, className].filter(Boolean).join(" "), children: [
|
|
6483
|
+
/* @__PURE__ */ jsx184(
|
|
5991
6484
|
"button",
|
|
5992
6485
|
{
|
|
5993
6486
|
type: "button",
|
|
@@ -5995,11 +6488,11 @@ function Pagination({
|
|
|
5995
6488
|
onClick: () => onChange(page - 1),
|
|
5996
6489
|
disabled: page <= 1,
|
|
5997
6490
|
"aria-label": "Previous page",
|
|
5998
|
-
children: /* @__PURE__ */
|
|
6491
|
+
children: /* @__PURE__ */ jsx184(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
|
|
5999
6492
|
}
|
|
6000
6493
|
),
|
|
6001
|
-
/* @__PURE__ */
|
|
6002
|
-
(p, index) => p === "ellipsis" ? /* @__PURE__ */
|
|
6494
|
+
/* @__PURE__ */ jsx184("ul", { className: styles58.list, children: pages.map(
|
|
6495
|
+
(p, index) => p === "ellipsis" ? /* @__PURE__ */ jsx184("li", { className: styles58.ellipsis, "aria-hidden": "true", children: "\u2026" }, `ellipsis-${index}`) : /* @__PURE__ */ jsx184("li", { children: /* @__PURE__ */ jsx184(
|
|
6003
6496
|
"button",
|
|
6004
6497
|
{
|
|
6005
6498
|
type: "button",
|
|
@@ -6011,7 +6504,7 @@ function Pagination({
|
|
|
6011
6504
|
}
|
|
6012
6505
|
) }, p)
|
|
6013
6506
|
) }),
|
|
6014
|
-
/* @__PURE__ */
|
|
6507
|
+
/* @__PURE__ */ jsx184(
|
|
6015
6508
|
"button",
|
|
6016
6509
|
{
|
|
6017
6510
|
type: "button",
|
|
@@ -6019,7 +6512,7 @@ function Pagination({
|
|
|
6019
6512
|
onClick: () => onChange(page + 1),
|
|
6020
6513
|
disabled: page >= totalPages,
|
|
6021
6514
|
"aria-label": "Next page",
|
|
6022
|
-
children: /* @__PURE__ */
|
|
6515
|
+
children: /* @__PURE__ */ jsx184(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
|
|
6023
6516
|
}
|
|
6024
6517
|
)
|
|
6025
6518
|
] });
|
|
@@ -6027,15 +6520,15 @@ function Pagination({
|
|
|
6027
6520
|
|
|
6028
6521
|
// src/components/Kbd/Kbd.tsx
|
|
6029
6522
|
import styles59 from "./Kbd.module.css";
|
|
6030
|
-
import { jsx as
|
|
6523
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
6031
6524
|
function Kbd({ children, className }) {
|
|
6032
|
-
return /* @__PURE__ */
|
|
6525
|
+
return /* @__PURE__ */ jsx185("kbd", { className: [styles59.kbd, className].filter(Boolean).join(" "), children });
|
|
6033
6526
|
}
|
|
6034
6527
|
|
|
6035
6528
|
// src/components/Collapsible/Collapsible.tsx
|
|
6036
6529
|
import { useId as useId8 } from "react";
|
|
6037
6530
|
import styles60 from "./Collapsible.module.css";
|
|
6038
|
-
import { jsx as
|
|
6531
|
+
import { jsx as jsx186, jsxs as jsxs149 } from "react/jsx-runtime";
|
|
6039
6532
|
function Collapsible({
|
|
6040
6533
|
open,
|
|
6041
6534
|
onOpenChange,
|
|
@@ -6046,8 +6539,8 @@ function Collapsible({
|
|
|
6046
6539
|
}) {
|
|
6047
6540
|
const generatedId = useId8();
|
|
6048
6541
|
const contentId = `${id ?? generatedId}-content`;
|
|
6049
|
-
return /* @__PURE__ */
|
|
6050
|
-
/* @__PURE__ */
|
|
6542
|
+
return /* @__PURE__ */ jsxs149("div", { className: [styles60.root, className].filter(Boolean).join(" "), children: [
|
|
6543
|
+
/* @__PURE__ */ jsxs149(
|
|
6051
6544
|
"button",
|
|
6052
6545
|
{
|
|
6053
6546
|
type: "button",
|
|
@@ -6056,8 +6549,8 @@ function Collapsible({
|
|
|
6056
6549
|
"aria-controls": contentId,
|
|
6057
6550
|
onClick: () => onOpenChange(!open),
|
|
6058
6551
|
children: [
|
|
6059
|
-
/* @__PURE__ */
|
|
6060
|
-
/* @__PURE__ */
|
|
6552
|
+
/* @__PURE__ */ jsx186("span", { className: styles60.triggerLabel, children: trigger }),
|
|
6553
|
+
/* @__PURE__ */ jsx186(
|
|
6061
6554
|
Icon,
|
|
6062
6555
|
{
|
|
6063
6556
|
name: "chevron-down",
|
|
@@ -6069,14 +6562,14 @@ function Collapsible({
|
|
|
6069
6562
|
]
|
|
6070
6563
|
}
|
|
6071
6564
|
),
|
|
6072
|
-
/* @__PURE__ */
|
|
6565
|
+
/* @__PURE__ */ jsx186(
|
|
6073
6566
|
"div",
|
|
6074
6567
|
{
|
|
6075
6568
|
id: contentId,
|
|
6076
6569
|
className: styles60.contentWrapper,
|
|
6077
6570
|
"data-open": open,
|
|
6078
6571
|
inert: !open || void 0,
|
|
6079
|
-
children: /* @__PURE__ */
|
|
6572
|
+
children: /* @__PURE__ */ jsx186("div", { className: styles60.contentInner, children })
|
|
6080
6573
|
}
|
|
6081
6574
|
)
|
|
6082
6575
|
] });
|
|
@@ -6084,7 +6577,7 @@ function Collapsible({
|
|
|
6084
6577
|
|
|
6085
6578
|
// src/components/Accordion/Accordion.tsx
|
|
6086
6579
|
import styles61 from "./Accordion.module.css";
|
|
6087
|
-
import { jsx as
|
|
6580
|
+
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
6088
6581
|
function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
|
|
6089
6582
|
function handleOpenChange(id, open) {
|
|
6090
6583
|
if (type === "single") {
|
|
@@ -6093,7 +6586,7 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
|
|
|
6093
6586
|
}
|
|
6094
6587
|
onOpenIdsChange(open ? [...openIds, id] : openIds.filter((openId) => openId !== id));
|
|
6095
6588
|
}
|
|
6096
|
-
return /* @__PURE__ */
|
|
6589
|
+
return /* @__PURE__ */ jsx187("div", { className: [styles61.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx187(
|
|
6097
6590
|
Collapsible,
|
|
6098
6591
|
{
|
|
6099
6592
|
id: item.id,
|
|
@@ -6108,9 +6601,9 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
|
|
|
6108
6601
|
|
|
6109
6602
|
// src/components/AspectRatio/AspectRatio.tsx
|
|
6110
6603
|
import styles62 from "./AspectRatio.module.css";
|
|
6111
|
-
import { jsx as
|
|
6604
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
6112
6605
|
function AspectRatio({ ratio, children, className }) {
|
|
6113
|
-
return /* @__PURE__ */
|
|
6606
|
+
return /* @__PURE__ */ jsx188(
|
|
6114
6607
|
"div",
|
|
6115
6608
|
{
|
|
6116
6609
|
className: [styles62.root, className].filter(Boolean).join(" "),
|
|
@@ -6122,7 +6615,7 @@ function AspectRatio({ ratio, children, className }) {
|
|
|
6122
6615
|
|
|
6123
6616
|
// src/components/ButtonLink/ButtonLink.tsx
|
|
6124
6617
|
import styles63 from "./Button.module.css";
|
|
6125
|
-
import { jsx as
|
|
6618
|
+
import { jsx as jsx189 } from "react/jsx-runtime";
|
|
6126
6619
|
function ButtonLink({
|
|
6127
6620
|
variant = "primary",
|
|
6128
6621
|
size = "md",
|
|
@@ -6133,14 +6626,14 @@ function ButtonLink({
|
|
|
6133
6626
|
}) {
|
|
6134
6627
|
const classes = [styles63.button, styles63[variant], styles63[size], styles63.link, className].filter(Boolean).join(" ");
|
|
6135
6628
|
const props = { ...rest, className: classes, children };
|
|
6136
|
-
return renderLink ? renderLink(props) : /* @__PURE__ */
|
|
6629
|
+
return renderLink ? renderLink(props) : /* @__PURE__ */ jsx189("a", { ...rest, className: classes, children });
|
|
6137
6630
|
}
|
|
6138
6631
|
|
|
6139
6632
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6140
6633
|
import styles64 from "./ButtonGroup.module.css";
|
|
6141
|
-
import { jsx as
|
|
6634
|
+
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
6142
6635
|
function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
|
|
6143
|
-
return /* @__PURE__ */
|
|
6636
|
+
return /* @__PURE__ */ jsx190(
|
|
6144
6637
|
"div",
|
|
6145
6638
|
{
|
|
6146
6639
|
role: "group",
|
|
@@ -6153,7 +6646,7 @@ function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
|
|
|
6153
6646
|
|
|
6154
6647
|
// src/components/Item/Item.tsx
|
|
6155
6648
|
import styles65 from "./Item.module.css";
|
|
6156
|
-
import { Fragment as Fragment12, jsx as
|
|
6649
|
+
import { Fragment as Fragment12, jsx as jsx191, jsxs as jsxs150 } from "react/jsx-runtime";
|
|
6157
6650
|
function Item({
|
|
6158
6651
|
leading,
|
|
6159
6652
|
title,
|
|
@@ -6165,25 +6658,25 @@ function Item({
|
|
|
6165
6658
|
}) {
|
|
6166
6659
|
const interactive = Boolean(onClick);
|
|
6167
6660
|
const classes = [styles65.root, interactive ? styles65.interactive : "", className].filter(Boolean).join(" ");
|
|
6168
|
-
const content = /* @__PURE__ */
|
|
6169
|
-
leading && /* @__PURE__ */
|
|
6170
|
-
/* @__PURE__ */
|
|
6171
|
-
/* @__PURE__ */
|
|
6172
|
-
description && /* @__PURE__ */
|
|
6661
|
+
const content = /* @__PURE__ */ jsxs150(Fragment12, { children: [
|
|
6662
|
+
leading && /* @__PURE__ */ jsx191("span", { className: styles65.leading, children: leading }),
|
|
6663
|
+
/* @__PURE__ */ jsxs150("span", { className: styles65.content, children: [
|
|
6664
|
+
/* @__PURE__ */ jsx191("span", { className: styles65.title, children: title }),
|
|
6665
|
+
description && /* @__PURE__ */ jsx191("span", { className: styles65.description, children: description })
|
|
6173
6666
|
] }),
|
|
6174
|
-
trailing && /* @__PURE__ */
|
|
6667
|
+
trailing && /* @__PURE__ */ jsx191("span", { className: styles65.trailing, children: trailing })
|
|
6175
6668
|
] });
|
|
6176
6669
|
if (interactive) {
|
|
6177
|
-
return /* @__PURE__ */
|
|
6670
|
+
return /* @__PURE__ */ jsx191("button", { type: "button", onClick, disabled, className: classes, children: content });
|
|
6178
6671
|
}
|
|
6179
|
-
return /* @__PURE__ */
|
|
6672
|
+
return /* @__PURE__ */ jsx191("div", { className: classes, children: content });
|
|
6180
6673
|
}
|
|
6181
6674
|
|
|
6182
6675
|
// src/components/Label/Label.tsx
|
|
6183
6676
|
import styles66 from "./Label.module.css";
|
|
6184
|
-
import { jsx as
|
|
6677
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
6185
6678
|
function Label({ disabled, className, children, ...rest }) {
|
|
6186
|
-
return /* @__PURE__ */
|
|
6679
|
+
return /* @__PURE__ */ jsx192(
|
|
6187
6680
|
"label",
|
|
6188
6681
|
{
|
|
6189
6682
|
className: [styles66.label, disabled ? styles66.disabled : "", className].filter(Boolean).join(" "),
|
|
@@ -6195,43 +6688,43 @@ function Label({ disabled, className, children, ...rest }) {
|
|
|
6195
6688
|
|
|
6196
6689
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
6197
6690
|
import styles67 from "./ScrollArea.module.css";
|
|
6198
|
-
import { jsx as
|
|
6691
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
6199
6692
|
function ScrollArea({ children, maxHeight, maxWidth, className }) {
|
|
6200
6693
|
const style = {};
|
|
6201
6694
|
if (maxHeight !== void 0) style.maxHeight = maxHeight;
|
|
6202
6695
|
if (maxWidth !== void 0) style.maxWidth = maxWidth;
|
|
6203
|
-
return /* @__PURE__ */
|
|
6696
|
+
return /* @__PURE__ */ jsx193("div", { className: [styles67.root, className].filter(Boolean).join(" "), style, children });
|
|
6204
6697
|
}
|
|
6205
6698
|
|
|
6206
6699
|
// src/components/Marker/Marker.tsx
|
|
6207
6700
|
import styles68 from "./Marker.module.css";
|
|
6208
|
-
import { jsx as
|
|
6701
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
6209
6702
|
function Marker({ index, label, onClick, className }) {
|
|
6210
6703
|
const classes = [styles68.marker, className].filter(Boolean).join(" ");
|
|
6211
6704
|
if (onClick) {
|
|
6212
|
-
return /* @__PURE__ */
|
|
6705
|
+
return /* @__PURE__ */ jsx194("button", { type: "button", onClick, "aria-label": label, className: classes, children: index });
|
|
6213
6706
|
}
|
|
6214
|
-
return /* @__PURE__ */
|
|
6707
|
+
return /* @__PURE__ */ jsx194("span", { "aria-label": label, className: classes, children: index });
|
|
6215
6708
|
}
|
|
6216
6709
|
|
|
6217
6710
|
// src/components/Message/Message.tsx
|
|
6218
6711
|
import styles69 from "./Message.module.css";
|
|
6219
|
-
import { jsx as
|
|
6712
|
+
import { jsx as jsx195, jsxs as jsxs151 } from "react/jsx-runtime";
|
|
6220
6713
|
function Message({ sender, children, pending, actions, className }) {
|
|
6221
|
-
return /* @__PURE__ */
|
|
6222
|
-
/* @__PURE__ */
|
|
6223
|
-
/* @__PURE__ */
|
|
6224
|
-
/* @__PURE__ */
|
|
6225
|
-
/* @__PURE__ */
|
|
6714
|
+
return /* @__PURE__ */ jsxs151("div", { className: [styles69.row, styles69[sender], className].filter(Boolean).join(" "), children: [
|
|
6715
|
+
/* @__PURE__ */ jsx195("div", { className: styles69.bubble, children: pending ? /* @__PURE__ */ jsxs151("span", { className: styles69.typingDots, "aria-label": "Thinking", children: [
|
|
6716
|
+
/* @__PURE__ */ jsx195("span", { className: styles69.dot }),
|
|
6717
|
+
/* @__PURE__ */ jsx195("span", { className: styles69.dot }),
|
|
6718
|
+
/* @__PURE__ */ jsx195("span", { className: styles69.dot })
|
|
6226
6719
|
] }) : children }),
|
|
6227
|
-
actions && !pending && /* @__PURE__ */
|
|
6720
|
+
actions && !pending && /* @__PURE__ */ jsx195("div", { className: styles69.actions, children: actions })
|
|
6228
6721
|
] });
|
|
6229
6722
|
}
|
|
6230
6723
|
|
|
6231
6724
|
// src/components/MessageScroller/MessageScroller.tsx
|
|
6232
6725
|
import { useEffect as useEffect13, useRef as useRef19, useState as useState17 } from "react";
|
|
6233
6726
|
import styles70 from "./MessageScroller.module.css";
|
|
6234
|
-
import { jsx as
|
|
6727
|
+
import { jsx as jsx196, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
6235
6728
|
var NEAR_BOTTOM_THRESHOLD_PX = 80;
|
|
6236
6729
|
function MessageScroller({ children, className }) {
|
|
6237
6730
|
const containerRef = useRef19(null);
|
|
@@ -6262,19 +6755,19 @@ function MessageScroller({ children, className }) {
|
|
|
6262
6755
|
isNearBottomRef.current = true;
|
|
6263
6756
|
setHasNewMessages(false);
|
|
6264
6757
|
}
|
|
6265
|
-
return /* @__PURE__ */
|
|
6266
|
-
/* @__PURE__ */
|
|
6267
|
-
/* @__PURE__ */
|
|
6758
|
+
return /* @__PURE__ */ jsxs152("div", { className: [styles70.root, className].filter(Boolean).join(" "), children: [
|
|
6759
|
+
/* @__PURE__ */ jsxs152("div", { className: styles70.scrollContainer, ref: containerRef, onScroll: handleScroll, children: [
|
|
6760
|
+
/* @__PURE__ */ jsx196("div", { className: styles70.spacer, "aria-hidden": "true" }),
|
|
6268
6761
|
children
|
|
6269
6762
|
] }),
|
|
6270
|
-
hasNewMessages && /* @__PURE__ */
|
|
6763
|
+
hasNewMessages && /* @__PURE__ */ jsx196("button", { type: "button", className: styles70.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
|
|
6271
6764
|
] });
|
|
6272
6765
|
}
|
|
6273
6766
|
|
|
6274
6767
|
// src/components/HoverCard/HoverCard.tsx
|
|
6275
6768
|
import { cloneElement, useEffect as useEffect14, useRef as useRef20, useState as useState18 } from "react";
|
|
6276
6769
|
import styles71 from "./HoverCard.module.css";
|
|
6277
|
-
import { jsx as
|
|
6770
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
6278
6771
|
var OPEN_DELAY_MS = 400;
|
|
6279
6772
|
var CLOSE_DELAY_MS = 150;
|
|
6280
6773
|
function useHoverCapable() {
|
|
@@ -6319,13 +6812,13 @@ function HoverCard({
|
|
|
6319
6812
|
onBlur: scheduleClose
|
|
6320
6813
|
} : { onClick: () => setOpen((o) => !o) };
|
|
6321
6814
|
const wrappedTrigger = cloneElement(trigger, triggerHandlers);
|
|
6322
|
-
return /* @__PURE__ */
|
|
6815
|
+
return /* @__PURE__ */ jsx197(
|
|
6323
6816
|
"div",
|
|
6324
6817
|
{
|
|
6325
6818
|
className: styles71.root,
|
|
6326
6819
|
onMouseEnter: hoverCapable ? cancelScheduledClose : void 0,
|
|
6327
6820
|
onMouseLeave: hoverCapable ? scheduleClose : void 0,
|
|
6328
|
-
children: /* @__PURE__ */
|
|
6821
|
+
children: /* @__PURE__ */ jsx197(
|
|
6329
6822
|
Popover,
|
|
6330
6823
|
{
|
|
6331
6824
|
trigger: wrappedTrigger,
|
|
@@ -6343,7 +6836,7 @@ function HoverCard({
|
|
|
6343
6836
|
|
|
6344
6837
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
6345
6838
|
import { cloneElement as cloneElement2, useState as useState19 } from "react";
|
|
6346
|
-
import { Fragment as Fragment13, jsx as
|
|
6839
|
+
import { Fragment as Fragment13, jsx as jsx198, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
6347
6840
|
function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
6348
6841
|
const isMobile = useIsMobile();
|
|
6349
6842
|
const [open, setOpen] = useState19(false);
|
|
@@ -6361,7 +6854,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
|
6361
6854
|
children,
|
|
6362
6855
|
isMobile ? longPressHandlers : { onContextMenu: handleContextMenu }
|
|
6363
6856
|
);
|
|
6364
|
-
const list = /* @__PURE__ */
|
|
6857
|
+
const list = /* @__PURE__ */ jsx198(
|
|
6365
6858
|
MenuEntries,
|
|
6366
6859
|
{
|
|
6367
6860
|
items,
|
|
@@ -6372,17 +6865,17 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
|
6372
6865
|
}
|
|
6373
6866
|
);
|
|
6374
6867
|
if (isMobile) {
|
|
6375
|
-
return /* @__PURE__ */
|
|
6868
|
+
return /* @__PURE__ */ jsxs153(Fragment13, { children: [
|
|
6376
6869
|
wrappedChild,
|
|
6377
|
-
/* @__PURE__ */
|
|
6870
|
+
/* @__PURE__ */ jsx198(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
|
|
6378
6871
|
] });
|
|
6379
6872
|
}
|
|
6380
|
-
return /* @__PURE__ */
|
|
6873
|
+
return /* @__PURE__ */ jsxs153(Fragment13, { children: [
|
|
6381
6874
|
wrappedChild,
|
|
6382
|
-
open && /* @__PURE__ */
|
|
6875
|
+
open && /* @__PURE__ */ jsx198("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx198(
|
|
6383
6876
|
Popover,
|
|
6384
6877
|
{
|
|
6385
|
-
trigger: /* @__PURE__ */
|
|
6878
|
+
trigger: /* @__PURE__ */ jsx198("span", {}),
|
|
6386
6879
|
open,
|
|
6387
6880
|
onClose: () => setOpen(false),
|
|
6388
6881
|
"aria-label": ariaLabel,
|
|
@@ -6395,7 +6888,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
|
6395
6888
|
// src/components/NavigationMenu/NavigationMenu.tsx
|
|
6396
6889
|
import { useRef as useRef21, useState as useState20 } from "react";
|
|
6397
6890
|
import styles72 from "./NavigationMenu.module.css";
|
|
6398
|
-
import { jsx as
|
|
6891
|
+
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
6399
6892
|
function NavigationMenu({
|
|
6400
6893
|
items,
|
|
6401
6894
|
renderLink,
|
|
@@ -6416,19 +6909,19 @@ function NavigationMenu({
|
|
|
6416
6909
|
triggerRefs.current[nextIndex]?.focus();
|
|
6417
6910
|
}
|
|
6418
6911
|
}
|
|
6419
|
-
return /* @__PURE__ */
|
|
6912
|
+
return /* @__PURE__ */ jsx199("nav", { "aria-label": ariaLabel, className: styles72.nav, children: /* @__PURE__ */ jsx199("ul", { className: styles72.list, children: items.map((item, index) => {
|
|
6420
6913
|
if (!item.content) {
|
|
6421
6914
|
const linkChildren = item.label;
|
|
6422
|
-
return /* @__PURE__ */
|
|
6915
|
+
return /* @__PURE__ */ jsx199("li", { children: item.href && renderLink ? renderLink(item.href, linkChildren) : /* @__PURE__ */ jsx199("a", { href: item.href, className: styles72.link, children: linkChildren }) }, item.label);
|
|
6423
6916
|
}
|
|
6424
6917
|
const isOpen = openIndex === index;
|
|
6425
|
-
return /* @__PURE__ */
|
|
6918
|
+
return /* @__PURE__ */ jsx199("li", { children: /* @__PURE__ */ jsx199(
|
|
6426
6919
|
Popover,
|
|
6427
6920
|
{
|
|
6428
6921
|
"aria-label": item.label,
|
|
6429
6922
|
open: isOpen,
|
|
6430
6923
|
onClose: () => setOpenIndex((current) => current === index ? null : current),
|
|
6431
|
-
trigger: /* @__PURE__ */
|
|
6924
|
+
trigger: /* @__PURE__ */ jsx199(
|
|
6432
6925
|
"button",
|
|
6433
6926
|
{
|
|
6434
6927
|
ref: (el) => {
|
|
@@ -6452,15 +6945,15 @@ function NavigationMenu({
|
|
|
6452
6945
|
}
|
|
6453
6946
|
|
|
6454
6947
|
// src/components/Menubar/Menubar.tsx
|
|
6455
|
-
import { jsx as
|
|
6948
|
+
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
6456
6949
|
function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
|
|
6457
|
-
return /* @__PURE__ */
|
|
6950
|
+
return /* @__PURE__ */ jsx200(
|
|
6458
6951
|
NavigationMenu,
|
|
6459
6952
|
{
|
|
6460
6953
|
"aria-label": ariaLabel,
|
|
6461
6954
|
items: menus.map((menu) => ({
|
|
6462
6955
|
label: menu.label,
|
|
6463
|
-
content: (close) => /* @__PURE__ */
|
|
6956
|
+
content: (close) => /* @__PURE__ */ jsx200(
|
|
6464
6957
|
MenuEntries,
|
|
6465
6958
|
{
|
|
6466
6959
|
items: menu.items,
|
|
@@ -6478,7 +6971,7 @@ function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
|
|
|
6478
6971
|
// src/components/Command/Command.tsx
|
|
6479
6972
|
import { useEffect as useEffect15, useId as useId9, useMemo as useMemo3, useRef as useRef22, useState as useState21 } from "react";
|
|
6480
6973
|
import styles73 from "./Command.module.css";
|
|
6481
|
-
import { jsx as
|
|
6974
|
+
import { jsx as jsx201, jsxs as jsxs154 } from "react/jsx-runtime";
|
|
6482
6975
|
function matches(item, query) {
|
|
6483
6976
|
if (!query) return true;
|
|
6484
6977
|
const haystack = `${item.label} ${item.keywords ?? ""}`.toLowerCase();
|
|
@@ -6536,8 +7029,8 @@ function Command({
|
|
|
6536
7029
|
return order.map((group) => ({ group, items: byGroup.get(group) ?? [] }));
|
|
6537
7030
|
}, [filtered]);
|
|
6538
7031
|
const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].id}` : void 0;
|
|
6539
|
-
return /* @__PURE__ */
|
|
6540
|
-
/* @__PURE__ */
|
|
7032
|
+
return /* @__PURE__ */ jsx201(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs154("div", { className: styles73.root, children: [
|
|
7033
|
+
/* @__PURE__ */ jsx201(
|
|
6541
7034
|
"input",
|
|
6542
7035
|
{
|
|
6543
7036
|
ref: inputRef,
|
|
@@ -6554,14 +7047,14 @@ function Command({
|
|
|
6554
7047
|
onKeyDown: handleKeyDown
|
|
6555
7048
|
}
|
|
6556
7049
|
),
|
|
6557
|
-
/* @__PURE__ */
|
|
6558
|
-
filtered.length === 0 && /* @__PURE__ */
|
|
6559
|
-
groups.map(({ group, items: groupItems }) => /* @__PURE__ */
|
|
6560
|
-
group && /* @__PURE__ */
|
|
6561
|
-
/* @__PURE__ */
|
|
7050
|
+
/* @__PURE__ */ jsxs154("ul", { id: listId, role: "listbox", className: styles73.list, children: [
|
|
7051
|
+
filtered.length === 0 && /* @__PURE__ */ jsx201("li", { className: styles73.empty, children: "No matching commands." }),
|
|
7052
|
+
groups.map(({ group, items: groupItems }) => /* @__PURE__ */ jsxs154("li", { children: [
|
|
7053
|
+
group && /* @__PURE__ */ jsx201("div", { className: styles73.groupLabel, children: group }),
|
|
7054
|
+
/* @__PURE__ */ jsx201("ul", { className: styles73.groupList, children: groupItems.map((item) => {
|
|
6562
7055
|
const index = filtered.indexOf(item);
|
|
6563
7056
|
const isHighlighted = index === highlightedIndex;
|
|
6564
|
-
return /* @__PURE__ */
|
|
7057
|
+
return /* @__PURE__ */ jsx201("li", { children: /* @__PURE__ */ jsxs154(
|
|
6565
7058
|
"button",
|
|
6566
7059
|
{
|
|
6567
7060
|
id: `${listId}-${item.id}`,
|
|
@@ -6575,7 +7068,7 @@ function Command({
|
|
|
6575
7068
|
item.onSelect();
|
|
6576
7069
|
},
|
|
6577
7070
|
children: [
|
|
6578
|
-
item.icon && /* @__PURE__ */
|
|
7071
|
+
item.icon && /* @__PURE__ */ jsx201(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
|
|
6579
7072
|
item.label
|
|
6580
7073
|
]
|
|
6581
7074
|
}
|
|
@@ -6589,9 +7082,9 @@ function Command({
|
|
|
6589
7082
|
// src/components/Resizable/Resizable.tsx
|
|
6590
7083
|
import { Children, isValidElement, useEffect as useEffect16, useRef as useRef23, useState as useState22 } from "react";
|
|
6591
7084
|
import styles74 from "./Resizable.module.css";
|
|
6592
|
-
import { jsx as
|
|
7085
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
6593
7086
|
function ResizablePanel({ children, className, style }) {
|
|
6594
|
-
return /* @__PURE__ */
|
|
7087
|
+
return /* @__PURE__ */ jsx202("div", { className: [styles74.panel, className].filter(Boolean).join(" "), style, children });
|
|
6595
7088
|
}
|
|
6596
7089
|
function ResizableHandle({
|
|
6597
7090
|
"aria-label": ariaLabel = "Resize panels",
|
|
@@ -6604,7 +7097,7 @@ function ResizableHandle({
|
|
|
6604
7097
|
}) {
|
|
6605
7098
|
return (
|
|
6606
7099
|
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-noninteractive-tabindex -- WAI-ARIA "window splitter" pattern: a focusable, keyboard-operable separator is the documented exception to role="separator" being non-interactive (https://www.w3.org/WAI/ARIA/apg/patterns/windowsplitter/). */
|
|
6607
|
-
/* @__PURE__ */
|
|
7100
|
+
/* @__PURE__ */ jsx202(
|
|
6608
7101
|
"div",
|
|
6609
7102
|
{
|
|
6610
7103
|
className: [styles74.handle, direction === "vertical" ? styles74.handleVertical : ""].filter(Boolean).join(" "),
|
|
@@ -6718,7 +7211,7 @@ function ResizablePanelGroup({ direction, children, className }) {
|
|
|
6718
7211
|
}
|
|
6719
7212
|
let panelIndex = -1;
|
|
6720
7213
|
let handleIndex = -1;
|
|
6721
|
-
return /* @__PURE__ */
|
|
7214
|
+
return /* @__PURE__ */ jsx202(
|
|
6722
7215
|
"div",
|
|
6723
7216
|
{
|
|
6724
7217
|
ref: containerRef,
|
|
@@ -6727,7 +7220,7 @@ function ResizablePanelGroup({ direction, children, className }) {
|
|
|
6727
7220
|
if (element.type === ResizablePanel) {
|
|
6728
7221
|
panelIndex += 1;
|
|
6729
7222
|
const size = sizes[panelIndex] ?? constraints[panelIndex]?.defaultSize ?? 0;
|
|
6730
|
-
return /* @__PURE__ */
|
|
7223
|
+
return /* @__PURE__ */ jsx202(
|
|
6731
7224
|
ResizablePanelClone,
|
|
6732
7225
|
{
|
|
6733
7226
|
element,
|
|
@@ -6740,7 +7233,7 @@ function ResizablePanelGroup({ direction, children, className }) {
|
|
|
6740
7233
|
handleIndex += 1;
|
|
6741
7234
|
const index = handleIndex;
|
|
6742
7235
|
const constraint = constraints[index];
|
|
6743
|
-
return /* @__PURE__ */
|
|
7236
|
+
return /* @__PURE__ */ jsx202(
|
|
6744
7237
|
ResizableHandleClone,
|
|
6745
7238
|
{
|
|
6746
7239
|
element,
|
|
@@ -6769,19 +7262,19 @@ function ResizablePanelClone({
|
|
|
6769
7262
|
flexGrow: 0,
|
|
6770
7263
|
flexShrink: 0
|
|
6771
7264
|
};
|
|
6772
|
-
return /* @__PURE__ */
|
|
7265
|
+
return /* @__PURE__ */ jsx202(ResizablePanel, { ...element.props, style });
|
|
6773
7266
|
}
|
|
6774
7267
|
function ResizableHandleClone({
|
|
6775
7268
|
element,
|
|
6776
7269
|
...injected
|
|
6777
7270
|
}) {
|
|
6778
|
-
return /* @__PURE__ */
|
|
7271
|
+
return /* @__PURE__ */ jsx202(ResizableHandle, { ...element.props, ...injected });
|
|
6779
7272
|
}
|
|
6780
7273
|
|
|
6781
7274
|
// src/components/DataTable/DataTable.tsx
|
|
6782
7275
|
import { useMemo as useMemo4, useState as useState23 } from "react";
|
|
6783
7276
|
import styles75 from "./DataTable.module.css";
|
|
6784
|
-
import { jsx as
|
|
7277
|
+
import { jsx as jsx203, jsxs as jsxs155 } from "react/jsx-runtime";
|
|
6785
7278
|
function compareValues(a, b) {
|
|
6786
7279
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
6787
7280
|
return String(a).localeCompare(String(b));
|
|
@@ -6817,18 +7310,18 @@ function DataTable({
|
|
|
6817
7310
|
}
|
|
6818
7311
|
}
|
|
6819
7312
|
if (data.length === 0) {
|
|
6820
|
-
return /* @__PURE__ */
|
|
7313
|
+
return /* @__PURE__ */ jsx203(EmptyState, { heading: emptyMessage });
|
|
6821
7314
|
}
|
|
6822
|
-
return /* @__PURE__ */
|
|
6823
|
-
/* @__PURE__ */
|
|
7315
|
+
return /* @__PURE__ */ jsxs155(Table, { className, children: [
|
|
7316
|
+
/* @__PURE__ */ jsx203(TableHead, { children: /* @__PURE__ */ jsx203(TableRow, { children: columns.map((column) => {
|
|
6824
7317
|
const isSorted = sortKey === column.key;
|
|
6825
7318
|
const ariaSort = !column.sortable ? void 0 : isSorted ? sortDirection === "asc" ? "ascending" : "descending" : "none";
|
|
6826
|
-
return /* @__PURE__ */
|
|
7319
|
+
return /* @__PURE__ */ jsx203(
|
|
6827
7320
|
TableHeaderCell,
|
|
6828
7321
|
{
|
|
6829
7322
|
"aria-sort": ariaSort,
|
|
6830
7323
|
style: column.align === "end" ? { textAlign: "end" } : void 0,
|
|
6831
|
-
children: column.sortable ? /* @__PURE__ */
|
|
7324
|
+
children: column.sortable ? /* @__PURE__ */ jsxs155(
|
|
6832
7325
|
"button",
|
|
6833
7326
|
{
|
|
6834
7327
|
type: "button",
|
|
@@ -6836,7 +7329,7 @@ function DataTable({
|
|
|
6836
7329
|
onClick: () => handleSort(column),
|
|
6837
7330
|
children: [
|
|
6838
7331
|
column.header,
|
|
6839
|
-
/* @__PURE__ */
|
|
7332
|
+
/* @__PURE__ */ jsx203("span", { className: styles75.sortIcon, children: isSorted && /* @__PURE__ */ jsx203(
|
|
6840
7333
|
Icon,
|
|
6841
7334
|
{
|
|
6842
7335
|
name: sortDirection === "asc" ? "chevron-up" : "chevron-down",
|
|
@@ -6851,7 +7344,7 @@ function DataTable({
|
|
|
6851
7344
|
column.key
|
|
6852
7345
|
);
|
|
6853
7346
|
}) }) }),
|
|
6854
|
-
/* @__PURE__ */
|
|
7347
|
+
/* @__PURE__ */ jsx203(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx203(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx203(
|
|
6855
7348
|
TableCell,
|
|
6856
7349
|
{
|
|
6857
7350
|
style: column.align === "end" ? { textAlign: "end" } : void 0,
|
|
@@ -6865,7 +7358,7 @@ function DataTable({
|
|
|
6865
7358
|
// src/components/Combobox/Combobox.tsx
|
|
6866
7359
|
import { useEffect as useEffect17, useId as useId10, useMemo as useMemo5, useRef as useRef24, useState as useState24 } from "react";
|
|
6867
7360
|
import styles76 from "./Combobox.module.css";
|
|
6868
|
-
import { Fragment as Fragment14, jsx as
|
|
7361
|
+
import { Fragment as Fragment14, jsx as jsx204, jsxs as jsxs156 } from "react/jsx-runtime";
|
|
6869
7362
|
function matches2(option, query) {
|
|
6870
7363
|
if (!query) return true;
|
|
6871
7364
|
return option.label.toLowerCase().includes(query.toLowerCase());
|
|
@@ -6919,7 +7412,7 @@ function Combobox({
|
|
|
6919
7412
|
}
|
|
6920
7413
|
}
|
|
6921
7414
|
const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].value}` : void 0;
|
|
6922
|
-
const trigger = /* @__PURE__ */
|
|
7415
|
+
const trigger = /* @__PURE__ */ jsxs156(
|
|
6923
7416
|
"button",
|
|
6924
7417
|
{
|
|
6925
7418
|
type: "button",
|
|
@@ -6930,13 +7423,13 @@ function Combobox({
|
|
|
6930
7423
|
"aria-expanded": open,
|
|
6931
7424
|
onClick: () => setOpen((o) => !o),
|
|
6932
7425
|
children: [
|
|
6933
|
-
/* @__PURE__ */
|
|
6934
|
-
/* @__PURE__ */
|
|
7426
|
+
/* @__PURE__ */ jsx204("span", { className: selected ? styles76.triggerValue : styles76.triggerPlaceholder, children: selected ? selected.label : placeholder }),
|
|
7427
|
+
/* @__PURE__ */ jsx204(Icon, { name: "chevron-down", size: "sm", "aria-hidden": true })
|
|
6935
7428
|
]
|
|
6936
7429
|
}
|
|
6937
7430
|
);
|
|
6938
|
-
const body = /* @__PURE__ */
|
|
6939
|
-
/* @__PURE__ */
|
|
7431
|
+
const body = /* @__PURE__ */ jsxs156("div", { className: styles76.body, children: [
|
|
7432
|
+
/* @__PURE__ */ jsx204(
|
|
6940
7433
|
"input",
|
|
6941
7434
|
{
|
|
6942
7435
|
ref: inputRef,
|
|
@@ -6953,12 +7446,12 @@ function Combobox({
|
|
|
6953
7446
|
onKeyDown: handleKeyDown
|
|
6954
7447
|
}
|
|
6955
7448
|
),
|
|
6956
|
-
/* @__PURE__ */
|
|
6957
|
-
filtered.length === 0 && /* @__PURE__ */
|
|
7449
|
+
/* @__PURE__ */ jsxs156("ul", { id: listId, role: "listbox", className: styles76.list, children: [
|
|
7450
|
+
filtered.length === 0 && /* @__PURE__ */ jsx204("li", { className: styles76.empty, children: emptyMessage }),
|
|
6958
7451
|
filtered.map((option, index) => {
|
|
6959
7452
|
const isHighlighted = index === highlightedIndex;
|
|
6960
7453
|
const isSelected = option.value === value;
|
|
6961
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ jsx204("li", { children: /* @__PURE__ */ jsxs156(
|
|
6962
7455
|
"button",
|
|
6963
7456
|
{
|
|
6964
7457
|
id: `${listId}-${option.value}`,
|
|
@@ -6969,7 +7462,7 @@ function Combobox({
|
|
|
6969
7462
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
6970
7463
|
onClick: () => commit(option),
|
|
6971
7464
|
children: [
|
|
6972
|
-
/* @__PURE__ */
|
|
7465
|
+
/* @__PURE__ */ jsx204("span", { className: styles76.check, children: isSelected && /* @__PURE__ */ jsx204(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
|
|
6973
7466
|
option.label
|
|
6974
7467
|
]
|
|
6975
7468
|
}
|
|
@@ -6978,12 +7471,12 @@ function Combobox({
|
|
|
6978
7471
|
] })
|
|
6979
7472
|
] });
|
|
6980
7473
|
if (isMobile) {
|
|
6981
|
-
return /* @__PURE__ */
|
|
7474
|
+
return /* @__PURE__ */ jsxs156(Fragment14, { children: [
|
|
6982
7475
|
trigger,
|
|
6983
|
-
/* @__PURE__ */
|
|
7476
|
+
/* @__PURE__ */ jsx204(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
|
|
6984
7477
|
] });
|
|
6985
7478
|
}
|
|
6986
|
-
return /* @__PURE__ */
|
|
7479
|
+
return /* @__PURE__ */ jsx204(
|
|
6987
7480
|
Popover,
|
|
6988
7481
|
{
|
|
6989
7482
|
trigger,
|
|
@@ -6997,9 +7490,9 @@ function Combobox({
|
|
|
6997
7490
|
}
|
|
6998
7491
|
|
|
6999
7492
|
// src/components/GripIcon/GripIcon.tsx
|
|
7000
|
-
import { jsx as
|
|
7493
|
+
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
7001
7494
|
function GripIcon({ size = 14, className }) {
|
|
7002
|
-
return /* @__PURE__ */
|
|
7495
|
+
return /* @__PURE__ */ jsx205(
|
|
7003
7496
|
"svg",
|
|
7004
7497
|
{
|
|
7005
7498
|
width: size,
|
|
@@ -7009,7 +7502,7 @@ function GripIcon({ size = 14, className }) {
|
|
|
7009
7502
|
"aria-hidden": "true",
|
|
7010
7503
|
className,
|
|
7011
7504
|
children: [3, 7, 11].map(
|
|
7012
|
-
(cy) => [4, 10].map((cx) => /* @__PURE__ */
|
|
7505
|
+
(cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx205("circle", { cx, cy, r: 1.2, fill: "currentColor" }, `${cx}-${cy}`))
|
|
7013
7506
|
)
|
|
7014
7507
|
}
|
|
7015
7508
|
);
|
|
@@ -7017,7 +7510,7 @@ function GripIcon({ size = 14, className }) {
|
|
|
7017
7510
|
|
|
7018
7511
|
// src/components/DragHandleRow/DragHandleRow.tsx
|
|
7019
7512
|
import styles77 from "./DragHandleRow.module.css";
|
|
7020
|
-
import { jsx as
|
|
7513
|
+
import { jsx as jsx206, jsxs as jsxs157 } from "react/jsx-runtime";
|
|
7021
7514
|
function DragHandleRow({
|
|
7022
7515
|
children,
|
|
7023
7516
|
handleProps,
|
|
@@ -7025,13 +7518,13 @@ function DragHandleRow({
|
|
|
7025
7518
|
className,
|
|
7026
7519
|
...rest
|
|
7027
7520
|
}) {
|
|
7028
|
-
return /* @__PURE__ */
|
|
7521
|
+
return /* @__PURE__ */ jsxs157(
|
|
7029
7522
|
"div",
|
|
7030
7523
|
{
|
|
7031
7524
|
...rest,
|
|
7032
7525
|
className: [styles77.row, isDragging ? styles77.dragging : "", className].filter(Boolean).join(" "),
|
|
7033
7526
|
children: [
|
|
7034
|
-
/* @__PURE__ */
|
|
7527
|
+
/* @__PURE__ */ jsx206(
|
|
7035
7528
|
"button",
|
|
7036
7529
|
{
|
|
7037
7530
|
type: "button",
|
|
@@ -7039,10 +7532,10 @@ function DragHandleRow({
|
|
|
7039
7532
|
className: styles77.handle,
|
|
7040
7533
|
tabIndex: -1,
|
|
7041
7534
|
...handleProps,
|
|
7042
|
-
children: /* @__PURE__ */
|
|
7535
|
+
children: /* @__PURE__ */ jsx206(GripIcon, { className: styles77.icon })
|
|
7043
7536
|
}
|
|
7044
7537
|
),
|
|
7045
|
-
/* @__PURE__ */
|
|
7538
|
+
/* @__PURE__ */ jsx206("div", { className: styles77.content, children })
|
|
7046
7539
|
]
|
|
7047
7540
|
}
|
|
7048
7541
|
);
|
|
@@ -7050,7 +7543,7 @@ function DragHandleRow({
|
|
|
7050
7543
|
|
|
7051
7544
|
// src/components/StepStrip/StepStrip.tsx
|
|
7052
7545
|
import styles78 from "./StepStrip.module.css";
|
|
7053
|
-
import { jsx as
|
|
7546
|
+
import { jsx as jsx207, jsxs as jsxs158 } from "react/jsx-runtime";
|
|
7054
7547
|
function StepStrip({
|
|
7055
7548
|
items,
|
|
7056
7549
|
activeId,
|
|
@@ -7060,16 +7553,16 @@ function StepStrip({
|
|
|
7060
7553
|
className,
|
|
7061
7554
|
"aria-label": ariaLabel
|
|
7062
7555
|
}) {
|
|
7063
|
-
return /* @__PURE__ */
|
|
7556
|
+
return /* @__PURE__ */ jsxs158(
|
|
7064
7557
|
"div",
|
|
7065
7558
|
{
|
|
7066
7559
|
className: [styles78.strip, className].filter(Boolean).join(" "),
|
|
7067
7560
|
role: "list",
|
|
7068
7561
|
"aria-label": ariaLabel,
|
|
7069
7562
|
children: [
|
|
7070
|
-
items.map((item, index) => /* @__PURE__ */
|
|
7563
|
+
items.map((item, index) => /* @__PURE__ */ jsxs158("div", { className: styles78.step, role: "listitem", children: [
|
|
7071
7564
|
renderItem(item, { isActive: item.id === activeId, index }),
|
|
7072
|
-
(index < items.length - 1 || onAdd) && /* @__PURE__ */
|
|
7565
|
+
(index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx207(
|
|
7073
7566
|
"div",
|
|
7074
7567
|
{
|
|
7075
7568
|
className: [
|
|
@@ -7080,8 +7573,8 @@ function StepStrip({
|
|
|
7080
7573
|
}
|
|
7081
7574
|
)
|
|
7082
7575
|
] }, item.id)),
|
|
7083
|
-
onAdd && /* @__PURE__ */
|
|
7084
|
-
/* @__PURE__ */
|
|
7576
|
+
onAdd && /* @__PURE__ */ jsxs158("button", { type: "button", className: styles78.addChip, onClick: onAdd, children: [
|
|
7577
|
+
/* @__PURE__ */ jsx207(Icon, { name: "plus", size: "sm", "aria-hidden": true }),
|
|
7085
7578
|
addLabel
|
|
7086
7579
|
] })
|
|
7087
7580
|
]
|
|
@@ -7092,7 +7585,7 @@ function StepStrip({
|
|
|
7092
7585
|
// src/components/FileDropzone/FileDropzone.tsx
|
|
7093
7586
|
import { useRef as useRef25, useState as useState25 } from "react";
|
|
7094
7587
|
import styles79 from "./FileDropzone.module.css";
|
|
7095
|
-
import { jsx as
|
|
7588
|
+
import { jsx as jsx208, jsxs as jsxs159 } from "react/jsx-runtime";
|
|
7096
7589
|
function FileDropzone({
|
|
7097
7590
|
name,
|
|
7098
7591
|
accept,
|
|
@@ -7106,7 +7599,7 @@ function FileDropzone({
|
|
|
7106
7599
|
}) {
|
|
7107
7600
|
const [dragging, setDragging] = useState25(false);
|
|
7108
7601
|
const inputRef = useRef25(null);
|
|
7109
|
-
return /* @__PURE__ */
|
|
7602
|
+
return /* @__PURE__ */ jsxs159(
|
|
7110
7603
|
"label",
|
|
7111
7604
|
{
|
|
7112
7605
|
className: [
|
|
@@ -7135,12 +7628,12 @@ function FileDropzone({
|
|
|
7135
7628
|
onFileSelect(dropped);
|
|
7136
7629
|
},
|
|
7137
7630
|
children: [
|
|
7138
|
-
/* @__PURE__ */
|
|
7139
|
-
/* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7141
|
-
hint && /* @__PURE__ */
|
|
7631
|
+
/* @__PURE__ */ jsx208("span", { className: styles79.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx208(Icon, { name: "file", size: "lg", "aria-hidden": true }) }),
|
|
7632
|
+
/* @__PURE__ */ jsxs159("span", { className: styles79.text, children: [
|
|
7633
|
+
/* @__PURE__ */ jsx208("span", { className: styles79.title, children: label }),
|
|
7634
|
+
hint && /* @__PURE__ */ jsx208("span", { className: styles79.hint, children: hint })
|
|
7142
7635
|
] }),
|
|
7143
|
-
/* @__PURE__ */
|
|
7636
|
+
/* @__PURE__ */ jsx208(
|
|
7144
7637
|
"input",
|
|
7145
7638
|
{
|
|
7146
7639
|
ref: inputRef,
|
|
@@ -7226,7 +7719,7 @@ function formatDateLabel(date) {
|
|
|
7226
7719
|
|
|
7227
7720
|
// src/components/Calendar/Calendar.tsx
|
|
7228
7721
|
import styles80 from "./Calendar.module.css";
|
|
7229
|
-
import { jsx as
|
|
7722
|
+
import { jsx as jsx209, jsxs as jsxs160 } from "react/jsx-runtime";
|
|
7230
7723
|
var WEEKDAY_LABEL_WEEK = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
|
|
7231
7724
|
function Calendar({
|
|
7232
7725
|
value,
|
|
@@ -7296,31 +7789,31 @@ function Calendar({
|
|
|
7296
7789
|
default:
|
|
7297
7790
|
}
|
|
7298
7791
|
}
|
|
7299
|
-
return /* @__PURE__ */
|
|
7300
|
-
/* @__PURE__ */
|
|
7301
|
-
/* @__PURE__ */
|
|
7792
|
+
return /* @__PURE__ */ jsxs160("div", { className: styles80.calendar, "aria-label": ariaLabel, children: [
|
|
7793
|
+
/* @__PURE__ */ jsxs160("div", { className: styles80.header, children: [
|
|
7794
|
+
/* @__PURE__ */ jsx209(
|
|
7302
7795
|
"button",
|
|
7303
7796
|
{
|
|
7304
7797
|
type: "button",
|
|
7305
7798
|
className: styles80.navButton,
|
|
7306
7799
|
"aria-label": "Previous month",
|
|
7307
7800
|
onClick: () => goToMonth(addMonths(displayedMonth, -1)),
|
|
7308
|
-
children: /* @__PURE__ */
|
|
7801
|
+
children: /* @__PURE__ */ jsx209(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
|
|
7309
7802
|
}
|
|
7310
7803
|
),
|
|
7311
|
-
/* @__PURE__ */
|
|
7312
|
-
/* @__PURE__ */
|
|
7804
|
+
/* @__PURE__ */ jsx209("span", { className: styles80.monthLabel, children: formatMonthYear(displayedMonth) }),
|
|
7805
|
+
/* @__PURE__ */ jsx209(
|
|
7313
7806
|
"button",
|
|
7314
7807
|
{
|
|
7315
7808
|
type: "button",
|
|
7316
7809
|
className: styles80.navButton,
|
|
7317
7810
|
"aria-label": "Next month",
|
|
7318
7811
|
onClick: () => goToMonth(addMonths(displayedMonth, 1)),
|
|
7319
|
-
children: /* @__PURE__ */
|
|
7812
|
+
children: /* @__PURE__ */ jsx209(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
|
|
7320
7813
|
}
|
|
7321
7814
|
)
|
|
7322
7815
|
] }),
|
|
7323
|
-
/* @__PURE__ */
|
|
7816
|
+
/* @__PURE__ */ jsxs160(
|
|
7324
7817
|
"div",
|
|
7325
7818
|
{
|
|
7326
7819
|
ref: gridRef,
|
|
@@ -7330,17 +7823,17 @@ function Calendar({
|
|
|
7330
7823
|
onKeyDown: handleKeyDown,
|
|
7331
7824
|
tabIndex: -1,
|
|
7332
7825
|
children: [
|
|
7333
|
-
/* @__PURE__ */
|
|
7826
|
+
/* @__PURE__ */ jsx209("div", { role: "row", className: styles80.weekdayRow, children: WEEKDAY_LABEL_WEEK.map((d) => /* @__PURE__ */ jsx209("span", { role: "columnheader", className: styles80.weekday, "aria-hidden": true, children: formatWeekdayShort(d) }, d.getDay())) }),
|
|
7334
7827
|
weeks.map((week) => {
|
|
7335
7828
|
const firstDayOfWeek = week[0];
|
|
7336
7829
|
if (!firstDayOfWeek) return null;
|
|
7337
|
-
return /* @__PURE__ */
|
|
7830
|
+
return /* @__PURE__ */ jsx209("div", { role: "row", className: styles80.week, children: week.map((date) => {
|
|
7338
7831
|
const isCurrentMonth = isSameMonth(date, displayedMonth);
|
|
7339
7832
|
const isSelected = value !== null && isSameDay(date, value);
|
|
7340
7833
|
const isToday = isSameDay(date, /* @__PURE__ */ new Date());
|
|
7341
7834
|
const isFocusTarget = isSameDay(date, focusedDate);
|
|
7342
7835
|
const disabled = !isWithinRange(date, minDate, maxDate);
|
|
7343
|
-
return /* @__PURE__ */
|
|
7836
|
+
return /* @__PURE__ */ jsx209("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx209(
|
|
7344
7837
|
"button",
|
|
7345
7838
|
{
|
|
7346
7839
|
type: "button",
|
|
@@ -7370,7 +7863,7 @@ function Calendar({
|
|
|
7370
7863
|
// src/components/DatePicker/DatePicker.tsx
|
|
7371
7864
|
import { useState as useState27 } from "react";
|
|
7372
7865
|
import styles81 from "./DatePicker.module.css";
|
|
7373
|
-
import { Fragment as Fragment15, jsx as
|
|
7866
|
+
import { Fragment as Fragment15, jsx as jsx210, jsxs as jsxs161 } from "react/jsx-runtime";
|
|
7374
7867
|
var POPOVER_WIDTH = 320;
|
|
7375
7868
|
function DatePicker({
|
|
7376
7869
|
value,
|
|
@@ -7387,7 +7880,7 @@ function DatePicker({
|
|
|
7387
7880
|
onChange(date);
|
|
7388
7881
|
setOpen(false);
|
|
7389
7882
|
}
|
|
7390
|
-
const trigger = /* @__PURE__ */
|
|
7883
|
+
const trigger = /* @__PURE__ */ jsxs161(
|
|
7391
7884
|
"button",
|
|
7392
7885
|
{
|
|
7393
7886
|
type: "button",
|
|
@@ -7398,12 +7891,12 @@ function DatePicker({
|
|
|
7398
7891
|
"aria-expanded": open,
|
|
7399
7892
|
onClick: () => setOpen((o) => !o),
|
|
7400
7893
|
children: [
|
|
7401
|
-
/* @__PURE__ */
|
|
7402
|
-
/* @__PURE__ */
|
|
7894
|
+
/* @__PURE__ */ jsx210("span", { className: value ? styles81.triggerValue : styles81.triggerPlaceholder, children: value ? formatDateShort(value) : placeholder }),
|
|
7895
|
+
/* @__PURE__ */ jsx210(Icon, { name: "calendar", size: "sm", "aria-hidden": true })
|
|
7403
7896
|
]
|
|
7404
7897
|
}
|
|
7405
7898
|
);
|
|
7406
|
-
const calendar = /* @__PURE__ */
|
|
7899
|
+
const calendar = /* @__PURE__ */ jsx210(
|
|
7407
7900
|
Calendar,
|
|
7408
7901
|
{
|
|
7409
7902
|
value,
|
|
@@ -7414,12 +7907,12 @@ function DatePicker({
|
|
|
7414
7907
|
}
|
|
7415
7908
|
);
|
|
7416
7909
|
if (isMobile) {
|
|
7417
|
-
return /* @__PURE__ */
|
|
7910
|
+
return /* @__PURE__ */ jsxs161(Fragment15, { children: [
|
|
7418
7911
|
trigger,
|
|
7419
|
-
/* @__PURE__ */
|
|
7912
|
+
/* @__PURE__ */ jsx210(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx210("div", { className: styles81.drawerBody, children: calendar }) })
|
|
7420
7913
|
] });
|
|
7421
7914
|
}
|
|
7422
|
-
return /* @__PURE__ */
|
|
7915
|
+
return /* @__PURE__ */ jsx210(
|
|
7423
7916
|
Popover,
|
|
7424
7917
|
{
|
|
7425
7918
|
trigger,
|
|
@@ -7427,7 +7920,7 @@ function DatePicker({
|
|
|
7427
7920
|
onClose: () => setOpen(false),
|
|
7428
7921
|
"aria-label": ariaLabel,
|
|
7429
7922
|
width: POPOVER_WIDTH,
|
|
7430
|
-
children: /* @__PURE__ */
|
|
7923
|
+
children: /* @__PURE__ */ jsx210("div", { className: styles81.popoverBody, children: calendar })
|
|
7431
7924
|
}
|
|
7432
7925
|
);
|
|
7433
7926
|
}
|
|
@@ -7435,7 +7928,7 @@ function DatePicker({
|
|
|
7435
7928
|
// src/components/SuggestionInput/SuggestionInput.tsx
|
|
7436
7929
|
import { useId as useId11, useRef as useRef27, useState as useState28 } from "react";
|
|
7437
7930
|
import styles82 from "./SuggestionInput.module.css";
|
|
7438
|
-
import { Fragment as Fragment16, jsx as
|
|
7931
|
+
import { Fragment as Fragment16, jsx as jsx211, jsxs as jsxs162 } from "react/jsx-runtime";
|
|
7439
7932
|
function SuggestionInput({
|
|
7440
7933
|
value,
|
|
7441
7934
|
onChange,
|
|
@@ -7492,7 +7985,7 @@ function SuggestionInput({
|
|
|
7492
7985
|
close();
|
|
7493
7986
|
}
|
|
7494
7987
|
}
|
|
7495
|
-
const trigger = /* @__PURE__ */
|
|
7988
|
+
const trigger = /* @__PURE__ */ jsx211(
|
|
7496
7989
|
"input",
|
|
7497
7990
|
{
|
|
7498
7991
|
ref: inputRef,
|
|
@@ -7517,7 +8010,7 @@ function SuggestionInput({
|
|
|
7517
8010
|
onKeyDown: handleKeyDown
|
|
7518
8011
|
}
|
|
7519
8012
|
);
|
|
7520
|
-
return /* @__PURE__ */
|
|
8013
|
+
return /* @__PURE__ */ jsx211(
|
|
7521
8014
|
Popover,
|
|
7522
8015
|
{
|
|
7523
8016
|
trigger,
|
|
@@ -7525,8 +8018,8 @@ function SuggestionInput({
|
|
|
7525
8018
|
onClose: close,
|
|
7526
8019
|
width: "trigger",
|
|
7527
8020
|
"aria-label": `${ariaLabel} suggestions`,
|
|
7528
|
-
children: /* @__PURE__ */
|
|
7529
|
-
options.map((option, index) => /* @__PURE__ */
|
|
8021
|
+
children: /* @__PURE__ */ jsx211("ul", { id: listId, role: "listbox", className: styles82.list, children: loading ? /* @__PURE__ */ jsx211("li", { className: styles82.status, children: "Loading\u2026" }) : /* @__PURE__ */ jsxs162(Fragment16, { children: [
|
|
8022
|
+
options.map((option, index) => /* @__PURE__ */ jsx211("li", { role: "none", children: /* @__PURE__ */ jsxs162(
|
|
7530
8023
|
"button",
|
|
7531
8024
|
{
|
|
7532
8025
|
id: `${listId}-option-${index}`,
|
|
@@ -7539,15 +8032,15 @@ function SuggestionInput({
|
|
|
7539
8032
|
commitIndex(index);
|
|
7540
8033
|
},
|
|
7541
8034
|
children: [
|
|
7542
|
-
option.icon && /* @__PURE__ */
|
|
7543
|
-
/* @__PURE__ */
|
|
7544
|
-
option.meta && /* @__PURE__ */
|
|
8035
|
+
option.icon && /* @__PURE__ */ jsx211("span", { className: styles82.optionIcon, children: option.icon }),
|
|
8036
|
+
/* @__PURE__ */ jsx211("span", { className: styles82.optionLabel, children: option.label }),
|
|
8037
|
+
option.meta && /* @__PURE__ */ jsx211("span", { className: styles82.optionMeta, children: option.meta })
|
|
7545
8038
|
]
|
|
7546
8039
|
}
|
|
7547
8040
|
) }, option.id)),
|
|
7548
|
-
showCreateRow && createLabel && /* @__PURE__ */
|
|
7549
|
-
options.length > 0 && /* @__PURE__ */
|
|
7550
|
-
/* @__PURE__ */
|
|
8041
|
+
showCreateRow && createLabel && /* @__PURE__ */ jsxs162("li", { role: "none", children: [
|
|
8042
|
+
options.length > 0 && /* @__PURE__ */ jsx211("div", { className: styles82.divider }),
|
|
8043
|
+
/* @__PURE__ */ jsx211(
|
|
7551
8044
|
"button",
|
|
7552
8045
|
{
|
|
7553
8046
|
id: `${listId}-option-${options.length}`,
|
|
@@ -7575,7 +8068,7 @@ function SuggestionInput({
|
|
|
7575
8068
|
// src/components/IconPicker/IconPicker.tsx
|
|
7576
8069
|
import { useState as useState29 } from "react";
|
|
7577
8070
|
import styles83 from "./IconPicker.module.css";
|
|
7578
|
-
import { jsx as
|
|
8071
|
+
import { jsx as jsx212, jsxs as jsxs163 } from "react/jsx-runtime";
|
|
7579
8072
|
function IconPicker({
|
|
7580
8073
|
value,
|
|
7581
8074
|
onChange,
|
|
@@ -7586,7 +8079,7 @@ function IconPicker({
|
|
|
7586
8079
|
className
|
|
7587
8080
|
}) {
|
|
7588
8081
|
const [open, setOpen] = useState29(false);
|
|
7589
|
-
const trigger = /* @__PURE__ */
|
|
8082
|
+
const trigger = /* @__PURE__ */ jsxs163(
|
|
7590
8083
|
"button",
|
|
7591
8084
|
{
|
|
7592
8085
|
type: "button",
|
|
@@ -7597,12 +8090,12 @@ function IconPicker({
|
|
|
7597
8090
|
"aria-haspopup": "true",
|
|
7598
8091
|
"aria-expanded": open,
|
|
7599
8092
|
children: [
|
|
7600
|
-
value ? /* @__PURE__ */
|
|
7601
|
-
triggerLabel && /* @__PURE__ */
|
|
8093
|
+
value ? /* @__PURE__ */ jsx212(Icon, { name: value, size: "md", "aria-hidden": true }) : /* @__PURE__ */ jsx212("span", { className: styles83.placeholder, "aria-hidden": true, children: "?" }),
|
|
8094
|
+
triggerLabel && /* @__PURE__ */ jsx212("span", { className: styles83.triggerLabel, children: triggerLabel })
|
|
7602
8095
|
]
|
|
7603
8096
|
}
|
|
7604
8097
|
);
|
|
7605
|
-
return /* @__PURE__ */
|
|
8098
|
+
return /* @__PURE__ */ jsx212(
|
|
7606
8099
|
Popover,
|
|
7607
8100
|
{
|
|
7608
8101
|
trigger,
|
|
@@ -7610,7 +8103,7 @@ function IconPicker({
|
|
|
7610
8103
|
onClose: () => setOpen(false),
|
|
7611
8104
|
width: 240,
|
|
7612
8105
|
"aria-label": `${ariaLabel} options`,
|
|
7613
|
-
children: /* @__PURE__ */
|
|
8106
|
+
children: /* @__PURE__ */ jsx212("div", { className: styles83.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx212(
|
|
7614
8107
|
"button",
|
|
7615
8108
|
{
|
|
7616
8109
|
type: "button",
|
|
@@ -7621,7 +8114,7 @@ function IconPicker({
|
|
|
7621
8114
|
onChange(name);
|
|
7622
8115
|
setOpen(false);
|
|
7623
8116
|
},
|
|
7624
|
-
children: /* @__PURE__ */
|
|
8117
|
+
children: /* @__PURE__ */ jsx212(Icon, { name, size: "md", "aria-hidden": true })
|
|
7625
8118
|
},
|
|
7626
8119
|
name
|
|
7627
8120
|
)) })
|
|
@@ -7631,7 +8124,7 @@ function IconPicker({
|
|
|
7631
8124
|
|
|
7632
8125
|
// src/components/ColorPicker/ColorPicker.tsx
|
|
7633
8126
|
import styles84 from "./ColorPicker.module.css";
|
|
7634
|
-
import { jsx as
|
|
8127
|
+
import { jsx as jsx213, jsxs as jsxs164 } from "react/jsx-runtime";
|
|
7635
8128
|
function normalize(hex) {
|
|
7636
8129
|
return hex.toLowerCase();
|
|
7637
8130
|
}
|
|
@@ -7651,14 +8144,14 @@ function ColorPicker({
|
|
|
7651
8144
|
const matchedSwatch = swatches.find((s) => normalize(s.value) === normalizedValue);
|
|
7652
8145
|
const isCustomActive = normalizedValue !== null && !matchedSwatch;
|
|
7653
8146
|
const customDialValue = isCustomActive && value ? value : swatches[0]?.value ?? "#000000";
|
|
7654
|
-
return /* @__PURE__ */
|
|
8147
|
+
return /* @__PURE__ */ jsxs164(
|
|
7655
8148
|
"div",
|
|
7656
8149
|
{
|
|
7657
8150
|
className: [styles84.row, className].filter(Boolean).join(" "),
|
|
7658
8151
|
role: "group",
|
|
7659
8152
|
"aria-label": ariaLabel,
|
|
7660
8153
|
children: [
|
|
7661
|
-
allowNone && /* @__PURE__ */
|
|
8154
|
+
allowNone && /* @__PURE__ */ jsx213(
|
|
7662
8155
|
"button",
|
|
7663
8156
|
{
|
|
7664
8157
|
type: "button",
|
|
@@ -7672,10 +8165,10 @@ function ColorPicker({
|
|
|
7672
8165
|
onChange(null);
|
|
7673
8166
|
onSelectionComplete?.();
|
|
7674
8167
|
},
|
|
7675
|
-
children: /* @__PURE__ */
|
|
8168
|
+
children: /* @__PURE__ */ jsx213(Icon, { name: "x", size: "sm", "aria-hidden": true })
|
|
7676
8169
|
}
|
|
7677
8170
|
),
|
|
7678
|
-
swatches.map((s) => /* @__PURE__ */
|
|
8171
|
+
swatches.map((s) => /* @__PURE__ */ jsx213(
|
|
7679
8172
|
"button",
|
|
7680
8173
|
{
|
|
7681
8174
|
type: "button",
|
|
@@ -7696,7 +8189,7 @@ function ColorPicker({
|
|
|
7696
8189
|
},
|
|
7697
8190
|
s.value
|
|
7698
8191
|
)),
|
|
7699
|
-
/* @__PURE__ */
|
|
8192
|
+
/* @__PURE__ */ jsxs164(
|
|
7700
8193
|
"span",
|
|
7701
8194
|
{
|
|
7702
8195
|
className: [
|
|
@@ -7704,7 +8197,7 @@ function ColorPicker({
|
|
|
7704
8197
|
isCustomActive ? styles84.swatchSelected : styles84.customWrapperEmpty
|
|
7705
8198
|
].filter(Boolean).join(" "),
|
|
7706
8199
|
children: [
|
|
7707
|
-
/* @__PURE__ */
|
|
8200
|
+
/* @__PURE__ */ jsx213(
|
|
7708
8201
|
"input",
|
|
7709
8202
|
{
|
|
7710
8203
|
type: "color",
|
|
@@ -7716,7 +8209,7 @@ function ColorPicker({
|
|
|
7716
8209
|
onChange: (e) => onChange(e.target.value)
|
|
7717
8210
|
}
|
|
7718
8211
|
),
|
|
7719
|
-
!isCustomActive && /* @__PURE__ */
|
|
8212
|
+
!isCustomActive && /* @__PURE__ */ jsx213(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles84.customPlusIcon })
|
|
7720
8213
|
]
|
|
7721
8214
|
}
|
|
7722
8215
|
)
|
|
@@ -7728,7 +8221,7 @@ function ColorPicker({
|
|
|
7728
8221
|
// src/components/QuantityStepper/QuantityStepper.tsx
|
|
7729
8222
|
import { useId as useId12 } from "react";
|
|
7730
8223
|
import styles85 from "./QuantityStepper.module.css";
|
|
7731
|
-
import { jsx as
|
|
8224
|
+
import { jsx as jsx214, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
7732
8225
|
function QuantityStepper({
|
|
7733
8226
|
value,
|
|
7734
8227
|
onChange,
|
|
@@ -7755,8 +8248,8 @@ function QuantityStepper({
|
|
|
7755
8248
|
}
|
|
7756
8249
|
const decrementDisabled = disabled || min !== void 0 && value <= min;
|
|
7757
8250
|
const incrementDisabled = disabled || max !== void 0 && value >= max;
|
|
7758
|
-
return /* @__PURE__ */
|
|
7759
|
-
/* @__PURE__ */
|
|
8251
|
+
return /* @__PURE__ */ jsxs165("div", { className: [styles85.root, className].filter(Boolean).join(" "), children: [
|
|
8252
|
+
/* @__PURE__ */ jsx214(
|
|
7760
8253
|
"button",
|
|
7761
8254
|
{
|
|
7762
8255
|
type: "button",
|
|
@@ -7767,7 +8260,7 @@ function QuantityStepper({
|
|
|
7767
8260
|
children: "\u2212"
|
|
7768
8261
|
}
|
|
7769
8262
|
),
|
|
7770
|
-
/* @__PURE__ */
|
|
8263
|
+
/* @__PURE__ */ jsx214(
|
|
7771
8264
|
"input",
|
|
7772
8265
|
{
|
|
7773
8266
|
id: inputId,
|
|
@@ -7782,8 +8275,8 @@ function QuantityStepper({
|
|
|
7782
8275
|
"aria-label": ariaLabel
|
|
7783
8276
|
}
|
|
7784
8277
|
),
|
|
7785
|
-
unit && /* @__PURE__ */
|
|
7786
|
-
/* @__PURE__ */
|
|
8278
|
+
unit && /* @__PURE__ */ jsx214("span", { className: styles85.unit, "aria-hidden": true, children: unit }),
|
|
8279
|
+
/* @__PURE__ */ jsx214(
|
|
7787
8280
|
"button",
|
|
7788
8281
|
{
|
|
7789
8282
|
type: "button",
|
|
@@ -7799,7 +8292,7 @@ function QuantityStepper({
|
|
|
7799
8292
|
|
|
7800
8293
|
// src/components/CheckableListRow/CheckableListRow.tsx
|
|
7801
8294
|
import styles86 from "./CheckableListRow.module.css";
|
|
7802
|
-
import { jsx as
|
|
8295
|
+
import { jsx as jsx215, jsxs as jsxs166 } from "react/jsx-runtime";
|
|
7803
8296
|
function CheckableListRow({
|
|
7804
8297
|
checked,
|
|
7805
8298
|
onCheckedChange,
|
|
@@ -7818,8 +8311,8 @@ function CheckableListRow({
|
|
|
7818
8311
|
toggle();
|
|
7819
8312
|
}
|
|
7820
8313
|
}
|
|
7821
|
-
return /* @__PURE__ */
|
|
7822
|
-
/* @__PURE__ */
|
|
8314
|
+
return /* @__PURE__ */ jsxs166("div", { className: [styles86.row, className].filter(Boolean).join(" "), children: [
|
|
8315
|
+
/* @__PURE__ */ jsxs166(
|
|
7823
8316
|
"div",
|
|
7824
8317
|
{
|
|
7825
8318
|
role: "checkbox",
|
|
@@ -7831,7 +8324,7 @@ function CheckableListRow({
|
|
|
7831
8324
|
onClick: toggle,
|
|
7832
8325
|
onKeyDown: handleKeyDown,
|
|
7833
8326
|
children: [
|
|
7834
|
-
/* @__PURE__ */
|
|
8327
|
+
/* @__PURE__ */ jsx215("span", { className: [styles86.box, checked ? styles86.checked : ""].filter(Boolean).join(" "), children: checked && /* @__PURE__ */ jsx215("svg", { className: styles86.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx215(
|
|
7835
8328
|
"path",
|
|
7836
8329
|
{
|
|
7837
8330
|
d: "M1 4l3 3 5-6",
|
|
@@ -7841,18 +8334,18 @@ function CheckableListRow({
|
|
|
7841
8334
|
strokeLinejoin: "round"
|
|
7842
8335
|
}
|
|
7843
8336
|
) }) }),
|
|
7844
|
-
icon && /* @__PURE__ */
|
|
7845
|
-
/* @__PURE__ */
|
|
8337
|
+
icon && /* @__PURE__ */ jsx215("span", { className: styles86.icon, children: icon }),
|
|
8338
|
+
/* @__PURE__ */ jsx215("span", { className: [styles86.label, checked ? styles86.struck : ""].filter(Boolean).join(" "), children: label })
|
|
7846
8339
|
]
|
|
7847
8340
|
}
|
|
7848
8341
|
),
|
|
7849
|
-
trailing && /* @__PURE__ */
|
|
8342
|
+
trailing && /* @__PURE__ */ jsx215("span", { className: styles86.trailing, children: trailing })
|
|
7850
8343
|
] });
|
|
7851
8344
|
}
|
|
7852
8345
|
|
|
7853
8346
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
7854
8347
|
import { useState as useState30 } from "react";
|
|
7855
|
-
import { jsx as
|
|
8348
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
7856
8349
|
function minorToText(minor, decimals) {
|
|
7857
8350
|
return (minor / 10 ** decimals).toFixed(decimals);
|
|
7858
8351
|
}
|
|
@@ -7875,7 +8368,7 @@ function CurrencyInput({
|
|
|
7875
8368
|
if (textToMinor(text, decimals) !== valueCents) {
|
|
7876
8369
|
setText(valueCents != null ? minorToText(valueCents, decimals) : "");
|
|
7877
8370
|
}
|
|
7878
|
-
return /* @__PURE__ */
|
|
8371
|
+
return /* @__PURE__ */ jsx216(
|
|
7879
8372
|
Input,
|
|
7880
8373
|
{
|
|
7881
8374
|
...rest,
|
|
@@ -7893,18 +8386,18 @@ function CurrencyInput({
|
|
|
7893
8386
|
|
|
7894
8387
|
// src/components/BalanceChip/BalanceChip.tsx
|
|
7895
8388
|
import styles87 from "./BalanceChip.module.css";
|
|
7896
|
-
import { jsx as
|
|
8389
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
7897
8390
|
function formatAbsCents(cents) {
|
|
7898
8391
|
return (Math.abs(cents) / 100).toFixed(2);
|
|
7899
8392
|
}
|
|
7900
8393
|
function BalanceChip({ amountCents, currency, className }) {
|
|
7901
8394
|
const direction = amountCents > 0 ? "owed" : amountCents < 0 ? "owes" : "settled";
|
|
7902
8395
|
const text = direction === "settled" ? "Settled up" : `${direction === "owed" ? "Owed" : "Owes"} ${currency} ${formatAbsCents(amountCents)}`;
|
|
7903
|
-
return /* @__PURE__ */
|
|
8396
|
+
return /* @__PURE__ */ jsx217("span", { className: [styles87.chip, styles87[direction], className].filter(Boolean).join(" "), children: text });
|
|
7904
8397
|
}
|
|
7905
8398
|
|
|
7906
8399
|
// src/components/SplitMethodSelector/SplitMethodSelector.tsx
|
|
7907
|
-
import { jsx as
|
|
8400
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
7908
8401
|
var OPTIONS = [
|
|
7909
8402
|
{ label: "Equal", value: "equal" },
|
|
7910
8403
|
{ label: "Amount", value: "amount" },
|
|
@@ -7917,7 +8410,7 @@ function SplitMethodSelector({
|
|
|
7917
8410
|
size = "sm",
|
|
7918
8411
|
"aria-label": ariaLabel = "Split method"
|
|
7919
8412
|
}) {
|
|
7920
|
-
return /* @__PURE__ */
|
|
8413
|
+
return /* @__PURE__ */ jsx218(
|
|
7921
8414
|
SegmentedControl,
|
|
7922
8415
|
{
|
|
7923
8416
|
value,
|
|
@@ -7931,7 +8424,7 @@ function SplitMethodSelector({
|
|
|
7931
8424
|
|
|
7932
8425
|
// src/components/MemberMultiSelect/MemberMultiSelect.tsx
|
|
7933
8426
|
import styles88 from "./MemberMultiSelect.module.css";
|
|
7934
|
-
import { jsx as
|
|
8427
|
+
import { jsx as jsx219, jsxs as jsxs167 } from "react/jsx-runtime";
|
|
7935
8428
|
function MemberMultiSelect({
|
|
7936
8429
|
options,
|
|
7937
8430
|
selectedIds,
|
|
@@ -7941,12 +8434,12 @@ function MemberMultiSelect({
|
|
|
7941
8434
|
hint,
|
|
7942
8435
|
className
|
|
7943
8436
|
}) {
|
|
7944
|
-
return /* @__PURE__ */
|
|
7945
|
-
label && /* @__PURE__ */
|
|
8437
|
+
return /* @__PURE__ */ jsxs167("div", { className: [styles88.group, className].filter(Boolean).join(" "), children: [
|
|
8438
|
+
label && /* @__PURE__ */ jsx219("span", { className: styles88.label, children: label }),
|
|
7946
8439
|
options.map((option) => {
|
|
7947
8440
|
const checked = selectedIds.has(option.id);
|
|
7948
|
-
return /* @__PURE__ */
|
|
7949
|
-
/* @__PURE__ */
|
|
8441
|
+
return /* @__PURE__ */ jsxs167("div", { className: styles88.row, children: [
|
|
8442
|
+
/* @__PURE__ */ jsx219(
|
|
7950
8443
|
Checkbox,
|
|
7951
8444
|
{
|
|
7952
8445
|
checked,
|
|
@@ -7954,16 +8447,16 @@ function MemberMultiSelect({
|
|
|
7954
8447
|
label: option.label
|
|
7955
8448
|
}
|
|
7956
8449
|
),
|
|
7957
|
-
checked && renderTrailing && /* @__PURE__ */
|
|
8450
|
+
checked && renderTrailing && /* @__PURE__ */ jsx219("span", { className: styles88.trailing, children: renderTrailing(option.id) })
|
|
7958
8451
|
] }, option.id);
|
|
7959
8452
|
}),
|
|
7960
|
-
hint && /* @__PURE__ */
|
|
8453
|
+
hint && /* @__PURE__ */ jsx219("span", { className: styles88.hint, children: hint })
|
|
7961
8454
|
] });
|
|
7962
8455
|
}
|
|
7963
8456
|
|
|
7964
8457
|
// src/components/SwipableMobileCarouselDots/SwipableMobileCarouselDots.tsx
|
|
7965
8458
|
import styles89 from "./SwipableMobileCarouselDots.module.css";
|
|
7966
|
-
import { jsx as
|
|
8459
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
7967
8460
|
function SwipableMobileCarouselDots({
|
|
7968
8461
|
count,
|
|
7969
8462
|
activeIndex,
|
|
@@ -7973,7 +8466,7 @@ function SwipableMobileCarouselDots({
|
|
|
7973
8466
|
density = "default",
|
|
7974
8467
|
className
|
|
7975
8468
|
}) {
|
|
7976
|
-
return /* @__PURE__ */
|
|
8469
|
+
return /* @__PURE__ */ jsx220(
|
|
7977
8470
|
"div",
|
|
7978
8471
|
{
|
|
7979
8472
|
role: "tablist",
|
|
@@ -7982,7 +8475,7 @@ function SwipableMobileCarouselDots({
|
|
|
7982
8475
|
children: Array.from({ length: count }, (_, i) => {
|
|
7983
8476
|
const active = i === activeIndex;
|
|
7984
8477
|
const label = labels?.[i] ?? `Slide ${i + 1} of ${count}`;
|
|
7985
|
-
return /* @__PURE__ */
|
|
8478
|
+
return /* @__PURE__ */ jsx220(
|
|
7986
8479
|
"button",
|
|
7987
8480
|
{
|
|
7988
8481
|
type: "button",
|
|
@@ -8017,16 +8510,16 @@ import { createContext as createContext3 } from "react";
|
|
|
8017
8510
|
var CarouselSlideMountContext = createContext3(null);
|
|
8018
8511
|
|
|
8019
8512
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlide.tsx
|
|
8020
|
-
import { Fragment as Fragment17, jsx as
|
|
8513
|
+
import { Fragment as Fragment17, jsx as jsx221 } from "react/jsx-runtime";
|
|
8021
8514
|
function SwipableMobileCarouselSlide({ children }) {
|
|
8022
8515
|
const ctx = useContext3(CarouselSlideMountContext);
|
|
8023
8516
|
if (!ctx?.isMounted) return null;
|
|
8024
|
-
return /* @__PURE__ */
|
|
8517
|
+
return /* @__PURE__ */ jsx221(Fragment17, { children });
|
|
8025
8518
|
}
|
|
8026
8519
|
|
|
8027
8520
|
// src/components/SwipableMobileCarousel/SwipableMobileCarousel.tsx
|
|
8028
8521
|
import styles90 from "./SwipableMobileCarousel.module.css";
|
|
8029
|
-
import { jsx as
|
|
8522
|
+
import { jsx as jsx222, jsxs as jsxs168 } from "react/jsx-runtime";
|
|
8030
8523
|
function describeChild(child) {
|
|
8031
8524
|
if (isValidElement2(child)) {
|
|
8032
8525
|
const type = child.type;
|
|
@@ -8117,7 +8610,7 @@ function SwipableMobileCarousel({
|
|
|
8117
8610
|
onSettle(index);
|
|
8118
8611
|
}
|
|
8119
8612
|
const labels = slides.map((s) => s.label);
|
|
8120
|
-
const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */
|
|
8613
|
+
const indicator = renderIndicator === null ? null : renderIndicator ? renderIndicator({ count, activeIndex: clampedActiveIndex, labels, onJump: handleJump }) : /* @__PURE__ */ jsx222(
|
|
8121
8614
|
SwipableMobileCarouselDots,
|
|
8122
8615
|
{
|
|
8123
8616
|
count,
|
|
@@ -8127,8 +8620,8 @@ function SwipableMobileCarousel({
|
|
|
8127
8620
|
onJump: handleJump
|
|
8128
8621
|
}
|
|
8129
8622
|
);
|
|
8130
|
-
return /* @__PURE__ */
|
|
8131
|
-
/* @__PURE__ */
|
|
8623
|
+
return /* @__PURE__ */ jsxs168("div", { className: [styles90.wrap, className].filter(Boolean).join(" "), children: [
|
|
8624
|
+
/* @__PURE__ */ jsx222("div", { className: styles90.scroller, ref: scrollRef, role: "region", "aria-label": ariaLabel, children: slides.map((slide, i) => /* @__PURE__ */ jsx222("div", { className: styles90.slide, children: /* @__PURE__ */ jsx222(
|
|
8132
8625
|
CarouselSlideMountContext.Provider,
|
|
8133
8626
|
{
|
|
8134
8627
|
value: {
|
|
@@ -8146,55 +8639,55 @@ function SwipableMobileCarousel({
|
|
|
8146
8639
|
children: slide.element
|
|
8147
8640
|
}
|
|
8148
8641
|
) }, slide.key)) }),
|
|
8149
|
-
indicator && /* @__PURE__ */
|
|
8642
|
+
indicator && /* @__PURE__ */ jsx222("div", { className: styles90.indicatorSlot, children: indicator })
|
|
8150
8643
|
] });
|
|
8151
8644
|
}
|
|
8152
8645
|
|
|
8153
8646
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideHeader.tsx
|
|
8154
8647
|
import styles91 from "./SwipableMobileCarouselSlideParts.module.css";
|
|
8155
|
-
import { jsx as
|
|
8648
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
8156
8649
|
function SwipableMobileCarouselSlideHeader({
|
|
8157
8650
|
children,
|
|
8158
8651
|
className
|
|
8159
8652
|
}) {
|
|
8160
|
-
return /* @__PURE__ */
|
|
8653
|
+
return /* @__PURE__ */ jsx223("div", { className: [styles91.header, className].filter(Boolean).join(" "), children });
|
|
8161
8654
|
}
|
|
8162
8655
|
|
|
8163
8656
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideBody.tsx
|
|
8164
8657
|
import styles92 from "./SwipableMobileCarouselSlideParts.module.css";
|
|
8165
|
-
import { jsx as
|
|
8166
|
-
var defaultLoadingFallback = /* @__PURE__ */
|
|
8658
|
+
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
8659
|
+
var defaultLoadingFallback = /* @__PURE__ */ jsx224("div", { className: styles92.loading, children: "Loading\u2026" });
|
|
8167
8660
|
function SwipableMobileCarouselSlideBody({
|
|
8168
8661
|
children,
|
|
8169
8662
|
loading = false,
|
|
8170
8663
|
loadingFallback,
|
|
8171
8664
|
className
|
|
8172
8665
|
}) {
|
|
8173
|
-
return /* @__PURE__ */
|
|
8666
|
+
return /* @__PURE__ */ jsx224("div", { className: [styles92.body, className].filter(Boolean).join(" "), children: loading ? loadingFallback ?? defaultLoadingFallback : children });
|
|
8174
8667
|
}
|
|
8175
8668
|
|
|
8176
8669
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideFooter.tsx
|
|
8177
8670
|
import styles93 from "./SwipableMobileCarouselSlideParts.module.css";
|
|
8178
|
-
import { jsx as
|
|
8671
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
8179
8672
|
function SwipableMobileCarouselSlideFooter({
|
|
8180
8673
|
children,
|
|
8181
8674
|
className
|
|
8182
8675
|
}) {
|
|
8183
|
-
return /* @__PURE__ */
|
|
8676
|
+
return /* @__PURE__ */ jsx225("div", { className: [styles93.footer, className].filter(Boolean).join(" "), children });
|
|
8184
8677
|
}
|
|
8185
8678
|
|
|
8186
8679
|
// src/components/SwipeStack/SwipeStack.tsx
|
|
8187
8680
|
import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef29, useState as useState31 } from "react";
|
|
8188
8681
|
|
|
8189
8682
|
// src/components/SwipeStack/SwipeStackCard.tsx
|
|
8190
|
-
import { Fragment as Fragment18, jsx as
|
|
8683
|
+
import { Fragment as Fragment18, jsx as jsx226 } from "react/jsx-runtime";
|
|
8191
8684
|
function SwipeStackCard({ children }) {
|
|
8192
|
-
return /* @__PURE__ */
|
|
8685
|
+
return /* @__PURE__ */ jsx226(Fragment18, { children });
|
|
8193
8686
|
}
|
|
8194
8687
|
|
|
8195
8688
|
// src/components/SwipeStack/SwipeStack.tsx
|
|
8196
8689
|
import styles94 from "./SwipeStack.module.css";
|
|
8197
|
-
import { jsx as
|
|
8690
|
+
import { jsx as jsx227, jsxs as jsxs169 } from "react/jsx-runtime";
|
|
8198
8691
|
var DIRECTION_KEYS = ["up", "down", "left", "right"];
|
|
8199
8692
|
var STAMP_CLASS = {
|
|
8200
8693
|
up: styles94.stampUp,
|
|
@@ -8271,33 +8764,33 @@ function SwipeStack({
|
|
|
8271
8764
|
onSwipe(direction, committed.key);
|
|
8272
8765
|
}
|
|
8273
8766
|
});
|
|
8274
|
-
return /* @__PURE__ */
|
|
8275
|
-
/* @__PURE__ */
|
|
8276
|
-
peek && /* @__PURE__ */
|
|
8277
|
-
current && /* @__PURE__ */
|
|
8767
|
+
return /* @__PURE__ */ jsxs169("div", { className: [styles94.wrap, className].filter(Boolean).join(" "), children: [
|
|
8768
|
+
/* @__PURE__ */ jsxs169("div", { className: styles94.stack, role: "region", "aria-label": ariaLabel, children: [
|
|
8769
|
+
peek && /* @__PURE__ */ jsx227("div", { className: styles94.peek, "aria-hidden": "true", children: peek.element }, peek.key),
|
|
8770
|
+
current && /* @__PURE__ */ jsxs169("div", { className: styles94.cardSlot, ref: wrapRef, children: [
|
|
8278
8771
|
liveDirections.map((d) => {
|
|
8279
8772
|
const meta = directions[d];
|
|
8280
8773
|
if (!meta) return null;
|
|
8281
|
-
return /* @__PURE__ */
|
|
8774
|
+
return /* @__PURE__ */ jsxs169(
|
|
8282
8775
|
"div",
|
|
8283
8776
|
{
|
|
8284
8777
|
className: [styles94.stamp, STAMP_CLASS[d]].join(" "),
|
|
8285
8778
|
"aria-hidden": "true",
|
|
8286
8779
|
children: [
|
|
8287
|
-
meta.icon && /* @__PURE__ */
|
|
8288
|
-
/* @__PURE__ */
|
|
8780
|
+
meta.icon && /* @__PURE__ */ jsx227(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
|
|
8781
|
+
/* @__PURE__ */ jsx227("span", { children: meta.label })
|
|
8289
8782
|
]
|
|
8290
8783
|
},
|
|
8291
8784
|
d
|
|
8292
8785
|
);
|
|
8293
8786
|
}),
|
|
8294
|
-
/* @__PURE__ */
|
|
8787
|
+
/* @__PURE__ */ jsx227("div", { className: styles94.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
|
|
8295
8788
|
] }, current.key)
|
|
8296
8789
|
] }),
|
|
8297
|
-
liveDirections.length > 0 && /* @__PURE__ */
|
|
8790
|
+
liveDirections.length > 0 && /* @__PURE__ */ jsx227("div", { className: styles94.actions, role: "group", "aria-label": `${ariaLabel} actions`, children: liveDirections.map((d) => {
|
|
8298
8791
|
const meta = directions[d];
|
|
8299
8792
|
if (!meta) return null;
|
|
8300
|
-
return /* @__PURE__ */
|
|
8793
|
+
return /* @__PURE__ */ jsxs169(
|
|
8301
8794
|
Button,
|
|
8302
8795
|
{
|
|
8303
8796
|
variant: "secondary",
|
|
@@ -8305,7 +8798,7 @@ function SwipeStack({
|
|
|
8305
8798
|
disabled: !current,
|
|
8306
8799
|
onClick: () => triggerCommit(d),
|
|
8307
8800
|
children: [
|
|
8308
|
-
meta.icon && /* @__PURE__ */
|
|
8801
|
+
meta.icon && /* @__PURE__ */ jsx227(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
|
|
8309
8802
|
meta.label
|
|
8310
8803
|
]
|
|
8311
8804
|
},
|
|
@@ -8318,7 +8811,7 @@ function SwipeStack({
|
|
|
8318
8811
|
// src/components/ThreeColumnLayout/ThreeColumnLayout.tsx
|
|
8319
8812
|
import { Children as Children4 } from "react";
|
|
8320
8813
|
import styles95 from "./ThreeColumnLayout.module.css";
|
|
8321
|
-
import { jsx as
|
|
8814
|
+
import { jsx as jsx228, jsxs as jsxs170 } from "react/jsx-runtime";
|
|
8322
8815
|
function ThreeColumnLayout({
|
|
8323
8816
|
children,
|
|
8324
8817
|
sidebarWidth = 280,
|
|
@@ -8333,8 +8826,8 @@ function ThreeColumnLayout({
|
|
|
8333
8826
|
);
|
|
8334
8827
|
}
|
|
8335
8828
|
const [sidebar, main, detail] = items;
|
|
8336
|
-
return /* @__PURE__ */
|
|
8337
|
-
/* @__PURE__ */
|
|
8829
|
+
return /* @__PURE__ */ jsxs170("div", { className: [styles95.shell, className].filter(Boolean).join(" "), children: [
|
|
8830
|
+
/* @__PURE__ */ jsx228(
|
|
8338
8831
|
"div",
|
|
8339
8832
|
{
|
|
8340
8833
|
className: [styles95.sidebar, sidebarHidden && styles95.sidebarHidden].filter(Boolean).join(" "),
|
|
@@ -8343,14 +8836,14 @@ function ThreeColumnLayout({
|
|
|
8343
8836
|
children: sidebar
|
|
8344
8837
|
}
|
|
8345
8838
|
),
|
|
8346
|
-
/* @__PURE__ */
|
|
8347
|
-
detail && /* @__PURE__ */
|
|
8839
|
+
/* @__PURE__ */ jsx228("div", { className: styles95.main, children: main }),
|
|
8840
|
+
detail && /* @__PURE__ */ jsx228("div", { className: styles95.detail, style: { width: detailWidth }, children: detail })
|
|
8348
8841
|
] });
|
|
8349
8842
|
}
|
|
8350
8843
|
|
|
8351
8844
|
// src/components/HeaderFooterLayout/HeaderFooterLayout.tsx
|
|
8352
8845
|
import styles96 from "./HeaderFooterLayout.module.css";
|
|
8353
|
-
import { jsx as
|
|
8846
|
+
import { jsx as jsx229, jsxs as jsxs171 } from "react/jsx-runtime";
|
|
8354
8847
|
function HeaderFooterLayout({
|
|
8355
8848
|
children,
|
|
8356
8849
|
header,
|
|
@@ -8359,17 +8852,17 @@ function HeaderFooterLayout({
|
|
|
8359
8852
|
footerHeight = 60,
|
|
8360
8853
|
className
|
|
8361
8854
|
}) {
|
|
8362
|
-
return /* @__PURE__ */
|
|
8363
|
-
header && /* @__PURE__ */
|
|
8364
|
-
/* @__PURE__ */
|
|
8365
|
-
footer && /* @__PURE__ */
|
|
8855
|
+
return /* @__PURE__ */ jsxs171("div", { className: [styles96.shell, className].filter(Boolean).join(" "), children: [
|
|
8856
|
+
header && /* @__PURE__ */ jsx229("div", { className: styles96.header, style: { height: headerHeight }, children: header }),
|
|
8857
|
+
/* @__PURE__ */ jsx229("div", { className: styles96.main, children }),
|
|
8858
|
+
footer && /* @__PURE__ */ jsx229("div", { className: styles96.footer, style: { height: footerHeight }, children: footer })
|
|
8366
8859
|
] });
|
|
8367
8860
|
}
|
|
8368
8861
|
|
|
8369
8862
|
// src/components/RootLayout/RootLayout.tsx
|
|
8370
8863
|
import { Children as Children5 } from "react";
|
|
8371
8864
|
import styles97 from "./RootLayout.module.css";
|
|
8372
|
-
import { Fragment as Fragment19, jsx as
|
|
8865
|
+
import { Fragment as Fragment19, jsx as jsx230, jsxs as jsxs172 } from "react/jsx-runtime";
|
|
8373
8866
|
var EXPECTED_CHILD_COUNT = {
|
|
8374
8867
|
plain: 1,
|
|
8375
8868
|
sidebar: 2,
|
|
@@ -8379,17 +8872,17 @@ var EXPECTED_CHILD_COUNT = {
|
|
|
8379
8872
|
function RootLayoutWeb({ variant, items, sidebarWidth, headerHeight }) {
|
|
8380
8873
|
if (variant === "sidebar") {
|
|
8381
8874
|
const [sidebar, main2] = items;
|
|
8382
|
-
return /* @__PURE__ */
|
|
8875
|
+
return /* @__PURE__ */ jsxs172(ThreeColumnLayout, { sidebarWidth, children: [
|
|
8383
8876
|
sidebar,
|
|
8384
8877
|
main2
|
|
8385
8878
|
] });
|
|
8386
8879
|
}
|
|
8387
8880
|
if (variant === "header") {
|
|
8388
8881
|
const [header, main2] = items;
|
|
8389
|
-
return /* @__PURE__ */
|
|
8882
|
+
return /* @__PURE__ */ jsx230(HeaderFooterLayout, { header, headerHeight, children: main2 });
|
|
8390
8883
|
}
|
|
8391
8884
|
const main = variant === "shell" ? items[1] : items[0];
|
|
8392
|
-
return /* @__PURE__ */
|
|
8885
|
+
return /* @__PURE__ */ jsx230(Fragment19, { children: main });
|
|
8393
8886
|
}
|
|
8394
8887
|
function RootLayoutMobile({
|
|
8395
8888
|
variant,
|
|
@@ -8399,11 +8892,11 @@ function RootLayoutMobile({
|
|
|
8399
8892
|
}) {
|
|
8400
8893
|
if (variant === "header") {
|
|
8401
8894
|
const [header, main2] = items;
|
|
8402
|
-
return /* @__PURE__ */
|
|
8895
|
+
return /* @__PURE__ */ jsx230(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
|
|
8403
8896
|
}
|
|
8404
8897
|
if (variant === "shell") {
|
|
8405
8898
|
const [header, main2, footer] = items;
|
|
8406
|
-
return /* @__PURE__ */
|
|
8899
|
+
return /* @__PURE__ */ jsx230(
|
|
8407
8900
|
HeaderFooterLayout,
|
|
8408
8901
|
{
|
|
8409
8902
|
header,
|
|
@@ -8415,7 +8908,7 @@ function RootLayoutMobile({
|
|
|
8415
8908
|
);
|
|
8416
8909
|
}
|
|
8417
8910
|
const main = variant === "sidebar" ? items[1] : items[0];
|
|
8418
|
-
return /* @__PURE__ */
|
|
8911
|
+
return /* @__PURE__ */ jsx230(Fragment19, { children: main });
|
|
8419
8912
|
}
|
|
8420
8913
|
function RootLayout({
|
|
8421
8914
|
variant = "plain",
|
|
@@ -8432,10 +8925,10 @@ function RootLayout({
|
|
|
8432
8925
|
`[RootLayout] variant="${variant}" expects ${EXPECTED_CHILD_COUNT[variant]} children; received ${items.length}.`
|
|
8433
8926
|
);
|
|
8434
8927
|
}
|
|
8435
|
-
return /* @__PURE__ */
|
|
8928
|
+
return /* @__PURE__ */ jsx230("div", { className: [styles97.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx230(
|
|
8436
8929
|
ResponsiveSurface,
|
|
8437
8930
|
{
|
|
8438
|
-
web: /* @__PURE__ */
|
|
8931
|
+
web: /* @__PURE__ */ jsx230(
|
|
8439
8932
|
RootLayoutWeb,
|
|
8440
8933
|
{
|
|
8441
8934
|
variant,
|
|
@@ -8444,7 +8937,7 @@ function RootLayout({
|
|
|
8444
8937
|
headerHeight
|
|
8445
8938
|
}
|
|
8446
8939
|
),
|
|
8447
|
-
mobile: /* @__PURE__ */
|
|
8940
|
+
mobile: /* @__PURE__ */ jsx230(
|
|
8448
8941
|
RootLayoutMobile,
|
|
8449
8942
|
{
|
|
8450
8943
|
variant,
|
|
@@ -8459,7 +8952,7 @@ function RootLayout({
|
|
|
8459
8952
|
|
|
8460
8953
|
// src/components/PageLayout/PageLayout.tsx
|
|
8461
8954
|
import styles98 from "./PageLayout.module.css";
|
|
8462
|
-
import { jsx as
|
|
8955
|
+
import { jsx as jsx231, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
8463
8956
|
var paddingClass3 = {
|
|
8464
8957
|
none: styles98.padNone,
|
|
8465
8958
|
sm: styles98.padSm,
|
|
@@ -8467,16 +8960,16 @@ var paddingClass3 = {
|
|
|
8467
8960
|
lg: styles98.padLg
|
|
8468
8961
|
};
|
|
8469
8962
|
function PageLayout({ header, padding = "none", children, className }) {
|
|
8470
|
-
return /* @__PURE__ */
|
|
8471
|
-
header && /* @__PURE__ */
|
|
8472
|
-
/* @__PURE__ */
|
|
8963
|
+
return /* @__PURE__ */ jsxs173("div", { className: [styles98.root, className].filter(Boolean).join(" "), children: [
|
|
8964
|
+
header && /* @__PURE__ */ jsx231("div", { className: styles98.header, children: header }),
|
|
8965
|
+
/* @__PURE__ */ jsx231("div", { className: [styles98.content, paddingClass3[padding]].join(" "), children })
|
|
8473
8966
|
] });
|
|
8474
8967
|
}
|
|
8475
8968
|
|
|
8476
8969
|
// src/components/NavList/NavList.tsx
|
|
8477
8970
|
import { Fragment as Fragment20 } from "react";
|
|
8478
8971
|
import styles99 from "./NavList.module.css";
|
|
8479
|
-
import { Fragment as Fragment21, jsx as
|
|
8972
|
+
import { Fragment as Fragment21, jsx as jsx232, jsxs as jsxs174 } from "react/jsx-runtime";
|
|
8480
8973
|
function NavList({
|
|
8481
8974
|
groups,
|
|
8482
8975
|
variant,
|
|
@@ -8485,20 +8978,20 @@ function NavList({
|
|
|
8485
8978
|
className,
|
|
8486
8979
|
renderLink
|
|
8487
8980
|
}) {
|
|
8488
|
-
return /* @__PURE__ */
|
|
8981
|
+
return /* @__PURE__ */ jsx232(
|
|
8489
8982
|
"nav",
|
|
8490
8983
|
{
|
|
8491
8984
|
className: [styles99.nav, styles99[variant], density === "compact" && styles99.compact, className].filter(Boolean).join(" "),
|
|
8492
8985
|
"aria-label": ariaLabel,
|
|
8493
|
-
children: groups.map((group) => /* @__PURE__ */
|
|
8494
|
-
group.label && /* @__PURE__ */
|
|
8986
|
+
children: groups.map((group) => /* @__PURE__ */ jsxs174("div", { className: styles99.group, children: [
|
|
8987
|
+
group.label && /* @__PURE__ */ jsx232("div", { className: styles99.groupLabel, children: group.label }),
|
|
8495
8988
|
group.items.map((item) => {
|
|
8496
8989
|
const isActive = variant === "static" && !!item.active;
|
|
8497
|
-
const rowContent = /* @__PURE__ */
|
|
8498
|
-
/* @__PURE__ */
|
|
8499
|
-
/* @__PURE__ */
|
|
8500
|
-
item.badge && /* @__PURE__ */
|
|
8501
|
-
variant === "drilldown" && /* @__PURE__ */
|
|
8990
|
+
const rowContent = /* @__PURE__ */ jsxs174(Fragment21, { children: [
|
|
8991
|
+
/* @__PURE__ */ jsx232(Icon, { name: item.icon, size: "sm", "aria-hidden": true, className: styles99.icon }),
|
|
8992
|
+
/* @__PURE__ */ jsx232("span", { className: styles99.label, children: item.label }),
|
|
8993
|
+
item.badge && /* @__PURE__ */ jsx232("span", { className: styles99.badge, children: item.badge }),
|
|
8994
|
+
variant === "drilldown" && /* @__PURE__ */ jsx232(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true, className: styles99.chevron })
|
|
8502
8995
|
] });
|
|
8503
8996
|
const linkProps = {
|
|
8504
8997
|
href: item.href,
|
|
@@ -8506,7 +8999,7 @@ function NavList({
|
|
|
8506
8999
|
"aria-current": isActive ? "page" : void 0,
|
|
8507
9000
|
children: rowContent
|
|
8508
9001
|
};
|
|
8509
|
-
return /* @__PURE__ */
|
|
9002
|
+
return /* @__PURE__ */ jsx232(Fragment20, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx232(
|
|
8510
9003
|
"a",
|
|
8511
9004
|
{
|
|
8512
9005
|
href: linkProps.href,
|
|
@@ -8565,7 +9058,7 @@ var THEME_PRESETS = {
|
|
|
8565
9058
|
|
|
8566
9059
|
// src/components/CopyButton/CopyButton.tsx
|
|
8567
9060
|
import { useState as useState32 } from "react";
|
|
8568
|
-
import { jsx as
|
|
9061
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
8569
9062
|
function CopyButton({
|
|
8570
9063
|
text,
|
|
8571
9064
|
label,
|
|
@@ -8583,12 +9076,12 @@ function CopyButton({
|
|
|
8583
9076
|
setState("failed");
|
|
8584
9077
|
}
|
|
8585
9078
|
}
|
|
8586
|
-
return /* @__PURE__ */
|
|
9079
|
+
return /* @__PURE__ */ jsx233(Button, { type: "button", variant, size, onClick: () => void copy(), children: state === "copied" ? copiedLabel : state === "failed" ? failedLabel : label });
|
|
8587
9080
|
}
|
|
8588
9081
|
|
|
8589
9082
|
// src/components/QrCode/QrCode.tsx
|
|
8590
9083
|
import styles100 from "./QrCode.module.css";
|
|
8591
|
-
import { jsx as
|
|
9084
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
8592
9085
|
var QUIET_ZONE = 2;
|
|
8593
9086
|
function QrCode({ modules, label }) {
|
|
8594
9087
|
const size = modules.length + QUIET_ZONE * 2;
|
|
@@ -8598,7 +9091,7 @@ function QrCode({ modules, label }) {
|
|
|
8598
9091
|
if (dark) path += `M${x + QUIET_ZONE} ${y + QUIET_ZONE}h1v1h-1z`;
|
|
8599
9092
|
});
|
|
8600
9093
|
});
|
|
8601
|
-
return /* @__PURE__ */
|
|
9094
|
+
return /* @__PURE__ */ jsx234("div", { className: styles100.qr, children: /* @__PURE__ */ jsx234(
|
|
8602
9095
|
"svg",
|
|
8603
9096
|
{
|
|
8604
9097
|
viewBox: `0 0 ${size} ${size}`,
|
|
@@ -8606,7 +9099,7 @@ function QrCode({ modules, label }) {
|
|
|
8606
9099
|
"aria-label": label,
|
|
8607
9100
|
shapeRendering: "crispEdges",
|
|
8608
9101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8609
|
-
children: /* @__PURE__ */
|
|
9102
|
+
children: /* @__PURE__ */ jsx234("path", { d: path })
|
|
8610
9103
|
}
|
|
8611
9104
|
) });
|
|
8612
9105
|
}
|