@prokodo/ui 0.1.14 → 0.1.15

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.
Files changed (113) hide show
  1. package/dist/components/RTE/RTE.client.js +0 -1
  2. package/dist/components/RTE/RTE.js +4 -1
  3. package/dist/components/accordion/Accordion.js +8 -2
  4. package/dist/components/accordion/Accordion.view.js +1 -1
  5. package/dist/components/animated/Animated.client.js +13 -5
  6. package/dist/components/animated/Animated.js +8 -2
  7. package/dist/components/animatedText/AnimatedText.client.js +10 -2
  8. package/dist/components/animatedText/AnimatedText.js +8 -2
  9. package/dist/components/autocomplete/Autocomplete.client.js +5 -1
  10. package/dist/components/autocomplete/Autocomplete.js +4 -1
  11. package/dist/components/autocomplete/Autocomplete.view.js +13 -4
  12. package/dist/components/avatar/Avatar.js +4 -1
  13. package/dist/components/avatar/Avatar.view.js +19 -12
  14. package/dist/components/base-link/BaseLink.js +4 -1
  15. package/dist/components/base-link/BaseLink.view.js +3 -0
  16. package/dist/components/button/Button.js +4 -1
  17. package/dist/components/button/Button.view.js +3 -1
  18. package/dist/components/calendly/Calendly.js +8 -2
  19. package/dist/components/card/Card.js +11 -5
  20. package/dist/components/card/Card.view.js +22 -5
  21. package/dist/components/carousel/Carousel.client.js +140 -129
  22. package/dist/components/carousel/Carousel.js +8 -2
  23. package/dist/components/carousel/Carousel.view.js +10 -0
  24. package/dist/components/checkbox/Checkbox.js +4 -1
  25. package/dist/components/checkbox/Checkbox.view.js +4 -1
  26. package/dist/components/checkbox-group/CheckboxGroup.js +4 -1
  27. package/dist/components/checkbox-group/CheckboxGroup.view.js +4 -1
  28. package/dist/components/chip/Chip.js +4 -1
  29. package/dist/components/chip/Chip.view.js +4 -0
  30. package/dist/components/datePicker/DatePicker.js +4 -1
  31. package/dist/components/dialog/Dialog.js +8 -2
  32. package/dist/components/dialog/Dialog.view.js +23 -5
  33. package/dist/components/drawer/Drawer.client.js +0 -1
  34. package/dist/components/drawer/Drawer.js +4 -1
  35. package/dist/components/drawer/Drawer.view.js +14 -3
  36. package/dist/components/dynamic-list/DynamicList.client.js +1 -0
  37. package/dist/components/dynamic-list/DynamicList.js +4 -1
  38. package/dist/components/dynamic-list/DynamicList.view.js +18 -5
  39. package/dist/components/form/Form.client.js +4 -1
  40. package/dist/components/form/Form.js +4 -1
  41. package/dist/components/form/Form.view.js +3 -1
  42. package/dist/components/form/FormField.client.js +8 -2
  43. package/dist/components/form/FormField.js +4 -1
  44. package/dist/components/form/FormResponse.js +4 -1
  45. package/dist/components/headline/Headline.js +8 -2
  46. package/dist/components/icon/Icon.js +8 -2
  47. package/dist/components/image/Image.client.js +9 -5
  48. package/dist/components/image/Image.js +8 -2
  49. package/dist/components/image/Image.server.js +2 -1
  50. package/dist/components/image-text/ImageText.js +18 -8
  51. package/dist/components/input/Input.client.js +15 -2
  52. package/dist/components/input/Input.js +4 -1
  53. package/dist/components/input/Input.view.js +15 -6
  54. package/dist/components/input/InputValidation.js +6 -2
  55. package/dist/components/inputOTP/InputOTP.js +2 -1
  56. package/dist/components/link/Link.js +5 -3
  57. package/dist/components/link/Link.view.js +2 -1
  58. package/dist/components/list/List.js +52 -23
  59. package/dist/components/loading/Loading.js +4 -1
  60. package/dist/components/loading/Loading.view.js +25 -5
  61. package/dist/components/lottie/Lottie.js +9 -5
  62. package/dist/components/map/Map.js +62 -44
  63. package/dist/components/pagination/Pagination.js +4 -1
  64. package/dist/components/pagination/Pagination.view.js +3 -1
  65. package/dist/components/post-item/PostItem.js +4 -1
  66. package/dist/components/post-item/PostItemAuthor.js +4 -1
  67. package/dist/components/post-teaser/PostTeaser.js +4 -1
  68. package/dist/components/post-teaser/PostTeaser.view.js +4 -2
  69. package/dist/components/post-widget/PostWidget.js +5 -3
  70. package/dist/components/post-widget/PostWidget.view.js +9 -3
  71. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +8 -2
  72. package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +2 -1
  73. package/dist/components/progressBar/ProgressBar.js +8 -2
  74. package/dist/components/progressBar/ProgressBar.view.js +4 -1
  75. package/dist/components/rating/Rating.client.js +6 -1
  76. package/dist/components/rating/Rating.js +4 -1
  77. package/dist/components/rich-text/RichText.client.js +52 -17
  78. package/dist/components/rich-text/RichText.js +8 -2
  79. package/dist/components/rich-text/RichText.server.js +3 -0
  80. package/dist/components/select/Select.client.js +149 -101
  81. package/dist/components/select/Select.js +8 -2
  82. package/dist/components/select/Select.view.js +35 -11
  83. package/dist/components/sidenav/SideNav.js +8 -2
  84. package/dist/components/slider/Slider.client.js +11 -2
  85. package/dist/components/slider/Slider.js +4 -1
  86. package/dist/components/slider/Slider.view.js +43 -5
  87. package/dist/components/snackbar/Snackbar.client.js +5 -1
  88. package/dist/components/snackbar/Snackbar.js +4 -1
  89. package/dist/components/snackbar/SnackbarProvider.js +8 -2
  90. package/dist/components/stepper/Stepper.client.js +6 -3
  91. package/dist/components/stepper/Stepper.js +4 -1
  92. package/dist/components/switch/Switch.js +4 -1
  93. package/dist/components/switch/Switch.view.js +1 -0
  94. package/dist/components/table/Table.js +1 -0
  95. package/dist/components/tabs/Tabs.client.js +1 -0
  96. package/dist/components/tabs/Tabs.js +8 -2
  97. package/dist/components/tabs/Tabs.view.js +8 -2
  98. package/dist/components/tooltip/Tooltip.client.js +126 -91
  99. package/dist/components/tooltip/Tooltip.js +10 -4
  100. package/dist/components/tooltip/Tooltip.view.js +1 -0
  101. package/dist/constants/project.js +1 -1
  102. package/dist/helpers/createIsland.js +1 -0
  103. package/dist/helpers/createLazyWrapper.js +1 -0
  104. package/dist/hooks/useGoogleMaps.js +0 -1
  105. package/dist/tsconfig.build.tsbuildinfo +1 -1
  106. package/dist/types/components/RTE/RTE.d.ts +1 -1
  107. package/dist/types/components/RTE/RTE.lazy.d.ts +1 -1
  108. package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
  109. package/dist/types/components/carousel/Carousel.view.d.ts +1 -1
  110. package/dist/types/components/dynamic-list/DynamicList.model.d.ts +1 -1
  111. package/dist/types/components/headline/Headline.model.d.ts +1 -1
  112. package/dist/types/components/input/Input.view.d.ts +1 -1
  113. package/package.json +19 -5
