@xfers/design-system 4.4.3-dev.0e54c27f6c → 4.4.3-dev.71b2a74e62

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.
@@ -10,9 +10,7 @@ var theme_1 = require("src/theme/theme");
10
10
  var Typography_1 = require("src/constants/Typography/Typography");
11
11
  var Note = function (_a) {
12
12
  var title = _a.title, children = _a.children;
13
- // Check if children is an array to determine if it should be a list
14
- var isArray = Array.isArray(children);
15
- var isList = isArray && children.length > 1;
13
+ var isList = Array.isArray(children) && children.length > 1;
16
14
  var StyledNote = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n background: ", ";\n padding: 4px;\n border-radius: 8px;\n "], ["\n width: 100%;\n background: ", ";\n padding: 4px;\n border-radius: 8px;\n "])), theme_1.straitsXTheme.color.surface.subduePositive);
17
15
  var StyledContainer = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ", ";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ", ";\n "], ["\n position: relative;\n ::before {\n content: '';\n height: 100%;\n width: 5px;\n background: ", ";\n border-radius: 5px;\n position: absolute;\n left: 0;\n }\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 5px 0 5px 15px;\n gap: ", ";\n "])), theme_1.straitsXTheme.color.status.positive, title ? '5px' : '0px');
18
16
  return (react_1.default.createElement(StyledNote, null,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Note/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+BAAyB;AACzB,0CAAoC;AACpC,yCAA+C;AAC/C,kEAAgE;AAOhE,IAAM,IAAI,GAAG,UAAC,EAA8B;QAA5B,KAAK,WAAA,EAAE,QAAQ,cAAA;IAC7B,oEAAoE;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