@bfrs/agentic-components 0.7.6 → 0.7.7

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.
@@ -1,21 +1,21 @@
1
1
  import { jsxs as s, jsx as r, Fragment as ye } from "react/jsx-runtime";
2
- import { Root as xe, Portal as Se, Overlay as xt, Content as St, Title as Tt, Description as _t } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
- import { Root as Rt, Trigger as Ct, Portal as kt, Content as zt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
- import { ArrowCounterClockwise as At } from "../../../node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js";
5
- import { BookmarkSimple as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
6
- import { CaretDown as Vt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
7
- import { DotsThreeVertical as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
8
- import { PencilSimple as Ot } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
2
+ import { Root as xe, Portal as Se, Overlay as yt, Content as xt, Title as St, Description as Tt } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
+ import { Root as _t, Trigger as Rt, Portal as Ct, Content as kt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
+ import { ArrowCounterClockwise as zt } from "../../../node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js";
5
+ import { BookmarkSimple as At } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
6
+ import { CaretDown as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
7
+ import { DotsThreeVertical as Vt } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
8
+ import { PencilSimple as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
9
9
  import { Star as le } from "../../../node_modules/@phosphor-icons/react/dist/csr/Star.es.js";
10
- import { Trash as Lt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
- import { useRef as k, useMemo as ie, useState as f, useId as Ht, useEffect as E, useCallback as F } from "react";
10
+ import { Trash as Ot } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
+ import { useRef as k, useMemo as ie, useState as f, useId as Lt, useEffect as E, useCallback as F } from "react";
12
12
  import i from "@emotion/styled";
13
- import { IconButton as Dt, Button as j } from "../../primitives/Button/Button.js";
14
- import { twRing as N, twTransform as We, kfContentIn as Pt, kfOverlayIn as Bt, kfModalContentIn as Et } from "../../../lib/emotionTw.js";
15
- import { floatingCollisionPadding as Ft } from "../../ui/overlays/overlayPositioning.js";
16
- import { createTableViewSelectorStore as jt } from "./viewStore.js";
13
+ import { IconButton as Ht, Button as j } from "../../primitives/Button/Button.js";
14
+ import { twRing as N, twTransform as We, kfContentIn as Dt, kfOverlayIn as Pt, kfModalContentIn as Bt } from "../../../lib/emotionTw.js";
15
+ import { floatingCollisionPadding as Et } from "../../ui/overlays/overlayPositioning.js";
16
+ import { createTableViewSelectorStore as Ft } from "./viewStore.js";
17
17
  import { BfrsPortalScope as ae } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
18
- import { ActionMenu as Nt } from "../../navigation/ActionMenu/ActionMenu.js";
18
+ import { ActionMenu as jt } from "../../navigation/ActionMenu/ActionMenu.js";
19
19
  const z = {
20
20
  "--tw-text-opacity": "1",
21
21
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
@@ -34,12 +34,12 @@ const z = {
34
34
  }, se = {
35
35
  "--tw-border-opacity": "1",
36
36
  borderColor: "hsl(var(--bfrs-color-border) / var(--tw-border-opacity, 1))"
37
- }, Mt = /* @__PURE__ */ i("div", {
37
+ }, Nt = /* @__PURE__ */ i("div", {
38
38
  label: "AgenticTableViewSelector-root"
39
39
  })({
40
40
  display: "inline-flex",
41
41
  minWidth: "0px"
42
- }), Kt = /* @__PURE__ */ i("button", {
42
+ }), Mt = /* @__PURE__ */ i("button", {
43
43
  label: "AgenticTableViewSelector-trigger",
44
44
  shouldForwardProp: (n) => n !== "ownerState"
45
45
  })(({ ownerState: n }) => [
@@ -77,7 +77,7 @@ const z = {
77
77
  borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))"
78
78
  } : se,
79
79
  n.empty && O
80
- ]), $t = /* @__PURE__ */ i("span", {
80
+ ]), Kt = /* @__PURE__ */ i("span", {
81
81
  label: "AgenticTableViewSelector-triggerLabel"
82
82
  })({
83
83
  minWidth: "0px",
@@ -91,7 +91,7 @@ const z = {
91
91
  flexShrink: 0,
92
92
  "--tw-text-opacity": "1",
93
93
  color: "hsl(var(--bfrs-color-warning) / var(--tw-text-opacity, 1))"
94
- }), qt = /* @__PURE__ */ i(Vt, {
94
+ }), $t = /* @__PURE__ */ i(Wt, {
95
95
  label: "AgenticTableViewSelector-caret",
96
96
  shouldForwardProp: (n) => n !== "ownerState"
97
97
  })(({ ownerState: n }) => [
@@ -103,7 +103,7 @@ const z = {
103
103
  transitionDuration: ".15s"
104
104
  },
105
105
  n.open && We({ "--tw-rotate": "180deg" })
106
- ]), Ut = /* @__PURE__ */ i(zt, {
106
+ ]), qt = /* @__PURE__ */ i(kt, {
107
107
  label: "AgenticTableViewSelector-content"
108
108
  })({
109
109
  zIndex: 1e3,
@@ -118,9 +118,9 @@ const z = {
118
118
  boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
119
119
  outline: "2px solid transparent",
120
120
  outlineOffset: "2px",
121
- ...Pt,
121
+ ...Dt,
122
122
  animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
123
- }), Yt = /* @__PURE__ */ i("div", {
123
+ }), Ut = /* @__PURE__ */ i("div", {
124
124
  label: "AgenticTableViewSelector-header"
125
125
  })({
126
126
  paddingLeft: ".75rem",
@@ -133,7 +133,7 @@ const z = {
133
133
  letterSpacing: ".08em",
134
134
  textTransform: "uppercase",
135
135
  ...O
136
- }), Gt = /* @__PURE__ */ i("div", {
136
+ }), Yt = /* @__PURE__ */ i("div", {
137
137
  label: "AgenticTableViewSelector-list"
138
138
  })({
139
139
  display: "flex",
@@ -141,7 +141,7 @@ const z = {
141
141
  flexDirection: "column",
142
142
  overflowY: "auto",
143
143
  paddingBottom: ".25rem"
144
- }), Jt = /* @__PURE__ */ i("div", {
144
+ }), Gt = /* @__PURE__ */ i("div", {
145
145
  label: "AgenticTableViewSelector-row"
146
146
  })({
147
147
  display: "flex",
@@ -150,7 +150,7 @@ const z = {
150
150
  gap: ".375rem",
151
151
  paddingLeft: ".5rem",
152
152
  paddingRight: ".625rem"
153
- }), Qt = /* @__PURE__ */ i("button", {
153
+ }), Jt = /* @__PURE__ */ i("button", {
154
154
  label: "AgenticTableViewSelector-viewButton",
155
155
  shouldForwardProp: (n) => n !== "ownerState"
156
156
  })(({ ownerState: n }) => [
@@ -179,7 +179,7 @@ const z = {
179
179
  n.selected && {
180
180
  fontWeight: 700
181
181
  }
182
- ]), Xt = /* @__PURE__ */ i("span", {
182
+ ]), Qt = /* @__PURE__ */ i("span", {
183
183
  label: "AgenticTableViewSelector-name"
184
184
  })({
185
185
  minWidth: "0px",
@@ -187,13 +187,13 @@ const z = {
187
187
  overflow: "hidden",
188
188
  textOverflow: "ellipsis",
189
189
  whiteSpace: "nowrap"
190
- }), Zt = /* @__PURE__ */ i("div", {
190
+ }), Xt = /* @__PURE__ */ i("div", {
191
191
  label: "AgenticTableViewSelector-divider"
192
192
  })({
193
193
  height: "1px",
194
194
  "--tw-bg-opacity": "1",
195
195
  backgroundColor: "hsl(var(--bfrs-color-border-light) / var(--tw-bg-opacity, 1))"
196
- }), er = /* @__PURE__ */ i("button", {
196
+ }), Zt = /* @__PURE__ */ i("button", {
197
197
  label: "AgenticTableViewSelector-resetButton"
198
198
  })({
199
199
  display: "flex",
@@ -221,16 +221,16 @@ const z = {
221
221
  fontSize: ".75rem",
222
222
  lineHeight: "1rem",
223
223
  ...O
224
- }), Re = /* @__PURE__ */ i(xt, {
224
+ }), Re = /* @__PURE__ */ i(yt, {
225
225
  label: "AgenticTableViewSelector-renameOverlay"
226
226
  })({
227
227
  position: "fixed",
228
228
  inset: 0,
229
229
  zIndex: 1050,
230
230
  backgroundColor: "hsl(var(--bfrs-color-text-primary) / .45)",
231
- ...Bt,
231
+ ...Pt,
232
232
  animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
233
- }), Ce = /* @__PURE__ */ i(St, {
233
+ }), Ce = /* @__PURE__ */ i(xt, {
234
234
  label: "AgenticTableViewSelector-renameContent"
235
235
  })({
236
236
  position: "fixed",
@@ -253,23 +253,23 @@ const z = {
253
253
  outline: "2px solid transparent",
254
254
  outlineOffset: "2px",
255
255
  ...We({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
256
- ...Et,
256
+ ...Bt,
257
257
  animation: "bfrs-bfrs-modal-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
258
- }), ke = /* @__PURE__ */ i(Tt, {
258
+ }), ke = /* @__PURE__ */ i(St, {
259
259
  label: "AgenticTableViewSelector-renameTitle"
260
260
  })({
261
261
  fontSize: "1.125rem",
262
262
  lineHeight: "1.5rem",
263
263
  fontWeight: 700,
264
264
  ...z
265
- }), ze = /* @__PURE__ */ i(_t, {
265
+ }), ze = /* @__PURE__ */ i(Tt, {
266
266
  label: "AgenticTableViewSelector-renameDescription"
267
267
  })({
268
268
  marginTop: ".25rem",
269
269
  fontSize: ".75rem",
270
270
  lineHeight: "1.25rem",
271
271
  ...O
272
- }), tr = /* @__PURE__ */ i("label", {
272
+ }), er = /* @__PURE__ */ i("label", {
273
273
  label: "AgenticTableViewSelector-renameLabel"
274
274
  })({
275
275
  display: "block",
@@ -278,7 +278,7 @@ const z = {
278
278
  lineHeight: "1rem",
279
279
  fontWeight: 700,
280
280
  ...z
281
- }), rr = /* @__PURE__ */ i("input", {
281
+ }), tr = /* @__PURE__ */ i("input", {
282
282
  label: "AgenticTableViewSelector-renameInput"
283
283
  })({
284
284
  marginTop: ".5rem",
@@ -309,7 +309,7 @@ const z = {
309
309
  function I(n, o) {
310
310
  return o ? n.find((t) => t.view_id === o) ?? null : null;
311
311
  }
312
- function nr(n, o, t) {
312
+ function rr(n, o, t) {
313
313
  var b;
314
314
  const w = [], y = /* @__PURE__ */ new Set(), x = o ?? ((b = n.find((c) => c.is_default)) == null ? void 0 : b.view_id) ?? null, p = (c) => {
315
315
  if (!c || y.has(c)) return;
@@ -321,14 +321,14 @@ function nr(n, o, t) {
321
321
  y.has(c.view_id) || (w.push(c), y.add(c.view_id));
322
322
  return w;
323
323
  }
324
- function or(n) {
324
+ function nr(n) {
325
325
  return n ? [
326
326
  "api",
327
327
  n.viewType && n.tab ? "scoped" : "local",
328
328
  n.saveEndpoint || n.endpoint ? "remote-save" : "local-save"
329
329
  ].join(":") : "none";
330
330
  }
331
- function ir(n) {
331
+ function or(n) {
332
332
  const o = () => n.current;
333
333
  return {
334
334
  get baseUrl() {
@@ -385,7 +385,7 @@ function ir(n) {
385
385
  }
386
386
  };
387
387
  }
388
- function _r({
388
+ function Tr({
389
389
  screenName: n,
390
390
  store: o,
391
391
  saveApi: t,
@@ -405,37 +405,36 @@ function _r({
405
405
  viewsLabel: He = "VIEWS",
406
406
  emptyLabel: De = "No saved views",
407
407
  loadingLabel: Pe = "Loading views",
408
- resetLabel: Be = "Switch to default",
409
- defaultViewLabel: Ee = "Default",
410
- setPrimaryLabel: Fe = "Set as Primary View",
411
- unsetPrimaryLabel: je = "Unset as Primary",
412
- renameLabel: Ne = "Rename",
413
- deleteLabel: Me = "Delete",
414
- renameTitle: Ke = "Rename view",
408
+ defaultViewLabel: Be = "Default",
409
+ setPrimaryLabel: Ee = "Set as Primary View",
410
+ unsetPrimaryLabel: Fe = "Unset as Primary",
411
+ renameLabel: je = "Rename",
412
+ deleteLabel: Ne = "Delete",
413
+ renameTitle: Me = "Rename view",
415
414
  renameDescription: ce = "Update the saved view name.",
416
- renameInputLabel: $e = "View name",
417
- renameCancelLabel: qe = "Cancel",
418
- renameSaveLabel: Ue = "Save",
419
- deleteTitle: Ye = "Delete view",
420
- deleteDescription: Ge,
421
- deleteCancelLabel: Je = "Cancel",
422
- deleteConfirmLabel: Qe = "Delete",
423
- size: Xe = "sm",
424
- disabled: Ze = !1,
425
- className: et,
426
- triggerClassName: tt,
427
- contentClassName: rt,
428
- actionMenuClassName: nt
415
+ renameInputLabel: Ke = "View name",
416
+ renameCancelLabel: $e = "Cancel",
417
+ renameSaveLabel: qe = "Save",
418
+ deleteTitle: Ue = "Delete view",
419
+ deleteDescription: Ye,
420
+ deleteCancelLabel: Ge = "Cancel",
421
+ deleteConfirmLabel: Je = "Delete",
422
+ size: Qe = "sm",
423
+ disabled: Xe = !1,
424
+ className: Ze,
425
+ triggerClassName: et,
426
+ contentClassName: tt,
427
+ actionMenuClassName: rt
429
428
  }) {
430
429
  const de = k(t);
431
430
  de.current = t;
432
- const ue = or(t), U = ie(
433
- () => ue === "none" ? void 0 : ir(de),
431
+ const ue = nr(t), U = ie(
432
+ () => ue === "none" ? void 0 : or(de),
434
433
  [ue]
435
434
  ), u = ie(
436
- () => o ?? jt(n, U ? { saveApi: U } : void 0),
435
+ () => o ?? Ft(n, U ? { saveApi: U } : void 0),
437
436
  [n, o, U]
438
- ), H = w !== void 0, [Y, G] = f(!1), [A, ot] = f([]), [J, it] = f(null), [at, me] = f(y ?? null), [fe, pe] = f(!1), [D, be] = f(null), [Q, X] = f(""), [g, he] = f(null), W = w ?? at, V = k(W), P = k(H), Z = k(!1), v = k(!1), S = k(null), ge = Ht();
437
+ ), H = w !== void 0, [Y, G] = f(!1), [A, nt] = f([]), [J, ot] = f(null), [it, me] = f(y ?? null), [fe, pe] = f(!1), [D, be] = f(null), [Q, X] = f(""), [g, he] = f(null), W = w ?? it, V = k(W), P = k(H), Z = k(!1), v = k(!1), S = k(null), ge = Lt();
439
438
  E(() => {
440
439
  V.current = W, W && (v.current = !1);
441
440
  }, [W]), E(() => {
@@ -467,8 +466,8 @@ function _r({
467
466
  return S.current = d, d.promise = (async () => {
468
467
  pe(!0);
469
468
  try {
470
- const R = await u.list(), C = R.find((yt) => yt.is_default) ?? null, vt = e !== void 0 ? e : V.current, we = I(R, vt), wt = !v.current && (e !== void 0 || x || !P.current), oe = we || !wt ? null : I(R, C == null ? void 0 : C.view_id), B = we ?? oe ?? null;
471
- return ot(R), it((C == null ? void 0 : C.view_id) ?? null), P.current || me((B == null ? void 0 : B.view_id) ?? null), x && oe && e === void 0 && !V.current && !Z.current && (Z.current = !0, ee(oe)), B;
469
+ const R = await u.list(), C = R.find((wt) => wt.is_default) ?? null, gt = e !== void 0 ? e : V.current, we = I(R, gt), vt = !v.current && (e !== void 0 || x || !P.current), oe = we || !vt ? null : I(R, C == null ? void 0 : C.view_id), B = we ?? oe ?? null;
470
+ return nt(R), ot((C == null ? void 0 : C.view_id) ?? null), P.current || me((B == null ? void 0 : B.view_id) ?? null), x && oe && e === void 0 && !V.current && !Z.current && (Z.current = !0, ee(oe)), B;
472
471
  } catch (R) {
473
472
  return T(R), null;
474
473
  } finally {
@@ -484,113 +483,113 @@ function _r({
484
483
  };
485
484
  return e(), u.subscribe(e);
486
485
  }, [_, u]);
487
- const l = I(A, W) ?? (!v.current && (x || !H) ? I(A, J) : null), lt = ie(
488
- () => nr(A, J, l == null ? void 0 : l.view_id),
486
+ const l = I(A, W) ?? (!v.current && (x || !H) ? I(A, J) : null), at = ie(
487
+ () => rr(A, J, l == null ? void 0 : l.view_id),
489
488
  [J, l == null ? void 0 : l.view_id, A]
490
- ), st = !l && v.current, ct = Oe ?? (l == null ? void 0 : l.name) ?? (st ? Ee : Le), te = A.length > 0, dt = (e) => {
489
+ ), lt = !l && v.current, st = Oe ?? (l == null ? void 0 : l.name) ?? (lt ? Be : Le), te = A.length > 0, ct = (e) => {
491
490
  G(!1), ee(e);
492
- }, ut = (e) => {
491
+ }, dt = (e) => {
493
492
  u.setPrimary(e.view_id).then(async (a) => {
494
493
  const d = await _(e.view_id);
495
494
  m(d ?? a), c == null || c(a);
496
495
  }).catch(T);
497
- }, mt = (e) => {
496
+ }, ut = (e) => {
498
497
  u.unsetPrimary(e.view_id).then(async (a) => {
499
498
  const d = await _(e.view_id);
500
499
  m(d ?? a), h == null || h(a);
501
500
  }).catch(T);
502
- }, re = () => he(null), ft = (e) => {
501
+ }, re = () => he(null), mt = (e) => {
503
502
  const a = V.current === e.view_id;
504
503
  u.remove(e.view_id).then(async () => {
505
504
  const d = await _(a ? null : V.current);
506
505
  a && m(d), $ == null || $(e.view_id);
507
506
  }).catch(T).finally(re);
507
+ }, ft = () => {
508
+ g && mt(g);
508
509
  }, pt = () => {
509
- g && ft(g);
510
- }, bt = () => {
511
510
  v.current = !0, m(null), q == null || q(), G(!1);
512
- }, ht = (e) => {
511
+ }, bt = (e) => {
513
512
  be(e), X(e.name);
514
513
  }, ne = () => {
515
514
  be(null), X("");
516
- }, gt = (e) => {
515
+ }, ht = (e) => {
517
516
  e.preventDefault();
518
517
  const a = Q.trim();
519
518
  !D || !a || u.rename(D.view_id, a).then(async (d) => {
520
519
  await _(D.view_id), K == null || K(d), ne();
521
520
  }).catch(T);
522
521
  };
523
- return te ? /* @__PURE__ */ s(Mt, { className: et, children: [
524
- /* @__PURE__ */ s(Rt, { open: Y, onOpenChange: G, children: [
525
- /* @__PURE__ */ r(Ct, { asChild: !0, children: /* @__PURE__ */ s(
526
- Kt,
522
+ return te ? /* @__PURE__ */ s(Nt, { className: Ze, children: [
523
+ /* @__PURE__ */ s(_t, { open: Y, onOpenChange: G, children: [
524
+ /* @__PURE__ */ r(Rt, { asChild: !0, children: /* @__PURE__ */ s(
525
+ Mt,
527
526
  {
528
527
  type: "button",
529
528
  "aria-label": "Saved views",
530
- className: tt,
531
- disabled: Ze,
532
- ownerState: { open: Y, empty: !l, size: Xe },
529
+ className: et,
530
+ disabled: Xe,
531
+ ownerState: { open: Y, empty: !l, size: Qe },
533
532
  children: [
534
- /* @__PURE__ */ r(Wt, { size: 13 }),
535
- /* @__PURE__ */ r($t, { children: ct }),
533
+ /* @__PURE__ */ r(At, { size: 13 }),
534
+ /* @__PURE__ */ r(Kt, { children: st }),
536
535
  l != null && l.is_default ? /* @__PURE__ */ r(Te, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
537
- /* @__PURE__ */ r(qt, { size: 13, ownerState: { open: Y } })
536
+ /* @__PURE__ */ r($t, { size: 13, ownerState: { open: Y } })
538
537
  ]
539
538
  }
540
539
  ) }),
541
- /* @__PURE__ */ r(kt, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
542
- Ut,
540
+ /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
541
+ qt,
543
542
  {
544
543
  align: "start",
545
544
  sideOffset: 8,
546
- collisionPadding: Ft,
547
- className: rt,
545
+ collisionPadding: Et,
546
+ className: tt,
548
547
  children: [
549
- /* @__PURE__ */ r(Yt, { children: He }),
550
- /* @__PURE__ */ s(Gt, { children: [
548
+ /* @__PURE__ */ r(Ut, { children: He }),
549
+ /* @__PURE__ */ s(Yt, { children: [
551
550
  fe && !te ? /* @__PURE__ */ r(_e, { children: Pe }) : null,
552
551
  !fe && !te ? /* @__PURE__ */ r(_e, { children: De }) : null,
553
- lt.map((e) => {
552
+ at.map((e) => {
554
553
  const a = (l == null ? void 0 : l.view_id) === e.view_id;
555
- return /* @__PURE__ */ s(Jt, { children: [
556
- /* @__PURE__ */ s(Qt, { type: "button", ownerState: { selected: a }, onClick: () => dt(e), children: [
557
- /* @__PURE__ */ r(Xt, { children: e.name }),
554
+ return /* @__PURE__ */ s(Gt, { children: [
555
+ /* @__PURE__ */ s(Jt, { type: "button", ownerState: { selected: a }, onClick: () => ct(e), children: [
556
+ /* @__PURE__ */ r(Qt, { children: e.name }),
558
557
  e.is_default ? /* @__PURE__ */ r(Te, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
559
558
  ] }),
560
559
  /* @__PURE__ */ r(
561
- Nt,
560
+ jt,
562
561
  {
563
562
  align: "start",
564
563
  side: "right",
565
564
  size: "sm",
566
- className: nt,
565
+ className: rt,
567
566
  trigger: /* @__PURE__ */ r(
568
- Dt,
567
+ Ht,
569
568
  {
570
569
  variant: "secondary",
571
570
  size: "sm",
572
- icon: /* @__PURE__ */ r(It, { size: 14, weight: "bold" }),
571
+ icon: /* @__PURE__ */ r(Vt, { size: 14, weight: "bold" }),
573
572
  "aria-label": `View actions for ${e.name}`
574
573
  }
575
574
  ),
576
575
  items: [
577
576
  e.is_default ? {
578
- label: je,
579
- icon: /* @__PURE__ */ r(le, { size: 16 }),
580
- onSelect: () => mt(e)
581
- } : {
582
577
  label: Fe,
583
578
  icon: /* @__PURE__ */ r(le, { size: 16 }),
584
579
  onSelect: () => ut(e)
580
+ } : {
581
+ label: Ee,
582
+ icon: /* @__PURE__ */ r(le, { size: 16 }),
583
+ onSelect: () => dt(e)
585
584
  },
586
585
  {
587
- label: Ne,
588
- icon: /* @__PURE__ */ r(Ot, { size: 16 }),
589
- onSelect: () => ht(e)
586
+ label: je,
587
+ icon: /* @__PURE__ */ r(It, { size: 16 }),
588
+ onSelect: () => bt(e)
590
589
  },
591
590
  {
592
- label: Me,
593
- icon: /* @__PURE__ */ r(Lt, { size: 16 }),
591
+ label: Ne,
592
+ icon: /* @__PURE__ */ r(Ot, { size: 16 }),
594
593
  destructive: !0,
595
594
  onSelect: () => he(e)
596
595
  }
@@ -600,10 +599,10 @@ function _r({
600
599
  ] }, e.view_id);
601
600
  })
602
601
  ] }),
603
- /* @__PURE__ */ r(Zt, {}),
604
- /* @__PURE__ */ s(er, { type: "button", onClick: bt, children: [
605
- /* @__PURE__ */ r(At, { size: 16 }),
606
- /* @__PURE__ */ r("span", { children: Be })
602
+ /* @__PURE__ */ r(Xt, {}),
603
+ /* @__PURE__ */ s(Zt, { type: "button", onClick: pt, children: [
604
+ /* @__PURE__ */ r(zt, { size: 16 }),
605
+ /* @__PURE__ */ r("span", { children: "Switch to default" })
607
606
  ] })
608
607
  ]
609
608
  }
@@ -613,12 +612,12 @@ function _r({
613
612
  e || ne();
614
613
  }, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ s(ae, { children: [
615
614
  /* @__PURE__ */ r(Re, {}),
616
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s("form", { onSubmit: gt, children: [
617
- /* @__PURE__ */ r(ke, { children: Ke }),
615
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s("form", { onSubmit: ht, children: [
616
+ /* @__PURE__ */ r(ke, { children: Me }),
618
617
  ce ? /* @__PURE__ */ r(ze, { children: ce }) : null,
619
- /* @__PURE__ */ r(tr, { htmlFor: ge, children: $e }),
618
+ /* @__PURE__ */ r(er, { htmlFor: ge, children: Ke }),
620
619
  /* @__PURE__ */ r(
621
- rr,
620
+ tr,
622
621
  {
623
622
  id: ge,
624
623
  autoFocus: !0,
@@ -627,8 +626,8 @@ function _r({
627
626
  }
628
627
  ),
629
628
  /* @__PURE__ */ s(Ae, { children: [
630
- /* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: ne, children: qe }),
631
- /* @__PURE__ */ r(j, { type: "submit", disabled: Q.trim().length === 0, children: Ue })
629
+ /* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: ne, children: $e }),
630
+ /* @__PURE__ */ r(j, { type: "submit", disabled: Q.trim().length === 0, children: qe })
632
631
  ] })
633
632
  ] }) })
634
633
  ] }) }) }),
@@ -637,8 +636,8 @@ function _r({
637
636
  }, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ s(ae, { children: [
638
637
  /* @__PURE__ */ r(Re, {}),
639
638
  /* @__PURE__ */ s(Ce, { children: [
640
- /* @__PURE__ */ r(ke, { children: Ye }),
641
- /* @__PURE__ */ r(ze, { children: Ge ?? /* @__PURE__ */ s(ye, { children: [
639
+ /* @__PURE__ */ r(ke, { children: Ue }),
640
+ /* @__PURE__ */ r(ze, { children: Ye ?? /* @__PURE__ */ s(ye, { children: [
642
641
  "Are you sure you want to delete",
643
642
  g != null && g.name ? /* @__PURE__ */ s(ye, { children: [
644
643
  " “",
@@ -648,14 +647,14 @@ function _r({
648
647
  "? This can’t be undone."
649
648
  ] }) }),
650
649
  /* @__PURE__ */ s(Ae, { children: [
651
- /* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: re, children: Je }),
652
- /* @__PURE__ */ r(j, { type: "button", variant: "danger", onClick: pt, children: Qe })
650
+ /* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: re, children: Ge }),
651
+ /* @__PURE__ */ r(j, { type: "button", variant: "danger", onClick: ft, children: Je })
653
652
  ] })
654
653
  ] })
655
654
  ] }) }) })
656
655
  ] }) : null;
657
656
  }
658
657
  export {
659
- _r as TableViewSelector
658
+ Tr as TableViewSelector
660
659
  };
661
660
  //# sourceMappingURL=TableViewSelector.js.map