@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.module.js
CHANGED
|
@@ -8520,79 +8520,87 @@ var Theme = {
|
|
|
8520
8520
|
}
|
|
8521
8521
|
};
|
|
8522
8522
|
|
|
8523
|
-
var
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
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
|
-
|
|
8523
|
+
var LoadingIcon = function LoadingIcon(props) {
|
|
8524
|
+
return /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
8525
|
+
viewBox: "0 0 24px 24px",
|
|
8526
|
+
width: "24px",
|
|
8527
|
+
height: "24px",
|
|
8528
|
+
fill: "none",
|
|
8529
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8530
|
+
preserveAspectRatio: "xMidYMid"
|
|
8531
|
+
}, props), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
|
|
8532
|
+
cx: "3.5",
|
|
8533
|
+
cy: "12",
|
|
8534
|
+
fill: "#C0C8D1",
|
|
8535
|
+
"transform-origin": "3.5 3.5"
|
|
8536
|
+
}, /*#__PURE__*/React__default.createElement("animate", {
|
|
8537
|
+
attributeName: "r",
|
|
8538
|
+
values: "3;3;3.5;3",
|
|
8539
|
+
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;",
|
|
8540
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8541
|
+
calcMode: "spline",
|
|
8542
|
+
dur: "0.8s",
|
|
8543
|
+
repeatCount: "indefinite"
|
|
8544
|
+
}), /*#__PURE__*/React__default.createElement("animate", {
|
|
8545
|
+
id: "first",
|
|
8546
|
+
attributeName: "fill",
|
|
8547
|
+
values: "#C0C8D1;#C0C8D1;#434D59;#C0C8D1",
|
|
8548
|
+
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;",
|
|
8549
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8550
|
+
calcMode: "spline",
|
|
8551
|
+
dur: "0.8s",
|
|
8552
|
+
repeatCount: "indefinite"
|
|
8553
|
+
})), /*#__PURE__*/React__default.createElement("circle", {
|
|
8554
|
+
cx: "12",
|
|
8555
|
+
cy: "12",
|
|
8556
|
+
r: "3",
|
|
8557
|
+
fill: "#C0C8D1",
|
|
8558
|
+
"transform-origin": "12 3.5"
|
|
8559
|
+
}, /*#__PURE__*/React__default.createElement("animate", {
|
|
8560
|
+
attributeName: "r",
|
|
8561
|
+
begin: "0.2s; first.begin",
|
|
8562
|
+
values: "3;3;3.5;3",
|
|
8563
|
+
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;",
|
|
8564
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8565
|
+
calcMode: "spline",
|
|
8566
|
+
dur: "0.8s",
|
|
8567
|
+
repeatCount: "indefinite"
|
|
8568
|
+
}), /*#__PURE__*/React__default.createElement("animate", {
|
|
8569
|
+
id: "second",
|
|
8570
|
+
attributeName: "fill",
|
|
8571
|
+
begin: "0.2s; first.begin",
|
|
8572
|
+
values: "#C0C8D1;#C0C8D1;#434D59;#C0C8D1",
|
|
8573
|
+
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;",
|
|
8574
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8575
|
+
calcMode: "spline",
|
|
8576
|
+
dur: "0.8s",
|
|
8577
|
+
repeatCount: "indefinite"
|
|
8578
|
+
})), /*#__PURE__*/React__default.createElement("circle", {
|
|
8579
|
+
cx: "20.5",
|
|
8580
|
+
cy: "12",
|
|
8581
|
+
r: "3",
|
|
8582
|
+
fill: "#C0C8D1",
|
|
8583
|
+
"transform-origin": "20.5 3.5"
|
|
8584
|
+
}, /*#__PURE__*/React__default.createElement("animate", {
|
|
8585
|
+
attributeName: "r",
|
|
8586
|
+
begin: "0.3s; first.begin",
|
|
8587
|
+
values: "3;3;3.5;3",
|
|
8588
|
+
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;",
|
|
8589
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8590
|
+
calcMode: "spline",
|
|
8591
|
+
dur: "0.8s",
|
|
8592
|
+
repeatCount: "indefinite"
|
|
8593
|
+
}), /*#__PURE__*/React__default.createElement("animate", {
|
|
8594
|
+
id: "third",
|
|
8595
|
+
attributeName: "fill",
|
|
8596
|
+
begin: "0.3s; first.begin",
|
|
8597
|
+
values: "#C0C8D1;#C0C8D1;#434D59;#C0C8D1",
|
|
8598
|
+
keySplines: "\n .24 .1 .35 .8;\n .24 .1 .35 .8;\n 0.1 0.8 0.2 1",
|
|
8599
|
+
keyTimes: "0; 0.25;0.4; 1",
|
|
8600
|
+
calcMode: "spline",
|
|
8601
|
+
dur: "0.8s",
|
|
8602
|
+
repeatCount: "indefinite"
|
|
8603
|
+
}))));
|
|
8596
8604
|
};
|
|
8597
8605
|
|
|
8598
8606
|
/* eslint-disable react/no-array-index-key */
|
|
@@ -8623,7 +8631,6 @@ var Svg$1 = /*#__PURE__*/React__default.forwardRef(function (_a, ref) {
|
|
|
8623
8631
|
if (icon === "loading") {
|
|
8624
8632
|
return /*#__PURE__*/React__default.createElement(LoadingIcon, Object.assign({
|
|
8625
8633
|
color: Theme.colors[fillColor] ? Theme.colors[fillColor] : fillColor,
|
|
8626
|
-
size: space[size] || size,
|
|
8627
8634
|
className: className
|
|
8628
8635
|
}, props));
|
|
8629
8636
|
}
|
|
@@ -8742,38 +8749,74 @@ Text.defaultProps = {
|
|
|
8742
8749
|
disabled: false
|
|
8743
8750
|
};
|
|
8744
8751
|
|
|
8745
|
-
var Heading1 = Text.
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
}
|
|
8753
|
-
var
|
|
8754
|
-
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
};
|
|
8761
|
-
|
|
8762
|
-
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8752
|
+
var Heading1 = styled(Text).attrs(function (props) {
|
|
8753
|
+
return Object.assign({
|
|
8754
|
+
as: "h1"
|
|
8755
|
+
}, props);
|
|
8756
|
+
}).withConfig({
|
|
8757
|
+
displayName: "Headings__Heading1",
|
|
8758
|
+
componentId: "sc-7kwh7g-0"
|
|
8759
|
+
})(function (_ref) {
|
|
8760
|
+
var theme = _ref.theme;
|
|
8761
|
+
return {
|
|
8762
|
+
fontSize: theme.fontSizes.heading1,
|
|
8763
|
+
lineHeight: theme.lineHeights.heading1,
|
|
8764
|
+
fontWeight: theme.fontWeights.light,
|
|
8765
|
+
marginTop: 0,
|
|
8766
|
+
marginBottom: theme.space.x6
|
|
8767
|
+
};
|
|
8768
|
+
}, addStyledProps);
|
|
8769
|
+
var Heading2 = styled(Text).attrs(function (props) {
|
|
8770
|
+
return Object.assign({
|
|
8771
|
+
as: "h2"
|
|
8772
|
+
}, props);
|
|
8773
|
+
}).withConfig({
|
|
8774
|
+
displayName: "Headings__Heading2",
|
|
8775
|
+
componentId: "sc-7kwh7g-1"
|
|
8776
|
+
})(function (_ref2) {
|
|
8777
|
+
var theme = _ref2.theme;
|
|
8778
|
+
return {
|
|
8779
|
+
fontSize: theme.fontSizes.heading2,
|
|
8780
|
+
lineHeight: theme.lineHeights.heading2,
|
|
8781
|
+
fontWeight: theme.fontWeights.normal,
|
|
8782
|
+
marginTop: 0,
|
|
8783
|
+
marginBottom: theme.space.x2
|
|
8784
|
+
};
|
|
8785
|
+
}, addStyledProps);
|
|
8786
|
+
var Heading3 = styled(Text).attrs(function (props) {
|
|
8787
|
+
return Object.assign({
|
|
8788
|
+
as: "h3"
|
|
8789
|
+
}, props);
|
|
8790
|
+
}).withConfig({
|
|
8791
|
+
displayName: "Headings__Heading3",
|
|
8792
|
+
componentId: "sc-7kwh7g-2"
|
|
8793
|
+
})(function (_ref3) {
|
|
8794
|
+
var theme = _ref3.theme;
|
|
8795
|
+
return {
|
|
8796
|
+
fontSize: theme.fontSizes.heading3,
|
|
8797
|
+
lineHeight: theme.lineHeights.heading3,
|
|
8798
|
+
fontWeight: theme.fontWeights.medium,
|
|
8799
|
+
marginTop: 0,
|
|
8800
|
+
marginBottom: theme.space.x1
|
|
8801
|
+
};
|
|
8802
|
+
}, addStyledProps);
|
|
8803
|
+
var Heading4 = styled(Text).attrs(function (props) {
|
|
8804
|
+
return Object.assign({
|
|
8805
|
+
as: "h4"
|
|
8806
|
+
}, props);
|
|
8807
|
+
}).withConfig({
|
|
8808
|
+
displayName: "Headings__Heading4",
|
|
8809
|
+
componentId: "sc-7kwh7g-3"
|
|
8810
|
+
})(function (_ref4) {
|
|
8811
|
+
var theme = _ref4.theme;
|
|
8812
|
+
return {
|
|
8813
|
+
fontSize: theme.fontSizes.heading4,
|
|
8814
|
+
lineHeight: theme.lineHeights.heading4,
|
|
8815
|
+
fontWeight: theme.fontWeights.bold,
|
|
8816
|
+
marginTop: 0,
|
|
8817
|
+
marginBottom: theme.space.x1
|
|
8818
|
+
};
|
|
8819
|
+
}, addStyledProps);
|
|
8777
8820
|
|
|
8778
8821
|
var defaultOptions = {
|
|
8779
8822
|
bindI18n: 'languageChanged',
|
|
@@ -17610,6 +17653,14 @@ var subPx = function subPx(val1, val2) {
|
|
|
17610
17653
|
return parseInt(val1.replace("px", ""), 10) - parseInt(val2Str.replace("px", ""), 10) + "px";
|
|
17611
17654
|
};
|
|
17612
17655
|
|
|
17656
|
+
var prefix = "random-id-";
|
|
17657
|
+
var randomId = 0;
|
|
17658
|
+
|
|
17659
|
+
var generateId = function generateId() {
|
|
17660
|
+
randomId += 1;
|
|
17661
|
+
return prefix + randomId;
|
|
17662
|
+
};
|
|
17663
|
+
|
|
17613
17664
|
var WindowDimensions = /*#__PURE__*/function (_React$Component) {
|
|
17614
17665
|
_inheritsLoose$2(WindowDimensions, _React$Component);
|
|
17615
17666
|
|
|
@@ -50008,7 +50059,7 @@ var StatusIndicatorValues = {
|
|
|
50008
50059
|
quiet: "quiet"
|
|
50009
50060
|
};
|
|
50010
50061
|
|
|
50011
|
-
var
|
|
50062
|
+
var statusIndicatorStyles = function statusIndicatorStyles(theme) {
|
|
50012
50063
|
var _ref;
|
|
50013
50064
|
|
|
50014
50065
|
return _ref = {}, _ref[StatusIndicatorValues.neutral] = {
|
|
@@ -50020,7 +50071,8 @@ var StatusIndicatorColours = function StatusIndicatorColours(theme) {
|
|
|
50020
50071
|
backgroundColor: theme.colors.blackBlue,
|
|
50021
50072
|
color: theme.colors.white
|
|
50022
50073
|
}, _ref[StatusIndicatorValues.quiet] = {
|
|
50023
|
-
|
|
50074
|
+
border: "1px solid",
|
|
50075
|
+
borderColor: theme.colors.grey,
|
|
50024
50076
|
backgroundColor: theme.colors.white,
|
|
50025
50077
|
color: theme.colors.darkGrey
|
|
50026
50078
|
}, _ref[StatusIndicatorValues.danger] = {
|
|
@@ -50042,10 +50094,6 @@ var StatusIndicatorColours = function StatusIndicatorColours(theme) {
|
|
|
50042
50094
|
}, _ref;
|
|
50043
50095
|
};
|
|
50044
50096
|
|
|
50045
|
-
var getStatusIndicatorColours = function getStatusIndicatorColours(type, theme) {
|
|
50046
|
-
return StatusIndicatorColours(theme)[type];
|
|
50047
|
-
};
|
|
50048
|
-
|
|
50049
50097
|
var StatusIndicator = styled.span.withConfig({
|
|
50050
50098
|
displayName: "StatusIndicator",
|
|
50051
50099
|
componentId: "sc-17eyafq-0"
|
|
@@ -50058,7 +50106,7 @@ var StatusIndicator = styled.span.withConfig({
|
|
|
50058
50106
|
textTransform: "uppercase",
|
|
50059
50107
|
letterSpacing: ".05em",
|
|
50060
50108
|
borderRadius: theme.space.x1
|
|
50061
|
-
},
|
|
50109
|
+
}, statusIndicatorStyles(theme)[type]);
|
|
50062
50110
|
});
|
|
50063
50111
|
StatusIndicator.defaultProps = {
|
|
50064
50112
|
type: StatusIndicatorValues.neutral,
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
type LoadingIconProps =
|
|
3
|
-
size?: string | number;
|
|
4
|
-
color?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
};
|
|
2
|
+
type LoadingIconProps = React.ComponentPropsWithoutRef<"svg">;
|
|
8
3
|
declare const LoadingIcon: React.FC<LoadingIconProps>;
|
|
9
4
|
export default LoadingIcon;
|