@searchcraft/react-sdk 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2424,7 +2424,7 @@ const w = zt.exports, Ks = /* @__PURE__ */ x(class extends S {
2424
2424
  this.__registerHost(), this.buttonClick = F(this, "buttonClick");
2425
2425
  }
2426
2426
  render() {
2427
- return h("button", { key: "fc258e1c7aab54611c781789eef7facc074f02c3", class: w("searchcraft-button", {
2427
+ return h("button", { key: "ff883b930d03da6cbfb40badd3be1de0a873f853", "aria-label": this.label, class: w("searchcraft-button", {
2428
2428
  "searchcraft-button-primary": this.hierarchy === "primary",
2429
2429
  "searchcraft-button-tertiary": this.hierarchy === "tertiary",
2430
2430
  "searchcraft-button-disabled": this.disabled
@@ -2889,7 +2889,7 @@ function Ht() {
2889
2889
  }
2890
2890
  });
2891
2891
  }
2892
- const ua = "@searchcraft/javascript-sdk", ha = "0.8.0", da = "Searchcraft Javascript SDK", fa = "Searchcraft", pa = "Apache-2.0", ma = "dist/index.cjs.js", ga = "dist/index.js", ba = "dist/types/index.d.ts", va = "dist/collection/collection-manifest.json", ya = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", wa = {
2892
+ const ua = "@searchcraft/javascript-sdk", ha = "0.8.2", da = "Searchcraft Javascript SDK", fa = "Searchcraft", pa = "Apache-2.0", ma = "dist/index.cjs.js", ga = "dist/index.js", ba = "dist/types/index.d.ts", va = "dist/collection/collection-manifest.json", ya = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", wa = {
2893
2893
  ".": {
2894
2894
  import: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js",
2895
2895
  require: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.cjs.js",
@@ -2924,7 +2924,7 @@ const ua = "@searchcraft/javascript-sdk", ha = "0.8.0", da = "Searchcraft Javasc
2924
2924
  "@stencil/vue-output-target": "^0.9.2",
2925
2925
  classnames: "^2.3.2"
2926
2926
  }, Ra = {
2927
- "@searchcraft/core": "^0.8.0",
2927
+ "@searchcraft/core": "^0.8.2",
2928
2928
  "@searchcraft/javascript-sdk": "*",
2929
2929
  "@stencil/core": "^4.7.0",
2930
2930
  "@stencil/react-output-target": "^0.8.2",
@@ -3166,9 +3166,9 @@ const Pa = Nt, Ca = Vt, qt = /* @__PURE__ */ x(class extends S {
3166
3166
  }
3167
3167
  render() {
3168
3168
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
3169
- return h("div", { class: w("searchcraft-pagination", se(this.customStyles || {})) }, h("div", { class: "searchcraft-pagination-control" }, h("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "PREVIOUS", iconPosition: "left", icon: h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "Previous page icon"), h("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })) })), h("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), h("div", { class: "searchcraft-pagination-control" }, h("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
3169
+ return h("div", { class: w("searchcraft-pagination", se(this.customStyles || {})) }, h("div", { class: "searchcraft-pagination-control" }, h("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "Previous page icon"), h("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), h("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), h("div", { class: "searchcraft-pagination-control" }, h("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
3170
3170
  this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
3171
- }, label: "NEXT", iconPosition: "right", icon: h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "Next page icon"), h("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })) })));
3171
+ }, label: "Next", iconPosition: "right", icon: h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "Next page icon"), h("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
3172
3172
  }
3173
3173
  }, [0, "searchcraft-pagination", {
3174
3174
  customStyles: [1, "custom-styles"],