@uva-glass/component-library 1.32.2 → 1.32.3

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
- ._input-field-wrapper_hh88t_1{align-items:center;display:flex;position:relative}._input-field_hh88t_1{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid;border-radius:.5rem;color:var(--color-black);flex:1;font-family:inherit;font-size:inherit;height:2.75rem;margin:0;padding:0 1rem;text-align:inherit}._input-field--large_hh88t_22{height:3rem}._input-field_hh88t_1:disabled{color:var(--color-scarpa-flow)}._input-field__clear-button_hh88t_30{background:none;border:none;cursor:pointer;max-height:1.5rem;padding:0 1rem 0 .5rem;position:absolute;right:0}
1
+ ._input-field-wrapper_zd1td_1{align-items:center;display:flex;position:relative}._input-field_zd1td_1{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:1px solid;border-radius:.5rem;color:var(--color-black);flex:1;font-family:inherit;font-size:inherit;height:2.75rem;margin:0;padding:0 1rem;text-align:inherit}._input-field--large_zd1td_22{height:3rem}._input-field_zd1td_1:disabled{color:var(--color-scarpa-flow)}._input-field__clear-button_zd1td_30{align-items:center;background:none;border:none;cursor:pointer;display:flex;height:100%;padding:0 1rem 0 .5rem;position:absolute;right:0}
@@ -1,34 +1,34 @@
1
- import { jsxs as h, jsx as p } from "react/jsx-runtime";
2
- import { forwardRef as m, useState as b, useRef as g, useEffect as x } from "react";
3
- import { c as y } from "../../clsx-OuTLNxxd.js";
1
+ import { jsxs as m, jsx as p } from "react/jsx-runtime";
2
+ import { forwardRef as h, useState as b, useRef as g, useEffect as x } from "react";
3
+ import { c as z } from "../../clsx-OuTLNxxd.js";
4
4
  import '../../assets/InputField.css';const i = {
5
- "input-field-wrapper": "_input-field-wrapper_hh88t_1",
6
- "input-field": "_input-field_hh88t_1",
7
- "input-field--large": "_input-field--large_hh88t_22",
8
- "input-field__clear-button": "_input-field__clear-button_hh88t_30"
9
- }, W = m(
10
- ({ autoComplete: c = "off", id: r, value: e, variant: s, type: f = "text", clearTrigger: n, onClear: u, ...o }, t) => {
11
- const [a, _] = b(0), l = g(null);
5
+ "input-field-wrapper": "_input-field-wrapper_zd1td_1",
6
+ "input-field": "_input-field_zd1td_1",
7
+ "input-field--large": "_input-field--large_zd1td_22",
8
+ "input-field__clear-button": "_input-field__clear-button_zd1td_30"
9
+ }, N = h(
10
+ ({ autoComplete: c = "off", id: r, value: e, variant: s, type: d = "text", clearTrigger: n, onClear: u, ...f }, t) => {
11
+ const [o, a] = b(0), l = g(null);
12
12
  x(() => {
13
- l.current && _(l.current.offsetWidth);
13
+ l.current && a(l.current.offsetWidth);
14
14
  }, [e]);
15
- const d = () => {
15
+ const _ = () => {
16
16
  u && t && "current" in t && t.current && (u(), t.current.focus());
17
17
  };
18
- return /* @__PURE__ */ h("div", { className: i["input-field-wrapper"], children: [
18
+ return /* @__PURE__ */ m("div", { className: i["input-field-wrapper"], children: [
19
19
  /* @__PURE__ */ p(
20
20
  "input",
21
21
  {
22
- ...o,
22
+ ...f,
23
23
  autoComplete: c,
24
24
  ref: t,
25
25
  id: r,
26
- className: y(i["input-field"], {
26
+ className: z(i["input-field"], {
27
27
  [i["input-field--large"]]: s === "large"
28
28
  }),
29
- type: f,
29
+ type: d,
30
30
  value: e,
31
- style: { paddingRight: e && n ? a : void 0 }
31
+ style: { paddingRight: e && n ? o : void 0 }
32
32
  }
33
33
  ),
34
34
  e && n && /* @__PURE__ */ p(
@@ -36,7 +36,7 @@ import '../../assets/InputField.css';const i = {
36
36
  {
37
37
  type: "button",
38
38
  className: i["input-field__clear-button"],
39
- onClick: d,
39
+ onClick: _,
40
40
  ref: l,
41
41
  "aria-label": `clear trigger for ${r}`,
42
42
  children: n
@@ -46,6 +46,6 @@ import '../../assets/InputField.css';const i = {
46
46
  }
47
47
  );
48
48
  export {
49
- W as InputField
49
+ N as InputField
50
50
  };
51
51
  //# sourceMappingURL=InputField.js.map
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uva-glass/component-library",
3
3
  "author": "Team Glass - Frontend vrienden",
4
4
  "private": false,
5
- "version": "1.32.2",
5
+ "version": "1.32.3",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -71,7 +71,7 @@
71
71
  "eslint-plugin-react-hooks": "^4.6.2",
72
72
  "eslint-plugin-react-refresh": "^0.4.7",
73
73
  "eslint-plugin-storybook": "^0.8.0",
74
- "glob": "^10.4.1",
74
+ "glob": "^10.4.2",
75
75
  "jest": "^29.7.0",
76
76
  "jest-environment-jsdom": "^29.7.0",
77
77
  "jest-junit": "^16.0.0",