@nulogy/components 8.14.5 → 8.15.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 +161 -113
- package/dist/main.module.js +161 -113
- package/dist/src/Icon/LoadingIcon.d.ts +1 -6
- package/dist/src/Type/Headings.d.ts +1072 -9
- package/dist/src/Type/Headings.story.d.ts +2 -6
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -8543,79 +8543,87 @@
|
|
|
8543
8543
|
}
|
|
8544
8544
|
};
|
|
8545
8545
|
|
|
8546
|
-
var
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8618
|
-
|
|
8546
|
+
var LoadingIcon = function LoadingIcon(props) {
|
|
8547
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", Object.assign({
|
|
8548
|
+
viewBox: "0 0 24px 24px",
|
|
8549
|
+
width: "24px",
|
|
8550
|
+
height: "24px",
|
|
8551
|
+
fill: "none",
|
|
8552
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8553
|
+
preserveAspectRatio: "xMidYMid"
|
|
8554
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
8555
|
+
cx: "3.5",
|
|
8556
|
+
cy: "12",
|
|
8557
|
+
fill: "#C0C8D1",
|
|
8558
|
+
"transform-origin": "3.5 3.5"
|
|
8559
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
8560
|
+
attributeName: "r",
|
|
8561
|
+
values: "3;3;3.5;3",
|
|
8562
|
+
keySplines: "\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;",
|
|
8563
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8564
|
+
calcMode: "spline",
|
|
8565
|
+
dur: "0.8s",
|
|
8566
|
+
repeatCount: "indefinite"
|
|
8567
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
8568
|
+
id: "first",
|
|
8569
|
+
attributeName: "fill",
|
|
8570
|
+
values: "#C0C8D1;#C0C8D1;#434D59;#C0C8D1",
|
|
8571
|
+
keySplines: "\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;",
|
|
8572
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8573
|
+
calcMode: "spline",
|
|
8574
|
+
dur: "0.8s",
|
|
8575
|
+
repeatCount: "indefinite"
|
|
8576
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
8577
|
+
cx: "12",
|
|
8578
|
+
cy: "12",
|
|
8579
|
+
r: "3",
|
|
8580
|
+
fill: "#C0C8D1",
|
|
8581
|
+
"transform-origin": "12 3.5"
|
|
8582
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
8583
|
+
attributeName: "r",
|
|
8584
|
+
begin: "0.2s; first.begin",
|
|
8585
|
+
values: "3;3;3.5;3",
|
|
8586
|
+
keySplines: "\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;",
|
|
8587
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8588
|
+
calcMode: "spline",
|
|
8589
|
+
dur: "0.8s",
|
|
8590
|
+
repeatCount: "indefinite"
|
|
8591
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
8592
|
+
id: "second",
|
|
8593
|
+
attributeName: "fill",
|
|
8594
|
+
begin: "0.2s; first.begin",
|
|
8595
|
+
values: "#C0C8D1;#C0C8D1;#434D59;#C0C8D1",
|
|
8596
|
+
keySplines: "\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;",
|
|
8597
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8598
|
+
calcMode: "spline",
|
|
8599
|
+
dur: "0.8s",
|
|
8600
|
+
repeatCount: "indefinite"
|
|
8601
|
+
})), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
8602
|
+
cx: "20.5",
|
|
8603
|
+
cy: "12",
|
|
8604
|
+
r: "3",
|
|
8605
|
+
fill: "#C0C8D1",
|
|
8606
|
+
"transform-origin": "20.5 3.5"
|
|
8607
|
+
}, /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
8608
|
+
attributeName: "r",
|
|
8609
|
+
begin: "0.3s; first.begin",
|
|
8610
|
+
values: "3;3;3.5;3",
|
|
8611
|
+
keySplines: "\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;\n 0.1 0.8 0.2 1;",
|
|
8612
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8613
|
+
calcMode: "spline",
|
|
8614
|
+
dur: "0.8s",
|
|
8615
|
+
repeatCount: "indefinite"
|
|
8616
|
+
}), /*#__PURE__*/React__default["default"].createElement("animate", {
|
|
8617
|
+
id: "third",
|
|
8618
|
+
attributeName: "fill",
|
|
8619
|
+
begin: "0.3s; first.begin",
|
|
8620
|
+
values: "#C0C8D1;#C0C8D1;#434D59;#C0C8D1",
|
|
8621
|
+
keySplines: "\n .24 .1 .35 .8;\n .24 .1 .35 .8;\n 0.1 0.8 0.2 1",
|
|
8622
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8623
|
+
calcMode: "spline",
|
|
8624
|
+
dur: "0.8s",
|
|
8625
|
+
repeatCount: "indefinite"
|
|
8626
|
+
}))));
|
|
8619
8627
|
};
|
|
8620
8628
|
|
|
8621
8629
|
/* eslint-disable react/no-array-index-key */
|
|
@@ -8646,7 +8654,6 @@
|
|
|
8646
8654
|
if (icon === "loading") {
|
|
8647
8655
|
return /*#__PURE__*/React__default["default"].createElement(LoadingIcon, Object.assign({
|
|
8648
8656
|
color: Theme.colors[fillColor] ? Theme.colors[fillColor] : fillColor,
|
|
8649
|
-
size: space[size] || size,
|
|
8650
8657
|
className: className
|
|
8651
8658
|
}, props));
|
|
8652
8659
|
}
|
|
@@ -8765,38 +8772,74 @@
|
|
|
8765
8772
|
disabled: false
|
|
8766
8773
|
};
|
|
8767
8774
|
|
|
8768
|
-
var Heading1 = Text.
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
}
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8775
|
+
var Heading1 = styled__default["default"](Text).attrs(function (props) {
|
|
8776
|
+
return Object.assign({
|
|
8777
|
+
as: "h1"
|
|
8778
|
+
}, props);
|
|
8779
|
+
}).withConfig({
|
|
8780
|
+
displayName: "Headings__Heading1",
|
|
8781
|
+
componentId: "sc-7kwh7g-0"
|
|
8782
|
+
})(function (_ref) {
|
|
8783
|
+
var theme = _ref.theme;
|
|
8784
|
+
return {
|
|
8785
|
+
fontSize: theme.fontSizes.heading1,
|
|
8786
|
+
lineHeight: theme.lineHeights.heading1,
|
|
8787
|
+
fontWeight: theme.fontWeights.light,
|
|
8788
|
+
marginTop: 0,
|
|
8789
|
+
marginBottom: theme.space.x6
|
|
8790
|
+
};
|
|
8791
|
+
}, addStyledProps);
|
|
8792
|
+
var Heading2 = styled__default["default"](Text).attrs(function (props) {
|
|
8793
|
+
return Object.assign({
|
|
8794
|
+
as: "h2"
|
|
8795
|
+
}, props);
|
|
8796
|
+
}).withConfig({
|
|
8797
|
+
displayName: "Headings__Heading2",
|
|
8798
|
+
componentId: "sc-7kwh7g-1"
|
|
8799
|
+
})(function (_ref2) {
|
|
8800
|
+
var theme = _ref2.theme;
|
|
8801
|
+
return {
|
|
8802
|
+
fontSize: theme.fontSizes.heading2,
|
|
8803
|
+
lineHeight: theme.lineHeights.heading2,
|
|
8804
|
+
fontWeight: theme.fontWeights.normal,
|
|
8805
|
+
marginTop: 0,
|
|
8806
|
+
marginBottom: theme.space.x2
|
|
8807
|
+
};
|
|
8808
|
+
}, addStyledProps);
|
|
8809
|
+
var Heading3 = styled__default["default"](Text).attrs(function (props) {
|
|
8810
|
+
return Object.assign({
|
|
8811
|
+
as: "h3"
|
|
8812
|
+
}, props);
|
|
8813
|
+
}).withConfig({
|
|
8814
|
+
displayName: "Headings__Heading3",
|
|
8815
|
+
componentId: "sc-7kwh7g-2"
|
|
8816
|
+
})(function (_ref3) {
|
|
8817
|
+
var theme = _ref3.theme;
|
|
8818
|
+
return {
|
|
8819
|
+
fontSize: theme.fontSizes.heading3,
|
|
8820
|
+
lineHeight: theme.lineHeights.heading3,
|
|
8821
|
+
fontWeight: theme.fontWeights.medium,
|
|
8822
|
+
marginTop: 0,
|
|
8823
|
+
marginBottom: theme.space.x1
|
|
8824
|
+
};
|
|
8825
|
+
}, addStyledProps);
|
|
8826
|
+
var Heading4 = styled__default["default"](Text).attrs(function (props) {
|
|
8827
|
+
return Object.assign({
|
|
8828
|
+
as: "h4"
|
|
8829
|
+
}, props);
|
|
8830
|
+
}).withConfig({
|
|
8831
|
+
displayName: "Headings__Heading4",
|
|
8832
|
+
componentId: "sc-7kwh7g-3"
|
|
8833
|
+
})(function (_ref4) {
|
|
8834
|
+
var theme = _ref4.theme;
|
|
8835
|
+
return {
|
|
8836
|
+
fontSize: theme.fontSizes.heading4,
|
|
8837
|
+
lineHeight: theme.lineHeights.heading4,
|
|
8838
|
+
fontWeight: theme.fontWeights.bold,
|
|
8839
|
+
marginTop: 0,
|
|
8840
|
+
marginBottom: theme.space.x1
|
|
8841
|
+
};
|
|
8842
|
+
}, addStyledProps);
|
|
8800
8843
|
|
|
8801
8844
|
var defaultOptions = {
|
|
8802
8845
|
bindI18n: 'languageChanged',
|
|
@@ -17633,6 +17676,14 @@
|
|
|
17633
17676
|
return parseInt(val1.replace("px", ""), 10) - parseInt(val2Str.replace("px", ""), 10) + "px";
|
|
17634
17677
|
};
|
|
17635
17678
|
|
|
17679
|
+
var prefix = "random-id-";
|
|
17680
|
+
var randomId = 0;
|
|
17681
|
+
|
|
17682
|
+
var generateId = function generateId() {
|
|
17683
|
+
randomId += 1;
|
|
17684
|
+
return prefix + randomId;
|
|
17685
|
+
};
|
|
17686
|
+
|
|
17636
17687
|
var WindowDimensions = /*#__PURE__*/function (_React$Component) {
|
|
17637
17688
|
_inheritsLoose__default["default"](WindowDimensions, _React$Component);
|
|
17638
17689
|
|
|
@@ -50031,7 +50082,7 @@
|
|
|
50031
50082
|
quiet: "quiet"
|
|
50032
50083
|
};
|
|
50033
50084
|
|
|
50034
|
-
var
|
|
50085
|
+
var statusIndicatorStyles = function statusIndicatorStyles(theme) {
|
|
50035
50086
|
var _ref;
|
|
50036
50087
|
|
|
50037
50088
|
return _ref = {}, _ref[StatusIndicatorValues.neutral] = {
|
|
@@ -50043,7 +50094,8 @@
|
|
|
50043
50094
|
backgroundColor: theme.colors.blackBlue,
|
|
50044
50095
|
color: theme.colors.white
|
|
50045
50096
|
}, _ref[StatusIndicatorValues.quiet] = {
|
|
50046
|
-
|
|
50097
|
+
border: "1px solid",
|
|
50098
|
+
borderColor: theme.colors.grey,
|
|
50047
50099
|
backgroundColor: theme.colors.white,
|
|
50048
50100
|
color: theme.colors.darkGrey
|
|
50049
50101
|
}, _ref[StatusIndicatorValues.danger] = {
|
|
@@ -50065,10 +50117,6 @@
|
|
|
50065
50117
|
}, _ref;
|
|
50066
50118
|
};
|
|
50067
50119
|
|
|
50068
|
-
var getStatusIndicatorColours = function getStatusIndicatorColours(type, theme) {
|
|
50069
|
-
return StatusIndicatorColours(theme)[type];
|
|
50070
|
-
};
|
|
50071
|
-
|
|
50072
50120
|
var StatusIndicator = styled__default["default"].span.withConfig({
|
|
50073
50121
|
displayName: "StatusIndicator",
|
|
50074
50122
|
componentId: "sc-17eyafq-0"
|
|
@@ -50081,7 +50129,7 @@
|
|
|
50081
50129
|
textTransform: "uppercase",
|
|
50082
50130
|
letterSpacing: ".05em",
|
|
50083
50131
|
borderRadius: theme.space.x1
|
|
50084
|
-
},
|
|
50132
|
+
}, statusIndicatorStyles(theme)[type]);
|
|
50085
50133
|
});
|
|
50086
50134
|
StatusIndicator.defaultProps = {
|
|
50087
50135
|
type: StatusIndicatorValues.neutral,
|