stratosphere-ui 0.1.21 → 0.1.23

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.
@@ -3,7 +3,6 @@ export interface PaginationMetadata {
3
3
  pageCount: number;
4
4
  limit: number;
5
5
  itemCount: number;
6
- pages: Array<number | null>;
7
6
  }
8
7
  export interface PaginatedResults<Data> {
9
8
  metadata: PaginationMetadata;
@@ -0,0 +1,2 @@
1
+ import { PaginationMetadata } from './types';
2
+ export declare const getPageNumbers: (metadata?: PaginationMetadata) => Array<number | null>;
@@ -4479,7 +4479,7 @@ const rR = {
4479
4479
  },
4480
4480
  dismissAlertMessage: () => {
4481
4481
  }
4482
- }, aR = Hl(rR), QA = () => il(aR), d2 = ({
4482
+ }, aR = Hl(rR), QA = () => il(aR), p2 = ({
4483
4483
  children: i,
4484
4484
  initialData: c
4485
4485
  }) => {
@@ -4643,7 +4643,7 @@ const rR = {
4643
4643
  success: tz,
4644
4644
  warning: nz,
4645
4645
  error: XA
4646
- }, p2 = ({
4646
+ }, v2 = ({
4647
4647
  maxMessages: i
4648
4648
  }) => {
4649
4649
  const { alertMessages: c, dismissAlertMessage: u } = QA();
@@ -4794,7 +4794,7 @@ const ry = Bt(
4794
4794
  ] })
4795
4795
  );
4796
4796
  ry.displayName = "DropdownOption";
4797
- const v2 = ({
4797
+ const m2 = ({
4798
4798
  children: i,
4799
4799
  methods: c,
4800
4800
  onFormSubmit: u,
@@ -4822,7 +4822,7 @@ const v2 = ({
4822
4822
  fieldState: { error: u, isDirty: f }
4823
4823
  } = Ad({ name: i });
4824
4824
  return u === void 0 ? f && c ? "success" : "ghost" : "error";
4825
- }, m2 = () => {
4825
+ }, h2 = () => {
4826
4826
  const { getValues: i } = Jv();
4827
4827
  return {
4828
4828
  ..._k(),
@@ -4874,7 +4874,7 @@ const v2 = ({
4874
4874
  )
4875
4875
  );
4876
4876
  Ts.displayName = "FormLabel";
4877
- const h2 = ({
4877
+ const g2 = ({
4878
4878
  children: i,
4879
4879
  className: c,
4880
4880
  controllerProps: u,
@@ -4897,7 +4897,7 @@ const h2 = ({
4897
4897
  ({ children: i, className: c, ...u }, f) => /* @__PURE__ */ $("label", { className: vr("label", c), ref: f, ...u, children: /* @__PURE__ */ $("span", { className: "label-text-alt text-error", children: i }) })
4898
4898
  );
4899
4899
  dy.displayName = "FormError";
4900
- const g2 = ({
4900
+ const y2 = ({
4901
4901
  className: i,
4902
4902
  controllerProps: c,
4903
4903
  inputRef: u,
@@ -4937,7 +4937,7 @@ const g2 = ({
4937
4937
  ),
4938
4938
  (T == null ? void 0 : T.message) !== void 0 ? /* @__PURE__ */ $(dy, { children: T.message }) : null
4939
4939
  ] });
4940
- }, y2 = ({
4940
+ }, S2 = ({
4941
4941
  className: i,
4942
4942
  controllerProps: c,
4943
4943
  inputRef: u,
@@ -17661,7 +17661,7 @@ Check the render method of \`` + e + "`." : "";
17661
17661
  };
17662
17662
  }
17663
17663
  }
17664
- function o2(e) {
17664
+ function u2(e) {
17665
17665
  return e;
17666
17666
  }
17667
17667
  function wT(e) {
@@ -20143,10 +20143,10 @@ Incoming: %s`, re, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
20143
20143
  }
20144
20144
  return [b, p];
20145
20145
  }
20146
- function u2(e, t, a) {
20147
- }
20148
20146
  function s2(e, t, a) {
20149
20147
  }
20148
+ function c2(e, t, a) {
20149
+ }
20150
20150
  function C0(e, t, a) {
20151
20151
  var l = sn, s = mo(), p, y = la();
20152
20152
  if (y) {
@@ -26161,7 +26161,7 @@ let u$ = Eo, s$ = gr(function(i, c) {
26161
26161
  }), Te = Tn(() => ({ active: R, selected: T, disabled: m }), [R, T, m]);
26162
26162
  return hr({ ourProps: { id: f, ref: O, role: "option", tabIndex: m === !0 ? void 0 : -1, "aria-disabled": m === !0 ? !0 : void 0, "aria-selected": T, disabled: void 0, onClick: j, onFocus: z, onPointerEnter: J, onMouseEnter: J, onPointerMove: X, onMouseMove: X, onPointerLeave: le, onMouseLeave: le }, theirProps: v, slot: Te, defaultTag: g$, name: "Listbox.Option" });
26163
26163
  }), Kg = Object.assign(s$, { Button: f$, Label: p$, Options: h$, Option: y$ });
26164
- const b2 = ({
26164
+ const C2 = ({
26165
26165
  buttonColor: i,
26166
26166
  buttonRef: c,
26167
26167
  className: u,
@@ -26213,7 +26213,7 @@ const b2 = ({
26213
26213
  ]
26214
26214
  }
26215
26215
  );
26216
- }, C2 = ({
26216
+ }, x2 = ({
26217
26217
  children: i,
26218
26218
  className: c,
26219
26219
  controllerProps: u,
@@ -26232,19 +26232,19 @@ const b2 = ({
26232
26232
  i
26233
26233
  ] })
26234
26234
  ] });
26235
- }, RR = () => /* @__PURE__ */ $("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ $(SC, { className: "w-56" }) }), x2 = ({
26235
+ }, RR = () => /* @__PURE__ */ $("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ $(SC, { className: "w-56" }) }), E2 = ({
26236
26236
  children: i,
26237
26237
  isLoading: c,
26238
26238
  ...u
26239
26239
  }) => /* @__PURE__ */ $(MM, { ...u, children: c === !0 ? /* @__PURE__ */ $(RR, {}) : i }), S$ = Bt(
26240
- ({ actionButtons: i, children: c, className: u, onClose: f, open: m, title: g, ...v }, x) => /* @__PURE__ */ $(Kb, { as: Eo, onClose: f, open: m, static: !0, children: ({ open: E }) => /* @__PURE__ */ Vt(
26240
+ ({ actionButtons: i, children: c, className: u, onClose: f, open: m, title: g }, v) => /* @__PURE__ */ $(Kb, { as: Eo, onClose: f, open: m, static: !0, children: ({ open: x }) => /* @__PURE__ */ Vt(
26241
26241
  Kb.Panel,
26242
26242
  {
26243
26243
  as: Wg,
26244
26244
  className: vr("overflow-y-scroll scrollbar-none", u),
26245
- open: E,
26246
- ref: x,
26247
- ...v,
26245
+ open: x,
26246
+ responsive: !0,
26247
+ ref: v,
26248
26248
  children: [
26249
26249
  /* @__PURE__ */ $(
26250
26250
  Ul,
@@ -26260,29 +26260,41 @@ const b2 = ({
26260
26260
  ),
26261
26261
  /* @__PURE__ */ $(Kb.Title, { as: Wg.Header, className: "font-bold", children: g }),
26262
26262
  /* @__PURE__ */ $(Wg.Body, { children: c }),
26263
- i.length > 0 ? /* @__PURE__ */ $(Wg.Actions, { children: i.map((R, T) => /* @__PURE__ */ $(Ul, { ...R }, T)) }) : null
26263
+ i.length > 0 ? /* @__PURE__ */ $(Wg.Actions, { children: i.map((E, R) => /* @__PURE__ */ $(Ul, { ...E }, R)) }) : null
26264
26264
  ]
26265
26265
  }
26266
26266
  ) })
26267
26267
  );
26268
26268
  S$.displayName = "Modal";
26269
- const b$ = ({
26269
+ const b$ = (i) => i ? [
26270
+ 1,
26271
+ ...i.page > 3 ? [null] : [],
26272
+ ...[...Array(3).keys()].flatMap((c) => {
26273
+ const u = i.page + c - 1;
26274
+ return u > 1 && u < i.pageCount ? [u] : [];
26275
+ }),
26276
+ ...i.page < i.pageCount - 2 ? [null] : [],
26277
+ i.pageCount
26278
+ ] : [], C$ = ({
26270
26279
  className: i,
26271
26280
  metadata: c,
26272
26281
  onPaginationChange: u,
26273
26282
  size: f,
26274
26283
  ...m
26275
- }) => c !== void 0 ? /* @__PURE__ */ $(OA, { className: vr("mt-4", i), ...m, children: c == null ? void 0 : c.pages.map((g, v) => /* @__PURE__ */ $(
26276
- Ul,
26277
- {
26278
- active: g === c.page,
26279
- onClick: g !== null ? () => u(g) : void 0,
26280
- disabled: g === null,
26281
- size: f,
26282
- children: g ?? "..."
26283
- },
26284
- v
26285
- )) }) : null;
26284
+ }) => {
26285
+ const g = b$(c);
26286
+ return c ? /* @__PURE__ */ $(OA, { className: vr("mt-4", i), ...m, children: g.map((v, x) => /* @__PURE__ */ $(
26287
+ Ul,
26288
+ {
26289
+ active: v === c.page,
26290
+ onClick: v !== null ? () => u(v) : void 0,
26291
+ disabled: v === null,
26292
+ size: f,
26293
+ children: v ?? "..."
26294
+ },
26295
+ x
26296
+ )) }) : null;
26297
+ };
26286
26298
  /**
26287
26299
  * table-core
26288
26300
  *
@@ -26331,7 +26343,7 @@ function $t(i, c, u) {
26331
26343
  return m;
26332
26344
  };
26333
26345
  }
26334
- function C$(i, c, u, f) {
26346
+ function x$(i, c, u, f) {
26335
26347
  var m, g;
26336
26348
  const x = {
26337
26349
  ...i._getDefaultColumnDef(),
@@ -26410,7 +26422,7 @@ function Aw(i, c, u) {
26410
26422
  Object.assign(g, v.createHeader == null ? void 0 : v.createHeader(g, i));
26411
26423
  }), g;
26412
26424
  }
26413
- const x$ = {
26425
+ const E$ = {
26414
26426
  createTable: (i) => ({
26415
26427
  // Header Groups
26416
26428
  getHeaderGroups: $t(() => [i.getAllColumns(), i.getVisibleLeafColumns(), i.getState().columnPinning.left, i.getState().columnPinning.right], (c, u, f, m) => {
@@ -26621,7 +26633,7 @@ const Jg = {
26621
26633
  deltaPercentage: null,
26622
26634
  isResizingColumn: !1,
26623
26635
  columnSizingStart: []
26624
- }), E$ = {
26636
+ }), w$ = {
26625
26637
  getDefaultColumnDef: () => Jg,
26626
26638
  getInitialState: (i) => ({
26627
26639
  columnSizing: {},
@@ -26724,7 +26736,7 @@ const Jg = {
26724
26736
  var I;
26725
26737
  document.removeEventListener("touchmove", O.moveHandler), document.removeEventListener("touchend", O.upHandler), z.cancelable && (z.preventDefault(), z.stopPropagation()), N((I = z.touches[0]) == null ? void 0 : I.clientX);
26726
26738
  }
26727
- }, j = w$() ? {
26739
+ }, j = R$() ? {
26728
26740
  passive: !1
26729
26741
  } : !1;
26730
26742
  eC(m) ? (document.addEventListener("touchmove", O.moveHandler, j), document.addEventListener("touchend", O.upHandler, j)) : (document.addEventListener("mousemove", k.moveHandler, j), document.addEventListener("mouseup", k.upHandler, j)), c.setColumnSizingInfo((z) => ({
@@ -26769,7 +26781,7 @@ const Jg = {
26769
26781
  })
26770
26782
  };
26771
26783
  let ey = null;
26772
- function w$() {
26784
+ function R$() {
26773
26785
  if (typeof ey == "boolean")
26774
26786
  return ey;
26775
26787
  let i = !1;
@@ -26789,7 +26801,7 @@ function w$() {
26789
26801
  function eC(i) {
26790
26802
  return i.type === "touchstart";
26791
26803
  }
26792
- const R$ = {
26804
+ const T$ = {
26793
26805
  getInitialState: (i) => ({
26794
26806
  expanded: {},
26795
26807
  ...i
@@ -26950,7 +26962,7 @@ const hu = {
26950
26962
  function $l(i) {
26951
26963
  return i == null || i === "";
26952
26964
  }
26953
- const T$ = {
26965
+ const _$ = {
26954
26966
  getDefaultColumnDef: () => ({
26955
26967
  filterFn: "auto"
26956
26968
  }),
@@ -27083,35 +27095,35 @@ const T$ = {
27083
27095
  function zw(i, c, u) {
27084
27096
  return (i && i.autoRemove ? i.autoRemove(c, u) : !1) || typeof c > "u" || typeof c == "string" && !c;
27085
27097
  }
27086
- const _$ = (i, c, u) => u.reduce((f, m) => {
27098
+ const N$ = (i, c, u) => u.reduce((f, m) => {
27087
27099
  const g = m.getValue(i);
27088
27100
  return f + (typeof g == "number" ? g : 0);
27089
- }, 0), N$ = (i, c, u) => {
27101
+ }, 0), D$ = (i, c, u) => {
27090
27102
  let f;
27091
27103
  return u.forEach((m) => {
27092
27104
  const g = m.getValue(i);
27093
27105
  g != null && (f > g || f === void 0 && g >= g) && (f = g);
27094
27106
  }), f;
27095
- }, D$ = (i, c, u) => {
27107
+ }, O$ = (i, c, u) => {
27096
27108
  let f;
27097
27109
  return u.forEach((m) => {
27098
27110
  const g = m.getValue(i);
27099
27111
  g != null && (f < g || f === void 0 && g >= g) && (f = g);
27100
27112
  }), f;
27101
- }, O$ = (i, c, u) => {
27113
+ }, k$ = (i, c, u) => {
27102
27114
  let f, m;
27103
27115
  return u.forEach((g) => {
27104
27116
  const v = g.getValue(i);
27105
27117
  v != null && (f === void 0 ? v >= v && (f = m = v) : (f > v && (f = v), m < v && (m = v)));
27106
27118
  }), [f, m];
27107
- }, k$ = (i, c) => {
27119
+ }, M$ = (i, c) => {
27108
27120
  let u = 0, f = 0;
27109
27121
  if (c.forEach((m) => {
27110
27122
  let g = m.getValue(i);
27111
27123
  g != null && (g = +g) >= g && (++u, f += g);
27112
27124
  }), u)
27113
27125
  return f / u;
27114
- }, M$ = (i, c) => {
27126
+ }, L$ = (i, c) => {
27115
27127
  if (!c.length)
27116
27128
  return;
27117
27129
  let u = 0, f = 0;
@@ -27119,17 +27131,17 @@ const _$ = (i, c, u) => u.reduce((f, m) => {
27119
27131
  let g = m.getValue(i);
27120
27132
  typeof g == "number" && (u = Math.min(u, g), f = Math.max(f, g));
27121
27133
  }), (u + f) / 2;
27122
- }, L$ = (i, c) => Array.from(new Set(c.map((u) => u.getValue(i))).values()), A$ = (i, c) => new Set(c.map((u) => u.getValue(i))).size, z$ = (i, c) => c.length, tC = {
27123
- sum: _$,
27124
- min: N$,
27125
- max: D$,
27126
- extent: O$,
27127
- mean: k$,
27128
- median: M$,
27129
- unique: L$,
27130
- uniqueCount: A$,
27131
- count: z$
27132
- }, F$ = {
27134
+ }, A$ = (i, c) => Array.from(new Set(c.map((u) => u.getValue(i))).values()), z$ = (i, c) => new Set(c.map((u) => u.getValue(i))).size, F$ = (i, c) => c.length, tC = {
27135
+ sum: N$,
27136
+ min: D$,
27137
+ max: O$,
27138
+ extent: k$,
27139
+ mean: M$,
27140
+ median: L$,
27141
+ unique: A$,
27142
+ uniqueCount: z$,
27143
+ count: F$
27144
+ }, $$ = {
27133
27145
  getDefaultColumnDef: () => ({
27134
27146
  aggregatedCell: (i) => {
27135
27147
  var c, u;
@@ -27203,13 +27215,13 @@ const _$ = (i, c, u) => u.reduce((f, m) => {
27203
27215
  }
27204
27216
  })
27205
27217
  };
27206
- function $$(i, c, u) {
27218
+ function U$(i, c, u) {
27207
27219
  if (!(c != null && c.length) || !u)
27208
27220
  return i;
27209
27221
  const f = i.filter((g) => !c.includes(g.id));
27210
27222
  return u === "remove" ? f : [...c.map((g) => i.find((v) => v.id === g)).filter(Boolean), ...f];
27211
27223
  }
27212
- const U$ = {
27224
+ const H$ = {
27213
27225
  getInitialState: (i) => ({
27214
27226
  columnOrder: [],
27215
27227
  ...i
@@ -27235,7 +27247,7 @@ const U$ = {
27235
27247
  }
27236
27248
  g = [...g, ...x];
27237
27249
  }
27238
- return $$(g, u, f);
27250
+ return U$(g, u, f);
27239
27251
  }, {
27240
27252
  key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
27241
27253
  // debug: () => table.options.debugAll ?? table.options.debugTable,
@@ -27244,7 +27256,7 @@ const U$ = {
27244
27256
  }, pC = 0, vC = 10, nC = () => ({
27245
27257
  pageIndex: pC,
27246
27258
  pageSize: vC
27247
- }), H$ = {
27259
+ }), P$ = {
27248
27260
  getInitialState: (i) => ({
27249
27261
  ...i,
27250
27262
  pagination: {
@@ -27348,7 +27360,7 @@ const U$ = {
27348
27360
  }, rC = () => ({
27349
27361
  left: [],
27350
27362
  right: []
27351
- }), P$ = {
27363
+ }), V$ = {
27352
27364
  getInitialState: (i) => ({
27353
27365
  columnPinning: rC(),
27354
27366
  ...i
@@ -27470,7 +27482,7 @@ const U$ = {
27470
27482
  }
27471
27483
  })
27472
27484
  })
27473
- }, V$ = {
27485
+ }, I$ = {
27474
27486
  getInitialState: (i) => ({
27475
27487
  rowSelection: {},
27476
27488
  ...i
@@ -27722,10 +27734,10 @@ function Fw(i, c, u) {
27722
27734
  }
27723
27735
  return !1;
27724
27736
  }
27725
- const hC = /([0-9]+)/gm, I$ = (i, c, u) => AR(ws(i.getValue(u)).toLowerCase(), ws(c.getValue(u)).toLowerCase()), j$ = (i, c, u) => AR(ws(i.getValue(u)), ws(c.getValue(u))), B$ = (i, c, u) => UC(ws(i.getValue(u)).toLowerCase(), ws(c.getValue(u)).toLowerCase()), G$ = (i, c, u) => UC(ws(i.getValue(u)), ws(c.getValue(u))), Y$ = (i, c, u) => {
27737
+ const hC = /([0-9]+)/gm, j$ = (i, c, u) => AR(ws(i.getValue(u)).toLowerCase(), ws(c.getValue(u)).toLowerCase()), B$ = (i, c, u) => AR(ws(i.getValue(u)), ws(c.getValue(u))), G$ = (i, c, u) => UC(ws(i.getValue(u)).toLowerCase(), ws(c.getValue(u)).toLowerCase()), Y$ = (i, c, u) => UC(ws(i.getValue(u)), ws(c.getValue(u))), Q$ = (i, c, u) => {
27726
27738
  const f = i.getValue(u), m = c.getValue(u);
27727
27739
  return f > m ? 1 : f < m ? -1 : 0;
27728
- }, Q$ = (i, c, u) => UC(i.getValue(u), c.getValue(u));
27740
+ }, W$ = (i, c, u) => UC(i.getValue(u), c.getValue(u));
27729
27741
  function UC(i, c) {
27730
27742
  return i === c ? 0 : i > c ? 1 : -1;
27731
27743
  }
@@ -27753,13 +27765,13 @@ function AR(i, c) {
27753
27765
  return u.length - f.length;
27754
27766
  }
27755
27767
  const qv = {
27756
- alphanumeric: I$,
27757
- alphanumericCaseSensitive: j$,
27758
- text: B$,
27759
- textCaseSensitive: G$,
27760
- datetime: Y$,
27761
- basic: Q$
27762
- }, W$ = {
27768
+ alphanumeric: j$,
27769
+ alphanumericCaseSensitive: B$,
27770
+ text: G$,
27771
+ textCaseSensitive: Y$,
27772
+ datetime: Q$,
27773
+ basic: W$
27774
+ }, q$ = {
27763
27775
  getInitialState: (i) => ({
27764
27776
  sorting: [],
27765
27777
  ...i
@@ -27862,7 +27874,7 @@ const qv = {
27862
27874
  getPreSortedRowModel: () => i.getGroupedRowModel(),
27863
27875
  getSortedRowModel: () => (!i._getSortedRowModel && i.options.getSortedRowModel && (i._getSortedRowModel = i.options.getSortedRowModel(i)), i.options.manualSorting || !i._getSortedRowModel ? i.getPreSortedRowModel() : i._getSortedRowModel())
27864
27876
  })
27865
- }, q$ = {
27877
+ }, X$ = {
27866
27878
  getInitialState: (i) => ({
27867
27879
  columnVisibility: {},
27868
27880
  ...i
@@ -27939,8 +27951,8 @@ const qv = {
27939
27951
  }
27940
27952
  };
27941
27953
  }
27942
- }, $w = [x$, q$, U$, P$, T$, W$, F$, R$, H$, V$, E$];
27943
- function X$(i) {
27954
+ }, $w = [E$, X$, H$, V$, _$, q$, $$, T$, P$, I$, w$];
27955
+ function K$(i) {
27944
27956
  var c;
27945
27957
  (i.debugAll || i.debugTable) && console.info("Creating Table Instance...");
27946
27958
  let u = {
@@ -28027,7 +28039,7 @@ function X$(i) {
28027
28039
  getAllColumns: $t(() => [u._getColumnDefs()], (T) => {
28028
28040
  const N = function(k, O, j) {
28029
28041
  return j === void 0 && (j = 0), k.map((z) => {
28030
- const I = C$(u, z, j, O), J = z;
28042
+ const I = x$(u, z, j, O), J = z;
28031
28043
  return I.columns = J.columns ? N(J.columns, I, j + 1) : [], I;
28032
28044
  });
28033
28045
  };
@@ -28081,21 +28093,21 @@ function X$(i) {
28081
28093
  * @license MIT
28082
28094
  */
28083
28095
  function Uw(i, c) {
28084
- return i ? K$(i) ? /* @__PURE__ */ kd.createElement(i, c) : i : null;
28085
- }
28086
- function K$(i) {
28087
- return Z$(i) || typeof i == "function" || J$(i);
28096
+ return i ? Z$(i) ? /* @__PURE__ */ kd.createElement(i, c) : i : null;
28088
28097
  }
28089
28098
  function Z$(i) {
28099
+ return J$(i) || typeof i == "function" || e2(i);
28100
+ }
28101
+ function J$(i) {
28090
28102
  return typeof i == "function" && (() => {
28091
28103
  const c = Object.getPrototypeOf(i);
28092
28104
  return c.prototype && c.prototype.isReactComponent;
28093
28105
  })();
28094
28106
  }
28095
- function J$(i) {
28107
+ function e2(i) {
28096
28108
  return typeof i == "object" && typeof i.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(i.$$typeof.description);
28097
28109
  }
28098
- function e2(i) {
28110
+ function t2(i) {
28099
28111
  const c = {
28100
28112
  state: {},
28101
28113
  // Dummy state
@@ -28105,7 +28117,7 @@ function e2(i) {
28105
28117
  renderFallbackValue: null,
28106
28118
  ...i
28107
28119
  }, [u] = kd.useState(() => ({
28108
- current: X$(c)
28120
+ current: K$(c)
28109
28121
  })), [f, m] = kd.useState(() => u.current.initialState);
28110
28122
  return u.current.setOptions((g) => ({
28111
28123
  ...g,
@@ -28121,9 +28133,9 @@ function e2(i) {
28121
28133
  }
28122
28134
  })), u.current;
28123
28135
  }
28124
- const t2 = ({
28136
+ const n2 = ({
28125
28137
  column: i
28126
- }) => i.getCanSort() ? i.getIsSorted() === "asc" ? /* @__PURE__ */ $(ZA, {}) : i.getIsSorted() === "desc" ? /* @__PURE__ */ $(JA, {}) : /* @__PURE__ */ $(ez, {}) : null, E2 = ({
28138
+ }) => i.getCanSort() ? i.getIsSorted() === "asc" ? /* @__PURE__ */ $(ZA, {}) : i.getIsSorted() === "desc" ? /* @__PURE__ */ $(JA, {}) : /* @__PURE__ */ $(ez, {}) : null, w2 = ({
28127
28139
  cellClassNames: i,
28128
28140
  className: c,
28129
28141
  compact: u,
@@ -28136,7 +28148,7 @@ const t2 = ({
28136
28148
  metadata: R,
28137
28149
  ...T
28138
28150
  }) => {
28139
- const N = e2({
28151
+ const N = t2({
28140
28152
  enableGlobalFilter: m,
28141
28153
  globalFilterFn: "includesString",
28142
28154
  initialState: {
@@ -28173,7 +28185,7 @@ const t2 = ({
28173
28185
  onClick: I.getCanSort() ? I.getToggleSortingHandler() : void 0,
28174
28186
  children: le ? null : /* @__PURE__ */ Vt("div", { className: "flex items-center", children: [
28175
28187
  Uw(I.columnDef.header, J()),
28176
- /* @__PURE__ */ $(t2, { column: I })
28188
+ /* @__PURE__ */ $(n2, { column: I })
28177
28189
  ] })
28178
28190
  },
28179
28191
  X
@@ -28193,7 +28205,7 @@ const t2 = ({
28193
28205
  E === !0 ? /* @__PURE__ */ $(RR, {}) : null
28194
28206
  ] }),
28195
28207
  /* @__PURE__ */ $(
28196
- b$,
28208
+ C$,
28197
28209
  {
28198
28210
  metadata: R,
28199
28211
  onPaginationChange: (z) => j(z - 1),
@@ -28202,7 +28214,7 @@ const t2 = ({
28202
28214
  )
28203
28215
  ] });
28204
28216
  };
28205
- var sy = {}, n2 = {
28217
+ var sy = {}, r2 = {
28206
28218
  get exports() {
28207
28219
  return sy;
28208
28220
  },
@@ -28683,8 +28695,8 @@ var sy = {}, n2 = {
28683
28695
  return !1;
28684
28696
  }
28685
28697
  i.exports = Ua;
28686
- })(n2, sy);
28687
- const r2 = sy, a2 = ({
28698
+ })(r2, sy);
28699
+ const a2 = sy, i2 = ({
28688
28700
  controllerProps: i,
28689
28701
  debounceTime: c,
28690
28702
  name: u,
@@ -28722,7 +28734,7 @@ const r2 = sy, a2 = ({
28722
28734
  setSelectedItems: E,
28723
28735
  setQuery: z
28724
28736
  };
28725
- }, i2 = ({
28737
+ }, l2 = ({
28726
28738
  children: i,
28727
28739
  className: c,
28728
28740
  getItemValue: u,
@@ -28746,7 +28758,7 @@ const r2 = sy, a2 = ({
28746
28758
  children: i
28747
28759
  }
28748
28760
  );
28749
- }, l2 = ({
28761
+ }, o2 = ({
28750
28762
  children: i,
28751
28763
  className: c,
28752
28764
  getItemValue: u,
@@ -28771,7 +28783,7 @@ const r2 = sy, a2 = ({
28771
28783
  children: i
28772
28784
  }
28773
28785
  );
28774
- }, w2 = ({
28786
+ }, R2 = ({
28775
28787
  className: i,
28776
28788
  controllerProps: c,
28777
28789
  debounceTime: u,
@@ -28803,15 +28815,15 @@ const r2 = sy, a2 = ({
28803
28815
  setShowDropdown: ye,
28804
28816
  setSelectedItems: ht,
28805
28817
  setQuery: be
28806
- } = a2({
28818
+ } = i2({
28807
28819
  controllerProps: c,
28808
28820
  debounceTime: u,
28809
28821
  name: O,
28810
28822
  onDebouncedChange: j,
28811
28823
  options: z
28812
- }), Xe = fy(O, J), Nt = bt(f), Je = m === void 0 || k === !0, Dt = k === !0 ? i2 : l2;
28824
+ }), Xe = fy(O, J), Nt = bt(), Je = m === void 0 || k === !0, Dt = k === !0 ? l2 : o2;
28813
28825
  return Kt(() => {
28814
- f != null && f.length && !r2(f, Nt.current) && (ht(k === !0 ? f : [f[0]]), Nt.current = f);
28826
+ f != null && f.length && !a2(f, Nt.current) && (ht(k === !0 ? f : [f[0]]), Nt.current = f);
28815
28827
  }, [f]), /* @__PURE__ */ Vt(
28816
28828
  Dt,
28817
28829
  {
@@ -28919,8 +28931,8 @@ const r2 = sy, a2 = ({
28919
28931
  );
28920
28932
  };
28921
28933
  export {
28922
- p2 as AlertMessages,
28923
- d2 as AlertMessagesProvider,
28934
+ v2 as AlertMessages,
28935
+ p2 as AlertMessagesProvider,
28924
28936
  iz as Badge,
28925
28937
  WA as CheckIcon,
28926
28938
  qA as CloseIcon,
@@ -28928,32 +28940,32 @@ export {
28928
28940
  xC as DropdownMenu,
28929
28941
  ry as DropdownOption,
28930
28942
  XA as ErrorIcon,
28931
- v2 as Form,
28932
- h2 as FormCheckbox,
28933
- g2 as FormControl,
28943
+ m2 as Form,
28944
+ g2 as FormCheckbox,
28945
+ y2 as FormControl,
28934
28946
  dy as FormError,
28935
28947
  Ts as FormLabel,
28936
- y2 as FormRadio,
28948
+ S2 as FormRadio,
28937
28949
  vz as FormRangeSlider,
28938
- b2 as FormSelect,
28939
- C2 as FormToggleSwitch,
28950
+ C2 as FormSelect,
28951
+ x2 as FormToggleSwitch,
28940
28952
  RR as FullScreenLoader,
28941
28953
  KA as InfoIcon,
28942
- x2 as LoadingCard,
28954
+ E2 as LoadingCard,
28943
28955
  S$ as Modal,
28944
- b$ as Pagination,
28956
+ C$ as Pagination,
28945
28957
  ZA as SortAscendingIcon,
28946
28958
  JA as SortDescendingIcon,
28947
28959
  ez as SortIcon,
28948
28960
  tz as SuccessIcon,
28949
- E2 as Table,
28950
- w2 as TypeaheadSelect,
28961
+ w2 as Table,
28962
+ R2 as TypeaheadSelect,
28951
28963
  nz as WarningIcon,
28952
28964
  QA as useAlertMessages,
28953
28965
  lz as useDebouncedValue,
28954
28966
  fy as useFieldColor,
28955
- m2 as useFormValues,
28967
+ h2 as useFormValues,
28956
28968
  oz as useOutsideClick,
28957
28969
  uz as useTypeaheadQuery,
28958
- a2 as useTypeaheadSelect
28970
+ i2 as useTypeaheadSelect
28959
28971
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stratosphere-ui",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "React component library for all Stratosphere Labs user interfaces",
5
5
  "type": "module",
6
6
  "files": [