@spothero/ui 14.5.0 → 14.5.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/CHANGELOG.md +4 -0
- package/CHANGELOG.tmp +3 -22
- package/package.json +1 -1
- package/styles/v2/components/Button/Button.jsx +1 -0
- package/styles/v2/components/Button/Button.styles.js +63 -1
- package/styles/v2/components/Button/stories/index.stories.js +17 -2
- package/v2/index-bundled.cjs.js +1 -1
- package/v2/index-bundled.cjs.js.map +1 -1
- package/v2/index-bundled.esm.js +1 -1
- package/v2/index-bundled.esm.js.map +1 -1
- package/v2/index-unbundled.cjs.js +63 -3
- package/v2/index-unbundled.cjs.js.map +1 -1
- package/v2/index-unbundled.esm.js +63 -3
- package/v2/index-unbundled.esm.js.map +1 -1
|
@@ -34360,6 +34360,15 @@ var disabledButtonHoverStyle = {
|
|
|
34360
34360
|
color: 'gray.dark'
|
|
34361
34361
|
}
|
|
34362
34362
|
};
|
|
34363
|
+
var destructiveButtonStyles = {
|
|
34364
|
+
bg: 'white',
|
|
34365
|
+
borderColor: 'red.default',
|
|
34366
|
+
color: 'red.default',
|
|
34367
|
+
_hover: _objectSpread$8({
|
|
34368
|
+
borderColor: 'red.800',
|
|
34369
|
+
color: 'red.800'
|
|
34370
|
+
}, disabledButtonHoverStyle)
|
|
34371
|
+
};
|
|
34363
34372
|
var variants$7 = {
|
|
34364
34373
|
primary: {
|
|
34365
34374
|
bg: 'primary.default',
|
|
@@ -34389,7 +34398,7 @@ var variants$7 = {
|
|
|
34389
34398
|
borderColor: 'gray.medium',
|
|
34390
34399
|
color: 'primary.default',
|
|
34391
34400
|
_hover: _objectSpread$8({
|
|
34392
|
-
borderColor: 'primary.
|
|
34401
|
+
borderColor: 'primary.600',
|
|
34393
34402
|
color: 'primary.600'
|
|
34394
34403
|
}, disabledButtonHoverStyle)
|
|
34395
34404
|
},
|
|
@@ -34448,7 +34457,54 @@ var variants$7 = {
|
|
|
34448
34457
|
opacity: '.7'
|
|
34449
34458
|
}
|
|
34450
34459
|
}
|
|
34451
|
-
}
|
|
34460
|
+
},
|
|
34461
|
+
tertiary: {
|
|
34462
|
+
bg: 'none',
|
|
34463
|
+
borderWidth: 'none',
|
|
34464
|
+
borderRadius: 'unset',
|
|
34465
|
+
color: 'primary.default',
|
|
34466
|
+
textDecoration: 'underline',
|
|
34467
|
+
h: 'unset',
|
|
34468
|
+
m: 'unset',
|
|
34469
|
+
minW: 'unset',
|
|
34470
|
+
p: 'unset',
|
|
34471
|
+
lineHeight: 1,
|
|
34472
|
+
_disabled: {
|
|
34473
|
+
bg: 'none',
|
|
34474
|
+
color: 'gray.dark'
|
|
34475
|
+
},
|
|
34476
|
+
_hover: {
|
|
34477
|
+
color: 'primary.600',
|
|
34478
|
+
_disabled: {
|
|
34479
|
+
color: 'gray.dark'
|
|
34480
|
+
}
|
|
34481
|
+
}
|
|
34482
|
+
},
|
|
34483
|
+
tertiaryOnDark: {
|
|
34484
|
+
bg: 'none',
|
|
34485
|
+
borderRadius: 'unset',
|
|
34486
|
+
borderWidth: 'none',
|
|
34487
|
+
color: 'white',
|
|
34488
|
+
textDecoration: 'underline',
|
|
34489
|
+
h: 'unset',
|
|
34490
|
+
m: 'unset',
|
|
34491
|
+
minW: 'unset',
|
|
34492
|
+
p: 'unset',
|
|
34493
|
+
_disabled: {
|
|
34494
|
+
bg: 'none',
|
|
34495
|
+
color: 'white',
|
|
34496
|
+
opacity: '.7'
|
|
34497
|
+
},
|
|
34498
|
+
_hover: {
|
|
34499
|
+
color: 'white',
|
|
34500
|
+
opacity: '.8',
|
|
34501
|
+
_disabled: {
|
|
34502
|
+
opacity: '.7'
|
|
34503
|
+
}
|
|
34504
|
+
}
|
|
34505
|
+
},
|
|
34506
|
+
destructive: _objectSpread$8({}, destructiveButtonStyles),
|
|
34507
|
+
destructiveOnDark: _objectSpread$8({}, destructiveButtonStyles)
|
|
34452
34508
|
};
|
|
34453
34509
|
var defaultProps$5 = {
|
|
34454
34510
|
size: null
|
|
@@ -34469,6 +34525,7 @@ var _default$P = merge__default['default'](theme.components.Button, {
|
|
|
34469
34525
|
|
|
34470
34526
|
reactHotLoader.register(baseStyle$8, "baseStyle", "/tmp/build/44cb8d9a/src/src/v2/components/Button/Button.styles.js");
|
|
34471
34527
|
reactHotLoader.register(disabledButtonHoverStyle, "disabledButtonHoverStyle", "/tmp/build/44cb8d9a/src/src/v2/components/Button/Button.styles.js");
|
|
34528
|
+
reactHotLoader.register(destructiveButtonStyles, "destructiveButtonStyles", "/tmp/build/44cb8d9a/src/src/v2/components/Button/Button.styles.js");
|
|
34472
34529
|
reactHotLoader.register(variants$7, "variants", "/tmp/build/44cb8d9a/src/src/v2/components/Button/Button.styles.js");
|
|
34473
34530
|
reactHotLoader.register(defaultProps$5, "defaultProps", "/tmp/build/44cb8d9a/src/src/v2/components/Button/Button.styles.js");
|
|
34474
34531
|
reactHotLoader.register(_default$P, "default", "/tmp/build/44cb8d9a/src/src/v2/components/Button/Button.styles.js");
|
|
@@ -34610,7 +34667,10 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
34610
34667
|
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
34611
34668
|
|
|
34612
34669
|
return /*#__PURE__*/React__default['default'].createElement(Button$1, _extends({
|
|
34613
|
-
iconSpacing: 2
|
|
34670
|
+
iconSpacing: 2,
|
|
34671
|
+
sx: {
|
|
34672
|
+
'text-underline-offset': '1px'
|
|
34673
|
+
}
|
|
34614
34674
|
}, props, (asAnchor || props.as === 'a') && anchorProps(isExternal), {
|
|
34615
34675
|
ref: ref
|
|
34616
34676
|
}));
|