@semcore/feature-highlight 17.1.0 → 17.2.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/CHANGELOG.md +10 -0
- package/lib/cjs/components/badge/Badge.js +11 -5
- package/lib/cjs/components/badge/Badge.js.map +1 -1
- package/lib/cjs/components/button/Button.js +22 -9
- package/lib/cjs/components/button/Button.js.map +1 -1
- package/lib/cjs/components/button/Button.type.js.map +1 -1
- package/lib/cjs/components/checkbox/Checkbox.js +9 -3
- package/lib/cjs/components/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/components/input/Input.js +14 -8
- package/lib/cjs/components/input/Input.js.map +1 -1
- package/lib/cjs/components/notice/Notice.js +12 -6
- package/lib/cjs/components/notice/Notice.js.map +1 -1
- package/lib/cjs/components/notice/notice.shadow.css +2 -3
- package/lib/cjs/components/pills/Pills.js +18 -11
- package/lib/cjs/components/pills/Pills.js.map +1 -1
- package/lib/cjs/components/pills/Pills.type.js.map +1 -1
- package/lib/cjs/components/radio/Radio.js +9 -3
- package/lib/cjs/components/radio/Radio.js.map +1 -1
- package/lib/cjs/components/select/Select.js +6 -0
- package/lib/cjs/components/select/Select.js.map +1 -1
- package/lib/cjs/components/switch/Switch.js +10 -4
- package/lib/cjs/components/switch/Switch.js.map +1 -1
- package/lib/cjs/components/tab-line/TabLine.js +15 -8
- package/lib/cjs/components/tab-line/TabLine.js.map +1 -1
- package/lib/cjs/components/tab-line/TabLine.type.js.map +1 -1
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.js +8 -8
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.js.map +1 -1
- package/lib/cjs/inner-components/sparkle/Sparkle.js +13 -13
- package/lib/cjs/inner-components/sparkle/Sparkle.js.map +1 -1
- package/lib/es6/components/badge/Badge.js +11 -5
- package/lib/es6/components/badge/Badge.js.map +1 -1
- package/lib/es6/components/button/Button.js +23 -9
- package/lib/es6/components/button/Button.js.map +1 -1
- package/lib/es6/components/button/Button.type.js.map +1 -1
- package/lib/es6/components/checkbox/Checkbox.js +9 -3
- package/lib/es6/components/checkbox/Checkbox.js.map +1 -1
- package/lib/es6/components/input/Input.js +14 -8
- package/lib/es6/components/input/Input.js.map +1 -1
- package/lib/es6/components/notice/Notice.js +12 -6
- package/lib/es6/components/notice/Notice.js.map +1 -1
- package/lib/es6/components/notice/notice.shadow.css +2 -3
- package/lib/es6/components/pills/Pills.js +18 -11
- package/lib/es6/components/pills/Pills.js.map +1 -1
- package/lib/es6/components/pills/Pills.type.js.map +1 -1
- package/lib/es6/components/radio/Radio.js +9 -3
- package/lib/es6/components/radio/Radio.js.map +1 -1
- package/lib/es6/components/select/Select.js +6 -0
- package/lib/es6/components/select/Select.js.map +1 -1
- package/lib/es6/components/switch/Switch.js +10 -4
- package/lib/es6/components/switch/Switch.js.map +1 -1
- package/lib/es6/components/tab-line/TabLine.js +15 -8
- package/lib/es6/components/tab-line/TabLine.js.map +1 -1
- package/lib/es6/components/tab-line/TabLine.type.js.map +1 -1
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.js +8 -8
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.js.map +1 -1
- package/lib/es6/inner-components/sparkle/Sparkle.js +13 -13
- package/lib/es6/inner-components/sparkle/Sparkle.js.map +1 -1
- package/lib/esm/components/badge/Badge.mjs +7 -7
- package/lib/esm/components/button/Button.mjs +11 -11
- package/lib/esm/components/checkbox/Checkbox.mjs +5 -5
- package/lib/esm/components/input/Input.mjs +10 -10
- package/lib/esm/components/notice/Notice.mjs +8 -8
- package/lib/esm/components/notice/notice.shadow.css +2 -3
- package/lib/esm/components/pills/Pills.mjs +14 -13
- package/lib/esm/components/radio/Radio.mjs +5 -5
- package/lib/esm/components/select/Select.mjs +1 -1
- package/lib/esm/components/switch/Switch.mjs +6 -6
- package/lib/esm/components/tab-line/TabLine.mjs +11 -10
- package/lib/esm/inner-components/button-trigger/ButtonTrigger.mjs +10 -10
- package/lib/esm/inner-components/sparkle/Sparkle.mjs +14 -14
- package/lib/types/components/badge/Badge.d.ts +8 -1
- package/lib/types/components/button/Button.d.ts +5 -0
- package/lib/types/components/button/Button.type.d.ts +3 -0
- package/lib/types/components/checkbox/Checkbox.d.ts +5 -0
- package/lib/types/components/input/Input.d.ts +9 -2
- package/lib/types/components/notice/Notice.d.ts +5 -0
- package/lib/types/components/pills/Pills.d.ts +5 -0
- package/lib/types/components/pills/Pills.type.d.ts +5 -4
- package/lib/types/components/radio/Radio.d.ts +5 -0
- package/lib/types/components/select/Select.d.ts +5 -0
- package/lib/types/components/switch/Switch.d.ts +5 -0
- package/lib/types/components/tab-line/TabLine.d.ts +5 -0
- package/lib/types/components/tab-line/TabLine.type.d.ts +6 -5
- package/lib/types/inner-components/sparkle/Sparkle.d.ts +3 -1
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":["Button","createComponent","Root","sstyled","Component","SummaryAI","React","style","_sstyled","insert","AnimatedSparkles","ButtonFHRoot","constructor","args","_defineProperty","clicked","handleClick","e","onClick","asProps","setState","setTimeout","getAddonProps","state","render","_ref","_ref3","styles","SHighlightedButton","createElement","cn","_assignProps","bind","theme","HighlightAddon","props","_ref2","arguments[0]","_ref4","SAddon","Addon","animatedSparkleCount","Children","children","hasChildren","_assignProps2","Fragment","ButtonFH","Text"],"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import Button from '@semcore/button';\nimport { createComponent, Root, sstyled, Component, type IRootNodeProps } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport React from 'react';\n\nimport style from './button.shadow.css';\nimport type { HighLightedButtonAddonProps, HighlightedButtonComponent } from './Button.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass ButtonFHRoot extends Component {\n static displayName = 'ButtonFH';\n static style = style;\n\n static defaultProps = {\n theme: 'highlighted',\n };\n\n state = {\n clicked: false,\n };\n\n handleClick(e: React.MouseEvent<HTMLButtonElement>) {\n const { onClick } = this.asProps;\n\n onClick?.(e);\n this.setState({ clicked: false });\n setTimeout(() => {\n this.setState({ clicked: true });\n });\n }\n\n getAddonProps() {\n return {\n clicked: this.state.clicked,\n };\n }\n\n render() {\n const { styles } = this.asProps;\n const SHighlightedButton = Root;\n return sstyled(styles)(\n <SHighlightedButton render={Button} use:onClick={this.handleClick.bind(this)} />,\n );\n }\n}\n\nfunction HighlightAddon(props: HighLightedButtonAddonProps & { clicked: boolean } & IRootNodeProps) {\n const SAddon = Root;\n const { clicked, animatedSparkleCount, Children, children: hasChildren } = props;\n return sstyled(props.styles)(\n <SAddon render={Button.Addon}>\n {hasChildren\n ? (<Children />)\n : (\n <>\n <SummaryAI />\n <AnimatedSparkles show={clicked} count={animatedSparkleCount} />\n </>\n )}\n </SAddon>,\n );\n}\n\nexport const ButtonFH = createComponent(ButtonFHRoot, {\n Addon: HighlightAddon,\n Text: Button.Text,\n})
|
|
1
|
+
{"version":3,"file":"Button.js","names":["Button","createComponent","Root","sstyled","Component","SummaryAI","React","style","_sstyled","insert","AnimatedSparkles","ButtonFHRoot","constructor","args","_defineProperty","clicked","handleClick","e","onClick","asProps","setState","setTimeout","getAddonProps","state","render","_ref","_ref3","styles","SHighlightedButton","createElement","cn","_assignProps","bind","theme","HighlightAddon","props","_ref2","arguments[0]","_ref4","SAddon","Addon","animatedSparkleCount","Children","children","hasChildren","_assignProps2","Fragment","ButtonFH","Text"],"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import type { ButtonProps } from '@semcore/button';\nimport Button from '@semcore/button';\nimport { createComponent, Root, sstyled, Component, type IRootNodeProps } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport React from 'react';\n\nimport style from './button.shadow.css';\nimport type { HighLightedButtonAddonProps, HighlightedButtonComponent, HighlightedButtonDefaultProps } from './Button.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\n/*\n * `highlighted` is an internal-only value and cannot be represented in the public prop type.\n * During composition the `highlighted` prop is intentionally stripped, so it never reaches\n * the final component interface. Because of that, this implementation relies on the current approach.\n * Public props are `ButtonProps`.\n*/\ntype HighlightedButtonProps = Omit<ButtonProps, 'theme'> & {\n theme?: ButtonProps['theme'] | 'highlighted';\n};\n\nclass ButtonFHRoot extends Component<\n HighlightedButtonProps,\n [],\n {},\n {},\n {},\n HighlightedButtonDefaultProps\n> {\n static displayName = 'ButtonFH';\n static style = style;\n\n static defaultProps = {\n theme: 'highlighted',\n } as const;\n\n state = {\n clicked: false,\n };\n\n handleClick(e: React.MouseEvent<HTMLButtonElement>) {\n const { onClick } = this.asProps;\n\n onClick?.(e);\n this.setState({ clicked: false });\n setTimeout(() => {\n this.setState({ clicked: true });\n });\n }\n\n getAddonProps() {\n return {\n clicked: this.state.clicked,\n };\n }\n\n render() {\n const { styles } = this.asProps;\n const SHighlightedButton = Root;\n return sstyled(styles)(\n <SHighlightedButton render={Button} use:onClick={this.handleClick.bind(this)} />,\n );\n }\n}\n\nfunction HighlightAddon(props: HighLightedButtonAddonProps & { clicked: boolean } & IRootNodeProps) {\n const SAddon = Root;\n const { clicked, animatedSparkleCount, Children, children: hasChildren } = props;\n return sstyled(props.styles)(\n <SAddon render={Button.Addon}>\n {hasChildren\n ? (<Children />)\n : (\n <>\n <SummaryAI />\n <AnimatedSparkles show={clicked} count={animatedSparkleCount} />\n </>\n )}\n </SAddon>,\n );\n}\n\n/**\n * Button FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#button|Docs}\n */\nexport const ButtonFH = createComponent<\n HighlightedButtonComponent,\n typeof ButtonFHRoot\n>(ButtonFHRoot, {\n Addon: HighlightAddon,\n Text: Button.Text,\n});\n"],"mappings":";;;;AACA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,eAAe,EAAEC,IAAI,EAAEC,OAAO,EAAEC,SAAS,QAA6B,eAAe;AAC9F,OAAOC,SAA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UAAU;AAAAG,eAAA,CAR3BH,YAAY,WASDJ,KAAK;AAAAO,eAAA,CAThBH,YAAY,kBAWM;EACpBsB,KAAK,EAAE;AACT,CAAC;AA+BH,SAASC,cAAcA,CAACC,KAA0E,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;IAAAC,KAAA;EAClG,MAAMC,MAAM,GAGMvC,MAAM,CAACwC,KAAK;EAF9B,MAAM;IAAEzB,OAAO;IAAE0B,oBAAoB;IAAEC,QAAQ;IAAEC,QAAQ,EAAEC;EAAY,CAAC,GAAGT,KAAK;EAChF,OAAAG,KAAA,GAAOnC,OAAO,CAACgC,KAAK,CAACR,MAAM,CAAC,eAC1BrB,KAAA,CAAAuB,aAAA,CAACU,MAAM,EAAAD,KAAA,CAAAR,EAAA;IAAA,GAAAe,aAAA,KAAAT,KAAA;EAAA,IACJQ,WAAW,gBACPtC,KAAA,CAAAuB,aAAA,CAACa,QAAQ,EAAAJ,KAAA,CAAAR,EAAA,gBAAE,CAAC,gBAEXxB,KAAA,CAAAuB,aAAA,CAAAvB,KAAA,CAAAwC,QAAA,qBACExC,KAAA,CAAAuB,aAAA,CAACxB,SAAS,EAAAiC,KAAA,CAAAR,EAAA,iBAAE,CAAC,eACbxB,KAAA,CAAAuB,aAAA,CAACnB,gBAAgB,EAAA4B,KAAA,CAAAR,EAAA;IAAA,QAAOf,OAAO;IAAA,SAAS0B;EAAoB,EAAG,CAC/D,CAEF,CAAC;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,QAAQ,GAAG9C,eAAe,CAGrCU,YAAY,EAAE;EACd6B,KAAK,EAAEN,cAAc;EACrBc,IAAI,EAAEhD,MAAM,CAACgD;AACf,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.type.js","names":[],"sources":["../../../../src/components/button/Button.type.ts"],"sourcesContent":["import type { ButtonAddonProps, ButtonComponent } from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\n\nexport type HighLightedButtonAddonProps = ButtonAddonProps & {\n animatedSparkleCount?: number;\n};\n\nexport type HighlightedButtonComponent = ButtonComponent & {\n Addon: Intergalactic.Component<'div', HighLightedButtonAddonProps>;\n};\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Button.type.js","names":[],"sources":["../../../../src/components/button/Button.type.ts"],"sourcesContent":["import type { ButtonAddonProps, ButtonComponent, ButtonProps } from '@semcore/button';\nimport type { Intergalactic } from '@semcore/core';\n\nexport type HighlightedButtonDefaultProps = {\n theme: 'highlighted';\n};\n\nexport type HighLightedButtonAddonProps = ButtonAddonProps & {\n animatedSparkleCount?: number;\n};\n\nexport type HighlightedButtonComponent = ButtonComponent & {\n Addon: Intergalactic.Component<'div', HighLightedButtonAddonProps>;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -5,11 +5,11 @@ import Checkbox from '@semcore/checkbox';
|
|
|
5
5
|
import { Component, createComponent, Root, sstyled } from '@semcore/core';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
/*!__reshadow-styles__:"./checkbox.shadow.css"*/
|
|
8
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
8
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) [data-ui-name=\"Value.CheckMark\"]{position:relative;transform:translate(0);border:1px solid #0000;border-radius:var(--intergalactic-addon-rounded,4px);background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box;background-origin:border-box;background-clip:padding-box,border-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) [data-ui-name=\"Value.CheckMark\"]{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box}@media (color-gamut:p3){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) [data-ui-name=\"Value.CheckMark\"]{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe)) border-box}}}.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked+[data-ui-name=\"Value.CheckMark\"]{border-color:#0000;background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) padding-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) border-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked+[data-ui-name=\"Value.CheckMark\"]{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) padding-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) border-box}@media (color-gamut:p3){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked+[data-ui-name=\"Value.CheckMark\"]{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5)) padding-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5)) border-box}}}.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) [data-ui-name=\"Value.CheckMark\"]:before{content:\"\";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:-5px;padding:1px;border-width:2px;border-radius:calc(var(--intergalactic-addon-rounded, 4px) + 3px);border-color:#0000;pointer-events:none;background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box;-webkit-mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transform:scale(.9);transition:opacity calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,transform calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) [data-ui-name=\"Value.CheckMark\"]:before{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box}@media (color-gamut:p3){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) [data-ui-name=\"Value.CheckMark\"]:before{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe)) border-box}}}.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked:not(:focus-visible)+[data-ui-name=\"Value.CheckMark\"]:before{opacity:0;transform:scale(.9)}.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:focus-visible+[data-ui-name=\"Value.CheckMark\"]:before{opacity:1;transform:scale(1)}.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked:focus-visible+[data-ui-name=\"Value.CheckMark\"]:before{border-color:#0000;background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) border-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked:focus-visible+[data-ui-name=\"Value.CheckMark\"]:before{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) border-box}@media (color-gamut:p3){.___SHighlightedCheckbox_goyxa_gg_:not(._state_invalid_goyxa_gg_) input[data-ui-name=\"CheckboxFH.Value\"]:checked:focus-visible+[data-ui-name=\"Value.CheckMark\"]:before{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5)) border-box}}}", /*__inner_css_end__*/"goyxa_gg_"),
|
|
9
9
|
/*__reshadow_css_end__*/
|
|
10
10
|
{
|
|
11
|
-
"__SHighlightedCheckbox": "
|
|
12
|
-
"_state_invalid": "
|
|
11
|
+
"__SHighlightedCheckbox": "___SHighlightedCheckbox_goyxa_gg_",
|
|
12
|
+
"_state_invalid": "_state_invalid_goyxa_gg_"
|
|
13
13
|
});
|
|
14
14
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
15
15
|
class CheckboxFHRoot extends Component {
|
|
@@ -52,6 +52,12 @@ class CheckboxFHRoot extends Component {
|
|
|
52
52
|
}), hasChildren ? /*#__PURE__*/React.createElement(Children, _ref2.cn("Children", {})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CheckboxFH.Value, null), /*#__PURE__*/React.createElement(CheckboxFH.Text, null)));
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Checkbox FeatureHighlight
|
|
58
|
+
*
|
|
59
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#checkbox|Docs}
|
|
60
|
+
*/
|
|
55
61
|
_defineProperty(CheckboxFHRoot, "displayName", 'CheckboxFH');
|
|
56
62
|
_defineProperty(CheckboxFHRoot, "style", style);
|
|
57
63
|
export const CheckboxFH = createComponent(CheckboxFHRoot, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","names":["Checkbox","Component","createComponent","Root","sstyled","React","style","_sstyled","insert","AnimatedSparkles","CheckboxFHRoot","constructor","args","_defineProperty","createRef","getValueProps","ref","inputRef","onChange","setTimeout","forceUpdate","getAnimatedSparklesProps","size","asProps","checked","current","show","top","left","render","_ref","_ref2","SHighlightedCheckbox","styles","Children","children","hasChildren","createElement","cn","_assignProps","Fragment","CheckboxFH","Value","Text"],"sources":["../../../../src/components/checkbox/Checkbox.tsx"],"sourcesContent":["import type { NSCheckbox } from '@semcore/checkbox';\nimport Checkbox from '@semcore/checkbox';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport React from 'react';\n\nimport style from './checkbox.shadow.css';\nimport type { HighlightedCheckboxComponent } from './Checkbox.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass CheckboxFHRoot extends Component<NSCheckbox.Props> {\n static displayName = 'CheckboxFH';\n static style = style;\n\n inputRef = React.createRef<HTMLInputElement>();\n\n getValueProps() {\n return {\n ref: this.inputRef,\n onChange: () => {\n setTimeout(() => {\n this.forceUpdate();\n });\n },\n };\n }\n\n getAnimatedSparklesProps() {\n const { size } = this.asProps;\n const checked = this.inputRef.current?.checked;\n\n return {\n show: checked,\n top: size === 'l' ? '7px' : '5px',\n left: size === 'l' ? '5px' : '3px',\n };\n }\n\n render() {\n const SHighlightedCheckbox = Root;\n const { styles, Children, children: hasChildren } = this.asProps;\n\n return sstyled(styles)(\n <SHighlightedCheckbox render={Checkbox}>\n {hasChildren\n ? <Children />\n : (\n <>\n <CheckboxFH.Value />\n <CheckboxFH.Text />\n </>\n )}\n </SHighlightedCheckbox>,\n );\n }\n}\n\nexport const CheckboxFH = createComponent(CheckboxFHRoot, {\n Text: Checkbox.Text,\n Value: Checkbox.Value,\n AnimatedSparkles,\n})
|
|
1
|
+
{"version":3,"file":"Checkbox.js","names":["Checkbox","Component","createComponent","Root","sstyled","React","style","_sstyled","insert","AnimatedSparkles","CheckboxFHRoot","constructor","args","_defineProperty","createRef","getValueProps","ref","inputRef","onChange","setTimeout","forceUpdate","getAnimatedSparklesProps","size","asProps","checked","current","show","top","left","render","_ref","_ref2","SHighlightedCheckbox","styles","Children","children","hasChildren","createElement","cn","_assignProps","Fragment","CheckboxFH","Value","Text"],"sources":["../../../../src/components/checkbox/Checkbox.tsx"],"sourcesContent":["import type { NSCheckbox } from '@semcore/checkbox';\nimport Checkbox from '@semcore/checkbox';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport React from 'react';\n\nimport style from './checkbox.shadow.css';\nimport type { HighlightedCheckboxComponent } from './Checkbox.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass CheckboxFHRoot extends Component<NSCheckbox.Props> {\n static displayName = 'CheckboxFH';\n static style = style;\n\n inputRef = React.createRef<HTMLInputElement>();\n\n getValueProps() {\n return {\n ref: this.inputRef,\n onChange: () => {\n setTimeout(() => {\n this.forceUpdate();\n });\n },\n };\n }\n\n getAnimatedSparklesProps() {\n const { size } = this.asProps;\n const checked = this.inputRef.current?.checked;\n\n return {\n show: checked,\n top: size === 'l' ? '7px' : '5px',\n left: size === 'l' ? '5px' : '3px',\n };\n }\n\n render() {\n const SHighlightedCheckbox = Root;\n const { styles, Children, children: hasChildren } = this.asProps;\n\n return sstyled(styles)(\n <SHighlightedCheckbox render={Checkbox}>\n {hasChildren\n ? <Children />\n : (\n <>\n <CheckboxFH.Value />\n <CheckboxFH.Text />\n </>\n )}\n </SHighlightedCheckbox>,\n );\n }\n}\n\n/**\n * Checkbox FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#checkbox|Docs}\n */\nexport const CheckboxFH = createComponent<\n HighlightedCheckboxComponent,\n typeof CheckboxFHRoot\n>(CheckboxFHRoot, {\n Text: Checkbox.Text,\n Value: Checkbox.Value,\n AnimatedSparkles,\n});\n"],"mappings":";;;AACA,OAAOA,QAAQ,MAAM,mBAAmB;AACxC,SAASC,SAAS,EAAEC,eAAe,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,gBAAgB,QAAQ,iDAAiD;AAElF,MAAMC,cAAc,SAAST,SAAS,CAAmB;EAAAU,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,gCAI5CR,KAAK,CAACS,SAAS,CAAmB,CAAC;EAAA;EAE9CC,aAAaA,CAAA,EAAG;IACd,OAAO;MACLC,GAAG,EAAE,IAAI,CAACC,QAAQ;MAClBC,QAAQ,EAAEA,CAAA,KAAM;QACdC,UAAU,CAAC,MAAM;UACf,IAAI,CAACC,WAAW,CAAC,CAAC;QACpB,CAAC,CAAC;MACJ;IACF,CAAC;EACH;EAEAC,wBAAwBA,CAAA,EAAG;IACzB,MAAM;MAAEC;IAAK,CAAC,GAAG,IAAI,CAACC,OAAO;IAC7B,MAAMC,OAAO,GAAG,IAAI,CAACP,QAAQ,CAACQ,OAAO,EAAED,OAAO;IAE9C,OAAO;MACLE,IAAI,EAAEF,OAAO;MACbG,GAAG,EAAEL,IAAI,KAAK,GAAG,GAAG,KAAK,GAAG,KAAK;MACjCM,IAAI,EAAEN,IAAI,KAAK,GAAG,GAAG,KAAK,GAAG;IAC/B,CAAC;EACH;EAEAO,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAP,OAAA;MAAAQ,KAAA;IACP,MAAMC,oBAAoB,GAIMhC,QAAQ;IAHxC,MAAM;MAAEiC,MAAM;MAAEC,QAAQ;MAAEC,QAAQ,EAAEC;IAAY,CAAC,GAAG,IAAI,CAACb,OAAO;IAEhE,OAAAQ,KAAA,GAAO3B,OAAO,CAAC6B,MAAM,CAAC,eACpB5B,KAAA,CAAAgC,aAAA,CAACL,oBAAoB,EAAAD,KAAA,CAAAO,EAAA;MAAA,GAAAC,YAAA,KAAAT,IAAA;IAAA,IAClBM,WAAW,gBACR/B,KAAA,CAAAgC,aAAA,CAACH,QAAQ,EAAAH,KAAA,CAAAO,EAAA,gBAAE,CAAC,gBAEVjC,KAAA,CAAAgC,aAAA,CAAAhC,KAAA,CAAAmC,QAAA,qBACEnC,KAAA,CAAAgC,aAAA,CAACI,UAAU,CAACC,KAAK,MAAE,CAAC,eACpBrC,KAAA,CAAAgC,aAAA,CAACI,UAAU,CAACE,IAAI,MAAE,CAClB,CAEY,CAAC;EAE3B;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJA9B,eAAA,CA/CMH,cAAc,iBACG,YAAY;AAAAG,eAAA,CAD7BH,cAAc,WAEHJ,KAAK;AAkDtB,OAAO,MAAMmC,UAAU,GAAGvC,eAAe,CAGvCQ,cAAc,EAAE;EAChBiC,IAAI,EAAE3C,QAAQ,CAAC2C,IAAI;EACnBD,KAAK,EAAE1C,QAAQ,CAAC0C,KAAK;EACrBjC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,16 +7,16 @@ import SummaryAI from '@semcore/icon/SummaryAI/m';
|
|
|
7
7
|
import Input from '@semcore/input';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
/*!__reshadow-styles__:"./input.shadow.css"*/
|
|
10
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
10
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_ .___SOutline_82xo3_gg_{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box;background-origin:border-box;background-clip:padding-box,border-box;border-color:#0000}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_ .___SOutline_82xo3_gg_{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box}@media (color-gamut:p3){.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_ .___SOutline_82xo3_gg_{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe)) border-box}}}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_ .___SOutline_82xo3_gg_:before{content:\"\";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:-3px;padding:3px;border-radius:calc(var(--intergalactic-control-rounded, 6px) + 3px);background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb));-webkit-mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_ .___SOutline_82xo3_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb))}@media (color-gamut:p3){.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_ .___SOutline_82xo3_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#666bdb))}}}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_:has(.___SValue_82xo3_gg_:focus-visible) .___SOutline_82xo3_gg_{outline:none}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_:has(.___SValue_82xo3_gg_:focus-visible) .___SOutline_82xo3_gg_:before{opacity:1}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_._neighborLocation_left_82xo3_gg_ .___SOutline_82xo3_gg_:before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_._neighborLocation_right_82xo3_gg_ .___SOutline_82xo3_gg_:before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_._neighborLocation_both_82xo3_gg_ .___SOutline_82xo3_gg_:before{border-radius:0}@supports not (-webkit-mask-composite:xor){.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_:has(.___SValue_82xo3_gg_:focus-visible) .___SOutline_82xo3_gg_{outline:none;border-color:#7078fc;box-shadow:0 0 0 0 #fff,0 0 0 2px #7078fc}.___SHighlightedInput_82xo3_gg_._state_normal_82xo3_gg_:has(.___SValue_82xo3_gg_:focus-visible) .___SOutline_82xo3_gg_:before{display:none}}", /*__inner_css_end__*/"82xo3_gg_"),
|
|
11
11
|
/*__reshadow_css_end__*/
|
|
12
12
|
{
|
|
13
|
-
"__SHighlightedInput": "
|
|
14
|
-
"_state_normal": "
|
|
15
|
-
"__SValue": "
|
|
16
|
-
"__SOutline": "
|
|
17
|
-
"_neighborLocation_left": "
|
|
18
|
-
"_neighborLocation_right": "
|
|
19
|
-
"_neighborLocation_both": "
|
|
13
|
+
"__SHighlightedInput": "___SHighlightedInput_82xo3_gg_",
|
|
14
|
+
"_state_normal": "_state_normal_82xo3_gg_",
|
|
15
|
+
"__SValue": "___SValue_82xo3_gg_",
|
|
16
|
+
"__SOutline": "___SOutline_82xo3_gg_",
|
|
17
|
+
"_neighborLocation_left": "_neighborLocation_left_82xo3_gg_",
|
|
18
|
+
"_neighborLocation_right": "_neighborLocation_right_82xo3_gg_",
|
|
19
|
+
"_neighborLocation_both": "_neighborLocation_both_82xo3_gg_"
|
|
20
20
|
});
|
|
21
21
|
class InputFHRoot extends Component {
|
|
22
22
|
render() {
|
|
@@ -40,6 +40,12 @@ function HighlightAddon(props) {
|
|
|
40
40
|
color: "--intergalactic-icon-primary-feature-highlight"
|
|
41
41
|
}));
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Input FeatureHighlight
|
|
46
|
+
*
|
|
47
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#input|Docs}
|
|
48
|
+
*/
|
|
43
49
|
export const InputFH = createComponent(InputFHRoot, {
|
|
44
50
|
Addon: HighlightAddon,
|
|
45
51
|
Value: Input.Value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","names":["Component","createComponent","Root","sstyled","SummaryAI","Input","React","style","_sstyled","insert","InputFHRoot","render","_ref","asProps","_ref3","SHighlightedInput","styles","createElement","cn","_assignProps","_defineProperty","HighlightAddon","props","_ref2","arguments[0]","Children","children","hasChildren","Addon","_assignProps2","color","InputFH","Value"],"sources":["../../../../src/components/input/Input.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport Input from '@semcore/input';\nimport React from 'react';\n\nimport style from './input.shadow.css';\n\nclass InputFHRoot extends Component {\n static displayName = 'InputFH';\n static style = style;\n\n render() {\n const SHighlightedInput = Root;\n return sstyled(this.asProps.styles)(\n <SHighlightedInput render={Input} />,\n );\n }\n}\n\nfunction HighlightAddon(props: IRootComponentProps) {\n const { Children, children: hasChildren } = props;\n return (\n <Root render={Input.Addon}>\n {hasChildren ? (<Children />) : (<SummaryAI color='--intergalactic-icon-primary-feature-highlight' />)}\n </Root>\n );\n}\n\nexport const InputFH = createComponent(InputFHRoot, {\n Addon: HighlightAddon,\n Value: Input.Value,\n})
|
|
1
|
+
{"version":3,"file":"Input.js","names":["Component","createComponent","Root","sstyled","SummaryAI","Input","React","style","_sstyled","insert","InputFHRoot","render","_ref","asProps","_ref3","SHighlightedInput","styles","createElement","cn","_assignProps","_defineProperty","HighlightAddon","props","_ref2","arguments[0]","Children","children","hasChildren","Addon","_assignProps2","color","InputFH","Value"],"sources":["../../../../src/components/input/Input.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport Input from '@semcore/input';\nimport React from 'react';\n\nimport style from './input.shadow.css';\n\nclass InputFHRoot extends Component {\n static displayName = 'InputFH';\n static style = style;\n\n render() {\n const SHighlightedInput = Root;\n return sstyled(this.asProps.styles)(\n <SHighlightedInput render={Input} />,\n );\n }\n}\n\nfunction HighlightAddon(props: IRootComponentProps) {\n const { Children, children: hasChildren } = props;\n return (\n <Root render={Input.Addon}>\n {hasChildren ? (<Children />) : (<SummaryAI color='--intergalactic-icon-primary-feature-highlight' />)}\n </Root>\n );\n}\n\n/**\n * Input FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#input|Docs}\n */\nexport const InputFH = createComponent<\n typeof Input,\n typeof InputFHRoot\n>(InputFHRoot, {\n Addon: HighlightAddon,\n Value: Input.Value,\n});\n"],"mappings":";;;;AACA,SAASA,SAAS,EAAEC,eAAe,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,OAAOC,SAAS,MAAM,2BAA2B;AACjD,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
7
7
|
import Notice from '@semcore/notice';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
/*!__reshadow-styles__:"./notice.shadow.css"*/
|
|
10
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
10
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_{background-image:var(--intergalactic-bg-secondary-feature-highlight,linear-gradient(90deg in oklch,#f7f3ff,#dee7ff));border-color:#0000;background-clip:padding-box;position:relative}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_{background-image:var(--intergalactic-bg-secondary-feature-highlight,linear-gradient(90deg in oklch,#f7f3ff,#dee7ff))}@media (color-gamut:p3){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_{background-image:var(--intergalactic-bg-secondary-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .96716 .95079 .99961),color(display-p3 .87344 .9059 .99962)))}}}.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_:before{content:\"\";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-1px;border-radius:inherit;visibility:var(--beforeVisibility_v4i66);background:var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) padding-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_:before{background:var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5)) padding-box}@media (color-gamut:p3){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_:before{background:var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe)) border-box,var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5)) padding-box}}}.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_ .___SLabel_v4i66_gg_{color:var(--intergalactic-icon-primary-feature-highlight,#9041fa)}.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_ .___SCloseIcon_v4i66_gg_{color:var(--intergalactic-icon-primary-neutral,#00040186)}@media (hover:hover){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_ .___SCloseIcon_v4i66_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active,#00030095)}@supports (color:color(display-p3 0 0 0%)){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_ .___SCloseIcon_v4i66_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active,#00030095)}@media (color-gamut:p3){.___SHighlightedNotice_v4i66_gg_.__beforeVisibility_v4i66_gg_ .___SCloseIcon_v4i66_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active,color(display-p3 .00228 .01289 .00252/.583))}}}}", /*__inner_css_end__*/"v4i66_gg_"),
|
|
11
11
|
/*__reshadow_css_end__*/
|
|
12
12
|
{
|
|
13
|
-
"__SHighlightedNotice": "
|
|
14
|
-
"_beforeVisibility": "
|
|
15
|
-
"--beforeVisibility": "--
|
|
16
|
-
"__SLabel": "
|
|
17
|
-
"__SCloseIcon": "
|
|
13
|
+
"__SHighlightedNotice": "___SHighlightedNotice_v4i66_gg_",
|
|
14
|
+
"_beforeVisibility": "__beforeVisibility_v4i66_gg_",
|
|
15
|
+
"--beforeVisibility": "--beforeVisibility_v4i66",
|
|
16
|
+
"__SLabel": "___SLabel_v4i66_gg_",
|
|
17
|
+
"__SCloseIcon": "___SCloseIcon_v4i66_gg_"
|
|
18
18
|
});
|
|
19
19
|
class NoticeFHRoot extends Component {
|
|
20
20
|
renderSmartMode() {
|
|
@@ -56,6 +56,12 @@ class NoticeFHRoot extends Component {
|
|
|
56
56
|
}), advancedMode ? this.renderAdvancedMode() : this.renderSmartMode());
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Notice FeatureHighlight
|
|
62
|
+
*
|
|
63
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#notice|Docs}
|
|
64
|
+
*/
|
|
59
65
|
_defineProperty(NoticeFHRoot, "displayName", 'NoticeFH');
|
|
60
66
|
_defineProperty(NoticeFHRoot, "style", style);
|
|
61
67
|
export const NoticeFH = createComponent(NoticeFHRoot, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["createComponent","Component","Root","sstyled","isAdvanceMode","isNode","Notice","React","style","_sstyled","insert","NoticeFHRoot","renderSmartMode","label","title","text","actions","closable","onClose","asProps","createElement","Fragment","Label","Content","Title","Text","Actions","Close","onClick","renderAdvancedMode","Children","render","_ref","_ref2","SHighlightedNotice","styles","visible","advancedMode","NoticeFH","displayName","beforeVisibility","undefined","cn","_assignProps","_defineProperty"],"sources":["../../../../src/components/notice/Notice.tsx"],"sourcesContent":["import { createComponent, Component, Root, sstyled } from '@semcore/core';\nimport { isAdvanceMode } from '@semcore/core/lib/utils/findComponent';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport type { NoticeSmartProps } from '@semcore/notice';\nimport Notice from '@semcore/notice';\nimport React from 'react';\n\nimport style from './notice.shadow.css';\nimport type { HighlightedNoticeComponent } from './Notice.type';\n\nclass NoticeFHRoot extends Component<NoticeSmartProps> {\n static displayName = 'NoticeFH';\n static style = style;\n\n renderSmartMode() {\n const { label, title, text, actions, closable, onClose } = this.asProps;\n\n return (\n <>\n {isNode(label) && <Notice.Label>{label}</Notice.Label>}\n <Notice.Content>\n {isNode(title) && <Notice.Title>{title}</Notice.Title>}\n {isNode(text) && <Notice.Text>{text}</Notice.Text>}\n {isNode(actions) && <Notice.Actions>{actions}</Notice.Actions>}\n </Notice.Content>\n {closable && <Notice.Close onClick={onClose} />}\n </>\n );\n }\n\n renderAdvancedMode() {\n const { Children } = this.asProps;\n\n return <Children />;\n }\n\n render() {\n const SHighlightedNotice = Root;\n const { styles, Children, visible } = this.asProps;\n\n const advancedMode = isAdvanceMode(Children, [\n NoticeFH.Label.displayName,\n NoticeFH.Actions.displayName,\n NoticeFH.Content.displayName,\n NoticeFH.Title.displayName,\n NoticeFH.Text.displayName,\n NoticeFH.Close.displayName,\n ]);\n\n const beforeVisibility = visible === undefined || visible ? 'visible' : 'hidden';\n\n return sstyled(styles)(\n <SHighlightedNotice render={Notice} beforeVisibility={beforeVisibility} __excludeProps={['title']} use:theme={undefined}>\n {advancedMode ? this.renderAdvancedMode() : this.renderSmartMode()}\n </SHighlightedNotice>,\n );\n }\n}\n\nexport const NoticeFH = createComponent(NoticeFHRoot, {\n Label: Notice.Label,\n Actions: Notice.Actions,\n Content: Notice.Content,\n Title: Notice.Title,\n Text: Notice.Text,\n Close: Notice.Close,\n})
|
|
1
|
+
{"version":3,"file":"Notice.js","names":["createComponent","Component","Root","sstyled","isAdvanceMode","isNode","Notice","React","style","_sstyled","insert","NoticeFHRoot","renderSmartMode","label","title","text","actions","closable","onClose","asProps","createElement","Fragment","Label","Content","Title","Text","Actions","Close","onClick","renderAdvancedMode","Children","render","_ref","_ref2","SHighlightedNotice","styles","visible","advancedMode","NoticeFH","displayName","beforeVisibility","undefined","cn","_assignProps","_defineProperty"],"sources":["../../../../src/components/notice/Notice.tsx"],"sourcesContent":["import { createComponent, Component, Root, sstyled } from '@semcore/core';\nimport { isAdvanceMode } from '@semcore/core/lib/utils/findComponent';\nimport isNode from '@semcore/core/lib/utils/isNode';\nimport type { NoticeSmartProps } from '@semcore/notice';\nimport Notice from '@semcore/notice';\nimport React from 'react';\n\nimport style from './notice.shadow.css';\nimport type { HighlightedNoticeComponent } from './Notice.type';\n\nclass NoticeFHRoot extends Component<NoticeSmartProps> {\n static displayName = 'NoticeFH';\n static style = style;\n\n renderSmartMode() {\n const { label, title, text, actions, closable, onClose } = this.asProps;\n\n return (\n <>\n {isNode(label) && <Notice.Label>{label}</Notice.Label>}\n <Notice.Content>\n {isNode(title) && <Notice.Title>{title}</Notice.Title>}\n {isNode(text) && <Notice.Text>{text}</Notice.Text>}\n {isNode(actions) && <Notice.Actions>{actions}</Notice.Actions>}\n </Notice.Content>\n {closable && <Notice.Close onClick={onClose} />}\n </>\n );\n }\n\n renderAdvancedMode() {\n const { Children } = this.asProps;\n\n return <Children />;\n }\n\n render() {\n const SHighlightedNotice = Root;\n const { styles, Children, visible } = this.asProps;\n\n const advancedMode = isAdvanceMode(Children, [\n NoticeFH.Label.displayName,\n NoticeFH.Actions.displayName,\n NoticeFH.Content.displayName,\n NoticeFH.Title.displayName,\n NoticeFH.Text.displayName,\n NoticeFH.Close.displayName,\n ]);\n\n const beforeVisibility = visible === undefined || visible ? 'visible' : 'hidden';\n\n return sstyled(styles)(\n <SHighlightedNotice render={Notice} beforeVisibility={beforeVisibility} __excludeProps={['title']} use:theme={undefined}>\n {advancedMode ? this.renderAdvancedMode() : this.renderSmartMode()}\n </SHighlightedNotice>,\n );\n }\n}\n\n/**\n * Notice FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#notice|Docs}\n */\nexport const NoticeFH = createComponent<\n HighlightedNoticeComponent,\n typeof NoticeFHRoot\n>(NoticeFHRoot, {\n Label: Notice.Label,\n Actions: Notice.Actions,\n Content: Notice.Content,\n Title: Notice.Title,\n Text: Notice.Text,\n Close: Notice.Close,\n});\n"],"mappings":";;;AAAA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,aAAa,QAAQ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,EAAElB,MAAM,CAACkB,KAAK;EACnBC,IAAI,EAAEnB,MAAM,CAACmB,IAAI;EACjBE,KAAK,EAAErB,MAAM,CAACqB;AAChB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -13,8 +13,7 @@ SHighlightedNotice[beforeVisibility] {
|
|
|
13
13
|
border-radius: inherit;
|
|
14
14
|
visibility: var(--beforeVisibility);
|
|
15
15
|
|
|
16
|
-
background: var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, oklch(0.82 0.118 303), oklch(0.82 0.088 272.1))
|
|
17
|
-
) border-box, var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, oklch(0.74 0.17 303), oklch(0.74 0.117 274.1))) padding-box;
|
|
16
|
+
background: var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, oklch(0.82 0.118 303), oklch(0.82 0.088 272.1))) border-box, var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, oklch(0.74 0.17 303), oklch(0.74 0.117 274.1))) padding-box;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
& SLabel {
|
|
@@ -28,4 +27,4 @@ SHighlightedNotice[beforeVisibility] {
|
|
|
28
27
|
color: var(--intergalactic-icon-primary-neutral-hover-active, oklch(0.088 0.026 147.7 / 0.583));
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
|
-
}
|
|
30
|
+
}
|
|
@@ -8,15 +8,15 @@ import SummaryAI from '@semcore/icon/SummaryAI/m';
|
|
|
8
8
|
import Pills from '@semcore/pills';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
/*!__reshadow-styles__:"./pills.shadow.css"*/
|
|
11
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
11
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedPill_1l6cc_gg_{border:1px solid #0000;background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box;background-origin:border-box;background-clip:padding-box,border-box;z-index:1;position:relative}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedPill_1l6cc_gg_{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box}@media (color-gamut:p3){.___SHighlightedPill_1l6cc_gg_{background:linear-gradient(#fff,#fff) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe)) border-box}}}.___SHighlightedPill_1l6cc_gg_:before{content:\"\";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:-5px;padding:2px;border-radius:calc(var(--intergalactic-control-rounded, 6px) + 3px);background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb));-webkit-mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transform:scale(.96);will-change:opacity,transform;transition:opacity calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,transform calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedPill_1l6cc_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb))}@media (color-gamut:p3){.___SHighlightedPill_1l6cc_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#666bdb))}}}.___SHighlightedPill_1l6cc_gg_._neighborLocation_left_1l6cc_gg_:before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedPill_1l6cc_gg_._neighborLocation_right_1l6cc_gg_:before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedPill_1l6cc_gg_._neighborLocation_both_1l6cc_gg_:before{border-radius:0}@media (hover:hover){.___SHighlightedPill_1l6cc_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active,linear-gradient(90deg in oklch,#f7f3ff,#dee7ff)) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedPill_1l6cc_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active,linear-gradient(90deg in oklch,#f7f3ff,#dee7ff)) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe)) border-box}@media (color-gamut:p3){.___SHighlightedPill_1l6cc_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active,linear-gradient(90deg in oklch,color(display-p3 .96716 .95079 .99961),color(display-p3 .87344 .9059 .99962))) padding-box,var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe)) border-box}}}}.___SHighlightedPill_1l6cc_gg_.__selected_1l6cc_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active,linear-gradient(90deg in oklch,#f7f3ff,#dee7ff)) padding-box,var(--intergalactic-control-primary-feature-highlight-hover,linear-gradient(90deg in oklch,#a261fd,#94a5f5)) border-box;background-origin:border-box;background-clip:padding-box,border-box;border-color:#0000}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedPill_1l6cc_gg_.__selected_1l6cc_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active,linear-gradient(90deg in oklch,#f7f3ff,#dee7ff)) padding-box,var(--intergalactic-control-primary-feature-highlight-hover,linear-gradient(90deg in oklch,#a261fd,#94a5f5)) border-box}@media (color-gamut:p3){.___SHighlightedPill_1l6cc_gg_.__selected_1l6cc_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active,linear-gradient(90deg in oklch,color(display-p3 .96716 .95079 .99961),color(display-p3 .87344 .9059 .99962))) padding-box,var(--intergalactic-control-primary-feature-highlight-hover,linear-gradient(90deg in oklch,#a261fd,#94a5f5)) border-box}}}.___SPills_1l6cc_gg_ .___SHighlightedPill_1l6cc_gg_:focus-visible{outline:none}.___SPills_1l6cc_gg_ .___SHighlightedPill_1l6cc_gg_:focus-visible:before{opacity:1;transform:scale(1)}@supports not (-webkit-mask-composite:xor){.___SHighlightedPill_1l6cc_gg_:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SHighlightedPill_1l6cc_gg_:focus-visible:before{display:none}}", /*__inner_css_end__*/"1l6cc_gg_"),
|
|
12
12
|
/*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SHighlightedPill": "
|
|
15
|
-
"_neighborLocation_left": "
|
|
16
|
-
"_neighborLocation_right": "
|
|
17
|
-
"_neighborLocation_both": "
|
|
18
|
-
"_selected": "
|
|
19
|
-
"__SPills": "
|
|
14
|
+
"__SHighlightedPill": "___SHighlightedPill_1l6cc_gg_",
|
|
15
|
+
"_neighborLocation_left": "_neighborLocation_left_1l6cc_gg_",
|
|
16
|
+
"_neighborLocation_right": "_neighborLocation_right_1l6cc_gg_",
|
|
17
|
+
"_neighborLocation_both": "_neighborLocation_both_1l6cc_gg_",
|
|
18
|
+
"_selected": "__selected_1l6cc_gg_",
|
|
19
|
+
"__SPills": "___SPills_1l6cc_gg_"
|
|
20
20
|
});
|
|
21
21
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
22
22
|
class PillsFHRoot extends Component {
|
|
@@ -81,11 +81,18 @@ function HighlightedItemAddon(props) {
|
|
|
81
81
|
count: animatedSparkleCount
|
|
82
82
|
})));
|
|
83
83
|
}
|
|
84
|
+
const HighlightedItem = createComponent(HighlightedItemRoot, {
|
|
85
|
+
Text: Pills.Item.Text,
|
|
86
|
+
Addon: HighlightedItemAddon
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Pills FeatureHighlight
|
|
91
|
+
*
|
|
92
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#pills|Docs}
|
|
93
|
+
*/
|
|
84
94
|
export const PillsFH = createComponent(PillsFHRoot, {
|
|
85
95
|
Item: Pills.Item,
|
|
86
|
-
HighlightedItem
|
|
87
|
-
Text: Pills.Item.Text,
|
|
88
|
-
Addon: HighlightedItemAddon
|
|
89
|
-
})
|
|
96
|
+
HighlightedItem
|
|
90
97
|
});
|
|
91
98
|
//# sourceMappingURL=Pills.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pills.js","names":["createComponent","Root","Component","sstyled","SummaryAI","Pills","React","style","_sstyled","insert","AnimatedSparkles","PillsFHRoot","render","_ref","asProps","createElement","_assignProps","_defineProperty","HighlightedItemRoot","constructor","args","clicked","handleClick","e","onClick","setState","setTimeout","getAddonProps","state","_ref2","_ref4","SHighlightedPill","Item","styles","cn","_assignProps2","bind","HighlightedItemAddon","props","_ref3","arguments[0]","animatedSparkleCount","Children","children","Addon","_assignProps3","undefined","Fragment","color","show","count","
|
|
1
|
+
{"version":3,"file":"Pills.js","names":["createComponent","Root","Component","sstyled","SummaryAI","Pills","React","style","_sstyled","insert","AnimatedSparkles","PillsFHRoot","render","_ref","asProps","createElement","_assignProps","_defineProperty","HighlightedItemRoot","constructor","args","clicked","handleClick","e","onClick","setState","setTimeout","getAddonProps","state","_ref2","_ref4","SHighlightedPill","Item","styles","cn","_assignProps2","bind","HighlightedItemAddon","props","_ref3","arguments[0]","animatedSparkleCount","Children","children","Addon","_assignProps3","undefined","Fragment","color","show","count","HighlightedItem","Text","PillsFH"],"sources":["../../../../src/components/pills/Pills.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component, sstyled } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport Pills from '@semcore/pills';\nimport React from 'react';\n\nimport style from './pills.shadow.css';\nimport type { HighlightedItemAddonProps, HighlightedPillComponent, HighlightedPillItemComponent } from './Pills.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass PillsFHRoot extends Component {\n static displayName = 'PillsFH';\n static style = style;\n\n render() {\n return (<Root render={Pills} />);\n }\n}\n\nclass HighlightedItemRoot extends Component {\n static displayName = 'HighlightedItem';\n static style = style;\n\n state = {\n clicked: false,\n };\n\n handleClick(e: React.MouseEvent<HTMLButtonElement>) {\n const { onClick } = this.asProps;\n\n onClick?.(e);\n this.setState({ clicked: false });\n setTimeout(() => {\n this.setState({ clicked: true });\n });\n }\n\n getAddonProps() {\n return {\n clicked: this.state.clicked,\n };\n }\n\n render() {\n const SHighlightedPill = Root;\n\n return sstyled(this.asProps.styles)(<SHighlightedPill render={Pills.Item} onClick={this.handleClick.bind(this)} />);\n }\n}\n\nfunction HighlightedItemAddon(props: HighlightedItemAddonProps & { clicked: boolean } & IRootComponentProps) {\n const { clicked, animatedSparkleCount, Children, children } = props;\n return (\n <Root render={Pills.Item.Addon}>\n {children !== undefined\n ? (<Children />)\n : (\n <>\n <SummaryAI color='--intergalactic-icon-primary-feature-highlight' />\n <AnimatedSparkles show={clicked} count={animatedSparkleCount} />\n </>\n )}\n </Root>\n );\n}\n\nconst HighlightedItem = createComponent<\n HighlightedPillItemComponent,\n typeof HighlightedItemRoot\n>(HighlightedItemRoot, {\n Text: Pills.Item.Text,\n Addon: HighlightedItemAddon,\n});\n\n/**\n * Pills FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#pills|Docs}\n */\nexport const PillsFH = createComponent<\n HighlightedPillComponent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AC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMgB,OAAO,GAAGrD,eAAe,CAGpCW,WAAW,EAAE;EACbqB,IAAI,EAAE3B,KAAK,CAAC2B,IAAI;EAChBmB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pills.type.js","names":[],"sources":["../../../../src/components/pills/Pills.type.ts"],"sourcesContent":["import type { Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type Pills from '@semcore/pills';\nimport type { PillProps } from '@semcore/pills';\n\nexport type HighlightedItemAddonProps = {\n animatedSparkleCount?: number;\n};\n\nexport type
|
|
1
|
+
{"version":3,"file":"Pills.type.js","names":[],"sources":["../../../../src/components/pills/Pills.type.ts"],"sourcesContent":["import type { Box } from '@semcore/base-components';\nimport type { Intergalactic } from '@semcore/core';\nimport type Pills from '@semcore/pills';\nimport type { PillProps } from '@semcore/pills';\n\nexport type HighlightedItemAddonProps = {\n animatedSparkleCount?: number;\n};\n\nexport type HighlightedPillItemComponent = Intergalactic.Component<'div', PillProps> & {\n Text: typeof Box;\n Addon: Intergalactic.Component<'div', HighlightedItemAddonProps>;\n};\n\nexport type HighlightedPillComponent = typeof Pills & {\n HighlightedItem: HighlightedPillItemComponent;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -5,11 +5,11 @@ import { Component, createComponent, Root, sstyled, CONTEXT_COMPONENT } from '@s
|
|
|
5
5
|
import Radio, { RadioGroup } from '@semcore/radio';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
/*!__reshadow-styles__:"./radio.shadow.css"*/
|
|
8
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
8
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedRadio_o6uny_gg_{position:relative}.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]{border-radius:50%;background:var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]{background:var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,#d2b3ff,#b0c1fe))}@media (color-gamut:p3){.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]{background:var(--intergalactic-border-feature-highlight,linear-gradient(90deg in oklch,color(display-p3 .80738 .70018 .99486),#b0c1fe))}}}.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]:before{content:\"\";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:0;padding:2px;border-radius:50%;border-width:0;pointer-events:none;background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb));-webkit-mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transform:scale(.9);transition:margin calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,opacity calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,transform calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb))}@media (color-gamut:p3){.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#666bdb))}}}.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) [data-ui-name=\"Value.RadioMark\"]:after{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral,#fff);top:50%;left:50%;width:calc(100% - 2px);height:calc(100% - 2px);transition:width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,height calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) input[data-ui-name=\"RadioFH.Value\"]:focus-visible+[data-ui-name=\"Value.RadioMark\"]:before{margin:-4px;opacity:1;transform:scale(1);transition:inherit}@supports not (-webkit-mask-composite:xor){.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) input[data-ui-name=\"RadioFH.Value\"]:focus-visible+[data-ui-name=\"Value.RadioMark\"]{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) input[data-ui-name=\"RadioFH.Value\"]:checked:focus-visible+[data-ui-name=\"Value.RadioMark\"]:before,.___SHighlightedRadio_o6uny_gg_:not(._state_invalid_o6uny_gg_) input[data-ui-name=\"RadioFH.Value\"]:focus-visible+[data-ui-name=\"Value.RadioMark\"]:before{display:none}}", /*__inner_css_end__*/"o6uny_gg_"),
|
|
9
9
|
/*__reshadow_css_end__*/
|
|
10
10
|
{
|
|
11
|
-
"__SHighlightedRadio": "
|
|
12
|
-
"_state_invalid": "
|
|
11
|
+
"__SHighlightedRadio": "___SHighlightedRadio_o6uny_gg_",
|
|
12
|
+
"_state_invalid": "_state_invalid_o6uny_gg_"
|
|
13
13
|
});
|
|
14
14
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
15
15
|
class RadioFHRoot extends Component {
|
|
@@ -64,6 +64,12 @@ class RadioFHRoot extends Component {
|
|
|
64
64
|
}), hasChildren ? /*#__PURE__*/React.createElement(Children, _ref2.cn("Children", {})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(RadioFH.Value, null), /*#__PURE__*/React.createElement(RadioFH.Text, null)));
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Radio FeatureHighlight
|
|
70
|
+
*
|
|
71
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#radio|Docs}
|
|
72
|
+
*/
|
|
67
73
|
_defineProperty(RadioFHRoot, "displayName", 'RadioFH');
|
|
68
74
|
_defineProperty(RadioFHRoot, "style", style);
|
|
69
75
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","names":["Component","createComponent","Root","sstyled","CONTEXT_COMPONENT","Radio","RadioGroup","React","style","_sstyled","insert","AnimatedSparkles","RadioFHRoot","constructor","args","_defineProperty","createRef","checked","setState","setTimeout","inputRef","current","getValueProps","ref","onChange","setChecked","onClick","getAnimatedSparklesProps","size","context","state","show","top","left","render","_ref","asProps","_ref2","SHighlightedRadio","styles","Children","children","hasChildren","createElement","cn","_assignProps","Fragment","RadioFH","Value","Text"],"sources":["../../../../src/components/radio/Radio.tsx"],"sourcesContent":["import { Component, createComponent, Root, sstyled, CONTEXT_COMPONENT } from '@semcore/core';\nimport type { NSRadio } from '@semcore/radio';\nimport Radio, { RadioGroup } from '@semcore/radio';\nimport React from 'react';\n\nimport style from './radio.shadow.css';\nimport type { HighlightedRadioComponent } from './Radio.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass RadioFHRoot extends Component<NSRadio.Props> {\n static displayName = 'RadioFH';\n static style = style;\n // @ts-ignore\n static contextType = RadioGroup[CONTEXT_COMPONENT];\n\n inputRef = React.createRef<HTMLInputElement>();\n\n state = {\n checked: false,\n };\n\n getValueProps() {\n return {\n ref: this.inputRef,\n onChange: this.setChecked, // for click by label / programmatically changed\n onClick: this.setChecked, // for click by radio\n };\n }\n\n getAnimatedSparklesProps() {\n // @ts-ignore\n const { size } = this.context;\n const checked = this.state.checked;\n\n return {\n show: checked,\n top: size === 'l' ? '7px' : '5px',\n left: size === 'l' ? '5px' : '3px',\n };\n }\n\n setChecked = () => {\n this.setState({ checked: false });\n setTimeout(() => {\n this.setState({ checked: this.inputRef.current?.checked });\n });\n };\n\n render() {\n const SHighlightedRadio = Root;\n const { styles, Children, children: hasChildren } = this.asProps;\n\n return sstyled(styles)(\n <SHighlightedRadio render={Radio}>\n {hasChildren\n ? <Children />\n : (\n <>\n <RadioFH.Value />\n <RadioFH.Text />\n </>\n )}\n </SHighlightedRadio>,\n );\n }\n}\n\nexport const RadioFH = createComponent(RadioFHRoot, {\n Text: Radio.Text,\n Value: Radio.Value,\n AnimatedSparkles,\n})
|
|
1
|
+
{"version":3,"file":"Radio.js","names":["Component","createComponent","Root","sstyled","CONTEXT_COMPONENT","Radio","RadioGroup","React","style","_sstyled","insert","AnimatedSparkles","RadioFHRoot","constructor","args","_defineProperty","createRef","checked","setState","setTimeout","inputRef","current","getValueProps","ref","onChange","setChecked","onClick","getAnimatedSparklesProps","size","context","state","show","top","left","render","_ref","asProps","_ref2","SHighlightedRadio","styles","Children","children","hasChildren","createElement","cn","_assignProps","Fragment","RadioFH","Value","Text"],"sources":["../../../../src/components/radio/Radio.tsx"],"sourcesContent":["import { Component, createComponent, Root, sstyled, CONTEXT_COMPONENT } from '@semcore/core';\nimport type { NSRadio } from '@semcore/radio';\nimport Radio, { RadioGroup } from '@semcore/radio';\nimport React from 'react';\n\nimport style from './radio.shadow.css';\nimport type { HighlightedRadioComponent } from './Radio.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass RadioFHRoot extends Component<NSRadio.Props> {\n static displayName = 'RadioFH';\n static style = style;\n // @ts-ignore\n static contextType = RadioGroup[CONTEXT_COMPONENT];\n\n inputRef = React.createRef<HTMLInputElement>();\n\n state = {\n checked: false,\n };\n\n getValueProps() {\n return {\n ref: this.inputRef,\n onChange: this.setChecked, // for click by label / programmatically changed\n onClick: this.setChecked, // for click by radio\n };\n }\n\n getAnimatedSparklesProps() {\n // @ts-ignore\n const { size } = this.context;\n const checked = this.state.checked;\n\n return {\n show: checked,\n top: size === 'l' ? '7px' : '5px',\n left: size === 'l' ? '5px' : '3px',\n };\n }\n\n setChecked = () => {\n this.setState({ checked: false });\n setTimeout(() => {\n this.setState({ checked: this.inputRef.current?.checked });\n });\n };\n\n render() {\n const SHighlightedRadio = Root;\n const { styles, Children, children: hasChildren } = this.asProps;\n\n return sstyled(styles)(\n <SHighlightedRadio render={Radio}>\n {hasChildren\n ? <Children />\n : (\n <>\n <RadioFH.Value />\n <RadioFH.Text />\n </>\n )}\n </SHighlightedRadio>,\n );\n }\n}\n\n/**\n * Radio FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#radio|Docs}\n */\nexport const RadioFH = createComponent<\n HighlightedRadioComponent,\n typeof RadioFHRoot\n>(RadioFHRoot, {\n Text: Radio.Text,\n Value: Radio.Value,\n AnimatedSparkles,\n});\n"],"mappings":";;;AAAA,SAASA,SAAS,EAAEC,eAAe,EAAEC,IAAI,EAAEC,OAAO,EAAEC,iBAAiB,QAAQ,eAAe;AAE5F,OAAOC,KAAK,IAAIC,UAAU,QAAQ,gBAAgB;AAClD,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,gBAAgB,QAAQ,iDAAiD;AAElF,MAAMC,WAAW,SAASZ,SAAS,CAAgB;EAAAa,YAAA,GAAAC,IAAA;IAA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YAAA,KAAAV,IAAA;IAAA,IACfO,WAAW,gBACRnC,KAAA,CAAAoC,aAAA,CAACH,QAAQ,EAAAH,KAAA,CAAAO,EAAA,gBAAE,CAAC,gBAEVrC,KAAA,CAAAoC,aAAA,CAAApC,KAAA,CAAAuC,QAAA,qBACEvC,KAAA,CAAAoC,aAAA,CAACI,OAAO,CAACC,KAAK,MAAE,CAAC,eACjBzC,KAAA,CAAAoC,aAAA,CAACI,OAAO,CAACE,IAAI,MAAE,CACf,CAES,CAAC;EAExB;AACF;;AAEA;AACA;AACA;AACA;AACA;AAJAlC,eAAA,CA1DMH,WAAW,iBACM,SAAS;AAAAG,eAAA,CAD1BH,WAAW,WAEAJ,KAAK;AACpB;AAAAO,eAAA,CAHIH,WAAW,iBAIMN,UAAU,CAACF,iBAAiB,CAAC;AA2DpD,OAAO,MAAM2C,OAAO,GAAG9C,eAAe,CAGpCW,WAAW,EAAE;EACbqC,IAAI,EAAE5C,KAAK,CAAC4C,IAAI;EAChBD,KAAK,EAAE3C,KAAK,CAAC2C,KAAK;EAClBrC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -22,6 +22,12 @@ function Trigger(props) {
|
|
|
22
22
|
"tag": ButtonTriggerFH
|
|
23
23
|
}, _ref2), hasChildren ? /*#__PURE__*/React.createElement(Children, null) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectFH.Trigger.Addon, null), /*#__PURE__*/React.createElement(SelectFH.Trigger.Text, null)));
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Select FeatureHighlight
|
|
28
|
+
*
|
|
29
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#select|Docs}
|
|
30
|
+
*/
|
|
25
31
|
export const SelectFH = createComponent(SelectFHRoot, {
|
|
26
32
|
Trigger: [Trigger, {
|
|
27
33
|
Text: ButtonTriggerFH.Text,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","names":["createComponent","Root","Component","Select","React","ButtonTriggerFH","SelectFHRoot","render","_ref","asProps","createElement","_assignProps","_defineProperty","Trigger","props","_ref2","arguments[0]","Children","children","hasChildren","_assignProps2","Fragment","SelectFH","Addon","Text","Popper","Menu","Option","List"],"sources":["../../../../src/components/select/Select.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component } from '@semcore/core';\nimport Select from '@semcore/select';\nimport React from 'react';\n\nimport { ButtonTriggerFH } from '../../inner-components/button-trigger/ButtonTrigger';\n\nclass SelectFHRoot extends Component {\n static displayName = 'SelectFH';\n\n render() {\n return (\n <Root render={Select} />\n );\n }\n}\n\nfunction Trigger(props: IRootComponentProps) {\n const { Children, children: hasChildren } = props;\n\n return (\n <Root render={Select.Trigger} tag={ButtonTriggerFH}>\n {hasChildren\n ? <Children />\n : (\n <>\n <SelectFH.Trigger.Addon />\n <SelectFH.Trigger.Text />\n </>\n )}\n </Root>\n );\n}\n\nexport const SelectFH = createComponent(SelectFHRoot, {\n Trigger: [Trigger, {\n Text: ButtonTriggerFH.Text,\n Addon: ButtonTriggerFH.Addon,\n }],\n Popper: Select.Popper,\n Menu: Select.Menu,\n Option: Select.Option,\n List: Select.List,\n})
|
|
1
|
+
{"version":3,"file":"Select.js","names":["createComponent","Root","Component","Select","React","ButtonTriggerFH","SelectFHRoot","render","_ref","asProps","createElement","_assignProps","_defineProperty","Trigger","props","_ref2","arguments[0]","Children","children","hasChildren","_assignProps2","Fragment","SelectFH","Addon","Text","Popper","Menu","Option","List"],"sources":["../../../../src/components/select/Select.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { createComponent, Root, Component } from '@semcore/core';\nimport Select from '@semcore/select';\nimport React from 'react';\n\nimport { ButtonTriggerFH } from '../../inner-components/button-trigger/ButtonTrigger';\n\nclass SelectFHRoot extends Component {\n static displayName = 'SelectFH';\n\n render() {\n return (\n <Root render={Select} />\n );\n }\n}\n\nfunction Trigger(props: IRootComponentProps) {\n const { Children, children: hasChildren } = props;\n\n return (\n <Root render={Select.Trigger} tag={ButtonTriggerFH}>\n {hasChildren\n ? <Children />\n : (\n <>\n <SelectFH.Trigger.Addon />\n <SelectFH.Trigger.Text />\n </>\n )}\n </Root>\n );\n}\n\n/**\n * Select FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#select|Docs}\n */\nexport const SelectFH: typeof Select = createComponent<\n typeof Select,\n typeof SelectFHRoot\n>(SelectFHRoot, {\n Trigger: [Trigger, {\n Text: ButtonTriggerFH.Text,\n Addon: ButtonTriggerFH.Addon,\n }],\n Popper: Select.Popper,\n Menu: Select.Menu,\n Option: Select.Option,\n List: Select.List,\n});\n"],"mappings":";;;AACA,SAASA,eAAe,EAAEC,IAAI,EAAEC,SAAS,QAAQ,eAAe;AAChE,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,eAAe,QAAQ,qDAAqD;AAErF,MAAMC,YAAY,SAASJ,SAAS,CAAC;EAGnCK,MAAMA,CAAA,EAAG;IAAA,IAAAC,IAAA,QAAAC,OAAA;IACP,oBACEL,KAAA,CAAAM,aAAA,CAAcP,MAAM,EAAAQ,YAAA,KAAAH,IAAA,CAAG,CAAC;EAE5B;AACF;AAACI,eAAA,CARKN,YAAY,iBACK,UAAU;AASjC,SAASO,OAAOA,CAACC,KAA0B,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;EAC3C,MAAM;IAAEC,QAAQ;IAAEC,QAAQ,EAAEC;EAAY,CAAC,GAAGL,KAAK;EAEjD,oBACEV,KAAA,CAAAM,aAAA,CAAcP,MAAM,CAACU,OAAO,EAAAO,aAAA;IAAA,OAAOf;EAAe,GAAAU,KAAA,GAC/CI,WAAW,gBACRf,KAAA,CAAAM,aAAA,CAACO,QAAQ,MAAE,CAAC,gBAEVb,KAAA,CAAAM,aAAA,CAAAN,KAAA,CAAAiB,QAAA,qBACEjB,KAAA,CAAAM,aAAA,CAACY,QAAQ,CAACT,OAAO,CAACU,KAAK,MAAE,CAAC,eAC1BnB,KAAA,CAAAM,aAAA,CAACY,QAAQ,CAACT,OAAO,CAACW,IAAI,MAAE,CACxB,CAEJ,CAAC;AAEX;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMF,QAAuB,GAAGtB,eAAe,CAGpDM,YAAY,EAAE;EACdO,OAAO,EAAE,CAACA,OAAO,EAAE;IACjBW,IAAI,EAAEnB,eAAe,CAACmB,IAAI;IAC1BD,KAAK,EAAElB,eAAe,CAACkB;EACzB,CAAC,CAAC;EACFE,MAAM,EAAEtB,MAAM,CAACsB,MAAM;EACrBC,IAAI,EAAEvB,MAAM,CAACuB,IAAI;EACjBC,MAAM,EAAExB,MAAM,CAACwB,MAAM;EACrBC,IAAI,EAAEzB,MAAM,CAACyB;AACf,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,12 +6,12 @@ import { Component, createComponent, Root, sstyled } from '@semcore/core';
|
|
|
6
6
|
import Switch from '@semcore/switch';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
/*!__reshadow-styles__:"./switch.shadow.css"*/
|
|
9
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
9
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SToggle_23kny_gg_{position:relative;transform:translate(0)}.___SToggle_23kny_gg_:before{content:\"\";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:0;padding:2px;border-radius:inherit;background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb));-webkit-mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transform:scale(.96);pointer-events:none;transition:opacity calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out,transform calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SToggle_23kny_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb))}@media (color-gamut:p3){.___SToggle_23kny_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#666bdb))}}}.___SToggle_23kny_gg_.__checked_23kny_gg_{color:var(--intergalactic-control-primary-info,#1a1e1a);background-image:var(--intergalactic-control-primary-feature-highlight,linear-gradient(90deg in oklch,#a261fd,#94a5f5))}.___SToggle_23kny_gg_:has(.___SInput_23kny_gg_:focus-visible){box-shadow:none;outline:none}.___SToggle_23kny_gg_:has(.___SInput_23kny_gg_:focus-visible):before{margin:-4px;opacity:1;transform:scale(1)}@supports not (-webkit-mask-composite:xor){.___SToggle_23kny_gg_:has(.___SInput_23kny_gg_:focus-visible){outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SToggle_23kny_gg_:has(.___SInput_23kny_gg_:focus-visible):before{display:none}}", /*__inner_css_end__*/"23kny_gg_"),
|
|
10
10
|
/*__reshadow_css_end__*/
|
|
11
11
|
{
|
|
12
|
-
"__SToggle": "
|
|
13
|
-
"_checked": "
|
|
14
|
-
"__SInput": "
|
|
12
|
+
"__SToggle": "___SToggle_23kny_gg_",
|
|
13
|
+
"_checked": "__checked_23kny_gg_",
|
|
14
|
+
"__SInput": "___SInput_23kny_gg_"
|
|
15
15
|
});
|
|
16
16
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
17
17
|
class SwitchFHRoot extends Component {
|
|
@@ -64,6 +64,12 @@ function Value(props) {
|
|
|
64
64
|
}, _ref2)
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Switch FeatureHighlight
|
|
70
|
+
*
|
|
71
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#switch|Docs}
|
|
72
|
+
*/
|
|
67
73
|
export const SwitchFH = createComponent(SwitchFHRoot, {
|
|
68
74
|
Addon: Switch.Addon,
|
|
69
75
|
Value: Value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","names":["Component","createComponent","Root","sstyled","Switch","React","style","_sstyled","insert","AnimatedSparkles","SwitchFHRoot","constructor","args","_defineProperty","createRef","getValueProps","ref","inputRef","onChange","setTimeout","forceUpdate","getAnimatedSparklesProps","size","asProps","checked","current","left","show","curve","undefined","render","_ref","_ref3","SInput","styles","createElement","cn","_assignProps","Value","props","_ref2","arguments[0]","_ref4","SToggle","_assignProps2","SwitchFH","Addon"],"sources":["../../../../src/components/switch/Switch.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport type {
|
|
1
|
+
{"version":3,"file":"Switch.js","names":["Component","createComponent","Root","sstyled","Switch","React","style","_sstyled","insert","AnimatedSparkles","SwitchFHRoot","constructor","args","_defineProperty","createRef","getValueProps","ref","inputRef","onChange","setTimeout","forceUpdate","getAnimatedSparklesProps","size","asProps","checked","current","left","show","curve","undefined","render","_ref","_ref3","SInput","styles","createElement","cn","_assignProps","Value","props","_ref2","arguments[0]","_ref4","SToggle","_assignProps2","SwitchFH","Addon"],"sources":["../../../../src/components/switch/Switch.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport type { NSSwitch } from '@semcore/switch';\nimport Switch from '@semcore/switch';\nimport React from 'react';\n\nimport style from './switch.shadow.css';\nimport type { HighlightedSwitchComponent } from './Switch.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass SwitchFHRoot extends Component<NSSwitch.Props> {\n static displayName = 'SwitchFH';\n static style = style;\n\n inputRef = React.createRef<HTMLInputElement>();\n\n getValueProps() {\n return {\n ref: this.inputRef,\n onChange: () => {\n setTimeout(() => {\n this.forceUpdate();\n });\n },\n };\n }\n\n getAnimatedSparklesProps() {\n const { size } = this.asProps;\n const checked = this.inputRef.current?.checked;\n let left = '4px';\n if (size === 'l') left = '12px';\n if (size === 'xl') left = '14px';\n\n return {\n show: checked,\n curve: size === 'l' || size === 'xl' ? 9 : undefined,\n left,\n };\n }\n\n render() {\n const SInput = Root;\n return sstyled(this.asProps.styles)(\n <SInput render={Switch} />,\n );\n }\n}\n\nfunction Value(props: IRootComponentProps & { onChange: () => void }) {\n const SToggle = Root;\n\n return sstyled(props.styles)(<SToggle render={Switch.Value} onChange={props.onChange} />);\n}\n\n/**\n * Switch FeatureHighlight\n *\n * {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#switch|Docs}\n */\nexport const SwitchFH = createComponent<\n HighlightedSwitchComponent,\n typeof SwitchFHRoot\n>(SwitchFHRoot, {\n Addon: Switch.Addon,\n Value: Value,\n AnimatedSparkles,\n});\n"],"mappings":";;;;AACA,SAASA,SAAS,EAAEC,eAAe,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AAEzE,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,gBAAgB,QAAQ,iDAAiD;AAElF,MAAMC,YAAY,SAASV,SAAS,CAAiB;EAAAW,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,gCAIxCR,KAAK,CAACS,SAAS,CAAmB,CAAC;EAAA;EAE9CC,aAAaA,CAAA,EAAG;IACd,OAAO;MACLC,GAAG,EAAE,IAAI,CAACC,QAAQ;M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