@gnome-ui/react 1.28.1 → 1.30.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.js CHANGED
@@ -2927,26 +2927,29 @@ function ui({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
2927
2927
  });
2928
2928
  return typeof document > "u" ? b : g(b, document.body);
2929
2929
  }
2930
- var di = {
2931
- sidebar: "_sidebar_kmj4b_3",
2932
- list: "_list_kmj4b_17",
2933
- item: "_item_kmj4b_28",
2934
- itemBtn: "_itemBtn_kmj4b_34",
2935
- active: "_active_kmj4b_60",
2936
- itemIcon: "_itemIcon_kmj4b_106",
2937
- itemLabel: "_itemLabel_kmj4b_119",
2938
- itemSuffix: "_itemSuffix_kmj4b_129",
2939
- count: "_count_kmj4b_136"
2940
- }, fi = a(null);
2941
- function pi() {
2942
- let e = l(fi);
2930
+ var K = {
2931
+ sidebar: "_sidebar_1hdq3_3",
2932
+ sidebarCollapsed: "_sidebarCollapsed_1hdq3_15",
2933
+ itemBtn: "_itemBtn_1hdq3_19",
2934
+ header: "_header_1hdq3_26",
2935
+ footer: "_footer_1hdq3_31",
2936
+ list: "_list_1hdq3_38",
2937
+ item: "_item_1hdq3_19",
2938
+ active: "_active_1hdq3_84",
2939
+ itemIcon: "_itemIcon_1hdq3_130",
2940
+ itemLabel: "_itemLabel_1hdq3_143",
2941
+ itemSuffix: "_itemSuffix_1hdq3_153",
2942
+ count: "_count_1hdq3_160"
2943
+ }, di = a(null);
2944
+ function fi() {
2945
+ let e = l(di);
2943
2946
  if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
2944
2947
  return e;
2945
2948
  }
2946
- function mi({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
2947
- let s = m(null);
2948
- function c(e) {
2949
- let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
2949
+ function pi({ value: e, onValueChange: r, "aria-label": i = "Views", collapsed: a = !1, header: o, footer: s, children: c, className: l, ...u }) {
2950
+ let d = m(null);
2951
+ function f(e) {
2952
+ let t = Array.from(d.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
2950
2953
  if (n === -1) return;
2951
2954
  let r = n;
2952
2955
  if (e.key === "ArrowDown" || e.key === "ArrowRight") r = (n + 1) % t.length;
@@ -2956,63 +2959,78 @@ function mi({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
2956
2959
  else return;
2957
2960
  e.preventDefault(), t[r].focus(), t[r].click();
2958
2961
  }
2959
- return /* @__PURE__ */ t(fi.Provider, {
2962
+ return /* @__PURE__ */ t(di.Provider, {
2960
2963
  value: {
2961
2964
  value: e,
2962
- onValueChange: n
2965
+ onValueChange: r,
2966
+ collapsed: a
2963
2967
  },
2964
- children: /* @__PURE__ */ t("nav", {
2965
- className: [di.sidebar, a].filter(Boolean).join(" "),
2966
- onKeyDown: c,
2967
- ...o,
2968
- children: /* @__PURE__ */ t("ul", {
2969
- ref: s,
2970
- role: "radiogroup",
2971
- "aria-label": r,
2972
- className: di.list,
2973
- children: i
2974
- })
2968
+ children: /* @__PURE__ */ n("nav", {
2969
+ className: [
2970
+ K.sidebar,
2971
+ a ? K.sidebarCollapsed : null,
2972
+ l
2973
+ ].filter(Boolean).join(" "),
2974
+ onKeyDown: f,
2975
+ ...u,
2976
+ children: [
2977
+ o && /* @__PURE__ */ t("div", {
2978
+ className: K.header,
2979
+ children: o
2980
+ }),
2981
+ /* @__PURE__ */ t("ul", {
2982
+ ref: d,
2983
+ role: "radiogroup",
2984
+ "aria-label": i,
2985
+ className: K.list,
2986
+ children: c
2987
+ }),
2988
+ s && /* @__PURE__ */ t("div", {
2989
+ className: K.footer,
2990
+ children: s
2991
+ })
2992
+ ]
2975
2993
  })
2976
2994
  });
2977
2995
  }
2978
2996
  //#endregion
2979
2997
  //#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
2980
- function hi({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
2981
- let { value: u, onValueChange: d } = pi(), f = u === e, p = o ?? a ?? null;
2998
+ function mi({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
2999
+ let { value: u, onValueChange: d, collapsed: f } = fi(), p = u === e, m = o ?? a ?? null;
2982
3000
  return /* @__PURE__ */ t("li", {
2983
- className: di.item,
3001
+ className: K.item,
2984
3002
  children: /* @__PURE__ */ n("button", {
2985
3003
  type: "button",
2986
3004
  role: "radio",
2987
- "aria-checked": f,
2988
- tabIndex: f ? 0 : -1,
3005
+ "aria-checked": p,
3006
+ tabIndex: p ? 0 : -1,
2989
3007
  disabled: s,
2990
3008
  onClick: () => d(e),
2991
3009
  className: [
2992
- di.itemBtn,
2993
- f ? di.active : null,
3010
+ K.itemBtn,
3011
+ p ? K.active : null,
2994
3012
  c
2995
3013
  ].filter(Boolean).join(" "),
2996
3014
  ...l,
2997
3015
  children: [
2998
3016
  i && /* @__PURE__ */ t("span", {
2999
- className: di.itemIcon,
3017
+ className: K.itemIcon,
3000
3018
  children: /* @__PURE__ */ t(I, {
3001
3019
  icon: i,
3002
3020
  size: "md",
3003
3021
  "aria-hidden": !0
3004
3022
  })
3005
3023
  }),
3006
- /* @__PURE__ */ t("span", {
3007
- className: di.itemLabel,
3024
+ !f && /* @__PURE__ */ t("span", {
3025
+ className: K.itemLabel,
3008
3026
  children: r
3009
3027
  }),
3010
- p != null && /* @__PURE__ */ t("span", {
3011
- className: di.itemSuffix,
3012
- children: typeof p == "number" ? /* @__PURE__ */ t("span", {
3013
- className: di.count,
3014
- children: p > 99 ? "99+" : p
3015
- }) : p
3028
+ !f && m != null && /* @__PURE__ */ t("span", {
3029
+ className: K.itemSuffix,
3030
+ children: typeof m == "number" ? /* @__PURE__ */ t("span", {
3031
+ className: K.count,
3032
+ children: m > 99 ? "99+" : m
3033
+ }) : m
3016
3034
  })
3017
3035
  ]
3018
3036
  })
@@ -3020,7 +3038,7 @@ function hi({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
3020
3038
  }
3021
3039
  //#endregion
3022
3040
  //#region src/components/BreakpointBin/BreakpointBin.tsx
3023
- function gi({ breakpoints: e, children: n, className: r, style: i, ...a }) {
3041
+ function hi({ breakpoints: e, children: n, className: r, style: i, ...a }) {
3024
3042
  let o = m(null), [s, c] = h({
3025
3043
  activeBreakpoint: null,
3026
3044
  width: 0
@@ -3050,7 +3068,7 @@ function gi({ breakpoints: e, children: n, className: r, style: i, ...a }) {
3050
3068
  children: n(s)
3051
3069
  });
3052
3070
  }
3053
- var _i = {
3071
+ var gi = {
3054
3072
  row: "_row_1ba2f_3",
3055
3073
  title: "_title_1ba2f_48",
3056
3074
  leading: "_leading_1ba2f_59",
@@ -3061,31 +3079,31 @@ var _i = {
3061
3079
  };
3062
3080
  //#endregion
3063
3081
  //#region src/components/ButtonRow/ButtonRow.tsx
3064
- function vi({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
3082
+ function _i({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
3065
3083
  return /* @__PURE__ */ n("button", {
3066
3084
  className: [
3067
- _i.row,
3068
- _i[r],
3085
+ gi.row,
3086
+ gi[r],
3069
3087
  o
3070
3088
  ].filter(Boolean).join(" "),
3071
3089
  ...s,
3072
3090
  children: [
3073
3091
  i && /* @__PURE__ */ t("span", {
3074
- className: _i.leading,
3092
+ className: gi.leading,
3075
3093
  children: i
3076
3094
  }),
3077
3095
  /* @__PURE__ */ t("span", {
3078
- className: _i.title,
3096
+ className: gi.title,
3079
3097
  children: e
3080
3098
  }),
3081
3099
  a && /* @__PURE__ */ t("span", {
3082
- className: _i.trailing,
3100
+ className: gi.trailing,
3083
3101
  children: a
3084
3102
  })
3085
3103
  ]
3086
3104
  });
3087
3105
  }
3088
- var yi = {
3106
+ var vi = {
3089
3107
  container: "_container_4kjnf_3",
3090
3108
  primary: "_primary_4kjnf_14",
3091
3109
  toggle: "_toggle_4kjnf_15",
@@ -3099,7 +3117,7 @@ var yi = {
3099
3117
  };
3100
3118
  //#endregion
3101
3119
  //#region src/components/SplitButton/SplitButton.tsx
3102
- function bi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: s = !1, onClick: l, className: d, ...f }) {
3120
+ function yi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: s = !1, onClick: l, className: d, ...f }) {
3103
3121
  let [p, _] = h(!1), [v, y] = h({}), b = m(null), x = m(null), S = m(null), C = c(() => _(!1), []), w = c(() => {
3104
3122
  if (!x.current || !S.current) return;
3105
3123
  let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
@@ -3129,15 +3147,15 @@ function bi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
3129
3147
  let T = (e) => {
3130
3148
  e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
3131
3149
  }, E = [
3132
- yi.container,
3133
- yi[i],
3150
+ vi.container,
3151
+ vi[i],
3134
3152
  d
3135
3153
  ].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
3136
3154
  ref: S,
3137
3155
  role: "dialog",
3138
3156
  "aria-label": o,
3139
3157
  tabIndex: -1,
3140
- className: [yi.dropdown, p ? yi.dropdownVisible : null].filter(Boolean).join(" "),
3158
+ className: [vi.dropdown, p ? vi.dropdownVisible : null].filter(Boolean).join(" "),
3141
3159
  style: Object.keys(v).length ? {
3142
3160
  ...v,
3143
3161
  position: "fixed"
@@ -3156,26 +3174,26 @@ function bi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
3156
3174
  className: E,
3157
3175
  children: [
3158
3176
  /* @__PURE__ */ t("button", {
3159
- className: yi.primary,
3177
+ className: vi.primary,
3160
3178
  disabled: s,
3161
3179
  onClick: l,
3162
3180
  ...f,
3163
3181
  children: r
3164
3182
  }),
3165
3183
  /* @__PURE__ */ t("span", {
3166
- className: yi.separator,
3184
+ className: vi.separator,
3167
3185
  "aria-hidden": "true"
3168
3186
  }),
3169
3187
  /* @__PURE__ */ t("button", {
3170
3188
  ref: x,
3171
- className: yi.toggle,
3189
+ className: vi.toggle,
3172
3190
  disabled: s,
3173
3191
  "aria-label": o,
3174
3192
  "aria-haspopup": "dialog",
3175
3193
  "aria-expanded": p,
3176
3194
  onClick: () => _((e) => !e),
3177
3195
  children: /* @__PURE__ */ t("svg", {
3178
- className: yi.chevron,
3196
+ className: vi.chevron,
3179
3197
  width: "16",
3180
3198
  height: "16",
3181
3199
  viewBox: "0 0 16 16",
@@ -3194,56 +3212,56 @@ function bi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
3194
3212
  ]
3195
3213
  }), p && (typeof document < "u" ? g(D, document.body) : D)] });
3196
3214
  }
3197
- var xi = {
3215
+ var bi = {
3198
3216
  toolbar: "_toolbar_1avgl_2",
3199
3217
  spacer: "_spacer_1avgl_20"
3200
3218
  };
3201
3219
  //#endregion
3202
3220
  //#region src/components/Toolbar/Toolbar.tsx
3203
- function Si({ children: e, className: n, ...r }) {
3221
+ function xi({ children: e, className: n, ...r }) {
3204
3222
  return /* @__PURE__ */ t("div", {
3205
- className: [xi.toolbar, n].filter(Boolean).join(" "),
3223
+ className: [bi.toolbar, n].filter(Boolean).join(" "),
3206
3224
  ...r,
3207
3225
  children: e
3208
3226
  });
3209
3227
  }
3210
3228
  //#endregion
3211
3229
  //#region src/components/Toolbar/Spacer.tsx
3212
- function Ci({ className: e, ...n }) {
3230
+ function Si({ className: e, ...n }) {
3213
3231
  return /* @__PURE__ */ t("div", {
3214
3232
  "aria-hidden": "true",
3215
- className: [xi.spacer, e].filter(Boolean).join(" "),
3233
+ className: [bi.spacer, e].filter(Boolean).join(" "),
3216
3234
  ...n
3217
3235
  });
3218
3236
  }
3219
- var wi = {
3237
+ var Ci = {
3220
3238
  linked: "_linked_1tser_3",
3221
3239
  vertical: "_vertical_1tser_9"
3222
3240
  };
3223
3241
  //#endregion
3224
3242
  //#region src/components/LinkedGroup/LinkedGroup.tsx
3225
- function Ti({ children: e, vertical: n = !1, className: r, ...i }) {
3243
+ function wi({ children: e, vertical: n = !1, className: r, ...i }) {
3226
3244
  return /* @__PURE__ */ t("div", {
3227
3245
  className: [
3228
- wi.linked,
3229
- n ? wi.vertical : null,
3246
+ Ci.linked,
3247
+ n ? Ci.vertical : null,
3230
3248
  r
3231
3249
  ].filter(Boolean).join(" "),
3232
3250
  ...i,
3233
3251
  children: e
3234
3252
  });
3235
3253
  }
3236
- var Ei = { frame: "_frame_1bq7b_2" };
3254
+ var Ti = { frame: "_frame_1bq7b_2" };
3237
3255
  //#endregion
3238
3256
  //#region src/components/Frame/Frame.tsx
3239
- function Di({ children: e, className: n, ...r }) {
3257
+ function Ei({ children: e, className: n, ...r }) {
3240
3258
  return /* @__PURE__ */ t("div", {
3241
- className: [Ei.frame, n].filter(Boolean).join(" "),
3259
+ className: [Ti.frame, n].filter(Boolean).join(" "),
3242
3260
  ...r,
3243
3261
  children: e
3244
3262
  });
3245
3263
  }
3246
- var K = {
3264
+ var q = {
3247
3265
  expanderRow: "_expanderRow_1wh8c_3",
3248
3266
  header: "_header_1wh8c_11",
3249
3267
  leading: "_leading_1wh8c_55",
@@ -3261,48 +3279,48 @@ var K = {
3261
3279
  };
3262
3280
  //#endregion
3263
3281
  //#region src/components/ExpanderRow/ExpanderRow.tsx
3264
- function Oi({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: u, className: f, ...p }) {
3282
+ function Di({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: u, className: f, ...p }) {
3265
3283
  let m = c !== void 0, [g, _] = h(l), v = m ? c : g, y = d(), b = d(), x = () => {
3266
3284
  let e = !v;
3267
3285
  m || _(e), u?.(e);
3268
3286
  }, S = r.toArray(s).filter(Boolean);
3269
3287
  return /* @__PURE__ */ n("div", {
3270
3288
  className: [
3271
- K.expanderRow,
3272
- v ? K.expanded : null,
3289
+ q.expanderRow,
3290
+ v ? q.expanded : null,
3273
3291
  f
3274
3292
  ].filter(Boolean).join(" "),
3275
3293
  ...p,
3276
3294
  children: [/* @__PURE__ */ n("button", {
3277
3295
  id: b,
3278
- className: K.header,
3296
+ className: q.header,
3279
3297
  "aria-expanded": v,
3280
3298
  "aria-controls": y,
3281
3299
  onClick: x,
3282
3300
  children: [
3283
3301
  a && /* @__PURE__ */ t("span", {
3284
- className: K.leading,
3302
+ className: q.leading,
3285
3303
  children: a
3286
3304
  }),
3287
3305
  /* @__PURE__ */ n("span", {
3288
- className: K.content,
3306
+ className: q.content,
3289
3307
  children: [/* @__PURE__ */ t("span", {
3290
- className: K.title,
3308
+ className: q.title,
3291
3309
  children: e
3292
3310
  }), i && /* @__PURE__ */ t("span", {
3293
- className: K.subtitle,
3311
+ className: q.subtitle,
3294
3312
  children: i
3295
3313
  })]
3296
3314
  }),
3297
3315
  o && /* @__PURE__ */ t("span", {
3298
- className: K.trailing,
3316
+ className: q.trailing,
3299
3317
  children: o
3300
3318
  }),
3301
3319
  /* @__PURE__ */ t("span", {
3302
- className: [K.chevronWrap, v ? K.chevronOpen : null].filter(Boolean).join(" "),
3320
+ className: [q.chevronWrap, v ? q.chevronOpen : null].filter(Boolean).join(" "),
3303
3321
  "aria-hidden": "true",
3304
3322
  children: /* @__PURE__ */ t("svg", {
3305
- className: K.chevron,
3323
+ className: q.chevron,
3306
3324
  width: "16",
3307
3325
  height: "16",
3308
3326
  viewBox: "0 0 16 16",
@@ -3322,18 +3340,18 @@ function Oi({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
3322
3340
  id: y,
3323
3341
  role: "region",
3324
3342
  "aria-labelledby": b,
3325
- className: K.panel,
3343
+ className: q.panel,
3326
3344
  children: /* @__PURE__ */ t("div", {
3327
- className: K.panelInner,
3345
+ className: q.panelInner,
3328
3346
  children: S.map((e, r) => /* @__PURE__ */ n("div", {
3329
- className: K.childItem,
3347
+ className: q.childItem,
3330
3348
  children: [/* @__PURE__ */ t(se, { "aria-hidden": "true" }), e]
3331
3349
  }, r))
3332
3350
  })
3333
3351
  })]
3334
3352
  });
3335
3353
  }
3336
- var ki = {
3354
+ var Oi = {
3337
3355
  switcher: "_switcher_2tknm_3",
3338
3356
  item: "_item_2tknm_10",
3339
3357
  iconOnly: "_iconOnly_2tknm_38",
@@ -3343,13 +3361,13 @@ var ki = {
3343
3361
  active: "_active_2tknm_68",
3344
3362
  flat: "_flat_2tknm_121",
3345
3363
  round: "_round_2tknm_169"
3346
- }, Ai = a(null);
3347
- function ji() {
3348
- let e = l(Ai);
3364
+ }, ki = a(null);
3365
+ function Ai() {
3366
+ let e = l(ki);
3349
3367
  if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
3350
3368
  return e;
3351
3369
  }
3352
- function Mi({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
3370
+ function ji({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
3353
3371
  let c = m(null);
3354
3372
  function l(e) {
3355
3373
  let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
@@ -3362,7 +3380,7 @@ function Mi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
3362
3380
  else return;
3363
3381
  e.preventDefault(), t[r].focus(), t[r].click();
3364
3382
  }
3365
- return /* @__PURE__ */ t(Ai.Provider, {
3383
+ return /* @__PURE__ */ t(ki.Provider, {
3366
3384
  value: {
3367
3385
  value: e,
3368
3386
  onValueChange: n
@@ -3373,8 +3391,8 @@ function Mi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
3373
3391
  "aria-label": i,
3374
3392
  onKeyDown: l,
3375
3393
  className: [
3376
- ki.switcher,
3377
- ki[r],
3394
+ Oi.switcher,
3395
+ Oi[r],
3378
3396
  o
3379
3397
  ].filter(Boolean).join(" "),
3380
3398
  ...s,
@@ -3384,8 +3402,8 @@ function Mi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
3384
3402
  }
3385
3403
  //#endregion
3386
3404
  //#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
3387
- function Ni({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
3388
- let { value: c, onValueChange: l } = ji(), u = c === e, d = i && !r;
3405
+ function Mi({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
3406
+ let { value: c, onValueChange: l } = Ai(), u = c === e, d = i && !r;
3389
3407
  return /* @__PURE__ */ n("button", {
3390
3408
  type: "button",
3391
3409
  role: "radio",
@@ -3394,26 +3412,26 @@ function Ni({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
3394
3412
  disabled: a,
3395
3413
  onClick: () => l(e),
3396
3414
  className: [
3397
- ki.item,
3398
- u ? ki.active : null,
3399
- d ? ki.iconOnly : null,
3415
+ Oi.item,
3416
+ u ? Oi.active : null,
3417
+ d ? Oi.iconOnly : null,
3400
3418
  o
3401
3419
  ].filter(Boolean).join(" "),
3402
3420
  ...s,
3403
3421
  children: [i && /* @__PURE__ */ t("span", {
3404
- className: ki.itemIcon,
3422
+ className: Oi.itemIcon,
3405
3423
  children: /* @__PURE__ */ t(I, {
3406
3424
  icon: i,
3407
3425
  size: "md",
3408
3426
  "aria-hidden": !0
3409
3427
  })
3410
3428
  }), r && /* @__PURE__ */ t("span", {
3411
- className: ki.itemLabel,
3429
+ className: Oi.itemLabel,
3412
3430
  children: r
3413
3431
  })]
3414
3432
  });
3415
3433
  }
3416
- var Pi = {
3434
+ var Ni = {
3417
3435
  row: "_row_jl3bc_3",
3418
3436
  disabled: "_disabled_jl3bc_41",
3419
3437
  leading: "_leading_jl3bc_49",
@@ -3426,7 +3444,7 @@ var Pi = {
3426
3444
  };
3427
3445
  //#endregion
3428
3446
  //#region src/components/SwitchRow/SwitchRow.tsx
3429
- function Fi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
3447
+ function Pi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
3430
3448
  let p = a !== void 0, [m, g] = h(o), _ = p ? a : m, v = d(), y = (e) => {
3431
3449
  let t = !_;
3432
3450
  p || g(t), s?.(t), u?.(e);
@@ -3437,37 +3455,37 @@ function Fi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
3437
3455
  "aria-labelledby": v,
3438
3456
  disabled: c,
3439
3457
  className: [
3440
- Pi.row,
3441
- c ? Pi.disabled : null,
3458
+ Ni.row,
3459
+ c ? Ni.disabled : null,
3442
3460
  l
3443
3461
  ].filter(Boolean).join(" "),
3444
3462
  onClick: y,
3445
3463
  ...f,
3446
3464
  children: [
3447
3465
  i && /* @__PURE__ */ t("span", {
3448
- className: Pi.leading,
3466
+ className: Ni.leading,
3449
3467
  children: i
3450
3468
  }),
3451
3469
  /* @__PURE__ */ n("span", {
3452
- className: Pi.content,
3470
+ className: Ni.content,
3453
3471
  id: v,
3454
3472
  children: [/* @__PURE__ */ t("span", {
3455
- className: Pi.title,
3473
+ className: Ni.title,
3456
3474
  children: e
3457
3475
  }), r && /* @__PURE__ */ t("span", {
3458
- className: Pi.subtitle,
3476
+ className: Ni.subtitle,
3459
3477
  children: r
3460
3478
  })]
3461
3479
  }),
3462
3480
  /* @__PURE__ */ t("span", {
3463
- className: Pi.switchTrack,
3481
+ className: Ni.switchTrack,
3464
3482
  "aria-hidden": "true",
3465
- children: /* @__PURE__ */ t("span", { className: [Pi.switchThumb, _ ? Pi.switchThumbOn : null].filter(Boolean).join(" ") })
3483
+ children: /* @__PURE__ */ t("span", { className: [Ni.switchThumb, _ ? Ni.switchThumbOn : null].filter(Boolean).join(" ") })
3466
3484
  })
3467
3485
  ]
3468
3486
  });
3469
3487
  }
3470
- var q = {
3488
+ var J = {
3471
3489
  row: "_row_1dije_3",
3472
3490
  disabled: "_disabled_1dije_41",
3473
3491
  checkboxWrap: "_checkboxWrap_1dije_49",
@@ -3481,7 +3499,7 @@ var q = {
3481
3499
  };
3482
3500
  //#endregion
3483
3501
  //#region src/components/CheckRow/CheckRow.tsx
3484
- function Ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
3502
+ function Fi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
3485
3503
  let p = a !== void 0, [m, g] = h(o), _ = p ? a : m, v = d(), y = (e) => {
3486
3504
  let t = !_;
3487
3505
  p || g(t), s?.(t), u?.(e);
@@ -3492,20 +3510,20 @@ function Ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
3492
3510
  "aria-labelledby": v,
3493
3511
  disabled: c,
3494
3512
  className: [
3495
- q.row,
3496
- c ? q.disabled : null,
3513
+ J.row,
3514
+ c ? J.disabled : null,
3497
3515
  l
3498
3516
  ].filter(Boolean).join(" "),
3499
3517
  onClick: y,
3500
3518
  ...f,
3501
3519
  children: [
3502
3520
  /* @__PURE__ */ t("span", {
3503
- className: q.checkboxWrap,
3521
+ className: J.checkboxWrap,
3504
3522
  "aria-hidden": "true",
3505
3523
  children: /* @__PURE__ */ t("span", {
3506
- className: [q.checkbox, _ ? q.checkboxChecked : null].filter(Boolean).join(" "),
3524
+ className: [J.checkbox, _ ? J.checkboxChecked : null].filter(Boolean).join(" "),
3507
3525
  children: _ && /* @__PURE__ */ t("svg", {
3508
- className: q.checkmark,
3526
+ className: J.checkmark,
3509
3527
  width: "12",
3510
3528
  height: "12",
3511
3529
  viewBox: "0 0 12 12",
@@ -3522,17 +3540,17 @@ function Ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
3522
3540
  })
3523
3541
  }),
3524
3542
  i && /* @__PURE__ */ t("span", {
3525
- className: q.leading,
3543
+ className: J.leading,
3526
3544
  children: i
3527
3545
  }),
3528
3546
  /* @__PURE__ */ n("span", {
3529
- className: q.content,
3547
+ className: J.content,
3530
3548
  id: v,
3531
3549
  children: [/* @__PURE__ */ t("span", {
3532
- className: q.title,
3550
+ className: J.title,
3533
3551
  children: e
3534
3552
  }), r && /* @__PURE__ */ t("span", {
3535
- className: q.subtitle,
3553
+ className: J.subtitle,
3536
3554
  children: r
3537
3555
  })]
3538
3556
  })
@@ -3541,35 +3559,35 @@ function Ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
3541
3559
  }
3542
3560
  //#endregion
3543
3561
  //#region src/components/ComboRow/ComboRow.module.css
3544
- var Li = "_row_46mn8_3", Ri = "_disabled_46mn8_16", zi = "_leading_46mn8_23", Bi = "_content_46mn8_32", Vi = "_title_46mn8_40", Hi = "_subtitle_46mn8_51", Ui = "_comboWrap_46mn8_65", Wi = "_trigger_46mn8_73", Gi = "_triggerOpen_46mn8_126", Ki = "_triggerLabel_46mn8_136", qi = "_placeholder_46mn8_144", Ji = "_chevron_46mn8_150", Yi = "_chevronOpen_46mn8_157", Xi = "_list_46mn8_163", Zi = "_listDown_46mn8_192", Qi = "_listUp_46mn8_196", $i = "_option_46mn8_208", ea = "_optionActive_46mn8_225", ta = "_optionSelected_46mn8_229", na = "_optionDisabled_46mn8_233", ra = "_optionLabel_46mn8_239", ia = "_checkIcon_46mn8_247", J = {
3545
- row: Li,
3546
- disabled: Ri,
3547
- leading: zi,
3548
- content: Bi,
3549
- title: Vi,
3550
- subtitle: Hi,
3551
- comboWrap: Ui,
3552
- trigger: Wi,
3553
- triggerOpen: Gi,
3554
- triggerLabel: Ki,
3555
- placeholder: qi,
3556
- chevron: Ji,
3557
- chevronOpen: Yi,
3558
- list: Xi,
3562
+ var Ii = "_row_46mn8_3", Li = "_disabled_46mn8_16", Ri = "_leading_46mn8_23", zi = "_content_46mn8_32", Bi = "_title_46mn8_40", Vi = "_subtitle_46mn8_51", Hi = "_comboWrap_46mn8_65", Ui = "_trigger_46mn8_73", Wi = "_triggerOpen_46mn8_126", Gi = "_triggerLabel_46mn8_136", Ki = "_placeholder_46mn8_144", qi = "_chevron_46mn8_150", Ji = "_chevronOpen_46mn8_157", Yi = "_list_46mn8_163", Xi = "_listDown_46mn8_192", Zi = "_listUp_46mn8_196", Qi = "_option_46mn8_208", $i = "_optionActive_46mn8_225", ea = "_optionSelected_46mn8_229", ta = "_optionDisabled_46mn8_233", na = "_optionLabel_46mn8_239", ra = "_checkIcon_46mn8_247", Y = {
3563
+ row: Ii,
3564
+ disabled: Li,
3565
+ leading: Ri,
3566
+ content: zi,
3567
+ title: Bi,
3568
+ subtitle: Vi,
3569
+ comboWrap: Hi,
3570
+ trigger: Ui,
3571
+ triggerOpen: Wi,
3572
+ triggerLabel: Gi,
3573
+ placeholder: Ki,
3574
+ chevron: qi,
3575
+ chevronOpen: Ji,
3576
+ list: Yi,
3559
3577
  "list-in": "_list-in_46mn8_1",
3560
- listDown: Zi,
3561
- listUp: Qi,
3578
+ listDown: Xi,
3579
+ listUp: Zi,
3562
3580
  "list-in-up": "_list-in-up_46mn8_1",
3563
- option: $i,
3564
- optionActive: ea,
3565
- optionSelected: ta,
3566
- optionDisabled: na,
3567
- optionLabel: ra,
3568
- checkIcon: ia
3581
+ option: Qi,
3582
+ optionActive: $i,
3583
+ optionSelected: ea,
3584
+ optionDisabled: ta,
3585
+ optionLabel: na,
3586
+ checkIcon: ra
3569
3587
  };
3570
3588
  //#endregion
3571
3589
  //#region src/components/ComboRow/ComboRow.tsx
3572
- function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: s, onValueChange: l, disabled: f = !1, className: p, ...g }) {
3590
+ function ia({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: s, onValueChange: l, disabled: f = !1, className: p, ...g }) {
3573
3591
  let _ = o !== void 0, [v, y] = h(s), b = _ ? o : v, [x, S] = h(!1), [C, w] = h(-1), [T, E] = h(!1), D = d(), O = d(), k = m(null), A = m(null), j = a.find((e) => e.value === b), M = c(() => {
3574
3592
  if (!k.current) return;
3575
3593
  let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
@@ -3658,28 +3676,28 @@ function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
3658
3676
  ]);
3659
3677
  return /* @__PURE__ */ n("div", {
3660
3678
  className: [
3661
- J.row,
3662
- f ? J.disabled : null,
3679
+ Y.row,
3680
+ f ? Y.disabled : null,
3663
3681
  p
3664
3682
  ].filter(Boolean).join(" "),
3665
3683
  ...g,
3666
3684
  children: [
3667
3685
  i && /* @__PURE__ */ t("span", {
3668
- className: J.leading,
3686
+ className: Y.leading,
3669
3687
  children: i
3670
3688
  }),
3671
3689
  /* @__PURE__ */ n("span", {
3672
- className: J.content,
3690
+ className: Y.content,
3673
3691
  children: [/* @__PURE__ */ t("span", {
3674
- className: J.title,
3692
+ className: Y.title,
3675
3693
  children: e
3676
3694
  }), r && /* @__PURE__ */ t("span", {
3677
- className: J.subtitle,
3695
+ className: Y.subtitle,
3678
3696
  children: r
3679
3697
  })]
3680
3698
  }),
3681
3699
  /* @__PURE__ */ n("div", {
3682
- className: J.comboWrap,
3700
+ className: Y.comboWrap,
3683
3701
  children: [/* @__PURE__ */ n("button", {
3684
3702
  ref: k,
3685
3703
  id: D,
@@ -3690,14 +3708,14 @@ function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
3690
3708
  "aria-controls": O,
3691
3709
  "aria-activedescendant": x && C >= 0 ? `${O}-opt-${C}` : void 0,
3692
3710
  disabled: f,
3693
- className: [J.trigger, x ? J.triggerOpen : null].filter(Boolean).join(" "),
3711
+ className: [Y.trigger, x ? Y.triggerOpen : null].filter(Boolean).join(" "),
3694
3712
  onClick: () => x ? P() : N(),
3695
3713
  onKeyDown: ee,
3696
3714
  children: [/* @__PURE__ */ t("span", {
3697
- className: [J.triggerLabel, j ? null : J.placeholder].filter(Boolean).join(" "),
3715
+ className: [Y.triggerLabel, j ? null : Y.placeholder].filter(Boolean).join(" "),
3698
3716
  children: j?.label ?? "—"
3699
3717
  }), /* @__PURE__ */ t("svg", {
3700
- className: [J.chevron, x ? J.chevronOpen : null].filter(Boolean).join(" "),
3718
+ className: [Y.chevron, x ? Y.chevronOpen : null].filter(Boolean).join(" "),
3701
3719
  width: "16",
3702
3720
  height: "16",
3703
3721
  viewBox: "0 0 16 16",
@@ -3718,7 +3736,7 @@ function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
3718
3736
  role: "listbox",
3719
3737
  "aria-labelledby": D,
3720
3738
  tabIndex: -1,
3721
- className: [J.list, T ? J.listUp : J.listDown].filter(Boolean).join(" "),
3739
+ className: [Y.list, T ? Y.listUp : Y.listDown].filter(Boolean).join(" "),
3722
3740
  onKeyDown: te,
3723
3741
  children: a.map((e, r) => /* @__PURE__ */ n("li", {
3724
3742
  id: `${O}-opt-${r}`,
@@ -3726,15 +3744,15 @@ function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
3726
3744
  "aria-selected": e.value === b,
3727
3745
  "aria-disabled": e.disabled,
3728
3746
  className: [
3729
- J.option,
3730
- e.value === b ? J.optionSelected : null,
3731
- r === C ? J.optionActive : null,
3732
- e.disabled ? J.optionDisabled : null
3747
+ Y.option,
3748
+ e.value === b ? Y.optionSelected : null,
3749
+ r === C ? Y.optionActive : null,
3750
+ e.disabled ? Y.optionDisabled : null
3733
3751
  ].filter(Boolean).join(" "),
3734
3752
  onMouseEnter: () => !e.disabled && w(r),
3735
3753
  onClick: () => F(e),
3736
3754
  children: [/* @__PURE__ */ t("span", {
3737
- className: J.optionLabel,
3755
+ className: Y.optionLabel,
3738
3756
  children: e.label
3739
3757
  }), e.value === b && /* @__PURE__ */ t("svg", {
3740
3758
  width: "16",
@@ -3742,7 +3760,7 @@ function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
3742
3760
  viewBox: "0 0 16 16",
3743
3761
  "aria-hidden": "true",
3744
3762
  focusable: "false",
3745
- className: J.checkIcon,
3763
+ className: Y.checkIcon,
3746
3764
  children: /* @__PURE__ */ t("path", {
3747
3765
  d: "M3 8l4 4 6-6",
3748
3766
  fill: "none",
@@ -3758,7 +3776,7 @@ function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
3758
3776
  ]
3759
3777
  });
3760
3778
  }
3761
- var Y = {
3779
+ var aa = {
3762
3780
  row: "_row_1kogj_3",
3763
3781
  focused: "_focused_1kogj_16",
3764
3782
  disabled: "_disabled_1kogj_25",
@@ -3776,27 +3794,27 @@ function oa({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
3776
3794
  let g = d(), _ = u ?? g, v = r !== void 0, [y, b] = h(String(i)), x = v ? String(r) : y, [S, C] = h(!1), w = m(null), T = S || x.length > 0;
3777
3795
  return /* @__PURE__ */ n("div", {
3778
3796
  className: [
3779
- Y.row,
3780
- S ? Y.focused : null,
3781
- c ? Y.disabled : null,
3797
+ aa.row,
3798
+ S ? aa.focused : null,
3799
+ c ? aa.disabled : null,
3782
3800
  l
3783
3801
  ].filter(Boolean).join(" "),
3784
3802
  onClick: () => w.current?.focus(),
3785
3803
  children: [
3786
3804
  o && /* @__PURE__ */ t("span", {
3787
- className: Y.leading,
3805
+ className: aa.leading,
3788
3806
  children: o
3789
3807
  }),
3790
3808
  /* @__PURE__ */ n("span", {
3791
- className: Y.fieldWrap,
3809
+ className: aa.fieldWrap,
3792
3810
  children: [/* @__PURE__ */ t("label", {
3793
3811
  htmlFor: _,
3794
- className: [Y.label, T ? Y.labelFloated : null].filter(Boolean).join(" "),
3812
+ className: [aa.label, T ? aa.labelFloated : null].filter(Boolean).join(" "),
3795
3813
  children: e
3796
3814
  }), /* @__PURE__ */ t("input", {
3797
3815
  ref: w,
3798
3816
  id: _,
3799
- className: [Y.input, T ? Y.inputFloated : null].filter(Boolean).join(" "),
3817
+ className: [aa.input, T ? aa.inputFloated : null].filter(Boolean).join(" "),
3800
3818
  value: x,
3801
3819
  disabled: c,
3802
3820
  onFocus: () => C(!0),
@@ -3808,7 +3826,7 @@ function oa({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
3808
3826
  })]
3809
3827
  }),
3810
3828
  s && /* @__PURE__ */ t("span", {
3811
- className: Y.trailing,
3829
+ className: aa.trailing,
3812
3830
  children: s
3813
3831
  })
3814
3832
  ]
@@ -5090,6 +5108,6 @@ function Mo({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
5090
5108
  });
5091
5109
  }
5092
5110
  //#endregion
5093
- export { Xn as AboutDialog, Jt as ActionRow, ae as Avatar, Pe as Badge, Oe as Banner, La as Bin, v as Blockquote, Na as BottomSheet, zr as Box, Xt as BoxedList, gi as BreakpointBin, b as Button, za as ButtonContent, vi as ButtonRow, P as Card, Ia as Carousel, Pa as CarouselIndicatorDots, Fa as CarouselIndicatorLines, Ii as CheckRow, de as Checkbox, Ur as Chip, Dr as Clamp, Mo as ColumnView, aa as ComboRow, ko as ContributionGraph, Ie as CountDownTimer, Sn as Dialog, hr as Dropdown, oa as EntryRow, Oi as ExpanderRow, Me as Footer, Di as Frame, Je as GNOME_BREAKPOINTS, Ae as HeaderBar, I as Icon, Mi as InlineViewSwitcher, Ni as InlineViewSwitcherItem, Nr as Link, Ti as LinkedGroup, Ca as NavigationPage, Or as NavigationSplitView, wa as NavigationView, kr as OverlaySplitView, ca as PasswordEntryRow, yo as PathBar, Tr as Popover, go as PreferencesDialog, Ja as PreferencesGroup, Xa as PreferencesPage, _e as ProgressBar, he as RadioButton, Ge as SearchBar, se as Separator, Ha as ShortcutLabel, ui as ShortcutsDialog, Mt as Sidebar, Dt as SidebarCollapsedContext, zt as SidebarItem, Pt as SidebarSection, br as Slider, Ci as Spacer, Ut as SpinButton, fa as SpinRow, ee as Spinner, bi as SplitButton, qe as StatusPage, le as Switch, Fi as SwitchRow, Wt as TabBar, Gt as TabItem, Kt as TabPanel, A as Text, pe as TextField, _o as Timeline, un as Toast, dn as Toaster, Lr as ToggleGroup, Rr as ToggleGroupItem, Si as Toolbar, Wa as ToolbarView, Rt as Tooltip, Qt as ViewSwitcher, jr as ViewSwitcherBar, $t as ViewSwitcherItem, mi as ViewSwitcherSidebar, hi as ViewSwitcherSidebarItem, Ka as WindowTitle, Vr as WrapBox, Ye as useBreakpoint, Sa as useNavigation, Ot as useSidebarCollapsed };
5111
+ export { Xn as AboutDialog, Jt as ActionRow, ae as Avatar, Pe as Badge, Oe as Banner, La as Bin, v as Blockquote, Na as BottomSheet, zr as Box, Xt as BoxedList, hi as BreakpointBin, b as Button, za as ButtonContent, _i as ButtonRow, P as Card, Ia as Carousel, Pa as CarouselIndicatorDots, Fa as CarouselIndicatorLines, Fi as CheckRow, de as Checkbox, Ur as Chip, Dr as Clamp, Mo as ColumnView, ia as ComboRow, ko as ContributionGraph, Ie as CountDownTimer, Sn as Dialog, hr as Dropdown, oa as EntryRow, Di as ExpanderRow, Me as Footer, Ei as Frame, Je as GNOME_BREAKPOINTS, Ae as HeaderBar, I as Icon, ji as InlineViewSwitcher, Mi as InlineViewSwitcherItem, Nr as Link, wi as LinkedGroup, Ca as NavigationPage, Or as NavigationSplitView, wa as NavigationView, kr as OverlaySplitView, ca as PasswordEntryRow, yo as PathBar, Tr as Popover, go as PreferencesDialog, Ja as PreferencesGroup, Xa as PreferencesPage, _e as ProgressBar, he as RadioButton, Ge as SearchBar, se as Separator, Ha as ShortcutLabel, ui as ShortcutsDialog, Mt as Sidebar, Dt as SidebarCollapsedContext, zt as SidebarItem, Pt as SidebarSection, br as Slider, Si as Spacer, Ut as SpinButton, fa as SpinRow, ee as Spinner, yi as SplitButton, qe as StatusPage, le as Switch, Pi as SwitchRow, Wt as TabBar, Gt as TabItem, Kt as TabPanel, A as Text, pe as TextField, _o as Timeline, un as Toast, dn as Toaster, Lr as ToggleGroup, Rr as ToggleGroupItem, xi as Toolbar, Wa as ToolbarView, Rt as Tooltip, Qt as ViewSwitcher, jr as ViewSwitcherBar, $t as ViewSwitcherItem, pi as ViewSwitcherSidebar, mi as ViewSwitcherSidebarItem, Ka as WindowTitle, Vr as WrapBox, Ye as useBreakpoint, Sa as useNavigation, Ot as useSidebarCollapsed };
5094
5112
 
5095
5113
  //# sourceMappingURL=index.js.map