@rikstv/shared-components 3.2.1-3 → 3.2.1-5

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.
@@ -27,8 +27,8 @@ const O = "_rds-alert--icon_m8jce_67", R = "_rds-alert--content-title_m8jce_79",
27
27
  lightBackground: j,
28
28
  onDismissed: t,
29
29
  LinkToDetails: _,
30
- ...u
31
- }, v) => {
30
+ ...v
31
+ }, u) => {
32
32
  const [p, l] = a(!1), [x, n] = a(!1), C = ["rds-alert", j ? "rds-light" : "", p ? e.dismissed : "", d].filter(Boolean).join(" ");
33
33
  if (x)
34
34
  return null;
@@ -42,18 +42,18 @@ const O = "_rds-alert--icon_m8jce_67", R = "_rds-alert--content-title_m8jce_79",
42
42
  {
43
43
  role: "alert",
44
44
  "aria-live": "polite",
45
- ref: v,
45
+ ref: u,
46
46
  className: C,
47
47
  "data-testid": c,
48
48
  "data-intent": r,
49
49
  "data-variant": i,
50
50
  onAnimationEnd: N,
51
- ...u,
51
+ ...v,
52
52
  children: [
53
53
  /* @__PURE__ */ s.jsx(h, { className: e.rdsAlertIcon }),
54
54
  /* @__PURE__ */ s.jsxs("div", { className: e.rdsAlertContent, children: [
55
55
  /* @__PURE__ */ s.jsx(y, { className: e.rdsAlertContentTitle, as: "span", children: m || g }),
56
- /* @__PURE__ */ s.jsx(B, { children: A }),
56
+ /* @__PURE__ */ s.jsx(B, { as: "div", children: A }),
57
57
  _
58
58
  ] }),
59
59
  S && /* @__PURE__ */ s.jsx("div", { className: e.rdsAlertDismiss, children: /* @__PURE__ */ s.jsx("button", { "aria-label": "Avvis varsel", onClick: () => l(!0), children: /* @__PURE__ */ s.jsx(F, {}) }) })
@@ -1,5 +1,4 @@
1
- import { ButtonHTMLAttributes } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
1
+ import { ButtonHTMLAttributes, JSX } from 'react';
3
2
 
4
3
  export type ButtonStyles = "primary" | "secondary" | "tertiary" | "ghost";
5
4
  export type ButtonBackgroundStyles = boolean | "white";
@@ -1,5 +1,5 @@
1
1
  import { BaseButtonProps, ButtonProps } from './BaseButton';
2
- import { JSX } from 'react/jsx-runtime';
2
+ import { JSX } from 'react';
3
3
 
4
4
  export interface DecoratedButtonProps extends ButtonProps {
5
5
  postfix?: string;
@@ -1,5 +1,5 @@
1
1
  import { ButtonBackgroundStyles, ButtonStyles } from './BaseButton';
2
- import { JSX } from 'react/jsx-runtime';
2
+ import { JSX } from 'react';
3
3
 
4
4
  export type LinkButtonStyles = ButtonStyles | "highlighted";
5
5
  interface BaseLinkButtonPropsWithElement<ElementProps> {
@@ -1,5 +1,5 @@
1
1
  import { DecoratedButtonProps } from './BaseDecoratedButton';
2
- import { JSX } from 'react/jsx-runtime';
2
+ import { JSX } from 'react';
3
3
 
4
4
  interface IconButtonProps extends Omit<DecoratedButtonProps, "icon"> {
5
5
  icon: () => JSX.Element;
@@ -1,5 +1,4 @@
1
- import { RefObject } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
1
+ import { RefObject, JSX } from 'react';
3
2
 
4
3
  interface BaseDropdownOption {
5
4
  title: string;
@@ -19,7 +18,7 @@ interface DropdownProps<T extends BaseDropdownOption> {
19
18
  innerRef?: RefObject<HTMLSelectElement | null>;
20
19
  }
21
20
  export declare const Dropdown: {
22
- <T extends BaseDropdownOption>({ label, id, options, onChange, className, defaultValue, rightIcon, leftIcon, innerRef, ...rest }: DropdownProps<T>): JSX.Element;
21
+ <T extends BaseDropdownOption>({ label, id, options, onChange, className, defaultValue, rightIcon, leftIcon, innerRef, ...rest }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
23
22
  displayName: string;
24
23
  };
25
24
  export {};
@@ -1,5 +1,4 @@
1
- import { FC, HTMLAttributes } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
1
+ import { FC, HTMLAttributes, JSX } from 'react';
3
2
 
4
3
  export interface ListItemProps extends HTMLAttributes<HTMLLIElement> {
5
4
  className?: string;
@@ -1,5 +1,4 @@
1
- import { FC, InputHTMLAttributes } from 'react';
2
- import { JSX } from 'react/jsx-runtime';
1
+ import { FC, InputHTMLAttributes, JSX } from 'react';
3
2
 
4
3
  interface Props extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
5
4
  children: string;
@@ -6,7 +6,7 @@ import { G as N } from "./components/spacing/GutterPadding-n99wy2ws.mjs";
6
6
  import { N as Q } from "./components/notificationDot/NotificationDot-pljIxRxJ.mjs";
7
7
  import { A as _ } from "./components/accordion/Accordion-C-Lu1AN3.mjs";
8
8
  import { P as U } from "./components/panel/Panel-CrtDgKD_.mjs";
9
- import { A as z } from "./components/alert/Alert-D1ytM5Dq.mjs";
9
+ import { A as z } from "./components/alert/Alert-C2ywNHz1.mjs";
10
10
  import { B as K, a as X } from "./components/breadcrumb/Breadcrumb-Dpi45ZU-.mjs";
11
11
  import { P as Z } from "./components/progress/Progress-_FQvkoIg.mjs";
12
12
  import { L as re } from "./components/loader/Loader-D_bteiXh.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rikstv/shared-components",
3
- "version": "3.2.1-3",
3
+ "version": "3.2.1-5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },