@semcore/button 5.44.0-prerelease.4 → 5.44.0-prerelease.5
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/lib/cjs/component/Button/Button.js +166 -64
- package/lib/cjs/component/Button/Button.js.map +1 -1
- package/lib/cjs/component/Button/Button.type.js.map +1 -1
- package/lib/cjs/component/{AbstractButton → Button}/SpinButton.js +3 -4
- package/lib/cjs/component/Button/SpinButton.js.map +1 -0
- package/lib/cjs/component/Button/button.shadow.css +1 -9
- package/lib/cjs/component/ButtonLink/ButtonLink.js +35 -68
- package/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/cjs/component/ButtonLink/ButtonLink.type.js.map +1 -1
- package/lib/cjs/component/ButtonLink/buttonLink.shadow.css +11 -150
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/component/Button/Button.js +163 -57
- package/lib/es6/component/Button/Button.js.map +1 -1
- package/lib/es6/component/Button/Button.type.js.map +1 -1
- package/lib/es6/component/{AbstractButton → Button}/SpinButton.js +1 -1
- package/lib/es6/component/Button/SpinButton.js.map +1 -0
- package/lib/es6/component/Button/button.shadow.css +1 -9
- package/lib/es6/component/ButtonLink/ButtonLink.js +34 -65
- package/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/es6/component/ButtonLink/ButtonLink.type.js.map +1 -1
- package/lib/es6/component/ButtonLink/buttonLink.shadow.css +11 -150
- package/lib/es6/index.js +1 -2
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/component/Button/Button.mjs +142 -56
- package/lib/esm/component/Button/Button.type.mjs +1 -0
- package/lib/esm/component/{AbstractButton → Button}/SpinButton.mjs +2 -3
- package/lib/esm/component/Button/button.shadow.css +1 -9
- package/lib/esm/component/ButtonLink/ButtonLink.mjs +33 -61
- package/lib/esm/component/ButtonLink/ButtonLink.type.mjs +1 -0
- package/lib/esm/component/ButtonLink/buttonLink.shadow.css +11 -150
- package/lib/esm/index.mjs +3 -2
- package/lib/types/component/Button/Button.d.ts +28 -1
- package/lib/types/component/Button/Button.type.d.ts +40 -39
- package/lib/types/component/{AbstractButton → Button}/SpinButton.d.ts +2 -2
- package/lib/types/component/ButtonLink/ButtonLink.d.ts +1 -1
- package/lib/types/component/ButtonLink/ButtonLink.type.d.ts +15 -21
- package/lib/types/index.d.ts +1 -2
- package/package.json +7 -7
- package/lib/cjs/component/AbstractButton/AbstractButton.js +0 -182
- package/lib/cjs/component/AbstractButton/AbstractButton.js.map +0 -1
- package/lib/cjs/component/AbstractButton/AbstractButton.type.js +0 -2
- package/lib/cjs/component/AbstractButton/AbstractButton.type.js.map +0 -1
- package/lib/cjs/component/AbstractButton/SpinButton.js.map +0 -1
- package/lib/es6/component/AbstractButton/AbstractButton.js +0 -175
- package/lib/es6/component/AbstractButton/AbstractButton.js.map +0 -1
- package/lib/es6/component/AbstractButton/AbstractButton.type.js +0 -2
- package/lib/es6/component/AbstractButton/AbstractButton.type.js.map +0 -1
- package/lib/es6/component/AbstractButton/SpinButton.js.map +0 -1
- package/lib/esm/component/AbstractButton/AbstractButton.mjs +0 -152
- package/lib/types/component/AbstractButton/AbstractButton.d.ts +0 -24
- package/lib/types/component/AbstractButton/AbstractButton.type.d.ts +0 -39
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -9,87 +8,55 @@ exports.ButtonLink = void 0;
|
|
|
9
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
+
var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
|
|
12
12
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
14
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var
|
|
16
|
-
var
|
|
14
|
+
var _core = require("@semcore/core");
|
|
15
|
+
var _link = _interopRequireDefault(require("@semcore/link"));
|
|
17
16
|
var _react = _interopRequireDefault(require("react"));
|
|
18
|
-
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
19
|
-
var _flexBox = require("@semcore/flex-box");
|
|
20
|
-
var _AbstractButton2 = require("../AbstractButton/AbstractButton");
|
|
21
|
-
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/resolveColorEnhance"));
|
|
22
17
|
/*!__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
23
|
-
var style = (
|
|
18
|
+
var style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SButtonLink_prbrc_gg_{border:0;font-family:inherit}.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-link, rgb(35, 95, 226))}.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_.__active_prbrc_gg_:not(.__color_prbrc_gg_),.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_:not(.__color_prbrc_gg_):active{color:var(--intergalactic-text-link-hover-active, rgb(33, 89, 215))}@media (hover:hover){.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_:not(.__color_prbrc_gg_):hover{color:var(--intergalactic-text-link-hover-active, rgb(33, 89, 215))}}.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-hint, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0%)){.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-hint, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-hint, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_.__active_prbrc_gg_:not(.__color_prbrc_gg_),.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_):active{color:var(--intergalactic-text-hint-hover-active, rgba(0, 3, 0, 0.605))}@media (hover:hover){.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_):hover{color:var(--intergalactic-text-hint-hover-active, rgba(0, 3, 0, 0.605))}}.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_ .___SText_prbrc_gg_{text-decoration-style:dashed;text-decoration-color:currentColor}", /*__inner_css_end__*/"prbrc_gg_"),
|
|
24
19
|
/*__reshadow_css_end__*/
|
|
25
20
|
{
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"_size_200": "_size_200_ewssl_gg_",
|
|
33
|
-
"_size_300": "_size_300_ewssl_gg_",
|
|
34
|
-
"_size_400": "_size_400_ewssl_gg_",
|
|
35
|
-
"_size_500": "_size_500_ewssl_gg_",
|
|
36
|
-
"_size_600": "_size_600_ewssl_gg_",
|
|
37
|
-
"_size_700": "_size_700_ewssl_gg_",
|
|
38
|
-
"_size_800": "_size_800_ewssl_gg_",
|
|
39
|
-
"__SText": "___SText_ewssl_gg_",
|
|
40
|
-
"_active": "__active_ewssl_gg_",
|
|
41
|
-
"_enableVisited": "__enableVisited_ewssl_gg_",
|
|
42
|
-
"_use_secondary": "_use_secondary_ewssl_gg_",
|
|
43
|
-
"_text-color": "__text-color_ewssl_gg_",
|
|
44
|
-
"--text-color": "--text-color_ewssl"
|
|
21
|
+
"__SButtonLink": "___SButtonLink_prbrc_gg_",
|
|
22
|
+
"_use_secondary": "_use_secondary_prbrc_gg_",
|
|
23
|
+
"__SText": "___SText_prbrc_gg_",
|
|
24
|
+
"_use_primary": "_use_primary_prbrc_gg_",
|
|
25
|
+
"_color": "__color_prbrc_gg_",
|
|
26
|
+
"_active": "__active_prbrc_gg_"
|
|
45
27
|
});
|
|
46
|
-
var
|
|
47
|
-
keyboardFocused: (0, _keyboardFocusEnhance["default"])(),
|
|
48
|
-
resolveColor: (0, _resolveColorEnhance["default"])()
|
|
49
|
-
};
|
|
50
|
-
var RootButtonLink = /*#__PURE__*/function (_AbstractButton) {
|
|
51
|
-
(0, _inherits2["default"])(RootButtonLink, _AbstractButton);
|
|
52
|
-
var _super = (0, _createSuper2["default"])(RootButtonLink);
|
|
28
|
+
var RootButtonLink = /*#__PURE__*/function (_Component) {
|
|
53
29
|
function RootButtonLink() {
|
|
54
30
|
(0, _classCallCheck2["default"])(this, RootButtonLink);
|
|
55
|
-
return
|
|
31
|
+
return (0, _callSuper2["default"])(this, RootButtonLink, arguments);
|
|
56
32
|
}
|
|
57
|
-
(0,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
33
|
+
(0, _inherits2["default"])(RootButtonLink, _Component);
|
|
34
|
+
return (0, _createClass2["default"])(RootButtonLink, [{
|
|
35
|
+
key: "render",
|
|
36
|
+
value: function render() {
|
|
37
|
+
var _ref = this.asProps,
|
|
38
|
+
_ref2;
|
|
39
|
+
var SButtonLink = _link["default"];
|
|
40
|
+
var disabled = this.asProps.disabled;
|
|
41
|
+
return _ref2 = (0, _core.sstyled)(style), /*#__PURE__*/_react["default"].createElement(SButtonLink, _ref2.cn("SButtonLink", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
42
|
+
"tag": 'button',
|
|
43
|
+
"type": 'button',
|
|
44
|
+
"use:disabled": disabled,
|
|
45
|
+
"use:tabIndex": 0
|
|
46
|
+
}, _ref))));
|
|
64
47
|
}
|
|
65
48
|
}]);
|
|
66
|
-
|
|
67
|
-
}(_AbstractButton2.AbstractButton);
|
|
49
|
+
}(_core.Component);
|
|
68
50
|
(0, _defineProperty2["default"])(RootButtonLink, "displayName", 'ButtonLink');
|
|
69
|
-
(0, _defineProperty2["default"])(RootButtonLink, "enhance", Object.values(enhance));
|
|
70
51
|
(0, _defineProperty2["default"])(RootButtonLink, "style", style);
|
|
71
52
|
(0, _defineProperty2["default"])(RootButtonLink, "defaultProps", {
|
|
72
|
-
use: 'primary'
|
|
53
|
+
use: 'primary',
|
|
54
|
+
size: 200
|
|
73
55
|
});
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"tag": 'span'
|
|
80
|
-
}, _ref))));
|
|
81
|
-
}
|
|
82
|
-
function Addon(props) {
|
|
83
|
-
var _ref2 = arguments[0],
|
|
84
|
-
_ref4;
|
|
85
|
-
var SAddon = _flexBox.Box;
|
|
86
|
-
return _ref4 = (0, _core.sstyled)(props.styles), /*#__PURE__*/_react["default"].createElement(SAddon, _ref4.cn("SAddon", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
|
87
|
-
"tag": 'span'
|
|
88
|
-
}, _ref2))));
|
|
89
|
-
}
|
|
90
|
-
var ButtonLink = (0, _core["default"])(RootButtonLink, {
|
|
91
|
-
Text: Text,
|
|
92
|
-
Addon: Addon
|
|
56
|
+
var ButtonLink = exports.ButtonLink = (0, _core.createComponent)(RootButtonLink, {
|
|
57
|
+
Text: _link["default"].Text,
|
|
58
|
+
Addon: _link["default"].Addon
|
|
59
|
+
}, {
|
|
60
|
+
parent: _link["default"]
|
|
93
61
|
});
|
|
94
|
-
exports.ButtonLink = ButtonLink;
|
|
95
62
|
//# sourceMappingURL=ButtonLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.js","names":["_core","
|
|
1
|
+
{"version":3,"file":"ButtonLink.js","names":["_core","require","_link","_interopRequireDefault","_react","style","sstyled","insert","RootButtonLink","_Component","_classCallCheck2","_callSuper2","arguments","_inherits2","_createClass2","key","value","render","_ref","asProps","_ref2","SButtonLink","Link","disabled","createElement","cn","_objectSpread2","assignProps","Component","_defineProperty2","use","size","ButtonLink","exports","createComponent","Text","Addon","parent"],"sources":["../../../../src/component/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import { createComponent, sstyled, Root, Component } from '@semcore/core';\nimport Link from '@semcore/link';\nimport React from 'react';\n\nimport style from './buttonLink.shadow.css';\nimport type { ButtonLinkComponent, ButtonLinkProps } from './ButtonLink.type';\n\nclass RootButtonLink extends Component<ButtonLinkProps> {\n static displayName = 'ButtonLink';\n static style = style;\n static defaultProps = {\n use: 'primary',\n size: 200,\n };\n\n render(): React.ReactNode {\n const SButtonLink = Root;\n const { disabled } = this.asProps;\n\n return sstyled(style)(\n <SButtonLink\n render={Link}\n tag='button'\n type='button'\n use:disabled={disabled}\n use:tabIndex={0}\n />,\n );\n }\n}\n\nexport const ButtonLink = createComponent(RootButtonLink, {\n Text: Link.Text,\n Addon: Link.Addon,\n}, {\n parent: Link,\n}) as ButtonLinkComponent;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAA0B;AAAA,IAAAI,KAAA,8BAAAL,KAAA,CAAAM,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAKpBC,cAAc,0BAAAC,UAAA;EAAA,SAAAD,eAAA;IAAA,IAAAE,gBAAA,mBAAAF,cAAA;IAAA,WAAAG,WAAA,mBAAAH,cAAA,EAAAI,SAAA;EAAA;EAAA,IAAAC,UAAA,aAAAL,cAAA,EAAAC,UAAA;EAAA,WAAAK,aAAA,aAAAN,cAAA;IAAAO,GAAA;IAAAC,KAAA,EAQlB,SAAAC,MAAMA,CAAA,EAAoB;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACxB,IAAMC,WAAW,GAKLC,gBAAI;MAJhB,IAAQC,QAAQ,GAAK,IAAI,CAACJ,OAAO,CAAzBI,QAAQ;MAEhB,OAAAH,KAAA,GAAO,IAAAd,aAAO,EAACD,KAAK,CAAC,eACnBD,MAAA,YAAAoB,aAAA,CAACH,WAAW,EAAAD,KAAA,CAAAK,EAAA,oBAAAC,cAAA,qBAAA1B,KAAA,CAAA2B,WAAA;QAAA,OAEN,QAAQ;QAAA,QACP,QAAQ;QAAA,gBACCJ,QAAQ;QAAA,gBACR;MAAC,GAAAL,IAAA,GAChB,CAAC;IAEN;EAAC;AAAA,EArB0BU,eAAS;AAAA,IAAAC,gBAAA,aAAhCrB,cAAc,iBACG,YAAY;AAAA,IAAAqB,gBAAA,aAD7BrB,cAAc,WAEHH,KAAK;AAAA,IAAAwB,gBAAA,aAFhBrB,cAAc,kBAGI;EACpBsB,GAAG,EAAE,SAAS;EACdC,IAAI,EAAE;AACR,CAAC;AAkBI,IAAMC,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,qBAAe,EAAC1B,cAAc,EAAE;EACxD2B,IAAI,EAAEb,gBAAI,CAACa,IAAI;EACfC,KAAK,EAAEd,gBAAI,CAACc;AACd,CAAC,EAAE;EACDC,MAAM,EAAEf;AACV,CAAC,CAAwB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.type.js","names":[],"sources":["../../../../src/component/ButtonLink/ButtonLink.type.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"ButtonLink.type.js","names":[],"sources":["../../../../src/component/ButtonLink/ButtonLink.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type { LinkProps } from '@semcore/link';\nimport type { NSText } from '@semcore/typography';\n\nimport type { ButtonContext } from '../Button/Button.type';\n\nexport type ButtonLinkProps = Intergalactic.InternalTypings.EfficientOmit<LinkProps, 'enableVisited'> & {\n /**\n * Button link type\n * @default primary\n */\n use?: 'primary' | 'secondary';\n};\n\nexport type ButtonLinkTextProps = NSText.Props;\n\nexport type ButtonLinkAddonProps = BoxProps;\n\nexport type ButtonLinkChildren = {\n Text: Intergalactic.Component<'span', ButtonLinkTextProps>;\n Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;\n};\n\nexport type ButtonLinkComponent = Intergalactic.Component<\n 'button',\n ButtonLinkProps,\n ButtonContext\n> & ButtonLinkChildren;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,70 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
font-family: inherit;
|
|
4
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
5
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
6
|
-
line-height: normal;
|
|
7
|
-
position: relative;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
text-decoration: none;
|
|
1
|
+
SButtonLink {
|
|
10
2
|
border: none;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
box-shadow: none;
|
|
14
|
-
-webkit-tap-highlight-color: transparent;
|
|
15
|
-
outline: 0;
|
|
16
|
-
background: none;
|
|
17
|
-
transition: color 0.15s ease-in-out;
|
|
18
|
-
|
|
19
|
-
&:active,
|
|
20
|
-
&:hover,
|
|
21
|
-
&:focus {
|
|
22
|
-
outline: 0;
|
|
23
|
-
text-decoration: none;
|
|
24
|
-
}
|
|
3
|
+
font-family: inherit;
|
|
4
|
+
}
|
|
25
5
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
padding: 0;
|
|
29
|
-
}
|
|
6
|
+
SButtonLink[use='primary']:not([color]) {
|
|
7
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
30
8
|
|
|
31
9
|
&[active],
|
|
32
|
-
&:
|
|
33
|
-
&:
|
|
10
|
+
&:active,
|
|
11
|
+
&:hover {
|
|
34
12
|
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
35
|
-
|
|
36
|
-
& SText {
|
|
37
|
-
border-color: currentColor;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&[enableVisited]:visited,
|
|
42
|
-
&[enableVisited]:visited:hover {
|
|
43
|
-
color: var(--intergalactic-text-link-visited, oklch(0.53 0.26 296));
|
|
44
13
|
}
|
|
45
|
-
|
|
46
|
-
SText {
|
|
47
|
-
border-bottom-width: 1px;
|
|
48
|
-
border-bottom-style: solid;
|
|
49
|
-
border-color: transparent;
|
|
50
|
-
transition: border-bottom-color 0.15s ease-in-out;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
SButton[keyboardFocused] {
|
|
55
|
-
outline-color: var(--intergalactic-keyboard-focus-outline, oklch(0.424 0.269 264.2 / 0.469));
|
|
56
|
-
outline-style: solid;
|
|
57
|
-
outline-width: 3px;
|
|
58
14
|
}
|
|
59
15
|
|
|
60
|
-
|
|
61
|
-
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
62
|
-
cursor: default;
|
|
63
|
-
/* Disable link interactions */
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
SButton[use='secondary'] {
|
|
16
|
+
SButtonLink[use='secondary']:not([color]) {
|
|
68
17
|
color: var(--intergalactic-text-hint, oklch(0.088 0.026 147.7 / 0.583));
|
|
69
18
|
|
|
70
19
|
&[active],
|
|
@@ -72,97 +21,9 @@ SButton[use='secondary'] {
|
|
|
72
21
|
&:hover {
|
|
73
22
|
color: var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
74
23
|
}
|
|
75
|
-
|
|
76
|
-
SText {
|
|
77
|
-
border-bottom-width: 1px;
|
|
78
|
-
border-bottom-style: dashed;
|
|
79
|
-
border-color: currentColor;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
SInner {
|
|
84
|
-
display: inline-flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
height: 100%;
|
|
88
|
-
width: 100%;
|
|
89
24
|
}
|
|
90
25
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
align-items: center;
|
|
95
|
-
vertical-align: middle;
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
SButton SAddon {
|
|
100
|
-
&:not(:only-child):first-child {
|
|
101
|
-
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&:not(:only-child):last-child {
|
|
105
|
-
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
SButton[text-color] {
|
|
110
|
-
color: var(--text-color);
|
|
111
|
-
|
|
112
|
-
&[active],
|
|
113
|
-
&:hover,
|
|
114
|
-
&:active {
|
|
115
|
-
color: var(--text-color);
|
|
116
|
-
filter: brightness(0.8);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
SButton[size='100'] {
|
|
121
|
-
font-size: var(--intergalactic-fs-100, 12px);
|
|
122
|
-
line-height: var(--intergalactic-lh-100, 133%);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
SButton[size='200'] {
|
|
126
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
127
|
-
line-height: var(--intergalactic-lh-200, 142%);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
SButton[size='300'] {
|
|
131
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
132
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
SButton[size='400'] {
|
|
136
|
-
font-size: var(--intergalactic-fs-400, 20px);
|
|
137
|
-
line-height: var(--intergalactic-lh-400, 120%);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
SButton[size='500'] {
|
|
141
|
-
font-size: var(--intergalactic-fs-500, 24px);
|
|
142
|
-
line-height: var(--intergalactic-lh-500, 117%);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
SButton[size='600'] {
|
|
146
|
-
font-size: var(--intergalactic-fs-600, 32px);
|
|
147
|
-
line-height: var(--intergalactic-lh-600, 125%);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
SButton[size='700'] {
|
|
151
|
-
font-size: var(--intergalactic-fs-700, 36px);
|
|
152
|
-
line-height: var(--intergalactic-lh-700, 110%);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
SButton[size='800'] {
|
|
156
|
-
font-size: var(--intergalactic-fs-800, 48px);
|
|
157
|
-
line-height: var(--intergalactic-lh-800, 117%);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@media (prefers-reduced-motion) {
|
|
161
|
-
SButton {
|
|
162
|
-
transition: none;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
SText {
|
|
166
|
-
transition: none;
|
|
167
|
-
}
|
|
26
|
+
SButtonLink[use='secondary'] SText {
|
|
27
|
+
text-decoration-style: dashed;
|
|
28
|
+
text-decoration-color: currentColor;
|
|
168
29
|
}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -10,7 +10,7 @@ var _exportNames = {
|
|
|
10
10
|
Object.defineProperty(exports, "MAP_USE_DEFAULT_THEME", {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function get() {
|
|
13
|
-
return
|
|
13
|
+
return _Button.MAP_USE_DEFAULT_THEME;
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "default", {
|
|
|
19
19
|
return _Button["default"];
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
|
-
var _Button =
|
|
22
|
+
var _Button = _interopRequireWildcard(require("./component/Button/Button"));
|
|
23
23
|
var _Button2 = require("./component/Button/Button.type");
|
|
24
24
|
Object.keys(_Button2).forEach(function (key) {
|
|
25
25
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -56,5 +56,4 @@ Object.keys(_ButtonLink2).forEach(function (key) {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
-
var _AbstractButton = require("./component/AbstractButton/AbstractButton");
|
|
60
59
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_Button","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Button","_interopRequireWildcard","require","_Button2","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_ButtonLink","_ButtonLink2"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, MAP_USE_DEFAULT_THEME } from './component/Button/Button';\nexport * from './component/Button/Button.type';\nexport * from './component/ButtonLink/ButtonLink';\nexport * from './component/ButtonLink/ButtonLink.type';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,QAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,QAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,QAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,WAAA,GAAAd,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAW,WAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,WAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,WAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,YAAA,GAAAf,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAY,YAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAU,YAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,YAAA,CAAAV,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|