@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.
@@ -8520,79 +8520,87 @@ var Theme = {
8520
8520
  }
8521
8521
  };
8522
8522
 
8523
- var prefix = "random-id-";
8524
- var randomId = 0;
8525
-
8526
- var generateId = function generateId() {
8527
- randomId += 1;
8528
- return prefix + randomId;
8529
- };
8530
-
8531
- var LoadingIcon = function LoadingIcon(_a) {
8532
- var _a$color = _a.color,
8533
- color = _a$color === void 0 ? "currentColor" : _a$color,
8534
- _a$size = _a.size,
8535
- size = _a$size === void 0 ? "24px" : _a$size;
8536
- _a.title;
8537
- var props = __rest(_a, ["color", "size", "title"]);
8538
-
8539
- var id = generateId();
8540
- return (
8541
- /*#__PURE__*/
8542
- // Modified svg By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL
8543
- React__default.createElement("svg", Object.assign({
8544
- width: size,
8545
- height: size,
8546
- viewBox: "0 0 38 38",
8547
- xmlns: "http://www.w3.org/2000/svg"
8548
- }, props), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("linearGradient", {
8549
- x1: "8.042%",
8550
- y1: "0%",
8551
- x2: "65.682%",
8552
- y2: "23.865%",
8553
- id: id
8554
- }, /*#__PURE__*/React__default.createElement("stop", {
8555
- stopColor: color,
8556
- stopOpacity: "0",
8557
- offset: "0%"
8558
- }), /*#__PURE__*/React__default.createElement("stop", {
8559
- stopColor: color,
8560
- stopOpacity: ".631",
8561
- offset: "63.146%"
8562
- }), /*#__PURE__*/React__default.createElement("stop", {
8563
- stopColor: color,
8564
- offset: "100%"
8565
- }))), /*#__PURE__*/React__default.createElement("g", {
8566
- fill: "none",
8567
- fillRule: "evenodd"
8568
- }, /*#__PURE__*/React__default.createElement("g", {
8569
- transform: "translate(1 1)"
8570
- }, /*#__PURE__*/React__default.createElement("path", {
8571
- d: "M36 18c0-9.94-8.06-18-18-18",
8572
- id: "Oval-2",
8573
- stroke: "url(#" + id + ")",
8574
- strokeWidth: "2"
8575
- }, /*#__PURE__*/React__default.createElement("animateTransform", {
8576
- attributeName: "transform",
8577
- type: "rotate",
8578
- from: "0 18 18",
8579
- to: "360 18 18",
8580
- dur: "0.9s",
8581
- repeatCount: "indefinite"
8582
- })), /*#__PURE__*/React__default.createElement("circle", {
8583
- fill: color,
8584
- cx: "36",
8585
- cy: "18",
8586
- r: "1"
8587
- }, /*#__PURE__*/React__default.createElement("animateTransform", {
8588
- attributeName: "transform",
8589
- type: "rotate",
8590
- from: "0 18 18",
8591
- to: "360 18 18",
8592
- dur: "0.9s",
8593
- repeatCount: "indefinite"
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.withComponent("h1");
8746
- Heading1.defaultProps = {
8747
- fontSize: "heading1",
8748
- lineHeight: "heading1",
8749
- fontWeight: "light",
8750
- mt: 0,
8751
- mb: "x6"
8752
- };
8753
- var Heading2 = Text.withComponent("h2");
8754
- Heading2.defaultProps = {
8755
- fontSize: "heading2",
8756
- lineHeight: "heading2",
8757
- fontWeight: "normal",
8758
- mt: 0,
8759
- mb: "x2"
8760
- };
8761
- var Heading3 = Text.withComponent("h3");
8762
- Heading3.defaultProps = {
8763
- fontSize: "heading3",
8764
- lineHeight: "heading3",
8765
- fontWeight: "medium",
8766
- mt: 0,
8767
- mb: "x1"
8768
- };
8769
- var Heading4 = Text.withComponent("h4");
8770
- Heading4.defaultProps = {
8771
- fontSize: "heading4",
8772
- lineHeight: "heading4",
8773
- fontWeight: "bold",
8774
- mt: 0,
8775
- mb: "x1"
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 StatusIndicatorColours = function StatusIndicatorColours(theme) {
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
- borderColor: theme.colors.white,
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
- }, getStatusIndicatorColours(type, theme));
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;