@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 CHANGED
@@ -8543,79 +8543,87 @@
8543
8543
  }
8544
8544
  };
8545
8545
 
8546
- var prefix = "random-id-";
8547
- var randomId = 0;
8548
-
8549
- var generateId = function generateId() {
8550
- randomId += 1;
8551
- return prefix + randomId;
8552
- };
8553
-
8554
- var LoadingIcon = function LoadingIcon(_a) {
8555
- var _a$color = _a.color,
8556
- color = _a$color === void 0 ? "currentColor" : _a$color,
8557
- _a$size = _a.size,
8558
- size = _a$size === void 0 ? "24px" : _a$size;
8559
- _a.title;
8560
- var props = __rest(_a, ["color", "size", "title"]);
8561
-
8562
- var id = generateId();
8563
- return (
8564
- /*#__PURE__*/
8565
- // Modified svg By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL
8566
- React__default["default"].createElement("svg", Object.assign({
8567
- width: size,
8568
- height: size,
8569
- viewBox: "0 0 38 38",
8570
- xmlns: "http://www.w3.org/2000/svg"
8571
- }, props), /*#__PURE__*/React__default["default"].createElement("defs", null, /*#__PURE__*/React__default["default"].createElement("linearGradient", {
8572
- x1: "8.042%",
8573
- y1: "0%",
8574
- x2: "65.682%",
8575
- y2: "23.865%",
8576
- id: id
8577
- }, /*#__PURE__*/React__default["default"].createElement("stop", {
8578
- stopColor: color,
8579
- stopOpacity: "0",
8580
- offset: "0%"
8581
- }), /*#__PURE__*/React__default["default"].createElement("stop", {
8582
- stopColor: color,
8583
- stopOpacity: ".631",
8584
- offset: "63.146%"
8585
- }), /*#__PURE__*/React__default["default"].createElement("stop", {
8586
- stopColor: color,
8587
- offset: "100%"
8588
- }))), /*#__PURE__*/React__default["default"].createElement("g", {
8589
- fill: "none",
8590
- fillRule: "evenodd"
8591
- }, /*#__PURE__*/React__default["default"].createElement("g", {
8592
- transform: "translate(1 1)"
8593
- }, /*#__PURE__*/React__default["default"].createElement("path", {
8594
- d: "M36 18c0-9.94-8.06-18-18-18",
8595
- id: "Oval-2",
8596
- stroke: "url(#" + id + ")",
8597
- strokeWidth: "2"
8598
- }, /*#__PURE__*/React__default["default"].createElement("animateTransform", {
8599
- attributeName: "transform",
8600
- type: "rotate",
8601
- from: "0 18 18",
8602
- to: "360 18 18",
8603
- dur: "0.9s",
8604
- repeatCount: "indefinite"
8605
- })), /*#__PURE__*/React__default["default"].createElement("circle", {
8606
- fill: color,
8607
- cx: "36",
8608
- cy: "18",
8609
- r: "1"
8610
- }, /*#__PURE__*/React__default["default"].createElement("animateTransform", {
8611
- attributeName: "transform",
8612
- type: "rotate",
8613
- from: "0 18 18",
8614
- to: "360 18 18",
8615
- dur: "0.9s",
8616
- repeatCount: "indefinite"
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.withComponent("h1");
8769
- Heading1.defaultProps = {
8770
- fontSize: "heading1",
8771
- lineHeight: "heading1",
8772
- fontWeight: "light",
8773
- mt: 0,
8774
- mb: "x6"
8775
- };
8776
- var Heading2 = Text.withComponent("h2");
8777
- Heading2.defaultProps = {
8778
- fontSize: "heading2",
8779
- lineHeight: "heading2",
8780
- fontWeight: "normal",
8781
- mt: 0,
8782
- mb: "x2"
8783
- };
8784
- var Heading3 = Text.withComponent("h3");
8785
- Heading3.defaultProps = {
8786
- fontSize: "heading3",
8787
- lineHeight: "heading3",
8788
- fontWeight: "medium",
8789
- mt: 0,
8790
- mb: "x1"
8791
- };
8792
- var Heading4 = Text.withComponent("h4");
8793
- Heading4.defaultProps = {
8794
- fontSize: "heading4",
8795
- lineHeight: "heading4",
8796
- fontWeight: "bold",
8797
- mt: 0,
8798
- mb: "x1"
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 StatusIndicatorColours = function StatusIndicatorColours(theme) {
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
- borderColor: theme.colors.white,
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
- }, getStatusIndicatorColours(type, theme));
50132
+ }, statusIndicatorStyles(theme)[type]);
50085
50133
  });
50086
50134
  StatusIndicator.defaultProps = {
50087
50135
  type: StatusIndicatorValues.neutral,