@rikstv/shared-components 1.1.90 → 1.1.91

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.
@@ -3,6 +3,7 @@ import "./CheckmarkListItem.scss";
3
3
  interface Props extends HTMLAttributes<HTMLLIElement> {
4
4
  className?: string;
5
5
  color?: "error" | "success";
6
+ innerClassName?: string;
6
7
  }
7
8
  export declare const CheckmarkListItem: FC<Props>;
8
9
  export {};
@@ -14,6 +14,7 @@ const CheckmarkListItem = ({
14
14
  color,
15
15
  style,
16
16
  className = "",
17
+ innerClassName = "",
17
18
  children,
18
19
  ...rest
19
20
  }) => {
@@ -26,7 +27,10 @@ const CheckmarkListItem = ({
26
27
  className: `rds-list__item__checkmark ${className}`,
27
28
  "data-testid": "rds-list-item--check",
28
29
  ...rest,
29
- children
30
+ children: /* @__PURE__ */ jsx("span", {
31
+ className: `${innerClassName}`,
32
+ children
33
+ })
30
34
  });
31
35
  };
32
36
  export { CheckmarkListItem as C, getMarkColor as g };
@@ -3,6 +3,7 @@ import "./CrossmarkListItem.scss";
3
3
  interface Props extends Omit<HTMLAttributes<HTMLLIElement>, "color"> {
4
4
  className?: string;
5
5
  color?: "error" | "success";
6
+ innerClassName?: string;
6
7
  }
7
8
  export declare const CrossmarkListItem: FC<Props>;
8
9
  export {};
@@ -5,6 +5,7 @@ const CrossmarkListItem = ({
5
5
  color,
6
6
  style,
7
7
  className = "",
8
+ innerClassName = "",
8
9
  children,
9
10
  ...rest
10
11
  }) => {
@@ -17,7 +18,10 @@ const CrossmarkListItem = ({
17
18
  className: `rds-list__item__crossmark ${className}`,
18
19
  "data-testid": "rds-list-item--cross",
19
20
  ...rest,
20
- children
21
+ children: /* @__PURE__ */ jsx("span", {
22
+ className: `${innerClassName}`,
23
+ children
24
+ })
21
25
  });
22
26
  };
23
27
  export { CrossmarkListItem as C };
@@ -2,6 +2,7 @@ import { FC, HTMLAttributes } from "react";
2
2
  import "./OrderedListItem.scss";
3
3
  interface Props extends HTMLAttributes<HTMLLIElement> {
4
4
  className?: string;
5
+ innerClassName?: string;
5
6
  }
6
7
  export declare const OrderedListItem: FC<Props>;
7
8
  export {};
@@ -2,6 +2,7 @@ import { j as jsx } from "../core/RiksTV.js";
2
2
  var OrderedListItem$1 = /* @__PURE__ */ (() => '.rds-list__item__ordered{display:flex;margin-bottom:var(--list-item__spacing);counter-increment:listCounter}.rds-list__item__ordered:last-child{margin:0}.rds-list__item__ordered:before{content:counter(listCounter) ".";display:block;width:1em;flex-shrink:0;margin-right:1rem;text-align:center;color:currentColor}\n')();
3
3
  const OrderedListItem = ({
4
4
  className = "",
5
+ innerClassName = "",
5
6
  children,
6
7
  ...rest
7
8
  }) => {
@@ -9,7 +10,10 @@ const OrderedListItem = ({
9
10
  className: `rds-list__item__ordered ${className}`,
10
11
  "data-testid": "rds-ordered-list-item",
11
12
  ...rest,
12
- children
13
+ children: /* @__PURE__ */ jsx("span", {
14
+ className: `${innerClassName}`,
15
+ children
16
+ })
13
17
  });
14
18
  };
15
19
  export { OrderedListItem as O };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rikstv/shared-components",
3
- "version": "1.1.90",
3
+ "version": "1.1.91",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },