@digdir/designsystemet-react 0.60.0 → 0.61.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 (43) hide show
  1. package/dist/cjs/components/Button/Button.js +3 -1
  2. package/dist/cjs/components/DropdownMenu/DropdownMenuContent.js +1 -1
  3. package/dist/cjs/components/Popover/PopoverContent.js +1 -1
  4. package/dist/cjs/components/Tooltip/Tooltip.js +1 -1
  5. package/dist/cjs/components/form/Combobox/Combobox.js +4 -1
  6. package/dist/cjs/components/form/Combobox/useCombobox.js +7 -4
  7. package/dist/cjs/components/form/Combobox/useFloatingCombobox.js +1 -1
  8. package/dist/cjs/{packages/react/node_modules → node_modules}/@floating-ui/core/dist/floating-ui.core.js +1 -1
  9. package/dist/cjs/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  10. package/dist/cjs/packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  11. package/dist/cjs/utilities/getSize.js +31 -0
  12. package/dist/esm/components/Button/Button.js +3 -1
  13. package/dist/esm/components/DropdownMenu/DropdownMenuContent.js +1 -1
  14. package/dist/esm/components/Popover/PopoverContent.js +1 -1
  15. package/dist/esm/components/Tooltip/Tooltip.js +1 -1
  16. package/dist/esm/components/form/Combobox/Combobox.js +4 -1
  17. package/dist/esm/components/form/Combobox/useCombobox.js +7 -4
  18. package/dist/esm/components/form/Combobox/useFloatingCombobox.js +1 -1
  19. package/dist/esm/{packages/react/node_modules → node_modules}/@floating-ui/core/dist/floating-ui.core.js +1 -1
  20. package/dist/esm/node_modules/@radix-ui/react-slot/dist/index.js +1 -1
  21. package/dist/esm/packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +2 -2
  22. package/dist/esm/utilities/getSize.js +29 -0
  23. package/dist/types/components/Box/Box.d.ts +1 -1
  24. package/dist/types/components/Button/Button.d.ts +14 -4
  25. package/dist/types/components/Button/Button.d.ts.map +1 -1
  26. package/dist/types/components/DropdownMenu/DropdownMenuTrigger.d.ts +1 -1
  27. package/dist/types/components/List/ListHeading.d.ts +1 -1
  28. package/dist/types/components/Modal/ModalTrigger.d.ts +1 -1
  29. package/dist/types/components/Pagination/PaginationButton.d.ts +1 -1
  30. package/dist/types/components/Pagination/PaginationNextPrev.d.ts +2 -2
  31. package/dist/types/components/Popover/PopoverTrigger.d.ts +1 -1
  32. package/dist/types/components/Typography/ErrorMessage/ErrorMessage.d.ts +1 -1
  33. package/dist/types/components/Typography/Heading/Heading.d.ts +1 -1
  34. package/dist/types/components/Typography/Ingress/Ingress.d.ts +1 -1
  35. package/dist/types/components/Typography/Label/Label.d.ts +1 -1
  36. package/dist/types/components/Typography/Paragraph/Paragraph.d.ts +1 -1
  37. package/dist/types/components/form/Combobox/Combobox.d.ts.map +1 -1
  38. package/dist/types/components/form/Combobox/useCombobox.d.ts.map +1 -1
  39. package/dist/types/utilities/getSize.d.ts +2 -0
  40. package/dist/types/utilities/getSize.d.ts.map +1 -0
  41. package/package.json +2 -5
  42. /package/dist/cjs/node_modules/{@babel → @radix-ui/react-slot/node_modules/@babel}/runtime/helpers/esm/extends.js +0 -0
  43. /package/dist/esm/node_modules/{@babel → @radix-ui/react-slot/node_modules/@babel}/runtime/helpers/esm/extends.js +0 -0
@@ -5,11 +5,13 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var React = require('react');
6
6
  var lite = require('../../node_modules/clsx/dist/lite.js');
7
7
  var index = require('../../node_modules/@radix-ui/react-slot/dist/index.js');