@@ -263,7 +263,6 @@ function RTEClient(props) {
263
263
  const root = q.root;
264
264
  const onRootClick = /* @__PURE__ */ __name((ev) => {
265
265
  var _a2, _b2;
266
- if (Boolean(disabled) || Boolean(readOnly)) return;
267
266
  const el = ev.target;
268
267
  if (!el || el.tagName !== "IMG") return;
269
268
  const img = el;
@@ -5,7 +5,10 @@ import RTEServer from "./RTE.server.js";
5
5
  const RTE = createIsland({
6
6
  name: "RTE",
7
7
  Server: RTEServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./RTE.lazy.js"), "loadLazy")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./RTE.lazy.js"), "loadLazy")
11
+ )
9
12
  });
10
13
  export {
11
14
  RTE
@@ -5,8 +5,14 @@ import AccordionServer from "./Accordion.server.js";
5
5
  const Accordion = createIsland({
6
6
  name: "Accordion",
7
7
  Server: AccordionServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Accordion.lazy.js"), "loadLazy"),
9
- isInteractive: /* @__PURE__ */ __name(() => true, "isInteractive")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Accordion.lazy.js"), "loadLazy")
11
+ ),
12
+ isInteractive: (
13
+ /* istanbul ignore next */
14
+ /* @__PURE__ */ __name(() => true, "isInteractive")
15
+ )
10
16
  });
