@helpdice/ui 2.1.5 → 2.1.9
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/auto-complete/index.js +2158 -17
- package/dist/button/button.d.ts +1 -1
- package/dist/button/index.js +73 -16
- package/dist/button/styles.d.ts +1 -0
- package/dist/carousal/index.js +73 -16
- package/dist/container/box.d.ts +42 -0
- package/dist/container/index.d.ts +2 -0
- package/dist/container/index.js +948 -0
- package/dist/copy-to-clipboard/clipboard.d.ts +14 -0
- package/dist/copy-to-clipboard/copy.d.ts +2 -0
- package/dist/copy-to-clipboard/index.d.ts +2 -0
- package/dist/copy-to-clipboard/index.js +1702 -0
- package/dist/copy-to-clipboard/toggle-selection.d.ts +1 -0
- package/dist/grid/index.d.ts +2 -3
- package/dist/grid/index.js +0 -1
- package/dist/html-renderer/index.js +35 -12
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15776 -15418
- package/dist/input/index.d.ts +4 -0
- package/dist/input/index.js +2162 -18
- package/dist/input/input-props.d.ts +1 -0
- package/dist/input/phone-input/phone.d.ts +13 -0
- package/dist/modal/index.js +73 -16
- package/dist/notetip/index.js +690 -0
- package/{esm/notetip/index.d.ts → dist/notetip/note-tip.d.ts} +2 -2
- package/dist/placeholder/index.js +643 -8
- package/dist/table/index.js +4370 -2163
- package/dist/text/child.d.ts +1 -0
- package/dist/text/index.js +686 -8
- package/dist/text/text.d.ts +1 -0
- package/esm/button/button.d.ts +1 -1
- package/esm/button/button.js +51 -5
- package/esm/button/styles.d.ts +1 -0
- package/esm/button/styles.js +22 -11
- package/esm/container/box.d.ts +42 -0
- package/esm/container/box.js +39 -0
- package/esm/container/index.d.ts +2 -0
- package/esm/container/index.js +2 -0
- package/esm/copy-to-clipboard/clipboard.d.ts +14 -0
- package/esm/copy-to-clipboard/clipboard.js +91 -0
- package/esm/copy-to-clipboard/copy.d.ts +2 -0
- package/esm/copy-to-clipboard/copy.js +105 -0
- package/esm/copy-to-clipboard/index.d.ts +2 -0
- package/esm/copy-to-clipboard/index.js +2 -0
- package/esm/copy-to-clipboard/toggle-selection.d.ts +1 -0
- package/esm/copy-to-clipboard/toggle-selection.js +31 -0
- package/esm/grid/index.d.ts +2 -3
- package/esm/grid/index.js +5 -3
- package/esm/index.d.ts +6 -6
- package/esm/index.js +7 -5
- package/esm/input/index.d.ts +4 -0
- package/esm/input/index.js +4 -0
- package/esm/input/input-field.js +12 -10
- package/esm/input/input-props.d.ts +1 -0
- package/esm/input/phone-input/phone.d.ts +13 -0
- package/esm/input/phone-input/phone.js +166 -0
- package/esm/notetip/index.js +2 -97
- package/{dist/notetip/index.d.ts → esm/notetip/note-tip.d.ts} +2 -2
- package/esm/notetip/note-tip.js +97 -0
- package/esm/table/table-body.js +2 -2
- package/esm/table/table-cell.js +1 -1
- package/esm/table/table-head.js +4 -2
- package/esm/table/table.js +0 -1
- package/esm/text/child.d.ts +1 -0
- package/esm/text/text.d.ts +1 -0
- package/esm/text/text.js +25 -3
- package/package.json +19 -19
- package/dist/currency-input/index.js +0 -862
- package/dist/phone-input/index.js +0 -2033
- package/dist/phone-input/phone.d.ts +0 -11
- package/esm/phone-input/phone.d.ts +0 -11
- package/esm/phone-input/phone.js +0 -161
- /package/dist/{currency-input → input/currency-input}/components/CurrencyInput.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/CurrencyInputProps.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/cleanValue.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/escapeRegExp.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/fixedDecimalValue.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/formatValue.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/getLocaleConfig.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/getSuffix.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/index.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/isNumber.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/padTrimValue.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/parseAbbrValue.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/removeInvalidChars.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/removeSeparators.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/components/utils/repositionCursor.d.ts +0 -0
- /package/dist/{currency-input → input/currency-input}/index.d.ts +0 -0
- /package/dist/{phone-input → input/phone-input}/index.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/CurrencyInput.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/CurrencyInput.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/CurrencyInputProps.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/CurrencyInputProps.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/addSeparators.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/cleanValue.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/cleanValue.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/escapeRegExp.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/escapeRegExp.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/fixedDecimalValue.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/fixedDecimalValue.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/formatValue.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/formatValue.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/getLocaleConfig.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/getLocaleConfig.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/getSuffix.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/getSuffix.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/index.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/index.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/isNumber.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/isNumber.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/padTrimValue.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/padTrimValue.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/parseAbbrValue.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/parseAbbrValue.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/removeInvalidChars.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/removeInvalidChars.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/removeSeparators.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/removeSeparators.js +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/repositionCursor.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/components/utils/repositionCursor.js +0 -0
- /package/esm/{currency-input → input/currency-input}/index.d.ts +0 -0
- /package/esm/{currency-input → input/currency-input}/index.js +0 -0
- /package/esm/{phone-input → input/phone-input}/index.d.ts +0 -0
- /package/esm/{phone-input → input/phone-input}/index.js +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputTypes } from '..';
|
|
3
|
+
type PhoneInputProps = {
|
|
4
|
+
onChange: (data: string) => void;
|
|
5
|
+
value?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
country?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
color?: InputTypes;
|
|
11
|
+
};
|
|
12
|
+
declare function PhoneInput({ onChange, value, country, placeholder, color: _color, children, fullWidth }: PhoneInputProps): React.JSX.Element;
|
|
13
|
+
export default PhoneInput;
|
package/dist/modal/index.js
CHANGED
|
@@ -1267,22 +1267,26 @@ var getButtonGhostColors = function getButtonGhostColors(palette, _color) {
|
|
|
1267
1267
|
secondary: {
|
|
1268
1268
|
bg: palette.background,
|
|
1269
1269
|
border: palette.foreground,
|
|
1270
|
-
color: palette.foreground
|
|
1270
|
+
color: palette.foreground,
|
|
1271
|
+
ripple: ''
|
|
1271
1272
|
},
|
|
1272
1273
|
success: {
|
|
1273
1274
|
bg: palette.background,
|
|
1274
1275
|
border: palette.success,
|
|
1275
|
-
color: palette.success
|
|
1276
|
+
color: palette.success,
|
|
1277
|
+
ripple: ''
|
|
1276
1278
|
},
|
|
1277
1279
|
warning: {
|
|
1278
1280
|
bg: palette.background,
|
|
1279
1281
|
border: palette.warning,
|
|
1280
|
-
color: palette.warning
|
|
1282
|
+
color: palette.warning,
|
|
1283
|
+
ripple: ''
|
|
1281
1284
|
},
|
|
1282
1285
|
error: {
|
|
1283
1286
|
bg: palette.background,
|
|
1284
1287
|
border: palette.error,
|
|
1285
|
-
color: palette.error
|
|
1288
|
+
color: palette.error,
|
|
1289
|
+
ripple: ''
|
|
1286
1290
|
}
|
|
1287
1291
|
};
|
|
1288
1292
|
return colors[_color] || null;
|
|
@@ -1295,38 +1299,45 @@ var getButtonColors = function getButtonColors(palette, props) {
|
|
|
1295
1299
|
"default": {
|
|
1296
1300
|
bg: palette.background,
|
|
1297
1301
|
border: palette.border,
|
|
1298
|
-
color: palette.accents_5
|
|
1302
|
+
color: palette.accents_5,
|
|
1303
|
+
ripple: palette.accents_1
|
|
1299
1304
|
},
|
|
1300
1305
|
secondary: {
|
|
1301
1306
|
bg: palette.foreground,
|
|
1302
1307
|
border: palette.foreground,
|
|
1303
|
-
color: palette.background
|
|
1308
|
+
color: palette.background,
|
|
1309
|
+
ripple: palette.accents_1
|
|
1304
1310
|
},
|
|
1305
1311
|
success: {
|
|
1306
1312
|
bg: palette.success,
|
|
1307
1313
|
border: palette.success,
|
|
1308
|
-
color: '#fff'
|
|
1314
|
+
color: '#fff',
|
|
1315
|
+
ripple: '#1f93ffff'
|
|
1309
1316
|
},
|
|
1310
1317
|
warning: {
|
|
1311
1318
|
bg: palette.warning,
|
|
1312
1319
|
border: palette.warning,
|
|
1313
|
-
color: '#fff'
|
|
1320
|
+
color: '#fff',
|
|
1321
|
+
ripple: '#ffca29ff'
|
|
1314
1322
|
},
|
|
1315
1323
|
error: {
|
|
1316
1324
|
bg: palette.error,
|
|
1317
1325
|
border: palette.error,
|
|
1318
|
-
color: '#fff'
|
|
1326
|
+
color: '#fff',
|
|
1327
|
+
ripple: '#ff5a55ff'
|
|
1319
1328
|
},
|
|
1320
1329
|
abort: {
|
|
1321
1330
|
bg: 'transparent',
|
|
1322
1331
|
border: 'transparent',
|
|
1323
|
-
color: palette.accents_5
|
|
1332
|
+
color: palette.accents_5,
|
|
1333
|
+
ripple: palette.accents_1
|
|
1324
1334
|
}
|
|
1325
1335
|
};
|
|
1326
1336
|
if (disabled) return {
|
|
1327
1337
|
bg: palette.accents_1,
|
|
1328
1338
|
border: palette.accents_2,
|
|
1329
|
-
color: '#ccc'
|
|
1339
|
+
color: '#ccc',
|
|
1340
|
+
ripple: ''
|
|
1330
1341
|
};
|
|
1331
1342
|
|
|
1332
1343
|
/**
|
|
@@ -1506,7 +1517,8 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1506
1517
|
}, [theme$1.palette, filteredProps]),
|
|
1507
1518
|
bg = _useMemo.bg,
|
|
1508
1519
|
border = _useMemo.border,
|
|
1509
|
-
color = _useMemo.color
|
|
1520
|
+
color = _useMemo.color,
|
|
1521
|
+
rippleColor = _useMemo.ripple;
|
|
1510
1522
|
var hover = React.useMemo(function () {
|
|
1511
1523
|
return getButtonHoverColors(theme$1.palette, filteredProps);
|
|
1512
1524
|
}, [theme$1.palette, filteredProps]);
|
|
@@ -1525,6 +1537,45 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1525
1537
|
setDripX(0);
|
|
1526
1538
|
setDripY(0);
|
|
1527
1539
|
};
|
|
1540
|
+
var createRipple = function createRipple(event) {
|
|
1541
|
+
var button = buttonRef.current;
|
|
1542
|
+
if (!button) return;
|
|
1543
|
+
var rect = button.getBoundingClientRect();
|
|
1544
|
+
var size = Math.max(rect.width, rect.height);
|
|
1545
|
+
var x = event.clientX - rect.left - size / 2;
|
|
1546
|
+
var y = event.clientY - rect.top - size / 2;
|
|
1547
|
+
var rippleCount = 1; // number of rings
|
|
1548
|
+
var rippleDelay = 500; // ms between each ripple
|
|
1549
|
+
var _loop = function _loop() {
|
|
1550
|
+
var ripple = document.createElement('span');
|
|
1551
|
+
Object.assign(ripple.style, {
|
|
1552
|
+
position: 'absolute',
|
|
1553
|
+
borderRadius: '50%',
|
|
1554
|
+
backgroundColor: rippleColor,
|
|
1555
|
+
width: "".concat(size, "px"),
|
|
1556
|
+
height: "".concat(size, "px"),
|
|
1557
|
+
left: "".concat(x, "px"),
|
|
1558
|
+
top: "".concat(y, "px"),
|
|
1559
|
+
pointerEvents: 'none',
|
|
1560
|
+
transform: 'scale(0)',
|
|
1561
|
+
opacity: '1',
|
|
1562
|
+
transition: "transform 600ms ease-out ".concat(i * rippleDelay, "ms, opacity 600ms ease-out ").concat(i * rippleDelay, "ms"),
|
|
1563
|
+
zIndex: 1
|
|
1564
|
+
});
|
|
1565
|
+
button.appendChild(ripple);
|
|
1566
|
+
|
|
1567
|
+
// Force reflow to start transition
|
|
1568
|
+
window.getComputedStyle(ripple).opacity;
|
|
1569
|
+
ripple.style.transform = 'scale(2.5)';
|
|
1570
|
+
ripple.style.opacity = '0';
|
|
1571
|
+
ripple.addEventListener('transitionend', function () {
|
|
1572
|
+
ripple.remove();
|
|
1573
|
+
});
|
|
1574
|
+
};
|
|
1575
|
+
for (var i = 0; i < rippleCount; i++) {
|
|
1576
|
+
_loop();
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1528
1579
|
var clickHandler = function clickHandler(event) {
|
|
1529
1580
|
if (disabled || loading) return;
|
|
1530
1581
|
var showDrip = !shadow && !ghost && effect;
|
|
@@ -1535,6 +1586,9 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1535
1586
|
setDripX(event.clientX - rect.left);
|
|
1536
1587
|
setDripY(event.clientY - rect.top);
|
|
1537
1588
|
}
|
|
1589
|
+
if (shadow) {
|
|
1590
|
+
createRipple(event);
|
|
1591
|
+
}
|
|
1538
1592
|
onClick && onClick(event);
|
|
1539
1593
|
};
|
|
1540
1594
|
var childrenWithIcon = React.useMemo(function () {
|
|
@@ -1545,13 +1599,16 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1545
1599
|
}, [auto, children, icon, iconRight]);
|
|
1546
1600
|
var paddingLeft = auto ? SCALES.pl(1.15) : SCALES.pl(1.375),
|
|
1547
1601
|
paddingRight = auto ? SCALES.pr(1.15) : SCALES.pr(1.375);
|
|
1602
|
+
|
|
1603
|
+
// If shadow provided is string then value other default
|
|
1604
|
+
var btnShadow = typeof shadow === 'string' ? shadow : shadow ? theme$1.shadows.level.z2 : 'none';
|
|
1548
1605
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1549
1606
|
ref: buttonRef,
|
|
1550
1607
|
type: type,
|
|
1551
1608
|
disabled: disabled,
|
|
1552
1609
|
onClick: clickHandler
|
|
1553
1610
|
}, props, {
|
|
1554
|
-
className: _JSXStyle.dynamic([["
|
|
1611
|
+
className: _JSXStyle.dynamic([["905110486", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor, events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', className) || "")
|
|
1555
1612
|
}), loading && /*#__PURE__*/React.createElement(ButtonLoading, {
|
|
1556
1613
|
color: color
|
|
1557
1614
|
}), childrenWithIcon, dripShow && /*#__PURE__*/React.createElement(ButtonDrip, {
|
|
@@ -1560,9 +1617,9 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1560
1617
|
color: dripColor,
|
|
1561
1618
|
onCompleted: dripCompletedHandle
|
|
1562
1619
|
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
1563
|
-
id: "
|
|
1564
|
-
dynamic: [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, border, cursor, events, shadow ?
|
|
1565
|
-
}, ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:inline-block;line-height:".concat(SCALES.height(2.5), ";border-radius:").concat(round ? '50%' : theme$1.layout.radius, ";font-weight:400;font-size:").concat(SCALES.font(0.875), ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none;text-transform:capitalize;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;white-space:nowrap;-webkit-transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;position:relative;overflow:hidden;color:").concat(color, ";background-color:").concat(bg, ";border:1px solid ").concat(border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ?
|
|
1620
|
+
id: "905110486",
|
|
1621
|
+
dynamic: [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor, events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']
|
|
1622
|
+
}, ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:inline-block;line-height:".concat(SCALES.height(2.5), ";border-radius:").concat(round ? '50%' : theme$1.layout.radius, ";font-weight:400;font-size:").concat(SCALES.font(0.875), ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none;text-transform:capitalize;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;white-space:nowrap;-webkit-transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;position:relative;overflow:hidden;color:").concat(color, ";background-color:").concat(bg, ";border:1px solid ").concat(shadow ? 'transparent' : border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ? btnShadow : 'none', ";--helpdice-ui-button-icon-padding:").concat(SCALES.pl(0.727), ";--helpdice-ui-button-height:").concat(SCALES.height(2.5), ";--helpdice-ui-button-color:").concat(color, ";--helpdice-ui-button-bg:").concat(bg, ";min-width:").concat(auto ? 'min-content' : SCALES.width(10.5), ";width:").concat(auto ? 'auto' : 'initial', ";height:").concat(SCALES.height(2.5), ";padding:").concat(SCALES.pt(0), " ").concat(paddingRight, " ").concat(SCALES.pb(0), " ").concat(paddingLeft, ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.btn.__jsx-style-dynamic-selector:hover,.btn.__jsx-style-dynamic-selector:focus{color:").concat(hover.color, ";--helpdice-ui-button-color:").concat(hover.color, ";background-color:").concat(hover.bg, ";border-color:").concat(hover.border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(btnShadow, ";}.btn.__jsx-style-dynamic-selector .text{position:relative;z-index:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;line-height:inherit;top:-1px;}.btn.__jsx-style-dynamic-selector .text p,.btn.__jsx-style-dynamic-selector .text pre,.btn.__jsx-style-dynamic-selector .text div{margin:0;}.ripple.__jsx-style-dynamic-selector{position:absolute;border-radius:50%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;background-color:rgba(0,0,0,0.3);pointer-events:none;z-index:1;}@-webkit-keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}@keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}")));
|
|
1566
1623
|
});
|
|
1567
1624
|
ButtonComponent.displayName = 'Button';
|
|
1568
1625
|
var Button = withScale(ButtonComponent);
|