@altinn/altinn-components 0.55.1 → 0.55.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.
@@ -1 +1 @@
1
- ._container_1fveu_1{position:relative;display:inline-flex;width:100%}._icon_1fveu_7{position:absolute;top:0;bottom:0;left:0;width:2.5em;height:100%;color:var(--ds-color-text-subtle);display:flex;justify-content:center;align-items:center;pointer-events:none}._icon_1fveu_7>svg{font-size:1.25em;width:1.25em;height:1.25em}._input_1fveu_27{padding-left:2.25em;padding-right:2.25em}._input_1fveu_27[type=search]::-webkit-search-decoration,._input_1fveu_27[type=search]::-webkit-search-cancel-button{appearance:none}@media(max-width:1023px){._field_1fveu_39[data-size=xs] input[type=search]{font-size:1rem;padding-left:2em;padding-right:2em}}._clear_1fveu_46{position:absolute;top:0;right:0;bottom:0;width:2.5em;height:100%;display:flex;justify-content:center;align-items:center}._clearButton_1fveu_58[data-size=xs]{--dsc-button-size: 2.5em;--dsc-button-padding: 0;font-size:.75em;border:none}._clearButton_1fveu_58:focus-visible{outline-offset:0;outline-width:2px}._input_1fveu_27[data-collapsible=true]{transition:width .5s ease-in-out}._input_1fveu_27[data-collapsible=true]:placeholder-shown{background-color:transparent;width:8rem}._input_1fveu_27[data-collapsible=true]:focus,._input_1fveu_27[data-collapsible=true]:not(:placeholder-shown){width:auto;background-color:var(--ds-color-background-default)}
1
+ ._container_nkg1g_1{position:relative;display:inline-flex;width:100%}._icon_nkg1g_7{position:absolute;top:0;bottom:0;left:0;width:2.5em;height:100%;color:var(--ds-color-text-subtle);display:flex;justify-content:center;align-items:center;pointer-events:none}._icon_nkg1g_7>*{pointer-events:none}._icon_nkg1g_7>svg{font-size:1.25em;width:1.25em;height:1.25em}._input_nkg1g_31{padding-left:2.25em;padding-right:2.25em}._input_nkg1g_31[type=search]::-webkit-search-decoration,._input_nkg1g_31[type=search]::-webkit-search-cancel-button{appearance:none}@media(max-width:1023px){._field_nkg1g_43[data-size=xs] input[type=search]{font-size:1rem;padding-left:2em;padding-right:2em}}._clear_nkg1g_50{position:absolute;top:0;right:0;bottom:0;width:2.5em;height:100%;display:flex;justify-content:center;align-items:center}._clearButton_nkg1g_62[data-size=xs]{--dsc-button-size: 2.5em;--dsc-button-padding: 0;font-size:.75em;border:none}._clearButton_nkg1g_62:focus-visible{outline-offset:0;outline-width:2px}._input_nkg1g_31[data-collapsible=true]{transition:width .5s ease-in-out}._input_nkg1g_31[data-collapsible=true]:placeholder-shown{background-color:transparent;width:8rem}._input_nkg1g_31[data-collapsible=true]:focus,._input_nkg1g_31[data-collapsible=true]:not(:placeholder-shown){width:auto;background-color:var(--ds-color-background-default)}
@@ -1,56 +1,56 @@
1
- import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
- import { c as p } from "../../index-p1eeF8LQ.js";
3
- import { Icon as u } from "../Icon/Icon.js";
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
+ import { c as _ } from "../../index-p1eeF8LQ.js";
3
+ import { Icon as f } from "../Icon/Icon.js";
4
4
  import "react";
5
- import { Button as _ } from "../Button/Button.js";
5
+ import { Button as g } from "../Button/Button.js";
6
6
  import "../RootProvider/RootProvider.js";
7
- import { Input as d } from "./Input.js";
8
- import { FieldBase as v } from "./FieldBase.js";
7
+ import { Input as u } from "./Input.js";
8
+ import { FieldBase as d } from "./FieldBase.js";
9
9
  import "../Snackbar/useSnackbar.js";
10
- import { S as h } from "../../MagnifyingGlass-bwVhw07z.js";
11
- import { S as B } from "../../XMark-tKk6aExO.js";
12
- import '../../assets/SearchField.css';const N = "_container_1fveu_1", g = "_icon_1fveu_7", x = "_input_1fveu_27", S = "_field_1fveu_39", y = "_clear_1fveu_46", C = "_clearButton_1fveu_58", t = {
13
- container: N,
14
- icon: g,
10
+ import { S as k } from "../../MagnifyingGlass-bwVhw07z.js";
11
+ import { S as h } from "../../XMark-tKk6aExO.js";
12
+ import '../../assets/SearchField.css';const B = "_container_nkg1g_1", N = "_icon_nkg1g_7", x = "_input_nkg1g_31", S = "_field_nkg1g_43", v = "_clear_nkg1g_50", y = "_clearButton_nkg1g_62", n = {
13
+ container: B,
14
+ icon: N,
15
15
  input: x,
16
16
  field: S,
17
- clear: y,
18
- clearButton: C
17
+ clear: v,
18
+ clearButton: y
19
19
  }, w = ({
20
- className: a,
21
- collapsible: i,
22
- size: n,
20
+ className: r,
21
+ collapsible: a,
22
+ size: i,
23
23
  color: c = "neutral",
24
24
  label: s,
25
25
  value: o,
26
- onClear: r,
26
+ onClear: e,
27
27
  clearButtonAltText: l = "Clear search",
28
28
  ...m
29
- }) => /* @__PURE__ */ e(v, { size: n, color: c, label: s, className: p(t.field, a), children: /* @__PURE__ */ f("div", { className: t.container, children: [
30
- /* @__PURE__ */ e(
31
- d,
29
+ }) => /* @__PURE__ */ t(d, { size: i, color: c, label: s, className: _(n.field, r), children: /* @__PURE__ */ p("div", { className: n.container, children: [
30
+ /* @__PURE__ */ t(
31
+ u,
32
32
  {
33
33
  ...m,
34
34
  type: "search",
35
35
  value: o,
36
- className: t.input,
37
- "data-collapsible": i,
36
+ className: n.input,
37
+ "data-collapsible": a,
38
38
  autoCapitalize: "off",
39
39
  autoComplete: "off"
40
40
  }
41
41
  ),
42
- /* @__PURE__ */ e(u, { svgElement: h, className: t.icon }),
43
- r && !!o && /* @__PURE__ */ e("span", { className: t.clear, children: /* @__PURE__ */ e(
44
- _,
42
+ /* @__PURE__ */ t(f, { svgElement: k, className: n.icon }),
43
+ e && !!o && /* @__PURE__ */ t("span", { className: n.clear, children: /* @__PURE__ */ t(
44
+ g,
45
45
  {
46
46
  size: "xs",
47
47
  rounded: !0,
48
48
  icon: !0,
49
49
  variant: "tinted",
50
- className: t.clearButton,
51
- onClick: r,
50
+ className: n.clearButton,
51
+ onClick: e,
52
52
  "aria-label": l,
53
- children: /* @__PURE__ */ e(B, {})
53
+ children: /* @__PURE__ */ t(h, {})
54
54
  }
55
55
  ) })
56
56
  ] }) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.55.1",
3
+ "version": "0.55.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",