11
17
  export {
12
18
  Accordion
@@ -37,7 +37,7 @@ function AccordionView({
37
37
  actions,
38
38
  className: itemCls
39
39
  } = item;
40
- const accId = `${id}-${title}`;
40
+ const accId = `${id}-${index}`;
41
41
  const isExpanded = expandedIndex === index;
42
42
  const accHeaderProps = {
43
43
  "aria-controls": `${accId}-content`,
@@ -7,7 +7,11 @@ import { isNumber } from "../../helpers/validations.js";
7
7
  import { AnimatedView } from "./Animated.view.js";
8
8
  function AnimatedClient(props) {
9
9
  const {
10
- delay = 0,
10
+ /* istanbul ignore next */
11
+ delay = (
12
+ /* istanbul ignore next */
13
+ 0
14
+ ),
11
15
  onAnimate,
12
16
  disabled,
13
17
  speed,
@@ -20,10 +24,14 @@ function AnimatedClient(props) {
20
24
  const timeoutRef = useRef(null);
21
25
  useEffect(() => {
22
26
  if (Boolean(disabled)) return;
23
- timeoutRef.current = window.setTimeout(() => {
24
- setVisible(true);
25
- onAnimate == null ? void 0 : onAnimate(true);
26
- }, delay);
27
+ timeoutRef.current = window.setTimeout(
28
+ /* istanbul ignore next */
29
+ () => {
30
+ setVisible(true);
31
+ onAnimate == null ? void 0 : onAnimate(true);
32
+ },
33
+ delay
34
+ );
27
35
  return () => {
28
36
  if (timeoutRef.current !== null && isNumber(timeoutRef.current)) {
29
37
  clearTimeout(timeoutRef.current);
@@ -5,8 +5,14 @@ import AnimatedServer from "./Animated.server.js";
5
5
  const Animated = createIsland({
6
6
  name: "Animated",
7
7
  Server: AnimatedServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Animated.lazy.js"), "loadLazy"),
9
- isInteractive: /* @__PURE__ */ __name(() => true, "isInteractive")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Animated.lazy.js"), "loadLazy")
11
+ ),
12
+ isInteractive: (
13
+ /* istanbul ignore next */
14
+ /* @__PURE__ */ __name(() => true, "isInteractive")
15
+ )
10
16
  });
11
17
  export {
12
18
  Animated
@@ -5,8 +5,16 @@ import { jsx } from "react/jsx-runtime";
5
5
  import { useState, useEffect } from "react";
6
6
  import { AnimatedTextView } from "./AnimatedText.view.js";
7
7
  function AnimatedTextClient({
8
- speed = 30,
9
- delay = 0,
8
+ /* istanbul ignore next */
9
+ speed = (
10
+ /* istanbul ignore next */
11
+ 30
12
+ ),
13
+ /* istanbul ignore next */
14
+ delay = (
15
+ /* istanbul ignore next */
16
+ 0
17
+ ),
10
18
  disabled,
11
19
  children,
12
20
  ...rest
@@ -5,8 +5,14 @@ import AnimatedTextServer from "./AnimatedText.server.js";
5
5
  const AnimatedText = createIsland({
6
6
  name: "AnimatedText",
7
7
  Server: AnimatedTextServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./AnimatedText.lazy.js"), "loadLazy"),
9
- isInteractive: /* @__PURE__ */ __name((p) => !Boolean(p.disabled), "isInteractive")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./AnimatedText.lazy.js"), "loadLazy")
11
+ ),
12
+ isInteractive: (
13
+ /* istanbul ignore next */
14
+ /* @__PURE__ */ __name((p) => !Boolean(p.disabled), "isInteractive")
15
+ )
10
16
  });
11
17
  export {
12
18
  AnimatedText
@@ -32,7 +32,11 @@ function AutocompleteClient({
32
32
  window.addEventListener("mousedown", onClickOutside);
33
33
  return () => window.removeEventListener("mousedown", onClickOutside);
34
34
  }, [open]);
35
- const list = useMemo(() => items ?? [], [items]);
35
+ const list = useMemo(
36
+ /* istanbul ignore next */
37
+ () => items ?? [],
38
+ [items]
39
+ );
36
40
  const updateListAnchor = useCallback(() => {
37
41
  const root = rootRef.current;
38
42
  if (!root) return;
@@ -5,7 +5,10 @@ import AutocompleteServer from "./Autocomplete.server.js";
5
5
  const Autocomplete = createIsland({
6
6
  name: "Autocomplete",
7
7
  Server: AutocompleteServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Autocomplete.lazy.js"), "loadLazy")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Autocomplete.lazy.js"), "loadLazy")
11
+ )
9
12
  });
10
13
  export {
11
14
  Autocomplete
@@ -94,13 +94,22 @@ function AutocompleteView({
94
94
  className: bem("list", void 0, listClassName),
95
95
  role: "listbox",
96
96
  tabIndex: -1,
97
- style: {
98
- top: isNumber(_clientState == null ? void 0 : _clientState.listTop) ? `${_clientState.listTop}px` : void 0
99
- },
97
+ style: (
98
+ /* istanbul ignore next */
99
+ {
100
+ top: isNumber(_clientState == null ? void 0 : _clientState.listTop) ? `${_clientState.listTop}px` : (
101
+ /* istanbul ignore next */
102
+ void 0
103
+ )
104
+ }
105
+ ),
100
106
  children: Boolean(loading) ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("p", { className: bem("state"), children: [
101
107
  /* @__PURE__ */ jsx(Loading, { size: "sm" }),
102
108
  loadingText
103
- ] }) }) : !canSearch ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: isNumber(minQueryLength) ? (minQueryLengthText ?? "{count} characters required").replaceAll("{count}", String(minQueryLength)) : "Type to search" }) }) : !hasItems ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: emptyText }) }) : items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx(
109
+ ] }) }) : !canSearch ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: isNumber(minQueryLength) ? (minQueryLengthText ?? "{count} characters required").replaceAll("{count}", String(minQueryLength)) : (
110
+ /* istanbul ignore next */
111
+ "Type to search"
112
+ ) }) }) : !hasItems ? /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("p", { className: bem("state"), children: emptyText }) }) : items == null ? void 0 : items.map((item, index) => /* @__PURE__ */ jsx(
104
113
  "li",
105
114
  {
106
115
  "aria-selected": (_clientState == null ? void 0 : _clientState.activeIndex) === index,
@@ -5,7 +5,10 @@ import AvatarServer from "./Avatar.server.js";
5
5
  const Avatar = createIsland({
6
6
  name: "Avatar",
7
7
  Server: AvatarServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Avatar.lazy.js"), "loadLazy")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Avatar.lazy.js"), "loadLazy")
11
+ )
9
12
  });
