@norges-domstoler/dds-components 5.2.0 → 5.3.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.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  [![Version](https://img.shields.io/npm/v/@norges-domstoler/dds-components)](https://www.npmjs.com/package/@norges-domstoler/dds-components)
4
4
 
5
- React UI komponenter til bruk i Domstolenes tjenester.
5
+ React UI komponenter til bruk i domstolenes tjenester.
6
6
 
7
- Sjekk ut [Domstolenes designsystem Elsa](https://design.domstol.no/) og [Storybook](https://domstolene.github.io/designsystem) for mer dokumentasjon og demoer.
7
+ Sjekk ut [Elsa - domstolenes designsystem](https://design.domstol.no/) og [ Elsa Storybook](https://domstolene.github.io/designsystem) for mer dokumentasjon og demoer.
8
8
 
9
9
  ## 📦 Installasjon
10
10
 
@@ -40,24 +40,35 @@ Tilgjengelige komponenter:
40
40
  - Button
41
41
  - Card (inkludert CardAccordion)
42
42
  - Checkbox
43
+ - Chip
43
44
  - Datepicker
44
45
  - DescriptionList
45
46
  - Divider
47
+ - Drawer
46
48
  - GlobalMessage
47
- - IconWrapper
49
+ - Icon
50
+ - InputMessage
48
51
  - InternaHeader
49
52
  - List
50
53
  - LocalMessage
54
+ - Modal
55
+ - OverflowMenu
51
56
  - Pagination
52
57
  - Popover
53
58
  - RadioButton
59
+ - Scrollbar
54
60
  - Search
55
61
  - Select
56
62
  - SkipToContent
57
63
  - Spinner
58
64
  - Table
65
+ - Tabs
66
+ - Tag
59
67
  - TextInput
68
+ - ToggleButton
69
+ - Tooltip
60
70
  - Typography
71
+ - VisuallyHidden
61
72
 
62
73
  ## ⏫ Release av ny versjon
63
74
 
@@ -100,9 +100,6 @@ export declare const selectTokens: {
100
100
  hover: {
101
101
  base: CSSObject;
102
102
  };
103
- icon: {
104
- base: CSSObject;
105
- };
106
103
  };
107
104
  indicatorsContainer: {
108
105
  withLabel: {
@@ -0,0 +1,2 @@
1
+ import { SvgProps } from '../utils/propTypes';
2
+ export declare function CloseSmallIcon(props: SvgProps): JSX.Element;
@@ -28,6 +28,7 @@ export * from './chevronLeft';
28
28
  export * from './chevronRight';
29
29
  export * from './chevronUp';
30
30
  export * from './close';
31
+ export * from './closeSmall';
31
32
  export * from './closeCircled';
32
33
  export * from './cloud';
33
34
  export * from './collapse';
package/dist/cjs/index.js CHANGED
@@ -1436,6 +1436,26 @@ function CloseIcon(props) {
1436
1436
  }));
1437
1437
  }
1438
1438
 
1439
+ function CloseSmallIcon(props) {
1440
+ var title = props.title,
1441
+ rest = tslib.__rest(props, ["title"]);
1442
+
1443
+ return jsxRuntime.jsxs(StyledSvg, Object.assign({
1444
+ width: 24,
1445
+ height: 24,
1446
+ fill: "currentColor"
1447
+ }, rest, {
1448
+ xmlns: "http://www.w3.org/2000/svg",
1449
+ viewBox: "0 0 24 24"
1450
+ }, {
1451
+ children: [title && jsxRuntime.jsx("title", {
1452
+ children: title
1453
+ }), jsxRuntime.jsx("path", {
1454
+ d: "M7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414L12 13.414l-3.293 3.293-1.414-1.414L10.586 12 7.293 8.707z"
1455
+ })]
1456
+ }));
1457
+ }
1458
+
1439
1459
  function CloseCircledIcon(props) {
1440
1460
  var title = props.title,
1441
1461
  rest = tslib.__rest(props, ["title"]);
@@ -5734,8 +5754,7 @@ var Colors$e = ddsDesignTokens.ddsBaseTokens.colors,
5734
5754
  Spacing$k = ddsDesignTokens.ddsBaseTokens.spacing,
5735
5755
  FontPackages$b = ddsDesignTokens.ddsBaseTokens.fontPackages,
5736
5756
  BorderRadius$5 = ddsDesignTokens.ddsBaseTokens.borderRadius,
5737
- Border$c = ddsDesignTokens.ddsBaseTokens.border,
5738
- IconSizes$2 = ddsDesignTokens.ddsBaseTokens.iconSizes;
5757
+ Border$c = ddsDesignTokens.ddsBaseTokens.border;
5739
5758
  var textDefault$4 = ddsDesignTokens.ddsReferenceTokens.textDefault;
5740
5759
  var multiValueContainerMinHeight = "".concat(Spacing$k.SizesDdsSpacingLocalX0125NumberPx * 2 + Spacing$k.SizesDdsSpacingLocalX025NumberPx * 2 + calculateHeightWithLineHeight(FontPackages$b.supportingStyle_inputtext_01.numbers.lineHeightNumber, FontPackages$b.supportingStyle_inputtext_01.numbers.fontSizeNumber), "px"); //custom spacing so that multiselect has same height as single value select
5741
5760
 
@@ -5816,8 +5835,7 @@ var drodownIndicatorReadOnlyBase = {
5816
5835
  color: 'transparent'
5817
5836
  };
5818
5837
  var clearIndicatorBase = {
5819
- color: Colors$e.DdsColorNeutralsGray6,
5820
- padding: " 0 ".concat(Spacing$k.SizesDdsSpacingLocalX025, " 0 0")
5838
+ color: Colors$e.DdsColorNeutralsGray6
5821
5839
  };
5822
5840
  var loadingIndicatorBase = {
5823
5841
  color: Colors$e.DdsColorNeutralsGray6,
@@ -5843,13 +5861,11 @@ var optionBase = Object.assign(Object.assign({
5843
5861
  color: textDefault$4.textColor
5844
5862
  });
5845
5863
  var optionHoverBase = {
5846
- backgroundColor: Colors$e.DdsColorInteractiveLighter
5847
- };
5848
- var optionSelectedBase = Object.assign(Object.assign({
5849
5864
  backgroundColor: Colors$e.DdsColorInteractiveLightest
5850
- }, FontPackages$b.body_sans_02.base), {
5851
- fontWeight: 600
5852
- });
5865
+ };
5866
+ var optionSelectedBase = Object.assign({
5867
+ backgroundColor: Colors$e.DdsColorNeutralsWhite
5868
+ }, FontPackages$b.body_sans_02.base);
5853
5869
  var noOptionsMessageBase = Object.assign({
5854
5870
  padding: "".concat(Spacing$k.SizesDdsSpacingLocalX05, " ").concat(Spacing$k.SizesDdsSpacingLocalX1),
5855
5871
  color: Colors$e.DdsColorNeutralsGray6
@@ -5874,17 +5890,12 @@ var multiValueLabelBase = Object.assign(Object.assign({
5874
5890
  fontWeight: 'bold'
5875
5891
  });
5876
5892
  var multiValueRemoveBase = {
5877
- padding: "".concat(Spacing$k.SizesDdsSpacingLocalX025),
5878
5893
  color: Colors$e.DdsColorNeutralsGray9
5879
5894
  };
5880
5895
  var multiValueRemoveHoverBase = {
5881
5896
  color: Colors$e.DdsColorNeutralsWhite,
5882
5897
  backgroundColor: Colors$e.DdsColorInteractiveBase
5883
5898
  };
5884
- var multiValueRemoveIconBase = {
5885
- height: IconSizes$2.DdsIconsizeSmall,
5886
- width: IconSizes$2.DdsIconsizeSmall
5887
- };
5888
5899
  var containerDisabledBase = {
5889
5900
  backgroundColor: Colors$e.DdsColorNeutralsGray1,
5890
5901
  borderColor: Colors$e.DdsColorNeutralsGray5
@@ -5993,9 +6004,6 @@ var selectTokens = {
5993
6004
  base: multiValueRemoveBase,
5994
6005
  hover: {
5995
6006
  base: multiValueRemoveHoverBase
5996
- },
5997
- icon: {
5998
- base: multiValueRemoveIconBase
5999
6007
  }
6000
6008
  },
6001
6009
  indicatorsContainer: {
@@ -6122,7 +6130,7 @@ var getCustomStyles = function getCustomStyles() {
6122
6130
  transition: 'color 0.2s, background-color 0.2s'
6123
6131
  }
6124
6132
  }), selectTokens.multiValueRemove.base), {
6125
- svg: Object.assign({}, selectTokens.multiValueRemove.icon.base),
6133
+ padding: 0,
6126
6134
  '&:hover': Object.assign({}, selectTokens.multiValueRemove.hover.base),
6127
6135
  '&:focus': {
6128
6136
  backgroundColor: 'blue'
@@ -6160,6 +6168,9 @@ var getCustomStyles = function getCustomStyles() {
6160
6168
  return Object.assign(Object.assign({
6161
6169
  display: 'inline-flex'
6162
6170
  }, selectTokens.clearIndicator.base), {
6171
+ '@media (prefers-reduced-motion: no-preference)': {
6172
+ transition: 'color 0.2s'
6173
+ },
6163
6174
  '&:hover': Object.assign({}, selectTokens.clearIndicator.hover.base)
6164
6175
  });
6165
6176
  },
@@ -6172,7 +6183,10 @@ var getCustomStyles = function getCustomStyles() {
6172
6183
  var DdsOption = ReactSelect.components.Option,
6173
6184
  NoOptionsMessage = ReactSelect.components.NoOptionsMessage,
6174
6185
  Input$2 = ReactSelect.components.Input,
6175
- SingleValue = ReactSelect.components.SingleValue;
6186
+ SingleValue = ReactSelect.components.SingleValue,
6187
+ ClearIndicator = ReactSelect.components.ClearIndicator,
6188
+ DropdownIndicator = ReactSelect.components.DropdownIndicator,
6189
+ MultiValueRemove = ReactSelect.components.MultiValueRemove;
6176
6190
  var createSelectOptions = function createSelectOptions() {
6177
6191
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
6178
6192
  args[_key] = arguments[_key];
@@ -6190,7 +6204,7 @@ var IconOption = function IconOption(props) {
6190
6204
  return jsxRuntime.jsxs(DdsOption, Object.assign({}, props, {
6191
6205
  children: [props.isSelected && jsxRuntime.jsx(Icon, {
6192
6206
  icon: CheckIcon,
6193
- iconSize: "inherit"
6207
+ iconSize: "medium"
6194
6208
  }), props.children]
6195
6209
  }));
6196
6210
  };
@@ -6213,6 +6227,33 @@ var NoOptionsMessageCustom = function NoOptionsMessageCustom(props) {
6213
6227
  }));
6214
6228
  };
6215
6229
 
6230
+ var CustomClearIndicator = function CustomClearIndicator(props) {
6231
+ return jsxRuntime.jsx(ClearIndicator, Object.assign({}, props, {
6232
+ children: jsxRuntime.jsx(Icon, {
6233
+ icon: CloseSmallIcon,
6234
+ iconSize: "medium"
6235
+ })
6236
+ }));
6237
+ };
6238
+
6239
+ var CustomMultiValueRemove = function CustomMultiValueRemove(props) {
6240
+ return jsxRuntime.jsx(MultiValueRemove, Object.assign({}, props, {
6241
+ children: jsxRuntime.jsx(Icon, {
6242
+ icon: CloseSmallIcon,
6243
+ iconSize: "medium"
6244
+ })
6245
+ }));
6246
+ };
6247
+
6248
+ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
6249
+ return jsxRuntime.jsx(DropdownIndicator, Object.assign({}, props, {
6250
+ children: jsxRuntime.jsx(Icon, {
6251
+ icon: ChevronDownIcon,
6252
+ iconSize: "medium"
6253
+ })
6254
+ }));
6255
+ };
6256
+
6216
6257
  function escapeRegexCharacters(text) {
6217
6258
  return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
6218
6259
  }
@@ -6301,7 +6342,10 @@ var SelectInner = function SelectInner(_a, ref) {
6301
6342
  Input: CustomInput,
6302
6343
  SingleValue: customSingleValueElement ? function (props) {
6303
6344
  return CustomSingleValue(props, customSingleValueElement);
6304
- } : SingleValue
6345
+ } : SingleValue,
6346
+ ClearIndicator: CustomClearIndicator,
6347
+ DropdownIndicator: CustomDropdownIndicator,
6348
+ MultiValueRemove: CustomMultiValueRemove
6305
6349
  },
6306
6350
  'aria-invalid': hasErrorMessage ? true : undefined
6307
6351
  }, rest);
@@ -7453,7 +7497,7 @@ var Container$b = styled__default["default"].div.withConfig({
7453
7497
  componentId: "sc-5ltegq-3"
7454
7498
  })(["display:inline-flex;gap:", ";", ""], paginationTokens.container.spaceBetweenItems, function (_ref2) {
7455
7499
  var smallScreen = _ref2.smallScreen;
7456
- return smallScreen ? styled.css(["flex-direction:column;align-items:center;"]) : styled.css(["justify-content:space-around;flex-wrap:wrap;"]);
7500
+ return smallScreen ? styled.css(["flex-direction:column;align-items:center;"]) : styled.css(["justify-content:space-between;flex-wrap:wrap;"]);
7457
7501
  });
7458
7502
  var IndicatorsContainer = styled__default["default"].div.withConfig({
7459
7503
  displayName: "Pagination__IndicatorsContainer",
@@ -11064,6 +11108,7 @@ exports.Chip = Chip;
11064
11108
  exports.ChipGroup = ChipGroup;
11065
11109
  exports.CloseCircledIcon = CloseCircledIcon;
11066
11110
  exports.CloseIcon = CloseIcon;
11111
+ exports.CloseSmallIcon = CloseSmallIcon;
11067
11112
  exports.CloudIcon = CloudIcon;
11068
11113
  exports.CollapseIcon = CollapseIcon;
11069
11114
  exports.CommentIcon = CommentIcon;
@@ -36,7 +36,7 @@ var Container = styled.div.withConfig({
36
36
  componentId: "sc-5ltegq-3"
37
37
  })(["display:inline-flex;gap:", ";", ""], paginationTokens.container.spaceBetweenItems, function (_ref2) {
38
38
  var smallScreen = _ref2.smallScreen;
39
- return smallScreen ? css(["flex-direction:column;align-items:center;"]) : css(["justify-content:space-around;flex-wrap:wrap;"]);
39
+ return smallScreen ? css(["flex-direction:column;align-items:center;"]) : css(["justify-content:space-between;flex-wrap:wrap;"]);
40
40
  });
41
41
  var IndicatorsContainer = styled.div.withConfig({
42
42
  displayName: "Pagination__IndicatorsContainer",
@@ -6,6 +6,8 @@ import ReactSelect, { components } from 'react-select';
6
6
  import { prefix, getCustomStyles, Wrapper, Container, Label } from './Select.styles.js';
7
7
  import { selectTokens } from './Select.tokens.js';
8
8
  import { CheckIcon } from '../../icons/tsx/check.js';
9
+ import { CloseSmallIcon } from '../../icons/tsx/closeSmall.js';
10
+ import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
9
11
  import { RequiredMarker } from '../../helpers/RequiredMarker/RequiredMarker.js';
10
12
  import { InputMessage } from '../InputMessage/InputMessage.js';
11
13
  import { Icon } from '../Icon/Icon.js';
@@ -14,7 +16,10 @@ import { derivativeIdGenerator, spaceSeparatedIdListGenerator } from '../../util
14
16
  var DdsOption = components.Option,
15
17
  NoOptionsMessage = components.NoOptionsMessage,
16
18
  Input = components.Input,
17
- SingleValue = components.SingleValue;
19
+ SingleValue = components.SingleValue,
20
+ ClearIndicator = components.ClearIndicator,
21
+ DropdownIndicator = components.DropdownIndicator,
22
+ MultiValueRemove = components.MultiValueRemove;
18
23
  var createSelectOptions = function createSelectOptions() {
19
24
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
20
25
  args[_key] = arguments[_key];
@@ -32,7 +37,7 @@ var IconOption = function IconOption(props) {
32
37
  return jsxs(DdsOption, Object.assign({}, props, {
33
38
  children: [props.isSelected && jsx(Icon, {
34
39
  icon: CheckIcon,
35
- iconSize: "inherit"
40
+ iconSize: "medium"
36
41
  }), props.children]
37
42
  }));
38
43
  };
@@ -55,6 +60,33 @@ var NoOptionsMessageCustom = function NoOptionsMessageCustom(props) {
55
60
  }));
56
61
  };
57
62
 
63
+ var CustomClearIndicator = function CustomClearIndicator(props) {
64
+ return jsx(ClearIndicator, Object.assign({}, props, {
65
+ children: jsx(Icon, {
66
+ icon: CloseSmallIcon,
67
+ iconSize: "medium"
68
+ })
69
+ }));
70
+ };
71
+
72
+ var CustomMultiValueRemove = function CustomMultiValueRemove(props) {
73
+ return jsx(MultiValueRemove, Object.assign({}, props, {
74
+ children: jsx(Icon, {
75
+ icon: CloseSmallIcon,
76
+ iconSize: "medium"
77
+ })
78
+ }));
79
+ };
80
+
81
+ var CustomDropdownIndicator = function CustomDropdownIndicator(props) {
82
+ return jsx(DropdownIndicator, Object.assign({}, props, {
83
+ children: jsx(Icon, {
84
+ icon: ChevronDownIcon,
85
+ iconSize: "medium"
86
+ })
87
+ }));
88
+ };
89
+
58
90
  function escapeRegexCharacters(text) {
59
91
  return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
60
92
  }
@@ -143,7 +175,10 @@ var SelectInner = function SelectInner(_a, ref) {
143
175
  Input: CustomInput,
144
176
  SingleValue: customSingleValueElement ? function (props) {
145
177
  return CustomSingleValue(props, customSingleValueElement);
146
- } : SingleValue
178
+ } : SingleValue,
179
+ ClearIndicator: CustomClearIndicator,
180
+ DropdownIndicator: CustomDropdownIndicator,
181
+ MultiValueRemove: CustomMultiValueRemove
147
182
  },
148
183
  'aria-invalid': hasErrorMessage ? true : undefined
149
184
  }, rest);
@@ -89,7 +89,7 @@ var getCustomStyles = function getCustomStyles() {
89
89
  transition: 'color 0.2s, background-color 0.2s'
90
90
  }
91
91
  }), selectTokens.multiValueRemove.base), {
92
- svg: Object.assign({}, selectTokens.multiValueRemove.icon.base),
92
+ padding: 0,
93
93
  '&:hover': Object.assign({}, selectTokens.multiValueRemove.hover.base),
94
94
  '&:focus': {
95
95
  backgroundColor: 'blue'
@@ -127,6 +127,9 @@ var getCustomStyles = function getCustomStyles() {
127
127
  return Object.assign(Object.assign({
128
128
  display: 'inline-flex'
129
129
  }, selectTokens.clearIndicator.base), {
130
+ '@media (prefers-reduced-motion: no-preference)': {
131
+ transition: 'color 0.2s'
132
+ },
130
133
  '&:hover': Object.assign({}, selectTokens.clearIndicator.hover.base)
131
134
  });
132
135
  },
@@ -100,9 +100,6 @@ export declare const selectTokens: {
100
100
  hover: {
101
101
  base: CSSObject;
102
102
  };
103
- icon: {
104
- base: CSSObject;
105
- };
106
103
  };
107
104
  indicatorsContainer: {
108
105
  withLabel: {
@@ -8,8 +8,7 @@ var Colors = ddsBaseTokens.colors,
8
8
  Spacing = ddsBaseTokens.spacing,
9
9
  FontPackages = ddsBaseTokens.fontPackages,
10
10
  BorderRadius = ddsBaseTokens.borderRadius,
11
- Border = ddsBaseTokens.border,
12
- IconSizes = ddsBaseTokens.iconSizes;
11
+ Border = ddsBaseTokens.border;
13
12
  var textDefault = ddsReferenceTokens.textDefault;
14
13
  var multiValueContainerMinHeight = "".concat(Spacing.SizesDdsSpacingLocalX0125NumberPx * 2 + Spacing.SizesDdsSpacingLocalX025NumberPx * 2 + calculateHeightWithLineHeight(FontPackages.supportingStyle_inputtext_01.numbers.lineHeightNumber, FontPackages.supportingStyle_inputtext_01.numbers.fontSizeNumber), "px"); //custom spacing so that multiselect has same height as single value select
15
14
 
@@ -90,8 +89,7 @@ var drodownIndicatorReadOnlyBase = {
90
89
  color: 'transparent'
91
90
  };
92
91
  var clearIndicatorBase = {
93
- color: Colors.DdsColorNeutralsGray6,
94
- padding: " 0 ".concat(Spacing.SizesDdsSpacingLocalX025, " 0 0")
92
+ color: Colors.DdsColorNeutralsGray6
95
93
  };
96
94
  var loadingIndicatorBase = {
97
95
  color: Colors.DdsColorNeutralsGray6,
@@ -117,13 +115,11 @@ var optionBase = Object.assign(Object.assign({
117
115
  color: textDefault.textColor
118
116
  });
119
117
  var optionHoverBase = {
120
- backgroundColor: Colors.DdsColorInteractiveLighter
121
- };
122
- var optionSelectedBase = Object.assign(Object.assign({
123
118
  backgroundColor: Colors.DdsColorInteractiveLightest
124
- }, FontPackages.body_sans_02.base), {
125
- fontWeight: 600
126
- });
119
+ };
120
+ var optionSelectedBase = Object.assign({
121
+ backgroundColor: Colors.DdsColorNeutralsWhite
122
+ }, FontPackages.body_sans_02.base);
127
123
  var noOptionsMessageBase = Object.assign({
128
124
  padding: "".concat(Spacing.SizesDdsSpacingLocalX05, " ").concat(Spacing.SizesDdsSpacingLocalX1),
129
125
  color: Colors.DdsColorNeutralsGray6
@@ -148,17 +144,12 @@ var multiValueLabelBase = Object.assign(Object.assign({
148
144
  fontWeight: 'bold'
149
145
  });
150
146
  var multiValueRemoveBase = {
151
- padding: "".concat(Spacing.SizesDdsSpacingLocalX025),
152
147
  color: Colors.DdsColorNeutralsGray9
153
148
  };
154
149
  var multiValueRemoveHoverBase = {
155
150
  color: Colors.DdsColorNeutralsWhite,
156
151
  backgroundColor: Colors.DdsColorInteractiveBase
157
152
  };
158
- var multiValueRemoveIconBase = {
159
- height: IconSizes.DdsIconsizeSmall,
160
- width: IconSizes.DdsIconsizeSmall
161
- };
162
153
  var containerDisabledBase = {
163
154
  backgroundColor: Colors.DdsColorNeutralsGray1,
164
155
  borderColor: Colors.DdsColorNeutralsGray5
@@ -267,9 +258,6 @@ var selectTokens = {
267
258
  base: multiValueRemoveBase,
268
259
  hover: {
269
260
  base: multiValueRemoveHoverBase
270
- },
271
- icon: {
272
- base: multiValueRemoveIconBase
273
261
  }
274
262
  },
275
263
  indicatorsContainer: {
@@ -6,9 +6,9 @@ import { cellTokens } from './Cell.tokens.js';
6
6
  import styled from 'styled-components';
7
7
  import { removeButtonStyling } from '../../helpers/styling/removeButtonStyling.js';
8
8
  import { UnfoldMoreIcon } from '../../icons/tsx/unfoldMore.js';
9
- import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
10
9
  import { ChevronUpIcon } from '../../icons/tsx/chevronUp.js';
11
10
  import { Icon } from '../Icon/Icon.js';
11
+ import { ChevronDownIcon } from '../../icons/tsx/chevronDown.js';
12
12
 
13
13
  var SortIcon = styled(Icon).withConfig({
14
14
  displayName: "SortCell__SortIcon",
@@ -0,0 +1,2 @@
1
+ import { SvgProps } from '../utils/propTypes';
2
+ export declare function CloseSmallIcon(props: SvgProps): JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { __rest } from 'tslib';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { StyledSvg } from '../utils/StyledSvg.js';
4
+
5
+ function CloseSmallIcon(props) {
6
+ var title = props.title,
7
+ rest = __rest(props, ["title"]);
8
+
9
+ return jsxs(StyledSvg, Object.assign({
10
+ width: 24,
11
+ height: 24,
12
+ fill: "currentColor"
13
+ }, rest, {
14
+ xmlns: "http://www.w3.org/2000/svg",
15
+ viewBox: "0 0 24 24"
16
+ }, {
17
+ children: [title && jsx("title", {
18
+ children: title
19
+ }), jsx("path", {
20
+ d: "M7.293 8.707l1.414-1.414L12 10.586l3.293-3.293 1.414 1.414L13.414 12l3.293 3.293-1.414 1.414L12 13.414l-3.293 3.293-1.414-1.414L10.586 12 7.293 8.707z"
21
+ })]
22
+ }));
23
+ }
24
+
25
+ export { CloseSmallIcon };
@@ -28,6 +28,7 @@ export * from './chevronLeft';
28
28
  export * from './chevronRight';
29
29
  export * from './chevronUp';
30
30
  export * from './close';
31
+ export * from './closeSmall';
31
32
  export * from './closeCircled';
32
33
  export * from './cloud';
33
34
  export * from './collapse';
package/dist/index.js CHANGED
@@ -92,6 +92,7 @@ export { ChevronLeftIcon } from './icons/tsx/chevronLeft.js';
92
92
  export { ChevronRightIcon } from './icons/tsx/chevronRight.js';
93
93
  export { ChevronUpIcon } from './icons/tsx/chevronUp.js';
94
94
  export { CloseIcon } from './icons/tsx/close.js';
95
+ export { CloseSmallIcon } from './icons/tsx/closeSmall.js';
95
96
  export { CloseCircledIcon } from './icons/tsx/closeCircled.js';
96
97
  export { CloudIcon } from './icons/tsx/cloud.js';
97
98
  export { CollapseIcon } from './icons/tsx/collapse.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norges-domstoler/dds-components",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "React components used in Elsa - domstolenes designsystem",
5
5
  "author": "Elsa team",
6
6
  "license": "MIT",
@@ -80,7 +80,7 @@
80
80
  "eslint-plugin-react": "^7.30.1",
81
81
  "eslint-plugin-storybook": "^0.6.4",
82
82
  "jest": "^28.1.3",
83
- "jest-environment-jsdom": "^28.1.3",
83
+ "jest-environment-jsdom": "^29.0.1",
84
84
  "react": "^18.2.0",
85
85
  "react-dom": "^18.2.0",
86
86
  "rollup": "^2.78.1",