@navikt/ds-react 4.1.2 → 4.1.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.
@@ -7,7 +7,7 @@ const react_1 = __importDefault(require("react"));
7
7
  const period_1 = require("../utils/period");
8
8
  const clsx_1 = __importDefault(require("clsx"));
9
9
  const NonClickablePeriod = ({ start, end, status, cropped, direction, left, width, icon, statusLabel, restProps, periodRef, }) => {
10
- return (react_1.default.createElement("div", Object.assign({ ref: periodRef }, restProps, { className: (0, clsx_1.default)((0, period_1.getConditionalClasses)(cropped, direction, status), restProps === null || restProps === void 0 ? void 0 : restProps.classname), style: {
10
+ return (react_1.default.createElement("div", Object.assign({ ref: periodRef }, restProps, { className: (0, clsx_1.default)((0, period_1.getConditionalClasses)(cropped, direction, status), restProps === null || restProps === void 0 ? void 0 : restProps.className), style: {
11
11
  width: `${width}%`,
12
12
  [direction]: `${left}%`,
13
13
  } }),
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { ariaLabel, getConditionalClasses } from "../utils/period";
3
3
  import cl from "clsx";
4
4
  const NonClickablePeriod = ({ start, end, status, cropped, direction, left, width, icon, statusLabel, restProps, periodRef, }) => {
5
- return (React.createElement("div", Object.assign({ ref: periodRef }, restProps, { className: cl(getConditionalClasses(cropped, direction, status), restProps === null || restProps === void 0 ? void 0 : restProps.classname), style: {
5
+ return (React.createElement("div", Object.assign({ ref: periodRef }, restProps, { className: cl(getConditionalClasses(cropped, direction, status), restProps === null || restProps === void 0 ? void 0 : restProps.className), style: {
6
6
  width: `${width}%`,
7
7
  [direction]: `${left}%`,
8
8
  } }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Aksel react-components for NAV designsystem",
5
5
  "author": "Aksel | NAV designsystem team",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@floating-ui/react": "0.24.1",
41
- "@navikt/aksel-icons": "^4.1.2",
41
+ "@navikt/aksel-icons": "^4.1.4",
42
42
  "@radix-ui/react-tabs": "1.0.0",
43
43
  "@radix-ui/react-toggle-group": "1.0.0",
44
44
  "clsx": "^1.2.1",
@@ -26,7 +26,7 @@ const NonClickablePeriod = ({
26
26
  {...restProps}
27
27
  className={cl(
28
28
  getConditionalClasses(cropped, direction, status),
29
- restProps?.classname
29
+ restProps?.className
30
30
  )}
31
31
  style={{
32
32
  width: `${width}%`,