@semcore/button 16.1.0-prerelease.3 → 16.1.0
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 +160 -50
- 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/Button/SpinButton.js.map +1 -0
- package/lib/cjs/component/ButtonLink/ButtonLink.js +29 -54
- 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 +10 -140
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/component/Button/Button.js +160 -49
- 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/Button/SpinButton.js.map +1 -0
- package/lib/es6/component/ButtonLink/ButtonLink.js +30 -56
- 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 +10 -140
- package/lib/es6/index.js +1 -2
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/component/Button/Button.mjs +140 -48
- package/lib/esm/component/Button/Button.type.mjs +1 -0
- package/lib/esm/component/{AbstractButton → Button}/SpinButton.mjs +1 -2
- package/lib/esm/component/ButtonLink/ButtonLink.mjs +30 -52
- package/lib/esm/component/ButtonLink/ButtonLink.type.mjs +1 -0
- package/lib/esm/component/ButtonLink/buttonLink.shadow.css +10 -140
- 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/ButtonLink/ButtonLink.type.d.ts +14 -19
- package/lib/types/index.d.ts +1 -2
- package/package.json +9 -9
- package/lib/cjs/component/AbstractButton/AbstractButton.js +0 -189
- 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 -184
- 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 -157
- package/lib/types/component/AbstractButton/AbstractButton.d.ts +0 -24
- package/lib/types/component/AbstractButton/AbstractButton.type.d.ts +0 -38
- /package/lib/cjs/component/{AbstractButton → Button}/SpinButton.js +0 -0
- /package/lib/es6/component/{AbstractButton → Button}/SpinButton.js +0 -0
- /package/lib/types/component/{AbstractButton → Button}/SpinButton.d.ts +0 -0
|
@@ -5,79 +5,53 @@ import _callSuper from "@babel/runtime/helpers/callSuper";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
import { sstyled as _sstyled } from "@semcore/core";
|
|
8
|
-
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
9
8
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
10
|
-
import { createComponent, sstyled, Root } from '@semcore/core';
|
|
11
|
-
import
|
|
12
|
-
import { Box } from '@semcore/flex-box';
|
|
9
|
+
import { createComponent, sstyled, Root, Component } from '@semcore/core';
|
|
10
|
+
import Link from '@semcore/link';
|
|
13
11
|
import React from 'react';
|
|
14
12
|
/*!__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
15
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
13
|
+
var style = (/*__reshadow_css_start__*/_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_"),
|
|
16
14
|
/*__reshadow_css_end__*/
|
|
17
15
|
{
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"_size_300": "_size_300_1642v_gg_",
|
|
25
|
-
"_size_400": "_size_400_1642v_gg_",
|
|
26
|
-
"_size_500": "_size_500_1642v_gg_",
|
|
27
|
-
"_size_600": "_size_600_1642v_gg_",
|
|
28
|
-
"_size_700": "_size_700_1642v_gg_",
|
|
29
|
-
"_size_800": "_size_800_1642v_gg_",
|
|
30
|
-
"__SText": "___SText_1642v_gg_",
|
|
31
|
-
"_active": "__active_1642v_gg_",
|
|
32
|
-
"_enableVisited": "__enableVisited_1642v_gg_",
|
|
33
|
-
"_use_secondary": "_use_secondary_1642v_gg_",
|
|
34
|
-
"_text-color": "__text-color_1642v_gg_",
|
|
35
|
-
"--text-color": "--text-color_1642v"
|
|
16
|
+
"__SButtonLink": "___SButtonLink_prbrc_gg_",
|
|
17
|
+
"_use_secondary": "_use_secondary_prbrc_gg_",
|
|
18
|
+
"__SText": "___SText_prbrc_gg_",
|
|
19
|
+
"_use_primary": "_use_primary_prbrc_gg_",
|
|
20
|
+
"_color": "__color_prbrc_gg_",
|
|
21
|
+
"_active": "__active_prbrc_gg_"
|
|
36
22
|
});
|
|
37
|
-
|
|
38
|
-
var enhance = {
|
|
39
|
-
resolveColor: resolveColorEnhance()
|
|
40
|
-
};
|
|
41
|
-
var RootButtonLink = /*#__PURE__*/function (_AbstractButton) {
|
|
23
|
+
var RootButtonLink = /*#__PURE__*/function (_Component) {
|
|
42
24
|
function RootButtonLink() {
|
|
43
25
|
_classCallCheck(this, RootButtonLink);
|
|
44
26
|
return _callSuper(this, RootButtonLink, arguments);
|
|
45
27
|
}
|
|
46
|
-
_inherits(RootButtonLink,
|
|
28
|
+
_inherits(RootButtonLink, _Component);
|
|
47
29
|
return _createClass(RootButtonLink, [{
|
|
48
|
-
key: "
|
|
49
|
-
value: function
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
30
|
+
key: "render",
|
|
31
|
+
value: function render() {
|
|
32
|
+
var _ref = this.asProps,
|
|
33
|
+
_ref2;
|
|
34
|
+
var SButtonLink = Link;
|
|
35
|
+
var disabled = this.asProps.disabled;
|
|
36
|
+
return _ref2 = sstyled(style), /*#__PURE__*/React.createElement(SButtonLink, _ref2.cn("SButtonLink", _objectSpread({}, _assignProps({
|
|
37
|
+
"tag": 'button',
|
|
38
|
+
"type": 'button',
|
|
39
|
+
"use:disabled": disabled,
|
|
40
|
+
"use:tabIndex": 0
|
|
41
|
+
}, _ref))));
|
|
54
42
|
}
|
|
55
43
|
}]);
|
|
56
|
-
}(
|
|
44
|
+
}(Component);
|
|
57
45
|
_defineProperty(RootButtonLink, "displayName", 'ButtonLink');
|
|
58
|
-
_defineProperty(RootButtonLink, "enhance", Object.values(enhance));
|
|
59
46
|
_defineProperty(RootButtonLink, "style", style);
|
|
60
47
|
_defineProperty(RootButtonLink, "defaultProps", {
|
|
61
|
-
use: 'primary'
|
|
48
|
+
use: 'primary',
|
|
49
|
+
size: 200
|
|
62
50
|
});
|
|
63
|
-
function Text(props) {
|
|
64
|
-
var _ref = arguments[0],
|
|
65
|
-
_ref3;
|
|
66
|
-
var SText = Box;
|
|
67
|
-
return _ref3 = sstyled(props.styles), /*#__PURE__*/React.createElement(SText, _ref3.cn("SText", _objectSpread({}, _assignProps({
|
|
68
|
-
"tag": 'span'
|
|
69
|
-
}, _ref))));
|
|
70
|
-
}
|
|
71
|
-
function Addon(props) {
|
|
72
|
-
var _ref2 = arguments[0],
|
|
73
|
-
_ref4;
|
|
74
|
-
var SAddon = Box;
|
|
75
|
-
return _ref4 = sstyled(props.styles), /*#__PURE__*/React.createElement(SAddon, _ref4.cn("SAddon", _objectSpread({}, _assignProps2({
|
|
76
|
-
"tag": 'span'
|
|
77
|
-
}, _ref2))));
|
|
78
|
-
}
|
|
79
51
|
export var ButtonLink = createComponent(RootButtonLink, {
|
|
80
|
-
Text: Text,
|
|
81
|
-
Addon: Addon
|
|
52
|
+
Text: Link.Text,
|
|
53
|
+
Addon: Link.Addon
|
|
54
|
+
}, {
|
|
55
|
+
parent: Link
|
|
82
56
|
});
|
|
83
57
|
//# sourceMappingURL=ButtonLink.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.js","names":["createComponent","sstyled","Root","
|
|
1
|
+
{"version":3,"file":"ButtonLink.js","names":["createComponent","sstyled","Root","Component","Link","React","style","_sstyled","insert","RootButtonLink","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","_ref2","SButtonLink","disabled","createElement","cn","_objectSpread","_assignProps","_defineProperty","use","size","ButtonLink","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,SAASA,eAAe,EAAEC,OAAO,EAAEC,IAAI,EAAEC,SAAS,QAAQ,eAAe;AACzE,OAAOC,IAAI,MAAM,eAAe;AAChC,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAKpBC,cAAc,0BAAAC,UAAA;EAAA,SAAAD,eAAA;IAAAE,eAAA,OAAAF,cAAA;IAAA,OAAAG,UAAA,OAAAH,cAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,cAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,cAAA;IAAAO,GAAA;IAAAC,KAAA,EAQlB,SAAAC,MAAMA,CAAA,EAAoB;MAAA,IAAAC,IAAA,QAAAC,OAAA;QAAAC,KAAA;MACxB,IAAMC,WAAW,GAKLlB,IAAI;MAJhB,IAAQmB,QAAQ,GAAK,IAAI,CAACH,OAAO,CAAzBG,QAAQ;MAEhB,OAAAF,KAAA,GAAOpB,OAAO,CAACK,KAAK,CAAC,eACnBD,KAAA,CAAAmB,aAAA,CAACF,WAAW,EAAAD,KAAA,CAAAI,EAAA,gBAAAC,aAAA,KAAAC,YAAA;QAAA,OAEN,QAAQ;QAAA,QACP,QAAQ;QAAA,gBACCJ,QAAQ;QAAA,gBACR;MAAC,GAAAJ,IAAA,GAChB,CAAC;IAEN;EAAC;AAAA,EArB0BhB,SAAS;AAAAyB,eAAA,CAAhCnB,cAAc,iBACG,YAAY;AAAAmB,eAAA,CAD7BnB,cAAc,WAEHH,KAAK;AAAAsB,eAAA,CAFhBnB,cAAc,kBAGI;EACpBoB,GAAG,EAAE,SAAS;EACdC,IAAI,EAAE;AACR,CAAC;AAkBH,OAAO,IAAMC,UAAU,GAAG/B,eAAe,CAACS,cAAc,EAAE;EACxDuB,IAAI,EAAE5B,IAAI,CAAC4B,IAAI;EACfC,KAAK,EAAE7B,IAAI,CAAC6B;AACd,CAAC,EAAE;EACDC,MAAM,EAAE9B;AACV,CAAC,CAAwB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.type.js","names":[],"sources":["../../../../src/component/ButtonLink/ButtonLink.type.ts"],"sourcesContent":["import type {
|
|
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,61 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
SButtonLink {
|
|
2
|
+
border: none;
|
|
3
3
|
font-family: inherit;
|
|
4
|
-
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
SButtonLink[use='primary']:not([color]) {
|
|
5
7
|
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;
|
|
10
|
-
border: none;
|
|
11
|
-
padding: 0;
|
|
12
|
-
margin: 0;
|
|
13
|
-
box-shadow: none;
|
|
14
|
-
-webkit-tap-highlight-color: transparent;
|
|
15
|
-
background: none;
|
|
16
|
-
transition: color 0.15s ease-in-out;
|
|
17
8
|
|
|
9
|
+
&[active],
|
|
18
10
|
&:active,
|
|
19
11
|
&:hover {
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&::-moz-focus-inner {
|
|
24
|
-
border: none;
|
|
25
|
-
padding: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&[active],
|
|
29
|
-
&:hover,
|
|
30
|
-
&:active {
|
|
31
12
|
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
32
|
-
|
|
33
|
-
& SText {
|
|
34
|
-
border-color: currentColor;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&[enableVisited]:visited,
|
|
39
|
-
&[enableVisited]:visited:hover {
|
|
40
|
-
color: var(--intergalactic-text-link-visited, oklch(0.53 0.26 296));
|
|
41
13
|
}
|
|
42
|
-
|
|
43
|
-
SText {
|
|
44
|
-
border-bottom-width: 1px;
|
|
45
|
-
border-bottom-style: solid;
|
|
46
|
-
border-color: transparent;
|
|
47
|
-
transition: border-bottom-color 0.15s ease-in-out;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
SButton[disabled] {
|
|
52
|
-
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
53
|
-
cursor: default;
|
|
54
|
-
/* Disable link interactions */
|
|
55
|
-
pointer-events: none;
|
|
56
14
|
}
|
|
57
15
|
|
|
58
|
-
|
|
16
|
+
SButtonLink[use='secondary']:not([color]) {
|
|
59
17
|
color: var(--intergalactic-text-hint, oklch(0.088 0.026 147.7 / 0.583));
|
|
60
18
|
|
|
61
19
|
&[active],
|
|
@@ -63,97 +21,9 @@ SButton[use='secondary'] {
|
|
|
63
21
|
&:hover {
|
|
64
22
|
color: var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
65
23
|
}
|
|
66
|
-
|
|
67
|
-
SText {
|
|
68
|
-
border-bottom-width: 1px;
|
|
69
|
-
border-bottom-style: dashed;
|
|
70
|
-
border-color: currentColor;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
SInner {
|
|
75
|
-
display: inline-flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
height: 100%;
|
|
79
|
-
width: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
SAddon {
|
|
83
|
-
display: inline-flex;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
pointer-events: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
SButton SAddon {
|
|
91
|
-
&:not(:only-child):first-child {
|
|
92
|
-
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:not(:only-child):last-child {
|
|
96
|
-
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
SButton[text-color] {
|
|
101
|
-
color: var(--text-color);
|
|
102
|
-
|
|
103
|
-
&[active],
|
|
104
|
-
&:hover,
|
|
105
|
-
&:active {
|
|
106
|
-
color: var(--text-color);
|
|
107
|
-
filter: brightness(0.8);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
SButton[size='100'] {
|
|
112
|
-
font-size: var(--intergalactic-fs-100, 12px);
|
|
113
|
-
line-height: var(--intergalactic-lh-100, 133%);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
SButton[size='200'] {
|
|
117
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
118
|
-
line-height: var(--intergalactic-lh-200, 142%);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
SButton[size='300'] {
|
|
122
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
123
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
124
24
|
}
|
|
125
25
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
SButton[size='500'] {
|
|
132
|
-
font-size: var(--intergalactic-fs-500, 24px);
|
|
133
|
-
line-height: var(--intergalactic-lh-500, 117%);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
SButton[size='600'] {
|
|
137
|
-
font-size: var(--intergalactic-fs-600, 32px);
|
|
138
|
-
line-height: var(--intergalactic-lh-600, 125%);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
SButton[size='700'] {
|
|
142
|
-
font-size: var(--intergalactic-fs-700, 36px);
|
|
143
|
-
line-height: var(--intergalactic-lh-700, 110%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
SButton[size='800'] {
|
|
147
|
-
font-size: var(--intergalactic-fs-800, 48px);
|
|
148
|
-
line-height: var(--intergalactic-lh-800, 117%);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@media (prefers-reduced-motion) {
|
|
152
|
-
SButton {
|
|
153
|
-
transition: none;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
SText {
|
|
157
|
-
transition: none;
|
|
158
|
-
}
|
|
26
|
+
SButtonLink[use='secondary'] SText {
|
|
27
|
+
text-decoration-style: dashed;
|
|
28
|
+
text-decoration-color: currentColor;
|
|
159
29
|
}
|
package/lib/es6/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { default } from './component/Button/Button';
|
|
1
|
+
export { default, MAP_USE_DEFAULT_THEME } from './component/Button/Button';
|
|
2
2
|
export * from './component/Button/Button.type';
|
|
3
3
|
export * from './component/ButtonLink/ButtonLink';
|
|
4
4
|
export * from './component/ButtonLink/ButtonLink.type';
|
|
5
|
-
export { MAP_USE_DEFAULT_THEME } from './component/AbstractButton/AbstractButton';
|
|
6
5
|
//# sourceMappingURL=index.js.map
|
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","MAP_USE_DEFAULT_THEME"],"sources":["../../src/index.ts"],"sourcesContent":["export { default } from './component/Button/Button';\nexport * from './component/Button/Button.type';\nexport * from './component/ButtonLink/ButtonLink';\nexport * from './component/ButtonLink/ButtonLink.type';\
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","MAP_USE_DEFAULT_THEME"],"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,SAASA,OAAO,EAAEC,qBAAqB,QAAQ,2BAA2B;AAC1E,cAAc,gCAAgC;AAC9C,cAAc,mCAAmC;AACjD,cAAc,wCAAwC","ignoreList":[]}
|