@digdir/designsystemet-react 1.13.2 → 1.13.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.
@@ -19,9 +19,8 @@ const TabsTab = react.forwardRef(function TabsTab({ value, className, onClick, o
19
19
  jsxRuntime.jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
20
20
  : true, onClickCapture: (e) => {
21
21
  onClickCapture?.(e);
22
- if (isControlled && currentValue !== value) {
23
- e.preventDefault();
24
- }
22
+ if (isControlled && currentValue !== value)
23
+ e.preventDefault(); // In controlled mode, prevent click in event capture phase
25
24
  }, onClick: (e) => {
26
25
  if (currentValue !== value)
27
26
  onChange?.(value); // Only call onChange when actual value change
@@ -17,9 +17,8 @@ const TabsTab = forwardRef(function TabsTab({ value, className, onClick, onClick
17
17
  jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
18
18
  : true, onClickCapture: (e) => {
19
19
  onClickCapture?.(e);
20
- if (isControlled && currentValue !== value) {
21
- e.preventDefault();
22
- }
20
+ if (isControlled && currentValue !== value)
21
+ e.preventDefault(); // In controlled mode, prevent click in event capture phase
23
22
  }, onClick: (e) => {
24
23
  if (currentValue !== value)
25
24
  onChange?.(value); // Only call onChange when actual value change
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-tab.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACxD,OAAO,4BAA4B,CAAC;AAIpC,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAZlB;;OAEG;WACI,MAAM;8FAuCb,CAAC"}
1
+ {"version":3,"file":"tabs-tab.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/tabs-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AACxD,OAAO,4BAA4B,CAAC;AAIpC,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;IAZlB;;OAEG;WACI,MAAM;8FAqCb,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
3
  "type": "module",
4
- "version": "1.13.2",
4
+ "version": "1.13.3",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -41,8 +41,8 @@
41
41
  "@radix-ui/react-slot": "^1.2.4",
42
42
  "@tanstack/react-virtual": "^3.13.23",
43
43
  "clsx": "^2.1.1",
44
- "@digdir/designsystemet-types": "1.13.2",
45
- "@digdir/designsystemet-web": "1.13.2"
44
+ "@digdir/designsystemet-types": "1.13.3",
45
+ "@digdir/designsystemet-web": "1.13.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@rollup/plugin-commonjs": "29.0.2",
@@ -63,7 +63,7 @@
63
63
  "storybook": "10.3.4",
64
64
  "tsx": "4.21.0",
65
65
  "typescript": "5.9.3",
66
- "@digdir/designsystemet-css": "^1.13.2"
66
+ "@digdir/designsystemet-css": "^1.13.3"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",