react-dialogger 1.1.65 → 1.1.66

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.
@@ -220,6 +220,7 @@ var DialogActionBase = /** @class */ (function (_super) {
220
220
  var label = (_g = ((_f = (_e = (_d = (_c = _this.props.dialogBaseComponent) === null || _c === void 0 ? void 0 : _c.dialogOptions) === null || _d === void 0 ? void 0 : _d.localText) === null || _e === void 0 ? void 0 : _e[converted]) !== null && _f !== void 0 ? _f : converted)) !== null && _g !== void 0 ? _g : 'Button';
221
221
  var initialIntents = props.dialogBaseComponent.dialogOptions.base.actions.initialIntents;
222
222
  var mergedIntents = __assign(__assign({}, exports.BASE_INTENTS), initialIntents);
223
+ console.log('DialogActionBase', initialIntents, mergedIntents, exports.BASE_INTENTS);
223
224
  _this.state = {
224
225
  coords: { x: -1, y: -1 },
225
226
  isRippling: false,
@@ -88,7 +88,12 @@ exports.default = React.forwardRef(function (_a, ref) {
88
88
  hexedColor = (0, Colorify_1.colorNameToHex)(hexedColor);
89
89
  }
90
90
  exclusive = (0, Colorify_1.getButtonColors)(hexedColor);
91
- // textColor = getLuminance(hexedColor);
91
+ console.log('Button_variant', variant);
92
+ if (variant === 'text') {
93
+ exclusive.backgroundColor = 'inherit';
94
+ exclusive.color = color; // exclusive.backgroundColor;
95
+ }
96
+ // textColor = getLuminance(hexedColor);
92
97
  // bgColor = hexToRGB(hexedColor, disabled ? .5 : 1);
93
98
  //
94
99
  // exclusive.color = textColor;
@@ -104,6 +109,7 @@ exports.default = React.forwardRef(function (_a, ref) {
104
109
  setCoords({ x: e.clientX - rect.left, y: e.clientY - rect.top });
105
110
  setTimeout(function () {
106
111
  onClick && onClick(e);
112
+ // setIsRippling(true);
107
113
  }, 200);
108
- }, style: __assign(__assign(__assign(__assign(__assign({}, baseStyle), style), { fontFamily: fontFamily }), exclusive), variant === 'text' ? { border: "none" } : null), children: [isRippling && (0, jsx_runtime_1.jsx)("span", { className: "ripple", style: { left: coords.x, top: coords.y } }), (0, jsx_runtime_1.jsx)("span", { className: "content", children: children(ref.current) })] }));
114
+ }, style: __assign(__assign(__assign(__assign(__assign({}, baseStyle), style), exclusive), { fontFamily: fontFamily }), variant === 'text' ? { border: "none" } : null), children: [isRippling && (0, jsx_runtime_1.jsx)("span", { className: "ripple", style: { left: coords.x, top: coords.y } }), (0, jsx_runtime_1.jsx)("span", { className: "content", children: children(ref.current) })] }));
109
115
  });
@@ -49,7 +49,7 @@ var DialogAction = /** @class */ (function () {
49
49
  this._name = name;
50
50
  var defaultOptions = {
51
51
  label: null,
52
- variant: 'contained',
52
+ variant: 'text',
53
53
  color: 'default',
54
54
  disabled: false,
55
55
  prevDisabled: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.65",
3
+ "version": "1.1.66",
4
4
  "description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
5
5
  "main": "index.js",
6
6
  "author": "Sueleyman Topaloglu",
@@ -21,6 +21,7 @@
21
21
  border-radius: 9999px;
22
22
  opacity: 0.5;
23
23
  animation: 0.9s ease 1 forwards ripple-effect;
24
+ background: rgba(255, 255, 255, 0.8);
24
25
  }
25
26
  .ripple-button .content {
26
27
  position: relative;