@bloomreach/react-banana-ui 1.8.4 → 1.8.5

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.
@@ -7229,6 +7229,34 @@ const Tf = c((e, t) => {
7229
7229
  );
7230
7230
  });
7231
7231
  Tf.displayName = "SelectField";
7232
+ const k5 = c((e, t) => {
7233
+ var C, x;
7234
+ const { children: r, value: o, className: l, label: i, disabled: s = !1, ...u } = e, d = j0(null), h = ge([d, t]), f = i ?? (typeof r == "string" ? r : (x = (C = d.current) == null ? void 0 : C.textContent) == null ? void 0 : x.trim()), { getRootProps: m, highlighted: p, selected: g, rootRef: w } = wr({
7235
+ value: o,
7236
+ disabled: s,
7237
+ rootRef: h,
7238
+ label: f
7239
+ }), b = s ? {} : m();
7240
+ return /* @__PURE__ */ i0(
7241
+ O5,
7242
+ {
7243
+ ...b,
7244
+ className: e0("rbui-select-option", {
7245
+ "rbui-select-option--selected": g
7246
+ }, l),
7247
+ disabled: s,
7248
+ highlighted: p,
7249
+ selected: g,
7250
+ ref: w,
7251
+ ...u,
7252
+ children: [
7253
+ r,
7254
+ /* @__PURE__ */ a(i5, { className: "rbui-select-option__check-mark" })
7255
+ ]
7256
+ }
7257
+ );
7258
+ });
7259
+ k5.displayName = "SelectOption";
7232
7260
  const Vf = c((e, t) => {
7233
7261
  const {
7234
7262
  autoSize: r,
@@ -7342,39 +7370,11 @@ const Hf = c((e, t) => {
7342
7370
  );
7343
7371
  });
7344
7372
  Hf.displayName = "ToggleField";
7345
- const k5 = vt(null);
7373
+ const D5 = vt(null);
7346
7374
  function Pe() {
7347
- return gt(k5);
7375
+ return gt(D5);
7348
7376
  }
7349
7377
  const Lf = [10, 20, 50], A0 = 9, C0 = 2;
7350
- const D5 = c((e, t) => {
7351
- var C, x;
7352
- const { children: r, value: o, className: l, label: i, disabled: s = !1, ...u } = e, d = j0(null), h = ge([d, t]), f = i ?? (typeof r == "string" ? r : (x = (C = d.current) == null ? void 0 : C.textContent) == null ? void 0 : x.trim()), { getRootProps: m, highlighted: p, selected: g, rootRef: w } = wr({
7353
- value: o,
7354
- disabled: s,
7355
- rootRef: h,
7356
- label: f
7357
- }), b = s ? {} : m();
7358
- return /* @__PURE__ */ i0(
7359
- O5,
7360
- {
7361
- ...b,
7362
- className: e0("rbui-select-option", {
7363
- "rbui-select-option--selected": g
7364
- }, l),
7365
- disabled: s,
7366
- highlighted: p,
7367
- selected: g,
7368
- ref: w,
7369
- ...u,
7370
- children: [
7371
- r,
7372
- /* @__PURE__ */ a(i5, { className: "rbui-select-option__check-mark" })
7373
- ]
7374
- }
7375
- );
7376
- });
7377
- D5.displayName = "SelectOption";
7378
7378
  function Bf() {
7379
7379
  const e = Pe();
7380
7380
  if (!e)
@@ -7390,7 +7390,7 @@ function Bf() {
7390
7390
  value: t,
7391
7391
  onChange: (i, s) => o == null ? void 0 : o(s),
7392
7392
  "aria-label": "Items per page selector",
7393
- children: l.map((i) => /* @__PURE__ */ a(D5, { value: i.value, children: i.label }, i.value))
7393
+ children: l.map((i) => /* @__PURE__ */ a(k5, { value: i.value, children: i.label }, i.value))
7394
7394
  }
7395
7395
  );
7396
7396
  }
@@ -7502,7 +7502,7 @@ const _f = c((e, t) => {
7502
7502
  onItemsPerPageChange: d,
7503
7503
  ...h
7504
7504
  } = e;
7505
- return r < 1 ? null : /* @__PURE__ */ a(k5.Provider, { value: e, children: /* @__PURE__ */ i0("div", { ...h, className: e0("rbui-pagination", o), ref: t, children: [
7505
+ return r < 1 ? null : /* @__PURE__ */ a(D5.Provider, { value: e, children: /* @__PURE__ */ i0("div", { ...h, className: e0("rbui-pagination", o), ref: t, children: [
7506
7506
  /* @__PURE__ */ i0("div", { className: "rbui-pagination__left", children: [
7507
7507
  /* @__PURE__ */ a(Bf, {}),
7508
7508
  /* @__PURE__ */ a(Df, {})
@@ -7729,6 +7729,7 @@ export {
7729
7729
  n8 as SearchIcon,
7730
7730
  a8 as SecurityShieldIcon,
7731
7731
  Tf as SelectField,
7732
+ k5 as SelectOption,
7732
7733
  i8 as SendIcon,
7733
7734
  d8 as SettingsAltIcon,
7734
7735
  m8 as SettingsIcon,