@norges-domstoler/dds-components 2.0.0 → 2.1.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/dist/index.es.js
CHANGED
|
@@ -12222,10 +12222,10 @@ var focusVisible = {
|
|
|
12222
12222
|
outline: "".concat(Border$h.BordersDdsBorderFocusBaseStrokeWeight, " ").concat(Border$h.BordersDdsBorderFocusBaseStroke, " solid"),
|
|
12223
12223
|
outlineOffset: outlineOffset
|
|
12224
12224
|
};
|
|
12225
|
-
|
|
12226
|
-
outline: "".concat(Border$h.
|
|
12225
|
+
var focusVisibleOnDark = {
|
|
12226
|
+
outline: "".concat(Border$h.BordersDdsBorderFocusOndarkStrokeWeight, " ").concat(Border$h.BordersDdsBorderFocusOndarkStroke, " solid"),
|
|
12227
12227
|
outlineOffset: outlineOffset
|
|
12228
|
-
}
|
|
12228
|
+
};
|
|
12229
12229
|
var focusVisibleLink = {
|
|
12230
12230
|
outline: 'none',
|
|
12231
12231
|
backgroundColor: Border$h.BordersDdsBorderFocusBaseStroke,
|
|
@@ -12234,7 +12234,7 @@ var focusVisibleLink = {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
({
|
|
12236
12236
|
outline: 'none',
|
|
12237
|
-
backgroundColor:
|
|
12237
|
+
backgroundColor: Border$h.BordersDdsBorderFocusOndarkStroke,
|
|
12238
12238
|
color: Colors$r.DdsColorNeutralsGray9,
|
|
12239
12239
|
textDecoration: 'none'
|
|
12240
12240
|
});
|
|
@@ -12245,8 +12245,8 @@ var focusVisibleWithBorder = {
|
|
|
12245
12245
|
};
|
|
12246
12246
|
({
|
|
12247
12247
|
outline: 'none',
|
|
12248
|
-
borderColor:
|
|
12249
|
-
boxShadow: "inset 0 0 0 1px ".concat(
|
|
12248
|
+
borderColor: Border$h.BordersDdsBorderFocusOndarkStroke,
|
|
12249
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$h.BordersDdsBorderFocusOndarkStroke)
|
|
12250
12250
|
});
|
|
12251
12251
|
var focusVisibleInset = {
|
|
12252
12252
|
outline: 'none',
|
|
@@ -28776,6 +28776,9 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28776
28776
|
}, {
|
|
28777
28777
|
label: '50',
|
|
28778
28778
|
value: 50
|
|
28779
|
+
}, {
|
|
28780
|
+
label: 'Alle',
|
|
28781
|
+
value: itemsAmount
|
|
28779
28782
|
}] : _e,
|
|
28780
28783
|
smallScreen = _a.smallScreen,
|
|
28781
28784
|
onChange = _a.onChange,
|
|
@@ -28921,7 +28924,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28921
28924
|
children: [withSelect && jsxRuntime.exports.jsx(Select, {
|
|
28922
28925
|
options: selectOptions,
|
|
28923
28926
|
isSearchable: false,
|
|
28924
|
-
width: "
|
|
28927
|
+
width: "80px",
|
|
28925
28928
|
defaultValue: {
|
|
28926
28929
|
label: itemsPerPage.toString(),
|
|
28927
28930
|
value: itemsPerPage
|
|
@@ -29648,7 +29651,7 @@ var linkBase$2 = __assign({
|
|
|
29648
29651
|
backgroundColor: Colors$6.DdsColorNeutralsWhite
|
|
29649
29652
|
}, FontPackages$3.body_sans_01.base);
|
|
29650
29653
|
|
|
29651
|
-
var linkHoverBase$
|
|
29654
|
+
var linkHoverBase$2 = {
|
|
29652
29655
|
color: Colors$6.DdsColorInteractiveDark,
|
|
29653
29656
|
backgroundColor: Colors$6.DdsColorPrimaryLightest
|
|
29654
29657
|
};
|
|
@@ -29678,7 +29681,7 @@ var navigationLinkBase = __assign({
|
|
|
29678
29681
|
padding: "".concat(Spacing$8.SizesDdsSpacingLocalX075, " ").concat(Spacing$8.SizesDdsSpacingLocalX15)
|
|
29679
29682
|
}, linkBase$2);
|
|
29680
29683
|
|
|
29681
|
-
var navigationLinkHoverBase = __assign({}, linkHoverBase$
|
|
29684
|
+
var navigationLinkHoverBase = __assign({}, linkHoverBase$2);
|
|
29682
29685
|
|
|
29683
29686
|
var navigationLinkActiveBase = __assign({}, linkActiveBase$1);
|
|
29684
29687
|
|
|
@@ -31434,7 +31437,7 @@ var linkBase$1 = __assign({
|
|
|
31434
31437
|
gap: Spacing$7.SizesDdsSpacingLocalX025
|
|
31435
31438
|
}, FontPackages$2.body_sans_01.base);
|
|
31436
31439
|
|
|
31437
|
-
var linkHoverBase = {
|
|
31440
|
+
var linkHoverBase$1 = {
|
|
31438
31441
|
color: Colors$5.DdsColorInteractiveDark,
|
|
31439
31442
|
backgroundColor: Colors$5.DdsColorPrimaryLightest
|
|
31440
31443
|
};
|
|
@@ -31447,7 +31450,7 @@ var wrapperBase$3 = {
|
|
|
31447
31450
|
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius
|
|
31448
31451
|
};
|
|
31449
31452
|
|
|
31450
|
-
var linkFocusBase = __assign({}, focusVisibleLink);
|
|
31453
|
+
var linkFocusBase$1 = __assign({}, focusVisibleLink);
|
|
31451
31454
|
|
|
31452
31455
|
var dividerBase = {
|
|
31453
31456
|
marginRight: Spacing$7.SizesDdsSpacingLocalX15,
|
|
@@ -31463,10 +31466,10 @@ var overflowMenuTokens = {
|
|
|
31463
31466
|
base: linkActiveBase
|
|
31464
31467
|
},
|
|
31465
31468
|
hover: {
|
|
31466
|
-
base: linkHoverBase
|
|
31469
|
+
base: linkHoverBase$1
|
|
31467
31470
|
},
|
|
31468
31471
|
focus: {
|
|
31469
|
-
base: linkFocusBase
|
|
31472
|
+
base: linkFocusBase$1
|
|
31470
31473
|
}
|
|
31471
31474
|
},
|
|
31472
31475
|
divider: {
|
|
@@ -32081,6 +32084,12 @@ var linkBase = __assign(__assign({
|
|
|
32081
32084
|
textDecoration: 'none'
|
|
32082
32085
|
});
|
|
32083
32086
|
|
|
32087
|
+
var linkHoverBase = {
|
|
32088
|
+
color: Colors$4.DdsColorNeutralsWhite
|
|
32089
|
+
};
|
|
32090
|
+
|
|
32091
|
+
var linkFocusBase = __assign({}, focusVisibleOnDark);
|
|
32092
|
+
|
|
32084
32093
|
var wrapperBase$2 = {
|
|
32085
32094
|
backgroundColor: Colors$4.DdsColorPrimaryBase,
|
|
32086
32095
|
padding: Spacing$5.SizesDdsSpacingLocalX025
|
|
@@ -32088,6 +32097,12 @@ var wrapperBase$2 = {
|
|
|
32088
32097
|
var skipToContentTokens = {
|
|
32089
32098
|
link: {
|
|
32090
32099
|
base: linkBase,
|
|
32100
|
+
hover: {
|
|
32101
|
+
base: linkHoverBase
|
|
32102
|
+
},
|
|
32103
|
+
focus: {
|
|
32104
|
+
base: linkFocusBase
|
|
32105
|
+
},
|
|
32091
32106
|
focusOutline: {
|
|
32092
32107
|
color: Colors$4.DdsColorWarningDark,
|
|
32093
32108
|
width: Border$2.BordersDdsBorderFocusBaseStrokeWeight
|
|
@@ -32108,7 +32123,7 @@ var Wrapper$1 = styled$3.div.withConfig({
|
|
|
32108
32123
|
var Link = styled$3.a.withConfig({
|
|
32109
32124
|
displayName: "SkipToContent__Link",
|
|
32110
32125
|
componentId: "sc-57o1qv-1"
|
|
32111
|
-
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n &:focus {\n
|
|
32126
|
+
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:hover {\n ", "\n }\n"], ["\n ", "\n &:focus {\n ", "\n }\n &:hover {\n ", "\n }\n"])), skipToContentTokens.link.base, skipToContentTokens.link.focus.base, skipToContentTokens.link.hover.base);
|
|
32112
32127
|
var SkipToContent = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
32113
32128
|
var _b = _a.text,
|
|
32114
32129
|
text = _b === void 0 ? 'Til hovedinnhold' : _b,
|
package/dist/index.js
CHANGED
|
@@ -12248,10 +12248,10 @@ var focusVisible = {
|
|
|
12248
12248
|
outline: "".concat(Border$h.BordersDdsBorderFocusBaseStrokeWeight, " ").concat(Border$h.BordersDdsBorderFocusBaseStroke, " solid"),
|
|
12249
12249
|
outlineOffset: outlineOffset
|
|
12250
12250
|
};
|
|
12251
|
-
|
|
12252
|
-
outline: "".concat(Border$h.
|
|
12251
|
+
var focusVisibleOnDark = {
|
|
12252
|
+
outline: "".concat(Border$h.BordersDdsBorderFocusOndarkStrokeWeight, " ").concat(Border$h.BordersDdsBorderFocusOndarkStroke, " solid"),
|
|
12253
12253
|
outlineOffset: outlineOffset
|
|
12254
|
-
}
|
|
12254
|
+
};
|
|
12255
12255
|
var focusVisibleLink = {
|
|
12256
12256
|
outline: 'none',
|
|
12257
12257
|
backgroundColor: Border$h.BordersDdsBorderFocusBaseStroke,
|
|
@@ -12260,7 +12260,7 @@ var focusVisibleLink = {
|
|
|
12260
12260
|
};
|
|
12261
12261
|
({
|
|
12262
12262
|
outline: 'none',
|
|
12263
|
-
backgroundColor:
|
|
12263
|
+
backgroundColor: Border$h.BordersDdsBorderFocusOndarkStroke,
|
|
12264
12264
|
color: Colors$r.DdsColorNeutralsGray9,
|
|
12265
12265
|
textDecoration: 'none'
|
|
12266
12266
|
});
|
|
@@ -12271,8 +12271,8 @@ var focusVisibleWithBorder = {
|
|
|
12271
12271
|
};
|
|
12272
12272
|
({
|
|
12273
12273
|
outline: 'none',
|
|
12274
|
-
borderColor:
|
|
12275
|
-
boxShadow: "inset 0 0 0 1px ".concat(
|
|
12274
|
+
borderColor: Border$h.BordersDdsBorderFocusOndarkStroke,
|
|
12275
|
+
boxShadow: "inset 0 0 0 1px ".concat(Border$h.BordersDdsBorderFocusOndarkStroke)
|
|
12276
12276
|
});
|
|
12277
12277
|
var focusVisibleInset = {
|
|
12278
12278
|
outline: 'none',
|
|
@@ -28802,6 +28802,9 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
28802
28802
|
}, {
|
|
28803
28803
|
label: '50',
|
|
28804
28804
|
value: 50
|
|
28805
|
+
}, {
|
|
28806
|
+
label: 'Alle',
|
|
28807
|
+
value: itemsAmount
|
|
28805
28808
|
}] : _e,
|
|
28806
28809
|
smallScreen = _a.smallScreen,
|
|
28807
28810
|
onChange = _a.onChange,
|
|
@@ -28947,7 +28950,7 @@ var Pagination = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
28947
28950
|
children: [withSelect && jsxRuntime.exports.jsx(Select, {
|
|
28948
28951
|
options: selectOptions,
|
|
28949
28952
|
isSearchable: false,
|
|
28950
|
-
width: "
|
|
28953
|
+
width: "80px",
|
|
28951
28954
|
defaultValue: {
|
|
28952
28955
|
label: itemsPerPage.toString(),
|
|
28953
28956
|
value: itemsPerPage
|
|
@@ -29674,7 +29677,7 @@ var linkBase$2 = __assign({
|
|
|
29674
29677
|
backgroundColor: Colors$6.DdsColorNeutralsWhite
|
|
29675
29678
|
}, FontPackages$3.body_sans_01.base);
|
|
29676
29679
|
|
|
29677
|
-
var linkHoverBase$
|
|
29680
|
+
var linkHoverBase$2 = {
|
|
29678
29681
|
color: Colors$6.DdsColorInteractiveDark,
|
|
29679
29682
|
backgroundColor: Colors$6.DdsColorPrimaryLightest
|
|
29680
29683
|
};
|
|
@@ -29704,7 +29707,7 @@ var navigationLinkBase = __assign({
|
|
|
29704
29707
|
padding: "".concat(Spacing$8.SizesDdsSpacingLocalX075, " ").concat(Spacing$8.SizesDdsSpacingLocalX15)
|
|
29705
29708
|
}, linkBase$2);
|
|
29706
29709
|
|
|
29707
|
-
var navigationLinkHoverBase = __assign({}, linkHoverBase$
|
|
29710
|
+
var navigationLinkHoverBase = __assign({}, linkHoverBase$2);
|
|
29708
29711
|
|
|
29709
29712
|
var navigationLinkActiveBase = __assign({}, linkActiveBase$1);
|
|
29710
29713
|
|
|
@@ -31460,7 +31463,7 @@ var linkBase$1 = __assign({
|
|
|
31460
31463
|
gap: Spacing$7.SizesDdsSpacingLocalX025
|
|
31461
31464
|
}, FontPackages$2.body_sans_01.base);
|
|
31462
31465
|
|
|
31463
|
-
var linkHoverBase = {
|
|
31466
|
+
var linkHoverBase$1 = {
|
|
31464
31467
|
color: Colors$5.DdsColorInteractiveDark,
|
|
31465
31468
|
backgroundColor: Colors$5.DdsColorPrimaryLightest
|
|
31466
31469
|
};
|
|
@@ -31473,7 +31476,7 @@ var wrapperBase$3 = {
|
|
|
31473
31476
|
borderRadius: BorderRadius$4.RadiiDdsBorderRadius1Radius
|
|
31474
31477
|
};
|
|
31475
31478
|
|
|
31476
|
-
var linkFocusBase = __assign({}, focusVisibleLink);
|
|
31479
|
+
var linkFocusBase$1 = __assign({}, focusVisibleLink);
|
|
31477
31480
|
|
|
31478
31481
|
var dividerBase = {
|
|
31479
31482
|
marginRight: Spacing$7.SizesDdsSpacingLocalX15,
|
|
@@ -31489,10 +31492,10 @@ var overflowMenuTokens = {
|
|
|
31489
31492
|
base: linkActiveBase
|
|
31490
31493
|
},
|
|
31491
31494
|
hover: {
|
|
31492
|
-
base: linkHoverBase
|
|
31495
|
+
base: linkHoverBase$1
|
|
31493
31496
|
},
|
|
31494
31497
|
focus: {
|
|
31495
|
-
base: linkFocusBase
|
|
31498
|
+
base: linkFocusBase$1
|
|
31496
31499
|
}
|
|
31497
31500
|
},
|
|
31498
31501
|
divider: {
|
|
@@ -32107,6 +32110,12 @@ var linkBase = __assign(__assign({
|
|
|
32107
32110
|
textDecoration: 'none'
|
|
32108
32111
|
});
|
|
32109
32112
|
|
|
32113
|
+
var linkHoverBase = {
|
|
32114
|
+
color: Colors$4.DdsColorNeutralsWhite
|
|
32115
|
+
};
|
|
32116
|
+
|
|
32117
|
+
var linkFocusBase = __assign({}, focusVisibleOnDark);
|
|
32118
|
+
|
|
32110
32119
|
var wrapperBase$2 = {
|
|
32111
32120
|
backgroundColor: Colors$4.DdsColorPrimaryBase,
|
|
32112
32121
|
padding: Spacing$5.SizesDdsSpacingLocalX025
|
|
@@ -32114,6 +32123,12 @@ var wrapperBase$2 = {
|
|
|
32114
32123
|
var skipToContentTokens = {
|
|
32115
32124
|
link: {
|
|
32116
32125
|
base: linkBase,
|
|
32126
|
+
hover: {
|
|
32127
|
+
base: linkHoverBase
|
|
32128
|
+
},
|
|
32129
|
+
focus: {
|
|
32130
|
+
base: linkFocusBase
|
|
32131
|
+
},
|
|
32117
32132
|
focusOutline: {
|
|
32118
32133
|
color: Colors$4.DdsColorWarningDark,
|
|
32119
32134
|
width: Border$2.BordersDdsBorderFocusBaseStrokeWeight
|
|
@@ -32134,7 +32149,7 @@ var Wrapper$1 = styled$3.div.withConfig({
|
|
|
32134
32149
|
var Link = styled$3.a.withConfig({
|
|
32135
32150
|
displayName: "SkipToContent__Link",
|
|
32136
32151
|
componentId: "sc-57o1qv-1"
|
|
32137
|
-
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n &:focus {\n
|
|
32152
|
+
})(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n ", "\n &:focus {\n ", "\n }\n &:hover {\n ", "\n }\n"], ["\n ", "\n &:focus {\n ", "\n }\n &:hover {\n ", "\n }\n"])), skipToContentTokens.link.base, skipToContentTokens.link.focus.base, skipToContentTokens.link.hover.base);
|
|
32138
32153
|
var SkipToContent = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
32139
32154
|
var _b = _a.text,
|
|
32140
32155
|
text = _b === void 0 ? 'Til hovedinnhold' : _b,
|