8
+ var getSize = require('../../utilities/getSize.js');
8
9
 
9
10
  /**
10
11
  * Button used for interaction
11
12
  */
12
- const Button = React.forwardRef(({ children, color = 'first', variant = 'primary', size = 'medium', fullWidth = false, icon = false, type = 'button', className, asChild, ...rest }, ref) => {
13
+ const Button = React.forwardRef(({ children, color = 'first', variant = 'primary', fullWidth = false, icon = false, type = 'button', className, asChild, ...rest }, ref) => {
14
+ const size = getSize.getSize(rest.size || 'md');
13
15
  const Component = asChild ? index.Slot : 'button';
14
16
  return (jsxRuntime.jsx(Component, { ref: ref, type: type, className: lite.clsx('fds-btn', `fds-focus`, `fds-btn--${size}`, `fds-btn--${variant}`, `fds-btn--${color}`, fullWidth && 'fds-btn--full-width', icon && 'fds-btn--icon-only', className), ...rest, children: children }));
15
17
  });
@@ -7,7 +7,7 @@ var floatingUi_react = require('../../packages/react/node_modules/@floating-ui/r
7
7
  var lite = require('../../node_modules/clsx/dist/lite.js');
8
8
  var DropdownMenu = require('./DropdownMenu.js');
9
9
  var floatingUi_dom = require('../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js');
10
- var floatingUi_core = require('../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js');
10
+ var floatingUi_core = require('../../node_modules/@floating-ui/core/dist/floating-ui.core.js');
11
11
  var useIsomorphicLayoutEffect = require('../../hooks/useIsomorphicLayoutEffect.js');
12
12
 
13
13
  function _interopNamespaceDefault(e) {
@@ -7,7 +7,7 @@ var floatingUi_react = require('../../packages/react/node_modules/@floating-ui/r
7
7
  var clsx = require('../../node_modules/clsx/dist/clsx.js');
8
8
  var Popover = require('./Popover.js');
9
9
  var floatingUi_dom = require('../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js');
10
- var floatingUi_core = require('../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js');
10
+ var floatingUi_core = require('../../node_modules/@floating-ui/core/dist/floating-ui.core.js');
11
11
  var floatingUi_reactDom = require('../../packages/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js');
12
12
  var useIsomorphicLayoutEffect = require('../../hooks/useIsomorphicLayoutEffect.js');
13
13
  var Paragraph = require('../Typography/Paragraph/Paragraph.js');
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var lite = require('../../node_modules/clsx/dist/lite.js');
7
7
  var floatingUi_react = require('../../packages/react/node_modules/@floating-ui/react/dist/floating-ui.react.js');
8
8
  var floatingUi_dom = require('../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js');
9
- var floatingUi_core = require('../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js');
9
+ var floatingUi_core = require('../../node_modules/@floating-ui/core/dist/floating-ui.core.js');
10
10
  var floatingUi_reactDom = require('../../packages/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js');
11
11
 
12
12
  function _interopNamespaceDefault(e) {
@@ -96,6 +96,10 @@ const ComboboxComponent = React.forwardRef(({ value, initialValue = [], onValueC
96
96
  inputRef.current?.focus();
97
97
  }
98
98
  else {
99
+ /* clear newSelectedOptions */
100
+ Object.keys(newSelectedOptions).forEach((key) => {
101
+ delete newSelectedOptions[key];
102
+ });
99
103
  newSelectedOptions[option.value] = option;
100
104
  setInputValue(option?.label || '');
101
105
  // move cursor to the end of the input
@@ -104,7 +108,6 @@ const ComboboxComponent = React.forwardRef(({ value, initialValue = [], onValueC
104
108
  }, 0);
105
109
  }
106
110
  setSelectedOptions(newSelectedOptions);
107
- console.log('calling new value with: ', Object.keys(newSelectedOptions));
108
111
  onValueChange?.(Object.keys(newSelectedOptions));
109
112
  !multiple && setOpen(false);
110
113
  refs.domReference.current?.focus();
@@ -83,8 +83,12 @@ function useCombobox({ children, inputValue, multiple, filter = (inputValue, opt
83
83
  const [selectedOptions, setSelectedOptions] = React.useState(preSelectedOptions);
84
84
  const { filteredOptions, filteredOptionsChildren } = React.useMemo(() => {
85
85
  const filteredOptions = [];
86
- const filteredOptionsChildren = Object.keys(options)
87
- .map((option, index) => {
86
+ const filteredOptionsChildren = Object.keys(options).map((option, index) => {
87
+ /* If we have a selected value in single mode and the input matches an option, return all children */
88
+ if (!multiple && Object.keys(selectedOptions).length === 1) {
89
+ filteredOptions.push(options[option].value);
90
+ return optionsChildren[index];
91
+ }
88
92
  if (multiple && selectedOptions[option]) {
89
93
  filteredOptions.push(options[option].value);
90
94
  return optionsChildren[index];
@@ -93,8 +97,7 @@ function useCombobox({ children, inputValue, multiple, filter = (inputValue, opt
93
97
  filteredOptions.push(options[option].value);
94
98
  return optionsChildren[index];
95
99
  }
96
- })
97
- .filter((child) => child);
100
+ });
98
101
  return { filteredOptions, filteredOptionsChildren };
99
102
  // eslint-disable-next-line react-hooks/exhaustive-deps
100
103
  }, [inputValue, multiple, options, optionsChildren, selectedOptions]);
@@ -6,7 +6,7 @@ var React = require('react');
6
6
  var ReactDOM = require('react-dom');
7
7
  var ComboboxIdContext = require('./ComboboxIdContext.js');
8
8
  var floatingUi_dom = require('../../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js');
9
- var floatingUi_core = require('../../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js');
9
+ var floatingUi_core = require('../../../node_modules/@floating-ui/core/dist/floating-ui.core.js');
10
10
 
11
11
  const useFloatingCombobox = ({ listRef }) => {
12
12
  const [open, setOpen] = React.useState(false);
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var floatingUi_utils = require('../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.js');
4
+ var floatingUi_utils = require('../../utils/dist/floating-ui.utils.js');
5
5
 
6
6
  function computeCoordsFromPlacement(_ref, placement, rtl) {
7
7
  let {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var _extends = require('../../../@babel/runtime/helpers/esm/extends.js');
4
+ var _extends = require('../node_modules/@babel/runtime/helpers/esm/extends.js');
5
5
  var React = require('react');
6
6
  var index = require('../../react-compose-refs/dist/index.js');
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var floatingUi_core = require('../../core/dist/floating-ui.core.js');
4
+ var floatingUi_core = require('../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.js');
5
5
  var floatingUi_utils = require('../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.js');
6
6
  var floatingUi_utils_dom = require('../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js');
7
7
 
@@ -0,0 +1,31 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ function getSize(size) {
5
+ switch (size) {
6
+ case 'xxxsmall':
7
+ return '3xs';
8
+ case 'xxsmall':
9
+ return '2xs';
10
+ case 'xsmall':
11
+ return 'xs';
12
+ case 'small':
13
+ return 'sm';
14
+ case 'medium':
15
+ return 'md';
16
+ case 'large':
17
+ return 'lg';
18
+ case 'xlarge':
19
+ return 'xl';
20
+ case 'xxlarge':
21
+ return '2xl';
22
+ case 'xxxlarge':
23
+ return '3xl';
24
+ case 'xxxxlarge':
25
+ return '4xl';
26
+ default:
27
+ return size;
28
+ }
29
+ }
30
+
31
+ exports.getSize = getSize;
@@ -3,11 +3,13 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { forwardRef } from 'react';
4
4
  import { clsx } from '../../node_modules/clsx/dist/lite.js';
5
5
  import { Slot as $5e63c961fc1ce211$export$8c6ed5c666ac1360 } from '../../node_modules/@radix-ui/react-slot/dist/index.js';
6
+ import { getSize } from '../../utilities/getSize.js';
6
7
 
7
8
  /**
8
9
  * Button used for interaction
9
10
  */
10
- const Button = forwardRef(({ children, color = 'first', variant = 'primary', size = 'medium', fullWidth = false, icon = false, type = 'button', className, asChild, ...rest }, ref) => {
11
+ const Button = forwardRef(({ children, color = 'first', variant = 'primary', fullWidth = false, icon = false, type = 'button', className, asChild, ...rest }, ref) => {
12
+ const size = getSize(rest.size || 'md');
11
13
  const Component = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : 'button';
12
14
  return (jsx(Component, { ref: ref, type: type, className: clsx('fds-btn', `fds-focus`, `fds-btn--${size}`, `fds-btn--${variant}`, `fds-btn--${color}`, fullWidth && 'fds-btn--full-width', icon && 'fds-btn--icon-only', className), ...rest, children: children }));
13
15
  });
@@ -6,7 +6,7 @@ import { useFloating, useInteractions, useFocus, useClick, useDismiss, useRole,
6
6
  import { clsx } from '../../node_modules/clsx/dist/lite.js';
7
7
  import { DropdownMenuContext } from './DropdownMenu.js';
8
8
  import { autoUpdate, shift } from '../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
9
- import { offset } from '../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js';
9
+ import { offset } from '../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
10
10
  import { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect.js';
11
11
 
12
12
  const GAP = 4;
@@ -6,7 +6,7 @@ import { useFloating, useInteractions, useFocus, useClick, useDismiss, useRole,
6
6
  import { clsx } from '../../node_modules/clsx/dist/clsx.js';
7
7
  import { PopoverContext } from './Popover.js';
8
8
  import { autoUpdate, flip, shift } from '../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
9
- import { offset } from '../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js';
9
+ import { offset } from '../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
10
10
  import { arrow } from '../../packages/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js';
11
11
  import { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect.js';
12
12
  import { Paragraph } from '../Typography/Paragraph/Paragraph.js';
@@ -5,7 +5,7 @@ import { forwardRef, useState, cloneElement } from 'react';
5
5
  import { clsx } from '../../node_modules/clsx/dist/lite.js';
6
6
  import { useFloating, useTransitionStyles, useInteractions, useHover, useFocus, useDismiss, useRole, useMergeRefs, FloatingPortal, FloatingArrow } from '../../packages/react/node_modules/@floating-ui/react/dist/floating-ui.react.js';
7
7
  import { autoUpdate, flip, shift } from '../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
8
- import { offset } from '../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js';
8
+ import { offset } from '../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
9
9
  import { arrow } from '../../packages/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js';
10
10
 
11
11
  const ARROW_HEIGHT = 7;
@@ -94,6 +94,10 @@ const ComboboxComponent = forwardRef(({ value, initialValue = [], onValueChange,
94
94
  inputRef.current?.focus();
95
95
  }
96
96
  else {
97
+ /* clear newSelectedOptions */
98
+ Object.keys(newSelectedOptions).forEach((key) => {
99
+ delete newSelectedOptions[key];
100
+ });
97
101
  newSelectedOptions[option.value] = option;
98
102
  setInputValue(option?.label || '');
99
103
  // move cursor to the end of the input
@@ -102,7 +106,6 @@ const ComboboxComponent = forwardRef(({ value, initialValue = [], onValueChange,
102
106
  }, 0);
103
107
  }
104
108
  setSelectedOptions(newSelectedOptions);
105
- console.log('calling new value with: ', Object.keys(newSelectedOptions));
106
109
  onValueChange?.(Object.keys(newSelectedOptions));
107
110
  !multiple && setOpen(false);
108
111
  refs.domReference.current?.focus();
@@ -79,8 +79,12 @@ function useCombobox({ children, inputValue, multiple, filter = (inputValue, opt
79
79
  const [selectedOptions, setSelectedOptions] = useState(preSelectedOptions);
80
80
  const { filteredOptions, filteredOptionsChildren } = useMemo(() => {
81
81
  const filteredOptions = [];
82
- const filteredOptionsChildren = Object.keys(options)
83
- .map((option, index) => {
82
+ const filteredOptionsChildren = Object.keys(options).map((option, index) => {
83
+ /* If we have a selected value in single mode and the input matches an option, return all children */
84
+ if (!multiple && Object.keys(selectedOptions).length === 1) {
85
+ filteredOptions.push(options[option].value);
86
+ return optionsChildren[index];
87
+ }
84
88
  if (multiple && selectedOptions[option]) {
85
89
  filteredOptions.push(options[option].value);
86
90
  return optionsChildren[index];
@@ -89,8 +93,7 @@ function useCombobox({ children, inputValue, multiple, filter = (inputValue, opt
89
93
  filteredOptions.push(options[option].value);
90
94
  return optionsChildren[index];
91
95
  }
92
- })
93
- .filter((child) => child);
96
+ });
94
97
  return { filteredOptions, filteredOptionsChildren };
95
98
  // eslint-disable-next-line react-hooks/exhaustive-deps
96
99
  }, [inputValue, multiple, options, optionsChildren, selectedOptions]);
@@ -4,7 +4,7 @@ import { useState } from 'react';
4
4
  import { flushSync } from 'react-dom';
5
5
  import { useComboboxId, useComboboxIdDispatch } from './ComboboxIdContext.js';
6
6
  import { autoUpdate, flip, size } from '../../../packages/react/node_modules/@floating-ui/dom/dist/floating-ui.dom.js';
7
- import { offset } from '../../../packages/react/node_modules/@floating-ui/core/dist/floating-ui.core.js';
7
+ import { offset } from '../../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
8
8
 
9
9
  const useFloatingCombobox = ({ listRef }) => {
10
10
  const [open, setOpen] = useState(false);
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { evaluate, getSide, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, getAlignmentSides, getAlignment, getSideAxis, clamp, getPaddingObject, rectToClientRect, getAlignmentAxis, getOppositeAxis, getAxisLength, min, max } from '../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.js';
2
+ import { evaluate, getSide, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, getAlignmentSides, getAlignment, getSideAxis, clamp, getPaddingObject, rectToClientRect, getAlignmentAxis, getOppositeAxis, getAxisLength, min, max } from '../../utils/dist/floating-ui.utils.js';
3
3
 
4
4
  function computeCoordsFromPlacement(_ref, placement, rtl) {
5
5
  let {
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
2
+ import _extends from '../node_modules/@babel/runtime/helpers/esm/extends.js';
3
3
  import { forwardRef, Children, isValidElement, createElement, cloneElement, Fragment } from 'react';
4
4
  import { composeRefs as $6ed0406888f73fc4$export$43e446d32b3d21af } from '../../react-compose-refs/dist/index.js';
5
5
 
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { shift as shift$1, flip as flip$1, arrow as arrow$1, size as size$1, computePosition as computePosition$1 } from '../../core/dist/floating-ui.core.js';
3
- export { detectOverflow, offset } from '../../core/dist/floating-ui.core.js';
2
+ import { shift as shift$1, flip as flip$1, arrow as arrow$1, size as size$1, computePosition as computePosition$1 } from '../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
3
+ export { detectOverflow, offset } from '../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.js';
4
4
  import { createCoords, rectToClientRect, round, max, min, floor } from '../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.js';
5
5
  import { getOverflowAncestors, isElement, getWindow, getComputedStyle, getDocumentElement, isHTMLElement, isWebKit, getNodeName, isOverflowElement, getNodeScroll, isTableElement, isContainingBlock, getContainingBlock, getParentNode, isLastTraversableNode } from '../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js';
6
6
 
@@ -0,0 +1,29 @@
1
+ 'use client';
2
+ function getSize(size) {
3
+ switch (size) {
4
+ case 'xxxsmall':
5
+ return '3xs';
6
+ case 'xxsmall':
7
+ return '2xs';
8
+ case 'xsmall':
9
+ return 'xs';
10
+ case 'small':
11
+ return 'sm';
12
+ case 'medium':
13
+ return 'md';
14
+ case 'large':
15
+ return 'lg';
16
+ case 'xlarge':
17
+ return 'xl';
18
+ case 'xxlarge':
19
+ return '2xl';
20
+ case 'xxxlarge':
21
+ return '3xl';
22
+ case 'xxxxlarge':
23
+ return '4xl';
24
+ default:
25
+ return size;
26
+ }
27
+ }
28
+
29
+ export { getSize };
@@ -31,7 +31,7 @@ export declare const Box: import("react").ForwardRefExoticComponent<{
31
31
  * Shadow size of the box
32
32
  * @default undefined
33
33
  */
34
- shadow?: "small" | "medium" | "large" | "xsmall" | "xlarge" | undefined;
34
+ shadow?: "xsmall" | "small" | "medium" | "large" | "xlarge" | undefined;
35
35
  /**
36
36
  * Border color of the box
37
37
  * @default undefined
@@ -1,11 +1,16 @@
1
1
  import type { ButtonHTMLAttributes } from 'react';
2
+ type OldButtonSizes = 'small' | 'medium' | 'large';
2
3
  export type ButtonProps = {
3
4
  /** Specify which variant to use */
4
5
  variant?: 'primary' | 'secondary' | 'tertiary';
5
6
  /** Specify which color palette to use */
6
7
  color?: 'first' | 'second' | 'success' | 'danger';
7
- /** Size */
8
- size?: 'small' | 'medium' | 'large';
8
+ /**
9
+ * Size
10
+ * @default `md`
11
+ * @note `small`, `medium`, `large` is deprecated
12
+ */
13
+ size?: 'sm' | 'md' | 'lg' | OldButtonSizes;
9
14
  /** If `Button` should fill full width of its container */
10
15
  fullWidth?: boolean;
11
16
  /** Toggle icon only styling, pass icon as children
@@ -26,8 +31,12 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
26
31
  variant?: "primary" | "secondary" | "tertiary" | undefined;
27
32
  /** Specify which color palette to use */
28
33
  color?: "first" | "second" | "success" | "danger" | undefined;
29
- /** Size */
30
- size?: "small" | "medium" | "large" | undefined;
34
+ /**
35
+ * Size
36
+ * @default `md`
37
+ * @note `small`, `medium`, `large` is deprecated
38
+ */
39
+ size?: "sm" | "md" | "lg" | OldButtonSizes | undefined;
31
40
  /** If `Button` should fill full width of its container */
32
41
  fullWidth?: boolean | undefined;
33
42
  /** Toggle icon only styling, pass icon as children
@@ -40,4 +49,5 @@ export declare const Button: import("react").ForwardRefExoticComponent<{
40
49
  */
41
50
  asChild?: boolean | undefined;
42
51
  } & ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
52
+ export {};
43
53
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAIlD,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IAClD,WAAW;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,MAAM;IAtBjB,mCAAmC;;IAEnC,yCAAyC;;IAEzC,WAAW;;IAEX,0DAA0D;;IAE1D;;OAEG;;IAEH;;;OAGG;;+FA6CJ,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAMlD,KAAK,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB,mCAAmC;IACnC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC/C,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IAClD;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,cAAc,CAAC;IAC3C,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,MAAM;IA1BjB,mCAAmC;;IAEnC,yCAAyC;;IAEzC;;;;OAIG;;IAEH,0DAA0D;;IAE1D;;OAEG;;IAEH;;;OAGG;;+FA6CJ,CAAC"}
@@ -4,7 +4,7 @@ export type DropdownMenuTriggerProps = React.ComponentPropsWithRef<typeof Button
4
4
  export declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<{
5
5
  variant?: "primary" | "secondary" | "tertiary" | undefined;
6
6
  color?: "first" | "second" | "success" | "danger" | undefined;
7
- size?: "small" | "medium" | "large" | undefined;
7
+ size?: "sm" | "md" | "lg" | ("small" | "medium" | "large") | undefined;
8
8
  fullWidth?: boolean | undefined;
9
9
  icon?: boolean | undefined;
10
10
  asChild?: boolean | undefined;
@@ -2,7 +2,7 @@ import { type HeadingProps } from '../Typography';
2
2
  export type ListHeadingProps = HeadingProps;
3
3
  export declare const ListHeading: import("react").ForwardRefExoticComponent<{
4
4
  level?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
5
- size?: "small" | "medium" | "large" | "xsmall" | "xxsmall" | "xlarge" | "2xlarge" | "3xlarge" | undefined;
5
+ size?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "2xlarge" | "3xlarge" | undefined;
6
6
  spacing?: boolean | undefined;
7
7
  asChild?: boolean | undefined;
8
8
  } & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -4,7 +4,7 @@ export type ModalTriggerProps = React.ComponentPropsWithRef<typeof Button>;
4
4
  export declare const ModalTrigger: React.ForwardRefExoticComponent<Omit<{
5
5
  variant?: "primary" | "secondary" | "tertiary" | undefined;
6
6
  color?: "first" | "second" | "success" | "danger" | undefined;
7
- size?: "small" | "medium" | "large" | undefined;
7
+ size?: "sm" | "md" | "lg" | ("small" | "medium" | "large") | undefined;
8
8
  fullWidth?: boolean | undefined;
9
9
  icon?: boolean | undefined;
10
10
  asChild?: boolean | undefined;
@@ -12,5 +12,5 @@ export declare const PaginationButton: import("react").ForwardRefExoticComponent
12
12
  * @default false
13
13
  */
14
14
  isActive?: boolean | undefined;
15
- } & Omit<ButtonProps, "size" | "icon"> & import("react").RefAttributes<HTMLButtonElement>>;
15
+ } & Omit<ButtonProps, "icon" | "size"> & import("react").RefAttributes<HTMLButtonElement>>;
16
16
  //# sourceMappingURL=PaginationButton.d.ts.map
@@ -2,9 +2,9 @@ import type { PaginationButtonProps } from './PaginationButton';
2
2
  export type PaginationNextProps = PaginationButtonProps;
3
3
  export declare const PaginationNext: import("react").ForwardRefExoticComponent<{
4
4
  isActive?: boolean | undefined;
5
- } & Omit<import("..").ButtonProps, "size" | "icon"> & import("react").RefAttributes<HTMLButtonElement>>;
5
+ } & Omit<import("..").ButtonProps, "icon" | "size"> & import("react").RefAttributes<HTMLButtonElement>>;
6
6
  export type PaginationPreviousProps = PaginationButtonProps;
7
7
  export declare const PaginationPrevious: import("react").ForwardRefExoticComponent<{
8
8
  isActive?: boolean | undefined;
9
- } & Omit<import("..").ButtonProps, "size" | "icon"> & import("react").RefAttributes<HTMLButtonElement>>;
9
+ } & Omit<import("..").ButtonProps, "icon" | "size"> & import("react").RefAttributes<HTMLButtonElement>>;
10
10
  //# sourceMappingURL=PaginationNextPrev.d.ts.map
@@ -4,7 +4,7 @@ export type PopoverTriggerProps = React.ComponentPropsWithRef<typeof Button>;
4
4
  export declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<{
5
5
  variant?: "primary" | "secondary" | "tertiary" | undefined;
6
6
  color?: "first" | "second" | "success" | "danger" | undefined;
7
- size?: "small" | "medium" | "large" | undefined;
7
+ size?: "sm" | "md" | "lg" | ("small" | "medium" | "large") | undefined;
8
8
  fullWidth?: boolean | undefined;
9
9
  icon?: boolean | undefined;
10
10
  asChild?: boolean | undefined;
@@ -15,7 +15,7 @@ export type ErrorMessageProps = {
15
15
  /** Use `ErrorMessage` to display text as error message. */
16
16
  export declare const ErrorMessage: import("react").ForwardRefExoticComponent<{
17
17
  /** Changes text sizing */
18
- size?: "small" | "medium" | "large" | "xsmall" | undefined;
18
+ size?: "xsmall" | "small" | "medium" | "large" | undefined;
19
19
  /** Adds margin-bottom */
20
20
  spacing?: boolean | undefined;
21
21
  /** Toggle error color */
@@ -21,7 +21,7 @@ export declare const Heading: import("react").ForwardRefExoticComponent<{
21
21
  /** Changes text sizing
22
22
  * @default 'xlarge'
23
23
  */
24
- size?: "small" | "medium" | "large" | "xsmall" | "xxsmall" | "xlarge" | "2xlarge" | "3xlarge" | undefined;
24
+ size?: "xxsmall" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "2xlarge" | "3xlarge" | undefined;
25
25
  /** Adds margin-bottom */
26
26
  spacing?: boolean | undefined;
27
27
  /**
@@ -17,7 +17,7 @@ export declare const Ingress: import("react").ForwardRefExoticComponent<{
17
17
  /** Changes text sizing
18
18
  * @default 'medium'
19
19
  */
20
- size?: "small" | "medium" | "large" | "xsmall" | undefined;
20
+ size?: "xsmall" | "small" | "medium" | "large" | undefined;
21
21
  /** Adds margin-bottom */
22
22
  spacing?: boolean | undefined;
23
23
  /**
@@ -16,7 +16,7 @@ export type LabelProps = {
16
16
  /** Use `Label` for labels. */
17
17
  export declare const Label: import("react").ForwardRefExoticComponent<{
18
18
  /** Changes text sizing */
19
- size?: "small" | "medium" | "large" | "xsmall" | undefined;
19
+ size?: "xsmall" | "small" | "medium" | "large" | undefined;
20
20
  /** Adds margin-bottom */
21
21
  spacing?: boolean | undefined;
22
22
  /** Adjusts font weight. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset */
@@ -15,7 +15,7 @@ export type ParagraphProps = {
15
15
  /** Use `Paragraph` to display text with paragraph text styles. */
16
16
  export declare const Paragraph: import("react").ForwardRefExoticComponent<{
17
17
  /** Changes text sizing */
18
- size?: "small" | "medium" | "large" | "xsmall" | undefined;
18
+ size?: "xsmall" | "small" | "medium" | "large" | undefined;
19
19
  /** Adds margin-bottom */
20
20
  spacing?: boolean | undefined;
21
21
  /** Adjusts styling for paragraph length */
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Combobox/Combobox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAMpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,OAAO,KA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AAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAIF,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,MAEC,EACD,YAAY,GACb,EAAE,gBAAgB;;;;;;;;;;;;;;;EAkIlB"}
@@ -0,0 +1,2 @@
1
+ export declare function getSize(size: string): string;
2
+ //# sourceMappingURL=getSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSize.d.ts","sourceRoot":"","sources":["../../../src/utilities/getSize.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,UAyBnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet-react",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "description": "React components for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "repository": "https://github.com/digdir/designsystemet",
@@ -15,7 +15,6 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "build": "yarn run clean && tsc -p tsconfig.build.json && rollup -c --bundleConfigAsCjs",
18
- "generate:css": "esno ./scripts/generate-css.ts",
19
18
  "clean": "rimraf dist && rimraf tsc-build",
20
19
  "copy-css-to-build": "copyfiles -u 1 ./src/**/*.css ./tsc-build/",
21
20
  "types": "tsc --noEmit"
@@ -34,13 +33,11 @@
34
33
  "@tanstack/react-virtual": "^3.2.0"
35
34
  },
36
35
  "devDependencies": {
37
- "@types/fs-extra": "^11.0.4",
38
36
  "copyfiles": "^2.4.1",
39
37
  "esno": "^4.7.0",
40
- "fs-extra": "^11.2.0",
41
38
  "rimraf": "^5.0.5",
42
39
  "rollup": "^4.12.1",
43
40
  "typescript": "^5.4.2"
44
41
  },
45
- "gitHead": "65be7461058771bb400da9a4c606e855d79b7237"
42
+ "gitHead": "878b8bbe53351879efff228b0b8c11eeca8c23bb"
46
43
  }