@altinn/altinn-components 0.46.0 → 0.46.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._searchbar_13e7s_1{position:relative}._searchbar_13e7s_1[data-autocomplete=true][aria-expanded=true] input{border-bottom-left-radius:0;border-bottom-right-radius:0}._searchbar_13e7s_1 nav{display:none}._searchbarExpanded_13e7s_14 nav{position:absolute;display:block;border-top-left-radius:0;border-top-right-radius:0;margin-top:-2px}._searchbarLocal_13e7s_22{width:100%;padding:var(--dsc-spacing-4) 0;z-index:100;margin-bottom:16px}@media (min-width: 1024px){._searchbarLocal_13e7s_22{max-width:320px;margin-right:auto}._searchbarLocal_13e7s_22._searchbarExpanded_13e7s_14{max-width:640px}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/SearchbarBase.css';const
|
|
4
|
-
searchbar:
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/SearchbarBase.css';const n = "_searchbar_13e7s_1", d = "_searchbarExpanded_13e7s_14", _ = "_searchbarLocal_13e7s_22", a = {
|
|
4
|
+
searchbar: n,
|
|
5
5
|
searchbarExpanded: d,
|
|
6
6
|
searchbarLocal: _
|
|
7
7
|
}, m = ({
|
|
@@ -9,16 +9,16 @@ import '../../assets/SearchbarBase.css';const l = "_searchbar_nnykn_1", d = "_se
|
|
|
9
9
|
children: s,
|
|
10
10
|
expanded: e = !1,
|
|
11
11
|
onBlurCapture: c,
|
|
12
|
-
autocomplete:
|
|
13
|
-
useGlobalHeader:
|
|
12
|
+
autocomplete: o = !1,
|
|
13
|
+
useGlobalHeader: t = !1
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
15
|
+
const h = l(
|
|
16
16
|
a.searchbar,
|
|
17
17
|
r,
|
|
18
18
|
e && a.searchbarExpanded,
|
|
19
|
-
|
|
19
|
+
t && a.searchbarLocal
|
|
20
20
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ b("div", { className: h, "data-autocomplete": o, onBlurCapture: c, children: s });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
24
|
m as SearchbarBase
|