@bfrs/agentic-components 0.8.9 → 0.9.1

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.
Files changed (85) hide show
  1. package/BFRS_AGENTIC_COMPONENTS.md +9 -6
  2. package/README.md +50 -2
  3. package/dist/components/data-display/DataTable/DataTable.js +365 -337
  4. package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
  5. package/dist/components/data-display/DataTable/TableColumnVisibility.js +33 -26
  6. package/dist/components/data-display/DataTable/TableColumnVisibility.js.map +1 -1
  7. package/dist/components/data-display/DataTable/TablePagination.js +36 -35
  8. package/dist/components/data-display/DataTable/TablePagination.js.map +1 -1
  9. package/dist/components/data-display/DataTable/TableSaveView.js +20 -18
  10. package/dist/components/data-display/DataTable/TableSaveView.js.map +1 -1
  11. package/dist/components/data-display/DataTable/TableViewSelector.js +279 -263
  12. package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -1
  13. package/dist/components/data-display/Table/Table.js +32 -25
  14. package/dist/components/data-display/Table/Table.js.map +1 -1
  15. package/dist/components/feedback/Toast/Toast.js +1 -1
  16. package/dist/components/feedback/Toast/Toast.js.map +1 -1
  17. package/dist/components/filters/DateRangePicker/DateRangePicker.js +348 -331
  18. package/dist/components/filters/DateRangePicker/DateRangePicker.js.map +1 -1
  19. package/dist/components/filters/FilterBar/FilterBar.js +18 -17
  20. package/dist/components/filters/FilterBar/FilterBar.js.map +1 -1
  21. package/dist/components/layout/ListPageLayout/ListPageLayout.js +28 -26
  22. package/dist/components/layout/ListPageLayout/ListPageLayout.js.map +1 -1
  23. package/dist/components/layout/PageHeader/PageHeader.js +6 -4
  24. package/dist/components/layout/PageHeader/PageHeader.js.map +1 -1
  25. package/dist/components/navigation/ActionMenu/ActionMenu.js +30 -23
  26. package/dist/components/navigation/ActionMenu/ActionMenu.js.map +1 -1
  27. package/dist/components/navigation/Tabs/Tabs.js +20 -19
  28. package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
  29. package/dist/components/primitives/Button/Button.js +76 -61
  30. package/dist/components/primitives/Button/Button.js.map +1 -1
  31. package/dist/components/primitives/Chip/Chip.js +3 -1
  32. package/dist/components/primitives/Chip/Chip.js.map +1 -1
  33. package/dist/components/primitives/Input/Input.js +12 -12
  34. package/dist/components/primitives/Input/Input.js.map +1 -1
  35. package/dist/components/ui/feedback/warningVisual.d.ts +4 -4
  36. package/dist/components/ui/feedback/warningVisual.js +20 -20
  37. package/dist/components/ui/feedback/warningVisual.js.map +1 -1
  38. package/dist/components/ui/forms/Checkbox/Checkbox.js +9 -6
  39. package/dist/components/ui/forms/Checkbox/Checkbox.js.map +1 -1
  40. package/dist/components/ui/forms/MultiSelect/MultiSelect.js +25 -14
  41. package/dist/components/ui/forms/MultiSelect/MultiSelect.js.map +1 -1
  42. package/dist/components/ui/forms/NumberStepper/NumberStepper.js +1 -1
  43. package/dist/components/ui/forms/NumberStepper/NumberStepper.js.map +1 -1
  44. package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js +29 -19
  45. package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js.map +1 -1
  46. package/dist/components/ui/forms/Select/Select.js +27 -18
  47. package/dist/components/ui/forms/Select/Select.js.map +1 -1
  48. package/dist/components/ui/forms/SuggestInput/SuggestInput.js +22 -10
  49. package/dist/components/ui/forms/SuggestInput/SuggestInput.js.map +1 -1
  50. package/dist/components/ui/forms/TagInput/TagInput.js +21 -16
  51. package/dist/components/ui/forms/TagInput/TagInput.js.map +1 -1
  52. package/dist/components/ui/index.d.ts +1 -1
  53. package/dist/components/ui/overlays/Dropdown/Dropdown.js +32 -20
  54. package/dist/components/ui/overlays/Dropdown/Dropdown.js.map +1 -1
  55. package/dist/components/ui/overlays/Tooltip/Tooltip.js +21 -21
  56. package/dist/components/ui/overlays/Tooltip/Tooltip.js.map +1 -1
  57. package/dist/components/ui/patterns/ChatComposer/ChatComposer.js +14 -12
  58. package/dist/components/ui/patterns/ChatComposer/ChatComposer.js.map +1 -1
  59. package/dist/components/ui/patterns/CommandMenu/CommandMenu.js +31 -19
  60. package/dist/components/ui/patterns/CommandMenu/CommandMenu.js.map +1 -1
  61. package/dist/components/ui/patterns/HorizontalStepper/HorizontalStepper.js +1 -1
  62. package/dist/components/ui/patterns/HorizontalStepper/HorizontalStepper.js.map +1 -1
  63. package/dist/components/ui/patterns/SideNav/SideNav.js +21 -17
  64. package/dist/components/ui/patterns/SideNav/SideNav.js.map +1 -1
  65. package/dist/components/ui/providers/BfrsProvider/BfrsProvider.d.ts +10 -0
  66. package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js +63 -42
  67. package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js.map +1 -1
  68. package/dist/custom-elements.d.ts +1 -0
  69. package/dist/custom-elements.js +7754 -7389
  70. package/dist/custom-elements.js.map +1 -1
  71. package/dist/index.js +290 -287
  72. package/dist/style.css +1 -1
  73. package/dist/styles/globals.css2.js +1 -1
  74. package/dist/theme/overrides.d.ts +256 -0
  75. package/dist/theme/overrides.js +255 -92
  76. package/dist/theme/overrides.js.map +1 -1
  77. package/dist/theme.js +34 -32
  78. package/dist/tokens/colors.d.ts +23 -0
  79. package/dist/tokens/colors.js +23 -0
  80. package/dist/tokens/colors.js.map +1 -1
  81. package/dist/tokens/shadows.d.ts +1 -0
  82. package/dist/tokens/shadows.js +4 -3
  83. package/dist/tokens/shadows.js.map +1 -1
  84. package/package.json +1 -1
  85. package/scripts/lint/cli.cjs +0 -6
