@salutejs/sdds-finai 0.356.0 → 0.356.1-dev.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/dist/beta/cjs/EmbeddedButton/EmbeddedButton.config.js +9 -0
- package/dist/beta/css/cjs/components/_beta/EmbeddedButton/EmbeddedButton.config.js +8 -7
- package/dist/beta/css/cjs/components/_beta/EmbeddedButton/EmbeddedButton.config.js.map +1 -1
- package/dist/beta/css/cjs/components/_beta/EmbeddedButton/{EmbeddedButton.config_1kyw6dl.css → EmbeddedButton.config_zc4t48.css} +6 -5
- package/dist/beta/css/cjs/components/_beta/EmbeddedButton/EmbeddedButton.css +13 -12
- package/dist/beta/css/cjs/index.css +13 -12
- package/dist/beta/css/es/components/_beta/EmbeddedButton/EmbeddedButton.config.js +8 -7
- package/dist/beta/css/es/components/_beta/EmbeddedButton/EmbeddedButton.config.js.map +1 -1
- package/dist/beta/css/es/components/_beta/EmbeddedButton/{EmbeddedButton.config_1kyw6dl.css → EmbeddedButton.config_zc4t48.css} +6 -5
- package/dist/beta/css/es/components/_beta/EmbeddedButton/EmbeddedButton.css +13 -12
- package/dist/beta/css/es/index.css +13 -12
- package/dist/beta/emotion/cjs/EmbeddedButton/EmbeddedButton.config.js +9 -0
- package/dist/beta/emotion/es/EmbeddedButton/EmbeddedButton.config.js +10 -1
- package/dist/beta/es/EmbeddedButton/EmbeddedButton.config.js +10 -1
- package/dist/beta/types/EmbeddedButton/EmbeddedButton.config.d.ts +1 -0
- package/dist/beta/types/EmbeddedButton/EmbeddedButton.d.ts +1 -0
- package/dist/css/cjs/_virtual/_rollupPluginBabelHelpers.js +30 -0
- package/dist/css/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/dist/css/cjs/components/Avatar/Avatar.config.js +23 -23
- package/dist/css/cjs/components/Avatar/Avatar.config.js.map +1 -1
- package/dist/css/{es/components/Avatar/Avatar.config_194ow05.css → cjs/components/Avatar/Avatar.config_10406v1.css} +22 -22
- package/dist/css/cjs/components/Avatar/Avatar.css +22 -22
- package/dist/css/cjs/components/Button/Button.config.js +11 -10
- package/dist/css/cjs/components/Button/Button.config.js.map +1 -1
- package/dist/css/{es/components/Button/Button.config_1ycc2qc.css → cjs/components/Button/Button.config_rafi3h.css} +6 -5
- package/dist/css/cjs/components/Button/Button.css +16 -15
- package/dist/css/cjs/components/ButtonGroup/ButtonGroup.config.js +16 -15
- package/dist/css/cjs/components/ButtonGroup/ButtonGroup.config.js.map +1 -1
- package/dist/css/cjs/components/ButtonGroup/{ButtonGroup.config_1a2vbl.css → ButtonGroup.config_k5yu4i.css} +10 -9
- package/dist/css/cjs/components/ButtonGroup/ButtonGroup.css +20 -19
- package/dist/css/cjs/components/EmbedIconButton/EmbedIconButton.config.js +8 -7
- package/dist/css/cjs/components/EmbedIconButton/EmbedIconButton.config.js.map +1 -1
- package/dist/css/cjs/components/EmbedIconButton/{EmbedIconButton.config_cdgtoa.css → EmbedIconButton.config_vvzol4.css} +6 -5
- package/dist/css/cjs/components/EmbedIconButton/EmbedIconButton.css +13 -12
- package/dist/css/cjs/components/IconButton/IconButton.config.js +8 -7
- package/dist/css/cjs/components/IconButton/IconButton.config.js.map +1 -1
- package/dist/css/{es/components/IconButton/IconButton.config_zugwrv.css → cjs/components/IconButton/IconButton.config_edu4ku.css} +6 -5
- package/dist/css/cjs/components/IconButton/IconButton.css +16 -15
- package/dist/css/cjs/components/LinkButton/LinkButton.config.js +7 -6
- package/dist/css/cjs/components/LinkButton/LinkButton.config.js.map +1 -1
- package/dist/css/cjs/components/LinkButton/{LinkButton.config_195yqrn.css → LinkButton.config_1k8mr42.css} +5 -4
- package/dist/css/cjs/components/LinkButton/LinkButton.css +12 -11
- package/dist/css/cjs/components/LinkButton/LinkButton.js +27 -1
- package/dist/css/cjs/components/LinkButton/LinkButton.js.map +1 -1
- package/dist/css/cjs/components/Slider/Slider.config.js +1 -1
- package/dist/css/cjs/components/Slider/Slider.config.js.map +1 -1
- package/dist/css/cjs/components/Slider/{Slider.config_czw5fa.css → Slider.config_1bu7g7m.css} +3 -3
- package/dist/css/cjs/components/Slider/Slider.css +9 -9
- package/dist/css/cjs/index.css +116 -111
- package/dist/css/cjs/index.js +4 -0
- package/dist/css/cjs/index.js.map +1 -1
- package/dist/css/es/_virtual/_rollupPluginBabelHelpers.js +28 -1
- package/dist/css/es/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
- package/dist/css/es/components/Avatar/Avatar.config.js +23 -23
- package/dist/css/es/components/Avatar/Avatar.config.js.map +1 -1
- package/dist/css/{cjs/components/Avatar/Avatar.config_194ow05.css → es/components/Avatar/Avatar.config_10406v1.css} +22 -22
- package/dist/css/es/components/Avatar/Avatar.css +22 -22
- package/dist/css/es/components/Button/Button.config.js +11 -10
- package/dist/css/es/components/Button/Button.config.js.map +1 -1
- package/dist/css/{cjs/components/Button/Button.config_1ycc2qc.css → es/components/Button/Button.config_rafi3h.css} +6 -5
- package/dist/css/es/components/Button/Button.css +16 -15
- package/dist/css/es/components/ButtonGroup/ButtonGroup.config.js +16 -15
- package/dist/css/es/components/ButtonGroup/ButtonGroup.config.js.map +1 -1
- package/dist/css/es/components/ButtonGroup/{ButtonGroup.config_1a2vbl.css → ButtonGroup.config_k5yu4i.css} +10 -9
- package/dist/css/es/components/ButtonGroup/ButtonGroup.css +20 -19
- package/dist/css/es/components/EmbedIconButton/EmbedIconButton.config.js +8 -7
- package/dist/css/es/components/EmbedIconButton/EmbedIconButton.config.js.map +1 -1
- package/dist/css/es/components/EmbedIconButton/{EmbedIconButton.config_cdgtoa.css → EmbedIconButton.config_vvzol4.css} +6 -5
- package/dist/css/es/components/EmbedIconButton/EmbedIconButton.css +13 -12
- package/dist/css/es/components/IconButton/IconButton.config.js +8 -7
- package/dist/css/es/components/IconButton/IconButton.config.js.map +1 -1
- package/dist/css/{cjs/components/IconButton/IconButton.config_zugwrv.css → es/components/IconButton/IconButton.config_edu4ku.css} +6 -5
- package/dist/css/es/components/IconButton/IconButton.css +16 -15
- package/dist/css/es/components/LinkButton/LinkButton.config.js +7 -6
- package/dist/css/es/components/LinkButton/LinkButton.config.js.map +1 -1
- package/dist/css/es/components/LinkButton/{LinkButton.config_195yqrn.css → LinkButton.config_1k8mr42.css} +5 -4
- package/dist/css/es/components/LinkButton/LinkButton.css +12 -11
- package/dist/css/es/components/LinkButton/LinkButton.js +23 -3
- package/dist/css/es/components/LinkButton/LinkButton.js.map +1 -1
- package/dist/css/es/components/Slider/Slider.config.js +1 -1
- package/dist/css/es/components/Slider/Slider.config.js.map +1 -1
- package/dist/css/es/components/Slider/{Slider.config_czw5fa.css → Slider.config_1bu7g7m.css} +3 -3
- package/dist/css/es/components/Slider/Slider.css +9 -9
- package/dist/css/es/index.css +116 -111
- package/dist/css/es/index.js +1 -1
- package/dist/emotion/cjs/components/Button/Button.config.js +10 -0
- package/dist/emotion/cjs/components/ButtonGroup/ButtonGroup.config.js +10 -0
- package/dist/emotion/cjs/components/EmbedIconButton/EmbedIconButton.config.js +7 -0
- package/dist/emotion/cjs/components/IconButton/IconButton.config.js +7 -0
- package/dist/emotion/cjs/components/LinkButton/LinkButton.config.js +10 -0
- package/dist/emotion/cjs/components/LinkButton/LinkButton.js +78 -4
- package/dist/emotion/cjs/components/Notification/index.js +3 -0
- package/dist/emotion/cjs/components/Slider/Slider.config.js +3 -5
- package/dist/emotion/es/components/Button/Button.config.js +11 -1
- package/dist/emotion/es/components/ButtonGroup/ButtonGroup.config.js +11 -1
- package/dist/emotion/es/components/EmbedIconButton/EmbedIconButton.config.js +8 -1
- package/dist/emotion/es/components/IconButton/IconButton.config.js +8 -1
- package/dist/emotion/es/components/LinkButton/LinkButton.config.js +11 -1
- package/dist/emotion/es/components/LinkButton/LinkButton.js +22 -2
- package/dist/emotion/es/components/Notification/index.js +1 -1
- package/dist/emotion/es/components/Slider/Slider.config.js +3 -5
- package/dist/styled-components/cjs/components/Button/Button.config.js +10 -0
- package/dist/styled-components/cjs/components/ButtonGroup/ButtonGroup.config.js +10 -0
- package/dist/styled-components/cjs/components/EmbedIconButton/EmbedIconButton.config.js +7 -0
- package/dist/styled-components/cjs/components/IconButton/IconButton.config.js +7 -0
- package/dist/styled-components/cjs/components/LinkButton/LinkButton.config.js +10 -0
- package/dist/styled-components/cjs/components/LinkButton/LinkButton.js +85 -6
- package/dist/styled-components/cjs/components/Notification/index.js +3 -0
- package/dist/styled-components/cjs/components/Slider/Slider.config.js +3 -5
- package/dist/styled-components/es/components/Button/Button.config.js +11 -1
- package/dist/styled-components/es/components/ButtonGroup/ButtonGroup.config.js +11 -1
- package/dist/styled-components/es/components/EmbedIconButton/EmbedIconButton.config.js +8 -1
- package/dist/styled-components/es/components/IconButton/IconButton.config.js +8 -1
- package/dist/styled-components/es/components/LinkButton/LinkButton.config.js +11 -1
- package/dist/styled-components/es/components/LinkButton/LinkButton.js +27 -2
- package/dist/styled-components/es/components/Notification/index.js +1 -1
- package/dist/styled-components/es/components/Slider/Slider.config.js +3 -5
- package/package.json +9 -9
- package/types/components/Button/Button.config.d.ts +1 -0
- package/types/components/Button/Button.d.ts +2 -0
- package/types/components/ButtonGroup/ButtonGroup.config.d.ts +1 -0
- package/types/components/ButtonGroup/ButtonGroup.d.ts +1 -0
- package/types/components/DatePicker/DatePicker.d.ts +4 -0
- package/types/components/Drawer/Drawer.d.ts +1 -0
- package/types/components/EmbedIconButton/EmbedIconButton.config.d.ts +1 -0
- package/types/components/EmbedIconButton/EmbedIconButton.d.ts +1 -0
- package/types/components/IconButton/IconButton.config.d.ts +1 -0
- package/types/components/IconButton/IconButton.d.ts +1 -0
- package/types/components/LinkButton/LinkButton.config.d.ts +1 -0
- package/types/components/LinkButton/LinkButton.d.ts +35 -3
- package/types/components/Notification/index.d.ts +1 -1
- package/types/components/Range/Range.d.ts +144 -0
- package/types/components/Tabs/TabItem.d.ts +4 -2
- package/types/components/Tokens/Colors/Colors.styles.d.ts +2 -0
- package/types/components/Tokens/Typography/Typography.styles.d.ts +2 -0
package/dist/css/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Accordion } from './components/Accordion/Accordion.js';
|
|
2
|
-
export { AccordionItem, ButtonBase, CardContent, CardInnerContent, CarouselItem, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle, Col, ListItem, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN, ONLY_DIGITS_PATTERN, Overlay, PopupProvider, Portal, RadioGroup, RectSkeleton, Row, SSRProvider, SegmentProvider, TabItemRefs, TabsContext, addNotification, closeNotification, codeFieldClasses, codeFieldTokens, counterTokens, datePickerClasses, datePickerTokens, dateTimePickerClasses, dateTimePickerTokens, dividerTokens, dropzoneClasses, dropzoneTokens, informationWrapperClasses, informationWrapperTokens, modalClasses, noteClasses, noteTokens, numberFormatter, numberInputClasses, numberInputTokens, popupClasses, priceClasses, rangeTokens, ratingClasses, ratingTokens, sheetClasses, textFieldTokens, timePickerClasses, timePickerTokens, toolbarTokens, usePopupContext, useSegment, useToast, withSkeleton } from '@salutejs/plasma-new-hope/css';
|
|
2
|
+
export { AccordionItem, ButtonBase, CardContent, CardInnerContent, CarouselItem, CellTextbox, CellTextboxLabel, CellTextboxSubtitle, CellTextboxTitle, Col, ListItem, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN, ONLY_DIGITS_PATTERN, Overlay, PopupProvider, Portal, RadioGroup, RectSkeleton, Row, SSRProvider, SegmentProvider, TabItemRefs, TabsContext, addNotification, closeNotification, codeFieldClasses, codeFieldTokens, counterTokens, datePickerClasses, datePickerTokens, dateTimePickerClasses, dateTimePickerTokens, dividerTokens, dropzoneClasses, dropzoneTokens, informationWrapperClasses, informationWrapperTokens, modalClasses, noteClasses, noteTokens, numberFormatter, numberInputClasses, numberInputTokens, popupClasses, priceClasses, rangeTokens, ratingClasses, ratingTokens, sheetClasses, textFieldTokens, timePickerClasses, timePickerTokens, toolbarTokens, useNotifications, usePopupContext, useSegment, useToast, withSkeleton } from '@salutejs/plasma-new-hope/css';
|
|
3
3
|
export { Attach } from './components/Attach/Attach.js';
|
|
4
4
|
export { Autocomplete } from './components/Autocomplete/Autocomplete.js';
|
|
5
5
|
export { Avatar } from './components/Avatar/Avatar.js';
|
|
@@ -125,6 +125,16 @@ const config = {
|
|
|
125
125
|
${_emotion.buttonTokens.buttonColorActive}: ${_sdds_finai.onLightTextPrimaryActive};
|
|
126
126
|
${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_finai.onDarkSurfaceSolidDefaultHover};
|
|
127
127
|
${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_finai.onDarkSurfaceSolidDefaultActive};
|
|
128
|
+
`,
|
|
129
|
+
gradient: (0, _emotion.css)`
|
|
130
|
+
${_emotion.buttonTokens.buttonColor}: ${_sdds_finai.onLightTextPrimary};
|
|
131
|
+
${_emotion.buttonTokens.buttonTextColor}: ${_sdds_finai.onLightTextPrimary};
|
|
132
|
+
${_emotion.buttonTokens.buttonIconColor}: ${_sdds_finai.onLightTextPrimary};
|
|
133
|
+
${_emotion.buttonTokens.buttonValueColor}: ${_sdds_finai.onLightTextSecondary};
|
|
134
|
+
${_emotion.buttonTokens.buttonBackgroundColor}: ${_sdds_finai.surfaceAccentGradient};
|
|
135
|
+
${_emotion.buttonTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonTokens.buttonBackgroundColor});
|
|
136
|
+
${_emotion.buttonTokens.buttonBackgroundColorHover}: ${_sdds_finai.surfaceAccentGradient};
|
|
137
|
+
${_emotion.buttonTokens.buttonBackgroundColorActive}: ${_sdds_finai.surfaceAccentGradient};
|
|
128
138
|
`
|
|
129
139
|
},
|
|
130
140
|
size: {
|
|
@@ -136,6 +136,16 @@ const config = {
|
|
|
136
136
|
${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_finai.onDarkSurfaceSolidDefaultHover};
|
|
137
137
|
${_emotion.buttonGroupTokens.buttonColorActive}: ${_sdds_finai.onLightTextPrimary};
|
|
138
138
|
${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_finai.onDarkSurfaceSolidDefaultActive};
|
|
139
|
+
`,
|
|
140
|
+
gradient: (0, _emotion.css)`
|
|
141
|
+
${_emotion.buttonGroupTokens.buttonColor}: ${_sdds_finai.onLightTextPrimary};
|
|
142
|
+
${_emotion.buttonGroupTokens.buttonTextColor}: ${_sdds_finai.onLightTextPrimary};
|
|
143
|
+
${_emotion.buttonGroupTokens.buttonIconColor}: ${_sdds_finai.onLightTextPrimary};
|
|
144
|
+
${_emotion.buttonGroupTokens.buttonValueColor}: ${_sdds_finai.onLightTextSecondary};
|
|
145
|
+
${_emotion.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_finai.surfaceAccentGradient};
|
|
146
|
+
${_emotion.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_emotion.buttonGroupTokens.buttonBackgroundColor});
|
|
147
|
+
${_emotion.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_finai.surfaceAccentGradient};
|
|
148
|
+
${_emotion.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_finai.surfaceAccentGradient};
|
|
139
149
|
`
|
|
140
150
|
},
|
|
141
151
|
size: {
|
|
@@ -66,6 +66,13 @@ const config = {
|
|
|
66
66
|
${_emotion.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_emotion.embedIconButtonTokens.embedIconButtonBackgroundColor});
|
|
67
67
|
${_emotion.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_finai.textInfoHover};
|
|
68
68
|
${_emotion.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_finai.textInfoActive};
|
|
69
|
+
`,
|
|
70
|
+
gradient: (0, _emotion.css)`
|
|
71
|
+
${_emotion.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_finai.textAccentGradient};
|
|
72
|
+
${_emotion.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_finai.surfaceClear};
|
|
73
|
+
${_emotion.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_emotion.embedIconButtonTokens.embedIconButtonBackgroundColor});
|
|
74
|
+
${_emotion.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_finai.textAccentGradient};
|
|
75
|
+
${_emotion.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_finai.textAccentGradient};
|
|
69
76
|
`
|
|
70
77
|
},
|
|
71
78
|
size: {
|
|
@@ -87,6 +87,13 @@ const config = {
|
|
|
87
87
|
${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
|
|
88
88
|
${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_finai.onLightTextPrimaryHover};
|
|
89
89
|
${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_finai.onLightTextPrimaryActive};
|
|
90
|
+
`,
|
|
91
|
+
gradient: (0, _emotion.css)`
|
|
92
|
+
${_emotion.iconButtonTokens.iconButtonColor}: ${_sdds_finai.onLightTextPrimary};
|
|
93
|
+
${_emotion.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_finai.surfaceAccentGradient};
|
|
94
|
+
${_emotion.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_emotion.iconButtonTokens.iconButtonBackgroundColor});
|
|
95
|
+
${_emotion.iconButtonTokens.iconButtonColorHover}: ${_sdds_finai.onLightTextPrimaryHover};
|
|
96
|
+
${_emotion.iconButtonTokens.iconButtonColorActive}: ${_sdds_finai.onLightTextPrimaryActive};
|
|
90
97
|
`
|
|
91
98
|
},
|
|
92
99
|
size: {
|
|
@@ -86,6 +86,16 @@ const config = {
|
|
|
86
86
|
${_emotion.linkButtonTokens.linkButtonFocusColor}: ${_sdds_finai.surfaceAccent};
|
|
87
87
|
${_emotion.linkButtonTokens.linkButtonTextColorHover}: ${_sdds_finai.textInfoHover};
|
|
88
88
|
${_emotion.linkButtonTokens.linkButtonTextColorActive}: ${_sdds_finai.textInfoActive};
|
|
89
|
+
`,
|
|
90
|
+
gradient: (0, _emotion.css)`
|
|
91
|
+
${_emotion.linkButtonTokens.linkButtonIconColor}: ${_sdds_finai.textAccentGradient};
|
|
92
|
+
${_emotion.linkButtonTokens.linkButtonTextColor}: ${_sdds_finai.textAccentGradient};
|
|
93
|
+
${_emotion.linkButtonTokens.linkButtonBackgroundColor}: ${_sdds_finai.surfaceClear};
|
|
94
|
+
${_emotion.linkButtonTokens.linkButtonIconColorHover}: ${_sdds_finai.textAccentGradient};
|
|
95
|
+
${_emotion.linkButtonTokens.linkButtonIconColorActive}: ${_sdds_finai.textAccentGradient};
|
|
96
|
+
${_emotion.linkButtonTokens.linkButtonFocusColor}: ${_sdds_finai.surfaceAccent};
|
|
97
|
+
${_emotion.linkButtonTokens.linkButtonTextColorHover}: ${_sdds_finai.textAccentGradient};
|
|
98
|
+
${_emotion.linkButtonTokens.linkButtonTextColorActive}: ${_sdds_finai.textAccentGradient};
|
|
89
99
|
`
|
|
90
100
|
},
|
|
91
101
|
size: {
|
|
@@ -2,13 +2,87 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get GradientLinkButton () {
|
|
13
|
+
return GradientLinkButton;
|
|
14
|
+
},
|
|
15
|
+
get LinkButton () {
|
|
8
16
|
return LinkButton;
|
|
9
17
|
}
|
|
10
18
|
});
|
|
19
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
|
+
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
|
|
11
21
|
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
12
22
|
const _LinkButtonconfig = require("./LinkButton.config");
|
|
23
|
+
function _interop_require_default(obj) {
|
|
24
|
+
return obj && obj.__esModule ? obj : {
|
|
25
|
+
default: obj
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
29
|
+
if (typeof WeakMap !== "function") return null;
|
|
30
|
+
var cacheBabelInterop = new WeakMap();
|
|
31
|
+
var cacheNodeInterop = new WeakMap();
|
|
32
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
+
})(nodeInterop);
|
|
35
|
+
}
|
|
36
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
37
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
+
return obj;
|
|
39
|
+
}
|
|
40
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
41
|
+
return {
|
|
42
|
+
default: obj
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
46
|
+
if (cache && cache.has(obj)) {
|
|
47
|
+
return cache.get(obj);
|
|
48
|
+
}
|
|
49
|
+
var newObj = {
|
|
50
|
+
__proto__: null
|
|
51
|
+
};
|
|
52
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
53
|
+
for(var key in obj){
|
|
54
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
55
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
56
|
+
if (desc && (desc.get || desc.set)) {
|
|
57
|
+
Object.defineProperty(newObj, key, desc);
|
|
58
|
+
} else {
|
|
59
|
+
newObj[key] = obj[key];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
newObj.default = obj;
|
|
64
|
+
if (cache) {
|
|
65
|
+
cache.set(obj, newObj);
|
|
66
|
+
}
|
|
67
|
+
return newObj;
|
|
68
|
+
}
|
|
13
69
|
const mergedConfig = (0, _emotion.mergeConfig)(_emotion.linkButtonConfig, _LinkButtonconfig.config);
|
|
14
|
-
const
|
|
70
|
+
const LinkButtonComponent = (0, _emotion.component)(mergedConfig);
|
|
71
|
+
const GradientLinkButton = /*#__PURE__*/ (0, _styled.default)(LinkButtonComponent, {
|
|
72
|
+
target: "esqkte30",
|
|
73
|
+
label: "GradientLinkButton"
|
|
74
|
+
})("& .sdds-core-text-node{background:var(", _emotion.linkButtonTokens.linkButtonTextColor, ");background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}&:hover .sdds-core-text-node{background:var(", _emotion.linkButtonTokens.linkButtonTextColor, ");background-clip:text;-webkit-background-clip:text;}&:active .sdds-core-text-node{background:var(", _emotion.linkButtonTokens.linkButtonTextColor, ");background-clip:text;-webkit-background-clip:text;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9MaW5rQnV0dG9uL0xpbmtCdXR0b24udHN4Iiwic291cmNlcyI6WyJzcmMtZW1vdGlvbi9jb21wb25lbnRzL0xpbmtCdXR0b24vTGlua0J1dHRvbi50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IENvbXBvbmVudFByb3BzLCBmb3J3YXJkUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHtcbiAgICBjb21wb25lbnQsXG4gICAgbWVyZ2VDb25maWcsXG4gICAgbGlua0J1dHRvbkNvbmZpZyxcbiAgICBsaW5rQnV0dG9uVG9rZW5zLFxufSBmcm9tICdAc2FsdXRlanMvcGxhc21hLW5ldy1ob3BlL2Vtb3Rpb24nO1xuXG5pbXBvcnQgeyBjb25maWcgfSBmcm9tICcuL0xpbmtCdXR0b24uY29uZmlnJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcobGlua0J1dHRvbkNvbmZpZywgY29uZmlnKTtcblxuY29uc3QgTGlua0J1dHRvbkNvbXBvbmVudCA9IGNvbXBvbmVudChtZXJnZWRDb25maWcpO1xuXG50eXBlIExpbmtCdXR0b25Db21wb25lbnRQcm9wcyA9IENvbXBvbmVudFByb3BzPHR5cGVvZiBMaW5rQnV0dG9uQ29tcG9uZW50PjtcblxuZXhwb3J0IGNvbnN0IEdyYWRpZW50TGlua0J1dHRvbiA9IHN0eWxlZChMaW5rQnV0dG9uQ29tcG9uZW50KWBcbiAgICAmIC5zZGRzLWNvcmUtdGV4dC1ub2RlIHtcbiAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7bGlua0J1dHRvblRva2Vucy5saW5rQnV0dG9uVGV4dENvbG9yfSk7XG4gICAgICAgIGJhY2tncm91bmQtY2xpcDogdGV4dDtcbiAgICAgICAgLXdlYmtpdC1iYWNrZ3JvdW5kLWNsaXA6IHRleHQ7XG4gICAgICAgIC13ZWJraXQtdGV4dC1maWxsLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICB9XG5cbiAgICAmOmhvdmVyIC5zZGRzLWNvcmUtdGV4dC1ub2RlIHtcbiAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7bGlua0J1dHRvblRva2Vucy5saW5rQnV0dG9uVGV4dENvbG9yfSk7XG4gICAgICAgIGJhY2tncm91bmQtY2xpcDogdGV4dDtcbiAgICAgICAgLXdlYmtpdC1iYWNrZ3JvdW5kLWNsaXA6IHRleHQ7XG4gICAgfVxuXG4gICAgJjphY3RpdmUgLnNkZHMtY29yZS10ZXh0LW5vZGUge1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHtsaW5rQnV0dG9uVG9rZW5zLmxpbmtCdXR0b25UZXh0Q29sb3J9KTtcbiAgICAgICAgYmFja2dyb3VuZC1jbGlwOiB0ZXh0O1xuICAgICAgICAtd2Via2l0LWJhY2tncm91bmQtY2xpcDogdGV4dDtcbiAgICB9XG5gO1xuXG5leHBvcnQgY29uc3QgTGlua0J1dHRvbiA9IGZvcndhcmRSZWY8SFRNTEFuY2hvckVsZW1lbnQsIExpbmtCdXR0b25Db21wb25lbnRQcm9wcz4oKHsgdmlldywgLi4ucmVzdCB9LCByZWYpID0+IHtcbiAgICBpZiAodmlldyA9PT0gJ2dyYWRpZW50Jykge1xuICAgICAgICByZXR1cm4gPEdyYWRpZW50TGlua0J1dHRvbiByZWY9e3JlZn0gdmlldz17dmlld30gey4uLnJlc3R9IC8+O1xuICAgIH1cblxuICAgIHJldHVybiA8TGlua0J1dHRvbkNvbXBvbmVudCByZWY9e3JlZn0gdmlldz17dmlld30gey4uLnJlc3R9IC8+O1xufSk7XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUJrQyJ9 */");
|
|
75
|
+
const LinkButton = /*#__PURE__*/ (0, _react.forwardRef)(({ view, ...rest }, ref)=>{
|
|
76
|
+
if (view === 'gradient') {
|
|
77
|
+
return /*#__PURE__*/ _react.default.createElement(GradientLinkButton, {
|
|
78
|
+
ref: ref,
|
|
79
|
+
view: view,
|
|
80
|
+
...rest
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return /*#__PURE__*/ _react.default.createElement(LinkButtonComponent, {
|
|
84
|
+
ref: ref,
|
|
85
|
+
view: view,
|
|
86
|
+
...rest
|
|
87
|
+
});
|
|
88
|
+
});
|
|
@@ -224,8 +224,7 @@ const config = {
|
|
|
224
224
|
},
|
|
225
225
|
pointerSize: {
|
|
226
226
|
small: (0, _emotion.css)`
|
|
227
|
-
${_emotion.sliderTokens.
|
|
228
|
-
${_emotion.sliderTokens.thumbBorderStyle}: solid;
|
|
227
|
+
${_emotion.sliderTokens.thumbWidth}: 1rem;
|
|
229
228
|
${_emotion.sliderTokens.thumbBorderWidth}: 0.0625rem;
|
|
230
229
|
|
|
231
230
|
${_emotion.sliderTokens.tickSeparatorWidth}: 0.25rem;
|
|
@@ -233,8 +232,7 @@ const config = {
|
|
|
233
232
|
${_emotion.sliderTokens.tickSeparatorBorderRadius}: 0.25rem;
|
|
234
233
|
`,
|
|
235
234
|
large: (0, _emotion.css)`
|
|
236
|
-
${_emotion.sliderTokens.
|
|
237
|
-
${_emotion.sliderTokens.thumbBorderStyle}: solid;
|
|
235
|
+
${_emotion.sliderTokens.thumbWidth}: 1.25rem;
|
|
238
236
|
${_emotion.sliderTokens.thumbBorderWidth}: 0.0625rem;
|
|
239
237
|
|
|
240
238
|
${_emotion.sliderTokens.tickSeparatorWidth}: 0.25rem;
|
|
@@ -242,7 +240,7 @@ const config = {
|
|
|
242
240
|
${_emotion.sliderTokens.tickSeparatorBorderRadius}: 0.25rem;
|
|
243
241
|
`,
|
|
244
242
|
none: (0, _emotion.css)`
|
|
245
|
-
${_emotion.sliderTokens.
|
|
243
|
+
${_emotion.sliderTokens.thumbWidth}: 0rem;
|
|
246
244
|
|
|
247
245
|
${_emotion.sliderTokens.tickSeparatorWidth}: 0.25rem;
|
|
248
246
|
${_emotion.sliderTokens.tickSeparatorHeight}: 0.5rem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, buttonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
-
import { bodyS, bodySBold, bodyXS, bodyXSBold, inverseTextPrimary, inverseTextPrimaryActive, inverseTextPrimaryHover, inverseTextSecondary, onDarkSurfaceSolidDefault, onDarkSurfaceSolidDefaultActive, onDarkSurfaceSolidDefaultHover, onDarkTextPrimary, onDarkTextPrimaryActive, onDarkTextPrimaryHover, onDarkTextSecondary, onLightSurfaceSolidDefault, onLightSurfaceSolidDefaultActive, onLightSurfaceSolidDefaultHover, onLightSurfaceTransparentDeep, onLightSurfaceTransparentDeepActive, onLightSurfaceTransparentDeepHover, onLightTextPrimary, onLightTextPrimaryActive, onLightTextPrimaryHover, onLightTextSecondary, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidDefault, surfaceSolidDefaultActive, surfaceSolidDefaultHover, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
2
|
+
import { bodyS, bodySBold, bodyXS, bodyXSBold, inverseTextPrimary, inverseTextPrimaryActive, inverseTextPrimaryHover, inverseTextSecondary, onDarkSurfaceSolidDefault, onDarkSurfaceSolidDefaultActive, onDarkSurfaceSolidDefaultHover, onDarkTextPrimary, onDarkTextPrimaryActive, onDarkTextPrimaryHover, onDarkTextSecondary, onLightSurfaceSolidDefault, onLightSurfaceSolidDefaultActive, onLightSurfaceSolidDefaultHover, onLightSurfaceTransparentDeep, onLightSurfaceTransparentDeepActive, onLightSurfaceTransparentDeepHover, onLightTextPrimary, onLightTextPrimaryActive, onLightTextPrimaryHover, onLightTextSecondary, surfaceAccent, surfaceAccentActive, surfaceAccentGradient, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidDefault, surfaceSolidDefaultActive, surfaceSolidDefaultHover, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textPrimary, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
5
5
|
view: 'default',
|
|
@@ -115,6 +115,16 @@ export const config = {
|
|
|
115
115
|
${buttonTokens.buttonColorActive}: ${onLightTextPrimaryActive};
|
|
116
116
|
${buttonTokens.buttonBackgroundColorHover}: ${onDarkSurfaceSolidDefaultHover};
|
|
117
117
|
${buttonTokens.buttonBackgroundColorActive}: ${onDarkSurfaceSolidDefaultActive};
|
|
118
|
+
`,
|
|
119
|
+
gradient: css`
|
|
120
|
+
${buttonTokens.buttonColor}: ${onLightTextPrimary};
|
|
121
|
+
${buttonTokens.buttonTextColor}: ${onLightTextPrimary};
|
|
122
|
+
${buttonTokens.buttonIconColor}: ${onLightTextPrimary};
|
|
123
|
+
${buttonTokens.buttonValueColor}: ${onLightTextSecondary};
|
|
124
|
+
${buttonTokens.buttonBackgroundColor}: ${surfaceAccentGradient};
|
|
125
|
+
${buttonTokens.buttonLoadingBackgroundColor}: var(${buttonTokens.buttonBackgroundColor});
|
|
126
|
+
${buttonTokens.buttonBackgroundColorHover}: ${surfaceAccentGradient};
|
|
127
|
+
${buttonTokens.buttonBackgroundColorActive}: ${surfaceAccentGradient};
|
|
118
128
|
`
|
|
119
129
|
},
|
|
120
130
|
size: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, buttonGroupTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
-
import { bodyS, bodySBold, bodyXS, bodyXSBold, inverseTextPrimary, inverseTextSecondary, onDarkSurfaceSolidDefault, onDarkSurfaceSolidDefaultActive, onDarkSurfaceSolidDefaultHover, onDarkTextPrimary, onDarkTextSecondary, onLightSurfaceSolidDefault, onLightSurfaceSolidDefaultActive, onLightSurfaceSolidDefaultHover, onLightSurfaceTransparentDeep, onLightSurfaceTransparentDeepActive, onLightSurfaceTransparentDeepHover, onLightTextPrimary, onLightTextSecondary, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidDefault, surfaceSolidDefaultActive, surfaceSolidDefaultHover, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
2
|
+
import { bodyS, bodySBold, bodyXS, bodyXSBold, inverseTextPrimary, inverseTextSecondary, onDarkSurfaceSolidDefault, onDarkSurfaceSolidDefaultActive, onDarkSurfaceSolidDefaultHover, onDarkTextPrimary, onDarkTextSecondary, onLightSurfaceSolidDefault, onLightSurfaceSolidDefaultActive, onLightSurfaceSolidDefaultHover, onLightSurfaceTransparentDeep, onLightSurfaceTransparentDeepActive, onLightSurfaceTransparentDeepHover, onLightTextPrimary, onLightTextSecondary, surfaceAccent, surfaceAccentActive, surfaceAccentGradient, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidDefault, surfaceSolidDefaultActive, surfaceSolidDefaultHover, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
5
5
|
view: 'default',
|
|
@@ -126,6 +126,16 @@ export const config = {
|
|
|
126
126
|
${buttonGroupTokens.buttonBackgroundColorHover}: ${onDarkSurfaceSolidDefaultHover};
|
|
127
127
|
${buttonGroupTokens.buttonColorActive}: ${onLightTextPrimary};
|
|
128
128
|
${buttonGroupTokens.buttonBackgroundColorActive}: ${onDarkSurfaceSolidDefaultActive};
|
|
129
|
+
`,
|
|
130
|
+
gradient: css`
|
|
131
|
+
${buttonGroupTokens.buttonColor}: ${onLightTextPrimary};
|
|
132
|
+
${buttonGroupTokens.buttonTextColor}: ${onLightTextPrimary};
|
|
133
|
+
${buttonGroupTokens.buttonIconColor}: ${onLightTextPrimary};
|
|
134
|
+
${buttonGroupTokens.buttonValueColor}: ${onLightTextSecondary};
|
|
135
|
+
${buttonGroupTokens.buttonBackgroundColor}: ${surfaceAccentGradient};
|
|
136
|
+
${buttonGroupTokens.buttonLoadingBackgroundColor}: var(${buttonGroupTokens.buttonBackgroundColor});
|
|
137
|
+
${buttonGroupTokens.buttonBackgroundColorHover}: ${surfaceAccentGradient};
|
|
138
|
+
${buttonGroupTokens.buttonBackgroundColorActive}: ${surfaceAccentGradient};
|
|
129
139
|
`
|
|
130
140
|
},
|
|
131
141
|
size: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, embedIconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
-
import { bodyL, bodyLBold, bodyM, bodyMBold, bodyS, bodySBold, surfaceAccent, surfaceClear, textAccent, textAccentActive, textAccentHover, textInfo, textInfoActive, textInfoHover, textNegative, textNegativeActive, textNegativeHover, textPositive, textPositiveActive, textPositiveHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textWarning, textWarningActive, textWarningHover } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
2
|
+
import { bodyL, bodyLBold, bodyM, bodyMBold, bodyS, bodySBold, surfaceAccent, surfaceClear, textAccent, textAccentActive, textAccentGradient, textAccentHover, textInfo, textInfoActive, textInfoHover, textNegative, textNegativeActive, textNegativeHover, textPositive, textPositiveActive, textPositiveHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textWarning, textWarningActive, textWarningHover } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
5
5
|
view: 'default',
|
|
@@ -56,6 +56,13 @@ export const config = {
|
|
|
56
56
|
${embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${embedIconButtonTokens.embedIconButtonBackgroundColor});
|
|
57
57
|
${embedIconButtonTokens.embedIconButtonColorHover}: ${textInfoHover};
|
|
58
58
|
${embedIconButtonTokens.embedIconButtonColorActive}: ${textInfoActive};
|
|
59
|
+
`,
|
|
60
|
+
gradient: css`
|
|
61
|
+
${embedIconButtonTokens.embedIconButtonColor}: ${textAccentGradient};
|
|
62
|
+
${embedIconButtonTokens.embedIconButtonBackgroundColor}: ${surfaceClear};
|
|
63
|
+
${embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${embedIconButtonTokens.embedIconButtonBackgroundColor});
|
|
64
|
+
${embedIconButtonTokens.embedIconButtonColorHover}: ${textAccentGradient};
|
|
65
|
+
${embedIconButtonTokens.embedIconButtonColorActive}: ${textAccentGradient};
|
|
59
66
|
`
|
|
60
67
|
},
|
|
61
68
|
size: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, iconButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
-
import { bodyS, bodySBold, bodyXS, bodyXSBold, inverseTextPrimary, inverseTextPrimaryActive, inverseTextPrimaryHover, onDarkSurfaceSolidDefault, onDarkTextPrimary, onDarkTextPrimaryActive, onDarkTextPrimaryHover, onLightSurfaceSolidDefault, onLightSurfaceTransparentDeep, onLightTextPrimary, onLightTextPrimaryActive, onLightTextPrimaryHover, surfaceAccent, surfaceAccentActive, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidDefault, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
2
|
+
import { bodyS, bodySBold, bodyXS, bodyXSBold, inverseTextPrimary, inverseTextPrimaryActive, inverseTextPrimaryHover, onDarkSurfaceSolidDefault, onDarkTextPrimary, onDarkTextPrimaryActive, onDarkTextPrimaryHover, onLightSurfaceSolidDefault, onLightSurfaceTransparentDeep, onLightTextPrimary, onLightTextPrimaryActive, onLightTextPrimaryHover, surfaceAccent, surfaceAccentActive, surfaceAccentGradient, surfaceAccentHover, surfaceClear, surfaceNegative, surfaceNegativeActive, surfaceNegativeHover, surfacePositive, surfacePositiveActive, surfacePositiveHover, surfaceSolidDefault, surfaceTransparentSecondary, surfaceTransparentSecondaryActive, surfaceTransparentSecondaryHover, surfaceWarning, surfaceWarningActive, surfaceWarningHover, textPrimary } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
5
5
|
view: 'default',
|
|
@@ -77,6 +77,13 @@ export const config = {
|
|
|
77
77
|
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
78
78
|
${iconButtonTokens.iconButtonColorHover}: ${onLightTextPrimaryHover};
|
|
79
79
|
${iconButtonTokens.iconButtonColorActive}: ${onLightTextPrimaryActive};
|
|
80
|
+
`,
|
|
81
|
+
gradient: css`
|
|
82
|
+
${iconButtonTokens.iconButtonColor}: ${onLightTextPrimary};
|
|
83
|
+
${iconButtonTokens.iconButtonBackgroundColor}: ${surfaceAccentGradient};
|
|
84
|
+
${iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${iconButtonTokens.iconButtonBackgroundColor});
|
|
85
|
+
${iconButtonTokens.iconButtonColorHover}: ${onLightTextPrimaryHover};
|
|
86
|
+
${iconButtonTokens.iconButtonColorActive}: ${onLightTextPrimaryActive};
|
|
80
87
|
`
|
|
81
88
|
},
|
|
82
89
|
size: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css, linkButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
-
import { bodyS, bodySBold, bodyXS, bodyXSBold, bodyXXS, bodyXXSBold, surfaceAccent, surfaceClear, textAccent, textAccentActive, textAccentHover, textInfo, textInfoActive, textInfoHover, textNegative, textNegativeActive, textNegativeHover, textPositive, textPositiveActive, textPositiveHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textWarning, textWarningActive, textWarningHover } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
2
|
+
import { bodyS, bodySBold, bodyXS, bodyXSBold, bodyXXS, bodyXXSBold, surfaceAccent, surfaceClear, textAccent, textAccentActive, textAccentGradient, textAccentHover, textInfo, textInfoActive, textInfoHover, textNegative, textNegativeActive, textNegativeHover, textPositive, textPositiveActive, textPositiveHover, textPrimary, textPrimaryActive, textPrimaryHover, textSecondary, textSecondaryActive, textSecondaryHover, textWarning, textWarningActive, textWarningHover } from '@salutejs/sdds-themes/tokens/sdds_finai';
|
|
3
3
|
export const config = {
|
|
4
4
|
defaults: {
|
|
5
5
|
view: 'default',
|
|
@@ -76,6 +76,16 @@ export const config = {
|
|
|
76
76
|
${linkButtonTokens.linkButtonFocusColor}: ${surfaceAccent};
|
|
77
77
|
${linkButtonTokens.linkButtonTextColorHover}: ${textInfoHover};
|
|
78
78
|
${linkButtonTokens.linkButtonTextColorActive}: ${textInfoActive};
|
|
79
|
+
`,
|
|
80
|
+
gradient: css`
|
|
81
|
+
${linkButtonTokens.linkButtonIconColor}: ${textAccentGradient};
|
|
82
|
+
${linkButtonTokens.linkButtonTextColor}: ${textAccentGradient};
|
|
83
|
+
${linkButtonTokens.linkButtonBackgroundColor}: ${surfaceClear};
|
|
84
|
+
${linkButtonTokens.linkButtonIconColorHover}: ${textAccentGradient};
|
|
85
|
+
${linkButtonTokens.linkButtonIconColorActive}: ${textAccentGradient};
|
|
86
|
+
${linkButtonTokens.linkButtonFocusColor}: ${surfaceAccent};
|
|
87
|
+
${linkButtonTokens.linkButtonTextColorHover}: ${textAccentGradient};
|
|
88
|
+
${linkButtonTokens.linkButtonTextColorActive}: ${textAccentGradient};
|
|
79
89
|
`
|
|
80
90
|
},
|
|
81
91
|
size: {
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { component, mergeConfig, linkButtonConfig, linkButtonTokens } from '@salutejs/plasma-new-hope/emotion';
|
|
2
4
|
import { config } from './LinkButton.config';
|
|
3
5
|
const mergedConfig = mergeConfig(linkButtonConfig, config);
|
|
4
|
-
|
|
6
|
+
const LinkButtonComponent = component(mergedConfig);
|
|
7
|
+
export const GradientLinkButton = /*#__PURE__*/ styled(LinkButtonComponent, {
|
|
8
|
+
target: "esqkte30",
|
|
9
|
+
label: "GradientLinkButton"
|
|
10
|
+
})("& .sdds-core-text-node{background:var(", linkButtonTokens.linkButtonTextColor, ");background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}&:hover .sdds-core-text-node{background:var(", linkButtonTokens.linkButtonTextColor, ");background-clip:text;-webkit-background-clip:text;}&:active .sdds-core-text-node{background:var(", linkButtonTokens.linkButtonTextColor, ");background-clip:text;-webkit-background-clip:text;}", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9MaW5rQnV0dG9uL0xpbmtCdXR0b24udHN4Iiwic291cmNlcyI6WyJzcmMtZW1vdGlvbi9jb21wb25lbnRzL0xpbmtCdXR0b24vTGlua0J1dHRvbi50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IENvbXBvbmVudFByb3BzLCBmb3J3YXJkUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHtcbiAgICBjb21wb25lbnQsXG4gICAgbWVyZ2VDb25maWcsXG4gICAgbGlua0J1dHRvbkNvbmZpZyxcbiAgICBsaW5rQnV0dG9uVG9rZW5zLFxufSBmcm9tICdAc2FsdXRlanMvcGxhc21hLW5ldy1ob3BlL2Vtb3Rpb24nO1xuXG5pbXBvcnQgeyBjb25maWcgfSBmcm9tICcuL0xpbmtCdXR0b24uY29uZmlnJztcblxuY29uc3QgbWVyZ2VkQ29uZmlnID0gbWVyZ2VDb25maWcobGlua0J1dHRvbkNvbmZpZywgY29uZmlnKTtcblxuY29uc3QgTGlua0J1dHRvbkNvbXBvbmVudCA9IGNvbXBvbmVudChtZXJnZWRDb25maWcpO1xuXG50eXBlIExpbmtCdXR0b25Db21wb25lbnRQcm9wcyA9IENvbXBvbmVudFByb3BzPHR5cGVvZiBMaW5rQnV0dG9uQ29tcG9uZW50PjtcblxuZXhwb3J0IGNvbnN0IEdyYWRpZW50TGlua0J1dHRvbiA9IHN0eWxlZChMaW5rQnV0dG9uQ29tcG9uZW50KWBcbiAgICAmIC5zZGRzLWNvcmUtdGV4dC1ub2RlIHtcbiAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7bGlua0J1dHRvblRva2Vucy5saW5rQnV0dG9uVGV4dENvbG9yfSk7XG4gICAgICAgIGJhY2tncm91bmQtY2xpcDogdGV4dDtcbiAgICAgICAgLXdlYmtpdC1iYWNrZ3JvdW5kLWNsaXA6IHRleHQ7XG4gICAgICAgIC13ZWJraXQtdGV4dC1maWxsLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICB9XG5cbiAgICAmOmhvdmVyIC5zZGRzLWNvcmUtdGV4dC1ub2RlIHtcbiAgICAgICAgYmFja2dyb3VuZDogdmFyKCR7bGlua0J1dHRvblRva2Vucy5saW5rQnV0dG9uVGV4dENvbG9yfSk7XG4gICAgICAgIGJhY2tncm91bmQtY2xpcDogdGV4dDtcbiAgICAgICAgLXdlYmtpdC1iYWNrZ3JvdW5kLWNsaXA6IHRleHQ7XG4gICAgfVxuXG4gICAgJjphY3RpdmUgLnNkZHMtY29yZS10ZXh0LW5vZGUge1xuICAgICAgICBiYWNrZ3JvdW5kOiB2YXIoJHtsaW5rQnV0dG9uVG9rZW5zLmxpbmtCdXR0b25UZXh0Q29sb3J9KTtcbiAgICAgICAgYmFja2dyb3VuZC1jbGlwOiB0ZXh0O1xuICAgICAgICAtd2Via2l0LWJhY2tncm91bmQtY2xpcDogdGV4dDtcbiAgICB9XG5gO1xuXG5leHBvcnQgY29uc3QgTGlua0J1dHRvbiA9IGZvcndhcmRSZWY8SFRNTEFuY2hvckVsZW1lbnQsIExpbmtCdXR0b25Db21wb25lbnRQcm9wcz4oKHsgdmlldywgLi4ucmVzdCB9LCByZWYpID0+IHtcbiAgICBpZiAodmlldyA9PT0gJ2dyYWRpZW50Jykge1xuICAgICAgICByZXR1cm4gPEdyYWRpZW50TGlua0J1dHRvbiByZWY9e3JlZn0gdmlldz17dmlld30gey4uLnJlc3R9IC8+O1xuICAgIH1cblxuICAgIHJldHVybiA8TGlua0J1dHRvbkNvbXBvbmVudCByZWY9e3JlZn0gdmlldz17dmlld30gey4uLnJlc3R9IC8+O1xufSk7XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBaUJrQyJ9 */");
|
|
11
|
+
export const LinkButton = /*#__PURE__*/ forwardRef(({ view, ...rest }, ref)=>{
|
|
12
|
+
if (view === 'gradient') {
|
|
13
|
+
return /*#__PURE__*/ React.createElement(GradientLinkButton, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
view: view,
|
|
16
|
+
...rest
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return /*#__PURE__*/ React.createElement(LinkButtonComponent, {
|
|
20
|
+
ref: ref,
|
|
21
|
+
view: view,
|
|
22
|
+
...rest
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { NotificationsProvider, Notification } from './Notification';
|
|
2
|
-
export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
+
export { addNotification, closeNotification, useNotifications } from '@salutejs/plasma-new-hope/emotion';
|
|
@@ -214,8 +214,7 @@ export const config = {
|
|
|
214
214
|
},
|
|
215
215
|
pointerSize: {
|
|
216
216
|
small: css`
|
|
217
|
-
${sliderTokens.
|
|
218
|
-
${sliderTokens.thumbBorderStyle}: solid;
|
|
217
|
+
${sliderTokens.thumbWidth}: 1rem;
|
|
219
218
|
${sliderTokens.thumbBorderWidth}: 0.0625rem;
|
|
220
219
|
|
|
221
220
|
${sliderTokens.tickSeparatorWidth}: 0.25rem;
|
|
@@ -223,8 +222,7 @@ export const config = {
|
|
|
223
222
|
${sliderTokens.tickSeparatorBorderRadius}: 0.25rem;
|
|
224
223
|
`,
|
|
225
224
|
large: css`
|
|
226
|
-
${sliderTokens.
|
|
227
|
-
${sliderTokens.thumbBorderStyle}: solid;
|
|
225
|
+
${sliderTokens.thumbWidth}: 1.25rem;
|
|
228
226
|
${sliderTokens.thumbBorderWidth}: 0.0625rem;
|
|
229
227
|
|
|
230
228
|
${sliderTokens.tickSeparatorWidth}: 0.25rem;
|
|
@@ -232,7 +230,7 @@ export const config = {
|
|
|
232
230
|
${sliderTokens.tickSeparatorBorderRadius}: 0.25rem;
|
|
233
231
|
`,
|
|
234
232
|
none: css`
|
|
235
|
-
${sliderTokens.
|
|
233
|
+
${sliderTokens.thumbWidth}: 0rem;
|
|
236
234
|
|
|
237
235
|
${sliderTokens.tickSeparatorWidth}: 0.25rem;
|
|
238
236
|
${sliderTokens.tickSeparatorHeight}: 0.5rem;
|
|
@@ -125,6 +125,16 @@ const config = {
|
|
|
125
125
|
${_styledcomponents.buttonTokens.buttonColorActive}: ${_sdds_finai.onLightTextPrimaryActive};
|
|
126
126
|
${_styledcomponents.buttonTokens.buttonBackgroundColorHover}: ${_sdds_finai.onDarkSurfaceSolidDefaultHover};
|
|
127
127
|
${_styledcomponents.buttonTokens.buttonBackgroundColorActive}: ${_sdds_finai.onDarkSurfaceSolidDefaultActive};
|
|
128
|
+
`,
|
|
129
|
+
gradient: (0, _styledcomponents.css)`
|
|
130
|
+
${_styledcomponents.buttonTokens.buttonColor}: ${_sdds_finai.onLightTextPrimary};
|
|
131
|
+
${_styledcomponents.buttonTokens.buttonTextColor}: ${_sdds_finai.onLightTextPrimary};
|
|
132
|
+
${_styledcomponents.buttonTokens.buttonIconColor}: ${_sdds_finai.onLightTextPrimary};
|
|
133
|
+
${_styledcomponents.buttonTokens.buttonValueColor}: ${_sdds_finai.onLightTextSecondary};
|
|
134
|
+
${_styledcomponents.buttonTokens.buttonBackgroundColor}: ${_sdds_finai.surfaceAccentGradient};
|
|
135
|
+
${_styledcomponents.buttonTokens.buttonLoadingBackgroundColor}: var(${_styledcomponents.buttonTokens.buttonBackgroundColor});
|
|
136
|
+
${_styledcomponents.buttonTokens.buttonBackgroundColorHover}: ${_sdds_finai.surfaceAccentGradient};
|
|
137
|
+
${_styledcomponents.buttonTokens.buttonBackgroundColorActive}: ${_sdds_finai.surfaceAccentGradient};
|
|
128
138
|
`
|
|
129
139
|
},
|
|
130
140
|
size: {
|
|
@@ -136,6 +136,16 @@ const config = {
|
|
|
136
136
|
${_styledcomponents.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_finai.onDarkSurfaceSolidDefaultHover};
|
|
137
137
|
${_styledcomponents.buttonGroupTokens.buttonColorActive}: ${_sdds_finai.onLightTextPrimary};
|
|
138
138
|
${_styledcomponents.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_finai.onDarkSurfaceSolidDefaultActive};
|
|
139
|
+
`,
|
|
140
|
+
gradient: (0, _styledcomponents.css)`
|
|
141
|
+
${_styledcomponents.buttonGroupTokens.buttonColor}: ${_sdds_finai.onLightTextPrimary};
|
|
142
|
+
${_styledcomponents.buttonGroupTokens.buttonTextColor}: ${_sdds_finai.onLightTextPrimary};
|
|
143
|
+
${_styledcomponents.buttonGroupTokens.buttonIconColor}: ${_sdds_finai.onLightTextPrimary};
|
|
144
|
+
${_styledcomponents.buttonGroupTokens.buttonValueColor}: ${_sdds_finai.onLightTextSecondary};
|
|
145
|
+
${_styledcomponents.buttonGroupTokens.buttonBackgroundColor}: ${_sdds_finai.surfaceAccentGradient};
|
|
146
|
+
${_styledcomponents.buttonGroupTokens.buttonLoadingBackgroundColor}: var(${_styledcomponents.buttonGroupTokens.buttonBackgroundColor});
|
|
147
|
+
${_styledcomponents.buttonGroupTokens.buttonBackgroundColorHover}: ${_sdds_finai.surfaceAccentGradient};
|
|
148
|
+
${_styledcomponents.buttonGroupTokens.buttonBackgroundColorActive}: ${_sdds_finai.surfaceAccentGradient};
|
|
139
149
|
`
|
|
140
150
|
},
|
|
141
151
|
size: {
|
|
@@ -66,6 +66,13 @@ const config = {
|
|
|
66
66
|
${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
|
|
67
67
|
${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_finai.textInfoHover};
|
|
68
68
|
${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_finai.textInfoActive};
|
|
69
|
+
`,
|
|
70
|
+
gradient: (0, _styledcomponents.css)`
|
|
71
|
+
${_styledcomponents.embedIconButtonTokens.embedIconButtonColor}: ${_sdds_finai.textAccentGradient};
|
|
72
|
+
${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor}: ${_sdds_finai.surfaceClear};
|
|
73
|
+
${_styledcomponents.embedIconButtonTokens.embedIconButtonLoadingBackgroundColor}: var(${_styledcomponents.embedIconButtonTokens.embedIconButtonBackgroundColor});
|
|
74
|
+
${_styledcomponents.embedIconButtonTokens.embedIconButtonColorHover}: ${_sdds_finai.textAccentGradient};
|
|
75
|
+
${_styledcomponents.embedIconButtonTokens.embedIconButtonColorActive}: ${_sdds_finai.textAccentGradient};
|
|
69
76
|
`
|
|
70
77
|
},
|
|
71
78
|
size: {
|
|
@@ -87,6 +87,13 @@ const config = {
|
|
|
87
87
|
${_styledcomponents.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_styledcomponents.iconButtonTokens.iconButtonBackgroundColor});
|
|
88
88
|
${_styledcomponents.iconButtonTokens.iconButtonColorHover}: ${_sdds_finai.onLightTextPrimaryHover};
|
|
89
89
|
${_styledcomponents.iconButtonTokens.iconButtonColorActive}: ${_sdds_finai.onLightTextPrimaryActive};
|
|
90
|
+
`,
|
|
91
|
+
gradient: (0, _styledcomponents.css)`
|
|
92
|
+
${_styledcomponents.iconButtonTokens.iconButtonColor}: ${_sdds_finai.onLightTextPrimary};
|
|
93
|
+
${_styledcomponents.iconButtonTokens.iconButtonBackgroundColor}: ${_sdds_finai.surfaceAccentGradient};
|
|
94
|
+
${_styledcomponents.iconButtonTokens.iconButtonLoadingBackgroundColor}: var(${_styledcomponents.iconButtonTokens.iconButtonBackgroundColor});
|
|
95
|
+
${_styledcomponents.iconButtonTokens.iconButtonColorHover}: ${_sdds_finai.onLightTextPrimaryHover};
|
|
96
|
+
${_styledcomponents.iconButtonTokens.iconButtonColorActive}: ${_sdds_finai.onLightTextPrimaryActive};
|
|
90
97
|
`
|
|
91
98
|
},
|
|
92
99
|
size: {
|
|
@@ -86,6 +86,16 @@ const config = {
|
|
|
86
86
|
${_styledcomponents.linkButtonTokens.linkButtonFocusColor}: ${_sdds_finai.surfaceAccent};
|
|
87
87
|
${_styledcomponents.linkButtonTokens.linkButtonTextColorHover}: ${_sdds_finai.textInfoHover};
|
|
88
88
|
${_styledcomponents.linkButtonTokens.linkButtonTextColorActive}: ${_sdds_finai.textInfoActive};
|
|
89
|
+
`,
|
|
90
|
+
gradient: (0, _styledcomponents.css)`
|
|
91
|
+
${_styledcomponents.linkButtonTokens.linkButtonIconColor}: ${_sdds_finai.textAccentGradient};
|
|
92
|
+
${_styledcomponents.linkButtonTokens.linkButtonTextColor}: ${_sdds_finai.textAccentGradient};
|
|
93
|
+
${_styledcomponents.linkButtonTokens.linkButtonBackgroundColor}: ${_sdds_finai.surfaceClear};
|
|
94
|
+
${_styledcomponents.linkButtonTokens.linkButtonIconColorHover}: ${_sdds_finai.textAccentGradient};
|
|
95
|
+
${_styledcomponents.linkButtonTokens.linkButtonIconColorActive}: ${_sdds_finai.textAccentGradient};
|
|
96
|
+
${_styledcomponents.linkButtonTokens.linkButtonFocusColor}: ${_sdds_finai.surfaceAccent};
|
|
97
|
+
${_styledcomponents.linkButtonTokens.linkButtonTextColorHover}: ${_sdds_finai.textAccentGradient};
|
|
98
|
+
${_styledcomponents.linkButtonTokens.linkButtonTextColorActive}: ${_sdds_finai.textAccentGradient};
|
|
89
99
|
`
|
|
90
100
|
},
|
|
91
101
|
size: {
|
|
@@ -2,13 +2,92 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
get GradientLinkButton () {
|
|
13
|
+
return GradientLinkButton;
|
|
14
|
+
},
|
|
15
|
+
get LinkButton () {
|
|
8
16
|
return LinkButton;
|
|
9
17
|
}
|
|
10
18
|
});
|
|
11
|
-
const
|
|
19
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
20
|
+
const _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
|
|
21
|
+
const _styledcomponents1 = require("@salutejs/plasma-new-hope/styled-components");
|
|
12
22
|
const _LinkButtonconfig = require("./LinkButton.config");
|
|
13
|
-
|
|
14
|
-
|
|
23
|
+
function _interop_require_default(obj) {
|
|
24
|
+
return obj && obj.__esModule ? obj : {
|
|
25
|
+
default: obj
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
29
|
+
if (typeof WeakMap !== "function") return null;
|
|
30
|
+
var cacheBabelInterop = new WeakMap();
|
|
31
|
+
var cacheNodeInterop = new WeakMap();
|
|
32
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
33
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
34
|
+
})(nodeInterop);
|
|
35
|
+
}
|
|
36
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
37
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
38
|
+
return obj;
|
|
39
|
+
}
|
|
40
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
41
|
+
return {
|
|
42
|
+
default: obj
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
46
|
+
if (cache && cache.has(obj)) {
|
|
47
|
+
return cache.get(obj);
|
|
48
|
+
}
|
|
49
|
+
var newObj = {
|
|
50
|
+
__proto__: null
|
|
51
|
+
};
|
|
52
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
53
|
+
for(var key in obj){
|
|
54
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
55
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
56
|
+
if (desc && (desc.get || desc.set)) {
|
|
57
|
+
Object.defineProperty(newObj, key, desc);
|
|
58
|
+
} else {
|
|
59
|
+
newObj[key] = obj[key];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
newObj.default = obj;
|
|
64
|
+
if (cache) {
|
|
65
|
+
cache.set(obj, newObj);
|
|
66
|
+
}
|
|
67
|
+
return newObj;
|
|
68
|
+
}
|
|
69
|
+
const mergedConfig = (0, _styledcomponents1.mergeConfig)(_styledcomponents1.linkButtonConfig, _LinkButtonconfig.config);
|
|
70
|
+
const LinkButtonComponent = (0, _styledcomponents1.component)(mergedConfig);
|
|
71
|
+
const GradientLinkButton = (0, _styledcomponents.default)(LinkButtonComponent).withConfig({
|
|
72
|
+
displayName: "LinkButton__GradientLinkButton",
|
|
73
|
+
componentId: "sc-f0d786c8-0"
|
|
74
|
+
})([
|
|
75
|
+
`& .sdds-core-text-node{background:var(`,
|
|
76
|
+
`);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}&:hover .sdds-core-text-node{background:var(`,
|
|
77
|
+
`);background-clip:text;-webkit-background-clip:text;}&:active .sdds-core-text-node{background:var(`,
|
|
78
|
+
`);background-clip:text;-webkit-background-clip:text;}`
|
|
79
|
+
], _styledcomponents1.linkButtonTokens.linkButtonTextColor, _styledcomponents1.linkButtonTokens.linkButtonTextColor, _styledcomponents1.linkButtonTokens.linkButtonTextColor);
|
|
80
|
+
const LinkButton = /*#__PURE__*/ (0, _react.forwardRef)(({ view, ...rest }, ref)=>{
|
|
81
|
+
if (view === 'gradient') {
|
|
82
|
+
return /*#__PURE__*/ _react.default.createElement(GradientLinkButton, {
|
|
83
|
+
ref: ref,
|
|
84
|
+
view: view,
|
|
85
|
+
...rest
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return /*#__PURE__*/ _react.default.createElement(LinkButtonComponent, {
|
|
89
|
+
ref: ref,
|
|
90
|
+
view: view,
|
|
91
|
+
...rest
|
|
92
|
+
});
|
|
93
|
+
});
|