@digdir/designsystemet-react 1.16.0 → 1.17.0

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 (38) hide show
  1. package/dist/cjs/components/avatar/avatar.js +1 -1
  2. package/dist/cjs/components/badge/badge.js +1 -1
  3. package/dist/cjs/components/card/card.js +1 -1
  4. package/dist/cjs/components/details/details.js +1 -1
  5. package/dist/cjs/components/paragraph/paragraph.js +1 -1
  6. package/dist/cjs/components/popover/popover.js +1 -1
  7. package/dist/cjs/components/skeleton/skeleton.js +1 -1
  8. package/dist/cjs/components/tabs/tabs-tab.js +1 -1
  9. package/dist/cjs/components/tabs/tabs.js +0 -16
  10. package/dist/cjs/components/tag/tag.js +1 -1
  11. package/dist/esm/components/avatar/avatar.js +1 -1
  12. package/dist/esm/components/badge/badge.js +1 -1
  13. package/dist/esm/components/card/card.js +1 -1
  14. package/dist/esm/components/details/details.js +1 -1
  15. package/dist/esm/components/paragraph/paragraph.js +1 -1
  16. package/dist/esm/components/popover/popover.js +1 -1
  17. package/dist/esm/components/skeleton/skeleton.js +1 -1
  18. package/dist/esm/components/tabs/tabs-tab.js +1 -1
  19. package/dist/esm/components/tabs/tabs.js +1 -17
  20. package/dist/esm/components/tag/tag.js +1 -1
  21. package/dist/react-types.d.ts +0 -1
  22. package/dist/types/components/Combobox/ComboboxIdContext.d.ts +1 -1
  23. package/dist/types/components/Combobox/ComboboxIdContext.d.ts.map +1 -1
  24. package/dist/types/components/Combobox/Option/SelectedIcon.d.ts +1 -1
  25. package/dist/types/components/Combobox/internal/ComboboxChips.d.ts +1 -1
  26. package/dist/types/components/Combobox/internal/ComboboxError.d.ts +1 -1
  27. package/dist/types/components/Combobox/internal/ComboboxInput.d.ts +1 -1
  28. package/dist/types/components/Combobox/internal/ComboboxLabel.d.ts +1 -1
  29. package/dist/types/components/Combobox/internal/ComboboxNative.d.ts +1 -1
  30. package/dist/types/components/details/details.d.ts.map +1 -1
  31. package/dist/types/components/dialog/dialog-trigger-context.d.ts +1 -1
  32. package/dist/types/components/dropdown/dropdown-trigger-context.d.ts +1 -1
  33. package/dist/types/components/paragraph/paragraph.d.ts.map +1 -1
  34. package/dist/types/components/popover/popover-trigger-context.d.ts +1 -1
  35. package/dist/types/components/skeleton/skeleton.d.ts.map +1 -1
  36. package/dist/types/components/tabs/tabs-tab.d.ts.map +1 -1
  37. package/dist/types/components/tabs/tabs.d.ts.map +1 -1
  38. package/package.json +17 -17
@@ -22,7 +22,7 @@ var react = require('react');
22
22
  * <Icon />
23
23
  * </Avatar>
24
24
  */