@@ -1,49 +1,56 @@
1
- import { jsxs as s, jsx as t, Fragment as Oe } from "react/jsx-runtime";
2
- import { Root as Le, Portal as He, Overlay as Lt, Content as Ht, Title as Et, Description as Ft } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
- import { Root as jt, Trigger as Nt, Portal as Kt, Content as Mt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
- import { BookmarkSimple as $t } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
5
- import { CaretDown as qt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
6
- import { DotsThreeVertical as Ee } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
7
- import { Info as Yt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Info.es.js";
8
- import { PencilSimple as Gt } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
1
+ import { jsxs as c, jsx as t, Fragment as Oe } from "react/jsx-runtime";
2
+ import { Root as Be, Portal as Le, Overlay as Bt, Content as Lt, Title as Ht, Description as Et } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
+ import { Root as Ft, Trigger as jt, Portal as Nt, Content as Kt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
+ import { BookmarkSimple as Mt } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
5
+ import { CaretDown as $t } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
6
+ import { DotsThreeVertical as He } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
7
+ import { Info as qt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Info.es.js";
8
+ import { PencilSimple as Yt } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
9
9
  import { Star as Y } from "../../../node_modules/@phosphor-icons/react/dist/csr/Star.es.js";
10
- import { Trash as Jt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
- import { useRef as S, useMemo as se, useState as f, useId as Qt, useEffect as $, useCallback as q } from "react";
10
+ import { Trash as Gt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
+ import { useRef as x, useMemo as ce, useState as f, useId as Jt, useEffect as $, useCallback as q } from "react";
12
12
  import i from "@emotion/styled";
13
- import { IconButton as Fe, Button as G } from "../../primitives/Button/Button.js";
14
- import { twRing as me, twTransform as Xe, kfContentIn as Xt, kfOverlayIn as Zt, kfModalContentIn as Ut } from "../../../lib/emotionTw.js";
15
- import { floatingCollisionPadding as er } from "../../ui/overlays/overlayPositioning.js";
16
- import { useSavedViewAnalytics as tr } from "./savedViewAnalytics.js";
17
- import { createTableViewSelectorStore as rr, isReservedViewName as je } from "./viewStore.js";
18
- import { BfrsPortalScope as ce } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
19
- import { Tooltip as nr } from "../../ui/overlays/Tooltip/Tooltip.js";
20
- import { ActionMenu as Ne } from "../../navigation/ActionMenu/ActionMenu.js";
13
+ import { IconButton as Ee, Button as G } from "../../primitives/Button/Button.js";
14
+ import { twRing as ue, twTransform as Qe, kfContentIn as Qt, kfOverlayIn as Xt, kfModalContentIn as Zt } from "../../../lib/emotionTw.js";
15
+ import { floatingCollisionPadding as Ut } from "../../ui/overlays/overlayPositioning.js";
16
+ import { useSavedViewAnalytics as er } from "./savedViewAnalytics.js";
17
+ import { createTableViewSelectorStore as tr, isReservedViewName as Fe } from "./viewStore.js";
18
+ import { BfrsPortalScope as se } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
19
+ import { Tooltip as rr } from "../../ui/overlays/Tooltip/Tooltip.js";
20
+ import { ActionMenu as je } from "../../navigation/ActionMenu/ActionMenu.js";
21
21
  const P = {
22
22
  "--tw-text-opacity": "1",
23
23
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
24
24
  }, W = {
25
25
  "--tw-text-opacity": "1",
26
26
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
27
- }, fe = {
27
+ }, me = {
28
28
  "--tw-bg-opacity": "1",
29
29
  backgroundColor: "hsl(var(--bfrs-color-surface-card) / var(--tw-bg-opacity, 1))"
30
- }, ue = {
30
+ }, or = {
31
31
  "--tw-bg-opacity": "1",
32
32
  backgroundColor: "hsl(var(--bfrs-color-primary-soft) / var(--tw-bg-opacity, 1))"
33
33
  }, ir = {
34
- backgroundColor: "#F6F9F6"
35
- }, pe = {
34
+ "--tw-bg-opacity": "1",
35
+ backgroundColor: "hsl(var(--bfrs-color-option-hover) / var(--tw-bg-opacity, 1))"
36
+ }, nr = {
37
+ "--tw-bg-opacity": "1",
38
+ backgroundColor: "hsl(var(--bfrs-color-option-selected) / var(--tw-bg-opacity, 1))"
39
+ }, ar = {
40
+ "--tw-bg-opacity": "1",
41
+ backgroundColor: "hsl(var(--bfrs-color-surface-app) / var(--tw-bg-opacity, 1))"
42
+ }, fe = {
36
43
  "--tw-border-opacity": "1",
37
44
  borderColor: "hsl(var(--bfrs-color-border) / var(--tw-border-opacity, 1))"
38
- }, or = /* @__PURE__ */ i("div", {
45
+ }, lr = /* @__PURE__ */ i("div", {
39
46
  label: "AgenticTableViewSelector-root"
40
47
  })({
41
48
  display: "inline-flex",
42
49
  minWidth: "0px"
43
- }), ar = /* @__PURE__ */ i("button", {
50
+ }), cr = /* @__PURE__ */ i("button", {
44
51
  label: "AgenticTableViewSelector-trigger",
45
- shouldForwardProp: (n) => n !== "ownerState"
46
- })(({ ownerState: n }) => [
52
+ shouldForwardProp: (o) => o !== "ownerState"
53
+ })(({ ownerState: o }) => [
47
54
  {
48
55
  display: "inline-flex",
49
56
  minWidth: "0px",
@@ -53,7 +60,7 @@ const P = {
53
60
  gap: ".5rem",
54
61
  borderRadius: "7px",
55
62
  borderWidth: "1px",
56
- ...ir,
63
+ ...ar,
57
64
  paddingLeft: ".75rem",
58
65
  paddingRight: ".75rem",
59
66
  fontSize: "12px",
@@ -65,14 +72,14 @@ const P = {
65
72
  transitionProperty: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
66
73
  transitionTimingFunction: "cubic-bezier(0,0,.2,1)",
67
74
  transitionDuration: ".15s",
68
- "&:hover": ue,
69
- "&:focus-visible": me("2px", "hsl(var(--bfrs-color-border-focus) / .25)"),
75
+ "&:hover": or,
76
+ "&:focus-visible": ue("2px", "hsl(var(--bfrs-color-border-focus) / .25)"),
70
77
  "&:disabled": {
71
78
  pointerEvents: "none",
72
79
  opacity: ".55"
73
80
  }
74
81
  },
75
- n.size === "sm" ? { height: "1.75rem" } : { height: "2.25rem" },
82
+ o.size === "sm" ? { height: "1.75rem" } : { height: "2.25rem" },
76
83
  // Stays highlighted once a view is selected, not just while the popover is
77
84
  // open — matches the data-filled convention every other Select-like
78
85
  // trigger in the library already follows (Select, MultiSelect,
@@ -80,14 +87,14 @@ const P = {
80
87
  // "Default" is a real selection, not an empty trigger, so it carries the same
81
88
  // emphasized border as a named view. border-focus is the ink colour (#29343D
82
89
  // in light) and flips light in dark mode — a literal black would not.
83
- n.open || n.filled || n.defaultSelected ? {
90
+ o.open || o.filled || o.defaultSelected ? {
84
91
  "--tw-border-opacity": "1",
85
92
  borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))"
86
- } : pe,
93
+ } : fe,
87
94
  // Default is a selected, built-in view. It must use the same primary text
88
95
  // colour as a selected saved view; only a genuinely empty trigger is muted.
89
- n.empty && !n.defaultSelected && W
90
- ]), lr = /* @__PURE__ */ i("span", {
96
+ o.empty && !o.defaultSelected && W
97
+ ]), sr = /* @__PURE__ */ i("span", {
91
98
  label: "AgenticTableViewSelector-triggerLabel"
92
99
  })({
93
100
  minWidth: "0px",
@@ -101,10 +108,10 @@ const P = {
101
108
  flexShrink: 0,
102
109
  "--tw-text-opacity": "1",
103
110
  color: "hsl(var(--bfrs-color-warning) / var(--tw-text-opacity, 1))"
104
- }), sr = /* @__PURE__ */ i(qt, {
111
+ }), dr = /* @__PURE__ */ i($t, {
105
112
  label: "AgenticTableViewSelector-caret",
106
- shouldForwardProp: (n) => n !== "ownerState"
107
- })(({ ownerState: n }) => [
113
+ shouldForwardProp: (o) => o !== "ownerState"
114
+ })(({ ownerState: o }) => [
108
115
  {
109
116
  flexShrink: 0,
110
117
  ...W,
@@ -112,8 +119,8 @@ const P = {
112
119
  transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
113
120
  transitionDuration: ".15s"
114
121
  },
115
- n.open && Xe({ "--tw-rotate": "180deg" })
116
- ]), cr = /* @__PURE__ */ i(Mt, {
122
+ o.open && Qe({ "--tw-rotate": "180deg" })
123
+ ]), ur = /* @__PURE__ */ i(Kt, {
117
124
  label: "AgenticTableViewSelector-content"
118
125
  })({
119
126
  zIndex: 1e3,
@@ -121,16 +128,16 @@ const P = {
121
128
  overflow: "hidden",
122
129
  borderRadius: "var(--bfrs-radius-lg)",
123
130
  borderWidth: "1px",
124
- ...pe,
125
131
  ...fe,
132
+ ...me,
126
133
  "--tw-shadow": "var(--bfrs-shadow-elevated)",
127
134
  "--tw-shadow-colored": "var(--bfrs-shadow-elevated)",
128
135
  boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
129
136
  outline: "2px solid transparent",
130
137
  outlineOffset: "2px",
131
- ...Xt,
138
+ ...Qt,
132
139
  animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
133
- }), dr = /* @__PURE__ */ i("div", {
140
+ }), mr = /* @__PURE__ */ i("div", {
134
141
  label: "AgenticTableViewSelector-header"
135
142
  })({
136
143
  display: "flex",
@@ -146,7 +153,7 @@ const P = {
146
153
  letterSpacing: ".08em",
147
154
  textTransform: "uppercase",
148
155
  ...W
149
- }), ur = /* @__PURE__ */ i("span", {
156
+ }), fr = /* @__PURE__ */ i("span", {
150
157
  label: "AgenticTableViewSelector-headerInfo"
151
158
  })({
152
159
  display: "inline-flex",
@@ -165,7 +172,7 @@ const P = {
165
172
  "--tw-text-opacity": "1",
166
173
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
167
174
  }
168
- }), mr = /* @__PURE__ */ i("div", {
175
+ }), pr = /* @__PURE__ */ i("div", {
169
176
  label: "AgenticTableViewSelector-list"
170
177
  })({
171
178
  display: "flex",
@@ -173,7 +180,7 @@ const P = {
173
180
  flexDirection: "column",
174
181
  overflowY: "auto",
175
182
  paddingBottom: ".25rem"
176
- }), Ze = /* @__PURE__ */ i("div", {
183
+ }), Xe = /* @__PURE__ */ i("div", {
177
184
  label: "AgenticTableViewSelector-row"
178
185
  })({
179
186
  display: "flex",
@@ -182,7 +189,7 @@ const P = {
182
189
  gap: ".375rem",
183
190
  paddingLeft: ".5rem",
184
191
  paddingRight: ".625rem"
185
- }), fr = /* @__PURE__ */ i(Ze, {
192
+ }), br = /* @__PURE__ */ i(Xe, {
186
193
  label: "AgenticTableViewSelector-defaultRow"
187
194
  })({
188
195
  marginLeft: ".5rem",
@@ -191,7 +198,7 @@ const P = {
191
198
  borderRadius: "var(--bfrs-radius-sm)",
192
199
  paddingLeft: ".125rem",
193
200
  paddingRight: ".125rem"
194
- }), pr = /* @__PURE__ */ i("div", {
201
+ }), hr = /* @__PURE__ */ i("div", {
195
202
  label: "AgenticTableViewSelector-defaultDivider"
196
203
  })({
197
204
  height: "1px",
@@ -201,10 +208,10 @@ const P = {
201
208
  marginBottom: ".25rem",
202
209
  "--tw-bg-opacity": "1",
203
210
  backgroundColor: "hsl(var(--bfrs-color-border-strong) / var(--tw-bg-opacity, 1))"
204
- }), Ke = /* @__PURE__ */ i("button", {
211
+ }), Ne = /* @__PURE__ */ i("button", {
205
212
  label: "AgenticTableViewSelector-viewButton",
206
- shouldForwardProp: (n) => n !== "ownerState"
207
- })(({ ownerState: n }) => [
213
+ shouldForwardProp: (o) => o !== "ownerState"
214
+ })(({ ownerState: o }) => [
208
215
  // Rows mirror a Select option in every state (Select/SearchableSelect/
209
216
  // MultiSelect): transparent at rest, `primary-soft` on hover and while
210
217
  // pressed, and `primary-soft` + bold once selected.
@@ -227,14 +234,23 @@ const P = {
227
234
  ...P,
228
235
  outline: "2px solid transparent",
229
236
  outlineOffset: "2px",
230
- "&:hover": ue,
231
- "&:focus-visible": me("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
237
+ // The option text tokens are unset by default, so the label keeps
238
+ // text-primary. Hover beats selected for the label as it does for the fill;
239
+ // focus-visible only adds a ring, so it keeps the row's own label.
240
+ "&:hover": {
241
+ ...ir,
242
+ "--tw-text-opacity": "1",
243
+ color: "hsl(var(--bfrs-color-option-hover-text, var(--bfrs-color-text-primary)) / var(--tw-text-opacity, 1))"
244
+ },
245
+ "&:focus-visible": ue("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
232
246
  },
233
- n.selected && {
234
- ...ue,
235
- fontWeight: 700
247
+ o.selected && {
248
+ ...nr,
249
+ fontWeight: 700,
250
+ "--tw-text-opacity": "1",
251
+ color: "hsl(var(--bfrs-color-option-selected-text, var(--bfrs-color-text-primary)) / var(--tw-text-opacity, 1))"
236
252
  }
237
- ]), Me = /* @__PURE__ */ i("span", {
253
+ ]), Ke = /* @__PURE__ */ i("span", {
238
254
  label: "AgenticTableViewSelector-name"
239
255
  })({
240
256
  minWidth: "0px",
@@ -242,7 +258,7 @@ const P = {
242
258
  overflow: "hidden",
243
259
  textOverflow: "ellipsis",
244
260
  whiteSpace: "nowrap"
245
- }), $e = /* @__PURE__ */ i("div", {
261
+ }), Me = /* @__PURE__ */ i("div", {
246
262
  label: "AgenticTableViewSelector-empty"
247
263
  })({
248
264
  paddingLeft: ".75rem",
@@ -252,16 +268,16 @@ const P = {
252
268
  fontSize: ".75rem",
253
269
  lineHeight: "1rem",
254
270
  ...W
255
- }), qe = /* @__PURE__ */ i(Lt, {
271
+ }), $e = /* @__PURE__ */ i(Bt, {
256
272
  label: "AgenticTableViewSelector-renameOverlay"
257
273
  })({
258
274
  position: "fixed",
259
275
  inset: 0,
260
276
  zIndex: 1050,
261
277
  backgroundColor: "hsl(var(--bfrs-color-text-primary) / .45)",
262
- ...Zt,
278
+ ...Xt,
263
279
  animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
264
- }), Ye = /* @__PURE__ */ i(Ht, {
280
+ }), qe = /* @__PURE__ */ i(Lt, {
265
281
  label: "AgenticTableViewSelector-renameContent"
266
282
  })({
267
283
  position: "fixed",
@@ -274,8 +290,8 @@ const P = {
274
290
  overflow: "auto",
275
291
  borderRadius: "var(--bfrs-radius-lg)",
276
292
  borderWidth: "1px",
277
- ...pe,
278
293
  ...fe,
294
+ ...me,
279
295
  padding: "1.25rem",
280
296
  ...P,
281
297
  "--tw-shadow": "var(--bfrs-shadow-overlay)",
@@ -283,24 +299,24 @@ const P = {
283
299
  boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
284
300
  outline: "2px solid transparent",
285
301
  outlineOffset: "2px",
286
- ...Xe({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
287
- ...Ut,
302
+ ...Qe({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
303
+ ...Zt,
288
304
  animation: "bfrs-bfrs-modal-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
289
- }), Ge = /* @__PURE__ */ i(Et, {
305
+ }), Ye = /* @__PURE__ */ i(Ht, {
290
306
  label: "AgenticTableViewSelector-renameTitle"
291
307
  })({
292
308
  fontSize: "1.125rem",
293
309
  lineHeight: "1.5rem",
294
310
  fontWeight: 700,
295
311
  ...P
296
- }), Je = /* @__PURE__ */ i(Ft, {
312
+ }), Ge = /* @__PURE__ */ i(Et, {
297
313
  label: "AgenticTableViewSelector-renameDescription"
298
314
  })({
299
315
  marginTop: ".25rem",
300
316
  fontSize: ".75rem",
301
317
  lineHeight: "1.25rem",
302
318
  ...W
303
- }), hr = /* @__PURE__ */ i("label", {
319
+ }), gr = /* @__PURE__ */ i("label", {
304
320
  label: "AgenticTableViewSelector-renameLabel"
305
321
  })({
306
322
  display: "block",
@@ -309,7 +325,7 @@ const P = {
309
325
  lineHeight: "1rem",
310
326
  fontWeight: 700,
311
327
  ...P
312
- }), br = /* @__PURE__ */ i("input", {
328
+ }), wr = /* @__PURE__ */ i("input", {
313
329
  label: "AgenticTableViewSelector-renameInput"
314
330
  })({
315
331
  marginTop: ".5rem",
@@ -319,7 +335,7 @@ const P = {
319
335
  borderWidth: "1.5px",
320
336
  "--tw-border-opacity": "1",
321
337
  borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))",
322
- ...fe,
338
+ ...me,
323
339
  paddingLeft: ".75rem",
324
340
  paddingRight: ".75rem",
325
341
  fontSize: ".875rem",
@@ -328,26 +344,26 @@ const P = {
328
344
  ...P,
329
345
  outline: "2px solid transparent",
330
346
  outlineOffset: "2px",
331
- "&:focus-visible": me("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
332
- }), Qe = /* @__PURE__ */ i("div", {
347
+ "&:focus-visible": ue("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
348
+ }), Je = /* @__PURE__ */ i("div", {
333
349
  label: "AgenticTableViewSelector-renameFooter"
334
350
  })({
335
351
  marginTop: "1.5rem",
336
352
  display: "flex",
337
353
  justifyContent: "flex-end",
338
354
  gap: ".625rem"
339
- }), gr = /* @__PURE__ */ i(G, {
355
+ }), vr = /* @__PURE__ */ i(G, {
340
356
  label: "AgenticTableViewSelector-renameSubmitButton"
341
357
  })({
342
358
  "&&:disabled": {
343
359
  opacity: 1,
344
360
  cursor: "not-allowed",
345
361
  "--tw-bg-opacity": "1",
346
- backgroundColor: "hsl(var(--bfrs-color-surface-muted) / var(--tw-bg-opacity, 1))",
362
+ backgroundColor: "hsl(var(--bfrs-color-control-disabled, var(--bfrs-color-surface-muted)) / var(--tw-bg-opacity, 1))",
347
363
  "--tw-text-opacity": "1",
348
- color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
364
+ color: "hsl(var(--bfrs-color-control-disabled-text, var(--bfrs-color-text-muted)) / var(--tw-text-opacity, 1))"
349
365
  }
350
- }), wr = /* @__PURE__ */ i("p", {
366
+ }), yr = /* @__PURE__ */ i("p", {
351
367
  label: "AgenticTableViewSelector-renameFieldError"
352
368
  })({
353
369
  marginTop: ".375rem",
@@ -356,145 +372,145 @@ const P = {
356
372
  "--tw-text-opacity": "1",
357
373
  color: "hsl(var(--bfrs-color-danger) / var(--tw-text-opacity, 1))"
358
374
  });
359
- function I(n, o) {
360
- return o ? n.find((r) => r.view_id === o) ?? null : null;
375
+ function I(o, n) {
376
+ return n ? o.find((r) => r.view_id === n) ?? null : null;
361
377
  }
362
- function vr(n, o, r) {
378
+ function xr(o, n, r) {
363
379
  var R;
364
- const x = [], T = /* @__PURE__ */ new Set(), _ = o ?? ((R = n.find((c) => c.is_default)) == null ? void 0 : R.view_id) ?? null, h = (c) => {
365
- if (!c || T.has(c)) return;
366
- const b = I(n, c);
367
- b && (x.push(b), T.add(b.view_id));
380
+ const S = [], T = /* @__PURE__ */ new Set(), _ = n ?? ((R = o.find((s) => s.is_default)) == null ? void 0 : R.view_id) ?? null, b = (s) => {
381
+ if (!s || T.has(s)) return;
382
+ const h = I(o, s);
383
+ h && (S.push(h), T.add(h.view_id));
368
384
  };
369
- h(_), h(r);
370
- for (const c of n)
371
- T.has(c.view_id) || (x.push(c), T.add(c.view_id));
372
- return x;
385
+ b(_), b(r);
386
+ for (const s of o)
387
+ T.has(s.view_id) || (S.push(s), T.add(s.view_id));
388
+ return S;
373
389
  }
374
- const yr = /* @__PURE__ */ new Set(["true", "1"]);
375
- function Sr() {
390
+ const Sr = /* @__PURE__ */ new Set(["true", "1"]);
391
+ function Tr() {
376
392
  if (typeof window > "u") return !1;
377
- const n = new URLSearchParams(window.location.search).get("skip_primary_view");
378
- return n !== null && yr.has(n.trim().toLowerCase());
393
+ const o = new URLSearchParams(window.location.search).get("skip_primary_view");
394
+ return o !== null && Sr.has(o.trim().toLowerCase());
379
395
  }
380
- function xr(n) {
381
- return n ? [
396
+ function _r(o) {
397
+ return o ? [
382
398
  "api",
383
- n.viewType && n.tab ? "scoped" : "local",
384
- n.saveEndpoint || n.endpoint ? "remote-save" : "local-save"
399
+ o.viewType && o.tab ? "scoped" : "local",
400
+ o.saveEndpoint || o.endpoint ? "remote-save" : "local-save"
385
401
  ].join(":") : "none";
386
402
  }
387
- function Tr(n) {
388
- const o = () => n.current;
403
+ function Rr(o) {
404
+ const n = () => o.current;
389
405
  return {
390
406
  get baseUrl() {
391
407
  var r;
392
- return (r = o()) == null ? void 0 : r.baseUrl;
408
+ return (r = n()) == null ? void 0 : r.baseUrl;
393
409
  },
394
410
  get endpoint() {
395
411
  var r;
396
- return (r = o()) == null ? void 0 : r.endpoint;
412
+ return (r = n()) == null ? void 0 : r.endpoint;
397
413
  },
398
414
  get saveEndpoint() {
399
415
  var r;
400
- return (r = o()) == null ? void 0 : r.saveEndpoint;
416
+ return (r = n()) == null ? void 0 : r.saveEndpoint;
401
417
  },
402
418
  get listEndpoint() {
403
419
  var r;
404
- return (r = o()) == null ? void 0 : r.listEndpoint;
420
+ return (r = n()) == null ? void 0 : r.listEndpoint;
405
421
  },
406
422
  get updateEndpoint() {
407
423
  var r;
408
- return (r = o()) == null ? void 0 : r.updateEndpoint;
424
+ return (r = n()) == null ? void 0 : r.updateEndpoint;
409
425
  },
410
426
  get deleteEndpoint() {
411
427
  var r;
412
- return (r = o()) == null ? void 0 : r.deleteEndpoint;
428
+ return (r = n()) == null ? void 0 : r.deleteEndpoint;
413
429
  },
414
430
  get viewType() {
415
431
  var r;
416
- return (r = o()) == null ? void 0 : r.viewType;
432
+ return (r = n()) == null ? void 0 : r.viewType;
417
433
  },
418
434
  get tab() {
419
435
  var r;
420
- return (r = o()) == null ? void 0 : r.tab;
436
+ return (r = n()) == null ? void 0 : r.tab;
421
437
  },
422
438
  get token() {
423
439
  var r;
424
- return (r = o()) == null ? void 0 : r.token;
440
+ return (r = n()) == null ? void 0 : r.token;
425
441
  },
426
442
  get headers() {
427
443
  var r;
428
- return (r = o()) == null ? void 0 : r.headers;
444
+ return (r = n()) == null ? void 0 : r.headers;
429
445
  },
430
446
  get credentials() {
431
447
  var r;
432
- return (r = o()) == null ? void 0 : r.credentials;
448
+ return (r = n()) == null ? void 0 : r.credentials;
433
449
  },
434
450
  get fetcher() {
435
451
  var r;
436
- return (r = o()) == null ? void 0 : r.fetcher;
452
+ return (r = n()) == null ? void 0 : r.fetcher;
437
453
  }
438
454
  };
439
455
  }
440
- function Mr({
441
- screenName: n,
442
- store: o,
456
+ function qr({
457
+ screenName: o,
458
+ store: n,
443
459
  saveApi: r,
444
- value: x,
460
+ value: S,
445
461
  defaultValue: T,
446
462
  onValueChange: _,
447
- onViewSelect: h,
463
+ onViewSelect: b,
448
464
  onPrimaryViewChange: R,
449
- onUnsetPrimaryView: c,
450
- onRenameView: b,
465
+ onUnsetPrimaryView: s,
466
+ onRenameView: h,
451
467
  onDeleteView: J,
452
- onResetSavedFilters: A,
453
- analytics: Ue,
468
+ onResetSavedFilters: k,
469
+ analytics: Ze,
454
470
  onError: E,
455
- triggerLabel: et,
456
- placeholder: tt = "Views",
457
- viewsLabel: rt = "VIEWS",
458
- primaryHintLabel: he = "Set a view as primary to load it automatically. With no primary view, the table opens in its default state.",
459
- emptyLabel: nt = "No saved views",
460
- loadingLabel: it = "Loading views",
471
+ triggerLabel: Ue,
472
+ placeholder: et = "Views",
473
+ viewsLabel: tt = "VIEWS",
474
+ primaryHintLabel: pe = "Set a view as primary to load it automatically. With no primary view, the table opens in its default state.",
475
+ emptyLabel: rt = "No saved views",
476
+ loadingLabel: ot = "Loading views",
461
477
  defaultViewLabel: be = "Default",
462
- setPrimaryLabel: ge = "Set as Primary View",
463
- unsetPrimaryLabel: ot = "Unset as Primary",
464
- renameLabel: at = "Rename",
465
- deleteLabel: lt = "Delete",
466
- renameTitle: st = "Rename view",
467
- renameDescription: we = "Update the saved view name.",
478
+ setPrimaryLabel: he = "Set as Primary View",
479
+ unsetPrimaryLabel: it = "Unset as Primary",
480
+ renameLabel: nt = "Rename",
481
+ deleteLabel: at = "Delete",
482
+ renameTitle: lt = "Rename view",
483
+ renameDescription: ge = "Update the saved view name.",
468
484
  renameInputLabel: ct = "View name",
469
- renameCancelLabel: dt = "Cancel",
470
- renameSaveLabel: ut = "Save",
471
- deleteTitle: mt = "Delete view",
472
- deleteDescription: ft,
473
- deleteCancelLabel: pt = "Cancel",
474
- deleteConfirmLabel: ht = "Delete",
485
+ renameCancelLabel: st = "Cancel",
486
+ renameSaveLabel: dt = "Save",
487
+ deleteTitle: ut = "Delete view",
488
+ deleteDescription: mt,
489
+ deleteCancelLabel: ft = "Cancel",
490
+ deleteConfirmLabel: pt = "Delete",
475
491
  size: bt = "sm",
476
- disabled: gt = !1,
477
- className: wt,
478
- triggerClassName: vt,
479
- contentClassName: yt,
480
- actionMenuClassName: ve
492
+ disabled: ht = !1,
493
+ className: gt,
494
+ triggerClassName: wt,
495
+ contentClassName: vt,
496
+ actionMenuClassName: we
481
497
  }) {
482
- const ye = S(r);
483
- ye.current = r;
484
- const Se = xr(r), Q = se(
485
- () => Se === "none" ? void 0 : Tr(ye),
486
- [Se]
487
- ), m = se(
488
- () => o ?? rr(n, Q ? { saveApi: Q } : void 0),
489
- [n, o, Q]
490
- ), X = x !== void 0, F = !Sr(), [Z, U] = f(!1), [k, St] = f([]), [B, xt] = f(null), [Tt, xe] = f(T ?? null), [Te, _e] = f(!1), [j, Re] = f(null), [O, ee] = f(""), [g, Ae] = f(null), [ke, N] = f(null), C = S(!1), L = x ?? Tt, H = S(L), te = S(X), re = S(!1), w = S(!1), z = S(null), Ce = Qt();
498
+ const ve = x(r);
499
+ ve.current = r;
500
+ const ye = _r(r), Q = ce(
501
+ () => ye === "none" ? void 0 : Rr(ve),
502
+ [ye]
503
+ ), m = ce(
504
+ () => n ?? tr(o, Q ? { saveApi: Q } : void 0),
505
+ [o, n, Q]
506
+ ), X = S !== void 0, F = !Tr(), [Z, U] = f(!1), [C, yt] = f([]), [O, xt] = f(null), [St, xe] = f(T ?? null), [Se, Te] = f(!1), [j, _e] = f(null), [B, ee] = f(""), [g, Re] = f(null), [ke, N] = f(null), A = x(!1), L = S ?? St, H = x(L), te = x(X), re = x(!1), w = x(!1), z = x(null), Ce = Jt();
491
507
  $(() => {
492
508
  H.current = L, L && (w.current = !1);
493
509
  }, [L]), $(() => {
494
510
  te.current = X;
495
511
  }, [X]), $(() => {
496
512
  z.current = null, re.current = !1, w.current = !1;
497
- }, [m, n]);
513
+ }, [m, o]);
498
514
  const v = q(
499
515
  (e) => {
500
516
  E == null || E(e);
@@ -502,33 +518,33 @@ function Mr({
502
518
  [E]
503
519
  ), p = q(
504
520
  (e) => {
505
- e && (w.current = !1), te.current || xe((e == null ? void 0 : e.view_id) ?? null), _ == null || _((e == null ? void 0 : e.view_id) ?? null, e), e && (h == null || h(e));
521
+ e && (w.current = !1), te.current || xe((e == null ? void 0 : e.view_id) ?? null), _ == null || _((e == null ? void 0 : e.view_id) ?? null, e), e && (b == null || b(e));
506
522
  },
507
- [_, h]
508
- ), ne = q(
523
+ [_, b]
524
+ ), oe = q(
509
525
  (e) => {
510
526
  p(e);
511
527
  },
512
528
  [p]
513
529
  ), y = q(
514
530
  async (e) => {
515
- var We;
531
+ var Pe;
516
532
  const a = e === void 0 ? "__default__" : e ?? "__none__";
517
- if (((We = z.current) == null ? void 0 : We.key) === a) return z.current.promise;
533
+ if (((Pe = z.current) == null ? void 0 : Pe.key) === a) return z.current.promise;
518
534
  const d = { key: a, promise: Promise.resolve(null) };
519
535
  return z.current = d, d.promise = (async () => {
520
- _e(!0);
536
+ Te(!0);
521
537
  try {
522
- const D = await m.list(), V = D.find((Ot) => Ot.is_default) ?? null, Wt = e !== void 0 ? e : H.current, Be = I(D, Wt), Bt = F && !w.current, le = Be || !Bt ? null : I(D, V == null ? void 0 : V.view_id), M = Be ?? le ?? null;
523
- return St(D), xt((V == null ? void 0 : V.view_id) ?? null), te.current || xe((M == null ? void 0 : M.view_id) ?? null), F && le && e === void 0 && !H.current && !re.current && (re.current = !0, ne(le)), M;
538
+ const D = await m.list(), V = D.find((Ot) => Ot.is_default) ?? null, Pt = e !== void 0 ? e : H.current, We = I(D, Pt), Wt = F && !w.current, le = We || !Wt ? null : I(D, V == null ? void 0 : V.view_id), M = We ?? le ?? null;
539
+ return yt(D), xt((V == null ? void 0 : V.view_id) ?? null), te.current || xe((M == null ? void 0 : M.view_id) ?? null), F && le && e === void 0 && !H.current && !re.current && (re.current = !0, oe(le)), M;
524
540
  } catch (D) {
525
541
  return v(D), null;
526
542
  } finally {
527
- _e(!1), z.current === d && (z.current = null);
543
+ Te(!1), z.current === d && (z.current = null);
528
544
  }
529
545
  })(), d.promise;
530
546
  },
531
- [F, ne, v, m, p]
547
+ [F, oe, v, m, p]
532
548
  );
533
549
  $(() => {
534
550
  const e = () => {
@@ -536,11 +552,11 @@ function Mr({
536
552
  };
537
553
  return e(), m.subscribe(e);
538
554
  }, [y, m]);
539
- const l = I(k, L) ?? (F && !w.current ? I(k, B) : null), _t = se(
540
- () => vr(k, B, l == null ? void 0 : l.view_id),
541
- [B, l == null ? void 0 : l.view_id, k]
542
- ), K = !l, ie = B === null, Rt = et ?? (l == null ? void 0 : l.name) ?? (K ? be : tt), oe = k.length > 0, u = tr(Ue, n), At = (e) => {
543
- U(!1), u.viewSelected(), ne(e);
555
+ const l = I(C, L) ?? (F && !w.current ? I(C, O) : null), Tt = ce(
556
+ () => xr(C, O, l == null ? void 0 : l.view_id),
557
+ [O, l == null ? void 0 : l.view_id, C]
558
+ ), K = !l, ie = O === null, _t = Ue ?? (l == null ? void 0 : l.name) ?? (K ? be : et), ne = C.length > 0, u = er(Ze, o), Rt = (e) => {
559
+ U(!1), u.viewSelected(), oe(e);
544
560
  }, kt = (e) => {
545
561
  u.setPrimary(), m.setPrimary(e.view_id).then(async (a) => {
546
562
  const d = await y(e.view_id);
@@ -549,161 +565,161 @@ function Mr({
549
565
  }, Ct = (e) => {
550
566
  u.unsetPrimary(), m.unsetPrimary(e.view_id).then(async (a) => {
551
567
  const d = await y(e.view_id);
552
- p(d ?? a), c == null || c(a);
568
+ p(d ?? a), s == null || s(a);
553
569
  }).catch(v);
554
- }, ze = () => Ae(null), De = () => {
555
- u.deleteDismissed("cancel"), ze();
556
- }, zt = (e) => {
557
- if (C.current) return;
558
- u.deleteConfirmed(), C.current = !0, N("delete");
570
+ }, Ae = () => Re(null), ze = () => {
571
+ u.deleteDismissed("cancel"), Ae();
572
+ }, At = (e) => {
573
+ if (A.current) return;
574
+ u.deleteConfirmed(), A.current = !0, N("delete");
559
575
  const a = H.current === e.view_id;
560
576
  m.remove(e.view_id).then(async () => {
561
577
  const d = await y(a ? null : H.current);
562
578
  a && p(d), J == null || J(e.view_id);
563
579
  }).catch(v).finally(() => {
564
- C.current = !1, N(null), ze();
580
+ A.current = !1, N(null), Ae();
565
581
  });
582
+ }, zt = () => {
583
+ g && At(g);
584
+ }, De = () => {
585
+ w.current = !0, u.defaultViewSelected(), p(null), k == null || k(), U(!1);
566
586
  }, Dt = () => {
567
- g && zt(g);
568
- }, Ve = () => {
569
- w.current = !0, u.defaultViewSelected(), p(null), A == null || A(), U(!1);
570
- }, Vt = () => {
571
- const e = I(k, B);
587
+ const e = I(C, O);
572
588
  if (!e) {
573
- Ve();
589
+ De();
574
590
  return;
575
591
  }
576
592
  u.unsetPrimary(), m.unsetPrimary(e.view_id).then(async (a) => {
577
- w.current = !0, await y(null), p(null), A == null || A(), c == null || c(a);
593
+ w.current = !0, await y(null), p(null), k == null || k(), s == null || s(a);
578
594
  }).catch(v);
579
- }, It = (e) => {
580
- u.renameOpened(), Re(e), ee(e.name);
595
+ }, Vt = (e) => {
596
+ u.renameOpened(), _e(e), ee(e.name);
597
+ }, Ve = () => {
598
+ _e(null), ee("");
581
599
  }, Ie = () => {
582
- Re(null), ee("");
583
- }, Pe = () => {
584
- u.renameDismissed("cancel"), Ie();
585
- }, Pt = (e) => {
600
+ u.renameDismissed("cancel"), Ve();
601
+ }, It = (e) => {
586
602
  e.preventDefault();
587
- const a = O.trim();
588
- !j || !a || je(a) || C.current || (u.renameSubmitted(), C.current = !0, N("rename"), m.rename(j.view_id, a).then(async (d) => {
589
- await y(j.view_id), b == null || b(d), Ie();
603
+ const a = B.trim();
604
+ !j || !a || Fe(a) || A.current || (u.renameSubmitted(), A.current = !0, N("rename"), m.rename(j.view_id, a).then(async (d) => {
605
+ await y(j.view_id), h == null || h(d), Ve();
590
606
  }).catch(v).finally(() => {
591
- C.current = !1, N(null);
607
+ A.current = !1, N(null);
592
608
  }));
593
- }, ae = je(O);
594
- return oe ? /* @__PURE__ */ s(or, { className: wt, children: [
595
- /* @__PURE__ */ s(jt, { open: Z, onOpenChange: U, children: [
596
- /* @__PURE__ */ t(Nt, { asChild: !0, children: /* @__PURE__ */ s(
597
- ar,
609
+ }, ae = Fe(B);
610
+ return ne ? /* @__PURE__ */ c(lr, { className: gt, children: [
611
+ /* @__PURE__ */ c(Ft, { open: Z, onOpenChange: U, children: [
612
+ /* @__PURE__ */ t(jt, { asChild: !0, children: /* @__PURE__ */ c(
613
+ cr,
598
614
  {
599
615
  type: "button",
600
616
  "aria-label": "Saved views",
601
- className: vt,
602
- disabled: gt,
617
+ className: wt,
618
+ disabled: ht,
603
619
  "data-filled": l ? "" : void 0,
604
620
  ownerState: { open: Z, empty: !l, filled: !!l, defaultSelected: K, size: bt },
605
621
  children: [
606
- /* @__PURE__ */ t($t, { size: 13 }),
607
- /* @__PURE__ */ t(lr, { children: Rt }),
622
+ /* @__PURE__ */ t(Mt, { size: 13 }),
623
+ /* @__PURE__ */ t(sr, { children: _t }),
608
624
  l != null && l.is_default || K && ie ? /* @__PURE__ */ t(de, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
609
- /* @__PURE__ */ t(sr, { size: 13, ownerState: { open: Z } })
625
+ /* @__PURE__ */ t(dr, { size: 13, ownerState: { open: Z } })
610
626
  ]
611
627
  }
612
628
  ) }),
613
- /* @__PURE__ */ t(Kt, { children: /* @__PURE__ */ t(ce, { children: /* @__PURE__ */ s(
614
- cr,
629
+ /* @__PURE__ */ t(Nt, { children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ c(
630
+ ur,
615
631
  {
616
632
  align: "start",
617
633
  sideOffset: 8,
618
- collisionPadding: er,
619
- className: yt,
634
+ collisionPadding: Ut,
635
+ className: vt,
620
636
  children: [
621
- /* @__PURE__ */ s(dr, { children: [
622
- rt,
623
- he ? /* @__PURE__ */ t(nr, { content: he, side: "right", variant: "white", children: /* @__PURE__ */ t(ur, { role: "img", "aria-label": "About primary views", children: /* @__PURE__ */ t(Yt, { size: 13, weight: "fill", "aria-hidden": "true" }) }) }) : null
637
+ /* @__PURE__ */ c(mr, { children: [
638
+ tt,
639
+ pe ? /* @__PURE__ */ t(rr, { content: pe, side: "right", variant: "white", children: /* @__PURE__ */ t(fr, { role: "img", "aria-label": "About primary views", children: /* @__PURE__ */ t(qt, { size: 13, weight: "fill", "aria-hidden": "true" }) }) }) : null
624
640
  ] }),
625
- /* @__PURE__ */ s(mr, { children: [
626
- Te && !oe ? /* @__PURE__ */ t($e, { children: it }) : null,
627
- !Te && !oe ? /* @__PURE__ */ t($e, { children: nt }) : null,
628
- /* @__PURE__ */ s(fr, { "data-default-view-surface": !0, children: [
629
- /* @__PURE__ */ s(Ke, { type: "button", ownerState: { selected: K }, onClick: Ve, children: [
630
- /* @__PURE__ */ t(Me, { children: be }),
641
+ /* @__PURE__ */ c(pr, { children: [
642
+ Se && !ne ? /* @__PURE__ */ t(Me, { children: ot }) : null,
643
+ !Se && !ne ? /* @__PURE__ */ t(Me, { children: rt }) : null,
644
+ /* @__PURE__ */ c(br, { "data-default-view-surface": !0, children: [
645
+ /* @__PURE__ */ c(Ne, { type: "button", ownerState: { selected: K }, onClick: De, children: [
646
+ /* @__PURE__ */ t(Ke, { children: be }),
631
647
  ie ? /* @__PURE__ */ t(de, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
632
648
  ] }),
633
649
  /* @__PURE__ */ t(
634
- Ne,
650
+ je,
635
651
  {
636
652
  align: "start",
637
653
  side: "right",
638
654
  size: "sm",
639
- className: ve,
655
+ className: we,
640
656
  trigger: /* @__PURE__ */ t(
641
- Fe,
657
+ Ee,
642
658
  {
643
659
  variant: "secondary",
644
660
  size: "sm",
645
- icon: /* @__PURE__ */ t(Ee, { size: 14, weight: "bold" }),
661
+ icon: /* @__PURE__ */ t(He, { size: 14, weight: "bold" }),
646
662
  "aria-label": "View actions for Default"
647
663
  }
648
664
  ),
649
665
  items: [
650
666
  {
651
- label: ge,
667
+ label: he,
652
668
  icon: /* @__PURE__ */ t(Y, { size: 16 }),
653
669
  disabled: ie,
654
- onSelect: Vt
670
+ onSelect: Dt
655
671
  }
656
672
  ]
657
673
  }
658
674
  )
659
675
  ] }),
660
- /* @__PURE__ */ t(pr, { role: "separator", "data-default-view-divider": !0 }),
661
- _t.map((e) => {
676
+ /* @__PURE__ */ t(hr, { role: "separator", "data-default-view-divider": !0 }),
677
+ Tt.map((e) => {
662
678
  const a = (l == null ? void 0 : l.view_id) === e.view_id;
663
- return /* @__PURE__ */ s(Ze, { children: [
664
- /* @__PURE__ */ s(Ke, { type: "button", ownerState: { selected: a }, onClick: () => At(e), children: [
665
- /* @__PURE__ */ t(Me, { children: e.name }),
679
+ return /* @__PURE__ */ c(Xe, { children: [
680
+ /* @__PURE__ */ c(Ne, { type: "button", ownerState: { selected: a }, onClick: () => Rt(e), children: [
681
+ /* @__PURE__ */ t(Ke, { children: e.name }),
666
682
  e.is_default ? /* @__PURE__ */ t(de, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
667
683
  ] }),
668
684
  /* @__PURE__ */ t(
669
- Ne,
685
+ je,
670
686
  {
671
687
  align: "start",
672
688
  side: "right",
673
689
  size: "sm",
674
- className: ve,
690
+ className: we,
675
691
  trigger: /* @__PURE__ */ t(
676
- Fe,
692
+ Ee,
677
693
  {
678
694
  variant: "secondary",
679
695
  size: "sm",
680
- icon: /* @__PURE__ */ t(Ee, { size: 14, weight: "bold" }),
696
+ icon: /* @__PURE__ */ t(He, { size: 14, weight: "bold" }),
681
697
  "aria-label": `View actions for ${e.name}`
682
698
  }
683
699
  ),
684
700
  items: [
685
701
  ...e.is_system_defined ? [] : [
686
702
  e.is_default ? {
687
- label: ot,
703
+ label: it,
688
704
  icon: /* @__PURE__ */ t(Y, { size: 16 }),
689
705
  onSelect: () => Ct(e)
690
706
  } : {
691
- label: ge,
707
+ label: he,
692
708
  icon: /* @__PURE__ */ t(Y, { size: 16 }),
693
709
  onSelect: () => kt(e)
694
710
  }
695
711
  ],
696
712
  {
697
- label: at,
698
- icon: /* @__PURE__ */ t(Gt, { size: 16 }),
699
- onSelect: () => It(e)
713
+ label: nt,
714
+ icon: /* @__PURE__ */ t(Yt, { size: 16 }),
715
+ onSelect: () => Vt(e)
700
716
  },
701
717
  {
702
- label: lt,
703
- icon: /* @__PURE__ */ t(Jt, { size: 16 }),
718
+ label: at,
719
+ icon: /* @__PURE__ */ t(Gt, { size: 16 }),
704
720
  destructive: !0,
705
721
  onSelect: () => {
706
- u.deleteOpened(), Ae(e);
722
+ u.deleteOpened(), Re(e);
707
723
  }
708
724
  }
709
725
  ]
@@ -716,67 +732,67 @@ function Mr({
716
732
  }
717
733
  ) }) })
718
734
  ] }),
719
- /* @__PURE__ */ t(Le, { open: !!j, onOpenChange: (e) => {
720
- e || Pe();
721
- }, children: /* @__PURE__ */ t(He, { children: /* @__PURE__ */ s(ce, { children: [
722
- /* @__PURE__ */ t(qe, {}),
723
- /* @__PURE__ */ t(Ye, { children: /* @__PURE__ */ s("form", { onSubmit: Pt, children: [
724
- /* @__PURE__ */ t(Ge, { children: st }),
725
- we ? /* @__PURE__ */ t(Je, { children: we }) : null,
726
- /* @__PURE__ */ t(hr, { htmlFor: Ce, children: ct }),
735
+ /* @__PURE__ */ t(Be, { open: !!j, onOpenChange: (e) => {
736
+ e || Ie();
737
+ }, children: /* @__PURE__ */ t(Le, { children: /* @__PURE__ */ c(se, { children: [
738
+ /* @__PURE__ */ t($e, {}),
739
+ /* @__PURE__ */ t(qe, { children: /* @__PURE__ */ c("form", { onSubmit: It, children: [
740
+ /* @__PURE__ */ t(Ye, { children: lt }),
741
+ ge ? /* @__PURE__ */ t(Ge, { children: ge }) : null,
742
+ /* @__PURE__ */ t(gr, { htmlFor: Ce, children: ct }),
727
743
  /* @__PURE__ */ t(
728
- br,
744
+ wr,
729
745
  {
730
746
  id: Ce,
731
747
  autoFocus: !0,
732
- value: O,
748
+ value: B,
733
749
  onChange: (e) => ee(e.currentTarget.value),
734
750
  "aria-invalid": ae
735
751
  }
736
752
  ),
737
- ae ? /* @__PURE__ */ s(wr, { children: [
753
+ ae ? /* @__PURE__ */ c(yr, { children: [
738
754
  "“",
739
- O.trim(),
755
+ B.trim(),
740
756
  "” is reserved. Choose a different name."
741
757
  ] }) : null,
742
- /* @__PURE__ */ s(Qe, { children: [
743
- /* @__PURE__ */ t(G, { type: "button", variant: "secondary", onClick: Pe, children: dt }),
758
+ /* @__PURE__ */ c(Je, { children: [
759
+ /* @__PURE__ */ t(G, { type: "button", variant: "secondary", onClick: Ie, children: st }),
744
760
  /* @__PURE__ */ t(
745
- gr,
761
+ vr,
746
762
  {
747
763
  type: "submit",
748
764
  loading: ke === "rename",
749
- disabled: O.trim().length === 0 || ae,
750
- children: ut
765
+ disabled: B.trim().length === 0 || ae,
766
+ children: dt
751
767
  }
752
768
  )
753
769
  ] })
754
770
  ] }) })
755
771
  ] }) }) }),
756
- /* @__PURE__ */ t(Le, { open: !!g, onOpenChange: (e) => {
757
- e || De();
758
- }, children: /* @__PURE__ */ t(He, { children: /* @__PURE__ */ s(ce, { children: [
759
- /* @__PURE__ */ t(qe, {}),
760
- /* @__PURE__ */ s(Ye, { children: [
761
- /* @__PURE__ */ t(Ge, { children: mt }),
762
- /* @__PURE__ */ t(Je, { children: ft ?? /* @__PURE__ */ s(Oe, { children: [
772
+ /* @__PURE__ */ t(Be, { open: !!g, onOpenChange: (e) => {
773
+ e || ze();
774
+ }, children: /* @__PURE__ */ t(Le, { children: /* @__PURE__ */ c(se, { children: [
775
+ /* @__PURE__ */ t($e, {}),
776
+ /* @__PURE__ */ c(qe, { children: [
777
+ /* @__PURE__ */ t(Ye, { children: ut }),
778
+ /* @__PURE__ */ t(Ge, { children: mt ?? /* @__PURE__ */ c(Oe, { children: [
763
779
  "Are you sure you want to delete",
764
- g != null && g.name ? /* @__PURE__ */ s(Oe, { children: [
780
+ g != null && g.name ? /* @__PURE__ */ c(Oe, { children: [
765
781
  " “",
766
782
  /* @__PURE__ */ t("strong", { children: g.name }),
767
783
  "”"
768
784
  ] }) : " this view",
769
785
  "? This can’t be undone."
770
786
  ] }) }),
771
- /* @__PURE__ */ s(Qe, { children: [
772
- /* @__PURE__ */ t(G, { type: "button", variant: "secondary", onClick: De, children: pt }),
773
- /* @__PURE__ */ t(G, { type: "button", variant: "danger", onClick: Dt, loading: ke === "delete", children: ht })
787
+ /* @__PURE__ */ c(Je, { children: [
788
+ /* @__PURE__ */ t(G, { type: "button", variant: "secondary", onClick: ze, children: ft }),
789
+ /* @__PURE__ */ t(G, { type: "button", variant: "danger", onClick: zt, loading: ke === "delete", children: pt })
774
790
  ] })
775
791
  ] })
776
792
  ] }) }) })
777
793
  ] }) : null;
778
794
  }
779
795
  export {
780
- Mr as TableViewSelector
796
+ qr as TableViewSelector
781
797
  };
782
798
  //# sourceMappingURL=TableViewSelector.js.map