@sovereignfs/ui 0.91.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/index.d.ts +16 -12
- package/dist/index.js +1054 -567
- 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";
|
|
@@ -2876,6 +2878,470 @@ function UserXIcon(props) {
|
|
|
2876
2878
|
);
|
|
2877
2879
|
}
|
|
2878
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
|
+
|
|
2879
3345
|
// src/components/Icon/icons/index.ts
|
|
2880
3346
|
var ICONS = {
|
|
2881
3347
|
house: HouseIcon,
|
|
@@ -2980,12 +3446,31 @@ var ICONS = {
|
|
|
2980
3446
|
"credit-card": CreditCardIcon,
|
|
2981
3447
|
ban: BanIcon,
|
|
2982
3448
|
"shield-off": ShieldOffIcon,
|
|
2983
|
-
"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
|
|
2984
3469
|
};
|
|
2985
3470
|
|
|
2986
3471
|
// src/components/Icon/Icon.tsx
|
|
2987
3472
|
import styles15 from "./Icon.module.css";
|
|
2988
|
-
import { jsx as
|
|
3473
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
2989
3474
|
function Icon({
|
|
2990
3475
|
name,
|
|
2991
3476
|
size = "md",
|
|
@@ -2994,14 +3479,14 @@ function Icon({
|
|
|
2994
3479
|
}) {
|
|
2995
3480
|
const Svg = ICONS[name];
|
|
2996
3481
|
const classes = [styles15.root, styles15[size], className].filter(Boolean).join(" ");
|
|
2997
|
-
return /* @__PURE__ */
|
|
3482
|
+
return /* @__PURE__ */ jsx137(Svg, { className: classes, role: aria["aria-label"] ? "img" : void 0, ...aria });
|
|
2998
3483
|
}
|
|
2999
3484
|
|
|
3000
3485
|
// src/components/Toggle/Toggle.tsx
|
|
3001
3486
|
import styles16 from "./Toggle.module.css";
|
|
3002
|
-
import { jsx as
|
|
3487
|
+
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
3003
3488
|
function Toggle({ checked, onChange, disabled, className, ...rest }) {
|
|
3004
|
-
return /* @__PURE__ */
|
|
3489
|
+
return /* @__PURE__ */ jsx138(
|
|
3005
3490
|
"button",
|
|
3006
3491
|
{
|
|
3007
3492
|
type: "button",
|
|
@@ -3011,14 +3496,14 @@ function Toggle({ checked, onChange, disabled, className, ...rest }) {
|
|
|
3011
3496
|
className: [styles16.track, checked ? styles16.on : styles16.off, className].filter(Boolean).join(" "),
|
|
3012
3497
|
onClick: () => onChange(!checked),
|
|
3013
3498
|
...rest,
|
|
3014
|
-
children: /* @__PURE__ */
|
|
3499
|
+
children: /* @__PURE__ */ jsx138("span", { className: styles16.thumb })
|
|
3015
3500
|
}
|
|
3016
3501
|
);
|
|
3017
3502
|
}
|
|
3018
3503
|
|
|
3019
3504
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
3020
3505
|
import styles17 from "./SegmentedControl.module.css";
|
|
3021
|
-
import { jsx as
|
|
3506
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
3022
3507
|
function SegmentedControl({
|
|
3023
3508
|
value,
|
|
3024
3509
|
onChange,
|
|
@@ -3026,7 +3511,7 @@ function SegmentedControl({
|
|
|
3026
3511
|
size = "md",
|
|
3027
3512
|
"aria-label": ariaLabel
|
|
3028
3513
|
}) {
|
|
3029
|
-
return /* @__PURE__ */
|
|
3514
|
+
return /* @__PURE__ */ jsx139(
|
|
3030
3515
|
"div",
|
|
3031
3516
|
{
|
|
3032
3517
|
role: "radiogroup",
|
|
@@ -3034,7 +3519,7 @@ function SegmentedControl({
|
|
|
3034
3519
|
className: [styles17.track, styles17[size]].join(" "),
|
|
3035
3520
|
children: options.map((opt) => {
|
|
3036
3521
|
const active = opt.value === value;
|
|
3037
|
-
return /* @__PURE__ */
|
|
3522
|
+
return /* @__PURE__ */ jsx139(
|
|
3038
3523
|
"button",
|
|
3039
3524
|
{
|
|
3040
3525
|
type: "button",
|
|
@@ -3053,11 +3538,11 @@ function SegmentedControl({
|
|
|
3053
3538
|
|
|
3054
3539
|
// src/components/Tabs/Tabs.tsx
|
|
3055
3540
|
import styles18 from "./Tabs.module.css";
|
|
3056
|
-
import { jsx as
|
|
3541
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
3057
3542
|
function Tabs({ items, value, onChange, "aria-label": ariaLabel }) {
|
|
3058
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsx140("div", { role: "tablist", "aria-label": ariaLabel, className: styles18.tablist, children: items.map((item) => {
|
|
3059
3544
|
const active = item.value === value;
|
|
3060
|
-
return /* @__PURE__ */
|
|
3545
|
+
return /* @__PURE__ */ jsx140(
|
|
3061
3546
|
"button",
|
|
3062
3547
|
{
|
|
3063
3548
|
type: "button",
|
|
@@ -3074,15 +3559,15 @@ function Tabs({ items, value, onChange, "aria-label": ariaLabel }) {
|
|
|
3074
3559
|
|
|
3075
3560
|
// src/components/Select/Select.tsx
|
|
3076
3561
|
import styles19 from "./Select.module.css";
|
|
3077
|
-
import { jsx as
|
|
3562
|
+
import { jsx as jsx141, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
3078
3563
|
function Select({ className, size = "md", children, ...rest }) {
|
|
3079
|
-
return /* @__PURE__ */
|
|
3564
|
+
return /* @__PURE__ */ jsxs118(
|
|
3080
3565
|
"div",
|
|
3081
3566
|
{
|
|
3082
3567
|
className: [styles19.wrapper, size === "sm" ? styles19.sm : void 0, className].filter(Boolean).join(" "),
|
|
3083
3568
|
children: [
|
|
3084
|
-
/* @__PURE__ */
|
|
3085
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ jsx141("select", { className: styles19.select, ...rest, children }),
|
|
3570
|
+
/* @__PURE__ */ jsx141(
|
|
3086
3571
|
"svg",
|
|
3087
3572
|
{
|
|
3088
3573
|
className: styles19.chevron,
|
|
@@ -3095,7 +3580,7 @@ function Select({ className, size = "md", children, ...rest }) {
|
|
|
3095
3580
|
strokeWidth: "2",
|
|
3096
3581
|
strokeLinecap: "round",
|
|
3097
3582
|
strokeLinejoin: "round",
|
|
3098
|
-
children: /* @__PURE__ */
|
|
3583
|
+
children: /* @__PURE__ */ jsx141("polyline", { points: "6 9 12 15 18 9" })
|
|
3099
3584
|
}
|
|
3100
3585
|
)
|
|
3101
3586
|
]
|
|
@@ -3105,18 +3590,18 @@ function Select({ className, size = "md", children, ...rest }) {
|
|
|
3105
3590
|
|
|
3106
3591
|
// src/components/SystemBanner/SystemBanner.tsx
|
|
3107
3592
|
import styles20 from "./SystemBanner.module.css";
|
|
3108
|
-
import { jsx as
|
|
3593
|
+
import { jsx as jsx142, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
3109
3594
|
function SystemBanner({ variant = "info", onDismiss, children }) {
|
|
3110
|
-
return /* @__PURE__ */
|
|
3111
|
-
/* @__PURE__ */
|
|
3112
|
-
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(
|
|
3113
3598
|
"button",
|
|
3114
3599
|
{
|
|
3115
3600
|
type: "button",
|
|
3116
3601
|
className: styles20.dismiss,
|
|
3117
3602
|
onClick: onDismiss,
|
|
3118
3603
|
"aria-label": "Dismiss banner",
|
|
3119
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ jsx142(
|
|
3120
3605
|
"svg",
|
|
3121
3606
|
{
|
|
3122
3607
|
width: "14",
|
|
@@ -3125,7 +3610,7 @@ function SystemBanner({ variant = "info", onDismiss, children }) {
|
|
|
3125
3610
|
fill: "none",
|
|
3126
3611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3127
3612
|
"aria-hidden": true,
|
|
3128
|
-
children: /* @__PURE__ */
|
|
3613
|
+
children: /* @__PURE__ */ jsx142(
|
|
3129
3614
|
"path",
|
|
3130
3615
|
{
|
|
3131
3616
|
d: "M1 1L13 13M13 1L1 13",
|
|
@@ -3253,7 +3738,7 @@ function useOverlayKeyboardTrap(panelRef, open, onClose) {
|
|
|
3253
3738
|
|
|
3254
3739
|
// src/components/Popover/Popover.tsx
|
|
3255
3740
|
import styles21 from "./Popover.module.css";
|
|
3256
|
-
import { jsx as
|
|
3741
|
+
import { jsx as jsx143, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
3257
3742
|
var TRIGGER_GAP = 8;
|
|
3258
3743
|
var VIEWPORT_MARGIN = 4;
|
|
3259
3744
|
function Popover({
|
|
@@ -3353,9 +3838,9 @@ function Popover({
|
|
|
3353
3838
|
document.addEventListener("keydown", handleKeyDown);
|
|
3354
3839
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
3355
3840
|
}, [open, onClose]);
|
|
3356
|
-
return /* @__PURE__ */
|
|
3841
|
+
return /* @__PURE__ */ jsxs120("div", { ref: containerRef, className: [styles21.container, className].filter(Boolean).join(" "), children: [
|
|
3357
3842
|
trigger,
|
|
3358
|
-
open && /* @__PURE__ */
|
|
3843
|
+
open && /* @__PURE__ */ jsx143(
|
|
3359
3844
|
"div",
|
|
3360
3845
|
{
|
|
3361
3846
|
ref: panelRef,
|
|
@@ -3377,16 +3862,16 @@ function Popover({
|
|
|
3377
3862
|
|
|
3378
3863
|
// src/components/Input/Input.tsx
|
|
3379
3864
|
import styles22 from "./Input.module.css";
|
|
3380
|
-
import { jsx as
|
|
3865
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
3381
3866
|
function Input({ type = "text", className, ...rest }) {
|
|
3382
3867
|
const classes = [styles22.input, className].filter(Boolean).join(" ");
|
|
3383
|
-
return /* @__PURE__ */
|
|
3868
|
+
return /* @__PURE__ */ jsx144("input", { type, className: classes, ...rest });
|
|
3384
3869
|
}
|
|
3385
3870
|
|
|
3386
3871
|
// src/components/Textarea/Textarea.tsx
|
|
3387
3872
|
import { useLayoutEffect as useLayoutEffect2, useRef as useRef4 } from "react";
|
|
3388
3873
|
import styles23 from "./Textarea.module.css";
|
|
3389
|
-
import { jsx as
|
|
3874
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
3390
3875
|
function Textarea({ className, rows = 4, autoGrow = false, ...rest }) {
|
|
3391
3876
|
const ref = useRef4(null);
|
|
3392
3877
|
useLayoutEffect2(() => {
|
|
@@ -3396,12 +3881,12 @@ function Textarea({ className, rows = 4, autoGrow = false, ...rest }) {
|
|
|
3396
3881
|
el.style.height = `${el.scrollHeight}px`;
|
|
3397
3882
|
}, [autoGrow, rest.value, rest.defaultValue]);
|
|
3398
3883
|
const classes = [styles23.textarea, autoGrow ? styles23.textareaAutoGrow : "", className].filter(Boolean).join(" ");
|
|
3399
|
-
return /* @__PURE__ */
|
|
3884
|
+
return /* @__PURE__ */ jsx145("textarea", { ref, rows, className: classes, ...rest });
|
|
3400
3885
|
}
|
|
3401
3886
|
|
|
3402
3887
|
// src/components/CodeTextarea/CodeTextarea.tsx
|
|
3403
3888
|
import styles24 from "./CodeTextarea.module.css";
|
|
3404
|
-
import { jsx as
|
|
3889
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
3405
3890
|
function CodeTextarea({
|
|
3406
3891
|
className,
|
|
3407
3892
|
rows = 12,
|
|
@@ -3412,7 +3897,7 @@ function CodeTextarea({
|
|
|
3412
3897
|
...rest
|
|
3413
3898
|
}) {
|
|
3414
3899
|
const classes = [styles24.textarea, invalid ? styles24.invalid : void 0, className].filter(Boolean).join(" ");
|
|
3415
|
-
return /* @__PURE__ */
|
|
3900
|
+
return /* @__PURE__ */ jsx146(
|
|
3416
3901
|
"textarea",
|
|
3417
3902
|
{
|
|
3418
3903
|
rows,
|
|
@@ -3427,7 +3912,7 @@ function CodeTextarea({
|
|
|
3427
3912
|
|
|
3428
3913
|
// src/components/StatusBadge/StatusBadge.tsx
|
|
3429
3914
|
import styles25 from "./StatusBadge.module.css";
|
|
3430
|
-
import { jsx as
|
|
3915
|
+
import { jsx as jsx147, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
3431
3916
|
var STATUS_CLASS = {
|
|
3432
3917
|
unmodified: styles25.neutral,
|
|
3433
3918
|
draft: styles25.info,
|
|
@@ -3455,14 +3940,14 @@ function StatusBadge({
|
|
|
3455
3940
|
"aria-label": ariaLabel
|
|
3456
3941
|
}) {
|
|
3457
3942
|
const label = children ?? STATUS_LABEL[status];
|
|
3458
|
-
return /* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ jsxs121(
|
|
3459
3944
|
"span",
|
|
3460
3945
|
{
|
|
3461
3946
|
className: [styles25.badge, STATUS_CLASS[status], className].filter(Boolean).join(" "),
|
|
3462
3947
|
"aria-label": ariaLabel,
|
|
3463
3948
|
children: [
|
|
3464
|
-
/* @__PURE__ */
|
|
3465
|
-
/* @__PURE__ */
|
|
3949
|
+
/* @__PURE__ */ jsx147("span", { className: styles25.dot, "aria-hidden": "true" }),
|
|
3950
|
+
/* @__PURE__ */ jsx147("span", { className: styles25.label, children: label })
|
|
3466
3951
|
]
|
|
3467
3952
|
}
|
|
3468
3953
|
);
|
|
@@ -3471,7 +3956,7 @@ function StatusBadge({
|
|
|
3471
3956
|
// src/components/SplitPane/SplitPane.tsx
|
|
3472
3957
|
import { useCallback, useEffect as useEffect3, useRef as useRef5, useState as useState3 } from "react";
|
|
3473
3958
|
import styles26 from "./SplitPane.module.css";
|
|
3474
|
-
import { jsx as
|
|
3959
|
+
import { jsx as jsx148, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
3475
3960
|
var clampSize = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
3476
3961
|
function SplitPane({
|
|
3477
3962
|
primary,
|
|
@@ -3557,15 +4042,15 @@ function SplitPane({
|
|
|
3557
4042
|
const style = {
|
|
3558
4043
|
"--split-pane-primary-size": `${primarySize}%`
|
|
3559
4044
|
};
|
|
3560
|
-
return /* @__PURE__ */
|
|
4045
|
+
return /* @__PURE__ */ jsxs122(
|
|
3561
4046
|
"div",
|
|
3562
4047
|
{
|
|
3563
4048
|
ref: containerRef,
|
|
3564
4049
|
className: [styles26.splitPane, className].filter(Boolean).join(" "),
|
|
3565
4050
|
style,
|
|
3566
4051
|
children: [
|
|
3567
|
-
/* @__PURE__ */
|
|
3568
|
-
resizable && /* @__PURE__ */
|
|
4052
|
+
/* @__PURE__ */ jsx148("section", { className: styles26.pane, "aria-label": primaryLabel, children: primary }),
|
|
4053
|
+
resizable && /* @__PURE__ */ jsx148(
|
|
3569
4054
|
"button",
|
|
3570
4055
|
{
|
|
3571
4056
|
type: "button",
|
|
@@ -3575,7 +4060,7 @@ function SplitPane({
|
|
|
3575
4060
|
onKeyDown: resizeWithKeyboard
|
|
3576
4061
|
}
|
|
3577
4062
|
),
|
|
3578
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ jsx148("section", { className: styles26.pane, "aria-label": secondaryLabel, children: secondary })
|
|
3579
4064
|
]
|
|
3580
4065
|
}
|
|
3581
4066
|
);
|
|
@@ -3584,7 +4069,7 @@ function SplitPane({
|
|
|
3584
4069
|
// src/components/TagInput/TagInput.tsx
|
|
3585
4070
|
import { useMemo, useState as useState4 } from "react";
|
|
3586
4071
|
import styles27 from "./TagInput.module.css";
|
|
3587
|
-
import { jsx as
|
|
4072
|
+
import { jsx as jsx149, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
3588
4073
|
var DEFAULT_SEPARATORS = /[\n,]+/;
|
|
3589
4074
|
var splitTags = (value, separators) => value.split(separators).map((tag) => tag.trim()).filter(Boolean);
|
|
3590
4075
|
function TagInput({
|
|
@@ -3658,8 +4143,8 @@ function TagInput({
|
|
|
3658
4143
|
event.preventDefault();
|
|
3659
4144
|
addTags(tags);
|
|
3660
4145
|
};
|
|
3661
|
-
return /* @__PURE__ */
|
|
3662
|
-
/* @__PURE__ */
|
|
4146
|
+
return /* @__PURE__ */ jsxs123("div", { className: [styles27.wrapper, className].filter(Boolean).join(" "), children: [
|
|
4147
|
+
/* @__PURE__ */ jsxs123(
|
|
3663
4148
|
"div",
|
|
3664
4149
|
{
|
|
3665
4150
|
className: [
|
|
@@ -3668,9 +4153,9 @@ function TagInput({
|
|
|
3668
4153
|
error || localError || ariaInvalid ? styles27.invalid : void 0
|
|
3669
4154
|
].filter(Boolean).join(" "),
|
|
3670
4155
|
children: [
|
|
3671
|
-
value.map((tag, index) => /* @__PURE__ */
|
|
3672
|
-
/* @__PURE__ */
|
|
3673
|
-
/* @__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(
|
|
3674
4159
|
"button",
|
|
3675
4160
|
{
|
|
3676
4161
|
type: "button",
|
|
@@ -3682,7 +4167,7 @@ function TagInput({
|
|
|
3682
4167
|
}
|
|
3683
4168
|
)
|
|
3684
4169
|
] }, `${tag}-${index}`)),
|
|
3685
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ jsx149(
|
|
3686
4171
|
"input",
|
|
3687
4172
|
{
|
|
3688
4173
|
id,
|
|
@@ -3704,7 +4189,7 @@ function TagInput({
|
|
|
3704
4189
|
]
|
|
3705
4190
|
}
|
|
3706
4191
|
),
|
|
3707
|
-
message && /* @__PURE__ */
|
|
4192
|
+
message && /* @__PURE__ */ jsx149(
|
|
3708
4193
|
"p",
|
|
3709
4194
|
{
|
|
3710
4195
|
id: messageId,
|
|
@@ -3752,7 +4237,7 @@ function usePrefersReducedMotion() {
|
|
|
3752
4237
|
|
|
3753
4238
|
// src/components/OverlayHeader/OverlayHeader.tsx
|
|
3754
4239
|
import styles28 from "./OverlayHeader.module.css";
|
|
3755
|
-
import { jsx as
|
|
4240
|
+
import { jsx as jsx150, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
3756
4241
|
function OverlayHeader({
|
|
3757
4242
|
title,
|
|
3758
4243
|
onClose,
|
|
@@ -3763,20 +4248,20 @@ function OverlayHeader({
|
|
|
3763
4248
|
rowClassName,
|
|
3764
4249
|
titleClassName
|
|
3765
4250
|
}) {
|
|
3766
|
-
return /* @__PURE__ */
|
|
3767
|
-
/* @__PURE__ */
|
|
3768
|
-
onBack && /* @__PURE__ */
|
|
3769
|
-
/* @__PURE__ */
|
|
3770
|
-
action && /* @__PURE__ */
|
|
3771
|
-
/* @__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 }) })
|
|
3772
4257
|
] }),
|
|
3773
|
-
secondRow && /* @__PURE__ */
|
|
4258
|
+
secondRow && /* @__PURE__ */ jsx150("div", { className: styles28.secondRow, children: secondRow })
|
|
3774
4259
|
] });
|
|
3775
4260
|
}
|
|
3776
4261
|
|
|
3777
4262
|
// src/components/Dialog/Dialog.tsx
|
|
3778
4263
|
import styles29 from "./Dialog.module.css";
|
|
3779
|
-
import { Fragment as Fragment2, jsx as
|
|
4264
|
+
import { Fragment as Fragment2, jsx as jsx151, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
3780
4265
|
var OverlaySecondRowContext = createContext(
|
|
3781
4266
|
void 0
|
|
3782
4267
|
);
|
|
@@ -3822,7 +4307,7 @@ function Dialog({
|
|
|
3822
4307
|
// per keypress (the keydown bubbles through this element on its way to
|
|
3823
4308
|
// document), which is exactly the kind of bug that turns a single Escape
|
|
3824
4309
|
// press into two router.back() calls for @modal-driven consumers.
|
|
3825
|
-
/* @__PURE__ */
|
|
4310
|
+
/* @__PURE__ */ jsx151(
|
|
3826
4311
|
"div",
|
|
3827
4312
|
{
|
|
3828
4313
|
className: [styles29.scrim, isOpenPhase ? styles29.scrimOpen : ""].filter(Boolean).join(" "),
|
|
@@ -3830,7 +4315,7 @@ function Dialog({
|
|
|
3830
4315
|
onClick: (e) => {
|
|
3831
4316
|
if (e.target === e.currentTarget) onClose();
|
|
3832
4317
|
},
|
|
3833
|
-
children: /* @__PURE__ */
|
|
4318
|
+
children: /* @__PURE__ */ jsxs125(
|
|
3834
4319
|
"div",
|
|
3835
4320
|
{
|
|
3836
4321
|
ref: panelRef,
|
|
@@ -3848,7 +4333,7 @@ function Dialog({
|
|
|
3848
4333
|
mobile. It carries its own close button, so the separate
|
|
3849
4334
|
desktop-only .close button below is skipped entirely in this
|
|
3850
4335
|
branch — never render both at once. */
|
|
3851
|
-
/* @__PURE__ */
|
|
4336
|
+
/* @__PURE__ */ jsx151(
|
|
3852
4337
|
OverlayHeader,
|
|
3853
4338
|
{
|
|
3854
4339
|
title: header,
|
|
@@ -3858,8 +4343,8 @@ function Dialog({
|
|
|
3858
4343
|
titleClassName
|
|
3859
4344
|
}
|
|
3860
4345
|
)
|
|
3861
|
-
) : /* @__PURE__ */
|
|
3862
|
-
/* @__PURE__ */
|
|
4346
|
+
) : /* @__PURE__ */ jsxs125(Fragment2, { children: [
|
|
4347
|
+
/* @__PURE__ */ jsx151(
|
|
3863
4348
|
OverlayHeader,
|
|
3864
4349
|
{
|
|
3865
4350
|
title,
|
|
@@ -3870,10 +4355,10 @@ function Dialog({
|
|
|
3870
4355
|
titleClassName
|
|
3871
4356
|
}
|
|
3872
4357
|
),
|
|
3873
|
-
/* @__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 }) })
|
|
3874
4359
|
] }),
|
|
3875
|
-
/* @__PURE__ */
|
|
3876
|
-
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 })
|
|
3877
4362
|
]
|
|
3878
4363
|
}
|
|
3879
4364
|
)
|
|
@@ -3887,7 +4372,7 @@ function Dialog({
|
|
|
3887
4372
|
import { useRef as useRef7 } from "react";
|
|
3888
4373
|
import { createPortal as createPortal2 } from "react-dom";
|
|
3889
4374
|
import styles30 from "./Drawer.module.css";
|
|
3890
|
-
import { jsx as
|
|
4375
|
+
import { jsx as jsx152, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
3891
4376
|
var SWIPE_DISMISS_THRESHOLD_PX = 100;
|
|
3892
4377
|
function Drawer({
|
|
3893
4378
|
open,
|
|
@@ -3941,7 +4426,7 @@ function Drawer({
|
|
|
3941
4426
|
// No onKeyDown here — useOverlayKeyboardTrap above already owns Escape via a
|
|
3942
4427
|
// document-level listener; a second handler here used to double-fire onClose
|
|
3943
4428
|
// per keypress (see Dialog.tsx's identical fix for the full explanation).
|
|
3944
|
-
/* @__PURE__ */
|
|
4429
|
+
/* @__PURE__ */ jsx152(
|
|
3945
4430
|
"div",
|
|
3946
4431
|
{
|
|
3947
4432
|
className: [styles30.scrim, isOpenPhase ? styles30.scrimOpen : ""].filter(Boolean).join(" "),
|
|
@@ -3949,7 +4434,7 @@ function Drawer({
|
|
|
3949
4434
|
onClick: (e) => {
|
|
3950
4435
|
if (e.target === e.currentTarget) onClose();
|
|
3951
4436
|
},
|
|
3952
|
-
children: /* @__PURE__ */
|
|
4437
|
+
children: /* @__PURE__ */ jsxs126(
|
|
3953
4438
|
"div",
|
|
3954
4439
|
{
|
|
3955
4440
|
ref: panelRef,
|
|
@@ -3963,7 +4448,7 @@ function Drawer({
|
|
|
3963
4448
|
isOpenPhase ? styles30.panelOpen : ""
|
|
3964
4449
|
].filter(Boolean).join(" "),
|
|
3965
4450
|
children: [
|
|
3966
|
-
/* @__PURE__ */
|
|
4451
|
+
/* @__PURE__ */ jsx152(
|
|
3967
4452
|
"div",
|
|
3968
4453
|
{
|
|
3969
4454
|
className: styles30.handle,
|
|
@@ -3974,8 +4459,8 @@ function Drawer({
|
|
|
3974
4459
|
onPointerCancel: (e) => releaseDrag(e, false)
|
|
3975
4460
|
}
|
|
3976
4461
|
),
|
|
3977
|
-
title && /* @__PURE__ */
|
|
3978
|
-
/* @__PURE__ */
|
|
4462
|
+
title && /* @__PURE__ */ jsx152(OverlayHeader, { title, onClose }),
|
|
4463
|
+
/* @__PURE__ */ jsx152("div", { className: styles30.body, children })
|
|
3979
4464
|
]
|
|
3980
4465
|
}
|
|
3981
4466
|
)
|
|
@@ -3989,7 +4474,7 @@ function Drawer({
|
|
|
3989
4474
|
import { useRef as useRef8 } from "react";
|
|
3990
4475
|
import { createPortal as createPortal3 } from "react-dom";
|
|
3991
4476
|
import styles31 from "./Sheet.module.css";
|
|
3992
|
-
import { jsx as
|
|
4477
|
+
import { jsx as jsx153, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
3993
4478
|
function Sheet({
|
|
3994
4479
|
open,
|
|
3995
4480
|
onClose,
|
|
@@ -4012,7 +4497,7 @@ function Sheet({
|
|
|
4012
4497
|
useOverlayKeyboardTrap(panelRef, open, onClose);
|
|
4013
4498
|
if (!mounted || !portalTarget) return null;
|
|
4014
4499
|
return createPortal3(
|
|
4015
|
-
/* @__PURE__ */
|
|
4500
|
+
/* @__PURE__ */ jsxs127(
|
|
4016
4501
|
"div",
|
|
4017
4502
|
{
|
|
4018
4503
|
ref: panelRef,
|
|
@@ -4026,8 +4511,8 @@ function Sheet({
|
|
|
4026
4511
|
phase === "open" ? styles31.panelOpen : ""
|
|
4027
4512
|
].filter(Boolean).join(" "),
|
|
4028
4513
|
children: [
|
|
4029
|
-
title && /* @__PURE__ */
|
|
4030
|
-
/* @__PURE__ */
|
|
4514
|
+
title && /* @__PURE__ */ jsx153(OverlayHeader, { title, onClose, onBack, action: headerAction }),
|
|
4515
|
+
/* @__PURE__ */ jsx153("div", { className: styles31.content, children })
|
|
4031
4516
|
]
|
|
4032
4517
|
}
|
|
4033
4518
|
),
|
|
@@ -4038,7 +4523,7 @@ function Sheet({
|
|
|
4038
4523
|
// src/components/ConfirmDialog/ConfirmDialog.tsx
|
|
4039
4524
|
import { useEffect as useEffect6, useRef as useRef9 } from "react";
|
|
4040
4525
|
import styles32 from "./ConfirmDialog.module.css";
|
|
4041
|
-
import { jsx as
|
|
4526
|
+
import { jsx as jsx154, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
4042
4527
|
function ConfirmDialog({
|
|
4043
4528
|
open,
|
|
4044
4529
|
onClose,
|
|
@@ -4072,7 +4557,7 @@ function ConfirmDialog({
|
|
|
4072
4557
|
}, [onClose]);
|
|
4073
4558
|
return (
|
|
4074
4559
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
4075
|
-
/* @__PURE__ */
|
|
4560
|
+
/* @__PURE__ */ jsx154(
|
|
4076
4561
|
"dialog",
|
|
4077
4562
|
{
|
|
4078
4563
|
ref: dialogRef,
|
|
@@ -4081,12 +4566,12 @@ function ConfirmDialog({
|
|
|
4081
4566
|
onClick: (e) => {
|
|
4082
4567
|
if (e.target === e.currentTarget) dialogRef.current?.close();
|
|
4083
4568
|
},
|
|
4084
|
-
children: /* @__PURE__ */
|
|
4085
|
-
/* @__PURE__ */
|
|
4086
|
-
/* @__PURE__ */
|
|
4087
|
-
error && /* @__PURE__ */
|
|
4088
|
-
/* @__PURE__ */
|
|
4089
|
-
/* @__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(
|
|
4090
4575
|
Button,
|
|
4091
4576
|
{
|
|
4092
4577
|
type: "button",
|
|
@@ -4104,7 +4589,7 @@ function ConfirmDialog({
|
|
|
4104
4589
|
// -text-on-error tokens the codebase already introduced for this
|
|
4105
4590
|
// exact "reads as a filled action button, not a tinted status
|
|
4106
4591
|
// surface" case (see semantic.css).
|
|
4107
|
-
/* @__PURE__ */
|
|
4592
|
+
/* @__PURE__ */ jsx154(
|
|
4108
4593
|
"button",
|
|
4109
4594
|
{
|
|
4110
4595
|
type: "button",
|
|
@@ -4114,7 +4599,7 @@ function ConfirmDialog({
|
|
|
4114
4599
|
children: confirmLabel
|
|
4115
4600
|
}
|
|
4116
4601
|
)
|
|
4117
|
-
) : /* @__PURE__ */
|
|
4602
|
+
) : /* @__PURE__ */ jsx154(Button, { type: "button", variant: "primary", onClick: onConfirm, disabled: pending, children: confirmLabel })
|
|
4118
4603
|
] })
|
|
4119
4604
|
] })
|
|
4120
4605
|
}
|
|
@@ -4701,26 +5186,26 @@ function useSwipeStack({
|
|
|
4701
5186
|
|
|
4702
5187
|
// src/components/Menu/Menu.tsx
|
|
4703
5188
|
import styles33 from "./Menu.module.css";
|
|
4704
|
-
import { Fragment as Fragment3, jsx as
|
|
5189
|
+
import { Fragment as Fragment3, jsx as jsx155, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
4705
5190
|
function MenuEntries({
|
|
4706
5191
|
items,
|
|
4707
5192
|
onSelect
|
|
4708
5193
|
}) {
|
|
4709
|
-
return /* @__PURE__ */
|
|
5194
|
+
return /* @__PURE__ */ jsx155("ul", { className: styles33.list, role: "menu", children: items.map((entry, index) => {
|
|
4710
5195
|
if (entry.type === "separator") {
|
|
4711
|
-
return /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsx155("li", { role: "separator", className: styles33.separator }, index);
|
|
4712
5197
|
}
|
|
4713
5198
|
if (entry.type === "label") {
|
|
4714
|
-
return /* @__PURE__ */
|
|
5199
|
+
return /* @__PURE__ */ jsx155("li", { role: "presentation", className: styles33.label, children: entry.label }, index);
|
|
4715
5200
|
}
|
|
4716
5201
|
const isCheckable = entry.checked !== void 0;
|
|
4717
5202
|
const className = [styles33.item, entry.destructive ? styles33.itemDestructive : ""].filter(Boolean).join(" ");
|
|
4718
|
-
const content = /* @__PURE__ */
|
|
4719
|
-
isCheckable && /* @__PURE__ */
|
|
4720
|
-
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 }),
|
|
4721
5206
|
entry.label
|
|
4722
5207
|
] });
|
|
4723
|
-
return /* @__PURE__ */
|
|
5208
|
+
return /* @__PURE__ */ jsx155("li", { role: "none", children: entry.href ? /* @__PURE__ */ jsx155(
|
|
4724
5209
|
"a",
|
|
4725
5210
|
{
|
|
4726
5211
|
role: "menuitem",
|
|
@@ -4729,7 +5214,7 @@ function MenuEntries({
|
|
|
4729
5214
|
onClick: () => onSelect(entry),
|
|
4730
5215
|
children: content
|
|
4731
5216
|
}
|
|
4732
|
-
) : /* @__PURE__ */
|
|
5217
|
+
) : /* @__PURE__ */ jsx155(
|
|
4733
5218
|
"button",
|
|
4734
5219
|
{
|
|
4735
5220
|
role: isCheckable ? "menuitemradio" : "menuitem",
|
|
@@ -4753,7 +5238,7 @@ function Menu({
|
|
|
4753
5238
|
width
|
|
4754
5239
|
}) {
|
|
4755
5240
|
const isMobile = useIsMobile();
|
|
4756
|
-
const list = /* @__PURE__ */
|
|
5241
|
+
const list = /* @__PURE__ */ jsx155(
|
|
4757
5242
|
MenuEntries,
|
|
4758
5243
|
{
|
|
4759
5244
|
items,
|
|
@@ -4764,12 +5249,12 @@ function Menu({
|
|
|
4764
5249
|
}
|
|
4765
5250
|
);
|
|
4766
5251
|
if (isMobile) {
|
|
4767
|
-
return /* @__PURE__ */
|
|
5252
|
+
return /* @__PURE__ */ jsxs129(Fragment3, { children: [
|
|
4768
5253
|
trigger,
|
|
4769
|
-
/* @__PURE__ */
|
|
5254
|
+
/* @__PURE__ */ jsx155(Drawer, { open, onClose, "aria-label": ariaLabel, children: list })
|
|
4770
5255
|
] });
|
|
4771
5256
|
}
|
|
4772
|
-
return /* @__PURE__ */
|
|
5257
|
+
return /* @__PURE__ */ jsx155(
|
|
4773
5258
|
Popover,
|
|
4774
5259
|
{
|
|
4775
5260
|
trigger,
|
|
@@ -4786,7 +5271,7 @@ function Menu({
|
|
|
4786
5271
|
// src/components/UserMenu/UserMenu.tsx
|
|
4787
5272
|
import { useState as useState12 } from "react";
|
|
4788
5273
|
import styles34 from "./UserMenu.module.css";
|
|
4789
|
-
import { jsx as
|
|
5274
|
+
import { jsx as jsx156, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
4790
5275
|
function initials(value) {
|
|
4791
5276
|
const trimmed = value.trim();
|
|
4792
5277
|
if (!trimmed) return "?";
|
|
@@ -4804,7 +5289,7 @@ function UserMenu({
|
|
|
4804
5289
|
}) {
|
|
4805
5290
|
const [open, setOpen] = useState12(false);
|
|
4806
5291
|
const displayName = name || email || "";
|
|
4807
|
-
return /* @__PURE__ */
|
|
5292
|
+
return /* @__PURE__ */ jsxs130(
|
|
4808
5293
|
Popover,
|
|
4809
5294
|
{
|
|
4810
5295
|
align,
|
|
@@ -4812,7 +5297,7 @@ function UserMenu({
|
|
|
4812
5297
|
"aria-label": ariaLabel,
|
|
4813
5298
|
open,
|
|
4814
5299
|
onClose: () => setOpen(false),
|
|
4815
|
-
trigger: /* @__PURE__ */
|
|
5300
|
+
trigger: /* @__PURE__ */ jsx156(
|
|
4816
5301
|
"button",
|
|
4817
5302
|
{
|
|
4818
5303
|
type: "button",
|
|
@@ -4821,21 +5306,21 @@ function UserMenu({
|
|
|
4821
5306
|
"aria-expanded": open,
|
|
4822
5307
|
onClick: () => setOpen((v) => !v),
|
|
4823
5308
|
className: [styles34.trigger, size === "sm" ? styles34.triggerSm : ""].filter(Boolean).join(" "),
|
|
4824
|
-
children: avatarUrl ? /* @__PURE__ */
|
|
5309
|
+
children: avatarUrl ? /* @__PURE__ */ jsx156("img", { src: avatarUrl, alt: "", className: styles34.triggerImg }) : initials(displayName)
|
|
4825
5310
|
}
|
|
4826
5311
|
),
|
|
4827
5312
|
children: [
|
|
4828
|
-
displayName && /* @__PURE__ */
|
|
4829
|
-
/* @__PURE__ */
|
|
4830
|
-
/* @__PURE__ */
|
|
4831
|
-
/* @__PURE__ */
|
|
4832
|
-
name && /* @__PURE__ */
|
|
4833
|
-
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 })
|
|
4834
5319
|
] })
|
|
4835
5320
|
] }),
|
|
4836
|
-
/* @__PURE__ */
|
|
5321
|
+
/* @__PURE__ */ jsx156("hr", { className: styles34.divider })
|
|
4837
5322
|
] }),
|
|
4838
|
-
/* @__PURE__ */
|
|
5323
|
+
/* @__PURE__ */ jsx156(
|
|
4839
5324
|
MenuEntries,
|
|
4840
5325
|
{
|
|
4841
5326
|
items,
|
|
@@ -4855,14 +5340,14 @@ import { useState as useState13 } from "react";
|
|
|
4855
5340
|
|
|
4856
5341
|
// src/components/Spinner/Spinner.tsx
|
|
4857
5342
|
import styles35 from "./Spinner.module.css";
|
|
4858
|
-
import { jsx as
|
|
5343
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
4859
5344
|
var sizeClass = {
|
|
4860
5345
|
sm: styles35.sm,
|
|
4861
5346
|
md: styles35.md,
|
|
4862
5347
|
lg: styles35.lg
|
|
4863
5348
|
};
|
|
4864
5349
|
function Spinner({ size = "md", label = "Loading\u2026", className }) {
|
|
4865
|
-
return /* @__PURE__ */
|
|
5350
|
+
return /* @__PURE__ */ jsx157(
|
|
4866
5351
|
"span",
|
|
4867
5352
|
{
|
|
4868
5353
|
role: "status",
|
|
@@ -4874,16 +5359,16 @@ function Spinner({ size = "md", label = "Loading\u2026", className }) {
|
|
|
4874
5359
|
|
|
4875
5360
|
// src/components/AppsLauncher/AppsLauncher.tsx
|
|
4876
5361
|
import styles36 from "./AppsLauncher.module.css";
|
|
4877
|
-
import { Fragment as Fragment4, jsx as
|
|
5362
|
+
import { Fragment as Fragment4, jsx as jsx158, jsxs as jsxs131 } from "react/jsx-runtime";
|
|
4878
5363
|
function AppsLauncherTile({ icon, label, href, onClick }) {
|
|
4879
|
-
const content = /* @__PURE__ */
|
|
4880
|
-
/* @__PURE__ */
|
|
4881
|
-
/* @__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 })
|
|
4882
5367
|
] });
|
|
4883
5368
|
if (href) {
|
|
4884
|
-
return /* @__PURE__ */
|
|
5369
|
+
return /* @__PURE__ */ jsx158("a", { href, className: styles36.tile, onClick, children: content });
|
|
4885
5370
|
}
|
|
4886
|
-
return /* @__PURE__ */
|
|
5371
|
+
return /* @__PURE__ */ jsx158("button", { type: "button", className: styles36.tile, onClick, children: content });
|
|
4887
5372
|
}
|
|
4888
5373
|
function AppsLauncher({
|
|
4889
5374
|
items,
|
|
@@ -4895,7 +5380,7 @@ function AppsLauncher({
|
|
|
4895
5380
|
align = "right"
|
|
4896
5381
|
}) {
|
|
4897
5382
|
const [open, setOpen] = useState13(false);
|
|
4898
|
-
return /* @__PURE__ */
|
|
5383
|
+
return /* @__PURE__ */ jsxs131(
|
|
4899
5384
|
Popover,
|
|
4900
5385
|
{
|
|
4901
5386
|
align,
|
|
@@ -4903,7 +5388,7 @@ function AppsLauncher({
|
|
|
4903
5388
|
"aria-label": ariaLabel,
|
|
4904
5389
|
open,
|
|
4905
5390
|
onClose: () => setOpen(false),
|
|
4906
|
-
trigger: /* @__PURE__ */
|
|
5391
|
+
trigger: /* @__PURE__ */ jsx158(
|
|
4907
5392
|
"button",
|
|
4908
5393
|
{
|
|
4909
5394
|
type: "button",
|
|
@@ -4912,12 +5397,12 @@ function AppsLauncher({
|
|
|
4912
5397
|
"aria-expanded": open,
|
|
4913
5398
|
onClick: () => setOpen((v) => !v),
|
|
4914
5399
|
className: styles36.trigger,
|
|
4915
|
-
children: triggerIcon ?? /* @__PURE__ */
|
|
5400
|
+
children: triggerIcon ?? /* @__PURE__ */ jsx158(Icon, { name: "layout-grid", size: "md", "aria-hidden": true })
|
|
4916
5401
|
}
|
|
4917
5402
|
),
|
|
4918
5403
|
children: [
|
|
4919
|
-
/* @__PURE__ */
|
|
4920
|
-
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)) })
|
|
4921
5406
|
]
|
|
4922
5407
|
}
|
|
4923
5408
|
);
|
|
@@ -4926,9 +5411,9 @@ function AppsLauncher({
|
|
|
4926
5411
|
// src/components/NotificationsPanel/NotificationsPanel.tsx
|
|
4927
5412
|
import { useState as useState14 } from "react";
|
|
4928
5413
|
import styles37 from "./NotificationsPanel.module.css";
|
|
4929
|
-
import { Fragment as Fragment5, jsx as
|
|
5414
|
+
import { Fragment as Fragment5, jsx as jsx159, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
4930
5415
|
function NotificationRow({ item }) {
|
|
4931
|
-
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(
|
|
4932
5417
|
"button",
|
|
4933
5418
|
{
|
|
4934
5419
|
type: "button",
|
|
@@ -4937,23 +5422,23 @@ function NotificationRow({ item }) {
|
|
|
4937
5422
|
onClick: item.onOpen,
|
|
4938
5423
|
children: item.title
|
|
4939
5424
|
}
|
|
4940
|
-
) : /* @__PURE__ */
|
|
4941
|
-
return /* @__PURE__ */
|
|
4942
|
-
/* @__PURE__ */
|
|
4943
|
-
/* @__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: [
|
|
4944
5429
|
titleContent,
|
|
4945
|
-
/* @__PURE__ */
|
|
5430
|
+
/* @__PURE__ */ jsx159("span", { className: styles37.itemTime, children: item.timeLabel })
|
|
4946
5431
|
] }),
|
|
4947
|
-
/* @__PURE__ */
|
|
4948
|
-
!item.read && /* @__PURE__ */
|
|
4949
|
-
/* @__PURE__ */
|
|
5432
|
+
/* @__PURE__ */ jsxs132("div", { className: styles37.itemEnd, children: [
|
|
5433
|
+
!item.read && /* @__PURE__ */ jsx159("span", { className: styles37.unreadDot, "aria-label": "Unread" }),
|
|
5434
|
+
/* @__PURE__ */ jsx159(
|
|
4950
5435
|
"button",
|
|
4951
5436
|
{
|
|
4952
5437
|
type: "button",
|
|
4953
5438
|
className: styles37.dismissBtn,
|
|
4954
5439
|
"aria-label": `Dismiss: ${item.title}`,
|
|
4955
5440
|
onClick: item.onDismiss,
|
|
4956
|
-
children: /* @__PURE__ */
|
|
5441
|
+
children: /* @__PURE__ */ jsx159(Icon, { name: "x", size: "sm", "aria-hidden": true })
|
|
4957
5442
|
}
|
|
4958
5443
|
)
|
|
4959
5444
|
] })
|
|
@@ -4970,7 +5455,7 @@ function NotificationsPanel({
|
|
|
4970
5455
|
viewAllHref
|
|
4971
5456
|
}) {
|
|
4972
5457
|
const [open, setOpen] = useState14(false);
|
|
4973
|
-
return /* @__PURE__ */
|
|
5458
|
+
return /* @__PURE__ */ jsxs132(
|
|
4974
5459
|
Popover,
|
|
4975
5460
|
{
|
|
4976
5461
|
align,
|
|
@@ -4978,7 +5463,7 @@ function NotificationsPanel({
|
|
|
4978
5463
|
"aria-label": ariaLabel,
|
|
4979
5464
|
open,
|
|
4980
5465
|
onClose: () => setOpen(false),
|
|
4981
|
-
trigger: /* @__PURE__ */
|
|
5466
|
+
trigger: /* @__PURE__ */ jsxs132(
|
|
4982
5467
|
"button",
|
|
4983
5468
|
{
|
|
4984
5469
|
type: "button",
|
|
@@ -4988,36 +5473,36 @@ function NotificationsPanel({
|
|
|
4988
5473
|
onClick: () => setOpen((v) => !v),
|
|
4989
5474
|
className: styles37.trigger,
|
|
4990
5475
|
children: [
|
|
4991
|
-
/* @__PURE__ */
|
|
4992
|
-
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 })
|
|
4993
5478
|
]
|
|
4994
5479
|
}
|
|
4995
5480
|
),
|
|
4996
5481
|
children: [
|
|
4997
|
-
/* @__PURE__ */
|
|
4998
|
-
/* @__PURE__ */
|
|
4999
|
-
/* @__PURE__ */
|
|
5000
|
-
items.length > 0 && /* @__PURE__ */
|
|
5001
|
-
unreadCount > 0 && onMarkAllRead && /* @__PURE__ */
|
|
5002
|
-
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" })
|
|
5003
5488
|
] }),
|
|
5004
|
-
/* @__PURE__ */
|
|
5489
|
+
/* @__PURE__ */ jsx159(
|
|
5005
5490
|
"button",
|
|
5006
5491
|
{
|
|
5007
5492
|
type: "button",
|
|
5008
5493
|
className: styles37.closeBtn,
|
|
5009
5494
|
"aria-label": `Close ${ariaLabel.toLowerCase()}`,
|
|
5010
5495
|
onClick: () => setOpen(false),
|
|
5011
|
-
children: /* @__PURE__ */
|
|
5496
|
+
children: /* @__PURE__ */ jsx159(Icon, { name: "x", size: "sm", "aria-hidden": true })
|
|
5012
5497
|
}
|
|
5013
5498
|
)
|
|
5014
5499
|
] })
|
|
5015
5500
|
] }),
|
|
5016
|
-
/* @__PURE__ */
|
|
5017
|
-
/* @__PURE__ */
|
|
5018
|
-
/* @__PURE__ */
|
|
5019
|
-
] }) : items.map((item) => /* @__PURE__ */
|
|
5020
|
-
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" })
|
|
5021
5506
|
]
|
|
5022
5507
|
}
|
|
5023
5508
|
);
|
|
@@ -5035,7 +5520,7 @@ import {
|
|
|
5035
5520
|
useState as useState15
|
|
5036
5521
|
} from "react";
|
|
5037
5522
|
import styles38 from "./Toast.module.css";
|
|
5038
|
-
import { jsx as
|
|
5523
|
+
import { jsx as jsx160, jsxs as jsxs133 } from "react/jsx-runtime";
|
|
5039
5524
|
var ToastContext = createContext2(null);
|
|
5040
5525
|
function useToast() {
|
|
5041
5526
|
const ctx = useContext2(ToastContext);
|
|
@@ -5073,16 +5558,16 @@ function ToastProvider({ children }) {
|
|
|
5073
5558
|
};
|
|
5074
5559
|
}, []);
|
|
5075
5560
|
const value = useMemo2(() => ({ show, dismiss }), [show, dismiss]);
|
|
5076
|
-
return /* @__PURE__ */
|
|
5561
|
+
return /* @__PURE__ */ jsxs133(ToastContext.Provider, { value, children: [
|
|
5077
5562
|
children,
|
|
5078
|
-
/* @__PURE__ */
|
|
5563
|
+
/* @__PURE__ */ jsx160(
|
|
5079
5564
|
"ol",
|
|
5080
5565
|
{
|
|
5081
5566
|
className: styles38.region,
|
|
5082
5567
|
"aria-label": "Notifications",
|
|
5083
5568
|
"aria-live": "polite",
|
|
5084
5569
|
"aria-atomic": "false",
|
|
5085
|
-
children: toasts.map((toast) => /* @__PURE__ */
|
|
5570
|
+
children: toasts.map((toast) => /* @__PURE__ */ jsx160(Toast, { ...toast, onDismiss: dismiss }, toast.id))
|
|
5086
5571
|
}
|
|
5087
5572
|
)
|
|
5088
5573
|
] });
|
|
@@ -5105,18 +5590,18 @@ function Toast({
|
|
|
5105
5590
|
}) {
|
|
5106
5591
|
const categoryClass = styles38[category] ?? styles38.info;
|
|
5107
5592
|
const iconName = CATEGORY_ICON[category] ?? "info";
|
|
5108
|
-
return /* @__PURE__ */
|
|
5593
|
+
return /* @__PURE__ */ jsxs133(
|
|
5109
5594
|
"li",
|
|
5110
5595
|
{
|
|
5111
5596
|
role: "status",
|
|
5112
5597
|
className: `${styles38.toast} ${String(categoryClass)} ${exiting ? styles38.exiting : ""}`,
|
|
5113
5598
|
children: [
|
|
5114
|
-
/* @__PURE__ */
|
|
5115
|
-
/* @__PURE__ */
|
|
5116
|
-
/* @__PURE__ */
|
|
5117
|
-
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 })
|
|
5118
5603
|
] }),
|
|
5119
|
-
/* @__PURE__ */
|
|
5604
|
+
/* @__PURE__ */ jsx160(
|
|
5120
5605
|
"button",
|
|
5121
5606
|
{
|
|
5122
5607
|
type: "button",
|
|
@@ -5133,7 +5618,7 @@ function Toast({
|
|
|
5133
5618
|
|
|
5134
5619
|
// src/components/CardTile/CardTile.tsx
|
|
5135
5620
|
import styles39 from "./CardTile.module.css";
|
|
5136
|
-
import { jsx as
|
|
5621
|
+
import { jsx as jsx161, jsxs as jsxs134 } from "react/jsx-runtime";
|
|
5137
5622
|
function CardTileGrid({
|
|
5138
5623
|
children,
|
|
5139
5624
|
minTileWidth = 200,
|
|
@@ -5141,7 +5626,7 @@ function CardTileGrid({
|
|
|
5141
5626
|
dense = false
|
|
5142
5627
|
}) {
|
|
5143
5628
|
const style = { "--sv-card-tile-min-width": `${minTileWidth}px` };
|
|
5144
|
-
return /* @__PURE__ */
|
|
5629
|
+
return /* @__PURE__ */ jsx161(
|
|
5145
5630
|
"div",
|
|
5146
5631
|
{
|
|
5147
5632
|
className: [styles39.grid, dense && styles39.gridDense, className].filter(Boolean).join(" "),
|
|
@@ -5159,13 +5644,13 @@ function CardTile({
|
|
|
5159
5644
|
...rest
|
|
5160
5645
|
}) {
|
|
5161
5646
|
const isIcon = variant === "icon";
|
|
5162
|
-
return /* @__PURE__ */
|
|
5647
|
+
return /* @__PURE__ */ jsxs134(
|
|
5163
5648
|
"div",
|
|
5164
5649
|
{
|
|
5165
5650
|
className: [styles39.tile, isIcon && styles39.tileIcon, className].filter(Boolean).join(" "),
|
|
5166
5651
|
...rest,
|
|
5167
5652
|
children: [
|
|
5168
|
-
/* @__PURE__ */
|
|
5653
|
+
/* @__PURE__ */ jsx161(
|
|
5169
5654
|
"div",
|
|
5170
5655
|
{
|
|
5171
5656
|
className: styles39.banner,
|
|
@@ -5174,7 +5659,7 @@ function CardTile({
|
|
|
5174
5659
|
children: banner
|
|
5175
5660
|
}
|
|
5176
5661
|
),
|
|
5177
|
-
/* @__PURE__ */
|
|
5662
|
+
/* @__PURE__ */ jsx161("div", { className: styles39.footer, children })
|
|
5178
5663
|
]
|
|
5179
5664
|
}
|
|
5180
5665
|
);
|
|
@@ -5188,7 +5673,7 @@ function NewCardTile({
|
|
|
5188
5673
|
...rest
|
|
5189
5674
|
}) {
|
|
5190
5675
|
const isIcon = variant === "icon";
|
|
5191
|
-
return /* @__PURE__ */
|
|
5676
|
+
return /* @__PURE__ */ jsxs134(
|
|
5192
5677
|
"button",
|
|
5193
5678
|
{
|
|
5194
5679
|
type,
|
|
@@ -5196,7 +5681,7 @@ function NewCardTile({
|
|
|
5196
5681
|
...rest,
|
|
5197
5682
|
"aria-label": isIcon ? label : void 0,
|
|
5198
5683
|
children: [
|
|
5199
|
-
/* @__PURE__ */
|
|
5684
|
+
/* @__PURE__ */ jsx161(Icon, { name: icon, size: isIcon ? "md" : "sm", "aria-hidden": true }),
|
|
5200
5685
|
!isIcon && label
|
|
5201
5686
|
]
|
|
5202
5687
|
}
|
|
@@ -5206,7 +5691,7 @@ function NewCardTile({
|
|
|
5206
5691
|
// src/components/FormField/FormField.tsx
|
|
5207
5692
|
import { useId as useId4 } from "react";
|
|
5208
5693
|
import styles40 from "./FormField.module.css";
|
|
5209
|
-
import { jsx as
|
|
5694
|
+
import { jsx as jsx162, jsxs as jsxs135 } from "react/jsx-runtime";
|
|
5210
5695
|
function FormField({
|
|
5211
5696
|
label,
|
|
5212
5697
|
hint,
|
|
@@ -5227,27 +5712,27 @@ function FormField({
|
|
|
5227
5712
|
"aria-invalid": error ? true : void 0,
|
|
5228
5713
|
required: required || void 0
|
|
5229
5714
|
};
|
|
5230
|
-
return /* @__PURE__ */
|
|
5231
|
-
/* @__PURE__ */
|
|
5715
|
+
return /* @__PURE__ */ jsxs135("div", { className: [styles40.field, className].filter(Boolean).join(" "), children: [
|
|
5716
|
+
/* @__PURE__ */ jsxs135("label", { className: styles40.label, htmlFor: fieldId, children: [
|
|
5232
5717
|
label,
|
|
5233
|
-
required && /* @__PURE__ */
|
|
5718
|
+
required && /* @__PURE__ */ jsx162("span", { className: styles40.required, "aria-hidden": "true", children: "*" })
|
|
5234
5719
|
] }),
|
|
5235
5720
|
children(field),
|
|
5236
|
-
hint && !error && /* @__PURE__ */
|
|
5237
|
-
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 })
|
|
5238
5723
|
] });
|
|
5239
5724
|
}
|
|
5240
5725
|
|
|
5241
5726
|
// src/components/ResponsiveSurface/ResponsiveSurface.tsx
|
|
5242
|
-
import { Fragment as Fragment6, jsx as
|
|
5727
|
+
import { Fragment as Fragment6, jsx as jsx163 } from "react/jsx-runtime";
|
|
5243
5728
|
function ResponsiveSurface({ web, mobile, breakpointPx }) {
|
|
5244
5729
|
const { value } = useResponsiveLayout({ web, mobile, breakpointPx });
|
|
5245
|
-
return /* @__PURE__ */
|
|
5730
|
+
return /* @__PURE__ */ jsx163(Fragment6, { children: value });
|
|
5246
5731
|
}
|
|
5247
5732
|
|
|
5248
5733
|
// src/components/PageHeader/PageHeader.tsx
|
|
5249
5734
|
import styles41 from "./PageHeader.module.css";
|
|
5250
|
-
import { jsx as
|
|
5735
|
+
import { jsx as jsx164, jsxs as jsxs136 } from "react/jsx-runtime";
|
|
5251
5736
|
var HEADING_TAG = { 1: "h1", 2: "h2", 3: "h3" };
|
|
5252
5737
|
function PageHeaderWeb({
|
|
5253
5738
|
title,
|
|
@@ -5258,15 +5743,15 @@ function PageHeaderWeb({
|
|
|
5258
5743
|
className
|
|
5259
5744
|
}) {
|
|
5260
5745
|
const Heading = HEADING_TAG[headingLevel];
|
|
5261
|
-
return /* @__PURE__ */
|
|
5262
|
-
/* @__PURE__ */
|
|
5263
|
-
/* @__PURE__ */
|
|
5264
|
-
icon && /* @__PURE__ */
|
|
5265
|
-
/* @__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 })
|
|
5266
5751
|
] }),
|
|
5267
|
-
description && /* @__PURE__ */
|
|
5752
|
+
description && /* @__PURE__ */ jsx164("p", { className: styles41.description, children: description })
|
|
5268
5753
|
] }),
|
|
5269
|
-
action && /* @__PURE__ */
|
|
5754
|
+
action && /* @__PURE__ */ jsx164("div", { className: styles41.action, children: action })
|
|
5270
5755
|
] });
|
|
5271
5756
|
}
|
|
5272
5757
|
function PageHeaderMobile({
|
|
@@ -5279,8 +5764,8 @@ function PageHeaderMobile({
|
|
|
5279
5764
|
className
|
|
5280
5765
|
}) {
|
|
5281
5766
|
const Heading = HEADING_TAG[headingLevel];
|
|
5282
|
-
return /* @__PURE__ */
|
|
5283
|
-
onBack && /* @__PURE__ */
|
|
5767
|
+
return /* @__PURE__ */ jsxs136("header", { className: [styles41.mobileHeader, className].filter(Boolean).join(" "), children: [
|
|
5768
|
+
onBack && /* @__PURE__ */ jsx164(
|
|
5284
5769
|
Button,
|
|
5285
5770
|
{
|
|
5286
5771
|
variant: "ghost",
|
|
@@ -5288,13 +5773,13 @@ function PageHeaderMobile({
|
|
|
5288
5773
|
"aria-label": "Back",
|
|
5289
5774
|
onClick: onBack,
|
|
5290
5775
|
className: styles41.mobileBack,
|
|
5291
|
-
children: /* @__PURE__ */
|
|
5776
|
+
children: /* @__PURE__ */ jsx164(Icon, { name: "circle-chevron-left", size: "md", "aria-hidden": true })
|
|
5292
5777
|
}
|
|
5293
5778
|
),
|
|
5294
|
-
icon && /* @__PURE__ */
|
|
5295
|
-
/* @__PURE__ */
|
|
5296
|
-
action && /* @__PURE__ */
|
|
5297
|
-
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(
|
|
5298
5783
|
Button,
|
|
5299
5784
|
{
|
|
5300
5785
|
variant: "ghost",
|
|
@@ -5302,7 +5787,7 @@ function PageHeaderMobile({
|
|
|
5302
5787
|
"aria-label": "Menu",
|
|
5303
5788
|
onClick: onMenuClick,
|
|
5304
5789
|
className: styles41.mobileMenu,
|
|
5305
|
-
children: /* @__PURE__ */
|
|
5790
|
+
children: /* @__PURE__ */ jsx164(Icon, { name: "ellipsis-vertical", size: "md", "aria-hidden": true })
|
|
5306
5791
|
}
|
|
5307
5792
|
)
|
|
5308
5793
|
] });
|
|
@@ -5317,10 +5802,10 @@ function PageHeader({
|
|
|
5317
5802
|
onBack,
|
|
5318
5803
|
onMenuClick
|
|
5319
5804
|
}) {
|
|
5320
|
-
return /* @__PURE__ */
|
|
5805
|
+
return /* @__PURE__ */ jsx164(
|
|
5321
5806
|
ResponsiveSurface,
|
|
5322
5807
|
{
|
|
5323
|
-
web: /* @__PURE__ */
|
|
5808
|
+
web: /* @__PURE__ */ jsx164(
|
|
5324
5809
|
PageHeaderWeb,
|
|
5325
5810
|
{
|
|
5326
5811
|
title,
|
|
@@ -5331,7 +5816,7 @@ function PageHeader({
|
|
|
5331
5816
|
className
|
|
5332
5817
|
}
|
|
5333
5818
|
),
|
|
5334
|
-
mobile: /* @__PURE__ */
|
|
5819
|
+
mobile: /* @__PURE__ */ jsx164(
|
|
5335
5820
|
PageHeaderMobile,
|
|
5336
5821
|
{
|
|
5337
5822
|
title,
|
|
@@ -5349,7 +5834,7 @@ function PageHeader({
|
|
|
5349
5834
|
|
|
5350
5835
|
// src/components/PageContainer/PageContainer.tsx
|
|
5351
5836
|
import styles42 from "./PageContainer.module.css";
|
|
5352
|
-
import { jsx as
|
|
5837
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
5353
5838
|
var maxWidthClass = {
|
|
5354
5839
|
sm: styles42.sm,
|
|
5355
5840
|
md: styles42.md,
|
|
@@ -5370,17 +5855,18 @@ function PageContainer({
|
|
|
5370
5855
|
...rest
|
|
5371
5856
|
}) {
|
|
5372
5857
|
const cls = [styles42.container, maxWidthClass[maxWidth], paddingClass2[padding], className].filter(Boolean).join(" ");
|
|
5373
|
-
return /* @__PURE__ */
|
|
5858
|
+
return /* @__PURE__ */ jsx165("div", { className: cls, ...rest, children });
|
|
5374
5859
|
}
|
|
5375
5860
|
|
|
5376
5861
|
// src/components/Header/Header.tsx
|
|
5377
5862
|
import styles43 from "./Header.module.css";
|
|
5378
|
-
import { jsx as
|
|
5863
|
+
import { jsx as jsx166, jsxs as jsxs137 } from "react/jsx-runtime";
|
|
5379
5864
|
function Header({
|
|
5380
5865
|
instanceName,
|
|
5381
5866
|
instanceLogoUrl,
|
|
5382
5867
|
homeHref,
|
|
5383
5868
|
plugin,
|
|
5869
|
+
leading,
|
|
5384
5870
|
launcher,
|
|
5385
5871
|
notifications,
|
|
5386
5872
|
avatarMenu,
|
|
@@ -5389,18 +5875,19 @@ function Header({
|
|
|
5389
5875
|
}) {
|
|
5390
5876
|
const brandInitial = instanceName.charAt(0).toUpperCase() || "S";
|
|
5391
5877
|
const cls = [styles43.header, className].filter(Boolean).join(" ");
|
|
5392
|
-
return /* @__PURE__ */
|
|
5393
|
-
/* @__PURE__ */
|
|
5394
|
-
|
|
5395
|
-
|
|
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: [
|
|
5396
5883
|
plugin.icon,
|
|
5397
|
-
/* @__PURE__ */
|
|
5398
|
-
] }) : /* @__PURE__ */
|
|
5884
|
+
/* @__PURE__ */ jsx166("span", { className: styles43.pluginName, children: plugin.name })
|
|
5885
|
+
] }) : /* @__PURE__ */ jsxs137("span", { className: styles43.plugin, children: [
|
|
5399
5886
|
plugin.icon,
|
|
5400
|
-
/* @__PURE__ */
|
|
5887
|
+
/* @__PURE__ */ jsx166("span", { className: styles43.pluginName, children: plugin.name })
|
|
5401
5888
|
] }))
|
|
5402
5889
|
] }),
|
|
5403
|
-
/* @__PURE__ */
|
|
5890
|
+
/* @__PURE__ */ jsxs137("div", { className: styles43.right, children: [
|
|
5404
5891
|
launcher,
|
|
5405
5892
|
notifications,
|
|
5406
5893
|
avatarMenu
|
|
@@ -5440,9 +5927,9 @@ function usePublishShellChromeHeight(ref, cssVariable) {
|
|
|
5440
5927
|
|
|
5441
5928
|
// src/components/MobileHeader/MobileHeader.tsx
|
|
5442
5929
|
import styles44 from "./MobileHeader.module.css";
|
|
5443
|
-
import { jsx as
|
|
5930
|
+
import { jsx as jsx167, jsxs as jsxs138 } from "react/jsx-runtime";
|
|
5444
5931
|
function DefaultLogo() {
|
|
5445
|
-
return /* @__PURE__ */
|
|
5932
|
+
return /* @__PURE__ */ jsx167("span", { className: styles44.defaultLogo, "aria-hidden": "true", children: "S" });
|
|
5446
5933
|
}
|
|
5447
5934
|
function MobileHeader({
|
|
5448
5935
|
logo,
|
|
@@ -5455,12 +5942,12 @@ function MobileHeader({
|
|
|
5455
5942
|
const headerRef = useRef17(null);
|
|
5456
5943
|
usePublishShellChromeHeight(headerRef, "--sv-shell-header-height");
|
|
5457
5944
|
const cls = [styles44.header, className].filter(Boolean).join(" ");
|
|
5458
|
-
return /* @__PURE__ */
|
|
5459
|
-
/* @__PURE__ */
|
|
5460
|
-
logo ?? /* @__PURE__ */
|
|
5461
|
-
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 })
|
|
5462
5949
|
] }),
|
|
5463
|
-
/* @__PURE__ */
|
|
5950
|
+
/* @__PURE__ */ jsxs138("div", { className: styles44.right, children: [
|
|
5464
5951
|
bell,
|
|
5465
5952
|
avatarMenu
|
|
5466
5953
|
] })
|
|
@@ -5470,11 +5957,11 @@ function MobileHeader({
|
|
|
5470
5957
|
// src/components/MobileFooter/MobileFooter.tsx
|
|
5471
5958
|
import { useRef as useRef18 } from "react";
|
|
5472
5959
|
import styles45 from "./MobileFooter.module.css";
|
|
5473
|
-
import { jsx as
|
|
5960
|
+
import { jsx as jsx168, jsxs as jsxs139 } from "react/jsx-runtime";
|
|
5474
5961
|
function FooterNavItem({ icon, label, href, onClick, active }) {
|
|
5475
5962
|
const className = [styles45.navItem, active ? styles45.navItemActive : ""].filter(Boolean).join(" ");
|
|
5476
5963
|
if (href) {
|
|
5477
|
-
return /* @__PURE__ */
|
|
5964
|
+
return /* @__PURE__ */ jsx168(
|
|
5478
5965
|
"a",
|
|
5479
5966
|
{
|
|
5480
5967
|
href,
|
|
@@ -5485,7 +5972,7 @@ function FooterNavItem({ icon, label, href, onClick, active }) {
|
|
|
5485
5972
|
}
|
|
5486
5973
|
);
|
|
5487
5974
|
}
|
|
5488
|
-
return /* @__PURE__ */
|
|
5975
|
+
return /* @__PURE__ */ jsx168("button", { type: "button", className, "aria-label": label, onClick, children: icon });
|
|
5489
5976
|
}
|
|
5490
5977
|
function MobileFooter({
|
|
5491
5978
|
onOpenApps,
|
|
@@ -5509,9 +5996,9 @@ function MobileFooter({
|
|
|
5509
5996
|
styles45.navItemApps,
|
|
5510
5997
|
launcherOpen ? styles45.navItemAppsOpen : ""
|
|
5511
5998
|
].filter(Boolean).join(" ");
|
|
5512
|
-
return /* @__PURE__ */
|
|
5513
|
-
leftIcons.map((item) => /* @__PURE__ */
|
|
5514
|
-
/* @__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(
|
|
5515
6002
|
"button",
|
|
5516
6003
|
{
|
|
5517
6004
|
type: "button",
|
|
@@ -5520,49 +6007,49 @@ function MobileFooter({
|
|
|
5520
6007
|
"aria-expanded": launcherOpen,
|
|
5521
6008
|
"aria-haspopup": "dialog",
|
|
5522
6009
|
onClick: onOpenApps,
|
|
5523
|
-
children: launcherIcon ?? /* @__PURE__ */
|
|
6010
|
+
children: launcherIcon ?? /* @__PURE__ */ jsx168(Icon, { name: "grid-2x2", size: "md", "aria-hidden": true })
|
|
5524
6011
|
}
|
|
5525
6012
|
),
|
|
5526
|
-
rightIcons.map((item) => /* @__PURE__ */
|
|
6013
|
+
rightIcons.map((item) => /* @__PURE__ */ jsx168(FooterNavItem, { ...item }, item.label))
|
|
5527
6014
|
] });
|
|
5528
6015
|
}
|
|
5529
6016
|
|
|
5530
6017
|
// src/components/MobileAppsDrawer/MobileAppsDrawer.tsx
|
|
5531
6018
|
import styles46 from "./MobileAppsDrawer.module.css";
|
|
5532
|
-
import { Fragment as Fragment7, jsx as
|
|
6019
|
+
import { Fragment as Fragment7, jsx as jsx169, jsxs as jsxs140 } from "react/jsx-runtime";
|
|
5533
6020
|
function DrawerGridTile({ icon, label, href, onClick }) {
|
|
5534
|
-
const content = /* @__PURE__ */
|
|
5535
|
-
/* @__PURE__ */
|
|
5536
|
-
/* @__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 })
|
|
5537
6024
|
] });
|
|
5538
6025
|
if (href) {
|
|
5539
|
-
return /* @__PURE__ */
|
|
6026
|
+
return /* @__PURE__ */ jsx169("a", { href, className: styles46.gridItem, onClick, children: content });
|
|
5540
6027
|
}
|
|
5541
|
-
return /* @__PURE__ */
|
|
6028
|
+
return /* @__PURE__ */ jsx169("button", { type: "button", className: styles46.gridItem, onClick, children: content });
|
|
5542
6029
|
}
|
|
5543
6030
|
function MobileAppsDrawer({ open, onClose, items, ...rest }) {
|
|
5544
6031
|
const ariaLabel = rest["aria-label"];
|
|
5545
|
-
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)) }) }) });
|
|
5546
6033
|
}
|
|
5547
6034
|
|
|
5548
6035
|
// src/components/EmptyState/EmptyState.tsx
|
|
5549
6036
|
import styles47 from "./EmptyState.module.css";
|
|
5550
|
-
import { jsx as
|
|
6037
|
+
import { jsx as jsx170, jsxs as jsxs141 } from "react/jsx-runtime";
|
|
5551
6038
|
function EmptyState({ icon, heading, description, action, className }) {
|
|
5552
|
-
return /* @__PURE__ */
|
|
5553
|
-
icon && /* @__PURE__ */
|
|
5554
|
-
/* @__PURE__ */
|
|
5555
|
-
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 }),
|
|
5556
6043
|
action
|
|
5557
6044
|
] });
|
|
5558
6045
|
}
|
|
5559
6046
|
|
|
5560
6047
|
// src/components/OfflineGate/OfflineGate.tsx
|
|
5561
|
-
import { Fragment as Fragment8, jsx as
|
|
6048
|
+
import { Fragment as Fragment8, jsx as jsx171 } from "react/jsx-runtime";
|
|
5562
6049
|
function OfflineGate({ children, surfaceName, className }) {
|
|
5563
6050
|
const isOffline = useIsOffline();
|
|
5564
|
-
if (!isOffline) return /* @__PURE__ */
|
|
5565
|
-
return /* @__PURE__ */
|
|
6051
|
+
if (!isOffline) return /* @__PURE__ */ jsx171(Fragment8, { children });
|
|
6052
|
+
return /* @__PURE__ */ jsx171(
|
|
5566
6053
|
EmptyState,
|
|
5567
6054
|
{
|
|
5568
6055
|
icon: "alert-triangle",
|
|
@@ -5574,15 +6061,15 @@ function OfflineGate({ children, surfaceName, className }) {
|
|
|
5574
6061
|
}
|
|
5575
6062
|
|
|
5576
6063
|
// src/components/DeviceOnlyGate/DeviceOnlyGate.tsx
|
|
5577
|
-
import { Fragment as Fragment9, jsx as
|
|
6064
|
+
import { Fragment as Fragment9, jsx as jsx172 } from "react/jsx-runtime";
|
|
5578
6065
|
function DeviceOnlyGate({
|
|
5579
6066
|
children,
|
|
5580
6067
|
surfaceName,
|
|
5581
6068
|
available,
|
|
5582
6069
|
className
|
|
5583
6070
|
}) {
|
|
5584
|
-
if (available) return /* @__PURE__ */
|
|
5585
|
-
return /* @__PURE__ */
|
|
6071
|
+
if (available) return /* @__PURE__ */ jsx172(Fragment9, { children });
|
|
6072
|
+
return /* @__PURE__ */ jsx172(
|
|
5586
6073
|
EmptyState,
|
|
5587
6074
|
{
|
|
5588
6075
|
icon: "smartphone",
|
|
@@ -5594,7 +6081,7 @@ function DeviceOnlyGate({
|
|
|
5594
6081
|
}
|
|
5595
6082
|
|
|
5596
6083
|
// src/components/DeviceStorageKeyGate/DeviceStorageKeyGate.tsx
|
|
5597
|
-
import { Fragment as Fragment10, jsx as
|
|
6084
|
+
import { Fragment as Fragment10, jsx as jsx173 } from "react/jsx-runtime";
|
|
5598
6085
|
function DeviceStorageKeyGate({
|
|
5599
6086
|
children,
|
|
5600
6087
|
surfaceName,
|
|
@@ -5603,9 +6090,9 @@ function DeviceStorageKeyGate({
|
|
|
5603
6090
|
className
|
|
5604
6091
|
}) {
|
|
5605
6092
|
if (status === "checking") return null;
|
|
5606
|
-
if (status === "set-up") return /* @__PURE__ */
|
|
6093
|
+
if (status === "set-up") return /* @__PURE__ */ jsx173(Fragment10, { children });
|
|
5607
6094
|
if (status === "unsupported") {
|
|
5608
|
-
return /* @__PURE__ */
|
|
6095
|
+
return /* @__PURE__ */ jsx173(
|
|
5609
6096
|
EmptyState,
|
|
5610
6097
|
{
|
|
5611
6098
|
icon: "smartphone",
|
|
@@ -5616,7 +6103,7 @@ function DeviceStorageKeyGate({
|
|
|
5616
6103
|
);
|
|
5617
6104
|
}
|
|
5618
6105
|
if (status === "no-device-auth") {
|
|
5619
|
-
return /* @__PURE__ */
|
|
6106
|
+
return /* @__PURE__ */ jsx173(
|
|
5620
6107
|
EmptyState,
|
|
5621
6108
|
{
|
|
5622
6109
|
icon: "alert-triangle",
|
|
@@ -5626,7 +6113,7 @@ function DeviceStorageKeyGate({
|
|
|
5626
6113
|
}
|
|
5627
6114
|
);
|
|
5628
6115
|
}
|
|
5629
|
-
return /* @__PURE__ */
|
|
6116
|
+
return /* @__PURE__ */ jsx173(
|
|
5630
6117
|
EmptyState,
|
|
5631
6118
|
{
|
|
5632
6119
|
icon: "lock",
|
|
@@ -5641,7 +6128,7 @@ function DeviceStorageKeyGate({
|
|
|
5641
6128
|
// src/components/Avatar/Avatar.tsx
|
|
5642
6129
|
import { useState as useState16 } from "react";
|
|
5643
6130
|
import styles48 from "./Avatar.module.css";
|
|
5644
|
-
import { jsx as
|
|
6131
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
5645
6132
|
function initials2(name) {
|
|
5646
6133
|
const parts = name.trim().split(/\s+/);
|
|
5647
6134
|
if (parts.length === 1) return (parts[0] ?? "").slice(0, 2).toUpperCase();
|
|
@@ -5656,17 +6143,17 @@ function Avatar({ name, src, size = "md", className }) {
|
|
|
5656
6143
|
const [imgFailed, setImgFailed] = useState16(false);
|
|
5657
6144
|
const cls = [styles48.avatar, sizeClass2[size], className].filter(Boolean).join(" ");
|
|
5658
6145
|
if (src && !imgFailed) {
|
|
5659
|
-
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) }) });
|
|
5660
6147
|
}
|
|
5661
|
-
return /* @__PURE__ */
|
|
6148
|
+
return /* @__PURE__ */ jsx174("span", { className: cls, "aria-label": name, children: initials2(name) });
|
|
5662
6149
|
}
|
|
5663
6150
|
|
|
5664
6151
|
// src/components/NavTabs/NavTabs.tsx
|
|
5665
6152
|
import { Fragment as Fragment11 } from "react";
|
|
5666
6153
|
import styles49 from "./NavTabs.module.css";
|
|
5667
|
-
import { jsx as
|
|
6154
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
5668
6155
|
function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
|
|
5669
|
-
return /* @__PURE__ */
|
|
6156
|
+
return /* @__PURE__ */ jsx175(
|
|
5670
6157
|
"nav",
|
|
5671
6158
|
{
|
|
5672
6159
|
className: [styles49.nav, className].filter(Boolean).join(" "),
|
|
@@ -5678,7 +6165,7 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
|
|
|
5678
6165
|
"aria-current": item.active ? "page" : void 0,
|
|
5679
6166
|
children: item.label
|
|
5680
6167
|
};
|
|
5681
|
-
return /* @__PURE__ */
|
|
6168
|
+
return /* @__PURE__ */ jsx175(Fragment11, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx175(
|
|
5682
6169
|
"a",
|
|
5683
6170
|
{
|
|
5684
6171
|
href: linkProps.href,
|
|
@@ -5695,7 +6182,7 @@ function NavTabs({ items, className, "aria-label": ariaLabel, renderLink }) {
|
|
|
5695
6182
|
// src/components/Tooltip/Tooltip.tsx
|
|
5696
6183
|
import { useId as useId5 } from "react";
|
|
5697
6184
|
import styles50 from "./Tooltip.module.css";
|
|
5698
|
-
import { jsx as
|
|
6185
|
+
import { jsx as jsx176, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
5699
6186
|
var sideClass = {
|
|
5700
6187
|
top: styles50.top,
|
|
5701
6188
|
bottom: styles50.bottom,
|
|
@@ -5704,15 +6191,15 @@ var sideClass = {
|
|
|
5704
6191
|
};
|
|
5705
6192
|
function Tooltip({ content, children, side = "top" }) {
|
|
5706
6193
|
const tipId = useId5();
|
|
5707
|
-
return /* @__PURE__ */
|
|
5708
|
-
/* @__PURE__ */
|
|
5709
|
-
/* @__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 })
|
|
5710
6197
|
] });
|
|
5711
6198
|
}
|
|
5712
6199
|
|
|
5713
6200
|
// src/components/Checkbox/Checkbox.tsx
|
|
5714
6201
|
import styles51 from "./Checkbox.module.css";
|
|
5715
|
-
import { jsx as
|
|
6202
|
+
import { jsx as jsx177, jsxs as jsxs143 } from "react/jsx-runtime";
|
|
5716
6203
|
function Checkbox({
|
|
5717
6204
|
checked,
|
|
5718
6205
|
onChange,
|
|
@@ -5724,9 +6211,9 @@ function Checkbox({
|
|
|
5724
6211
|
...rest
|
|
5725
6212
|
}) {
|
|
5726
6213
|
const inputId = id ?? `checkbox-${label.toLowerCase().replace(/\s+/g, "-")}`;
|
|
5727
|
-
return /* @__PURE__ */
|
|
5728
|
-
/* @__PURE__ */
|
|
5729
|
-
/* @__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(
|
|
5730
6217
|
"input",
|
|
5731
6218
|
{
|
|
5732
6219
|
...rest,
|
|
@@ -5738,7 +6225,7 @@ function Checkbox({
|
|
|
5738
6225
|
onChange: (e) => onChange(e.target.checked)
|
|
5739
6226
|
}
|
|
5740
6227
|
),
|
|
5741
|
-
checked && /* @__PURE__ */
|
|
6228
|
+
checked && /* @__PURE__ */ jsx177("svg", { className: styles51.tick, viewBox: "0 0 10 8", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx177(
|
|
5742
6229
|
"path",
|
|
5743
6230
|
{
|
|
5744
6231
|
d: "M1 4l3 3 5-6",
|
|
@@ -5749,7 +6236,7 @@ function Checkbox({
|
|
|
5749
6236
|
}
|
|
5750
6237
|
) })
|
|
5751
6238
|
] }),
|
|
5752
|
-
label && /* @__PURE__ */
|
|
6239
|
+
label && /* @__PURE__ */ jsx177(
|
|
5753
6240
|
"label",
|
|
5754
6241
|
{
|
|
5755
6242
|
htmlFor: inputId,
|
|
@@ -5767,7 +6254,7 @@ function Checkbox({
|
|
|
5767
6254
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
5768
6255
|
import { useId as useId6 } from "react";
|
|
5769
6256
|
import styles52 from "./RadioGroup.module.css";
|
|
5770
|
-
import { jsx as
|
|
6257
|
+
import { jsx as jsx178, jsxs as jsxs144 } from "react/jsx-runtime";
|
|
5771
6258
|
function RadioGroup({
|
|
5772
6259
|
items,
|
|
5773
6260
|
value,
|
|
@@ -5784,7 +6271,7 @@ function RadioGroup({
|
|
|
5784
6271
|
}) {
|
|
5785
6272
|
const generatedName = useId6();
|
|
5786
6273
|
const groupName = name ?? generatedName;
|
|
5787
|
-
return /* @__PURE__ */
|
|
6274
|
+
return /* @__PURE__ */ jsx178(
|
|
5788
6275
|
"div",
|
|
5789
6276
|
{
|
|
5790
6277
|
id,
|
|
@@ -5799,14 +6286,14 @@ function RadioGroup({
|
|
|
5799
6286
|
const checked = item.value === value;
|
|
5800
6287
|
const itemDisabled = disabled || item.disabled;
|
|
5801
6288
|
const inputId = `${groupName}-${item.value}`;
|
|
5802
|
-
return /* @__PURE__ */
|
|
6289
|
+
return /* @__PURE__ */ jsxs144(
|
|
5803
6290
|
"label",
|
|
5804
6291
|
{
|
|
5805
6292
|
htmlFor: inputId,
|
|
5806
6293
|
className: [styles52.option, itemDisabled ? styles52.disabled : ""].filter(Boolean).join(" "),
|
|
5807
6294
|
children: [
|
|
5808
|
-
/* @__PURE__ */
|
|
5809
|
-
/* @__PURE__ */
|
|
6295
|
+
/* @__PURE__ */ jsxs144("span", { className: [styles52.circle, checked ? styles52.checked : ""].join(" "), children: [
|
|
6296
|
+
/* @__PURE__ */ jsx178(
|
|
5810
6297
|
"input",
|
|
5811
6298
|
{
|
|
5812
6299
|
id: inputId,
|
|
@@ -5820,9 +6307,9 @@ function RadioGroup({
|
|
|
5820
6307
|
onChange: () => onChange(item.value)
|
|
5821
6308
|
}
|
|
5822
6309
|
),
|
|
5823
|
-
checked && /* @__PURE__ */
|
|
6310
|
+
checked && /* @__PURE__ */ jsx178("span", { className: styles52.dot })
|
|
5824
6311
|
] }),
|
|
5825
|
-
/* @__PURE__ */
|
|
6312
|
+
/* @__PURE__ */ jsx178("span", { className: styles52.optionLabel, children: item.label })
|
|
5826
6313
|
]
|
|
5827
6314
|
},
|
|
5828
6315
|
item.value
|
|
@@ -5835,7 +6322,7 @@ function RadioGroup({
|
|
|
5835
6322
|
// src/components/Slider/Slider.tsx
|
|
5836
6323
|
import { useId as useId7 } from "react";
|
|
5837
6324
|
import styles53 from "./Slider.module.css";
|
|
5838
|
-
import { jsx as
|
|
6325
|
+
import { jsx as jsx179, jsxs as jsxs145 } from "react/jsx-runtime";
|
|
5839
6326
|
function Slider({
|
|
5840
6327
|
value,
|
|
5841
6328
|
onChange,
|
|
@@ -5854,9 +6341,9 @@ function Slider({
|
|
|
5854
6341
|
const generatedId = useId7();
|
|
5855
6342
|
const inputId = id ?? generatedId;
|
|
5856
6343
|
const fillPercent = max > min ? (value - min) / (max - min) * 100 : 0;
|
|
5857
|
-
return /* @__PURE__ */
|
|
5858
|
-
label && /* @__PURE__ */
|
|
5859
|
-
/* @__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(
|
|
5860
6347
|
"input",
|
|
5861
6348
|
{
|
|
5862
6349
|
id: inputId,
|
|
@@ -5880,10 +6367,10 @@ function Slider({
|
|
|
5880
6367
|
|
|
5881
6368
|
// src/components/Progress/Progress.tsx
|
|
5882
6369
|
import styles54 from "./Progress.module.css";
|
|
5883
|
-
import { jsx as
|
|
6370
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
5884
6371
|
function Progress({ value, label, id, className }) {
|
|
5885
6372
|
const clamped = Math.min(100, Math.max(0, value));
|
|
5886
|
-
return /* @__PURE__ */
|
|
6373
|
+
return /* @__PURE__ */ jsx180(
|
|
5887
6374
|
"div",
|
|
5888
6375
|
{
|
|
5889
6376
|
id,
|
|
@@ -5893,36 +6380,36 @@ function Progress({ value, label, id, className }) {
|
|
|
5893
6380
|
"aria-valuemax": 100,
|
|
5894
6381
|
"aria-label": label,
|
|
5895
6382
|
className: [styles54.track, className].filter(Boolean).join(" "),
|
|
5896
|
-
children: /* @__PURE__ */
|
|
6383
|
+
children: /* @__PURE__ */ jsx180("div", { className: styles54.fill, style: { width: `${clamped}%` } })
|
|
5897
6384
|
}
|
|
5898
6385
|
);
|
|
5899
6386
|
}
|
|
5900
6387
|
|
|
5901
6388
|
// src/components/Table/Table.tsx
|
|
5902
6389
|
import styles55 from "./Table.module.css";
|
|
5903
|
-
import { jsx as
|
|
6390
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
5904
6391
|
function Table({ children, className }) {
|
|
5905
|
-
return /* @__PURE__ */
|
|
6392
|
+
return /* @__PURE__ */ jsx181("div", { className: styles55.scrollContainer, children: /* @__PURE__ */ jsx181("table", { className: [styles55.table, className].filter(Boolean).join(" "), children }) });
|
|
5906
6393
|
}
|
|
5907
6394
|
function TableHead({ children }) {
|
|
5908
|
-
return /* @__PURE__ */
|
|
6395
|
+
return /* @__PURE__ */ jsx181("thead", { className: styles55.head, children });
|
|
5909
6396
|
}
|
|
5910
6397
|
function TableBody({ children }) {
|
|
5911
|
-
return /* @__PURE__ */
|
|
6398
|
+
return /* @__PURE__ */ jsx181("tbody", { className: styles55.body, children });
|
|
5912
6399
|
}
|
|
5913
6400
|
function TableRow({ children }) {
|
|
5914
|
-
return /* @__PURE__ */
|
|
6401
|
+
return /* @__PURE__ */ jsx181("tr", { className: styles55.row, children });
|
|
5915
6402
|
}
|
|
5916
6403
|
function TableHeaderCell({ children, ...rest }) {
|
|
5917
|
-
return /* @__PURE__ */
|
|
6404
|
+
return /* @__PURE__ */ jsx181("th", { className: styles55.th, ...rest, children });
|
|
5918
6405
|
}
|
|
5919
6406
|
function TableCell({ children, ...rest }) {
|
|
5920
|
-
return /* @__PURE__ */
|
|
6407
|
+
return /* @__PURE__ */ jsx181("td", { className: styles55.td, ...rest, children });
|
|
5921
6408
|
}
|
|
5922
6409
|
|
|
5923
6410
|
// src/components/Alert/Alert.tsx
|
|
5924
6411
|
import styles56 from "./Alert.module.css";
|
|
5925
|
-
import { jsx as
|
|
6412
|
+
import { jsx as jsx182, jsxs as jsxs146 } from "react/jsx-runtime";
|
|
5926
6413
|
var DEFAULT_ICON = {
|
|
5927
6414
|
info: "info",
|
|
5928
6415
|
success: "circle-check",
|
|
@@ -5932,17 +6419,17 @@ var DEFAULT_ICON = {
|
|
|
5932
6419
|
};
|
|
5933
6420
|
function Alert({ variant, heading, icon, children, id, className }) {
|
|
5934
6421
|
const resolvedIcon = icon === void 0 ? DEFAULT_ICON[variant] : icon || void 0;
|
|
5935
|
-
return /* @__PURE__ */
|
|
6422
|
+
return /* @__PURE__ */ jsxs146(
|
|
5936
6423
|
"div",
|
|
5937
6424
|
{
|
|
5938
6425
|
id,
|
|
5939
6426
|
role: variant === "error" ? "alert" : "status",
|
|
5940
6427
|
className: [styles56.alert, styles56[variant], className].filter(Boolean).join(" "),
|
|
5941
6428
|
children: [
|
|
5942
|
-
resolvedIcon && /* @__PURE__ */
|
|
5943
|
-
/* @__PURE__ */
|
|
5944
|
-
heading && /* @__PURE__ */
|
|
5945
|
-
/* @__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 })
|
|
5946
6433
|
] })
|
|
5947
6434
|
]
|
|
5948
6435
|
}
|
|
@@ -5951,25 +6438,25 @@ function Alert({ variant, heading, icon, children, id, className }) {
|
|
|
5951
6438
|
|
|
5952
6439
|
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
5953
6440
|
import styles57 from "./Breadcrumb.module.css";
|
|
5954
|
-
import { jsx as
|
|
6441
|
+
import { jsx as jsx183, jsxs as jsxs147 } from "react/jsx-runtime";
|
|
5955
6442
|
function Breadcrumb({
|
|
5956
6443
|
items,
|
|
5957
6444
|
renderLink,
|
|
5958
6445
|
className,
|
|
5959
6446
|
"aria-label": ariaLabel = "Breadcrumb"
|
|
5960
6447
|
}) {
|
|
5961
|
-
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) => {
|
|
5962
6449
|
const isLast = index === items.length - 1;
|
|
5963
|
-
return /* @__PURE__ */
|
|
5964
|
-
item.href ? renderLink ? renderLink(item, item.label) : /* @__PURE__ */
|
|
5965
|
-
!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 })
|
|
5966
6453
|
] }, item.label + index);
|
|
5967
6454
|
}) }) });
|
|
5968
6455
|
}
|
|
5969
6456
|
|
|
5970
6457
|
// src/components/Pagination/Pagination.tsx
|
|
5971
6458
|
import styles58 from "./Pagination.module.css";
|
|
5972
|
-
import { jsx as
|
|
6459
|
+
import { jsx as jsx184, jsxs as jsxs148 } from "react/jsx-runtime";
|
|
5973
6460
|
function getPageList(page, totalPages) {
|
|
5974
6461
|
if (totalPages <= 1) return [1];
|
|
5975
6462
|
const siblingCount = 1;
|
|
@@ -5992,8 +6479,8 @@ function Pagination({
|
|
|
5992
6479
|
"aria-label": ariaLabel = "Pagination"
|
|
5993
6480
|
}) {
|
|
5994
6481
|
const pages = getPageList(page, totalPages);
|
|
5995
|
-
return /* @__PURE__ */
|
|
5996
|
-
/* @__PURE__ */
|
|
6482
|
+
return /* @__PURE__ */ jsxs148("nav", { "aria-label": ariaLabel, className: [styles58.nav, className].filter(Boolean).join(" "), children: [
|
|
6483
|
+
/* @__PURE__ */ jsx184(
|
|
5997
6484
|
"button",
|
|
5998
6485
|
{
|
|
5999
6486
|
type: "button",
|
|
@@ -6001,11 +6488,11 @@ function Pagination({
|
|
|
6001
6488
|
onClick: () => onChange(page - 1),
|
|
6002
6489
|
disabled: page <= 1,
|
|
6003
6490
|
"aria-label": "Previous page",
|
|
6004
|
-
children: /* @__PURE__ */
|
|
6491
|
+
children: /* @__PURE__ */ jsx184(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
|
|
6005
6492
|
}
|
|
6006
6493
|
),
|
|
6007
|
-
/* @__PURE__ */
|
|
6008
|
-
(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(
|
|
6009
6496
|
"button",
|
|
6010
6497
|
{
|
|
6011
6498
|
type: "button",
|
|
@@ -6017,7 +6504,7 @@ function Pagination({
|
|
|
6017
6504
|
}
|
|
6018
6505
|
) }, p)
|
|
6019
6506
|
) }),
|
|
6020
|
-
/* @__PURE__ */
|
|
6507
|
+
/* @__PURE__ */ jsx184(
|
|
6021
6508
|
"button",
|
|
6022
6509
|
{
|
|
6023
6510
|
type: "button",
|
|
@@ -6025,7 +6512,7 @@ function Pagination({
|
|
|
6025
6512
|
onClick: () => onChange(page + 1),
|
|
6026
6513
|
disabled: page >= totalPages,
|
|
6027
6514
|
"aria-label": "Next page",
|
|
6028
|
-
children: /* @__PURE__ */
|
|
6515
|
+
children: /* @__PURE__ */ jsx184(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
|
|
6029
6516
|
}
|
|
6030
6517
|
)
|
|
6031
6518
|
] });
|
|
@@ -6033,15 +6520,15 @@ function Pagination({
|
|
|
6033
6520
|
|
|
6034
6521
|
// src/components/Kbd/Kbd.tsx
|
|
6035
6522
|
import styles59 from "./Kbd.module.css";
|
|
6036
|
-
import { jsx as
|
|
6523
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
6037
6524
|
function Kbd({ children, className }) {
|
|
6038
|
-
return /* @__PURE__ */
|
|
6525
|
+
return /* @__PURE__ */ jsx185("kbd", { className: [styles59.kbd, className].filter(Boolean).join(" "), children });
|
|
6039
6526
|
}
|
|
6040
6527
|
|
|
6041
6528
|
// src/components/Collapsible/Collapsible.tsx
|
|
6042
6529
|
import { useId as useId8 } from "react";
|
|
6043
6530
|
import styles60 from "./Collapsible.module.css";
|
|
6044
|
-
import { jsx as
|
|
6531
|
+
import { jsx as jsx186, jsxs as jsxs149 } from "react/jsx-runtime";
|
|
6045
6532
|
function Collapsible({
|
|
6046
6533
|
open,
|
|
6047
6534
|
onOpenChange,
|
|
@@ -6052,8 +6539,8 @@ function Collapsible({
|
|
|
6052
6539
|
}) {
|
|
6053
6540
|
const generatedId = useId8();
|
|
6054
6541
|
const contentId = `${id ?? generatedId}-content`;
|
|
6055
|
-
return /* @__PURE__ */
|
|
6056
|
-
/* @__PURE__ */
|
|
6542
|
+
return /* @__PURE__ */ jsxs149("div", { className: [styles60.root, className].filter(Boolean).join(" "), children: [
|
|
6543
|
+
/* @__PURE__ */ jsxs149(
|
|
6057
6544
|
"button",
|
|
6058
6545
|
{
|
|
6059
6546
|
type: "button",
|
|
@@ -6062,8 +6549,8 @@ function Collapsible({
|
|
|
6062
6549
|
"aria-controls": contentId,
|
|
6063
6550
|
onClick: () => onOpenChange(!open),
|
|
6064
6551
|
children: [
|
|
6065
|
-
/* @__PURE__ */
|
|
6066
|
-
/* @__PURE__ */
|
|
6552
|
+
/* @__PURE__ */ jsx186("span", { className: styles60.triggerLabel, children: trigger }),
|
|
6553
|
+
/* @__PURE__ */ jsx186(
|
|
6067
6554
|
Icon,
|
|
6068
6555
|
{
|
|
6069
6556
|
name: "chevron-down",
|
|
@@ -6075,14 +6562,14 @@ function Collapsible({
|
|
|
6075
6562
|
]
|
|
6076
6563
|
}
|
|
6077
6564
|
),
|
|
6078
|
-
/* @__PURE__ */
|
|
6565
|
+
/* @__PURE__ */ jsx186(
|
|
6079
6566
|
"div",
|
|
6080
6567
|
{
|
|
6081
6568
|
id: contentId,
|
|
6082
6569
|
className: styles60.contentWrapper,
|
|
6083
6570
|
"data-open": open,
|
|
6084
6571
|
inert: !open || void 0,
|
|
6085
|
-
children: /* @__PURE__ */
|
|
6572
|
+
children: /* @__PURE__ */ jsx186("div", { className: styles60.contentInner, children })
|
|
6086
6573
|
}
|
|
6087
6574
|
)
|
|
6088
6575
|
] });
|
|
@@ -6090,7 +6577,7 @@ function Collapsible({
|
|
|
6090
6577
|
|
|
6091
6578
|
// src/components/Accordion/Accordion.tsx
|
|
6092
6579
|
import styles61 from "./Accordion.module.css";
|
|
6093
|
-
import { jsx as
|
|
6580
|
+
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
6094
6581
|
function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
|
|
6095
6582
|
function handleOpenChange(id, open) {
|
|
6096
6583
|
if (type === "single") {
|
|
@@ -6099,7 +6586,7 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
|
|
|
6099
6586
|
}
|
|
6100
6587
|
onOpenIdsChange(open ? [...openIds, id] : openIds.filter((openId) => openId !== id));
|
|
6101
6588
|
}
|
|
6102
|
-
return /* @__PURE__ */
|
|
6589
|
+
return /* @__PURE__ */ jsx187("div", { className: [styles61.root, className].filter(Boolean).join(" "), children: items.map((item) => /* @__PURE__ */ jsx187(
|
|
6103
6590
|
Collapsible,
|
|
6104
6591
|
{
|
|
6105
6592
|
id: item.id,
|
|
@@ -6114,9 +6601,9 @@ function Accordion({ items, type, openIds, onOpenIdsChange, className }) {
|
|
|
6114
6601
|
|
|
6115
6602
|
// src/components/AspectRatio/AspectRatio.tsx
|
|
6116
6603
|
import styles62 from "./AspectRatio.module.css";
|
|
6117
|
-
import { jsx as
|
|
6604
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
6118
6605
|
function AspectRatio({ ratio, children, className }) {
|
|
6119
|
-
return /* @__PURE__ */
|
|
6606
|
+
return /* @__PURE__ */ jsx188(
|
|
6120
6607
|
"div",
|
|
6121
6608
|
{
|
|
6122
6609
|
className: [styles62.root, className].filter(Boolean).join(" "),
|
|
@@ -6128,7 +6615,7 @@ function AspectRatio({ ratio, children, className }) {
|
|
|
6128
6615
|
|
|
6129
6616
|
// src/components/ButtonLink/ButtonLink.tsx
|
|
6130
6617
|
import styles63 from "./Button.module.css";
|
|
6131
|
-
import { jsx as
|
|
6618
|
+
import { jsx as jsx189 } from "react/jsx-runtime";
|
|
6132
6619
|
function ButtonLink({
|
|
6133
6620
|
variant = "primary",
|
|
6134
6621
|
size = "md",
|
|
@@ -6139,14 +6626,14 @@ function ButtonLink({
|
|
|
6139
6626
|
}) {
|
|
6140
6627
|
const classes = [styles63.button, styles63[variant], styles63[size], styles63.link, className].filter(Boolean).join(" ");
|
|
6141
6628
|
const props = { ...rest, className: classes, children };
|
|
6142
|
-
return renderLink ? renderLink(props) : /* @__PURE__ */
|
|
6629
|
+
return renderLink ? renderLink(props) : /* @__PURE__ */ jsx189("a", { ...rest, className: classes, children });
|
|
6143
6630
|
}
|
|
6144
6631
|
|
|
6145
6632
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6146
6633
|
import styles64 from "./ButtonGroup.module.css";
|
|
6147
|
-
import { jsx as
|
|
6634
|
+
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
6148
6635
|
function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
|
|
6149
|
-
return /* @__PURE__ */
|
|
6636
|
+
return /* @__PURE__ */ jsx190(
|
|
6150
6637
|
"div",
|
|
6151
6638
|
{
|
|
6152
6639
|
role: "group",
|
|
@@ -6159,7 +6646,7 @@ function ButtonGroup({ children, className, "aria-label": ariaLabel }) {
|
|
|
6159
6646
|
|
|
6160
6647
|
// src/components/Item/Item.tsx
|
|
6161
6648
|
import styles65 from "./Item.module.css";
|
|
6162
|
-
import { Fragment as Fragment12, jsx as
|
|
6649
|
+
import { Fragment as Fragment12, jsx as jsx191, jsxs as jsxs150 } from "react/jsx-runtime";
|
|
6163
6650
|
function Item({
|
|
6164
6651
|
leading,
|
|
6165
6652
|
title,
|
|
@@ -6171,25 +6658,25 @@ function Item({
|
|
|
6171
6658
|
}) {
|
|
6172
6659
|
const interactive = Boolean(onClick);
|
|
6173
6660
|
const classes = [styles65.root, interactive ? styles65.interactive : "", className].filter(Boolean).join(" ");
|
|
6174
|
-
const content = /* @__PURE__ */
|
|
6175
|
-
leading && /* @__PURE__ */
|
|
6176
|
-
/* @__PURE__ */
|
|
6177
|
-
/* @__PURE__ */
|
|
6178
|
-
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 })
|
|
6179
6666
|
] }),
|
|
6180
|
-
trailing && /* @__PURE__ */
|
|
6667
|
+
trailing && /* @__PURE__ */ jsx191("span", { className: styles65.trailing, children: trailing })
|
|
6181
6668
|
] });
|
|
6182
6669
|
if (interactive) {
|
|
6183
|
-
return /* @__PURE__ */
|
|
6670
|
+
return /* @__PURE__ */ jsx191("button", { type: "button", onClick, disabled, className: classes, children: content });
|
|
6184
6671
|
}
|
|
6185
|
-
return /* @__PURE__ */
|
|
6672
|
+
return /* @__PURE__ */ jsx191("div", { className: classes, children: content });
|
|
6186
6673
|
}
|
|
6187
6674
|
|
|
6188
6675
|
// src/components/Label/Label.tsx
|
|
6189
6676
|
import styles66 from "./Label.module.css";
|
|
6190
|
-
import { jsx as
|
|
6677
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
6191
6678
|
function Label({ disabled, className, children, ...rest }) {
|
|
6192
|
-
return /* @__PURE__ */
|
|
6679
|
+
return /* @__PURE__ */ jsx192(
|
|
6193
6680
|
"label",
|
|
6194
6681
|
{
|
|
6195
6682
|
className: [styles66.label, disabled ? styles66.disabled : "", className].filter(Boolean).join(" "),
|
|
@@ -6201,43 +6688,43 @@ function Label({ disabled, className, children, ...rest }) {
|
|
|
6201
6688
|
|
|
6202
6689
|
// src/components/ScrollArea/ScrollArea.tsx
|
|
6203
6690
|
import styles67 from "./ScrollArea.module.css";
|
|
6204
|
-
import { jsx as
|
|
6691
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
6205
6692
|
function ScrollArea({ children, maxHeight, maxWidth, className }) {
|
|
6206
6693
|
const style = {};
|
|
6207
6694
|
if (maxHeight !== void 0) style.maxHeight = maxHeight;
|
|
6208
6695
|
if (maxWidth !== void 0) style.maxWidth = maxWidth;
|
|
6209
|
-
return /* @__PURE__ */
|
|
6696
|
+
return /* @__PURE__ */ jsx193("div", { className: [styles67.root, className].filter(Boolean).join(" "), style, children });
|
|
6210
6697
|
}
|
|
6211
6698
|
|
|
6212
6699
|
// src/components/Marker/Marker.tsx
|
|
6213
6700
|
import styles68 from "./Marker.module.css";
|
|
6214
|
-
import { jsx as
|
|
6701
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
6215
6702
|
function Marker({ index, label, onClick, className }) {
|
|
6216
6703
|
const classes = [styles68.marker, className].filter(Boolean).join(" ");
|
|
6217
6704
|
if (onClick) {
|
|
6218
|
-
return /* @__PURE__ */
|
|
6705
|
+
return /* @__PURE__ */ jsx194("button", { type: "button", onClick, "aria-label": label, className: classes, children: index });
|
|
6219
6706
|
}
|
|
6220
|
-
return /* @__PURE__ */
|
|
6707
|
+
return /* @__PURE__ */ jsx194("span", { "aria-label": label, className: classes, children: index });
|
|
6221
6708
|
}
|
|
6222
6709
|
|
|
6223
6710
|
// src/components/Message/Message.tsx
|
|
6224
6711
|
import styles69 from "./Message.module.css";
|
|
6225
|
-
import { jsx as
|
|
6712
|
+
import { jsx as jsx195, jsxs as jsxs151 } from "react/jsx-runtime";
|
|
6226
6713
|
function Message({ sender, children, pending, actions, className }) {
|
|
6227
|
-
return /* @__PURE__ */
|
|
6228
|
-
/* @__PURE__ */
|
|
6229
|
-
/* @__PURE__ */
|
|
6230
|
-
/* @__PURE__ */
|
|
6231
|
-
/* @__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 })
|
|
6232
6719
|
] }) : children }),
|
|
6233
|
-
actions && !pending && /* @__PURE__ */
|
|
6720
|
+
actions && !pending && /* @__PURE__ */ jsx195("div", { className: styles69.actions, children: actions })
|
|
6234
6721
|
] });
|
|
6235
6722
|
}
|
|
6236
6723
|
|
|
6237
6724
|
// src/components/MessageScroller/MessageScroller.tsx
|
|
6238
6725
|
import { useEffect as useEffect13, useRef as useRef19, useState as useState17 } from "react";
|
|
6239
6726
|
import styles70 from "./MessageScroller.module.css";
|
|
6240
|
-
import { jsx as
|
|
6727
|
+
import { jsx as jsx196, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
6241
6728
|
var NEAR_BOTTOM_THRESHOLD_PX = 80;
|
|
6242
6729
|
function MessageScroller({ children, className }) {
|
|
6243
6730
|
const containerRef = useRef19(null);
|
|
@@ -6268,19 +6755,19 @@ function MessageScroller({ children, className }) {
|
|
|
6268
6755
|
isNearBottomRef.current = true;
|
|
6269
6756
|
setHasNewMessages(false);
|
|
6270
6757
|
}
|
|
6271
|
-
return /* @__PURE__ */
|
|
6272
|
-
/* @__PURE__ */
|
|
6273
|
-
/* @__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" }),
|
|
6274
6761
|
children
|
|
6275
6762
|
] }),
|
|
6276
|
-
hasNewMessages && /* @__PURE__ */
|
|
6763
|
+
hasNewMessages && /* @__PURE__ */ jsx196("button", { type: "button", className: styles70.jumpButton, onClick: scrollToBottom, children: "New messages \u2193" })
|
|
6277
6764
|
] });
|
|
6278
6765
|
}
|
|
6279
6766
|
|
|
6280
6767
|
// src/components/HoverCard/HoverCard.tsx
|
|
6281
6768
|
import { cloneElement, useEffect as useEffect14, useRef as useRef20, useState as useState18 } from "react";
|
|
6282
6769
|
import styles71 from "./HoverCard.module.css";
|
|
6283
|
-
import { jsx as
|
|
6770
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
6284
6771
|
var OPEN_DELAY_MS = 400;
|
|
6285
6772
|
var CLOSE_DELAY_MS = 150;
|
|
6286
6773
|
function useHoverCapable() {
|
|
@@ -6325,13 +6812,13 @@ function HoverCard({
|
|
|
6325
6812
|
onBlur: scheduleClose
|
|
6326
6813
|
} : { onClick: () => setOpen((o) => !o) };
|
|
6327
6814
|
const wrappedTrigger = cloneElement(trigger, triggerHandlers);
|
|
6328
|
-
return /* @__PURE__ */
|
|
6815
|
+
return /* @__PURE__ */ jsx197(
|
|
6329
6816
|
"div",
|
|
6330
6817
|
{
|
|
6331
6818
|
className: styles71.root,
|
|
6332
6819
|
onMouseEnter: hoverCapable ? cancelScheduledClose : void 0,
|
|
6333
6820
|
onMouseLeave: hoverCapable ? scheduleClose : void 0,
|
|
6334
|
-
children: /* @__PURE__ */
|
|
6821
|
+
children: /* @__PURE__ */ jsx197(
|
|
6335
6822
|
Popover,
|
|
6336
6823
|
{
|
|
6337
6824
|
trigger: wrappedTrigger,
|
|
@@ -6349,7 +6836,7 @@ function HoverCard({
|
|
|
6349
6836
|
|
|
6350
6837
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
6351
6838
|
import { cloneElement as cloneElement2, useState as useState19 } from "react";
|
|
6352
|
-
import { Fragment as Fragment13, jsx as
|
|
6839
|
+
import { Fragment as Fragment13, jsx as jsx198, jsxs as jsxs153 } from "react/jsx-runtime";
|
|
6353
6840
|
function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
6354
6841
|
const isMobile = useIsMobile();
|
|
6355
6842
|
const [open, setOpen] = useState19(false);
|
|
@@ -6367,7 +6854,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
|
6367
6854
|
children,
|
|
6368
6855
|
isMobile ? longPressHandlers : { onContextMenu: handleContextMenu }
|
|
6369
6856
|
);
|
|
6370
|
-
const list = /* @__PURE__ */
|
|
6857
|
+
const list = /* @__PURE__ */ jsx198(
|
|
6371
6858
|
MenuEntries,
|
|
6372
6859
|
{
|
|
6373
6860
|
items,
|
|
@@ -6378,17 +6865,17 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
|
6378
6865
|
}
|
|
6379
6866
|
);
|
|
6380
6867
|
if (isMobile) {
|
|
6381
|
-
return /* @__PURE__ */
|
|
6868
|
+
return /* @__PURE__ */ jsxs153(Fragment13, { children: [
|
|
6382
6869
|
wrappedChild,
|
|
6383
|
-
/* @__PURE__ */
|
|
6870
|
+
/* @__PURE__ */ jsx198(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: list })
|
|
6384
6871
|
] });
|
|
6385
6872
|
}
|
|
6386
|
-
return /* @__PURE__ */
|
|
6873
|
+
return /* @__PURE__ */ jsxs153(Fragment13, { children: [
|
|
6387
6874
|
wrappedChild,
|
|
6388
|
-
open && /* @__PURE__ */
|
|
6875
|
+
open && /* @__PURE__ */ jsx198("div", { style: { position: "fixed", left: point.x, top: point.y, width: 0, height: 0 }, children: /* @__PURE__ */ jsx198(
|
|
6389
6876
|
Popover,
|
|
6390
6877
|
{
|
|
6391
|
-
trigger: /* @__PURE__ */
|
|
6878
|
+
trigger: /* @__PURE__ */ jsx198("span", {}),
|
|
6392
6879
|
open,
|
|
6393
6880
|
onClose: () => setOpen(false),
|
|
6394
6881
|
"aria-label": ariaLabel,
|
|
@@ -6401,7 +6888,7 @@ function ContextMenu({ children, items, "aria-label": ariaLabel }) {
|
|
|
6401
6888
|
// src/components/NavigationMenu/NavigationMenu.tsx
|
|
6402
6889
|
import { useRef as useRef21, useState as useState20 } from "react";
|
|
6403
6890
|
import styles72 from "./NavigationMenu.module.css";
|
|
6404
|
-
import { jsx as
|
|
6891
|
+
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
6405
6892
|
function NavigationMenu({
|
|
6406
6893
|
items,
|
|
6407
6894
|
renderLink,
|
|
@@ -6422,19 +6909,19 @@ function NavigationMenu({
|
|
|
6422
6909
|
triggerRefs.current[nextIndex]?.focus();
|
|
6423
6910
|
}
|
|
6424
6911
|
}
|
|
6425
|
-
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) => {
|
|
6426
6913
|
if (!item.content) {
|
|
6427
6914
|
const linkChildren = item.label;
|
|
6428
|
-
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);
|
|
6429
6916
|
}
|
|
6430
6917
|
const isOpen = openIndex === index;
|
|
6431
|
-
return /* @__PURE__ */
|
|
6918
|
+
return /* @__PURE__ */ jsx199("li", { children: /* @__PURE__ */ jsx199(
|
|
6432
6919
|
Popover,
|
|
6433
6920
|
{
|
|
6434
6921
|
"aria-label": item.label,
|
|
6435
6922
|
open: isOpen,
|
|
6436
6923
|
onClose: () => setOpenIndex((current) => current === index ? null : current),
|
|
6437
|
-
trigger: /* @__PURE__ */
|
|
6924
|
+
trigger: /* @__PURE__ */ jsx199(
|
|
6438
6925
|
"button",
|
|
6439
6926
|
{
|
|
6440
6927
|
ref: (el) => {
|
|
@@ -6458,15 +6945,15 @@ function NavigationMenu({
|
|
|
6458
6945
|
}
|
|
6459
6946
|
|
|
6460
6947
|
// src/components/Menubar/Menubar.tsx
|
|
6461
|
-
import { jsx as
|
|
6948
|
+
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
6462
6949
|
function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
|
|
6463
|
-
return /* @__PURE__ */
|
|
6950
|
+
return /* @__PURE__ */ jsx200(
|
|
6464
6951
|
NavigationMenu,
|
|
6465
6952
|
{
|
|
6466
6953
|
"aria-label": ariaLabel,
|
|
6467
6954
|
items: menus.map((menu) => ({
|
|
6468
6955
|
label: menu.label,
|
|
6469
|
-
content: (close) => /* @__PURE__ */
|
|
6956
|
+
content: (close) => /* @__PURE__ */ jsx200(
|
|
6470
6957
|
MenuEntries,
|
|
6471
6958
|
{
|
|
6472
6959
|
items: menu.items,
|
|
@@ -6484,7 +6971,7 @@ function Menubar({ menus, "aria-label": ariaLabel = "Menu bar" }) {
|
|
|
6484
6971
|
// src/components/Command/Command.tsx
|
|
6485
6972
|
import { useEffect as useEffect15, useId as useId9, useMemo as useMemo3, useRef as useRef22, useState as useState21 } from "react";
|
|
6486
6973
|
import styles73 from "./Command.module.css";
|
|
6487
|
-
import { jsx as
|
|
6974
|
+
import { jsx as jsx201, jsxs as jsxs154 } from "react/jsx-runtime";
|
|
6488
6975
|
function matches(item, query) {
|
|
6489
6976
|
if (!query) return true;
|
|
6490
6977
|
const haystack = `${item.label} ${item.keywords ?? ""}`.toLowerCase();
|
|
@@ -6542,8 +7029,8 @@ function Command({
|
|
|
6542
7029
|
return order.map((group) => ({ group, items: byGroup.get(group) ?? [] }));
|
|
6543
7030
|
}, [filtered]);
|
|
6544
7031
|
const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].id}` : void 0;
|
|
6545
|
-
return /* @__PURE__ */
|
|
6546
|
-
/* @__PURE__ */
|
|
7032
|
+
return /* @__PURE__ */ jsx201(Dialog, { open, onClose, "aria-label": ariaLabel, size: "sm", children: /* @__PURE__ */ jsxs154("div", { className: styles73.root, children: [
|
|
7033
|
+
/* @__PURE__ */ jsx201(
|
|
6547
7034
|
"input",
|
|
6548
7035
|
{
|
|
6549
7036
|
ref: inputRef,
|
|
@@ -6560,14 +7047,14 @@ function Command({
|
|
|
6560
7047
|
onKeyDown: handleKeyDown
|
|
6561
7048
|
}
|
|
6562
7049
|
),
|
|
6563
|
-
/* @__PURE__ */
|
|
6564
|
-
filtered.length === 0 && /* @__PURE__ */
|
|
6565
|
-
groups.map(({ group, items: groupItems }) => /* @__PURE__ */
|
|
6566
|
-
group && /* @__PURE__ */
|
|
6567
|
-
/* @__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) => {
|
|
6568
7055
|
const index = filtered.indexOf(item);
|
|
6569
7056
|
const isHighlighted = index === highlightedIndex;
|
|
6570
|
-
return /* @__PURE__ */
|
|
7057
|
+
return /* @__PURE__ */ jsx201("li", { children: /* @__PURE__ */ jsxs154(
|
|
6571
7058
|
"button",
|
|
6572
7059
|
{
|
|
6573
7060
|
id: `${listId}-${item.id}`,
|
|
@@ -6581,7 +7068,7 @@ function Command({
|
|
|
6581
7068
|
item.onSelect();
|
|
6582
7069
|
},
|
|
6583
7070
|
children: [
|
|
6584
|
-
item.icon && /* @__PURE__ */
|
|
7071
|
+
item.icon && /* @__PURE__ */ jsx201(Icon, { name: item.icon, size: "sm", "aria-hidden": true }),
|
|
6585
7072
|
item.label
|
|
6586
7073
|
]
|
|
6587
7074
|
}
|
|
@@ -6595,9 +7082,9 @@ function Command({
|
|
|
6595
7082
|
// src/components/Resizable/Resizable.tsx
|
|
6596
7083
|
import { Children, isValidElement, useEffect as useEffect16, useRef as useRef23, useState as useState22 } from "react";
|
|
6597
7084
|
import styles74 from "./Resizable.module.css";
|
|
6598
|
-
import { jsx as
|
|
7085
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
6599
7086
|
function ResizablePanel({ children, className, style }) {
|
|
6600
|
-
return /* @__PURE__ */
|
|
7087
|
+
return /* @__PURE__ */ jsx202("div", { className: [styles74.panel, className].filter(Boolean).join(" "), style, children });
|
|
6601
7088
|
}
|
|
6602
7089
|
function ResizableHandle({
|
|
6603
7090
|
"aria-label": ariaLabel = "Resize panels",
|
|
@@ -6610,7 +7097,7 @@ function ResizableHandle({
|
|
|
6610
7097
|
}) {
|
|
6611
7098
|
return (
|
|
6612
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/). */
|
|
6613
|
-
/* @__PURE__ */
|
|
7100
|
+
/* @__PURE__ */ jsx202(
|
|
6614
7101
|
"div",
|
|
6615
7102
|
{
|
|
6616
7103
|
className: [styles74.handle, direction === "vertical" ? styles74.handleVertical : ""].filter(Boolean).join(" "),
|
|
@@ -6724,7 +7211,7 @@ function ResizablePanelGroup({ direction, children, className }) {
|
|
|
6724
7211
|
}
|
|
6725
7212
|
let panelIndex = -1;
|
|
6726
7213
|
let handleIndex = -1;
|
|
6727
|
-
return /* @__PURE__ */
|
|
7214
|
+
return /* @__PURE__ */ jsx202(
|
|
6728
7215
|
"div",
|
|
6729
7216
|
{
|
|
6730
7217
|
ref: containerRef,
|
|
@@ -6733,7 +7220,7 @@ function ResizablePanelGroup({ direction, children, className }) {
|
|
|
6733
7220
|
if (element.type === ResizablePanel) {
|
|
6734
7221
|
panelIndex += 1;
|
|
6735
7222
|
const size = sizes[panelIndex] ?? constraints[panelIndex]?.defaultSize ?? 0;
|
|
6736
|
-
return /* @__PURE__ */
|
|
7223
|
+
return /* @__PURE__ */ jsx202(
|
|
6737
7224
|
ResizablePanelClone,
|
|
6738
7225
|
{
|
|
6739
7226
|
element,
|
|
@@ -6746,7 +7233,7 @@ function ResizablePanelGroup({ direction, children, className }) {
|
|
|
6746
7233
|
handleIndex += 1;
|
|
6747
7234
|
const index = handleIndex;
|
|
6748
7235
|
const constraint = constraints[index];
|
|
6749
|
-
return /* @__PURE__ */
|
|
7236
|
+
return /* @__PURE__ */ jsx202(
|
|
6750
7237
|
ResizableHandleClone,
|
|
6751
7238
|
{
|
|
6752
7239
|
element,
|
|
@@ -6775,19 +7262,19 @@ function ResizablePanelClone({
|
|
|
6775
7262
|
flexGrow: 0,
|
|
6776
7263
|
flexShrink: 0
|
|
6777
7264
|
};
|
|
6778
|
-
return /* @__PURE__ */
|
|
7265
|
+
return /* @__PURE__ */ jsx202(ResizablePanel, { ...element.props, style });
|
|
6779
7266
|
}
|
|
6780
7267
|
function ResizableHandleClone({
|
|
6781
7268
|
element,
|
|
6782
7269
|
...injected
|
|
6783
7270
|
}) {
|
|
6784
|
-
return /* @__PURE__ */
|
|
7271
|
+
return /* @__PURE__ */ jsx202(ResizableHandle, { ...element.props, ...injected });
|
|
6785
7272
|
}
|
|
6786
7273
|
|
|
6787
7274
|
// src/components/DataTable/DataTable.tsx
|
|
6788
7275
|
import { useMemo as useMemo4, useState as useState23 } from "react";
|
|
6789
7276
|
import styles75 from "./DataTable.module.css";
|
|
6790
|
-
import { jsx as
|
|
7277
|
+
import { jsx as jsx203, jsxs as jsxs155 } from "react/jsx-runtime";
|
|
6791
7278
|
function compareValues(a, b) {
|
|
6792
7279
|
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
6793
7280
|
return String(a).localeCompare(String(b));
|
|
@@ -6823,18 +7310,18 @@ function DataTable({
|
|
|
6823
7310
|
}
|
|
6824
7311
|
}
|
|
6825
7312
|
if (data.length === 0) {
|
|
6826
|
-
return /* @__PURE__ */
|
|
7313
|
+
return /* @__PURE__ */ jsx203(EmptyState, { heading: emptyMessage });
|
|
6827
7314
|
}
|
|
6828
|
-
return /* @__PURE__ */
|
|
6829
|
-
/* @__PURE__ */
|
|
7315
|
+
return /* @__PURE__ */ jsxs155(Table, { className, children: [
|
|
7316
|
+
/* @__PURE__ */ jsx203(TableHead, { children: /* @__PURE__ */ jsx203(TableRow, { children: columns.map((column) => {
|
|
6830
7317
|
const isSorted = sortKey === column.key;
|
|
6831
7318
|
const ariaSort = !column.sortable ? void 0 : isSorted ? sortDirection === "asc" ? "ascending" : "descending" : "none";
|
|
6832
|
-
return /* @__PURE__ */
|
|
7319
|
+
return /* @__PURE__ */ jsx203(
|
|
6833
7320
|
TableHeaderCell,
|
|
6834
7321
|
{
|
|
6835
7322
|
"aria-sort": ariaSort,
|
|
6836
7323
|
style: column.align === "end" ? { textAlign: "end" } : void 0,
|
|
6837
|
-
children: column.sortable ? /* @__PURE__ */
|
|
7324
|
+
children: column.sortable ? /* @__PURE__ */ jsxs155(
|
|
6838
7325
|
"button",
|
|
6839
7326
|
{
|
|
6840
7327
|
type: "button",
|
|
@@ -6842,7 +7329,7 @@ function DataTable({
|
|
|
6842
7329
|
onClick: () => handleSort(column),
|
|
6843
7330
|
children: [
|
|
6844
7331
|
column.header,
|
|
6845
|
-
/* @__PURE__ */
|
|
7332
|
+
/* @__PURE__ */ jsx203("span", { className: styles75.sortIcon, children: isSorted && /* @__PURE__ */ jsx203(
|
|
6846
7333
|
Icon,
|
|
6847
7334
|
{
|
|
6848
7335
|
name: sortDirection === "asc" ? "chevron-up" : "chevron-down",
|
|
@@ -6857,7 +7344,7 @@ function DataTable({
|
|
|
6857
7344
|
column.key
|
|
6858
7345
|
);
|
|
6859
7346
|
}) }) }),
|
|
6860
|
-
/* @__PURE__ */
|
|
7347
|
+
/* @__PURE__ */ jsx203(TableBody, { children: sortedData.map((row) => /* @__PURE__ */ jsx203(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx203(
|
|
6861
7348
|
TableCell,
|
|
6862
7349
|
{
|
|
6863
7350
|
style: column.align === "end" ? { textAlign: "end" } : void 0,
|
|
@@ -6871,7 +7358,7 @@ function DataTable({
|
|
|
6871
7358
|
// src/components/Combobox/Combobox.tsx
|
|
6872
7359
|
import { useEffect as useEffect17, useId as useId10, useMemo as useMemo5, useRef as useRef24, useState as useState24 } from "react";
|
|
6873
7360
|
import styles76 from "./Combobox.module.css";
|
|
6874
|
-
import { Fragment as Fragment14, jsx as
|
|
7361
|
+
import { Fragment as Fragment14, jsx as jsx204, jsxs as jsxs156 } from "react/jsx-runtime";
|
|
6875
7362
|
function matches2(option, query) {
|
|
6876
7363
|
if (!query) return true;
|
|
6877
7364
|
return option.label.toLowerCase().includes(query.toLowerCase());
|
|
@@ -6925,7 +7412,7 @@ function Combobox({
|
|
|
6925
7412
|
}
|
|
6926
7413
|
}
|
|
6927
7414
|
const highlightedId = filtered[highlightedIndex] ? `${listId}-${filtered[highlightedIndex].value}` : void 0;
|
|
6928
|
-
const trigger = /* @__PURE__ */
|
|
7415
|
+
const trigger = /* @__PURE__ */ jsxs156(
|
|
6929
7416
|
"button",
|
|
6930
7417
|
{
|
|
6931
7418
|
type: "button",
|
|
@@ -6936,13 +7423,13 @@ function Combobox({
|
|
|
6936
7423
|
"aria-expanded": open,
|
|
6937
7424
|
onClick: () => setOpen((o) => !o),
|
|
6938
7425
|
children: [
|
|
6939
|
-
/* @__PURE__ */
|
|
6940
|
-
/* @__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 })
|
|
6941
7428
|
]
|
|
6942
7429
|
}
|
|
6943
7430
|
);
|
|
6944
|
-
const body = /* @__PURE__ */
|
|
6945
|
-
/* @__PURE__ */
|
|
7431
|
+
const body = /* @__PURE__ */ jsxs156("div", { className: styles76.body, children: [
|
|
7432
|
+
/* @__PURE__ */ jsx204(
|
|
6946
7433
|
"input",
|
|
6947
7434
|
{
|
|
6948
7435
|
ref: inputRef,
|
|
@@ -6959,12 +7446,12 @@ function Combobox({
|
|
|
6959
7446
|
onKeyDown: handleKeyDown
|
|
6960
7447
|
}
|
|
6961
7448
|
),
|
|
6962
|
-
/* @__PURE__ */
|
|
6963
|
-
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 }),
|
|
6964
7451
|
filtered.map((option, index) => {
|
|
6965
7452
|
const isHighlighted = index === highlightedIndex;
|
|
6966
7453
|
const isSelected = option.value === value;
|
|
6967
|
-
return /* @__PURE__ */
|
|
7454
|
+
return /* @__PURE__ */ jsx204("li", { children: /* @__PURE__ */ jsxs156(
|
|
6968
7455
|
"button",
|
|
6969
7456
|
{
|
|
6970
7457
|
id: `${listId}-${option.value}`,
|
|
@@ -6975,7 +7462,7 @@ function Combobox({
|
|
|
6975
7462
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
6976
7463
|
onClick: () => commit(option),
|
|
6977
7464
|
children: [
|
|
6978
|
-
/* @__PURE__ */
|
|
7465
|
+
/* @__PURE__ */ jsx204("span", { className: styles76.check, children: isSelected && /* @__PURE__ */ jsx204(Icon, { name: "check", size: "sm", "aria-hidden": true }) }),
|
|
6979
7466
|
option.label
|
|
6980
7467
|
]
|
|
6981
7468
|
}
|
|
@@ -6984,12 +7471,12 @@ function Combobox({
|
|
|
6984
7471
|
] })
|
|
6985
7472
|
] });
|
|
6986
7473
|
if (isMobile) {
|
|
6987
|
-
return /* @__PURE__ */
|
|
7474
|
+
return /* @__PURE__ */ jsxs156(Fragment14, { children: [
|
|
6988
7475
|
trigger,
|
|
6989
|
-
/* @__PURE__ */
|
|
7476
|
+
/* @__PURE__ */ jsx204(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: body })
|
|
6990
7477
|
] });
|
|
6991
7478
|
}
|
|
6992
|
-
return /* @__PURE__ */
|
|
7479
|
+
return /* @__PURE__ */ jsx204(
|
|
6993
7480
|
Popover,
|
|
6994
7481
|
{
|
|
6995
7482
|
trigger,
|
|
@@ -7003,9 +7490,9 @@ function Combobox({
|
|
|
7003
7490
|
}
|
|
7004
7491
|
|
|
7005
7492
|
// src/components/GripIcon/GripIcon.tsx
|
|
7006
|
-
import { jsx as
|
|
7493
|
+
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
7007
7494
|
function GripIcon({ size = 14, className }) {
|
|
7008
|
-
return /* @__PURE__ */
|
|
7495
|
+
return /* @__PURE__ */ jsx205(
|
|
7009
7496
|
"svg",
|
|
7010
7497
|
{
|
|
7011
7498
|
width: size,
|
|
@@ -7015,7 +7502,7 @@ function GripIcon({ size = 14, className }) {
|
|
|
7015
7502
|
"aria-hidden": "true",
|
|
7016
7503
|
className,
|
|
7017
7504
|
children: [3, 7, 11].map(
|
|
7018
|
-
(cy) => [4, 10].map((cx) => /* @__PURE__ */
|
|
7505
|
+
(cy) => [4, 10].map((cx) => /* @__PURE__ */ jsx205("circle", { cx, cy, r: 1.2, fill: "currentColor" }, `${cx}-${cy}`))
|
|
7019
7506
|
)
|
|
7020
7507
|
}
|
|
7021
7508
|
);
|
|
@@ -7023,7 +7510,7 @@ function GripIcon({ size = 14, className }) {
|
|
|
7023
7510
|
|
|
7024
7511
|
// src/components/DragHandleRow/DragHandleRow.tsx
|
|
7025
7512
|
import styles77 from "./DragHandleRow.module.css";
|
|
7026
|
-
import { jsx as
|
|
7513
|
+
import { jsx as jsx206, jsxs as jsxs157 } from "react/jsx-runtime";
|
|
7027
7514
|
function DragHandleRow({
|
|
7028
7515
|
children,
|
|
7029
7516
|
handleProps,
|
|
@@ -7031,13 +7518,13 @@ function DragHandleRow({
|
|
|
7031
7518
|
className,
|
|
7032
7519
|
...rest
|
|
7033
7520
|
}) {
|
|
7034
|
-
return /* @__PURE__ */
|
|
7521
|
+
return /* @__PURE__ */ jsxs157(
|
|
7035
7522
|
"div",
|
|
7036
7523
|
{
|
|
7037
7524
|
...rest,
|
|
7038
7525
|
className: [styles77.row, isDragging ? styles77.dragging : "", className].filter(Boolean).join(" "),
|
|
7039
7526
|
children: [
|
|
7040
|
-
/* @__PURE__ */
|
|
7527
|
+
/* @__PURE__ */ jsx206(
|
|
7041
7528
|
"button",
|
|
7042
7529
|
{
|
|
7043
7530
|
type: "button",
|
|
@@ -7045,10 +7532,10 @@ function DragHandleRow({
|
|
|
7045
7532
|
className: styles77.handle,
|
|
7046
7533
|
tabIndex: -1,
|
|
7047
7534
|
...handleProps,
|
|
7048
|
-
children: /* @__PURE__ */
|
|
7535
|
+
children: /* @__PURE__ */ jsx206(GripIcon, { className: styles77.icon })
|
|
7049
7536
|
}
|
|
7050
7537
|
),
|
|
7051
|
-
/* @__PURE__ */
|
|
7538
|
+
/* @__PURE__ */ jsx206("div", { className: styles77.content, children })
|
|
7052
7539
|
]
|
|
7053
7540
|
}
|
|
7054
7541
|
);
|
|
@@ -7056,7 +7543,7 @@ function DragHandleRow({
|
|
|
7056
7543
|
|
|
7057
7544
|
// src/components/StepStrip/StepStrip.tsx
|
|
7058
7545
|
import styles78 from "./StepStrip.module.css";
|
|
7059
|
-
import { jsx as
|
|
7546
|
+
import { jsx as jsx207, jsxs as jsxs158 } from "react/jsx-runtime";
|
|
7060
7547
|
function StepStrip({
|
|
7061
7548
|
items,
|
|
7062
7549
|
activeId,
|
|
@@ -7066,16 +7553,16 @@ function StepStrip({
|
|
|
7066
7553
|
className,
|
|
7067
7554
|
"aria-label": ariaLabel
|
|
7068
7555
|
}) {
|
|
7069
|
-
return /* @__PURE__ */
|
|
7556
|
+
return /* @__PURE__ */ jsxs158(
|
|
7070
7557
|
"div",
|
|
7071
7558
|
{
|
|
7072
7559
|
className: [styles78.strip, className].filter(Boolean).join(" "),
|
|
7073
7560
|
role: "list",
|
|
7074
7561
|
"aria-label": ariaLabel,
|
|
7075
7562
|
children: [
|
|
7076
|
-
items.map((item, index) => /* @__PURE__ */
|
|
7563
|
+
items.map((item, index) => /* @__PURE__ */ jsxs158("div", { className: styles78.step, role: "listitem", children: [
|
|
7077
7564
|
renderItem(item, { isActive: item.id === activeId, index }),
|
|
7078
|
-
(index < items.length - 1 || onAdd) && /* @__PURE__ */
|
|
7565
|
+
(index < items.length - 1 || onAdd) && /* @__PURE__ */ jsx207(
|
|
7079
7566
|
"div",
|
|
7080
7567
|
{
|
|
7081
7568
|
className: [
|
|
@@ -7086,8 +7573,8 @@ function StepStrip({
|
|
|
7086
7573
|
}
|
|
7087
7574
|
)
|
|
7088
7575
|
] }, item.id)),
|
|
7089
|
-
onAdd && /* @__PURE__ */
|
|
7090
|
-
/* @__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 }),
|
|
7091
7578
|
addLabel
|
|
7092
7579
|
] })
|
|
7093
7580
|
]
|
|
@@ -7098,7 +7585,7 @@ function StepStrip({
|
|
|
7098
7585
|
// src/components/FileDropzone/FileDropzone.tsx
|
|
7099
7586
|
import { useRef as useRef25, useState as useState25 } from "react";
|
|
7100
7587
|
import styles79 from "./FileDropzone.module.css";
|
|
7101
|
-
import { jsx as
|
|
7588
|
+
import { jsx as jsx208, jsxs as jsxs159 } from "react/jsx-runtime";
|
|
7102
7589
|
function FileDropzone({
|
|
7103
7590
|
name,
|
|
7104
7591
|
accept,
|
|
@@ -7112,7 +7599,7 @@ function FileDropzone({
|
|
|
7112
7599
|
}) {
|
|
7113
7600
|
const [dragging, setDragging] = useState25(false);
|
|
7114
7601
|
const inputRef = useRef25(null);
|
|
7115
|
-
return /* @__PURE__ */
|
|
7602
|
+
return /* @__PURE__ */ jsxs159(
|
|
7116
7603
|
"label",
|
|
7117
7604
|
{
|
|
7118
7605
|
className: [
|
|
@@ -7141,12 +7628,12 @@ function FileDropzone({
|
|
|
7141
7628
|
onFileSelect(dropped);
|
|
7142
7629
|
},
|
|
7143
7630
|
children: [
|
|
7144
|
-
/* @__PURE__ */
|
|
7145
|
-
/* @__PURE__ */
|
|
7146
|
-
/* @__PURE__ */
|
|
7147
|
-
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 })
|
|
7148
7635
|
] }),
|
|
7149
|
-
/* @__PURE__ */
|
|
7636
|
+
/* @__PURE__ */ jsx208(
|
|
7150
7637
|
"input",
|
|
7151
7638
|
{
|
|
7152
7639
|
ref: inputRef,
|
|
@@ -7232,7 +7719,7 @@ function formatDateLabel(date) {
|
|
|
7232
7719
|
|
|
7233
7720
|
// src/components/Calendar/Calendar.tsx
|
|
7234
7721
|
import styles80 from "./Calendar.module.css";
|
|
7235
|
-
import { jsx as
|
|
7722
|
+
import { jsx as jsx209, jsxs as jsxs160 } from "react/jsx-runtime";
|
|
7236
7723
|
var WEEKDAY_LABEL_WEEK = getMonthGrid(new Date(2026, 0, 1))[0] ?? [];
|
|
7237
7724
|
function Calendar({
|
|
7238
7725
|
value,
|
|
@@ -7302,31 +7789,31 @@ function Calendar({
|
|
|
7302
7789
|
default:
|
|
7303
7790
|
}
|
|
7304
7791
|
}
|
|
7305
|
-
return /* @__PURE__ */
|
|
7306
|
-
/* @__PURE__ */
|
|
7307
|
-
/* @__PURE__ */
|
|
7792
|
+
return /* @__PURE__ */ jsxs160("div", { className: styles80.calendar, "aria-label": ariaLabel, children: [
|
|
7793
|
+
/* @__PURE__ */ jsxs160("div", { className: styles80.header, children: [
|
|
7794
|
+
/* @__PURE__ */ jsx209(
|
|
7308
7795
|
"button",
|
|
7309
7796
|
{
|
|
7310
7797
|
type: "button",
|
|
7311
7798
|
className: styles80.navButton,
|
|
7312
7799
|
"aria-label": "Previous month",
|
|
7313
7800
|
onClick: () => goToMonth(addMonths(displayedMonth, -1)),
|
|
7314
|
-
children: /* @__PURE__ */
|
|
7801
|
+
children: /* @__PURE__ */ jsx209(Icon, { name: "chevron-left", size: "sm", "aria-hidden": true })
|
|
7315
7802
|
}
|
|
7316
7803
|
),
|
|
7317
|
-
/* @__PURE__ */
|
|
7318
|
-
/* @__PURE__ */
|
|
7804
|
+
/* @__PURE__ */ jsx209("span", { className: styles80.monthLabel, children: formatMonthYear(displayedMonth) }),
|
|
7805
|
+
/* @__PURE__ */ jsx209(
|
|
7319
7806
|
"button",
|
|
7320
7807
|
{
|
|
7321
7808
|
type: "button",
|
|
7322
7809
|
className: styles80.navButton,
|
|
7323
7810
|
"aria-label": "Next month",
|
|
7324
7811
|
onClick: () => goToMonth(addMonths(displayedMonth, 1)),
|
|
7325
|
-
children: /* @__PURE__ */
|
|
7812
|
+
children: /* @__PURE__ */ jsx209(Icon, { name: "chevron-right", size: "sm", "aria-hidden": true })
|
|
7326
7813
|
}
|
|
7327
7814
|
)
|
|
7328
7815
|
] }),
|
|
7329
|
-
/* @__PURE__ */
|
|
7816
|
+
/* @__PURE__ */ jsxs160(
|
|
7330
7817
|
"div",
|
|
7331
7818
|
{
|
|
7332
7819
|
ref: gridRef,
|
|
@@ -7336,17 +7823,17 @@ function Calendar({
|
|
|
7336
7823
|
onKeyDown: handleKeyDown,
|
|
7337
7824
|
tabIndex: -1,
|
|
7338
7825
|
children: [
|
|
7339
|
-
/* @__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())) }),
|
|
7340
7827
|
weeks.map((week) => {
|
|
7341
7828
|
const firstDayOfWeek = week[0];
|
|
7342
7829
|
if (!firstDayOfWeek) return null;
|
|
7343
|
-
return /* @__PURE__ */
|
|
7830
|
+
return /* @__PURE__ */ jsx209("div", { role: "row", className: styles80.week, children: week.map((date) => {
|
|
7344
7831
|
const isCurrentMonth = isSameMonth(date, displayedMonth);
|
|
7345
7832
|
const isSelected = value !== null && isSameDay(date, value);
|
|
7346
7833
|
const isToday = isSameDay(date, /* @__PURE__ */ new Date());
|
|
7347
7834
|
const isFocusTarget = isSameDay(date, focusedDate);
|
|
7348
7835
|
const disabled = !isWithinRange(date, minDate, maxDate);
|
|
7349
|
-
return /* @__PURE__ */
|
|
7836
|
+
return /* @__PURE__ */ jsx209("div", { role: "gridcell", "aria-selected": isSelected, children: /* @__PURE__ */ jsx209(
|
|
7350
7837
|
"button",
|
|
7351
7838
|
{
|
|
7352
7839
|
type: "button",
|
|
@@ -7376,7 +7863,7 @@ function Calendar({
|
|
|
7376
7863
|
// src/components/DatePicker/DatePicker.tsx
|
|
7377
7864
|
import { useState as useState27 } from "react";
|
|
7378
7865
|
import styles81 from "./DatePicker.module.css";
|
|
7379
|
-
import { Fragment as Fragment15, jsx as
|
|
7866
|
+
import { Fragment as Fragment15, jsx as jsx210, jsxs as jsxs161 } from "react/jsx-runtime";
|
|
7380
7867
|
var POPOVER_WIDTH = 320;
|
|
7381
7868
|
function DatePicker({
|
|
7382
7869
|
value,
|
|
@@ -7393,7 +7880,7 @@ function DatePicker({
|
|
|
7393
7880
|
onChange(date);
|
|
7394
7881
|
setOpen(false);
|
|
7395
7882
|
}
|
|
7396
|
-
const trigger = /* @__PURE__ */
|
|
7883
|
+
const trigger = /* @__PURE__ */ jsxs161(
|
|
7397
7884
|
"button",
|
|
7398
7885
|
{
|
|
7399
7886
|
type: "button",
|
|
@@ -7404,12 +7891,12 @@ function DatePicker({
|
|
|
7404
7891
|
"aria-expanded": open,
|
|
7405
7892
|
onClick: () => setOpen((o) => !o),
|
|
7406
7893
|
children: [
|
|
7407
|
-
/* @__PURE__ */
|
|
7408
|
-
/* @__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 })
|
|
7409
7896
|
]
|
|
7410
7897
|
}
|
|
7411
7898
|
);
|
|
7412
|
-
const calendar = /* @__PURE__ */
|
|
7899
|
+
const calendar = /* @__PURE__ */ jsx210(
|
|
7413
7900
|
Calendar,
|
|
7414
7901
|
{
|
|
7415
7902
|
value,
|
|
@@ -7420,12 +7907,12 @@ function DatePicker({
|
|
|
7420
7907
|
}
|
|
7421
7908
|
);
|
|
7422
7909
|
if (isMobile) {
|
|
7423
|
-
return /* @__PURE__ */
|
|
7910
|
+
return /* @__PURE__ */ jsxs161(Fragment15, { children: [
|
|
7424
7911
|
trigger,
|
|
7425
|
-
/* @__PURE__ */
|
|
7912
|
+
/* @__PURE__ */ jsx210(Drawer, { open, onClose: () => setOpen(false), "aria-label": ariaLabel, children: /* @__PURE__ */ jsx210("div", { className: styles81.drawerBody, children: calendar }) })
|
|
7426
7913
|
] });
|
|
7427
7914
|
}
|
|
7428
|
-
return /* @__PURE__ */
|
|
7915
|
+
return /* @__PURE__ */ jsx210(
|
|
7429
7916
|
Popover,
|
|
7430
7917
|
{
|
|
7431
7918
|
trigger,
|
|
@@ -7433,7 +7920,7 @@ function DatePicker({
|
|
|
7433
7920
|
onClose: () => setOpen(false),
|
|
7434
7921
|
"aria-label": ariaLabel,
|
|
7435
7922
|
width: POPOVER_WIDTH,
|
|
7436
|
-
children: /* @__PURE__ */
|
|
7923
|
+
children: /* @__PURE__ */ jsx210("div", { className: styles81.popoverBody, children: calendar })
|
|
7437
7924
|
}
|
|
7438
7925
|
);
|
|
7439
7926
|
}
|
|
@@ -7441,7 +7928,7 @@ function DatePicker({
|
|
|
7441
7928
|
// src/components/SuggestionInput/SuggestionInput.tsx
|
|
7442
7929
|
import { useId as useId11, useRef as useRef27, useState as useState28 } from "react";
|
|
7443
7930
|
import styles82 from "./SuggestionInput.module.css";
|
|
7444
|
-
import { Fragment as Fragment16, jsx as
|
|
7931
|
+
import { Fragment as Fragment16, jsx as jsx211, jsxs as jsxs162 } from "react/jsx-runtime";
|
|
7445
7932
|
function SuggestionInput({
|
|
7446
7933
|
value,
|
|
7447
7934
|
onChange,
|
|
@@ -7498,7 +7985,7 @@ function SuggestionInput({
|
|
|
7498
7985
|
close();
|
|
7499
7986
|
}
|
|
7500
7987
|
}
|
|
7501
|
-
const trigger = /* @__PURE__ */
|
|
7988
|
+
const trigger = /* @__PURE__ */ jsx211(
|
|
7502
7989
|
"input",
|
|
7503
7990
|
{
|
|
7504
7991
|
ref: inputRef,
|
|
@@ -7523,7 +8010,7 @@ function SuggestionInput({
|
|
|
7523
8010
|
onKeyDown: handleKeyDown
|
|
7524
8011
|
}
|
|
7525
8012
|
);
|
|
7526
|
-
return /* @__PURE__ */
|
|
8013
|
+
return /* @__PURE__ */ jsx211(
|
|
7527
8014
|
Popover,
|
|
7528
8015
|
{
|
|
7529
8016
|
trigger,
|
|
@@ -7531,8 +8018,8 @@ function SuggestionInput({
|
|
|
7531
8018
|
onClose: close,
|
|
7532
8019
|
width: "trigger",
|
|
7533
8020
|
"aria-label": `${ariaLabel} suggestions`,
|
|
7534
|
-
children: /* @__PURE__ */
|
|
7535
|
-
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(
|
|
7536
8023
|
"button",
|
|
7537
8024
|
{
|
|
7538
8025
|
id: `${listId}-option-${index}`,
|
|
@@ -7545,15 +8032,15 @@ function SuggestionInput({
|
|
|
7545
8032
|
commitIndex(index);
|
|
7546
8033
|
},
|
|
7547
8034
|
children: [
|
|
7548
|
-
option.icon && /* @__PURE__ */
|
|
7549
|
-
/* @__PURE__ */
|
|
7550
|
-
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 })
|
|
7551
8038
|
]
|
|
7552
8039
|
}
|
|
7553
8040
|
) }, option.id)),
|
|
7554
|
-
showCreateRow && createLabel && /* @__PURE__ */
|
|
7555
|
-
options.length > 0 && /* @__PURE__ */
|
|
7556
|
-
/* @__PURE__ */
|
|
8041
|
+
showCreateRow && createLabel && /* @__PURE__ */ jsxs162("li", { role: "none", children: [
|
|
8042
|
+
options.length > 0 && /* @__PURE__ */ jsx211("div", { className: styles82.divider }),
|
|
8043
|
+
/* @__PURE__ */ jsx211(
|
|
7557
8044
|
"button",
|
|
7558
8045
|
{
|
|
7559
8046
|
id: `${listId}-option-${options.length}`,
|
|
@@ -7581,7 +8068,7 @@ function SuggestionInput({
|
|
|
7581
8068
|
// src/components/IconPicker/IconPicker.tsx
|
|
7582
8069
|
import { useState as useState29 } from "react";
|
|
7583
8070
|
import styles83 from "./IconPicker.module.css";
|
|
7584
|
-
import { jsx as
|
|
8071
|
+
import { jsx as jsx212, jsxs as jsxs163 } from "react/jsx-runtime";
|
|
7585
8072
|
function IconPicker({
|
|
7586
8073
|
value,
|
|
7587
8074
|
onChange,
|
|
@@ -7592,7 +8079,7 @@ function IconPicker({
|
|
|
7592
8079
|
className
|
|
7593
8080
|
}) {
|
|
7594
8081
|
const [open, setOpen] = useState29(false);
|
|
7595
|
-
const trigger = /* @__PURE__ */
|
|
8082
|
+
const trigger = /* @__PURE__ */ jsxs163(
|
|
7596
8083
|
"button",
|
|
7597
8084
|
{
|
|
7598
8085
|
type: "button",
|
|
@@ -7603,12 +8090,12 @@ function IconPicker({
|
|
|
7603
8090
|
"aria-haspopup": "true",
|
|
7604
8091
|
"aria-expanded": open,
|
|
7605
8092
|
children: [
|
|
7606
|
-
value ? /* @__PURE__ */
|
|
7607
|
-
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 })
|
|
7608
8095
|
]
|
|
7609
8096
|
}
|
|
7610
8097
|
);
|
|
7611
|
-
return /* @__PURE__ */
|
|
8098
|
+
return /* @__PURE__ */ jsx212(
|
|
7612
8099
|
Popover,
|
|
7613
8100
|
{
|
|
7614
8101
|
trigger,
|
|
@@ -7616,7 +8103,7 @@ function IconPicker({
|
|
|
7616
8103
|
onClose: () => setOpen(false),
|
|
7617
8104
|
width: 240,
|
|
7618
8105
|
"aria-label": `${ariaLabel} options`,
|
|
7619
|
-
children: /* @__PURE__ */
|
|
8106
|
+
children: /* @__PURE__ */ jsx212("div", { className: styles83.grid, role: "listbox", "aria-label": ariaLabel, children: options.map((name) => /* @__PURE__ */ jsx212(
|
|
7620
8107
|
"button",
|
|
7621
8108
|
{
|
|
7622
8109
|
type: "button",
|
|
@@ -7627,7 +8114,7 @@ function IconPicker({
|
|
|
7627
8114
|
onChange(name);
|
|
7628
8115
|
setOpen(false);
|
|
7629
8116
|
},
|
|
7630
|
-
children: /* @__PURE__ */
|
|
8117
|
+
children: /* @__PURE__ */ jsx212(Icon, { name, size: "md", "aria-hidden": true })
|
|
7631
8118
|
},
|
|
7632
8119
|
name
|
|
7633
8120
|
)) })
|
|
@@ -7637,7 +8124,7 @@ function IconPicker({
|
|
|
7637
8124
|
|
|
7638
8125
|
// src/components/ColorPicker/ColorPicker.tsx
|
|
7639
8126
|
import styles84 from "./ColorPicker.module.css";
|
|
7640
|
-
import { jsx as
|
|
8127
|
+
import { jsx as jsx213, jsxs as jsxs164 } from "react/jsx-runtime";
|
|
7641
8128
|
function normalize(hex) {
|
|
7642
8129
|
return hex.toLowerCase();
|
|
7643
8130
|
}
|
|
@@ -7657,14 +8144,14 @@ function ColorPicker({
|
|
|
7657
8144
|
const matchedSwatch = swatches.find((s) => normalize(s.value) === normalizedValue);
|
|
7658
8145
|
const isCustomActive = normalizedValue !== null && !matchedSwatch;
|
|
7659
8146
|
const customDialValue = isCustomActive && value ? value : swatches[0]?.value ?? "#000000";
|
|
7660
|
-
return /* @__PURE__ */
|
|
8147
|
+
return /* @__PURE__ */ jsxs164(
|
|
7661
8148
|
"div",
|
|
7662
8149
|
{
|
|
7663
8150
|
className: [styles84.row, className].filter(Boolean).join(" "),
|
|
7664
8151
|
role: "group",
|
|
7665
8152
|
"aria-label": ariaLabel,
|
|
7666
8153
|
children: [
|
|
7667
|
-
allowNone && /* @__PURE__ */
|
|
8154
|
+
allowNone && /* @__PURE__ */ jsx213(
|
|
7668
8155
|
"button",
|
|
7669
8156
|
{
|
|
7670
8157
|
type: "button",
|
|
@@ -7678,10 +8165,10 @@ function ColorPicker({
|
|
|
7678
8165
|
onChange(null);
|
|
7679
8166
|
onSelectionComplete?.();
|
|
7680
8167
|
},
|
|
7681
|
-
children: /* @__PURE__ */
|
|
8168
|
+
children: /* @__PURE__ */ jsx213(Icon, { name: "x", size: "sm", "aria-hidden": true })
|
|
7682
8169
|
}
|
|
7683
8170
|
),
|
|
7684
|
-
swatches.map((s) => /* @__PURE__ */
|
|
8171
|
+
swatches.map((s) => /* @__PURE__ */ jsx213(
|
|
7685
8172
|
"button",
|
|
7686
8173
|
{
|
|
7687
8174
|
type: "button",
|
|
@@ -7702,7 +8189,7 @@ function ColorPicker({
|
|
|
7702
8189
|
},
|
|
7703
8190
|
s.value
|
|
7704
8191
|
)),
|
|
7705
|
-
/* @__PURE__ */
|
|
8192
|
+
/* @__PURE__ */ jsxs164(
|
|
7706
8193
|
"span",
|
|
7707
8194
|
{
|
|
7708
8195
|
className: [
|
|
@@ -7710,7 +8197,7 @@ function ColorPicker({
|
|
|
7710
8197
|
isCustomActive ? styles84.swatchSelected : styles84.customWrapperEmpty
|
|
7711
8198
|
].filter(Boolean).join(" "),
|
|
7712
8199
|
children: [
|
|
7713
|
-
/* @__PURE__ */
|
|
8200
|
+
/* @__PURE__ */ jsx213(
|
|
7714
8201
|
"input",
|
|
7715
8202
|
{
|
|
7716
8203
|
type: "color",
|
|
@@ -7722,7 +8209,7 @@ function ColorPicker({
|
|
|
7722
8209
|
onChange: (e) => onChange(e.target.value)
|
|
7723
8210
|
}
|
|
7724
8211
|
),
|
|
7725
|
-
!isCustomActive && /* @__PURE__ */
|
|
8212
|
+
!isCustomActive && /* @__PURE__ */ jsx213(Icon, { name: "plus", size: "sm", "aria-hidden": true, className: styles84.customPlusIcon })
|
|
7726
8213
|
]
|
|
7727
8214
|
}
|
|
7728
8215
|
)
|
|
@@ -7734,7 +8221,7 @@ function ColorPicker({
|
|
|
7734
8221
|
// src/components/QuantityStepper/QuantityStepper.tsx
|
|
7735
8222
|
import { useId as useId12 } from "react";
|
|
7736
8223
|
import styles85 from "./QuantityStepper.module.css";
|
|
7737
|
-
import { jsx as
|
|
8224
|
+
import { jsx as jsx214, jsxs as jsxs165 } from "react/jsx-runtime";
|
|
7738
8225
|
function QuantityStepper({
|
|
7739
8226
|
value,
|
|
7740
8227
|
onChange,
|
|
@@ -7761,8 +8248,8 @@ function QuantityStepper({
|
|
|
7761
8248
|
}
|
|
7762
8249
|
const decrementDisabled = disabled || min !== void 0 && value <= min;
|
|
7763
8250
|
const incrementDisabled = disabled || max !== void 0 && value >= max;
|
|
7764
|
-
return /* @__PURE__ */
|
|
7765
|
-
/* @__PURE__ */
|
|
8251
|
+
return /* @__PURE__ */ jsxs165("div", { className: [styles85.root, className].filter(Boolean).join(" "), children: [
|
|
8252
|
+
/* @__PURE__ */ jsx214(
|
|
7766
8253
|
"button",
|
|
7767
8254
|
{
|
|
7768
8255
|
type: "button",
|
|
@@ -7773,7 +8260,7 @@ function QuantityStepper({
|
|
|
7773
8260
|
children: "\u2212"
|
|
7774
8261
|
}
|
|
7775
8262
|
),
|
|
7776
|
-
/* @__PURE__ */
|
|
8263
|
+
/* @__PURE__ */ jsx214(
|
|
7777
8264
|
"input",
|
|
7778
8265
|
{
|
|
7779
8266
|
id: inputId,
|
|
@@ -7788,8 +8275,8 @@ function QuantityStepper({
|
|
|
7788
8275
|
"aria-label": ariaLabel
|
|
7789
8276
|
}
|
|
7790
8277
|
),
|
|
7791
|
-
unit && /* @__PURE__ */
|
|
7792
|
-
/* @__PURE__ */
|
|
8278
|
+
unit && /* @__PURE__ */ jsx214("span", { className: styles85.unit, "aria-hidden": true, children: unit }),
|
|
8279
|
+
/* @__PURE__ */ jsx214(
|
|
7793
8280
|
"button",
|
|
7794
8281
|
{
|
|
7795
8282
|
type: "button",
|
|
@@ -7805,7 +8292,7 @@ function QuantityStepper({
|
|
|
7805
8292
|
|
|
7806
8293
|
// src/components/CheckableListRow/CheckableListRow.tsx
|
|
7807
8294
|
import styles86 from "./CheckableListRow.module.css";
|
|
7808
|
-
import { jsx as
|
|
8295
|
+
import { jsx as jsx215, jsxs as jsxs166 } from "react/jsx-runtime";
|
|
7809
8296
|
function CheckableListRow({
|
|
7810
8297
|
checked,
|
|
7811
8298
|
onCheckedChange,
|
|
@@ -7824,8 +8311,8 @@ function CheckableListRow({
|
|
|
7824
8311
|
toggle();
|
|
7825
8312
|
}
|
|
7826
8313
|
}
|
|
7827
|
-
return /* @__PURE__ */
|
|
7828
|
-
/* @__PURE__ */
|
|
8314
|
+
return /* @__PURE__ */ jsxs166("div", { className: [styles86.row, className].filter(Boolean).join(" "), children: [
|
|
8315
|
+
/* @__PURE__ */ jsxs166(
|
|
7829
8316
|
"div",
|
|
7830
8317
|
{
|
|
7831
8318
|
role: "checkbox",
|
|
@@ -7837,7 +8324,7 @@ function CheckableListRow({
|
|
|
7837
8324
|
onClick: toggle,
|
|
7838
8325
|
onKeyDown: handleKeyDown,
|
|
7839
8326
|
children: [
|
|
7840
|
-
/* @__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(
|
|
7841
8328
|
"path",
|
|
7842
8329
|
{
|
|
7843
8330
|
d: "M1 4l3 3 5-6",
|
|
@@ -7847,18 +8334,18 @@ function CheckableListRow({
|
|
|
7847
8334
|
strokeLinejoin: "round"
|
|
7848
8335
|
}
|
|
7849
8336
|
) }) }),
|
|
7850
|
-
icon && /* @__PURE__ */
|
|
7851
|
-
/* @__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 })
|
|
7852
8339
|
]
|
|
7853
8340
|
}
|
|
7854
8341
|
),
|
|
7855
|
-
trailing && /* @__PURE__ */
|
|
8342
|
+
trailing && /* @__PURE__ */ jsx215("span", { className: styles86.trailing, children: trailing })
|
|
7856
8343
|
] });
|
|
7857
8344
|
}
|
|
7858
8345
|
|
|
7859
8346
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
7860
8347
|
import { useState as useState30 } from "react";
|
|
7861
|
-
import { jsx as
|
|
8348
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
7862
8349
|
function minorToText(minor, decimals) {
|
|
7863
8350
|
return (minor / 10 ** decimals).toFixed(decimals);
|
|
7864
8351
|
}
|
|
@@ -7881,7 +8368,7 @@ function CurrencyInput({
|
|
|
7881
8368
|
if (textToMinor(text, decimals) !== valueCents) {
|
|
7882
8369
|
setText(valueCents != null ? minorToText(valueCents, decimals) : "");
|
|
7883
8370
|
}
|
|
7884
|
-
return /* @__PURE__ */
|
|
8371
|
+
return /* @__PURE__ */ jsx216(
|
|
7885
8372
|
Input,
|
|
7886
8373
|
{
|
|
7887
8374
|
...rest,
|
|
@@ -7899,18 +8386,18 @@ function CurrencyInput({
|
|
|
7899
8386
|
|
|
7900
8387
|
// src/components/BalanceChip/BalanceChip.tsx
|
|
7901
8388
|
import styles87 from "./BalanceChip.module.css";
|
|
7902
|
-
import { jsx as
|
|
8389
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
7903
8390
|
function formatAbsCents(cents) {
|
|
7904
8391
|
return (Math.abs(cents) / 100).toFixed(2);
|
|
7905
8392
|
}
|
|
7906
8393
|
function BalanceChip({ amountCents, currency, className }) {
|
|
7907
8394
|
const direction = amountCents > 0 ? "owed" : amountCents < 0 ? "owes" : "settled";
|
|
7908
8395
|
const text = direction === "settled" ? "Settled up" : `${direction === "owed" ? "Owed" : "Owes"} ${currency} ${formatAbsCents(amountCents)}`;
|
|
7909
|
-
return /* @__PURE__ */
|
|
8396
|
+
return /* @__PURE__ */ jsx217("span", { className: [styles87.chip, styles87[direction], className].filter(Boolean).join(" "), children: text });
|
|
7910
8397
|
}
|
|
7911
8398
|
|
|
7912
8399
|
// src/components/SplitMethodSelector/SplitMethodSelector.tsx
|
|
7913
|
-
import { jsx as
|
|
8400
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
7914
8401
|
var OPTIONS = [
|
|
7915
8402
|
{ label: "Equal", value: "equal" },
|
|
7916
8403
|
{ label: "Amount", value: "amount" },
|
|
@@ -7923,7 +8410,7 @@ function SplitMethodSelector({
|
|
|
7923
8410
|
size = "sm",
|
|
7924
8411
|
"aria-label": ariaLabel = "Split method"
|
|
7925
8412
|
}) {
|
|
7926
|
-
return /* @__PURE__ */
|
|
8413
|
+
return /* @__PURE__ */ jsx218(
|
|
7927
8414
|
SegmentedControl,
|
|
7928
8415
|
{
|
|
7929
8416
|
value,
|
|
@@ -7937,7 +8424,7 @@ function SplitMethodSelector({
|
|
|
7937
8424
|
|
|
7938
8425
|
// src/components/MemberMultiSelect/MemberMultiSelect.tsx
|
|
7939
8426
|
import styles88 from "./MemberMultiSelect.module.css";
|
|
7940
|
-
import { jsx as
|
|
8427
|
+
import { jsx as jsx219, jsxs as jsxs167 } from "react/jsx-runtime";
|
|
7941
8428
|
function MemberMultiSelect({
|
|
7942
8429
|
options,
|
|
7943
8430
|
selectedIds,
|
|
@@ -7947,12 +8434,12 @@ function MemberMultiSelect({
|
|
|
7947
8434
|
hint,
|
|
7948
8435
|
className
|
|
7949
8436
|
}) {
|
|
7950
|
-
return /* @__PURE__ */
|
|
7951
|
-
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 }),
|
|
7952
8439
|
options.map((option) => {
|
|
7953
8440
|
const checked = selectedIds.has(option.id);
|
|
7954
|
-
return /* @__PURE__ */
|
|
7955
|
-
/* @__PURE__ */
|
|
8441
|
+
return /* @__PURE__ */ jsxs167("div", { className: styles88.row, children: [
|
|
8442
|
+
/* @__PURE__ */ jsx219(
|
|
7956
8443
|
Checkbox,
|
|
7957
8444
|
{
|
|
7958
8445
|
checked,
|
|
@@ -7960,16 +8447,16 @@ function MemberMultiSelect({
|
|
|
7960
8447
|
label: option.label
|
|
7961
8448
|
}
|
|
7962
8449
|
),
|
|
7963
|
-
checked && renderTrailing && /* @__PURE__ */
|
|
8450
|
+
checked && renderTrailing && /* @__PURE__ */ jsx219("span", { className: styles88.trailing, children: renderTrailing(option.id) })
|
|
7964
8451
|
] }, option.id);
|
|
7965
8452
|
}),
|
|
7966
|
-
hint && /* @__PURE__ */
|
|
8453
|
+
hint && /* @__PURE__ */ jsx219("span", { className: styles88.hint, children: hint })
|
|
7967
8454
|
] });
|
|
7968
8455
|
}
|
|
7969
8456
|
|
|
7970
8457
|
// src/components/SwipableMobileCarouselDots/SwipableMobileCarouselDots.tsx
|
|
7971
8458
|
import styles89 from "./SwipableMobileCarouselDots.module.css";
|
|
7972
|
-
import { jsx as
|
|
8459
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
7973
8460
|
function SwipableMobileCarouselDots({
|
|
7974
8461
|
count,
|
|
7975
8462
|
activeIndex,
|
|
@@ -7979,7 +8466,7 @@ function SwipableMobileCarouselDots({
|
|
|
7979
8466
|
density = "default",
|
|
7980
8467
|
className
|
|
7981
8468
|
}) {
|
|
7982
|
-
return /* @__PURE__ */
|
|
8469
|
+
return /* @__PURE__ */ jsx220(
|
|
7983
8470
|
"div",
|
|
7984
8471
|
{
|
|
7985
8472
|
role: "tablist",
|
|
@@ -7988,7 +8475,7 @@ function SwipableMobileCarouselDots({
|
|
|
7988
8475
|
children: Array.from({ length: count }, (_, i) => {
|
|
7989
8476
|
const active = i === activeIndex;
|
|
7990
8477
|
const label = labels?.[i] ?? `Slide ${i + 1} of ${count}`;
|
|
7991
|
-
return /* @__PURE__ */
|
|
8478
|
+
return /* @__PURE__ */ jsx220(
|
|
7992
8479
|
"button",
|
|
7993
8480
|
{
|
|
7994
8481
|
type: "button",
|
|
@@ -8023,16 +8510,16 @@ import { createContext as createContext3 } from "react";
|
|
|
8023
8510
|
var CarouselSlideMountContext = createContext3(null);
|
|
8024
8511
|
|
|
8025
8512
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlide.tsx
|
|
8026
|
-
import { Fragment as Fragment17, jsx as
|
|
8513
|
+
import { Fragment as Fragment17, jsx as jsx221 } from "react/jsx-runtime";
|
|
8027
8514
|
function SwipableMobileCarouselSlide({ children }) {
|
|
8028
8515
|
const ctx = useContext3(CarouselSlideMountContext);
|
|
8029
8516
|
if (!ctx?.isMounted) return null;
|
|
8030
|
-
return /* @__PURE__ */
|
|
8517
|
+
return /* @__PURE__ */ jsx221(Fragment17, { children });
|
|
8031
8518
|
}
|
|
8032
8519
|
|
|
8033
8520
|
// src/components/SwipableMobileCarousel/SwipableMobileCarousel.tsx
|
|
8034
8521
|
import styles90 from "./SwipableMobileCarousel.module.css";
|
|
8035
|
-
import { jsx as
|
|
8522
|
+
import { jsx as jsx222, jsxs as jsxs168 } from "react/jsx-runtime";
|
|
8036
8523
|
function describeChild(child) {
|
|
8037
8524
|
if (isValidElement2(child)) {
|
|
8038
8525
|
const type = child.type;
|
|
@@ -8123,7 +8610,7 @@ function SwipableMobileCarousel({
|
|
|
8123
8610
|
onSettle(index);
|
|
8124
8611
|
}
|
|
8125
8612
|
const labels = slides.map((s) => s.label);
|
|
8126
|
-
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(
|
|
8127
8614
|
SwipableMobileCarouselDots,
|
|
8128
8615
|
{
|
|
8129
8616
|
count,
|
|
@@ -8133,8 +8620,8 @@ function SwipableMobileCarousel({
|
|
|
8133
8620
|
onJump: handleJump
|
|
8134
8621
|
}
|
|
8135
8622
|
);
|
|
8136
|
-
return /* @__PURE__ */
|
|
8137
|
-
/* @__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(
|
|
8138
8625
|
CarouselSlideMountContext.Provider,
|
|
8139
8626
|
{
|
|
8140
8627
|
value: {
|
|
@@ -8152,55 +8639,55 @@ function SwipableMobileCarousel({
|
|
|
8152
8639
|
children: slide.element
|
|
8153
8640
|
}
|
|
8154
8641
|
) }, slide.key)) }),
|
|
8155
|
-
indicator && /* @__PURE__ */
|
|
8642
|
+
indicator && /* @__PURE__ */ jsx222("div", { className: styles90.indicatorSlot, children: indicator })
|
|
8156
8643
|
] });
|
|
8157
8644
|
}
|
|
8158
8645
|
|
|
8159
8646
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideHeader.tsx
|
|
8160
8647
|
import styles91 from "./SwipableMobileCarouselSlideParts.module.css";
|
|
8161
|
-
import { jsx as
|
|
8648
|
+
import { jsx as jsx223 } from "react/jsx-runtime";
|
|
8162
8649
|
function SwipableMobileCarouselSlideHeader({
|
|
8163
8650
|
children,
|
|
8164
8651
|
className
|
|
8165
8652
|
}) {
|
|
8166
|
-
return /* @__PURE__ */
|
|
8653
|
+
return /* @__PURE__ */ jsx223("div", { className: [styles91.header, className].filter(Boolean).join(" "), children });
|
|
8167
8654
|
}
|
|
8168
8655
|
|
|
8169
8656
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideBody.tsx
|
|
8170
8657
|
import styles92 from "./SwipableMobileCarouselSlideParts.module.css";
|
|
8171
|
-
import { jsx as
|
|
8172
|
-
var defaultLoadingFallback = /* @__PURE__ */
|
|
8658
|
+
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
8659
|
+
var defaultLoadingFallback = /* @__PURE__ */ jsx224("div", { className: styles92.loading, children: "Loading\u2026" });
|
|
8173
8660
|
function SwipableMobileCarouselSlideBody({
|
|
8174
8661
|
children,
|
|
8175
8662
|
loading = false,
|
|
8176
8663
|
loadingFallback,
|
|
8177
8664
|
className
|
|
8178
8665
|
}) {
|
|
8179
|
-
return /* @__PURE__ */
|
|
8666
|
+
return /* @__PURE__ */ jsx224("div", { className: [styles92.body, className].filter(Boolean).join(" "), children: loading ? loadingFallback ?? defaultLoadingFallback : children });
|
|
8180
8667
|
}
|
|
8181
8668
|
|
|
8182
8669
|
// src/components/SwipableMobileCarousel/SwipableMobileCarouselSlideFooter.tsx
|
|
8183
8670
|
import styles93 from "./SwipableMobileCarouselSlideParts.module.css";
|
|
8184
|
-
import { jsx as
|
|
8671
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
8185
8672
|
function SwipableMobileCarouselSlideFooter({
|
|
8186
8673
|
children,
|
|
8187
8674
|
className
|
|
8188
8675
|
}) {
|
|
8189
|
-
return /* @__PURE__ */
|
|
8676
|
+
return /* @__PURE__ */ jsx225("div", { className: [styles93.footer, className].filter(Boolean).join(" "), children });
|
|
8190
8677
|
}
|
|
8191
8678
|
|
|
8192
8679
|
// src/components/SwipeStack/SwipeStack.tsx
|
|
8193
8680
|
import { Children as Children3, isValidElement as isValidElement3, useEffect as useEffect19, useRef as useRef29, useState as useState31 } from "react";
|
|
8194
8681
|
|
|
8195
8682
|
// src/components/SwipeStack/SwipeStackCard.tsx
|
|
8196
|
-
import { Fragment as Fragment18, jsx as
|
|
8683
|
+
import { Fragment as Fragment18, jsx as jsx226 } from "react/jsx-runtime";
|
|
8197
8684
|
function SwipeStackCard({ children }) {
|
|
8198
|
-
return /* @__PURE__ */
|
|
8685
|
+
return /* @__PURE__ */ jsx226(Fragment18, { children });
|
|
8199
8686
|
}
|
|
8200
8687
|
|
|
8201
8688
|
// src/components/SwipeStack/SwipeStack.tsx
|
|
8202
8689
|
import styles94 from "./SwipeStack.module.css";
|
|
8203
|
-
import { jsx as
|
|
8690
|
+
import { jsx as jsx227, jsxs as jsxs169 } from "react/jsx-runtime";
|
|
8204
8691
|
var DIRECTION_KEYS = ["up", "down", "left", "right"];
|
|
8205
8692
|
var STAMP_CLASS = {
|
|
8206
8693
|
up: styles94.stampUp,
|
|
@@ -8277,33 +8764,33 @@ function SwipeStack({
|
|
|
8277
8764
|
onSwipe(direction, committed.key);
|
|
8278
8765
|
}
|
|
8279
8766
|
});
|
|
8280
|
-
return /* @__PURE__ */
|
|
8281
|
-
/* @__PURE__ */
|
|
8282
|
-
peek && /* @__PURE__ */
|
|
8283
|
-
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: [
|
|
8284
8771
|
liveDirections.map((d) => {
|
|
8285
8772
|
const meta = directions[d];
|
|
8286
8773
|
if (!meta) return null;
|
|
8287
|
-
return /* @__PURE__ */
|
|
8774
|
+
return /* @__PURE__ */ jsxs169(
|
|
8288
8775
|
"div",
|
|
8289
8776
|
{
|
|
8290
8777
|
className: [styles94.stamp, STAMP_CLASS[d]].join(" "),
|
|
8291
8778
|
"aria-hidden": "true",
|
|
8292
8779
|
children: [
|
|
8293
|
-
meta.icon && /* @__PURE__ */
|
|
8294
|
-
/* @__PURE__ */
|
|
8780
|
+
meta.icon && /* @__PURE__ */ jsx227(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
|
|
8781
|
+
/* @__PURE__ */ jsx227("span", { children: meta.label })
|
|
8295
8782
|
]
|
|
8296
8783
|
},
|
|
8297
8784
|
d
|
|
8298
8785
|
);
|
|
8299
8786
|
}),
|
|
8300
|
-
/* @__PURE__ */
|
|
8787
|
+
/* @__PURE__ */ jsx227("div", { className: styles94.card, ref: cardRef, style: { touchAction }, ...handlers, children: current.element })
|
|
8301
8788
|
] }, current.key)
|
|
8302
8789
|
] }),
|
|
8303
|
-
liveDirections.length > 0 && /* @__PURE__ */
|
|
8790
|
+
liveDirections.length > 0 && /* @__PURE__ */ jsx227("div", { className: styles94.actions, role: "group", "aria-label": `${ariaLabel} actions`, children: liveDirections.map((d) => {
|
|
8304
8791
|
const meta = directions[d];
|
|
8305
8792
|
if (!meta) return null;
|
|
8306
|
-
return /* @__PURE__ */
|
|
8793
|
+
return /* @__PURE__ */ jsxs169(
|
|
8307
8794
|
Button,
|
|
8308
8795
|
{
|
|
8309
8796
|
variant: "secondary",
|
|
@@ -8311,7 +8798,7 @@ function SwipeStack({
|
|
|
8311
8798
|
disabled: !current,
|
|
8312
8799
|
onClick: () => triggerCommit(d),
|
|
8313
8800
|
children: [
|
|
8314
|
-
meta.icon && /* @__PURE__ */
|
|
8801
|
+
meta.icon && /* @__PURE__ */ jsx227(Icon, { name: meta.icon, size: "sm", "aria-hidden": true }),
|
|
8315
8802
|
meta.label
|
|
8316
8803
|
]
|
|
8317
8804
|
},
|
|
@@ -8324,7 +8811,7 @@ function SwipeStack({
|
|
|
8324
8811
|
// src/components/ThreeColumnLayout/ThreeColumnLayout.tsx
|
|
8325
8812
|
import { Children as Children4 } from "react";
|
|
8326
8813
|
import styles95 from "./ThreeColumnLayout.module.css";
|
|
8327
|
-
import { jsx as
|
|
8814
|
+
import { jsx as jsx228, jsxs as jsxs170 } from "react/jsx-runtime";
|
|
8328
8815
|
function ThreeColumnLayout({
|
|
8329
8816
|
children,
|
|
8330
8817
|
sidebarWidth = 280,
|
|
@@ -8339,8 +8826,8 @@ function ThreeColumnLayout({
|
|
|
8339
8826
|
);
|
|
8340
8827
|
}
|
|
8341
8828
|
const [sidebar, main, detail] = items;
|
|
8342
|
-
return /* @__PURE__ */
|
|
8343
|
-
/* @__PURE__ */
|
|
8829
|
+
return /* @__PURE__ */ jsxs170("div", { className: [styles95.shell, className].filter(Boolean).join(" "), children: [
|
|
8830
|
+
/* @__PURE__ */ jsx228(
|
|
8344
8831
|
"div",
|
|
8345
8832
|
{
|
|
8346
8833
|
className: [styles95.sidebar, sidebarHidden && styles95.sidebarHidden].filter(Boolean).join(" "),
|
|
@@ -8349,14 +8836,14 @@ function ThreeColumnLayout({
|
|
|
8349
8836
|
children: sidebar
|
|
8350
8837
|
}
|
|
8351
8838
|
),
|
|
8352
|
-
/* @__PURE__ */
|
|
8353
|
-
detail && /* @__PURE__ */
|
|
8839
|
+
/* @__PURE__ */ jsx228("div", { className: styles95.main, children: main }),
|
|
8840
|
+
detail && /* @__PURE__ */ jsx228("div", { className: styles95.detail, style: { width: detailWidth }, children: detail })
|
|
8354
8841
|
] });
|
|
8355
8842
|
}
|
|
8356
8843
|
|
|
8357
8844
|
// src/components/HeaderFooterLayout/HeaderFooterLayout.tsx
|
|
8358
8845
|
import styles96 from "./HeaderFooterLayout.module.css";
|
|
8359
|
-
import { jsx as
|
|
8846
|
+
import { jsx as jsx229, jsxs as jsxs171 } from "react/jsx-runtime";
|
|
8360
8847
|
function HeaderFooterLayout({
|
|
8361
8848
|
children,
|
|
8362
8849
|
header,
|
|
@@ -8365,17 +8852,17 @@ function HeaderFooterLayout({
|
|
|
8365
8852
|
footerHeight = 60,
|
|
8366
8853
|
className
|
|
8367
8854
|
}) {
|
|
8368
|
-
return /* @__PURE__ */
|
|
8369
|
-
header && /* @__PURE__ */
|
|
8370
|
-
/* @__PURE__ */
|
|
8371
|
-
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 })
|
|
8372
8859
|
] });
|
|
8373
8860
|
}
|
|
8374
8861
|
|
|
8375
8862
|
// src/components/RootLayout/RootLayout.tsx
|
|
8376
8863
|
import { Children as Children5 } from "react";
|
|
8377
8864
|
import styles97 from "./RootLayout.module.css";
|
|
8378
|
-
import { Fragment as Fragment19, jsx as
|
|
8865
|
+
import { Fragment as Fragment19, jsx as jsx230, jsxs as jsxs172 } from "react/jsx-runtime";
|
|
8379
8866
|
var EXPECTED_CHILD_COUNT = {
|
|
8380
8867
|
plain: 1,
|
|
8381
8868
|
sidebar: 2,
|
|
@@ -8385,17 +8872,17 @@ var EXPECTED_CHILD_COUNT = {
|
|
|
8385
8872
|
function RootLayoutWeb({ variant, items, sidebarWidth, headerHeight }) {
|
|
8386
8873
|
if (variant === "sidebar") {
|
|
8387
8874
|
const [sidebar, main2] = items;
|
|
8388
|
-
return /* @__PURE__ */
|
|
8875
|
+
return /* @__PURE__ */ jsxs172(ThreeColumnLayout, { sidebarWidth, children: [
|
|
8389
8876
|
sidebar,
|
|
8390
8877
|
main2
|
|
8391
8878
|
] });
|
|
8392
8879
|
}
|
|
8393
8880
|
if (variant === "header") {
|
|
8394
8881
|
const [header, main2] = items;
|
|
8395
|
-
return /* @__PURE__ */
|
|
8882
|
+
return /* @__PURE__ */ jsx230(HeaderFooterLayout, { header, headerHeight, children: main2 });
|
|
8396
8883
|
}
|
|
8397
8884
|
const main = variant === "shell" ? items[1] : items[0];
|
|
8398
|
-
return /* @__PURE__ */
|
|
8885
|
+
return /* @__PURE__ */ jsx230(Fragment19, { children: main });
|
|
8399
8886
|
}
|
|
8400
8887
|
function RootLayoutMobile({
|
|
8401
8888
|
variant,
|
|
@@ -8405,11 +8892,11 @@ function RootLayoutMobile({
|
|
|
8405
8892
|
}) {
|
|
8406
8893
|
if (variant === "header") {
|
|
8407
8894
|
const [header, main2] = items;
|
|
8408
|
-
return /* @__PURE__ */
|
|
8895
|
+
return /* @__PURE__ */ jsx230(HeaderFooterLayout, { header, headerHeight: mobileHeaderHeight, children: main2 });
|
|
8409
8896
|
}
|
|
8410
8897
|
if (variant === "shell") {
|
|
8411
8898
|
const [header, main2, footer] = items;
|
|
8412
|
-
return /* @__PURE__ */
|
|
8899
|
+
return /* @__PURE__ */ jsx230(
|
|
8413
8900
|
HeaderFooterLayout,
|
|
8414
8901
|
{
|
|
8415
8902
|
header,
|
|
@@ -8421,7 +8908,7 @@ function RootLayoutMobile({
|
|
|
8421
8908
|
);
|
|
8422
8909
|
}
|
|
8423
8910
|
const main = variant === "sidebar" ? items[1] : items[0];
|
|
8424
|
-
return /* @__PURE__ */
|
|
8911
|
+
return /* @__PURE__ */ jsx230(Fragment19, { children: main });
|
|
8425
8912
|
}
|
|
8426
8913
|
function RootLayout({
|
|
8427
8914
|
variant = "plain",
|
|
@@ -8438,10 +8925,10 @@ function RootLayout({
|
|
|
8438
8925
|
`[RootLayout] variant="${variant}" expects ${EXPECTED_CHILD_COUNT[variant]} children; received ${items.length}.`
|
|
8439
8926
|
);
|
|
8440
8927
|
}
|
|
8441
|
-
return /* @__PURE__ */
|
|
8928
|
+
return /* @__PURE__ */ jsx230("div", { className: [styles97.root, className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsx230(
|
|
8442
8929
|
ResponsiveSurface,
|
|
8443
8930
|
{
|
|
8444
|
-
web: /* @__PURE__ */
|
|
8931
|
+
web: /* @__PURE__ */ jsx230(
|
|
8445
8932
|
RootLayoutWeb,
|
|
8446
8933
|
{
|
|
8447
8934
|
variant,
|
|
@@ -8450,7 +8937,7 @@ function RootLayout({
|
|
|
8450
8937
|
headerHeight
|
|
8451
8938
|
}
|
|
8452
8939
|
),
|
|
8453
|
-
mobile: /* @__PURE__ */
|
|
8940
|
+
mobile: /* @__PURE__ */ jsx230(
|
|
8454
8941
|
RootLayoutMobile,
|
|
8455
8942
|
{
|
|
8456
8943
|
variant,
|
|
@@ -8465,7 +8952,7 @@ function RootLayout({
|
|
|
8465
8952
|
|
|
8466
8953
|
// src/components/PageLayout/PageLayout.tsx
|
|
8467
8954
|
import styles98 from "./PageLayout.module.css";
|
|
8468
|
-
import { jsx as
|
|
8955
|
+
import { jsx as jsx231, jsxs as jsxs173 } from "react/jsx-runtime";
|
|
8469
8956
|
var paddingClass3 = {
|
|
8470
8957
|
none: styles98.padNone,
|
|
8471
8958
|
sm: styles98.padSm,
|
|
@@ -8473,16 +8960,16 @@ var paddingClass3 = {
|
|
|
8473
8960
|
lg: styles98.padLg
|
|
8474
8961
|
};
|
|
8475
8962
|
function PageLayout({ header, padding = "none", children, className }) {
|
|
8476
|
-
return /* @__PURE__ */
|
|
8477
|
-
header && /* @__PURE__ */
|
|
8478
|
-
/* @__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 })
|
|
8479
8966
|
] });
|
|
8480
8967
|
}
|
|
8481
8968
|
|
|
8482
8969
|
// src/components/NavList/NavList.tsx
|
|
8483
8970
|
import { Fragment as Fragment20 } from "react";
|
|
8484
8971
|
import styles99 from "./NavList.module.css";
|
|
8485
|
-
import { Fragment as Fragment21, jsx as
|
|
8972
|
+
import { Fragment as Fragment21, jsx as jsx232, jsxs as jsxs174 } from "react/jsx-runtime";
|
|
8486
8973
|
function NavList({
|
|
8487
8974
|
groups,
|
|
8488
8975
|
variant,
|
|
@@ -8491,20 +8978,20 @@ function NavList({
|
|
|
8491
8978
|
className,
|
|
8492
8979
|
renderLink
|
|
8493
8980
|
}) {
|
|
8494
|
-
return /* @__PURE__ */
|
|
8981
|
+
return /* @__PURE__ */ jsx232(
|
|
8495
8982
|
"nav",
|
|
8496
8983
|
{
|
|
8497
8984
|
className: [styles99.nav, styles99[variant], density === "compact" && styles99.compact, className].filter(Boolean).join(" "),
|
|
8498
8985
|
"aria-label": ariaLabel,
|
|
8499
|
-
children: groups.map((group) => /* @__PURE__ */
|
|
8500
|
-
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 }),
|
|
8501
8988
|
group.items.map((item) => {
|
|
8502
8989
|
const isActive = variant === "static" && !!item.active;
|
|
8503
|
-
const rowContent = /* @__PURE__ */
|
|
8504
|
-
/* @__PURE__ */
|
|
8505
|
-
/* @__PURE__ */
|
|
8506
|
-
item.badge && /* @__PURE__ */
|
|
8507
|
-
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 })
|
|
8508
8995
|
] });
|
|
8509
8996
|
const linkProps = {
|
|
8510
8997
|
href: item.href,
|
|
@@ -8512,7 +8999,7 @@ function NavList({
|
|
|
8512
8999
|
"aria-current": isActive ? "page" : void 0,
|
|
8513
9000
|
children: rowContent
|
|
8514
9001
|
};
|
|
8515
|
-
return /* @__PURE__ */
|
|
9002
|
+
return /* @__PURE__ */ jsx232(Fragment20, { children: renderLink ? renderLink(item, linkProps) : /* @__PURE__ */ jsx232(
|
|
8516
9003
|
"a",
|
|
8517
9004
|
{
|
|
8518
9005
|
href: linkProps.href,
|
|
@@ -8571,7 +9058,7 @@ var THEME_PRESETS = {
|
|
|
8571
9058
|
|
|
8572
9059
|
// src/components/CopyButton/CopyButton.tsx
|
|
8573
9060
|
import { useState as useState32 } from "react";
|
|
8574
|
-
import { jsx as
|
|
9061
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
8575
9062
|
function CopyButton({
|
|
8576
9063
|
text,
|
|
8577
9064
|
label,
|
|
@@ -8589,12 +9076,12 @@ function CopyButton({
|
|
|
8589
9076
|
setState("failed");
|
|
8590
9077
|
}
|
|
8591
9078
|
}
|
|
8592
|
-
return /* @__PURE__ */
|
|
9079
|
+
return /* @__PURE__ */ jsx233(Button, { type: "button", variant, size, onClick: () => void copy(), children: state === "copied" ? copiedLabel : state === "failed" ? failedLabel : label });
|
|
8593
9080
|
}
|
|
8594
9081
|
|
|
8595
9082
|
// src/components/QrCode/QrCode.tsx
|
|
8596
9083
|
import styles100 from "./QrCode.module.css";
|
|
8597
|
-
import { jsx as
|
|
9084
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
8598
9085
|
var QUIET_ZONE = 2;
|
|
8599
9086
|
function QrCode({ modules, label }) {
|
|
8600
9087
|
const size = modules.length + QUIET_ZONE * 2;
|
|
@@ -8604,7 +9091,7 @@ function QrCode({ modules, label }) {
|
|
|
8604
9091
|
if (dark) path += `M${x + QUIET_ZONE} ${y + QUIET_ZONE}h1v1h-1z`;
|
|
8605
9092
|
});
|
|
8606
9093
|
});
|
|
8607
|
-
return /* @__PURE__ */
|
|
9094
|
+
return /* @__PURE__ */ jsx234("div", { className: styles100.qr, children: /* @__PURE__ */ jsx234(
|
|
8608
9095
|
"svg",
|
|
8609
9096
|
{
|
|
8610
9097
|
viewBox: `0 0 ${size} ${size}`,
|
|
@@ -8612,7 +9099,7 @@ function QrCode({ modules, label }) {
|
|
|
8612
9099
|
"aria-label": label,
|
|
8613
9100
|
shapeRendering: "crispEdges",
|
|
8614
9101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8615
|
-
children: /* @__PURE__ */
|
|
9102
|
+
children: /* @__PURE__ */ jsx234("path", { d: path })
|
|
8616
9103
|
}
|
|
8617
9104
|
) });
|
|
8618
9105
|
}
|