@apolitical/component-library 10.0.2-beta.1 → 10.0.2-beta.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/index.mjs CHANGED
@@ -24179,34 +24179,17 @@ const FR = ({
24179
24179
  p.preventDefault(), p.stopPropagation(), !(!c.current || !c.current.value || c.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(c.current.value)}`);
24180
24180
  };
24181
24181
  return o ? /* @__PURE__ */ h.jsx(
24182
- "div",
24182
+ "button",
24183
24183
  {
24184
- className: te("search-form search-form-button gtm-trackable", t),
24185
- role: "search",
24186
- "data-gtm-event-context": i,
24187
- "data-gtm-event-type": a,
24188
- children: /* @__PURE__ */ h.jsx(
24189
- "fieldset",
24190
- {
24191
- id: `${e}-form`,
24192
- hidden: n && !l ? !s : !1,
24193
- children: /* @__PURE__ */ h.jsx("p", { children: /* @__PURE__ */ h.jsxs(
24194
- "button",
24195
- {
24196
- type: "button",
24197
- className: "search-trigger",
24198
- onClick: (p) => {
24199
- p.preventDefault(), p.stopPropagation(), o();
24200
- },
24201
- "aria-label": u.formatMessage({ id: "search_label" }),
24202
- children: [
24203
- /* @__PURE__ */ h.jsx("span", { className: "search-trigger-text", children: u.formatMessage({ id: "search_placeholder" }) }),
24204
- /* @__PURE__ */ h.jsx("span", { className: `search-trigger-icon ${d}`, "aria-hidden": "true" })
24205
- ]
24206
- }
24207
- ) })
24208
- }
24209
- )
24184
+ type: "button",
24185
+ className: te(
24186
+ "search toggle-search-button search-modal-trigger",
24187
+ t
24188
+ ),
24189
+ onClick: (p) => {
24190
+ p.preventDefault(), p.stopPropagation(), o();
24191
+ },
24192
+ "aria-label": u.formatMessage({ id: "search_label" })
24210
24193
  }
24211
24194
  ) : /* @__PURE__ */ h.jsx(
24212
24195
  "form",
@@ -47063,7 +47046,7 @@ const f3 = ({
47063
47046
  /* ACCOUNT */
47064
47047
  ]]);
47065
47048
  const L = f && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
47066
- !p.search && /* @__PURE__ */ h.jsx(
47049
+ !s && !p.search && /* @__PURE__ */ h.jsx(
47067
47050
  "button",
47068
47051
  {
47069
47052
  className: "search toggle-search-button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "10.0.2-beta.1",
3
+ "version": "10.0.2-beta.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {