@uva-glass/component-library 3.50.3 → 3.50.4

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
- ._controls-input_amb4c_1{aspect-ratio:unset;cursor:pointer;height:0;opacity:0;position:absolute;width:0}._controls-input_amb4c_1:focus-visible+label{outline:.125rem dotted var(--color-navy-600);outline-offset:.125rem}._controls-input_amb4c_1:checked+label{background-color:var(--color-grey-200);border:1px solid var(--color-grey-700);font-weight:var(--semibold)}._controls-input_amb4c_1:disabled+label,._controls-input_amb4c_1:disabled:hover+label{background-color:var(--color-grey-400);color:var(--color-grey-700);cursor:not-allowed}._controls-input_amb4c_1:hover+label{background-color:var(--color-grey-300)}._controls-button_amb4c_32{align-items:center;background-color:var(--color-uva-white);border:1px solid transparent;border-radius:.25rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:var(--font-size-default);height:2.25rem;justify-content:center;min-width:2.25rem;padding:.5rem;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap}._controls-button--squared_amb4c_50{width:2.25rem}._controls-button_amb4c_32:after{content:"";min-height:2.625rem;min-width:2.625rem;position:absolute;width:100%}._controls-button--with-prefix_amb4c_62{height:auto;padding:.125rem .5rem;width:auto}._controls-button--with-icon_amb4c_68{gap:.5rem}._controls-button__wrapper_amb4c_72{align-items:center;display:flex;flex-direction:column}._controls-button__prefix_amb4c_78{color:var(--color-grey-700);font-size:var(--font-size-text-non-essential)}._controls-button__tooltip_amb4c_83{background-color:var(--color-uva-white);box-shadow:0 0 .25rem #00000040;color:var(--color-grey-700);display:none;font-size:var(--font-size-text-non-essential);font-style:italic;font-weight:400;padding:.5rem 1rem;position:absolute;text-align:center;top:calc(100% + .5rem);z-index:1}._controls-button__tooltip--left_amb4c_98{left:0rem}._controls-button__tooltip--center_amb4c_102{left:50%;transform:translate(-50%)}._controls-button__tooltip--right_amb4c_107{right:0rem}._controls-button__tooltip_amb4c_83:before{border-color:transparent transparent var(--color-grey-400) transparent;border-style:solid;border-width:.5rem;bottom:calc(100% + .125rem);content:"";filter:blur(.125rem);position:absolute;z-index:-1}._controls-button__tooltip_amb4c_83:after{border-color:transparent transparent var(--color-uva-white) transparent;border-style:solid;border-width:.5rem;bottom:100%;content:"";position:absolute}._controls-button_amb4c_32:hover ._controls-button__tooltip_amb4c_83,._controls-input_amb4c_1:focus-visible+label ._controls-button__tooltip_amb4c_83{display:block}._controls-button__tooltip--left_amb4c_98:before,._controls-button__tooltip--left_amb4c_98:after{left:.5rem}._controls-button__tooltip--center_amb4c_102:before,._controls-button__tooltip--center_amb4c_102:after{left:50%;transform:translate(-50%)}._controls-button__tooltip--right_amb4c_107:before,._controls-button__tooltip--right_amb4c_107:after{right:.5rem}
1
+ ._controls-input_ol6hz_1{aspect-ratio:unset;cursor:pointer;height:0;opacity:0;position:absolute;width:0}._controls-input_ol6hz_1:focus-visible+label{outline:.125rem dotted var(--color-navy-600);outline-offset:.125rem}._controls-input_ol6hz_1:checked+label{background-color:var(--color-navy-600);color:var(--color-uva-white);font-weight:var(--semibold)}._controls-input_ol6hz_1:disabled+label,._controls-input_ol6hz_1:disabled:hover+label{background-color:var(--color-grey-400);color:var(--color-grey-700);cursor:not-allowed}._controls-input_ol6hz_1:disabled:checked+label{background-color:var(--color-grey-500);color:var(--color-grey-900);font-weight:var(--semibold)}._controls-input_ol6hz_1:hover+label{background-color:var(--color-grey-300);color:var(--color-uva-black)}._controls-button_ol6hz_39{align-items:center;background-color:var(--color-uva-white);border:1px solid transparent;border-radius:.25rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-size:var(--font-size-default);height:2.25rem;justify-content:center;min-width:2.25rem;padding:.5rem;position:relative;-webkit-user-select:none;user-select:none;white-space:nowrap}._controls-button--squared_ol6hz_57{width:2.25rem}._controls-button_ol6hz_39:after{content:"";min-height:2.625rem;min-width:2.625rem;position:absolute;width:100%}._controls-button--with-prefix_ol6hz_69{height:auto;padding:.125rem .5rem;width:auto}._controls-button--with-icon_ol6hz_75{gap:.5rem}._controls-button__wrapper_ol6hz_79{align-items:center;display:flex;flex-direction:column}._controls-button__prefix_ol6hz_85{color:var(--color-uva-700);font-size:var(--font-size-text-non-essential)}._controls-button__tooltip_ol6hz_90{background-color:var(--color-uva-white);box-shadow:0 0 .25rem #00000040;color:var(--color-grey-700);display:none;font-size:var(--font-size-text-non-essential);font-style:italic;font-weight:400;padding:.5rem 1rem;position:absolute;text-align:center;top:calc(100% + .5rem);z-index:1}._controls-button__tooltip--left_ol6hz_105{left:0rem}._controls-button__tooltip--center_ol6hz_109{left:50%;transform:translate(-50%)}._controls-button__tooltip--right_ol6hz_114{right:0rem}._controls-button__tooltip_ol6hz_90:before{border-color:transparent transparent var(--color-grey-400) transparent;border-style:solid;border-width:.5rem;bottom:calc(100% + .125rem);content:"";filter:blur(.125rem);position:absolute;z-index:-1}._controls-button__tooltip_ol6hz_90:after{border-color:transparent transparent var(--color-uva-white) transparent;border-style:solid;border-width:.5rem;bottom:100%;content:"";position:absolute}._controls-button_ol6hz_39:hover ._controls-button__tooltip_ol6hz_90,._controls-input_ol6hz_1:focus-visible+label ._controls-button__tooltip_ol6hz_90{display:block}._controls-button__tooltip--left_ol6hz_105:before,._controls-button__tooltip--left_ol6hz_105:after{left:.5rem}._controls-button__tooltip--center_ol6hz_109:before,._controls-button__tooltip--center_ol6hz_109:after{left:50%;transform:translate(-50%)}._controls-button__tooltip--right_ol6hz_114:before,._controls-button__tooltip--right_ol6hz_114:after{right:.5rem}
@@ -1,70 +1,70 @@
1
- import { jsxs as l, Fragment as g, jsx as o } from "react/jsx-runtime";
2
- import { useId as I } from "react";
3
- import { c as a } from "../../clsx-OuTLNxxd.js";
4
- import { Icon as $ } from "../Icon/Icon.js";
5
- import '../../assets/ControlsButton.css';const t = {
6
- "controls-input": "_controls-input_amb4c_1",
7
- "controls-button": "_controls-button_amb4c_32",
8
- "controls-button--squared": "_controls-button--squared_amb4c_50",
9
- "controls-button--with-prefix": "_controls-button--with-prefix_amb4c_62",
10
- "controls-button--with-icon": "_controls-button--with-icon_amb4c_68",
11
- "controls-button__wrapper": "_controls-button__wrapper_amb4c_72",
12
- "controls-button__prefix": "_controls-button__prefix_amb4c_78",
13
- "controls-button__tooltip": "_controls-button__tooltip_amb4c_83",
14
- "controls-button__tooltip--left": "_controls-button__tooltip--left_amb4c_98",
15
- "controls-button__tooltip--center": "_controls-button__tooltip--center_amb4c_102",
16
- "controls-button__tooltip--right": "_controls-button__tooltip--right_amb4c_107"
17
- }, z = ({
18
- type: u = "checkbox",
1
+ import { jsxs as c, Fragment as w, jsx as t } from "react/jsx-runtime";
2
+ import { useId as g } from "react";
3
+ import { c as b } from "../../clsx-OuTLNxxd.js";
4
+ import { Icon as I } from "../Icon/Icon.js";
5
+ import '../../assets/ControlsButton.css';const o = {
6
+ "controls-input": "_controls-input_ol6hz_1",
7
+ "controls-button": "_controls-button_ol6hz_39",
8
+ "controls-button--squared": "_controls-button--squared_ol6hz_57",
9
+ "controls-button--with-prefix": "_controls-button--with-prefix_ol6hz_69",
10
+ "controls-button--with-icon": "_controls-button--with-icon_ol6hz_75",
11
+ "controls-button__wrapper": "_controls-button__wrapper_ol6hz_79",
12
+ "controls-button__prefix": "_controls-button__prefix_ol6hz_85",
13
+ "controls-button__tooltip": "_controls-button__tooltip_ol6hz_90",
14
+ "controls-button__tooltip--left": "_controls-button__tooltip--left_ol6hz_105",
15
+ "controls-button__tooltip--center": "_controls-button__tooltip--center_ol6hz_109",
16
+ "controls-button__tooltip--right": "_controls-button__tooltip--right_ol6hz_114"
17
+ }, j = ({
18
+ type: p = "checkbox",
19
19
  label: n,
20
20
  value: i,
21
21
  iconName: r,
22
- prefix: c,
22
+ prefix: l,
23
23
  tooltip: s,
24
- tooltipPosition: p = "center",
25
- name: m,
24
+ tooltipPosition: h = "center",
25
+ name: a,
26
26
  forceSquared: d = !1,
27
- checked: h,
27
+ checked: m,
28
28
  disabled: f,
29
- onSetValue: x
29
+ onSetValue: z
30
30
  }) => {
31
- const w = I(), e = (typeof n == "string" ? n : i).replace(/\s+/g, "_"), _ = `${w}${e}`, b = `${_}-tooltip`;
32
- return /* @__PURE__ */ l(g, { children: [
33
- /* @__PURE__ */ o(
31
+ const x = g(), e = (typeof n == "string" ? n : i).replace(/\s+/g, "_"), _ = `${x}${e}`, u = `${_}-tooltip`;
32
+ return /* @__PURE__ */ c(w, { children: [
33
+ /* @__PURE__ */ t(
34
34
  "input",
35
35
  {
36
- type: u,
36
+ type: p,
37
37
  id: _,
38
- name: m ?? e,
38
+ name: a ?? e,
39
39
  disabled: f,
40
40
  value: i,
41
- checked: h,
42
- onChange: x,
43
- className: t["controls-input"],
44
- "aria-describedby": s ? b : void 0
41
+ checked: m,
42
+ onChange: z,
43
+ className: o["controls-input"],
44
+ "aria-describedby": s ? u : void 0
45
45
  }
46
46
  ),
47
- /* @__PURE__ */ l(
47
+ /* @__PURE__ */ c(
48
48
  "label",
49
49
  {
50
50
  htmlFor: _,
51
- className: a(t["controls-button"], [
52
- d && t["controls-button--squared"],
53
- c && t["controls-button--with-prefix"],
54
- r && t["controls-button--with-icon"]
51
+ className: b(o["controls-button"], [
52
+ d && o["controls-button--squared"],
53
+ l && o["controls-button--with-prefix"],
54
+ r && o["controls-button--with-icon"]
55
55
  ]),
56
56
  children: [
57
- r && /* @__PURE__ */ o($, { name: r, size: 20 }),
58
- /* @__PURE__ */ l("div", { className: t["controls-button__wrapper"], children: [
59
- c && /* @__PURE__ */ o("div", { className: t["controls-button__prefix"], children: c }),
57
+ r && /* @__PURE__ */ t(I, { name: r, size: 20 }),
58
+ /* @__PURE__ */ c("div", { className: o["controls-button__wrapper"], children: [
59
+ l && /* @__PURE__ */ t("div", { className: o["controls-button__prefix"], children: l }),
60
60
  n
61
61
  ] }),
62
- s && /* @__PURE__ */ o(
62
+ s && /* @__PURE__ */ t(
63
63
  "div",
64
64
  {
65
- id: b,
65
+ id: u,
66
66
  role: "tooltip",
67
- className: a(t["controls-button__tooltip"], t[`controls-button__tooltip--${p}`]),
67
+ className: b(o["controls-button__tooltip"], o[`controls-button__tooltip--${h}`]),
68
68
  children: s
69
69
  }
70
70
  )
@@ -74,6 +74,6 @@ import '../../assets/ControlsButton.css';const t = {
74
74
  ] });
75
75
  };
76
76
  export {
77
- z as ControlsButton
77
+ j as ControlsButton
78
78
  };
79
79
  //# sourceMappingURL=ControlsButton.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": "3.50.3",
5
+ "version": "3.50.4",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -61,7 +61,7 @@
61
61
  "@testing-library/jest-dom": "^6.9.1",
62
62
  "@testing-library/react": "^16.3.0",
63
63
  "@types/jest": "^30.0.0",
64
- "@types/node": "^24.7.0",
64
+ "@types/node": "^24.7.1",
65
65
  "@types/react": "^19.2.2",
66
66
  "@types/react-dom": "^19.2.1",
67
67
  "@uva-glass/eslint-config": "^1.3.11",