@norges-domstoler/dds-components 10.0.0 → 10.0.1
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/cjs/components/FormGenerator/FormGenerator.styles.d.ts +1 -0
- package/dist/cjs/components/FormGenerator/FormGenerator.tokens.d.ts +3 -0
- package/dist/cjs/index.js +8 -8
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/FormGenerator/FormGenerator.styles.d.ts +1 -0
- package/dist/components/FormGenerator/FormGenerator.tokens.d.ts +3 -0
- package/dist/components/OverflowMenu/OverflowMenu.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Search/SearchSuggestions.js +1 -1
- package/dist/components/Select/Select.styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.styles.js +1 -1
- package/dist/helpers/Backdrop/Backdrop.js +1 -1
- package/package.json +1 -1
|
@@ -7,3 +7,4 @@ export declare const SubContainer: import("styled-components").StyledComponent<"
|
|
|
7
7
|
length: number;
|
|
8
8
|
breakpoint?: ScreenSize | undefined;
|
|
9
9
|
}, never>;
|
|
10
|
+
export declare const ButtonRow: import("styled-components").StyledComponent<(props: import("../Grid").GridChildProps) => JSX.Element, any, {}, never>;
|
package/dist/cjs/index.js
CHANGED
|
@@ -693,7 +693,7 @@ var Typography = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
693
693
|
var Backdrop = styled__default["default"].div.withConfig({
|
|
694
694
|
displayName: "Backdrop",
|
|
695
695
|
componentId: "sc-vimg90-0"
|
|
696
|
-
})(["position:fixed;display:flex;align-items:center;justify-content:center;background-color:", ";overflow-y:auto;top:0;right:0;bottom:0;left:0;z-index:
|
|
696
|
+
})(["position:fixed;display:flex;align-items:center;justify-content:center;background-color:", ";overflow-y:auto;top:0;right:0;bottom:0;left:0;z-index:200;opacity:", ";@media (prefers-reduced-motion:no-preference){transition:opacity 0.2s;}"], changeRGBAAlpha(ddsDesignTokens.ddsBaseTokens.colors.DdsColorNeutralsGray9, 0.5), function (_ref) {
|
|
697
697
|
var isOpen = _ref.isOpen;
|
|
698
698
|
return isOpen ? 1 : 0;
|
|
699
699
|
});
|
|
@@ -4166,7 +4166,7 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
4166
4166
|
},
|
|
4167
4167
|
menu: function menu(provided) {
|
|
4168
4168
|
return Object.assign(Object.assign({}, provided), {
|
|
4169
|
-
zIndex:
|
|
4169
|
+
zIndex: 100,
|
|
4170
4170
|
transition: '0.2s',
|
|
4171
4171
|
width: 'calc(100% + 2px)',
|
|
4172
4172
|
transform: 'translate(-1px)',
|
|
@@ -5457,7 +5457,7 @@ var suggestionsContainer = searchTokens.suggestionsContainer,
|
|
|
5457
5457
|
var SuggestionsContainer = styled__default["default"](Paper).withConfig({
|
|
5458
5458
|
displayName: "SearchSuggestions__SuggestionsContainer",
|
|
5459
5459
|
componentId: "sc-nlwf4s-0"
|
|
5460
|
-
})(["", ";position:absolute;top:100%;width:100%;max-height:300px;margin-top:", ";border:", ";box-shadow:", ";z-index:
|
|
5460
|
+
})(["", ";position:absolute;top:100%;width:100%;max-height:300px;margin-top:", ";border:", ";box-shadow:", ";z-index:100;overflow-y:scroll;", " ", ""], function (_ref) {
|
|
5461
5461
|
var isHidden = _ref.isHidden;
|
|
5462
5462
|
return visibilityTransition(!isHidden);
|
|
5463
5463
|
}, suggestionsContainer.marginTop, suggestionsContainer.border, suggestionsContainer.boxShadow, scrollbarStyling.firefox, scrollbarStyling.webkit);
|
|
@@ -5639,7 +5639,7 @@ var Search$1 = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
5639
5639
|
type: 'search',
|
|
5640
5640
|
id: uniqueId,
|
|
5641
5641
|
'aria-describedby': spaceSeparatedIdListGenerator([tip ? tipId : undefined, context.suggestions ? suggestionsDescriptionId : undefined, ariaDescribedby]),
|
|
5642
|
-
value: context.inputValue !== undefined ? context.inputValue : value ? value :
|
|
5642
|
+
value: context.inputValue !== undefined ? context.inputValue : value ? value : '',
|
|
5643
5643
|
onChange: handleChange,
|
|
5644
5644
|
autoComplete: 'off'
|
|
5645
5645
|
});
|
|
@@ -7133,7 +7133,7 @@ var container$7 = overflowMenuTokens.container,
|
|
|
7133
7133
|
var Container$a = styled__default["default"].div.withConfig({
|
|
7134
7134
|
displayName: "OverflowMenu__Container",
|
|
7135
7135
|
componentId: "sc-kh744b-0"
|
|
7136
|
-
})(["box-sizing:border-box;z-index:
|
|
7136
|
+
})(["box-sizing:border-box;z-index:100;overflow-y:auto;min-width:180px;max-width:300px;", " border:", ";background-color:", ";border-radius:", ";", " ", " *::selection{", "}"], function (_ref) {
|
|
7137
7137
|
var isOpen = _ref.isOpen;
|
|
7138
7138
|
return visibilityTransition(isOpen);
|
|
7139
7139
|
}, container$7.border, container$7.backgroundColor, container$7.borderRadius, scrollbarStyling.webkit, scrollbarStyling.firefox, selection);
|
|
@@ -7730,7 +7730,7 @@ var Container$9 = styled__default["default"].div.withConfig({
|
|
|
7730
7730
|
var TooltipWrapper = styled__default["default"](Paper).withConfig({
|
|
7731
7731
|
displayName: "Tooltipstyles__TooltipWrapper",
|
|
7732
7732
|
componentId: "sc-1cna5tc-3"
|
|
7733
|
-
})(["", " width:fit-content;position:absolute;z-index:
|
|
7733
|
+
})(["", " width:fit-content;position:absolute;z-index:100;text-align:center;padding:", ";", ";"], function (_ref) {
|
|
7734
7734
|
var open = _ref.open;
|
|
7735
7735
|
return visibilityTransition(open);
|
|
7736
7736
|
}, wrapper$4.padding, getFontStyling(defaultTypographyType));
|
|
@@ -8012,7 +8012,7 @@ var getMaxWidth = function getMaxWidth(size) {
|
|
|
8012
8012
|
var Container$5 = styled__default["default"](Paper).withConfig({
|
|
8013
8013
|
displayName: "Drawer__Container",
|
|
8014
8014
|
componentId: "sc-i9luw3-0"
|
|
8015
|
-
})(["position:fixed;top:0;height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:300px;z-index:
|
|
8015
|
+
})(["position:fixed;top:0;height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:300px;z-index:100;padding:", ";", " ", " ", " @media (prefers-reduced-motion:no-preference){transition:transform 0.5s;}&:focus-visible,&.focus-visible{", "}"], container$3.padding, function (_ref) {
|
|
8016
8016
|
var size = _ref.size;
|
|
8017
8017
|
return styled.css(["max-width:", ";"], getMaxWidth(size));
|
|
8018
8018
|
}, function (_ref2) {
|
|
@@ -8184,7 +8184,7 @@ var wrapper$2 = popoverTokens.wrapper,
|
|
|
8184
8184
|
var Wrapper$1 = styled__default["default"](Paper).withConfig({
|
|
8185
8185
|
displayName: "Popover__Wrapper",
|
|
8186
8186
|
componentId: "sc-1fecd7e-0"
|
|
8187
|
-
})(["opacity:0;", " position:absolute;width:fit-content;z-index:
|
|
8187
|
+
})(["opacity:0;", " position:absolute;width:fit-content;z-index:100;padding:", ";&:focus-visible{", "}", ""], function (_ref) {
|
|
8188
8188
|
var hasTransitionedIn = _ref.hasTransitionedIn,
|
|
8189
8189
|
isOpen = _ref.isOpen;
|
|
8190
8190
|
return hasTransitionedIn && visibilityTransition(hasTransitionedIn && isOpen);
|
|
@@ -43,7 +43,7 @@ var getMaxWidth = function getMaxWidth(size) {
|
|
|
43
43
|
var Container = styled(Paper).withConfig({
|
|
44
44
|
displayName: "Drawer__Container",
|
|
45
45
|
componentId: "sc-i9luw3-0"
|
|
46
|
-
})(["position:fixed;top:0;height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:300px;z-index:
|
|
46
|
+
})(["position:fixed;top:0;height:100%;display:flex;flex-direction:column-reverse;justify-content:flex-end;min-width:300px;z-index:100;padding:", ";", " ", " ", " @media (prefers-reduced-motion:no-preference){transition:transform 0.5s;}&:focus-visible,&.focus-visible{", "}"], container.padding, function (_ref) {
|
|
47
47
|
var size = _ref.size;
|
|
48
48
|
return css(["max-width:", ";"], getMaxWidth(size));
|
|
49
49
|
}, function (_ref2) {
|
|
@@ -7,3 +7,4 @@ export declare const SubContainer: import("styled-components").StyledComponent<"
|
|
|
7
7
|
length: number;
|
|
8
8
|
breakpoint?: ScreenSize | undefined;
|
|
9
9
|
}, never>;
|
|
10
|
+
export declare const ButtonRow: import("styled-components").StyledComponent<(props: import("../Grid").GridChildProps) => JSX.Element, any, {}, never>;
|
|
@@ -31,7 +31,7 @@ var container = overflowMenuTokens.container,
|
|
|
31
31
|
var Container = styled.div.withConfig({
|
|
32
32
|
displayName: "OverflowMenu__Container",
|
|
33
33
|
componentId: "sc-kh744b-0"
|
|
34
|
-
})(["box-sizing:border-box;z-index:
|
|
34
|
+
})(["box-sizing:border-box;z-index:100;overflow-y:auto;min-width:180px;max-width:300px;", " border:", ";background-color:", ";border-radius:", ";", " ", " *::selection{", "}"], function (_ref) {
|
|
35
35
|
var isOpen = _ref.isOpen;
|
|
36
36
|
return visibilityTransition(isOpen);
|
|
37
37
|
}, container.border, container.backgroundColor, container.borderRadius, scrollbarStyling.webkit, scrollbarStyling.firefox, selection);
|
|
@@ -40,7 +40,7 @@ var wrapper = popoverTokens.wrapper,
|
|
|
40
40
|
var Wrapper = styled(Paper).withConfig({
|
|
41
41
|
displayName: "Popover__Wrapper",
|
|
42
42
|
componentId: "sc-1fecd7e-0"
|
|
43
|
-
})(["opacity:0;", " position:absolute;width:fit-content;z-index:
|
|
43
|
+
})(["opacity:0;", " position:absolute;width:fit-content;z-index:100;padding:", ";&:focus-visible{", "}", ""], function (_ref) {
|
|
44
44
|
var hasTransitionedIn = _ref.hasTransitionedIn,
|
|
45
45
|
isOpen = _ref.isOpen;
|
|
46
46
|
return hasTransitionedIn && visibilityTransition(hasTransitionedIn && isOpen);
|
|
@@ -107,7 +107,7 @@ var Search = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
107
107
|
type: 'search',
|
|
108
108
|
id: uniqueId,
|
|
109
109
|
'aria-describedby': spaceSeparatedIdListGenerator([tip ? tipId : undefined, context.suggestions ? suggestionsDescriptionId : undefined, ariaDescribedby]),
|
|
110
|
-
value: context.inputValue !== undefined ? context.inputValue : value ? value :
|
|
110
|
+
value: context.inputValue !== undefined ? context.inputValue : value ? value : '',
|
|
111
111
|
onChange: handleChange,
|
|
112
112
|
autoComplete: 'off'
|
|
113
113
|
});
|
|
@@ -38,7 +38,7 @@ var suggestionsContainer = searchTokens.suggestionsContainer,
|
|
|
38
38
|
var SuggestionsContainer = styled(Paper).withConfig({
|
|
39
39
|
displayName: "SearchSuggestions__SuggestionsContainer",
|
|
40
40
|
componentId: "sc-nlwf4s-0"
|
|
41
|
-
})(["", ";position:absolute;top:100%;width:100%;max-height:300px;margin-top:", ";border:", ";box-shadow:", ";z-index:
|
|
41
|
+
})(["", ";position:absolute;top:100%;width:100%;max-height:300px;margin-top:", ";border:", ";box-shadow:", ";z-index:100;overflow-y:scroll;", " ", ""], function (_ref) {
|
|
42
42
|
var isHidden = _ref.isHidden;
|
|
43
43
|
return visibilityTransition(!isHidden);
|
|
44
44
|
}, suggestionsContainer.marginTop, suggestionsContainer.border, suggestionsContainer.boxShadow, scrollbarStyling.firefox, scrollbarStyling.webkit);
|
|
@@ -149,7 +149,7 @@ var getCustomStyles = function getCustomStyles() {
|
|
|
149
149
|
},
|
|
150
150
|
menu: function menu(provided) {
|
|
151
151
|
return Object.assign(Object.assign({}, provided), {
|
|
152
|
-
zIndex:
|
|
152
|
+
zIndex: 100,
|
|
153
153
|
transition: '0.2s',
|
|
154
154
|
width: 'calc(100% + 2px)',
|
|
155
155
|
transform: 'translate(-1px)',
|
|
@@ -33,7 +33,7 @@ var Container = styled.div.withConfig({
|
|
|
33
33
|
var TooltipWrapper = styled(Paper).withConfig({
|
|
34
34
|
displayName: "Tooltipstyles__TooltipWrapper",
|
|
35
35
|
componentId: "sc-1cna5tc-3"
|
|
36
|
-
})(["", " width:fit-content;position:absolute;z-index:
|
|
36
|
+
})(["", " width:fit-content;position:absolute;z-index:100;text-align:center;padding:", ";", ";"], function (_ref) {
|
|
37
37
|
var open = _ref.open;
|
|
38
38
|
return visibilityTransition(open);
|
|
39
39
|
}, wrapper.padding, getFontStyling(defaultTypographyType));
|
|
@@ -5,7 +5,7 @@ import { changeRGBAAlpha } from '../../utils/color.js';
|
|
|
5
5
|
var Backdrop = styled.div.withConfig({
|
|
6
6
|
displayName: "Backdrop",
|
|
7
7
|
componentId: "sc-vimg90-0"
|
|
8
|
-
})(["position:fixed;display:flex;align-items:center;justify-content:center;background-color:", ";overflow-y:auto;top:0;right:0;bottom:0;left:0;z-index:
|
|
8
|
+
})(["position:fixed;display:flex;align-items:center;justify-content:center;background-color:", ";overflow-y:auto;top:0;right:0;bottom:0;left:0;z-index:200;opacity:", ";@media (prefers-reduced-motion:no-preference){transition:opacity 0.2s;}"], changeRGBAAlpha(ddsBaseTokens.colors.DdsColorNeutralsGray9, 0.5), function (_ref) {
|
|
9
9
|
var isOpen = _ref.isOpen;
|
|
10
10
|
return isOpen ? 1 : 0;
|
|
11
11
|
});
|