10
13
  export {
11
14
  Avatar
@@ -14,6 +14,7 @@ function AvatarView({
14
14
  size = "sm",
15
15
  image,
16
16
  redirect,
17
+ iconOverride,
17
18
  ...rest
18
19
  }) {
19
20
  const rootClass = bem(
@@ -28,10 +29,13 @@ function AvatarView({
28
29
  ...rest,
29
30
  className: rootClass,
30
31
  tabIndex: -1,
31
- style: isNumber(size) ? {
32
- width: size,
33
- height: size
34
- } : void 0,
32
+ style: isNumber(size) ? (
33
+ /* istanbul ignore next */
34
+ {
35
+ width: size,
36
+ height: size
37
+ }
38
+ ) : void 0,
35
39
  children: image ? /* @__PURE__ */ jsx(
36
40
  Image,
37
41
  {
@@ -40,14 +44,17 @@ function AvatarView({
40
44
  className: bem("image", void 0, image.className),
41
45
  tabIndex: 0
42
46
  }
43
- ) : /* @__PURE__ */ jsx(
44
- Icon,
45
- {
46
- className: bem("icon", { [variant]: true }),
47
- color: !["inherit", "white"].includes(variant) ? "white" : void 0,
48
- name: "UserIcon",
49
- size: iconSize
50
- }
47
+ ) : (
48
+ /* istanbul ignore next */
49
+ iconOverride ? iconOverride : /* @__PURE__ */ jsx(
50
+ Icon,
51
+ {
52
+ className: bem("icon", { [variant]: true }),
53
+ color: !["inherit", "white"].includes(variant) ? "white" : void 0,
54
+ name: "UserIcon",
55
+ size: iconSize
56
+ }
57
+ )
51
58
  )
52
59
  }
53
60
  );
@@ -6,7 +6,10 @@ const isInteractive = /* @__PURE__ */ __name((p) => typeof p.linkComponent === "
6
6
  const BaseLink = createIsland({
7
7
  name: "BaseLink",
8
8
  Server: BaseLinkServer,
9
- loadLazy: /* @__PURE__ */ __name(() => import("./BaseLink.lazy.js"), "loadLazy"),
9
+ loadLazy: (
10
+ /* istanbul ignore next */
11
+ /* @__PURE__ */ __name(() => import("./BaseLink.lazy.js"), "loadLazy")
12
+ ),
10
13
  isInteractive
11
14
  });
12
15
  export {
@@ -43,12 +43,14 @@ function BaseLinkView({
43
43
  const pointerOff = { pointerEvents: "none" };
44
44
  const tabIndex = !isNull(disabled) ? -1 : void 0;
45
45
  const linkStyle = !isNull(disabled) ? { ...pointerOff, ...style } : style;
46
+ const ariaDisabled = !isNull(disabled) ? true : void 0;
46
47
  const { linkComponent, ...aProps } = restProps;
47
48
  if (linkComponent) {
48
49
  const LinkTag = linkComponent;
49
50
  return /* @__PURE__ */ jsx(
50
51
  LinkTag,
51
52
  {
53
+ "aria-disabled": ariaDisabled,
52
54
  href: finalHref,
53
55
  rel: computedRel,
54
56
  style: linkStyle,
@@ -63,6 +65,7 @@ function BaseLinkView({
63
65
  "a",
64
66
  {
65
67
  ...aProps,
68
+ "aria-disabled": ariaDisabled,
66
69
  href: finalHref,
67
70
  rel: computedRel,
68
71
  style: linkStyle,
@@ -5,7 +5,10 @@ import ButtonServer from "./Button.server.js";
5
5
  const Button = createIsland({
6
6
  name: "Button",
7
7
  Server: ButtonServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Button.lazy.js"), "loadLazy")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Button.lazy.js"), "loadLazy")
11
+ )
9
12
  });
10
13
  export {
11
14
  Button
@@ -28,7 +28,8 @@ const ButtonView = /* @__PURE__ */ __name(({
28
28
  const iconMod = { "icon-only": isIconOnly };
29
29
  const { title } = rest;
30
30
  const inner = /* @__PURE__ */ jsxs(Fragment, { children: [
31
- (image == null ? void 0 : image.src) !== void 0 && /* @__PURE__ */ jsx(
31
+ (image == null ? void 0 : image.src) !== void 0 && /* istanbul ignore next */
32
+ /* @__PURE__ */ jsx(
32
33
  Image,
33
34
  {
34
35
  height: 20,
@@ -48,6 +49,7 @@ const ButtonView = /* @__PURE__ */ __name(({
48
49
  void 0,
49
50
  {
50
51
  "has-fullWidth": Boolean(fullWidth),
52
+ /* istanbul ignore next */
51
53
  "has-image": (image == null ? void 0 : image.src) !== void 0,
52
54
  "has-icon": !Boolean(isIconOnly) && isString(iconProps == null ? void 0 : iconProps.name),
53
55
  [`has-variant-${variant}`]: true,
@@ -5,8 +5,14 @@ import CalendlyServer from "./Calendly.server.js";
5
5
  const Calendly = createIsland({
6
6
  name: "Calendly",
7
7
  Server: CalendlyServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Calendly.lazy.js"), "loadLazy"),
9
- isInteractive: /* @__PURE__ */ __name(() => true, "isInteractive")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Calendly.lazy.js"), "loadLazy")
11
+ ),
12
+ isInteractive: (
13
+ /* istanbul ignore next */
14
+ /* @__PURE__ */ __name(() => true, "isInteractive")
15
+ )
10
16
  });
11
17
  export {
12
18
  Calendly
@@ -5,11 +5,17 @@ import CardServer from "./Card.server.js";
5
5
  const Card = createIsland({
6
6
  name: "Card",
7
7
  Server: CardServer,
8
- loadLazy: /* @__PURE__ */ __name(() => import("./Card.lazy.js"), "loadLazy"),
9
- isInteractive: /* @__PURE__ */ __name((p) => {
10
- var _a;
11
- return !Boolean(p.disabled) && typeof p.onClick === "function" || typeof ((_a = p.redirect) == null ? void 0 : _a.href) === "string";
12
- }, "isInteractive")
8
+ loadLazy: (
9
+ /* istanbul ignore next */
10
+ /* @__PURE__ */ __name(() => import("./Card.lazy.js"), "loadLazy")
11
+ ),
12
+ isInteractive: (
13
+ /* istanbul ignore next */
14
+ /* @__PURE__ */ __name((p) => {
15
+ var _a;
16
+ return !Boolean(p.disabled) && typeof p.onClick === "function" || typeof ((_a = p.redirect) == null ? void 0 : _a.href) === "string";
17
+ }, "isInteractive")
18
+ )
13
19
  });
14
20
  export {
15
21
  Card
@@ -50,12 +50,24 @@ function CardView({
50
50
  "div",
51
51
  {
52
52
  className: bem(void 0, modifiers, className),
53
- role: !redirect && Boolean(isClickable) ? "button" : void 0,
54
- tabIndex: !redirect && Boolean(isClickable) ? 0 : -1,
55
- onClick: Boolean(isClickable) && !redirect ? onClick : void 0,
56
- onKeyDown: Boolean(isClickable) && !redirect ? onKeyDown : void 0,
53
+ role: (
54
+ /* istanbul ignore next */
55
+ !redirect && Boolean(isClickable) ? "button" : void 0
56
+ ),
57
+ tabIndex: (
58
+ /* istanbul ignore next */
59
+ !redirect && Boolean(isClickable) ? 0 : void 0
60
+ ),
57
61
  onMouseEnter,
58
62
  onMouseLeave,
63
+ onClick: (
64
+ /* istanbul ignore next */
65
+ Boolean(isClickable) && !redirect ? onClick : void 0
66
+ ),
67
+ onKeyDown: (
68
+ /* istanbul ignore next */
69
+ Boolean(isClickable) && !redirect ? onKeyDown : void 0
70
+ ),
59
71
  children: [
60
72
  Boolean(loading) && /* @__PURE__ */ jsx(
61
73
  Skeleton,
@@ -90,8 +102,13 @@ function CardView({
90
102
  Image,
91
103
  {
92
104
  alt: "card background",
93
- className: bem("background", void 0, backgroundProps == null ? void 0 : backgroundProps.className),
94
105
  src: background,
106
+ className: bem(
107
+ "background",
108
+ void 0,
109
+ /* istanbul ignore next */
110
+ backgroundProps == null ? void 0 : backgroundProps.className
111
+ ),
95
112
  ...backgroundProps
96
113
  }
97
114
  )