@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,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, Component, assignProps, CONTEXT_COMPONENT, createComponent } from "@semcore/core";
|
|
3
3
|
import Radio, { RadioGroup } from "@semcore/radio";
|
|
4
4
|
import React from "react";
|
|
@@ -8,13 +8,13 @@ const style = (
|
|
|
8
8
|
/*__reshadow_css_start__*/
|
|
9
9
|
(sstyled.insert(
|
|
10
10
|
/*__inner_css_start__*/
|
|
11
|
-
'.
|
|
11
|
+
'.___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}}',
|
|
12
12
|
/*__inner_css_end__*/
|
|
13
|
-
"
|
|
13
|
+
"o6uny_gg_"
|
|
14
14
|
), /*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SHighlightedRadio": "
|
|
17
|
-
"_state_invalid": "
|
|
16
|
+
"__SHighlightedRadio": "___SHighlightedRadio_o6uny_gg_",
|
|
17
|
+
"_state_invalid": "_state_invalid_o6uny_gg_"
|
|
18
18
|
})
|
|
19
19
|
);
|
|
20
20
|
class RadioFHRoot extends Component {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { Component, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import Select from "@semcore/select";
|
|
4
4
|
import React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import Switch from "@semcore/switch";
|
|
4
4
|
import React from "react";
|
|
@@ -8,14 +8,14 @@ const style = (
|
|
|
8
8
|
/*__reshadow_css_start__*/
|
|
9
9
|
(sstyled.insert(
|
|
10
10
|
/*__inner_css_start__*/
|
|
11
|
-
'.
|
|
11
|
+
'.___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}}',
|
|
12
12
|
/*__inner_css_end__*/
|
|
13
|
-
"
|
|
13
|
+
"23kny_gg_"
|
|
14
14
|
), /*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SToggle": "
|
|
17
|
-
"_checked": "
|
|
18
|
-
"__SInput": "
|
|
16
|
+
"__SToggle": "___SToggle_23kny_gg_",
|
|
17
|
+
"_checked": "__checked_23kny_gg_",
|
|
18
|
+
"__SInput": "___SInput_23kny_gg_"
|
|
19
19
|
})
|
|
20
20
|
);
|
|
21
21
|
class SwitchFHRoot extends Component {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import SummaryAI from "@semcore/icon/SummaryAI/m";
|
|
4
4
|
import TabLine from "@semcore/tab-line";
|
|
@@ -9,14 +9,14 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
'.
|
|
12
|
+
'.___SHighlightedItem_k4j9e_gg_:focus-visible{outline:none}.___SHighlightedItem_k4j9e_gg_:focus-visible:before{opacity:1;transform:scale(1)}.___SHighlightedItem_k4j9e_gg_:after{opacity:0;transition:opacity calc(var(--intergalactic-duration-control, 200)*1ms) ease-in-out}.___SHighlightedItem_k4j9e_gg_.__selected_k4j9e_gg_:after{opacity:1;background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedItem_k4j9e_gg_.__selected_k4j9e_gg_:after{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5))}@media (color-gamut:p3){.___SHighlightedItem_k4j9e_gg_.__selected_k4j9e_gg_:after{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5))}}}@media (hover:hover){.___SHighlightedItem_k4j9e_gg_:hover:not(:focus-visible):after{opacity:1;background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedItem_k4j9e_gg_:hover:not(:focus-visible):after{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5))}@media (color-gamut:p3){.___SHighlightedItem_k4j9e_gg_:hover:not(:focus-visible):after{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5))}}}}.___SHighlightedItem_k4j9e_gg_:before{content:"";position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;height:auto;width:calc(100% + 4px);margin:-4px;padding:2px;box-sizing:initial;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);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%)){.___SHighlightedItem_k4j9e_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb))}@media (color-gamut:p3){.___SHighlightedItem_k4j9e_gg_:before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#666bdb))}}}.___SHighlightedCaret_k4j9e_gg_{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedCaret_k4j9e_gg_{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,#c08eff,#94a5f5))}@media (color-gamut:p3){.___SHighlightedCaret_k4j9e_gg_{background:var(--intergalactic-border-feature-highlight-active,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#94a5f5))}}}',
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"k4j9e_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SHighlightedCaret": "
|
|
18
|
-
"__SHighlightedItem": "
|
|
19
|
-
"_selected": "
|
|
17
|
+
"__SHighlightedCaret": "___SHighlightedCaret_k4j9e_gg_",
|
|
18
|
+
"__SHighlightedItem": "___SHighlightedItem_k4j9e_gg_",
|
|
19
|
+
"_selected": "__selected_k4j9e_gg_"
|
|
20
20
|
})
|
|
21
21
|
);
|
|
22
22
|
class TabLineFHRoot extends Component {
|
|
@@ -80,15 +80,16 @@ function HighlightedAddon(props) {
|
|
|
80
80
|
count: animatedSparkleCount
|
|
81
81
|
})));
|
|
82
82
|
}
|
|
83
|
+
const HighlightedItem = createComponent(HighlightedItemRoot, {
|
|
84
|
+
Text: TabLine.Item.Text,
|
|
85
|
+
Addon: HighlightedAddon
|
|
86
|
+
});
|
|
83
87
|
const TabLineFH = createComponent(TabLineFHRoot, {
|
|
84
88
|
Item: [TabLine.Item, {
|
|
85
89
|
Text: TabLine.Item.Text,
|
|
86
90
|
Addon: TabLine.Item.Addon
|
|
87
91
|
}],
|
|
88
|
-
HighlightedItem
|
|
89
|
-
Text: TabLine.Item.Text,
|
|
90
|
-
Addon: HighlightedAddon
|
|
91
|
-
})
|
|
92
|
+
HighlightedItem
|
|
92
93
|
});
|
|
93
94
|
export {
|
|
94
95
|
TabLineFH
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { sstyled, Component, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import { ButtonTrigger } from "@semcore/base-trigger";
|
|
4
4
|
import SummaryAI from "@semcore/icon/SummaryAI/m";
|
|
@@ -8,18 +8,18 @@ const style = (
|
|
|
8
8
|
/*__reshadow_css_start__*/
|
|
9
9
|
(sstyled.insert(
|
|
10
10
|
/*__inner_css_start__*/
|
|
11
|
-
'.
|
|
11
|
+
'.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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;position:relative;z-index:1}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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}}}.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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);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%)){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,#c08eff,#666bdb))}@media (color-gamut:p3){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline,linear-gradient(90deg in oklch,color(display-p3 .72564 .56096 .98326),#666bdb))}}}@media (hover:hover){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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%)){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_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}}}}.___SHighlightedButtonTrigger_1no5h_gg_.__active_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_),.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):active{background:linear-gradient(#fff,#fff) 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}.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):focus-visible{outline:none;border-color:#0000}.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):focus-visible:before{opacity:1;transform:scale(1)}.___SHighlightedButtonTrigger_1no5h_gg_._neighborLocation_left_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedButtonTrigger_1no5h_gg_._neighborLocation_right_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedButtonTrigger_1no5h_gg_._neighborLocation_both_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):before{border-radius:0}@supports not (-webkit-mask-composite:xor){.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SHighlightedButtonTrigger_1no5h_gg_:not(._state_invalid_1no5h_gg_):not(._state_valid_1no5h_gg_):focus-visible:before{display:none}}',
|
|
12
12
|
/*__inner_css_end__*/
|
|
13
|
-
"
|
|
13
|
+
"1no5h_gg_"
|
|
14
14
|
), /*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SHighlightedButtonTrigger": "
|
|
17
|
-
"_state_invalid": "
|
|
18
|
-
"_state_valid": "
|
|
19
|
-
"_active": "
|
|
20
|
-
"_neighborLocation_left": "
|
|
21
|
-
"_neighborLocation_right": "
|
|
22
|
-
"_neighborLocation_both": "
|
|
16
|
+
"__SHighlightedButtonTrigger": "___SHighlightedButtonTrigger_1no5h_gg_",
|
|
17
|
+
"_state_invalid": "_state_invalid_1no5h_gg_",
|
|
18
|
+
"_state_valid": "_state_valid_1no5h_gg_",
|
|
19
|
+
"_active": "__active_1no5h_gg_",
|
|
20
|
+
"_neighborLocation_left": "_neighborLocation_left_1no5h_gg_",
|
|
21
|
+
"_neighborLocation_right": "_neighborLocation_right_1no5h_gg_",
|
|
22
|
+
"_neighborLocation_both": "_neighborLocation_both_1no5h_gg_"
|
|
23
23
|
})
|
|
24
24
|
);
|
|
25
25
|
class ButtonTriggerFHRoot extends Component {
|
|
@@ -5,23 +5,23 @@ const styles = (
|
|
|
5
5
|
/*__reshadow_css_start__*/
|
|
6
6
|
(sstyled.insert(
|
|
7
7
|
/*__inner_css_start__*/
|
|
8
|
-
"
|
|
8
|
+
".___SSparkle_snky3_gg_{position:absolute}.___SSparkle_snky3_gg_ path{fill:var(--intergalactic-icon-primary-feature-highlight,#9041fa)}.___SSparkle_snky3_gg_.__angle_snky3_gg_.__scale_snky3_gg_.__duration_snky3_gg_{transform:rotate(calc(1deg*var(--angle_snky3))) scale(var(--scale_snky3));animation-name:sparkles_snky3;animation-fill-mode:forwards;animation-duration:var(--duration_snky3)}@keyframes sparkles_snky3{50%{transform:rotate(calc(1deg*var(--angle_snky3))) translateY(200%) scale(var(--scale_snky3))}to{transform:rotate(calc(1deg*var(--angle_snky3))) translateY(200%) scale(0)}}.___SSparkle_snky3_gg_.__left_snky3_gg_{left:var(--left_snky3)}.___SSparkle_snky3_gg_.__top_snky3_gg_{top:var(--top_snky3)}",
|
|
9
9
|
/*__inner_css_end__*/
|
|
10
|
-
"
|
|
10
|
+
"snky3_gg_"
|
|
11
11
|
), /*__reshadow_css_end__*/
|
|
12
12
|
{
|
|
13
|
-
"__SSparkle": "
|
|
14
|
-
"_angle": "
|
|
15
|
-
"_scale": "
|
|
16
|
-
"_duration": "
|
|
17
|
-
"--angle": "--
|
|
18
|
-
"--scale": "--
|
|
19
|
-
"--duration": "--
|
|
20
|
-
"@sparkles": "
|
|
21
|
-
"_left": "
|
|
22
|
-
"--left": "--
|
|
23
|
-
"_top": "
|
|
24
|
-
"--top": "--
|
|
13
|
+
"__SSparkle": "___SSparkle_snky3_gg_",
|
|
14
|
+
"_angle": "__angle_snky3_gg_",
|
|
15
|
+
"_scale": "__scale_snky3_gg_",
|
|
16
|
+
"_duration": "__duration_snky3_gg_",
|
|
17
|
+
"--angle": "--angle_snky3",
|
|
18
|
+
"--scale": "--scale_snky3",
|
|
19
|
+
"--duration": "--duration_snky3",
|
|
20
|
+
"@sparkles": "sparkles_snky3",
|
|
21
|
+
"_left": "__left_snky3_gg_",
|
|
22
|
+
"--left": "--left_snky3",
|
|
23
|
+
"_top": "__top_snky3_gg_",
|
|
24
|
+
"--top": "--top_snky3"
|
|
25
25
|
})
|
|
26
26
|
);
|
|
27
27
|
function SvgSparkle(props, ref) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type BadgeMargins } from '@semcore/badge';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
3
|
type BadgeFHUse = 'accent' | 'neutral';
|
|
3
4
|
type BadgeFHProps = BadgeMargins & {
|
|
4
5
|
/**
|
|
@@ -7,5 +8,11 @@ type BadgeFHProps = BadgeMargins & {
|
|
|
7
8
|
*/
|
|
8
9
|
use?: BadgeFHUse;
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
type BadgeFHComponent = Intergalactic.Component<'span', BadgeFHProps>;
|
|
12
|
+
/**
|
|
13
|
+
* Badge FeatureHighlight
|
|
14
|
+
*
|
|
15
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#badge|Docs}
|
|
16
|
+
*/
|
|
17
|
+
export declare const BadgeFH: BadgeFHComponent;
|
|
11
18
|
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedButtonComponent } from './Button.type';
|
|
2
|
+
/**
|
|
3
|
+
* Button FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#button|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const ButtonFH: HighlightedButtonComponent;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ButtonAddonProps, ButtonComponent } from '@semcore/button';
|
|
2
2
|
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
export type HighlightedButtonDefaultProps = {
|
|
4
|
+
theme: 'highlighted';
|
|
5
|
+
};
|
|
3
6
|
export type HighLightedButtonAddonProps = ButtonAddonProps & {
|
|
4
7
|
animatedSparkleCount?: number;
|
|
5
8
|
};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedCheckboxComponent } from './Checkbox.type';
|
|
2
|
+
/**
|
|
3
|
+
* Checkbox FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#checkbox|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const CheckboxFH: HighlightedCheckboxComponent;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Input FeatureHighlight
|
|
3
|
+
*
|
|
4
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#input|Docs}
|
|
5
|
+
*/
|
|
6
|
+
export declare const InputFH: (<Tag extends import("@semcore/core").Intergalactic.InternalTypings.ComponentTag | [import("@semcore/core").Intergalactic.InternalTypings.ComponentTag, keyof JSX.IntrinsicElements] = "div", Props extends import("@semcore/input").InputProps = import("@semcore/input").InputProps>(props: import("@semcore/core").Intergalactic.InternalTypings.ComponentProps<Tag, "div", Props, import("@semcore/input").InputCtx, never[]>) => import("@semcore/core").Intergalactic.InternalTypings.ComponentRenderingResults) & import("@semcore/core").Intergalactic.InternalTypings.ComponentAdditive<"div", import("@semcore/core").Intergalactic.InternalTypings.ComponentTag, import("@semcore/input").InputProps, import("@semcore/input").InputCtx, never[]> & {
|
|
7
|
+
Value: import("@semcore/core").Intergalactic.Component<"input", import("@semcore/input").InputValueProps>;
|
|
8
|
+
Addon: import("@semcore/core").Intergalactic.Component<"div", import("@semcore/input").InputAddonProps>;
|
|
9
|
+
};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedNoticeComponent } from './Notice.type';
|
|
2
|
+
/**
|
|
3
|
+
* Notice FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#notice|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const NoticeFH: HighlightedNoticeComponent;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedPillComponent } from './Pills.type';
|
|
2
|
+
/**
|
|
3
|
+
* Pills FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#pills|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const PillsFH: HighlightedPillComponent;
|
|
@@ -5,9 +5,10 @@ import type { PillProps } from '@semcore/pills';
|
|
|
5
5
|
export type HighlightedItemAddonProps = {
|
|
6
6
|
animatedSparkleCount?: number;
|
|
7
7
|
};
|
|
8
|
+
export type HighlightedPillItemComponent = Intergalactic.Component<'div', PillProps> & {
|
|
9
|
+
Text: typeof Box;
|
|
10
|
+
Addon: Intergalactic.Component<'div', HighlightedItemAddonProps>;
|
|
11
|
+
};
|
|
8
12
|
export type HighlightedPillComponent = typeof Pills & {
|
|
9
|
-
HighlightedItem:
|
|
10
|
-
Text: typeof Box;
|
|
11
|
-
Addon: Intergalactic.Component<'div', HighlightedItemAddonProps>;
|
|
12
|
-
};
|
|
13
|
+
HighlightedItem: HighlightedPillItemComponent;
|
|
13
14
|
};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedRadioComponent } from './Radio.type';
|
|
2
|
+
/**
|
|
3
|
+
* Radio FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#radio|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const RadioFH: HighlightedRadioComponent;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedSwitchComponent } from './Switch.type';
|
|
2
|
+
/**
|
|
3
|
+
* Switch FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#switch|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const SwitchFH: HighlightedSwitchComponent;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { HighlightedTabLineComponent } from './TabLine.type';
|
|
2
|
+
/**
|
|
3
|
+
* TabLine FeatureHighlight
|
|
4
|
+
*
|
|
5
|
+
* {@link https://developer.semrush.com/intergalactic/patterns/feature-highlight/feature-highlight#tabline|Docs}
|
|
6
|
+
*/
|
|
2
7
|
export declare const TabLineFH: HighlightedTabLineComponent;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
2
|
import type TabLine from '@semcore/tab-line';
|
|
3
|
+
export type HighlightedTabLineItemComponent = typeof TabLine.Item & {
|
|
4
|
+
Addon: Intergalactic.Component<'div', {
|
|
5
|
+
animatedSparkleCount?: number;
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
3
8
|
export type HighlightedTabLineComponent = typeof TabLine & {
|
|
4
|
-
HighlightedItem:
|
|
5
|
-
Addon: Intergalactic.Component<'div', {
|
|
6
|
-
animatedSparkleCount?: number;
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
|
+
HighlightedItem: HighlightedTabLineItemComponent;
|
|
9
10
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
1
2
|
type SparkleProps = {
|
|
2
3
|
index: number;
|
|
3
4
|
num: number;
|
|
@@ -5,5 +6,6 @@ type SparkleProps = {
|
|
|
5
6
|
top?: string;
|
|
6
7
|
left?: string;
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
+
type SparkleComponent = Intergalactic.Component<'svg', SparkleProps>;
|
|
10
|
+
declare const _default: SparkleComponent;
|
|
9
11
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/feature-highlight",
|
|
3
3
|
"description": "Semrush toolkit for accent features",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.2.0-prerelease.5",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/esm/index.mjs",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@semcore/badge": "^17.
|
|
20
|
-
"@semcore/base-trigger": "^17.
|
|
21
|
-
"@semcore/button": "^17.
|
|
22
|
-
"@semcore/checkbox": "^17.
|
|
23
|
-
"@semcore/input": "^17.
|
|
24
|
-
"@semcore/notice": "^17.
|
|
25
|
-
"@semcore/pills": "^17.
|
|
26
|
-
"@semcore/radio": "^17.
|
|
27
|
-
"@semcore/select": "^17.
|
|
28
|
-
"@semcore/switch": "^17.
|
|
29
|
-
"@semcore/tab-line": "^17.
|
|
30
|
-
"@semcore/typography": "^17.
|
|
19
|
+
"@semcore/badge": "^17.2.0-prerelease.5",
|
|
20
|
+
"@semcore/base-trigger": "^17.2.0-prerelease.5",
|
|
21
|
+
"@semcore/button": "^17.2.0-prerelease.5",
|
|
22
|
+
"@semcore/checkbox": "^17.2.0-prerelease.5",
|
|
23
|
+
"@semcore/input": "^17.2.0-prerelease.5",
|
|
24
|
+
"@semcore/notice": "^17.2.0-prerelease.5",
|
|
25
|
+
"@semcore/pills": "^17.2.0-prerelease.5",
|
|
26
|
+
"@semcore/radio": "^17.2.0-prerelease.5",
|
|
27
|
+
"@semcore/select": "^17.2.0-prerelease.5",
|
|
28
|
+
"@semcore/switch": "^17.2.0-prerelease.5",
|
|
29
|
+
"@semcore/tab-line": "^17.2.0-prerelease.5",
|
|
30
|
+
"@semcore/typography": "^17.2.0-prerelease.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@semcore/base-components": "^17.0
|
|
33
|
+
"@semcore/base-components": "^17.2.0"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"directory": "semcore/feature-highlight"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@semcore/
|
|
42
|
-
"@semcore/
|
|
41
|
+
"@semcore/base-components": "17.2.0-prerelease.5",
|
|
42
|
+
"@semcore/core": "17.2.0-prerelease.5",
|
|
43
43
|
"@semcore/testing-utils": "1.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|