25
- const Avatar = react.forwardRef(function Avatar({ 'aria-label': ariaLabel, 'data-tooltip': dataTooltip, variant = 'circle', className, children, initials, asChild, ...rest }, ref) {
25
+ const Avatar = react.forwardRef(function Avatar({ 'aria-label': ariaLabel, 'data-tooltip': dataTooltip, variant, className, children, initials, asChild, ...rest }, ref) {
26
26
  const OuterComponent = asChild ? reactSlot.Slot : 'span';
27
27
  const useSlot = children && typeof children !== 'string';
28
28
  const textChild = children && typeof children === 'string';
@@ -16,7 +16,7 @@ var react = require('react');
16
16
  * <Icon />
17
17
  * </Badge>
18
18
  */
19
- const Badge = react.forwardRef(function Badge({ className, count, maxCount, variant = 'base', ...rest }, ref) {
19
+ const Badge = react.forwardRef(function Badge({ className, count, maxCount, variant, ...rest }, ref) {
20
20
  return (jsxRuntime.jsx("span", { className: cl('ds-badge', className), "data-count": count && maxCount && count > maxCount ? `${maxCount}+` : count, "data-variant": variant, ref: ref, ...rest }));
21
21
  });
22
22
 
@@ -21,7 +21,7 @@ const SELECTOR_SKIP = 'a,button,label,details,dialog,[role="button"],[popover],[
21
21
  * <Card.Block>Footer</Card.Block>
22
22
  * </Card>
23
23
  */
24
- const Card = react.forwardRef(function Card({ asChild = false, variant = 'default', className, ...rest }, ref) {
24
+ const Card = react.forwardRef(function Card({ asChild = false, variant, className, ...rest }, ref) {
25
25
  const Component = asChild ? reactSlot.Slot : 'div';
26
26
  const cardRef = react.useRef(null);
27
27
  const linkGeneratedId = react.useId();
@@ -16,7 +16,7 @@ require('@digdir/designsystemet-web');
16
16
  * <Details.Content>Content</Details.Content>
17
17
  * </Details>
18
18
  */
19
- const Details = react.forwardRef(function Details({ className, open, defaultOpen = false, variant = 'default', onToggle, ...rest }, ref) {
19
+ const Details = react.forwardRef(function Details({ className, open, defaultOpen = false, variant, onToggle, ...rest }, ref) {
20
20
  const detailsRef = react.useRef(null);
21
21
  const initialOpen = react.useRef(defaultOpen); // Allow rendering defaultOpen on server, but only render once on client
22
22
  const mergedRefs = useMergeRefs.useMergeRefs([detailsRef, ref]);
@@ -13,7 +13,7 @@ var react = require('react');
13
13
  * @example
14
14
  * <Paragraph data-size='lg'>Paragraph</Paragraph>
15
15
  */
16
- const Paragraph = react.forwardRef(function Paragraph({ className, asChild, variant = 'default', ...rest }, ref) {
16
+ const Paragraph = react.forwardRef(function Paragraph({ className, asChild, variant, ...rest }, ref) {
17
17
  const Component = asChild ? reactSlot.Slot : 'p';
18
18
  return (jsxRuntime.jsx(Component, { ref: ref, className: cl(`ds-paragraph`, className), "data-variant": variant, ...rest }));
19
19
  });
@@ -26,7 +26,7 @@ var popoverTriggerContext = require('./popover-trigger-context.js');
26
26
  * Content
27
27
  * </Popover>
28
28
  */
29
- const Popover = react.forwardRef(function Popover({ id, className, onClose, onOpen, open, variant = 'default', placement = 'top', autoPlacement = true, asChild = false, ...rest }, ref) {
29
+ const Popover = react.forwardRef(function Popover({ id, className, onClose, onOpen, open, variant, placement = 'top', autoPlacement = true, asChild = false, ...rest }, ref) {
30
30
  const Component = asChild ? reactSlot.Slot : 'div';
31
31
  const popoverRef = react.useRef(null);
32
32
  const mergedRefs = useMergeRefs.useMergeRefs([popoverRef, ref]);
@@ -19,7 +19,7 @@ require('../../utilities/roving-focus/roving-focus-root.js');
19
19
  * <Skeleton variant="text" />
20
20
  * <Skeleton variant="rectangle" />
21
21
  */
22
- const Skeleton = react.forwardRef(function Skeleton({ asChild, className, height, style, variant = 'rectangle', width, ...rest }, ref) {
22
+ const Skeleton = react.forwardRef(function Skeleton({ asChild, className, height, style, variant, width, ...rest }, ref) {
23
23
  const Component = asChild ? reactSlot.Slot : 'span';
24
24
  const isText = variant === 'text';
25
25
  const animationRef = useSynchronizedAnimation.useSynchronizedAnimation('ds-skeleton-opacity-fade');
@@ -14,7 +14,7 @@ var tabs = require('./tabs.js');
14
14
  */
15
15
  const TabsTab = react.forwardRef(function TabsTab({ value, className, onClick, onClickCapture, ...rest }, ref) {
16
16
  const { onChange, getPrefixedValue, isControlled, currentValue } = react.useContext(tabs.Context);
17
- return (jsxRuntime.jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
17
+ return (jsxRuntime.jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "aria-selected": `${currentValue === value}`, "data-value": value, ref: ref, role: 'tab', suppressHydrationWarning // Since <ds-tablist> adds attributes
18
18
  : true, onClickCapture: (e) => {
19
19
  onClickCapture?.(e);
20
20
  if (isControlled && currentValue !== value)
@@ -37,22 +37,6 @@ const Tabs = react.forwardRef(function Tabs({ value, defaultValue, className, on
37
37
  };
38
38
  value = uncontrolledValue;
39
39
  }
40
- react.useEffect(() => {
41
- if (!isControlled || !tabsRef.current || value === undefined)
42
- return;
43
- tabsRef.current?.tabList?.tabs?.forEach((tab) => {
44
- if (tab.getAttribute('data-value') === value)
45
- tab.setAttribute('aria-selected', 'true');
46
- });
47
- }, [value, isControlled]);
48
- react.useEffect(() => {
49
- if (defaultValue && tabsRef.current) {
50
- tabsRef.current?.tabList?.tabs?.forEach((tab) => {
51
- if (tab.getAttribute('data-value') === defaultValue)
52
- tab.setAttribute('aria-selected', 'true');
53
- });
54
- }
55
- }, []);
56
40
  return (jsxRuntime.jsx(Context.Provider, { value: {
57
41
  isControlled,
58
42
  currentValue: value,
@@ -11,7 +11,7 @@ var react = require('react');
11
11
  * @example
12
12
  * <Tag>Melk</Tag>
13
13
  */
14
- const Tag = react.forwardRef(function Tag({ className, variant = 'default', ...rest }, ref) {
14
+ const Tag = react.forwardRef(function Tag({ className, variant, ...rest }, ref) {
15
15
  return (jsxRuntime.jsx("span", { className: cl('ds-tag', className), ref: ref, "data-variant": variant, ...rest }));
16
16
  });
17
17
 
@@ -20,7 +20,7 @@ import { forwardRef, Fragment } from 'react';
20
20
  * <Icon />
21
21
  * </Avatar>
22
22
  */
23
- const Avatar = forwardRef(function Avatar({ 'aria-label': ariaLabel, 'data-tooltip': dataTooltip, variant = 'circle', className, children, initials, asChild, ...rest }, ref) {
23
+ const Avatar = forwardRef(function Avatar({ 'aria-label': ariaLabel, 'data-tooltip': dataTooltip, variant, className, children, initials, asChild, ...rest }, ref) {
24
24
  const OuterComponent = asChild ? Slot : 'span';
25
25
  const useSlot = children && typeof children !== 'string';
26
26
  const textChild = children && typeof children === 'string';
@@ -14,7 +14,7 @@ import { forwardRef } from 'react';
14
14
  * <Icon />
15
15
  * </Badge>
16
16
  */
17
- const Badge = forwardRef(function Badge({ className, count, maxCount, variant = 'base', ...rest }, ref) {
17
+ const Badge = forwardRef(function Badge({ className, count, maxCount, variant, ...rest }, ref) {
18
18
  return (jsx("span", { className: cl('ds-badge', className), "data-count": count && maxCount && count > maxCount ? `${maxCount}+` : count, "data-variant": variant, ref: ref, ...rest }));
19
19
  });
20
20
 
@@ -19,7 +19,7 @@ const SELECTOR_SKIP = 'a,button,label,details,dialog,[role="button"],[popover],[
19
19
  * <Card.Block>Footer</Card.Block>
20
20
  * </Card>
21
21
  */
22
- const Card = forwardRef(function Card({ asChild = false, variant = 'default', className, ...rest }, ref) {
22
+ const Card = forwardRef(function Card({ asChild = false, variant, className, ...rest }, ref) {
23
23
  const Component = asChild ? Slot : 'div';
24
24
  const cardRef = useRef(null);
25
25
  const linkGeneratedId = useId();
@@ -14,7 +14,7 @@ import '@digdir/designsystemet-web';
14
14
  * <Details.Content>Content</Details.Content>
15
15
  * </Details>
16
16
  */
17
- const Details = forwardRef(function Details({ className, open, defaultOpen = false, variant = 'default', onToggle, ...rest }, ref) {
17
+ const Details = forwardRef(function Details({ className, open, defaultOpen = false, variant, onToggle, ...rest }, ref) {
18
18
  const detailsRef = useRef(null);
19
19
  const initialOpen = useRef(defaultOpen); // Allow rendering defaultOpen on server, but only render once on client
20
20
  const mergedRefs = useMergeRefs([detailsRef, ref]);
@@ -11,7 +11,7 @@ import { forwardRef } from 'react';
11
11
  * @example
12
12
  * <Paragraph data-size='lg'>Paragraph</Paragraph>
13
13
  */
14
- const Paragraph = forwardRef(function Paragraph({ className, asChild, variant = 'default', ...rest }, ref) {
14
+ const Paragraph = forwardRef(function Paragraph({ className, asChild, variant, ...rest }, ref) {
15
15
  const Component = asChild ? Slot : 'p';
16
16
  return (jsx(Component, { ref: ref, className: cl(`ds-paragraph`, className), "data-variant": variant, ...rest }));
17
17
  });
@@ -24,7 +24,7 @@ import { Context } from './popover-trigger-context.js';
24
24
  * Content
25
25
  * </Popover>
26
26
  */
27
- const Popover = forwardRef(function Popover({ id, className, onClose, onOpen, open, variant = 'default', placement = 'top', autoPlacement = true, asChild = false, ...rest }, ref) {
27
+ const Popover = forwardRef(function Popover({ id, className, onClose, onOpen, open, variant, placement = 'top', autoPlacement = true, asChild = false, ...rest }, ref) {
28
28
  const Component = asChild ? Slot : 'div';
29
29
  const popoverRef = useRef(null);
30
30
  const mergedRefs = useMergeRefs([popoverRef, ref]);
@@ -17,7 +17,7 @@ import '../../utilities/roving-focus/roving-focus-root.js';
17
17
  * <Skeleton variant="text" />
18
18
  * <Skeleton variant="rectangle" />
19
19
  */
20
- const Skeleton = forwardRef(function Skeleton({ asChild, className, height, style, variant = 'rectangle', width, ...rest }, ref) {
20
+ const Skeleton = forwardRef(function Skeleton({ asChild, className, height, style, variant, width, ...rest }, ref) {
21
21
  const Component = asChild ? Slot : 'span';
22
22
  const isText = variant === 'text';
23
23
  const animationRef = useSynchronizedAnimation('ds-skeleton-opacity-fade');
@@ -12,7 +12,7 @@ import { Context } from './tabs.js';
12
12
  */
13
13
  const TabsTab = forwardRef(function TabsTab({ value, className, onClick, onClickCapture, ...rest }, ref) {
14
14
  const { onChange, getPrefixedValue, isControlled, currentValue } = useContext(Context);
15
- return (jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "data-value": value, ref: ref, suppressHydrationWarning // Since <ds-tablist> adds attributes
15
+ return (jsx("ds-tab", { "aria-controls": rest['aria-controls'] ?? getPrefixedValue?.(value), "aria-selected": `${currentValue === value}`, "data-value": value, ref: ref, role: 'tab', suppressHydrationWarning // Since <ds-tablist> adds attributes
16
16
  : true, onClickCapture: (e) => {
17
17
  onClickCapture?.(e);
18
18
  if (isControlled && currentValue !== value)
@@ -2,7 +2,7 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import '@digdir/designsystemet-web';
4
4
  import cl from 'clsx/lite';
5
- import { createContext, forwardRef, useState, useRef, useId, useEffect } from 'react';
5
+ import { createContext, forwardRef, useState, useRef, useId } from 'react';
6
6
  import { useMergeRefs } from '../../utilities/hooks/use-merge-refs/use-merge-refs.js';
7
7
 
8
8
  const Context = createContext({});
@@ -35,22 +35,6 @@ const Tabs = forwardRef(function Tabs({ value, defaultValue, className, onChange
35
35
  };
36
36
  value = uncontrolledValue;
37
37
  }
38
- useEffect(() => {
39
- if (!isControlled || !tabsRef.current || value === undefined)
40
- return;
41
- tabsRef.current?.tabList?.tabs?.forEach((tab) => {
42
- if (tab.getAttribute('data-value') === value)
43
- tab.setAttribute('aria-selected', 'true');
44
- });
45
- }, [value, isControlled]);
46
- useEffect(() => {
47
- if (defaultValue && tabsRef.current) {
48
- tabsRef.current?.tabList?.tabs?.forEach((tab) => {
49
- if (tab.getAttribute('data-value') === defaultValue)
50
- tab.setAttribute('aria-selected', 'true');
51
- });
52
- }
53
- }, []);
54
38
  return (jsx(Context.Provider, { value: {
55
39
  isControlled,
56
40
  currentValue: value,
@@ -9,7 +9,7 @@ import { forwardRef } from 'react';
9
9
  * @example
10
10
  * <Tag>Melk</Tag>
11
11
  */
12
- const Tag = forwardRef(function Tag({ className, variant = 'default', ...rest }, ref) {
12
+ const Tag = forwardRef(function Tag({ className, variant, ...rest }, ref) {
13
13
  return (jsx("span", { className: cl('ds-tag', className), ref: ref, "data-variant": variant, ...rest }));
14
14
  });
15
15
 
@@ -15,7 +15,6 @@ declare global {
15
15
  *
16
16
  * These are augmented based on your theme configuration.
17
17
  *
18
- * Consist of both main and support colors
19
18
  * @link https://theme.designsystemet.no
20
19
  */
21
20
  'data-color'?: Color | (string & {});
@@ -12,7 +12,7 @@ export declare const ComboboxIdReducer: (state: ComboboxIdContextType, action: C
12
12
  export declare const ComboboxIdDispatch: import("react").Context<Dispatch<SetActiveIndexAction>>;
13
13
  export declare const ComboboxIdProvider: ({ children }: {
14
14
  children: ReactNode;
15
- }) => import("react/jsx-runtime").JSX.Element;
15
+ }) => import("react").JSX.Element;
16
16
  export declare function useComboboxIdDispatch(): Dispatch<SetActiveIndexAction>;
17
17
  export declare function useComboboxId(): ComboboxIdContextType;
18
18
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxIdContext.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxIdContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjD,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,gDAE5B,CAAC;AAEH,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,uBAAuB,GAAG,oBAAoB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,qBAAqB,EAC5B,QAAQ,uBAAuB,0BAWhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,yDAI7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAYvE,CAAC;AAEF,wBAAgB,qBAAqB,mCAEpC;AAED,wBAAgB,aAAa,0BAE5B"}
1
+ {"version":3,"file":"ComboboxIdContext.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxIdContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjD,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,gDAE5B,CAAC;AAEH,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,uBAAuB,GAAG,oBAAoB,CAAC;AAEpD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,qBAAqB,EAC5B,QAAQ,uBAAuB,0BAWhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,yDAI7B,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gCAYvE,CAAC;AAEF,wBAAgB,qBAAqB,mCAEpC;AAED,wBAAgB,aAAa,0BAE5B"}
@@ -3,7 +3,7 @@ type SelectedIconProps = {
3
3
  selected: boolean;
4
4
  };
5
5
  declare const SelectedIcon: {
6
- ({ multiple, selected }: SelectedIconProps): import("react/jsx-runtime").JSX.Element;
6
+ ({ multiple, selected }: SelectedIconProps): import("react").JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export { SelectedIcon };
@@ -1,5 +1,5 @@
1
1
  declare const ComboboxChips: {
2
- (): import("react/jsx-runtime").JSX.Element;
2
+ (): import("react").JSX.Element;
3
3
  displayName: string;
4
4
  };
5
5
  export default ComboboxChips;
@@ -6,7 +6,7 @@ type ComboboxErrorProps = {
6
6
  formFieldProps: ReturnType<typeof useFormField>;
7
7
  };
8
8
  declare const ComboboxError: {
9
- ({ size, error, formFieldProps }: ComboboxErrorProps): import("react/jsx-runtime").JSX.Element;
9
+ ({ size, error, formFieldProps }: ComboboxErrorProps): import("react").JSX.Element;
10
10
  displayName: string;
11
11
  };
12
12
  export default ComboboxError;
@@ -8,7 +8,7 @@ type ComboboxInputProps = {
8
8
  handleKeyDown: (event: KeyboardEvent) => void;
9
9
  } & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
10
10
  declare const ComboboxInput: {
11
- ({ hideClearButton, listId, error, hideChips, handleKeyDown, ...rest }: ComboboxInputProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ hideClearButton, listId, error, hideChips, handleKeyDown, ...rest }: ComboboxInputProps): import("react").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  export default ComboboxInput;
@@ -9,7 +9,7 @@ type ComboboxLabelProps = {
9
9
  formFieldProps: ReturnType<typeof useFormField>;
10
10
  };
11
11
  declare const ComboboxLabel: {
12
- ({ label, description, hideLabel, size, readOnly, formFieldProps, }: ComboboxLabelProps): import("react/jsx-runtime").JSX.Element;
12
+ ({ label, description, hideLabel, size, readOnly, formFieldProps, }: ComboboxLabelProps): import("react").JSX.Element;
13
13
  displayName: string;
14
14
  };
15
15
  export default ComboboxLabel;
@@ -8,7 +8,7 @@ type ComboboxNativeProps = {
8
8
  name: ComboboxProps['name'];
9
9
  };
10
10
  declare const ComboboxNative: {
11
- ({ selectedOptions, multiple, name, }: ComboboxNativeProps): import("react/jsx-runtime").JSX.Element;
11
+ ({ selectedOptions, multiple, name, }: ComboboxNativeProps): import("react").JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  export default ComboboxNative;
@@ -1 +1 @@
1
- {"version":3,"file":"details.d.ts","sourceRoot":"","sources":["../../../src/components/details/details.tsx"],"names":[],"mappings":"AACA,OAAO,KAA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AAkB,CAAC,EACxD;IACE;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,GACC,CACI;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,GACnD;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,CACtD,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,6GAoCnB,CAAC"}
@@ -15,7 +15,7 @@ export type DialogTriggerContextProps = {
15
15
  * </Dialog.TriggerContext>
16
16
  */
17
17
  export declare const DialogTriggerContext: {
18
- (rest: DialogTriggerContextProps): import("react/jsx-runtime").JSX.Element;
18
+ (rest: DialogTriggerContextProps): import("react").JSX.Element;
19
19
  displayName: string;
20
20
  };
21
21
  //# sourceMappingURL=dialog-trigger-context.d.ts.map
@@ -19,7 +19,7 @@ export type DropdownTriggerContextProps = {
19
19
  * </DropdownTriggerContext>
20
20
  */
21
21
  export declare const DropdownTriggerContext: {
22
- ({ children, }: DropdownTriggerContextProps): import("react/jsx-runtime").JSX.Element;
22
+ ({ children, }: DropdownTriggerContextProps): import("react").JSX.Element;
23
23
  displayName: string;
24
24
  };
25
25
  //# sourceMappingURL=dropdown-trigger-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/paragraph/paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;IAvBpB;;OAEG;kBACW,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;IAC9C;;;OAGG;cACO,MAAM,GAAG,SAAS,GAAG,OAAO;IACtC;;;OAGG;cACO,OAAO;+FA0BlB,CAAC"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/paragraph/paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC/C;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;IAvBpB;;OAEG;kBACW,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;IAC9C;;;OAGG;cACO,MAAM,GAAG,SAAS,GAAG,OAAO;IACtC;;;OAGG;cACO,OAAO;+FAuBlB,CAAC"}
@@ -14,7 +14,7 @@ export type PopoverTriggerContextProps = {
14
14
  * </PopoverTriggerContext>
15
15
  */
16
16
  export declare const PopoverTriggerContext: {
17
- ({ children, }: PopoverTriggerContextProps): import("react/jsx-runtime").JSX.Element;
17
+ ({ children, }: PopoverTriggerContextProps): import("react").JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  export declare const Context: import("react").Context<{
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAIxD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC1C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAEpC;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;IA9BnB;;OAEG;YACK,MAAM,GAAG,MAAM;IACvB;;OAEG;aACM,MAAM,GAAG,MAAM;IACxB;;;OAGG;cACO,WAAW,GAAG,QAAQ,GAAG,MAAM;IACzC;;;OAGG;cACO,OAAO;IACjB,0FAA0F;iBAC7E,MAAM;qFA2CpB,CAAC"}
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAIxD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC1C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,cAAc,CAAC,eAAe,CAAC,CAAC;AAEpC;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ;IA9BnB;;OAEG;YACK,MAAM,GAAG,MAAM;IACvB;;OAEG;aACM,MAAM,GAAG,MAAM;IACxB;;;OAGG;cACO,WAAW,GAAG,QAAQ,GAAG,MAAM;IACzC;;;OAGG;cACO,OAAO;IACjB,0FAA0F;iBAC7E,MAAM;qFAmCpB,CAAC"}
@@ -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;8FAoCb,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,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CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
3
  "type": "module",
4
- "version": "1.16.0",
4
+ "version": "1.17.0",
5
5
  "description": "React components for Designsystemet",
6
6
  "author": "Designsystemet team",
7
7
  "repository": {
@@ -37,33 +37,33 @@
37
37
  "dependencies": {
38
38
  "@floating-ui/dom": "^1.7.6",
39
39
  "@floating-ui/react": "0.26.23",
40
- "@navikt/aksel-icons": "^8.10.5",
41
- "@radix-ui/react-slot": "^1.2.4",
42
- "@tanstack/react-virtual": "^3.13.24",
40
+ "@navikt/aksel-icons": "^8.12.1",
41
+ "@radix-ui/react-slot": "^1.2.5",
42
+ "@tanstack/react-virtual": "^3.14.2",
43
43
  "clsx": "^2.1.1",
44
- "@digdir/designsystemet-types": "1.16.0",
45
- "@digdir/designsystemet-web": "1.16.0"
44
+ "@digdir/designsystemet-types": "1.17.0",
45
+ "@digdir/designsystemet-web": "1.17.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@rollup/plugin-commonjs": "29.0.2",
48
+ "@rollup/plugin-commonjs": "29.0.3",
49
49
  "@rollup/plugin-node-resolve": "16.0.3",
50
- "@storybook/addon-docs": "10.4.0",
51
- "@storybook/addon-vitest": "10.4.0",
52
- "@storybook/react-vite": "10.4.0",
50
+ "@storybook/addon-docs": "10.4.4",
51
+ "@storybook/addon-vitest": "10.4.4",
52
+ "@storybook/react-vite": "10.4.4",
53
53
  "@testing-library/jest-dom": "6.9.1",
54
54
  "@testing-library/react": "16.3.2",
55
55
  "@testing-library/user-event": "14.6.1",
56
- "@types/react": "19.2.14",
56
+ "@types/react": "19.2.17",
57
57
  "@types/react-dom": "19.2.3",
58
- "react": "19.2.6",
59
- "react-dom": "19.2.6",
58
+ "react": "19.2.7",
59
+ "react-dom": "19.2.7",
60
60
  "rimraf": "6.1.3",
61
- "rollup": "4.60.4",
61
+ "rollup": "4.62.0",
62
62
  "rollup-plugin-copy": "3.5.0",
63
- "storybook": "10.4.0",
64
- "tsx": "4.22.1",
63
+ "storybook": "10.4.4",
64
+ "tsx": "4.22.4",
65
65
  "typescript": "5.9.3",
66
- "@digdir/designsystemet-css": "^1.16.0"
66
+ "@digdir/designsystemet-css": "^1.17.0"
67
67
  },
68
68
  "scripts": {
69
69
  "build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",