@nulogy/components 11.2.0 → 11.3.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/main.js +74 -34
- package/dist/main.module.js +74 -35
- package/dist/src/TopBar/TopBar.d.ts +16 -0
- package/dist/src/TopBar/TopBar.styled.d.ts +18 -0
- package/dist/src/TopBar/components/BackLink.d.ts +7 -0
- package/dist/src/TopBar/components/Menu.d.ts +6 -0
- package/dist/src/TopBar/components/MenuItem.d.ts +11 -0
- package/dist/src/TopBar/components/PageTitle.d.ts +3 -0
- package/dist/src/TopBar/constants.d.ts +3 -0
- package/dist/src/TopBar/stories/TopBar.backButton.story.d.ts +19 -0
- package/dist/src/TopBar/stories/TopBar.menu.story.d.ts +22 -0
- package/dist/src/TopBar/stories/TopBar.story.d.ts +19 -0
- package/dist/src/TopBar/stories/fixtures.d.ts +2 -0
- package/dist/src/hooks/useMediaQuery/useMediaQuery.d.ts +3 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/theme/theme.type.d.ts +6 -0
- package/dist/src/theme/useNDSTheme.d.ts +6 -0
- package/package.json +5 -4
package/dist/main.js
CHANGED
|
@@ -27720,8 +27720,10 @@
|
|
|
27720
27720
|
})(function (_ref3) {
|
|
27721
27721
|
var theme = _ref3.theme;
|
|
27722
27722
|
return {
|
|
27723
|
-
position: "
|
|
27723
|
+
position: "fixed",
|
|
27724
27724
|
bottom: 0,
|
|
27725
|
+
left: 0,
|
|
27726
|
+
right: 0,
|
|
27725
27727
|
marginLeft: theme.space.x1,
|
|
27726
27728
|
marginRight: theme.space.x1,
|
|
27727
27729
|
padding: theme.space.x2,
|
|
@@ -45028,57 +45030,61 @@
|
|
|
45028
45030
|
};
|
|
45029
45031
|
}, addStyledProps);
|
|
45030
45032
|
|
|
45031
|
-
|
|
45032
|
-
var
|
|
45033
|
-
children = _a.children,
|
|
45034
|
-
environment = _a.environment,
|
|
45035
|
-
props = __rest$3(_a, ["navBar", "children", "environment"]);
|
|
45036
|
-
|
|
45037
|
-
return /*#__PURE__*/React__default["default"].createElement(Flex, Object.assign({
|
|
45038
|
-
flexDirection: "column",
|
|
45039
|
-
minHeight: "100vh"
|
|
45040
|
-
}, props), /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
45041
|
-
position: "sticky",
|
|
45042
|
-
top: "0",
|
|
45043
|
-
zIndex: "navBar"
|
|
45044
|
-
}, environment && /*#__PURE__*/React__default["default"].createElement(EnvironmentBanner, null, environment), navBar), /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
45045
|
-
flexDirection: "column",
|
|
45046
|
-
position: "relative",
|
|
45047
|
-
flexGrow: 1
|
|
45048
|
-
}, children));
|
|
45049
|
-
};
|
|
45033
|
+
function useMediaQuery(q) {
|
|
45034
|
+
var _a;
|
|
45050
45035
|
|
|
45051
|
-
function useMediaQuery(query) {
|
|
45052
45036
|
var isUnsupported = typeof window === "undefined" || typeof window.matchMedia === "undefined";
|
|
45053
|
-
|
|
45054
|
-
var
|
|
45037
|
+
var theme = styled.useTheme();
|
|
45038
|
+
var query = ((_a = theme === null || theme === void 0 ? void 0 : theme.breakpoints) === null || _a === void 0 ? void 0 : _a[q]) ? "(min-width: " + theme.breakpoints[q] + ")" : q;
|
|
45039
|
+
var getMatches = React.useCallback(function (query) {
|
|
45055
45040
|
if (isUnsupported) {
|
|
45056
45041
|
return false;
|
|
45057
45042
|
}
|
|
45058
45043
|
|
|
45059
45044
|
return window.matchMedia(query).matches;
|
|
45060
|
-
};
|
|
45045
|
+
}, [isUnsupported]);
|
|
45061
45046
|
|
|
45062
45047
|
var _useState = React.useState(getMatches(query)),
|
|
45063
45048
|
matches = _useState[0],
|
|
45064
45049
|
setMatches = _useState[1];
|
|
45065
45050
|
|
|
45066
|
-
function handleChange() {
|
|
45067
|
-
setMatches(getMatches(query));
|
|
45068
|
-
}
|
|
45069
|
-
|
|
45070
45051
|
React.useEffect(function () {
|
|
45071
45052
|
if (isUnsupported) return;
|
|
45072
45053
|
var matchMedia = window.matchMedia(query);
|
|
45054
|
+
|
|
45055
|
+
function handleChange() {
|
|
45056
|
+
setMatches(getMatches(query));
|
|
45057
|
+
}
|
|
45058
|
+
|
|
45073
45059
|
handleChange();
|
|
45074
45060
|
matchMedia.addEventListener("change", handleChange);
|
|
45075
45061
|
return function () {
|
|
45076
45062
|
matchMedia.removeEventListener("change", handleChange);
|
|
45077
45063
|
};
|
|
45078
|
-
}, [query]);
|
|
45064
|
+
}, [getMatches, isUnsupported, query]);
|
|
45079
45065
|
return matches;
|
|
45080
45066
|
}
|
|
45081
45067
|
|
|
45068
|
+
var ApplicationFrame = function ApplicationFrame(_a) {
|
|
45069
|
+
var navBar = _a.navBar,
|
|
45070
|
+
children = _a.children,
|
|
45071
|
+
environment = _a.environment,
|
|
45072
|
+
props = __rest$3(_a, ["navBar", "children", "environment"]);
|
|
45073
|
+
|
|
45074
|
+
return /*#__PURE__*/React__default["default"].createElement(Flex, Object.assign({
|
|
45075
|
+
flexDirection: "column",
|
|
45076
|
+
minHeight: "100vh"
|
|
45077
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
45078
|
+
position: "sticky",
|
|
45079
|
+
top: "0",
|
|
45080
|
+
zIndex: "navBar"
|
|
45081
|
+
}, environment && /*#__PURE__*/React__default["default"].createElement(EnvironmentBanner, null, environment), navBar), /*#__PURE__*/React__default["default"].createElement(Flex, {
|
|
45082
|
+
flexDirection: "column",
|
|
45083
|
+
position: "relative",
|
|
45084
|
+
flexGrow: 1
|
|
45085
|
+
}, children));
|
|
45086
|
+
};
|
|
45087
|
+
|
|
45082
45088
|
var Header = function Header(_a) {
|
|
45083
45089
|
var _b, _c;
|
|
45084
45090
|
|
|
@@ -49829,6 +49835,7 @@
|
|
|
49829
49835
|
|
|
49830
49836
|
var de_DE = {
|
|
49831
49837
|
"close menu": "Men\xFC schlie\xDFen",
|
|
49838
|
+
"menu options": "Men\xFCoptionen",
|
|
49832
49839
|
close: "Schlie\xDFen",
|
|
49833
49840
|
"collapse row": "Zeile verbergen",
|
|
49834
49841
|
"date range": "Datumsbereich",
|
|
@@ -49870,6 +49877,7 @@
|
|
|
49870
49877
|
};
|
|
49871
49878
|
var en_US = {
|
|
49872
49879
|
"close menu": "Close menu",
|
|
49880
|
+
"menu options": "Menu options",
|
|
49873
49881
|
close: "Close",
|
|
49874
49882
|
"collapse row": "Collapse row",
|
|
49875
49883
|
"date range": "Date range",
|
|
@@ -49911,6 +49919,7 @@
|
|
|
49911
49919
|
};
|
|
49912
49920
|
var es_MX = {
|
|
49913
49921
|
"close menu": "Cerrar men\xFA",
|
|
49922
|
+
"menu options": "Opciones del men\xFA",
|
|
49914
49923
|
close: "Cerrar",
|
|
49915
49924
|
"collapse row": "Colapsar fila",
|
|
49916
49925
|
"date range": "Rango de fechas",
|
|
@@ -49952,6 +49961,7 @@
|
|
|
49952
49961
|
};
|
|
49953
49962
|
var fr_FR = {
|
|
49954
49963
|
"close menu": "Fermer le menu",
|
|
49964
|
+
"menu options": "Options du menu",
|
|
49955
49965
|
close: "Fermer",
|
|
49956
49966
|
"collapse row": "R\xE9duire la ligne",
|
|
49957
49967
|
"date range": "Plage de dates",
|
|
@@ -49993,6 +50003,7 @@
|
|
|
49993
50003
|
};
|
|
49994
50004
|
var nl_NL = {
|
|
49995
50005
|
"close menu": "Menu sluiten",
|
|
50006
|
+
"menu options": "Menu-opties",
|
|
49996
50007
|
close: "Sluiten",
|
|
49997
50008
|
"collapse row": "Rij samenvouwen",
|
|
49998
50009
|
"date range": "Datumbereik",
|
|
@@ -50034,6 +50045,7 @@
|
|
|
50034
50045
|
};
|
|
50035
50046
|
var pl_PL = {
|
|
50036
50047
|
"close menu": "Zamknij menu",
|
|
50048
|
+
"menu options": "Opcje menu",
|
|
50037
50049
|
close: "Zamknij",
|
|
50038
50050
|
"collapse row": "Zwi\u0144 wiersz",
|
|
50039
50051
|
"date range": "Zakres daty",
|
|
@@ -50075,6 +50087,7 @@
|
|
|
50075
50087
|
};
|
|
50076
50088
|
var pt_BR = {
|
|
50077
50089
|
"close menu": "Fechar menu",
|
|
50090
|
+
"menu options": "Op\xE7\xF5es do menu",
|
|
50078
50091
|
close: "Fechar",
|
|
50079
50092
|
"collapse row": "Recolher fila",
|
|
50080
50093
|
"date range": "Intervalo de datas",
|
|
@@ -50115,7 +50128,8 @@
|
|
|
50115
50128
|
"time range": "Intervalo de hor\xE1rios"
|
|
50116
50129
|
};
|
|
50117
50130
|
var ro_RO = {
|
|
50118
|
-
"close menu": "
|
|
50131
|
+
"close menu": "\xCEnchidere meniu",
|
|
50132
|
+
"menu options": "Op\u021Biuni meniu",
|
|
50119
50133
|
close: "\xCEnchidere",
|
|
50120
50134
|
"collapse row": "Restr\xE2ngere r\xE2nd",
|
|
50121
50135
|
"date range": "Interval dat\u0103",
|
|
@@ -50157,6 +50171,7 @@
|
|
|
50157
50171
|
};
|
|
50158
50172
|
var zh_CN = {
|
|
50159
50173
|
"close menu": "\u5173\u95ED\u83DC\u5355",
|
|
50174
|
+
"menu options": "\u83DC\u5355\u9009\u9879",
|
|
50160
50175
|
close: "\u5173\u95ED",
|
|
50161
50176
|
"collapse row": "\u6298\u53E0\u884C",
|
|
50162
50177
|
"date range": "\u65E5\u671F\u8303\u56F4",
|
|
@@ -50321,7 +50336,13 @@
|
|
|
50321
50336
|
small: "768px",
|
|
50322
50337
|
medium: "1024px",
|
|
50323
50338
|
large: "1360px",
|
|
50324
|
-
extraLarge: "1920px"
|
|
50339
|
+
extraLarge: "1920px",
|
|
50340
|
+
phonePortrait: "320px",
|
|
50341
|
+
phoneLandscape: "640px",
|
|
50342
|
+
tabletPortrait: "768px",
|
|
50343
|
+
tabletLandscape: "1024px",
|
|
50344
|
+
laptop: "1280px",
|
|
50345
|
+
desktop: "1440px"
|
|
50325
50346
|
},
|
|
50326
50347
|
zIndices: {
|
|
50327
50348
|
content: 100,
|
|
@@ -50469,7 +50490,13 @@
|
|
|
50469
50490
|
small: "768px",
|
|
50470
50491
|
medium: "1024px",
|
|
50471
50492
|
large: "1360px",
|
|
50472
|
-
extraLarge: "1920px"
|
|
50493
|
+
extraLarge: "1920px",
|
|
50494
|
+
phonePortrait: "320px",
|
|
50495
|
+
phoneLandscape: "640px",
|
|
50496
|
+
tabletPortrait: "768px",
|
|
50497
|
+
tabletLandscape: "1024px",
|
|
50498
|
+
laptop: "1280px",
|
|
50499
|
+
desktop: "1440px"
|
|
50473
50500
|
},
|
|
50474
50501
|
zIndices: {
|
|
50475
50502
|
content: 100,
|
|
@@ -50617,7 +50644,13 @@
|
|
|
50617
50644
|
small: "768px",
|
|
50618
50645
|
medium: "1024px",
|
|
50619
50646
|
large: "1360px",
|
|
50620
|
-
extraLarge: "1920px"
|
|
50647
|
+
extraLarge: "1920px",
|
|
50648
|
+
phonePortrait: "320px",
|
|
50649
|
+
phoneLandscape: "640px",
|
|
50650
|
+
tabletPortrait: "768px",
|
|
50651
|
+
tabletLandscape: "1024px",
|
|
50652
|
+
laptop: "1280px",
|
|
50653
|
+
desktop: "1440px"
|
|
50621
50654
|
},
|
|
50622
50655
|
zIndices: {
|
|
50623
50656
|
content: 100,
|
|
@@ -50765,7 +50798,13 @@
|
|
|
50765
50798
|
small: "768px",
|
|
50766
50799
|
medium: "1024px",
|
|
50767
50800
|
large: "1360px",
|
|
50768
|
-
extraLarge: "1920px"
|
|
50801
|
+
extraLarge: "1920px",
|
|
50802
|
+
phonePortrait: "320px",
|
|
50803
|
+
phoneLandscape: "640px",
|
|
50804
|
+
tabletPortrait: "768px",
|
|
50805
|
+
tabletLandscape: "1024px",
|
|
50806
|
+
laptop: "1280px",
|
|
50807
|
+
desktop: "1440px"
|
|
50769
50808
|
},
|
|
50770
50809
|
zIndices: {
|
|
50771
50810
|
content: 100,
|
|
@@ -54558,6 +54597,7 @@
|
|
|
54558
54597
|
exports.TruncatedText = TruncatedText;
|
|
54559
54598
|
exports.addStyledProps = addStyledProps;
|
|
54560
54599
|
exports.toast = toast;
|
|
54600
|
+
exports.useMediaQuery = useMediaQuery;
|
|
54561
54601
|
exports.useWindowDimensions = useWindowDimensions;
|
|
54562
54602
|
|
|
54563
54603
|
Object.defineProperty(exports, '__esModule', { value: true });
|
package/dist/main.module.js
CHANGED
|
@@ -27703,8 +27703,10 @@ var Footer = styled.div.withConfig({
|
|
|
27703
27703
|
})(function (_ref3) {
|
|
27704
27704
|
var theme = _ref3.theme;
|
|
27705
27705
|
return {
|
|
27706
|
-
position: "
|
|
27706
|
+
position: "fixed",
|
|
27707
27707
|
bottom: 0,
|
|
27708
|
+
left: 0,
|
|
27709
|
+
right: 0,
|
|
27708
27710
|
marginLeft: theme.space.x1,
|
|
27709
27711
|
marginRight: theme.space.x1,
|
|
27710
27712
|
padding: theme.space.x2,
|
|
@@ -45011,57 +45013,61 @@ var Divider$1 = styled.hr.withConfig({
|
|
|
45011
45013
|
};
|
|
45012
45014
|
}, addStyledProps);
|
|
45013
45015
|
|
|
45014
|
-
|
|
45015
|
-
var
|
|
45016
|
-
children = _a.children,
|
|
45017
|
-
environment = _a.environment,
|
|
45018
|
-
props = __rest$3(_a, ["navBar", "children", "environment"]);
|
|
45019
|
-
|
|
45020
|
-
return /*#__PURE__*/React__default.createElement(Flex, Object.assign({
|
|
45021
|
-
flexDirection: "column",
|
|
45022
|
-
minHeight: "100vh"
|
|
45023
|
-
}, props), /*#__PURE__*/React__default.createElement(Box, {
|
|
45024
|
-
position: "sticky",
|
|
45025
|
-
top: "0",
|
|
45026
|
-
zIndex: "navBar"
|
|
45027
|
-
}, environment && /*#__PURE__*/React__default.createElement(EnvironmentBanner, null, environment), navBar), /*#__PURE__*/React__default.createElement(Flex, {
|
|
45028
|
-
flexDirection: "column",
|
|
45029
|
-
position: "relative",
|
|
45030
|
-
flexGrow: 1
|
|
45031
|
-
}, children));
|
|
45032
|
-
};
|
|
45016
|
+
function useMediaQuery(q) {
|
|
45017
|
+
var _a;
|
|
45033
45018
|
|
|
45034
|
-
function useMediaQuery(query) {
|
|
45035
45019
|
var isUnsupported = typeof window === "undefined" || typeof window.matchMedia === "undefined";
|
|
45036
|
-
|
|
45037
|
-
var
|
|
45020
|
+
var theme = useTheme();
|
|
45021
|
+
var query = ((_a = theme === null || theme === void 0 ? void 0 : theme.breakpoints) === null || _a === void 0 ? void 0 : _a[q]) ? "(min-width: " + theme.breakpoints[q] + ")" : q;
|
|
45022
|
+
var getMatches = useCallback(function (query) {
|
|
45038
45023
|
if (isUnsupported) {
|
|
45039
45024
|
return false;
|
|
45040
45025
|
}
|
|
45041
45026
|
|
|
45042
45027
|
return window.matchMedia(query).matches;
|
|
45043
|
-
};
|
|
45028
|
+
}, [isUnsupported]);
|
|
45044
45029
|
|
|
45045
45030
|
var _useState = useState(getMatches(query)),
|
|
45046
45031
|
matches = _useState[0],
|
|
45047
45032
|
setMatches = _useState[1];
|
|
45048
45033
|
|
|
45049
|
-
function handleChange() {
|
|
45050
|
-
setMatches(getMatches(query));
|
|
45051
|
-
}
|
|
45052
|
-
|
|
45053
45034
|
useEffect(function () {
|
|
45054
45035
|
if (isUnsupported) return;
|
|
45055
45036
|
var matchMedia = window.matchMedia(query);
|
|
45037
|
+
|
|
45038
|
+
function handleChange() {
|
|
45039
|
+
setMatches(getMatches(query));
|
|
45040
|
+
}
|
|
45041
|
+
|
|
45056
45042
|
handleChange();
|
|
45057
45043
|
matchMedia.addEventListener("change", handleChange);
|
|
45058
45044
|
return function () {
|
|
45059
45045
|
matchMedia.removeEventListener("change", handleChange);
|
|
45060
45046
|
};
|
|
45061
|
-
}, [query]);
|
|
45047
|
+
}, [getMatches, isUnsupported, query]);
|
|
45062
45048
|
return matches;
|
|
45063
45049
|
}
|
|
45064
45050
|
|
|
45051
|
+
var ApplicationFrame = function ApplicationFrame(_a) {
|
|
45052
|
+
var navBar = _a.navBar,
|
|
45053
|
+
children = _a.children,
|
|
45054
|
+
environment = _a.environment,
|
|
45055
|
+
props = __rest$3(_a, ["navBar", "children", "environment"]);
|
|
45056
|
+
|
|
45057
|
+
return /*#__PURE__*/React__default.createElement(Flex, Object.assign({
|
|
45058
|
+
flexDirection: "column",
|
|
45059
|
+
minHeight: "100vh"
|
|
45060
|
+
}, props), /*#__PURE__*/React__default.createElement(Box, {
|
|
45061
|
+
position: "sticky",
|
|
45062
|
+
top: "0",
|
|
45063
|
+
zIndex: "navBar"
|
|
45064
|
+
}, environment && /*#__PURE__*/React__default.createElement(EnvironmentBanner, null, environment), navBar), /*#__PURE__*/React__default.createElement(Flex, {
|
|
45065
|
+
flexDirection: "column",
|
|
45066
|
+
position: "relative",
|
|
45067
|
+
flexGrow: 1
|
|
45068
|
+
}, children));
|
|
45069
|
+
};
|
|
45070
|
+
|
|
45065
45071
|
var Header = function Header(_a) {
|
|
45066
45072
|
var _b, _c;
|
|
45067
45073
|
|
|
@@ -49812,6 +49818,7 @@ var i18next = new I18n();
|
|
|
49812
49818
|
|
|
49813
49819
|
var de_DE = {
|
|
49814
49820
|
"close menu": "Men\xFC schlie\xDFen",
|
|
49821
|
+
"menu options": "Men\xFCoptionen",
|
|
49815
49822
|
close: "Schlie\xDFen",
|
|
49816
49823
|
"collapse row": "Zeile verbergen",
|
|
49817
49824
|
"date range": "Datumsbereich",
|
|
@@ -49853,6 +49860,7 @@ var de_DE = {
|
|
|
49853
49860
|
};
|
|
49854
49861
|
var en_US = {
|
|
49855
49862
|
"close menu": "Close menu",
|
|
49863
|
+
"menu options": "Menu options",
|
|
49856
49864
|
close: "Close",
|
|
49857
49865
|
"collapse row": "Collapse row",
|
|
49858
49866
|
"date range": "Date range",
|
|
@@ -49894,6 +49902,7 @@ var en_US = {
|
|
|
49894
49902
|
};
|
|
49895
49903
|
var es_MX = {
|
|
49896
49904
|
"close menu": "Cerrar men\xFA",
|
|
49905
|
+
"menu options": "Opciones del men\xFA",
|
|
49897
49906
|
close: "Cerrar",
|
|
49898
49907
|
"collapse row": "Colapsar fila",
|
|
49899
49908
|
"date range": "Rango de fechas",
|
|
@@ -49935,6 +49944,7 @@ var es_MX = {
|
|
|
49935
49944
|
};
|
|
49936
49945
|
var fr_FR = {
|
|
49937
49946
|
"close menu": "Fermer le menu",
|
|
49947
|
+
"menu options": "Options du menu",
|
|
49938
49948
|
close: "Fermer",
|
|
49939
49949
|
"collapse row": "R\xE9duire la ligne",
|
|
49940
49950
|
"date range": "Plage de dates",
|
|
@@ -49976,6 +49986,7 @@ var fr_FR = {
|
|
|
49976
49986
|
};
|
|
49977
49987
|
var nl_NL = {
|
|
49978
49988
|
"close menu": "Menu sluiten",
|
|
49989
|
+
"menu options": "Menu-opties",
|
|
49979
49990
|
close: "Sluiten",
|
|
49980
49991
|
"collapse row": "Rij samenvouwen",
|
|
49981
49992
|
"date range": "Datumbereik",
|
|
@@ -50017,6 +50028,7 @@ var nl_NL = {
|
|
|
50017
50028
|
};
|
|
50018
50029
|
var pl_PL = {
|
|
50019
50030
|
"close menu": "Zamknij menu",
|
|
50031
|
+
"menu options": "Opcje menu",
|
|
50020
50032
|
close: "Zamknij",
|
|
50021
50033
|
"collapse row": "Zwi\u0144 wiersz",
|
|
50022
50034
|
"date range": "Zakres daty",
|
|
@@ -50058,6 +50070,7 @@ var pl_PL = {
|
|
|
50058
50070
|
};
|
|
50059
50071
|
var pt_BR = {
|
|
50060
50072
|
"close menu": "Fechar menu",
|
|
50073
|
+
"menu options": "Op\xE7\xF5es do menu",
|
|
50061
50074
|
close: "Fechar",
|
|
50062
50075
|
"collapse row": "Recolher fila",
|
|
50063
50076
|
"date range": "Intervalo de datas",
|
|
@@ -50098,7 +50111,8 @@ var pt_BR = {
|
|
|
50098
50111
|
"time range": "Intervalo de hor\xE1rios"
|
|
50099
50112
|
};
|
|
50100
50113
|
var ro_RO = {
|
|
50101
|
-
"close menu": "
|
|
50114
|
+
"close menu": "\xCEnchidere meniu",
|
|
50115
|
+
"menu options": "Op\u021Biuni meniu",
|
|
50102
50116
|
close: "\xCEnchidere",
|
|
50103
50117
|
"collapse row": "Restr\xE2ngere r\xE2nd",
|
|
50104
50118
|
"date range": "Interval dat\u0103",
|
|
@@ -50140,6 +50154,7 @@ var ro_RO = {
|
|
|
50140
50154
|
};
|
|
50141
50155
|
var zh_CN = {
|
|
50142
50156
|
"close menu": "\u5173\u95ED\u83DC\u5355",
|
|
50157
|
+
"menu options": "\u83DC\u5355\u9009\u9879",
|
|
50143
50158
|
close: "\u5173\u95ED",
|
|
50144
50159
|
"collapse row": "\u6298\u53E0\u884C",
|
|
50145
50160
|
"date range": "\u65E5\u671F\u8303\u56F4",
|
|
@@ -50304,7 +50319,13 @@ var themes = {
|
|
|
50304
50319
|
small: "768px",
|
|
50305
50320
|
medium: "1024px",
|
|
50306
50321
|
large: "1360px",
|
|
50307
|
-
extraLarge: "1920px"
|
|
50322
|
+
extraLarge: "1920px",
|
|
50323
|
+
phonePortrait: "320px",
|
|
50324
|
+
phoneLandscape: "640px",
|
|
50325
|
+
tabletPortrait: "768px",
|
|
50326
|
+
tabletLandscape: "1024px",
|
|
50327
|
+
laptop: "1280px",
|
|
50328
|
+
desktop: "1440px"
|
|
50308
50329
|
},
|
|
50309
50330
|
zIndices: {
|
|
50310
50331
|
content: 100,
|
|
@@ -50452,7 +50473,13 @@ var themes = {
|
|
|
50452
50473
|
small: "768px",
|
|
50453
50474
|
medium: "1024px",
|
|
50454
50475
|
large: "1360px",
|
|
50455
|
-
extraLarge: "1920px"
|
|
50476
|
+
extraLarge: "1920px",
|
|
50477
|
+
phonePortrait: "320px",
|
|
50478
|
+
phoneLandscape: "640px",
|
|
50479
|
+
tabletPortrait: "768px",
|
|
50480
|
+
tabletLandscape: "1024px",
|
|
50481
|
+
laptop: "1280px",
|
|
50482
|
+
desktop: "1440px"
|
|
50456
50483
|
},
|
|
50457
50484
|
zIndices: {
|
|
50458
50485
|
content: 100,
|
|
@@ -50600,7 +50627,13 @@ var themes = {
|
|
|
50600
50627
|
small: "768px",
|
|
50601
50628
|
medium: "1024px",
|
|
50602
50629
|
large: "1360px",
|
|
50603
|
-
extraLarge: "1920px"
|
|
50630
|
+
extraLarge: "1920px",
|
|
50631
|
+
phonePortrait: "320px",
|
|
50632
|
+
phoneLandscape: "640px",
|
|
50633
|
+
tabletPortrait: "768px",
|
|
50634
|
+
tabletLandscape: "1024px",
|
|
50635
|
+
laptop: "1280px",
|
|
50636
|
+
desktop: "1440px"
|
|
50604
50637
|
},
|
|
50605
50638
|
zIndices: {
|
|
50606
50639
|
content: 100,
|
|
@@ -50748,7 +50781,13 @@ var themes = {
|
|
|
50748
50781
|
small: "768px",
|
|
50749
50782
|
medium: "1024px",
|
|
50750
50783
|
large: "1360px",
|
|
50751
|
-
extraLarge: "1920px"
|
|
50784
|
+
extraLarge: "1920px",
|
|
50785
|
+
phonePortrait: "320px",
|
|
50786
|
+
phoneLandscape: "640px",
|
|
50787
|
+
tabletPortrait: "768px",
|
|
50788
|
+
tabletLandscape: "1024px",
|
|
50789
|
+
laptop: "1280px",
|
|
50790
|
+
desktop: "1440px"
|
|
50752
50791
|
},
|
|
50753
50792
|
zIndices: {
|
|
50754
50793
|
content: 100,
|
|
@@ -54442,4 +54481,4 @@ var TruncatedText = function TruncatedText(_a) {
|
|
|
54442
54481
|
}, props), children);
|
|
54443
54482
|
};
|
|
54444
54483
|
|
|
54445
|
-
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBarBackground, NotificationTypes, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, toast, useWindowDimensions };
|
|
54484
|
+
export { ALL_NDS_LOCALES, Alert$1 as Alert, AnimatedBox, ApplicationFrame, AsyncSelect, Banner, BottomSheet, BottomSheetParts, Box, BrandLogoContainer, NavBar as BrandedNavBar, Branding, Breadcrumbs, Button, ButtonGroup, Card, CardSet, Checkbox, CheckboxGroup, ControlIcon, DangerButton, DatePicker, DateRange, DesktopMenu, Divider$1 as Divider, DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText, EnvironmentBanner, Field, FieldLabel, Fieldset, Flex, Form, FormSection, Header, Heading1, Heading2, Heading3, Heading4, HelpText$1 as HelpText, Icon, IconicButton, InlineIcon, InlineValidation, Input, Link, List, ListItem, LoadingAnimation, MenuTrigger, Modal, NDSProvider, NavBarBackground, NotificationTypes, Overlay, Page, Pagination, PrimaryButton, QuietButton, Radio, RadioGroup, RangeContainer, RequirementText, ReactSelect as Select, SelectClearIndicator, SelectContainer, SelectControl, SelectDropdownIndicator, SelectInput, SelectMenu, SelectMultiValue, SelectOption$1 as SelectOption, Sidebar, SmallNavBar, SortingTable, StatusIndicator, StatusIndicatorValues, Summary, SummaryDivider, SummaryItem, Switch$1 as Switch, Switcher, Tab, Table, Tabs, Text, Textarea, TimePicker, TimeRange, Toast, ToastContainer, ToggleComponent as Toggle, Tooltip, TruncatedText, addStyledProps, toast, useMediaQuery, useWindowDimensions };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BackLink } from "./components/BackLink";
|
|
3
|
+
import { Menu } from "./components/Menu";
|
|
4
|
+
import { MenuItem } from "./components/MenuItem";
|
|
5
|
+
import { PageTitle } from "./components/PageTitle";
|
|
6
|
+
export interface TopBarProps {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export default function Root({ children }: TopBarProps): React.JSX.Element;
|
|
10
|
+
export declare const TopBar: {
|
|
11
|
+
Root: typeof Root;
|
|
12
|
+
PageTitle: typeof PageTitle;
|
|
13
|
+
BackLink: typeof BackLink;
|
|
14
|
+
Menu: typeof Menu;
|
|
15
|
+
MenuItem: typeof MenuItem;
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyledProps } from "../StyledProps";
|
|
3
|
+
declare const MenuItemList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
declare const Header: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
declare const Navigation: import("styled-components").StyledComponent<"nav", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
declare const StylelessButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, StyledProps, never>;
|
|
7
|
+
declare const MenuButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, StyledProps, never>;
|
|
8
|
+
declare const NavigationItemsList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
declare const StyledBackLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
declare const StyledPageTitle: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
declare const Overlay: import("styled-components").StyledComponent<import("framer-motion").CustomDomComponent<import("@reach/utils/dist/declarations/src/polymorphic").Merge<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
12
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
13
|
+
}, import("@reach/dialog/dist/declarations/src").DialogOverlayProps & {
|
|
14
|
+
as?: "div";
|
|
15
|
+
}>>, import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
+
declare const TileLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
declare const StyledMenuItem: import("styled-components").StyledComponent<import("framer-motion").ForwardRefComponent<HTMLLIElement, import("framer-motion").HTMLMotionProps<"li">>, import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
+
export { Navigation, Header, NavigationItemsList, StyledBackLink, StyledPageTitle, Overlay, TileLink, StylelessButton, MenuItemList, MenuButton, StyledMenuItem, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
|
+
import { MaxWidthProps } from "styled-system";
|
|
3
|
+
import { StyledBackLink } from "../TopBar.styled";
|
|
4
|
+
interface BackLinkProps extends MaxWidthProps, ComponentProps<typeof StyledBackLink> {
|
|
5
|
+
}
|
|
6
|
+
export declare function BackLink({ children, maxWidth, ...props }: BackLinkProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconName } from "@nulogy/icons";
|
|
2
|
+
import React, { ComponentProps } from "react";
|
|
3
|
+
import { TileLink } from "../TopBar.styled";
|
|
4
|
+
interface MenuItemProps extends ComponentProps<typeof TileLink> {
|
|
5
|
+
title: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
icon: IconName;
|
|
8
|
+
}
|
|
9
|
+
export declare function MenuItem({ description, title, icon, ...props }: MenuItemProps): React.JSX.Element;
|
|
10
|
+
export type MenuItems = MenuItemProps[];
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
parameters: {
|
|
4
|
+
layout: string;
|
|
5
|
+
chromatic: {
|
|
6
|
+
modes: {
|
|
7
|
+
locale: string;
|
|
8
|
+
desktopScale: string;
|
|
9
|
+
theme: string;
|
|
10
|
+
viewports: number[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const WithNoLabel: () => React.JSX.Element;
|
|
18
|
+
export declare const WithACustomMaxWidth: () => React.JSX.Element;
|
|
19
|
+
export declare const WithARouterLink: () => React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
parameters: {
|
|
4
|
+
layout: string;
|
|
5
|
+
chromatic: {
|
|
6
|
+
delay: number;
|
|
7
|
+
modes: {
|
|
8
|
+
locale: string;
|
|
9
|
+
desktopScale: string;
|
|
10
|
+
theme: string;
|
|
11
|
+
viewports: number[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
title: string;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
export declare const withDefaultOpenMenu: () => React.JSX.Element;
|
|
19
|
+
export declare const WithOneMenuItem: () => React.JSX.Element;
|
|
20
|
+
export declare const WithTwoItems: () => React.JSX.Element;
|
|
21
|
+
export declare const WithThreeItems: () => React.JSX.Element;
|
|
22
|
+
export declare const WithRouterLinks: () => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
chromatic: {
|
|
7
|
+
modes: {
|
|
8
|
+
locale: string;
|
|
9
|
+
desktopScale: string;
|
|
10
|
+
theme: string;
|
|
11
|
+
viewports: number[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Default: () => React.JSX.Element;
|
|
18
|
+
export declare const WithALongTitle: () => React.JSX.Element;
|
|
19
|
+
export declare const WithAnApplicationFrame: () => React.JSX.Element;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export { DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText
|
|
|
20
20
|
export { FieldLabel, HelpText, RequirementText } from "./FieldLabel";
|
|
21
21
|
export { Flex } from "./Flex";
|
|
22
22
|
export { Field, Fieldset, Form, FormSection } from "./Form";
|
|
23
|
+
export { default as useMediaQuery } from "./hooks/useMediaQuery";
|
|
23
24
|
export { Icon, InlineIcon } from "./Icon";
|
|
24
25
|
export { Input } from "./Input";
|
|
25
26
|
export { ApplicationFrame, Header, Page, Sidebar } from "./Layout";
|
|
@@ -112,6 +112,12 @@ export interface Breakpoints {
|
|
|
112
112
|
medium: string;
|
|
113
113
|
large: string;
|
|
114
114
|
extraLarge: string;
|
|
115
|
+
phonePortrait: string;
|
|
116
|
+
phoneLandscape: string;
|
|
117
|
+
tabletPortrait: string;
|
|
118
|
+
tabletLandscape: string;
|
|
119
|
+
laptop: string;
|
|
120
|
+
desktop: string;
|
|
115
121
|
}
|
|
116
122
|
interface ZIndices {
|
|
117
123
|
content: number;
|
|
@@ -8,6 +8,12 @@ export declare const buildBreakPoints: (breakpointsConfig: Readonly<Breakpoints>
|
|
|
8
8
|
medium: string;
|
|
9
9
|
large: string;
|
|
10
10
|
extraLarge: string;
|
|
11
|
+
phonePortrait: string;
|
|
12
|
+
phoneLandscape: string;
|
|
13
|
+
tabletPortrait: string;
|
|
14
|
+
tabletLandscape: string;
|
|
15
|
+
laptop: string;
|
|
16
|
+
desktop: string;
|
|
11
17
|
};
|
|
12
18
|
export declare const getThemeByVariant: (variant: ComponentVariant, isTabletSize: boolean, featureFlags: FeatureFlags) => DefaultNDSThemeType;
|
|
13
19
|
export declare function useNDSTheme(variant?: ComponentVariant, customTheme?: ThemeType): DefaultNDSThemeType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.3.1",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"clean:storybook": "rm -rf node_modules/.cache/storybook && rm -rf ./storybook-static",
|
|
17
17
|
"build": "rollup -c",
|
|
18
18
|
"build:storybook": "build-storybook",
|
|
19
|
-
"
|
|
19
|
+
"warn:prepush": "echo \"Make sure you also run all the other CI steps before pushing by running 'yarn ci'\"",
|
|
20
|
+
"check": "yarn warn:prepush && yarn check:types && yarn check:lint && yarn check:format",
|
|
20
21
|
"check:types": "tsc && cd cypress && tsc --noEmit",
|
|
21
22
|
"check:lint": "eslint --config ./.eslintrc .'*/**/*.{js,ts,tsx}'",
|
|
22
23
|
"check:format": "prettier -c .",
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
"@babel/preset-env": "7.3.1",
|
|
69
70
|
"@babel/preset-typescript": "^7.10.4",
|
|
70
71
|
"@nulogy/eslint-config-nulogy": "^1.0.0",
|
|
71
|
-
"@nulogy/icons": "^4.
|
|
72
|
+
"@nulogy/icons": "^4.37.2",
|
|
72
73
|
"@rollup/plugin-babel": "^5.0.0",
|
|
73
74
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
74
75
|
"@semantic-release/changelog": "^6.0.2",
|
|
@@ -173,7 +174,7 @@
|
|
|
173
174
|
},
|
|
174
175
|
"husky": {
|
|
175
176
|
"hooks": {
|
|
176
|
-
"pre-push": "yarn run
|
|
177
|
+
"pre-push": "yarn run check"
|
|
177
178
|
}
|
|
178
179
|
},
|
|
179
180
|
"jest": {
|