sag_components 1.0.125 → 1.0.127

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.
@@ -81,9 +81,11 @@ var SegmentedButton = function SegmentedButton(_ref) {
81
81
  segmentWidth = width / options.length;
82
82
  }
83
83
  return /*#__PURE__*/_react.default.createElement(_SegmentedButtonStyle.ControlsContainer, {
84
+ id: "ControlsContainer",
84
85
  fontSize: fontSize,
85
86
  ref: controlRef
86
87
  }, /*#__PURE__*/_react.default.createElement(_SegmentedButtonStyle.Controls, {
88
+ id: "Controls",
87
89
  backgroundColor: backgroundColor,
88
90
  selectedSegmentColor: selectedSegmentColor,
89
91
  segmentRadius: segmentRadius,
@@ -92,6 +94,7 @@ var SegmentedButton = function SegmentedButton(_ref) {
92
94
  className: "controls ".concat(componentReady.current ? "ready" : "idle")
93
95
  }, optionsRef === null || optionsRef === void 0 ? void 0 : optionsRef.map(function (item, i) {
94
96
  return /*#__PURE__*/_react.default.createElement(_SegmentedButtonStyle.Segment, {
97
+ id: "Segment",
95
98
  key: item.id,
96
99
  backgroundColor: backgroundColor,
97
100
  selectedSegmentColor: selectedSegmentColor,
@@ -110,6 +113,7 @@ var SegmentedButton = function SegmentedButton(_ref) {
110
113
  },
111
114
  checked: i === activeIndex
112
115
  }), /*#__PURE__*/_react.default.createElement(_SegmentedButtonStyle.SegmentLabel, {
116
+ id: "SegmentLabel",
113
117
  selectedTextColor: selectedTextColor,
114
118
  unselectedTextColor: unselectedTextColor,
115
119
  segmentHeigth: heigth / 5,
@@ -8,12 +8,12 @@ exports.SegmentLabel = exports.Segment = exports.ControlsInput = exports.Control
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
11
- var ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex; \n font: ", "; \n margin: 100px 0 25px;\n --highlight-width: auto;\n --highlight-x-pos: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), function (props) {
11
+ var ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex; \n font: ", "; \n margin: 0;\n --highlight-width: auto;\n --highlight-x-pos: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), function (props) {
12
12
  var _props$fontSize;
13
13
  return (_props$fontSize = props.fontSize) === null || _props$fontSize === void 0 ? void 0 : _props$fontSize.toString().concat("", "px Lato, sans-serif");
14
14
  });
15
15
  exports.ControlsContainer = ControlsContainer;
16
- var Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n justify-content: space-between; \n background: ", ";\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: ", "; //12px\n // max-width: 500px; //use this to limit max lenght of the control \n padding: 6px; \n margin: auto;\n overflow: hidden;\n position: relative;\n &.controls::before {\n content: \"\";\n background: ", "; /* #3a9df9; #5465ff;*/\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: ", "; //12px\n width: var(--highlight-width);\n transform: translateX(var(--highlight-x-pos));\n position: absolute;\n top: 6px;\n bottom: 6px;\n left: 0;\n z-index: 0;\n }\n &.controls.ready::before {\n transition: transform 0.3s ease, width 0.3s ease;\n }\n"])), function (props) {
16
+ var Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n justify-content: space-between; \n background: ", ";\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: ", "; //12px\n // max-width: 500px; //use this to limit max lenght of the control \n padding: 6px; \n margin: auto;\n overflow: hidden;\n position: relative;\n &.controls::before {\n content: \"\";\n background: ", "; /* #3a9df9; #5465ff;*/\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: ", "; //12px\n width: var(--highlight-width);\n transform: translateX(var(--highlight-x-pos));\n position: absolute;\n top: 3px;\n bottom: 3px;\n left: 0; \n z-index: 0;\n }\n &.controls.ready::before {\n transition: transform 0.3s ease, width 0.3s ease;\n }\n"])), function (props) {
17
17
  return props.backgroundColor;
18
18
  }, function (props) {
19
19
  return props.controlRadius.toString().concat("", "px");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {