northants-design-system 0.2.13 → 0.2.14
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/build/index.esm.js +18 -27
- package/build/index.esm.js.map +1 -1
- package/build/index.js +18 -27
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -21075,50 +21075,46 @@ function useLocalStorage$1(key, initialValue) {
|
|
|
21075
21075
|
const Container$t = styled.div`
|
|
21076
21076
|
padding-top: 20px;
|
|
21077
21077
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21078
|
-
margin-bottom: ${(props) => (props.hasMargin ?
|
|
21078
|
+
margin-bottom: ${(props) => (props.hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
21079
21079
|
`;
|
|
21080
21080
|
|
|
21081
21081
|
const List$1 = styled.ol`
|
|
21082
21082
|
list-style: none;
|
|
21083
21083
|
padding-left: 0px;
|
|
21084
21084
|
margin-top: 0;
|
|
21085
|
+
display: block;
|
|
21086
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21087
|
+
`;
|
|
21088
|
+
|
|
21089
|
+
const Crumb = styled.li`
|
|
21090
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21091
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21085
21092
|
display: none;
|
|
21086
|
-
|
|
21093
|
+
|
|
21094
|
+
&:first-of-type,
|
|
21095
|
+
&:last-of-type {
|
|
21096
|
+
display: inline-block;
|
|
21097
|
+
}
|
|
21087
21098
|
|
|
21088
21099
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
21089
|
-
display: block;
|
|
21100
|
+
display: inline-block;
|
|
21090
21101
|
}
|
|
21091
|
-
`;
|
|
21092
21102
|
|
|
21093
|
-
const Crumb = styled.li`
|
|
21094
|
-
display: inline;
|
|
21095
|
-
margin-right: 10px;
|
|
21096
21103
|
&:last-of-type svg {
|
|
21097
21104
|
display: none;
|
|
21098
21105
|
}
|
|
21099
21106
|
`;
|
|
21107
|
+
|
|
21100
21108
|
const IconWrapper$4 = styled.div`
|
|
21101
21109
|
display: inline-block;
|
|
21102
|
-
margin-left:
|
|
21110
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21103
21111
|
vertical-align: middle;
|
|
21104
21112
|
`;
|
|
21105
|
-
const MobileCrumb = styled.div`
|
|
21106
|
-
display: block;
|
|
21107
|
-
padding: 15px 0;
|
|
21108
|
-
margin-top: -15px;
|
|
21109
21113
|
|
|
21110
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
21111
|
-
display: none;
|
|
21112
|
-
}
|
|
21113
|
-
`;
|
|
21114
|
-
const BackIconWrapper = styled.div`
|
|
21115
|
-
display: inline-block;
|
|
21116
|
-
margin-right: 10px;
|
|
21117
|
-
vertical-align: middle;
|
|
21118
|
-
`;
|
|
21119
21114
|
const BreadcrumbLink = styled.a`
|
|
21120
21115
|
${(props) => props.theme.linkStyles}
|
|
21121
21116
|
font-weight: 400;
|
|
21117
|
+
display: inline-block;
|
|
21122
21118
|
|
|
21123
21119
|
svg {
|
|
21124
21120
|
fill: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -21167,12 +21163,7 @@ var Breadcrumbs = function (_a) {
|
|
|
21167
21163
|
React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
|
|
21168
21164
|
React.createElement(BreadcrumbLink, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
21169
21165
|
React.createElement(IconWrapper$4, null,
|
|
21170
|
-
React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))
|
|
21171
|
-
React.createElement(MobileCrumb, null,
|
|
21172
|
-
React.createElement(BreadcrumbLink, { href: breadcrumbsArray[breadcrumbsArray.length - 1].url, title: 'Go back to previous page' },
|
|
21173
|
-
React.createElement(BackIconWrapper, null,
|
|
21174
|
-
React.createElement(ChevronIcon, { direction: 'left' })),
|
|
21175
|
-
"Back"))));
|
|
21166
|
+
React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
|
|
21176
21167
|
};
|
|
21177
21168
|
|
|
21178
21169
|
const Container$s = styled.div`
|