@norges-domstoler/dds-components 0.0.21 → 0.0.22
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.
|
@@ -4,7 +4,7 @@ import { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes } from 'reac
|
|
|
4
4
|
export declare type NavigationLinkProps = {
|
|
5
5
|
href: string;
|
|
6
6
|
title: string;
|
|
7
|
-
} &
|
|
7
|
+
} & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
8
8
|
export declare type ContextMenuElementProps = {
|
|
9
9
|
title: string;
|
|
10
10
|
href?: string;
|
package/dist/index.es.js
CHANGED
|
@@ -31694,18 +31694,18 @@ var Navigation = styled.nav.withConfig({
|
|
|
31694
31694
|
var NavigationList = styled.ul.withConfig({
|
|
31695
31695
|
displayName: "InternalHeaderstyles__NavigationList",
|
|
31696
31696
|
componentId: "sc-91bnca-6"
|
|
31697
|
-
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])), function (_a) {
|
|
31697
|
+
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n box-sizing: border-box;\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])), function (_a) {
|
|
31698
31698
|
var smallScreen = _a.smallScreen;
|
|
31699
31699
|
return smallScreen && Ae(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex-direction: column;\n "], ["\n flex-direction: column;\n "])));
|
|
31700
31700
|
});
|
|
31701
31701
|
var NavigationListItem = styled.li.withConfig({
|
|
31702
31702
|
displayName: "InternalHeaderstyles__NavigationListItem",
|
|
31703
31703
|
componentId: "sc-91bnca-7"
|
|
31704
|
-
})(templateObject_9 || (templateObject_9 = __makeTemplateObject([""], [""])));
|
|
31704
|
+
})(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n box-sizing: border-box;\n"], ["\n box-sizing: border-box;\n"])));
|
|
31705
31705
|
var NavigationLink = styled.a.withConfig({
|
|
31706
31706
|
displayName: "InternalHeaderstyles__NavigationLink",
|
|
31707
31707
|
componentId: "sc-91bnca-8"
|
|
31708
|
-
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"], ["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"])), internalHeaderTokens.navigationLink.base, internalHeaderTokens.navigationLink.hover.base, internalHeaderTokens.navigationLink.active.base, internalHeaderTokens.navigationLink.focus.base, function (_a) {
|
|
31708
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"], ["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"])), internalHeaderTokens.navigationLink.base, internalHeaderTokens.navigationLink.hover.base, internalHeaderTokens.navigationLink.active.base, internalHeaderTokens.navigationLink.focus.base, function (_a) {
|
|
31709
31709
|
var isCurrent = _a.isCurrent;
|
|
31710
31710
|
return isCurrent && Ae(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), internalHeaderTokens.navigationLink.current.base);
|
|
31711
31711
|
});
|
|
@@ -31734,7 +31734,7 @@ var ContextMenuElement = styled.span.withConfig({
|
|
|
31734
31734
|
var ContextMenuLink = styled.a.withConfig({
|
|
31735
31735
|
displayName: "InternalHeaderstyles__ContextMenuLink",
|
|
31736
31736
|
componentId: "sc-91bnca-13"
|
|
31737
|
-
})(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"], ["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"])), internalHeaderTokens.contextMenuLink.base, internalHeaderTokens.contextMenuLink.hover.base, internalHeaderTokens.contextMenuLink.active.base, internalHeaderTokens.contextMenuLink.focus.base);
|
|
31737
|
+
})(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"], ["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"])), internalHeaderTokens.contextMenuLink.base, internalHeaderTokens.contextMenuLink.hover.base, internalHeaderTokens.contextMenuLink.active.base, internalHeaderTokens.contextMenuLink.focus.base);
|
|
31738
31738
|
var StyledDivider = styled(Divider).withConfig({
|
|
31739
31739
|
displayName: "InternalHeaderstyles__StyledDivider",
|
|
31740
31740
|
componentId: "sc-91bnca-14"
|
package/dist/index.js
CHANGED
|
@@ -31722,18 +31722,18 @@ var Navigation = styled.nav.withConfig({
|
|
|
31722
31722
|
var NavigationList = styled.ul.withConfig({
|
|
31723
31723
|
displayName: "InternalHeaderstyles__NavigationList",
|
|
31724
31724
|
componentId: "sc-91bnca-6"
|
|
31725
|
-
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])), function (_a) {
|
|
31725
|
+
})(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"], ["\n box-sizing: border-box;\n display: flex;\n ", "\n list-style-type: none;\n padding: 0;\n margin: 0;\n"])), function (_a) {
|
|
31726
31726
|
var smallScreen = _a.smallScreen;
|
|
31727
31727
|
return smallScreen && Ae(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n flex-direction: column;\n "], ["\n flex-direction: column;\n "])));
|
|
31728
31728
|
});
|
|
31729
31729
|
var NavigationListItem = styled.li.withConfig({
|
|
31730
31730
|
displayName: "InternalHeaderstyles__NavigationListItem",
|
|
31731
31731
|
componentId: "sc-91bnca-7"
|
|
31732
|
-
})(templateObject_9 || (templateObject_9 = __makeTemplateObject([""], [""])));
|
|
31732
|
+
})(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n box-sizing: border-box;\n"], ["\n box-sizing: border-box;\n"])));
|
|
31733
31733
|
var NavigationLink = styled.a.withConfig({
|
|
31734
31734
|
displayName: "InternalHeaderstyles__NavigationLink",
|
|
31735
31735
|
componentId: "sc-91bnca-8"
|
|
31736
|
-
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"], ["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"])), internalHeaderTokens.navigationLink.base, internalHeaderTokens.navigationLink.hover.base, internalHeaderTokens.navigationLink.active.base, internalHeaderTokens.navigationLink.focus.base, function (_a) {
|
|
31736
|
+
})(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"], ["\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n height: 100%;\n box-sizing: border-box;\n ", "\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n ", "\n"])), internalHeaderTokens.navigationLink.base, internalHeaderTokens.navigationLink.hover.base, internalHeaderTokens.navigationLink.active.base, internalHeaderTokens.navigationLink.focus.base, function (_a) {
|
|
31737
31737
|
var isCurrent = _a.isCurrent;
|
|
31738
31738
|
return isCurrent && Ae(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), internalHeaderTokens.navigationLink.current.base);
|
|
31739
31739
|
});
|
|
@@ -31762,7 +31762,7 @@ var ContextMenuElement = styled.span.withConfig({
|
|
|
31762
31762
|
var ContextMenuLink = styled.a.withConfig({
|
|
31763
31763
|
displayName: "InternalHeaderstyles__ContextMenuLink",
|
|
31764
31764
|
componentId: "sc-91bnca-13"
|
|
31765
|
-
})(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"], ["\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"])), internalHeaderTokens.contextMenuLink.base, internalHeaderTokens.contextMenuLink.hover.base, internalHeaderTokens.contextMenuLink.active.base, internalHeaderTokens.contextMenuLink.focus.base);
|
|
31765
|
+
})(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"], ["\n box-sizing: border-box;\n background: none;\n color: inherit;\n border: none;\n padding: 0;\n font: inherit;\n cursor: pointer;\n outline: inherit;\n width: 100%;\n ", "\n display: flex;\n align-items: center;\n transition: background-color 0.2s;\n &:hover {\n ", "\n }\n &:active {\n ", "\n }\n &:focus-visible {\n outline: none;\n ", "\n }\n"])), internalHeaderTokens.contextMenuLink.base, internalHeaderTokens.contextMenuLink.hover.base, internalHeaderTokens.contextMenuLink.active.base, internalHeaderTokens.contextMenuLink.focus.base);
|
|
31766
31766
|
var StyledDivider = styled(Divider).withConfig({
|
|
31767
31767
|
displayName: "InternalHeaderstyles__StyledDivider",
|
|
31768
31768
|
componentId: "sc-91bnca-14"
|