@semcore/feature-highlight 16.4.0 → 16.4.1
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 +1 -1
- package/lib/cjs/components/badge/Badge.js +4 -18
- package/lib/cjs/components/badge/Badge.js.map +1 -1
- package/lib/cjs/components/badge/badge.shadow.css +0 -6
- package/lib/cjs/components/button/Button.js +9 -9
- package/lib/cjs/components/button/Button.js.map +1 -1
- package/lib/cjs/components/checkbox/Checkbox.js +3 -3
- package/lib/cjs/components/checkbox/Checkbox.js.map +1 -1
- package/lib/cjs/components/checkbox/Checkbox.type.js.map +1 -1
- package/lib/cjs/components/input/Input.js +8 -8
- package/lib/cjs/components/notice/Notice.js +32 -18
- package/lib/cjs/components/notice/Notice.js.map +1 -1
- package/lib/cjs/components/notice/Notice.type.js.map +1 -1
- package/lib/cjs/components/pills/Pills.js +7 -7
- package/lib/cjs/components/pills/Pills.js.map +1 -1
- package/lib/cjs/components/radio/Radio.js +3 -3
- package/lib/cjs/components/radio/Radio.js.map +1 -1
- package/lib/cjs/components/radio/Radio.type.js.map +1 -1
- package/lib/cjs/components/select/Select.js.map +1 -1
- package/lib/cjs/components/switch/Switch.js +4 -4
- package/lib/cjs/components/tab-line/TabLine.js +4 -4
- package/lib/cjs/components/tab-line/TabLine.js.map +1 -1
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.js +8 -8
- 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 +4 -18
- package/lib/es6/components/badge/Badge.js.map +1 -1
- package/lib/es6/components/badge/badge.shadow.css +0 -6
- package/lib/es6/components/button/Button.js +9 -9
- package/lib/es6/components/button/Button.js.map +1 -1
- package/lib/es6/components/checkbox/Checkbox.js +3 -3
- package/lib/es6/components/checkbox/Checkbox.js.map +1 -1
- package/lib/es6/components/checkbox/Checkbox.type.js.map +1 -1
- package/lib/es6/components/input/Input.js +8 -8
- package/lib/es6/components/notice/Notice.js +32 -18
- package/lib/es6/components/notice/Notice.js.map +1 -1
- package/lib/es6/components/notice/Notice.type.js.map +1 -1
- package/lib/es6/components/pills/Pills.js +7 -7
- package/lib/es6/components/pills/Pills.js.map +1 -1
- package/lib/es6/components/radio/Radio.js +3 -3
- package/lib/es6/components/radio/Radio.js.map +1 -1
- package/lib/es6/components/radio/Radio.type.js.map +1 -1
- package/lib/es6/components/select/Select.js.map +1 -1
- package/lib/es6/components/switch/Switch.js +4 -4
- package/lib/es6/components/tab-line/TabLine.js +4 -4
- package/lib/es6/components/tab-line/TabLine.js.map +1 -1
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.js +8 -8
- 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 +6 -17
- package/lib/esm/components/badge/badge.shadow.css +0 -6
- 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 +23 -12
- package/lib/esm/components/pills/Pills.mjs +9 -9
- 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 +6 -6
- package/lib/esm/inner-components/button-trigger/ButtonTrigger.mjs +10 -10
- package/lib/esm/inner-components/sparkle/Sparkle.mjs +15 -15
- package/lib/types/components/badge/Badge.d.ts +3 -11
- package/lib/types/components/checkbox/Checkbox.type.d.ts +4 -4
- package/lib/types/components/notice/Notice.type.d.ts +2 -10
- package/lib/types/components/radio/Radio.type.d.ts +3 -3
- package/lib/types/inner-components/sparkle/Sparkle.d.ts +2 -1
- package/package.json +1 -1
|
@@ -12,16 +12,16 @@ import SummaryAI from '@semcore/icon/SummaryAI/m';
|
|
|
12
12
|
import Input from '@semcore/input';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
/*!__reshadow-styles__:"./input.shadow.css"*/
|
|
15
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
15
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_ .___SOutline_1k2xm_gg_{background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box;background-origin:border-box;background-clip:padding-box,border-box;border-color:transparent}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_ .___SOutline_1k2xm_gg_{background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@media (color-gamut:p3){.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_ .___SOutline_1k2xm_gg_{background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254))) border-box}}}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_ .___SOutline_1k2xm_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, rgb(192, 142, 255), rgb(102, 107, 219)));-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_1k2xm_gg_._state_normal_1k2xm_gg_ .___SOutline_1k2xm_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)))}@media (color-gamut:p3){.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_ .___SOutline_1k2xm_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(102, 107, 219)))}}}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_:has(.___SValue_1k2xm_gg_:focus-visible) .___SOutline_1k2xm_gg_{outline:0}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_:has(.___SValue_1k2xm_gg_:focus-visible) .___SOutline_1k2xm_gg_::before{opacity:1}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_._neighborLocation_left_1k2xm_gg_ .___SOutline_1k2xm_gg_::before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_._neighborLocation_right_1k2xm_gg_ .___SOutline_1k2xm_gg_::before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_._neighborLocation_both_1k2xm_gg_ .___SOutline_1k2xm_gg_::before{border-radius:0}@supports not (-webkit-mask-composite:xor){.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_:has(.___SValue_1k2xm_gg_:focus-visible) .___SOutline_1k2xm_gg_{outline:0;border-color:#7078fc;box-shadow:0 0 0 0#fff,0 0 0 2px #7078fc}.___SHighlightedInput_1k2xm_gg_._state_normal_1k2xm_gg_:has(.___SValue_1k2xm_gg_:focus-visible) .___SOutline_1k2xm_gg_::before{display:none}}", /*__inner_css_end__*/"1k2xm_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SHighlightedInput": "
|
|
19
|
-
"_state_normal": "
|
|
20
|
-
"__SValue": "
|
|
21
|
-
"__SOutline": "
|
|
22
|
-
"_neighborLocation_left": "
|
|
23
|
-
"_neighborLocation_right": "
|
|
24
|
-
"_neighborLocation_both": "
|
|
18
|
+
"__SHighlightedInput": "___SHighlightedInput_1k2xm_gg_",
|
|
19
|
+
"_state_normal": "_state_normal_1k2xm_gg_",
|
|
20
|
+
"__SValue": "___SValue_1k2xm_gg_",
|
|
21
|
+
"__SOutline": "___SOutline_1k2xm_gg_",
|
|
22
|
+
"_neighborLocation_left": "_neighborLocation_left_1k2xm_gg_",
|
|
23
|
+
"_neighborLocation_right": "_neighborLocation_right_1k2xm_gg_",
|
|
24
|
+
"_neighborLocation_both": "_neighborLocation_both_1k2xm_gg_"
|
|
25
25
|
});
|
|
26
26
|
var InputFHRoot = /*#__PURE__*/function (_Component) {
|
|
27
27
|
function InputFHRoot() {
|
|
@@ -12,14 +12,14 @@ import isNode from '@semcore/core/lib/utils/isNode';
|
|
|
12
12
|
import Notice from '@semcore/notice';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
/*!__reshadow-styles__:"./notice.shadow.css"*/
|
|
15
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
15
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_{background-image:var(--intergalactic-bg-secondary-feature-highlight, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255)));border-color:transparent;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_ip5g1_gg_.__beforeVisibility_ip5g1_gg_{background-image:var(--intergalactic-bg-secondary-feature-highlight, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255)))}@media (color-gamut:p3){.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_{background-image:var(--intergalactic-bg-secondary-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.96716 0.95079 0.99961), color(display-p3 0.87344 0.9059 0.99962)))}}}.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_:before{content:\"\";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:-1px;border-radius:inherit;visibility:var(--beforeVisibility_ip5g1);background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254)) ) border-box,var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245))) padding-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_:before{background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254)) ) border-box,var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245))) padding-box}@media (color-gamut:p3){.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_:before{background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254)) ) border-box,var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(148, 165, 245))) padding-box}}}.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_ .___SLabel_ip5g1_gg_{color:var(--intergalactic-icon-primary-feature-highlight, rgb(144, 65, 250))}.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_ .___SCloseIcon_ip5g1_gg_{color:var(--intergalactic-icon-primary-neutral, rgba(0, 4, 1, 0.526))}@media (hover:hover){.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_ .___SCloseIcon_ip5g1_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0%)){.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_ .___SCloseIcon_ip5g1_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SHighlightedNotice_ip5g1_gg_.__beforeVisibility_ip5g1_gg_ .___SCloseIcon_ip5g1_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}}", /*__inner_css_end__*/"ip5g1_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SHighlightedNotice": "
|
|
19
|
-
"_beforeVisibility": "
|
|
20
|
-
"--beforeVisibility": "--
|
|
21
|
-
"__SLabel": "
|
|
22
|
-
"__SCloseIcon": "
|
|
18
|
+
"__SHighlightedNotice": "___SHighlightedNotice_ip5g1_gg_",
|
|
19
|
+
"_beforeVisibility": "__beforeVisibility_ip5g1_gg_",
|
|
20
|
+
"--beforeVisibility": "--beforeVisibility_ip5g1",
|
|
21
|
+
"__SLabel": "___SLabel_ip5g1_gg_",
|
|
22
|
+
"__SCloseIcon": "___SCloseIcon_ip5g1_gg_"
|
|
23
23
|
});
|
|
24
24
|
var NoticeFHRoot = /*#__PURE__*/function (_Component) {
|
|
25
25
|
function NoticeFHRoot() {
|
|
@@ -28,16 +28,29 @@ var NoticeFHRoot = /*#__PURE__*/function (_Component) {
|
|
|
28
28
|
}
|
|
29
29
|
_inherits(NoticeFHRoot, _Component);
|
|
30
30
|
return _createClass(NoticeFHRoot, [{
|
|
31
|
-
key: "
|
|
32
|
-
value: function
|
|
31
|
+
key: "renderContent",
|
|
32
|
+
value: function renderContent() {
|
|
33
33
|
var _this$asProps = this.asProps,
|
|
34
|
+
Children = _this$asProps.Children,
|
|
34
35
|
label = _this$asProps.label,
|
|
35
36
|
title = _this$asProps.title,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
closable = _this$asProps.closable;
|
|
38
|
+
var textContent = /*#__PURE__*/React.createElement(Children, null);
|
|
39
|
+
if (typeof Children.origin === 'string') {
|
|
40
|
+
textContent = isNode(title) || isNode(label) || closable ? /*#__PURE__*/React.createElement(Notice.Text, null, /*#__PURE__*/React.createElement(Children, null)) : /*#__PURE__*/React.createElement(Children, null);
|
|
41
|
+
}
|
|
42
|
+
return textContent;
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
key: "renderSmartMode",
|
|
46
|
+
value: function renderSmartMode() {
|
|
47
|
+
var _this$asProps2 = this.asProps,
|
|
48
|
+
label = _this$asProps2.label,
|
|
49
|
+
title = _this$asProps2.title,
|
|
50
|
+
actions = _this$asProps2.actions,
|
|
51
|
+
closable = _this$asProps2.closable,
|
|
52
|
+
onClose = _this$asProps2.onClose;
|
|
53
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isNode(label) && /*#__PURE__*/React.createElement(Notice.Label, null, label), /*#__PURE__*/React.createElement(Notice.Content, null, isNode(title) && /*#__PURE__*/React.createElement(Notice.Title, null, title), this.renderContent(), isNode(actions) && /*#__PURE__*/React.createElement(Notice.Actions, null, actions)), closable && /*#__PURE__*/React.createElement(Notice.Close, {
|
|
41
54
|
onClick: onClose
|
|
42
55
|
}));
|
|
43
56
|
}
|
|
@@ -53,10 +66,10 @@ var NoticeFHRoot = /*#__PURE__*/function (_Component) {
|
|
|
53
66
|
var _ref = this.asProps,
|
|
54
67
|
_ref2;
|
|
55
68
|
var SHighlightedNotice = Notice;
|
|
56
|
-
var _this$
|
|
57
|
-
styles = _this$
|
|
58
|
-
Children = _this$
|
|
59
|
-
visible = _this$
|
|
69
|
+
var _this$asProps3 = this.asProps,
|
|
70
|
+
styles = _this$asProps3.styles,
|
|
71
|
+
Children = _this$asProps3.Children,
|
|
72
|
+
visible = _this$asProps3.visible;
|
|
60
73
|
var advancedMode = isAdvanceMode(Children, [NoticeFH.Label.displayName, NoticeFH.Actions.displayName, NoticeFH.Content.displayName, NoticeFH.Title.displayName, NoticeFH.Text.displayName, NoticeFH.Close.displayName]);
|
|
61
74
|
var beforeVisibility = visible === undefined || visible ? 'visible' : 'hidden';
|
|
62
75
|
return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(SHighlightedNotice, _ref2.cn("SHighlightedNotice", _objectSpread({}, _assignProps({
|
|
@@ -75,6 +88,7 @@ export var NoticeFH = createComponent(NoticeFHRoot, {
|
|
|
75
88
|
Content: Notice.Content,
|
|
76
89
|
Title: Notice.Title,
|
|
77
90
|
Text: Notice.Text,
|
|
78
|
-
Close: Notice.Close
|
|
91
|
+
Close: Notice.Close,
|
|
92
|
+
CloseIcon: Notice.CloseIcon
|
|
79
93
|
});
|
|
80
94
|
//# sourceMappingURL=Notice.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.js","names":["createComponent","Component","Root","sstyled","isAdvanceMode","isNode","Notice","React","style","_sstyled","insert","NoticeFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","
|
|
1
|
+
{"version":3,"file":"Notice.js","names":["createComponent","Component","Root","sstyled","isAdvanceMode","isNode","Notice","React","style","_sstyled","insert","NoticeFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","renderContent","_this$asProps","asProps","Children","label","title","closable","textContent","createElement","origin","Text","renderSmartMode","_this$asProps2","actions","onClose","Fragment","Label","Content","Title","Actions","Close","onClick","renderAdvancedMode","render","_ref","_ref2","SHighlightedNotice","_this$asProps3","styles","visible","advancedMode","NoticeFH","displayName","beforeVisibility","undefined","cn","_objectSpread","_assignProps","_defineProperty","CloseIcon"],"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 renderContent() {\n const { Children, label, title, closable } = this.asProps;\n let textContent = <Children />;\n\n if (typeof Children.origin === 'string') {\n textContent =\n isNode(title) || isNode(label) || closable\n ? (\n <Notice.Text>\n <Children />\n </Notice.Text>\n )\n : (\n <Children />\n );\n }\n\n return textContent;\n }\n\n renderSmartMode() {\n const { label, title, 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 {this.renderContent()}\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 CloseIcon: Notice.CloseIcon,\n}) as HighlightedNoticeComponent;\n"],"mappings":";;;;;;;;AAAA,SAASA,eAAe,EAAEC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,aAAa,QAAQ,uCAAuC;AACrE,OAAOC,MAAM,MAAM,gCAAgC;AAEnD,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAKpBC,YAAY,0BAAAC,UAAA;EAAA,SAAAD,aAAA;IAAAE,eAAA,OAAAF,YAAA;IAAA,OAAAG,UAAA,OAAAH,YAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,YAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,YAAA;IAAAO,GAAA;IAAAC,KAAA,EAIhB,SAAAC,aAAaA,CAAA,EAAG;MACd,IAAAC,aAAA,GAA6C,IAAI,CAACC,OAAO;QAAjDC,QAAQ,GAAAF,aAAA,CAARE,QAAQ;QAAEC,KAAK,GAAAH,aAAA,CAALG,KAAK;QAAEC,KAAK,GAAAJ,aAAA,CAALI,KAAK;QAAEC,QAAQ,GAAAL,aAAA,CAARK,QAAQ;MACxC,IAAIC,WAAW,gBAAGpB,KAAA,CAAAqB,aAAA,CAACL,QAAQ,MAAE,CAAC;MAE9B,IAAI,OAAOA,QAAQ,CAACM,MAAM,KAAK,QAAQ,EAAE;QACvCF,WAAW,GACHtB,MAAM,CAACoB,KAAK,CAAC,IAAIpB,MAAM,CAACmB,KAAK,CAAC,IAAIE,QAAQ,gB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U;AAAA+C,eAAA,CAD3B/C,YAAY,WAEDH,KAAK;AAmEtB,OAAO,IAAM2C,QAAQ,GAAGnD,eAAe,CAACW,YAAY,EAAE;EACpDyB,KAAK,EAAE9B,MAAM,CAAC8B,KAAK;EACnBG,OAAO,EAAEjC,MAAM,CAACiC,OAAO;EACvBF,OAAO,EAAE/B,MAAM,CAAC+B,OAAO;EACvBC,KAAK,EAAEhC,MAAM,CAACgC,KAAK;EACnBR,IAAI,EAAExB,MAAM,CAACwB,IAAI;EACjBU,KAAK,EAAElC,MAAM,CAACkC,KAAK;EACnBmB,SAAS,EAAErD,MAAM,CAACqD;AACpB,CAAC,CAA+B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notice.type.js","names":[],"sources":["../../../../src/components/notice/Notice.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Notice.type.js","names":[],"sources":["../../../../src/components/notice/Notice.type.ts"],"sourcesContent":["import type { NoticeSmart } from '@semcore/notice';\nimport type Notice from '@semcore/notice';\n\nexport type HighlightedNoticeComponent = typeof Notice & typeof NoticeSmart;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -13,15 +13,15 @@ import SummaryAI from '@semcore/icon/SummaryAI/m';
|
|
|
13
13
|
import Pills from '@semcore/pills';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
/*!__reshadow-styles__:"./pills.shadow.css"*/
|
|
16
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
16
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedPill_5oryn_gg_{border:1px solid transparent;background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) 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_5oryn_gg_{background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@media (color-gamut:p3){.___SHighlightedPill_5oryn_gg_{background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254))) border-box}}}.___SHighlightedPill_5oryn_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, rgb(192, 142, 255), rgb(102, 107, 219)));-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_5oryn_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)))}@media (color-gamut:p3){.___SHighlightedPill_5oryn_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(102, 107, 219)))}}}.___SHighlightedPill_5oryn_gg_._neighborLocation_left_5oryn_gg_::before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedPill_5oryn_gg_._neighborLocation_right_5oryn_gg_::before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedPill_5oryn_gg_._neighborLocation_both_5oryn_gg_::before{border-radius:0}@media (hover:hover){.___SHighlightedPill_5oryn_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255))) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedPill_5oryn_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255))) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@media (color-gamut:p3){.___SHighlightedPill_5oryn_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, color(display-p3 0.96716 0.95079 0.99961), color(display-p3 0.87344 0.9059 0.99962))) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254))) border-box}}}}.___SHighlightedPill_5oryn_gg_.__selected_5oryn_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255))) padding-box,var(--intergalactic-control-primary-feature-highlight-hover, linear-gradient(90deg in oklch, rgb(162, 97, 253), rgb(148, 165, 245))) border-box;background-origin:border-box;background-clip:padding-box,border-box;border-color:transparent}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedPill_5oryn_gg_.__selected_5oryn_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255))) padding-box,var(--intergalactic-control-primary-feature-highlight-hover, linear-gradient(90deg in oklch, rgb(162, 97, 253), rgb(148, 165, 245))) border-box}@media (color-gamut:p3){.___SHighlightedPill_5oryn_gg_.__selected_5oryn_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, color(display-p3 0.96716 0.95079 0.99961), color(display-p3 0.87344 0.9059 0.99962))) padding-box,var(--intergalactic-control-primary-feature-highlight-hover, linear-gradient(90deg in oklch, rgb(162, 97, 253), rgb(148, 165, 245))) border-box}}}.___SPills_5oryn_gg_ .___SHighlightedPill_5oryn_gg_:focus-visible{outline:0}.___SPills_5oryn_gg_ .___SHighlightedPill_5oryn_gg_:focus-visible::before{opacity:1;transform:scale(1)}@supports not (-webkit-mask-composite:xor){.___SHighlightedPill_5oryn_gg_:focus-visible{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SHighlightedPill_5oryn_gg_:focus-visible::before{display:none}}", /*__inner_css_end__*/"5oryn_gg_"),
|
|
17
17
|
/*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SHighlightedPill": "
|
|
20
|
-
"_neighborLocation_left": "
|
|
21
|
-
"_neighborLocation_right": "
|
|
22
|
-
"_neighborLocation_both": "
|
|
23
|
-
"_selected": "
|
|
24
|
-
"__SPills": "
|
|
19
|
+
"__SHighlightedPill": "___SHighlightedPill_5oryn_gg_",
|
|
20
|
+
"_neighborLocation_left": "_neighborLocation_left_5oryn_gg_",
|
|
21
|
+
"_neighborLocation_right": "_neighborLocation_right_5oryn_gg_",
|
|
22
|
+
"_neighborLocation_both": "_neighborLocation_both_5oryn_gg_",
|
|
23
|
+
"_selected": "__selected_5oryn_gg_",
|
|
24
|
+
"__SPills": "___SPills_5oryn_gg_"
|
|
25
25
|
});
|
|
26
26
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
27
27
|
var PillsFHRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pills.js","names":["createComponent","Root","Component","sstyled","SummaryAI","Pills","React","style","_sstyled","insert","AnimatedSparkles","PillsFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","createElement","_assignProps","_defineProperty","HighlightedItemRoot","_Component2","_this","_len","length","args","Array","_key","concat","clicked","handleClick","e","_this2","onClick","setState","setTimeout","getAddonProps","state","_ref2","_ref4","SHighlightedPill","Item","styles","cn","_objectSpread","_assignProps2","bind","HighlightedItemAddon","props","_ref3","arguments[0]","animatedSparkleCount","Children","children","Addon","_assignProps3","undefined","Fragment","color","show","count","PillsFH","HighlightedItem","Text"],"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 } 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\nexport const PillsFH = createComponent(PillsFHRoot, {\n Item: Pills.Item,\n HighlightedItem: createComponent(HighlightedItemRoot, { Text: Pills.Item.Text, Addon: HighlightedItemAddon }),\n}) as
|
|
1
|
+
{"version":3,"file":"Pills.js","names":["createComponent","Root","Component","sstyled","SummaryAI","Pills","React","style","_sstyled","insert","AnimatedSparkles","PillsFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","createElement","_assignProps","_defineProperty","HighlightedItemRoot","_Component2","_this","_len","length","args","Array","_key","concat","clicked","handleClick","e","_this2","onClick","setState","setTimeout","getAddonProps","state","_ref2","_ref4","SHighlightedPill","Item","styles","cn","_objectSpread","_assignProps2","bind","HighlightedItemAddon","props","_ref3","arguments[0]","animatedSparkleCount","Children","children","Addon","_assignProps3","undefined","Fragment","color","show","count","PillsFH","HighlightedItem","Text"],"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 } 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\nexport const PillsFH = createComponent(PillsFHRoot, {\n Item: Pills.Item,\n HighlightedItem: createComponent(HighlightedItemRoot, { Text: Pills.Item.Text, Addon: HighlightedItemAddon }),\n}) as HighlightedPillComponent;\n"],"mappings":";;;;;;;;;;AACA,SAASA,eAAe,EAAEC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AACzE,OAAOC,SAAS,MAAM,2BAA2B;AACjD,OAAOC,KAAK,MAAM,gBAAgB;AAClC,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,gBAAgB,QAAQ,iDAAiD;AAAC,IAE7EC,WAAW,0BAAAC,UAAA;EAAA,SAAAD,YAAA;IAAAE,eAAA,OAAAF,WAAA;IAAA,OAAAG,UAAA,OAAAH,WAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,WAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,WAAA;IAAAO,GAAA;IAAAC,KAAA,EAIf,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,oBAAQhB,KAAA,CAAAiB,aAAA,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KAAK,EAAET;EAAqB,CAAE,CAC/D,CAEJ,CAAC;AAEX;AAEA,OAAO,IAAMU,OAAO,GAAGnE,eAAe,CAACW,WAAW,EAAE;EAClDoC,IAAI,EAAE1C,KAAK,CAAC0C,IAAI;EAChBqB,eAAe,EAAEpE,eAAe,CAAC0B,mBAAmB,EAAE;IAAE2C,IAAI,EAAEhE,KAAK,CAAC0C,IAAI,CAACsB,IAAI;IAAET,KAAK,EAAEP;EAAqB,CAAC;AAC9G,CAAC,CAA6B","ignoreList":[]}
|
|
@@ -10,11 +10,11 @@ import { Component, createComponent, Root, sstyled, CONTEXT_COMPONENT } from '@s
|
|
|
10
10
|
import Radio, { RadioGroup } from '@semcore/radio';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
/*!__reshadow-styles__:"./radio.shadow.css"*/
|
|
13
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
13
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedRadio_webxj_gg_{position:relative}.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) [data-ui-name=\"Value.RadioMark\"]{border-radius:50%;background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254)))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) [data-ui-name=\"Value.RadioMark\"]{background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254)))}@media (color-gamut:p3){.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) [data-ui-name=\"Value.RadioMark\"]{background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254)))}}}.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_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, rgb(192, 142, 255), rgb(102, 107, 219)));-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_webxj_gg_:not(._state_invalid_webxj_gg_) [data-ui-name=\"Value.RadioMark\"]::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)))}@media (color-gamut:p3){.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) [data-ui-name=\"Value.RadioMark\"]::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(102, 107, 219)))}}}.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) [data-ui-name=\"Value.RadioMark\"]::after{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255));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_webxj_gg_:not(._state_invalid_webxj_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_webxj_gg_:not(._state_invalid_webxj_gg_) input[data-ui-name=\"RadioFH.Value\"]:focus-visible+[data-ui-name=\"Value.RadioMark\"]{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) input[data-ui-name=\"RadioFH.Value\"]:focus-visible+[data-ui-name=\"Value.RadioMark\"]::before{display:none}.___SHighlightedRadio_webxj_gg_:not(._state_invalid_webxj_gg_) input[data-ui-name=\"RadioFH.Value\"]:checked:focus-visible+[data-ui-name=\"Value.RadioMark\"]::before{display:none}}", /*__inner_css_end__*/"webxj_gg_"),
|
|
14
14
|
/*__reshadow_css_end__*/
|
|
15
15
|
{
|
|
16
|
-
"__SHighlightedRadio": "
|
|
17
|
-
"_state_invalid": "
|
|
16
|
+
"__SHighlightedRadio": "___SHighlightedRadio_webxj_gg_",
|
|
17
|
+
"_state_invalid": "_state_invalid_webxj_gg_"
|
|
18
18
|
});
|
|
19
19
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
20
20
|
var RadioFHRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","names":["Component","createComponent","Root","sstyled","CONTEXT_COMPONENT","Radio","RadioGroup","React","style","_sstyled","insert","AnimatedSparkles","RadioFHRoot","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","createRef","checked","setState","setTimeout","_this$inputRef$curren","inputRef","current","_inherits","_createClass","key","value","getValueProps","ref","onChange","setChecked","onClick","getAnimatedSparklesProps","size","context","state","show","top","left","render","_ref","asProps","_ref2","SHighlightedRadio","_this$asProps","styles","Children","hasChildren","children","createElement","cn","_objectSpread","_assignProps","Fragment","RadioFH","Value","Text"],"sources":["../../../../src/components/radio/Radio.tsx"],"sourcesContent":["import { Component, createComponent, Root, sstyled, CONTEXT_COMPONENT } from '@semcore/core';\nimport type {
|
|
1
|
+
{"version":3,"file":"Radio.js","names":["Component","createComponent","Root","sstyled","CONTEXT_COMPONENT","Radio","RadioGroup","React","style","_sstyled","insert","AnimatedSparkles","RadioFHRoot","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","createRef","checked","setState","setTimeout","_this$inputRef$curren","inputRef","current","_inherits","_createClass","key","value","getValueProps","ref","onChange","setChecked","onClick","getAnimatedSparklesProps","size","context","state","show","top","left","render","_ref","asProps","_ref2","SHighlightedRadio","_this$asProps","styles","Children","hasChildren","children","createElement","cn","_objectSpread","_assignProps","Fragment","RadioFH","Value","Text"],"sources":["../../../../src/components/radio/Radio.tsx"],"sourcesContent":["import { Component, createComponent, Root, sstyled, CONTEXT_COMPONENT } from '@semcore/core';\nimport type { RadioProps } 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<RadioProps> {\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}) as HighlightedRadioComponent;\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,IAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,gBAAgB,QAAQ,iDAAiD;AAAC,IAE7EC,WAAW,0BAAAC,UAAA;EAAA,SAAAD,YAAA;IAAA,IAAAE,KAAA;IAAAC,eAAA,OAAAH,WAAA;IAAA,SAAAI,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;MAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;IAAA;IAAAP,KAAA,GAAAQ,UAAA,OAAAV,WAAA,KAAAW,MAAA,CAAAJ,IAAA;IAAAK,eAAA,CAAAV,KAAA,2BAMJP,KAAK,CAACkB,SAAS,CAAmB,CAAC;IAAAD,eAAA,CAAAV,KAAA,WAEtC;MACNY,OAAO,EAAE;IACX,CAAC;IAAAF,eAAA,CAAAV,KAAA,gBAsBY,YAAM;MACjBA,KAAA,CAAKa,QAAQ,CAAC;QAAED,OAAO,EAAE;MAAM,CAAC,CAA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AElC,OAAAN,KAAA,GAAOhD,OAAO,CAACmD,MAAM,CAAC,eACpB/C,KAAA,CAAAmD,aAAA,CAACN,iBAAiB,EAAAD,KAAA,CAAAQ,EAAA,sBAAAC,aAAA,KAAAC,YAAA,KAAAZ,IAAA,KACfO,WAAW,gBACRjD,KAAA,CAAAmD,aAAA,CAACH,QAAQ,EAAAJ,KAAA,CAAAQ,EAAA,gBAAE,CAAC,gBAEVpD,KAAA,CAAAmD,aAAA,CAAAnD,KAAA,CAAAuD,QAAA,qBACEvD,KAAA,CAAAmD,aAAA,CAACK,OAAO,CAACC,KAAK,MAAE,CAAC,eACjBzD,KAAA,CAAAmD,aAAA,CAACK,OAAO,CAACE,IAAI,MAAE,CACf,CAES,CAAC;IAExB;EAAC;AAAA,EAvDuBjE,SAAS;AAAAwB,eAAA,CAA7BZ,WAAW,iBACM,SAAS;AAAAY,eAAA,CAD1BZ,WAAW,WAEAJ,KAAK;AACpB;AAAAgB,eAAA,CAHIZ,WAAW,iBAIMN,UAAU,CAACF,iBAAiB,CAAC;AAsDpD,OAAO,IAAM2D,OAAO,GAAG9D,eAAe,CAACW,WAAW,EAAE;EAClDqD,IAAI,EAAE5D,KAAK,CAAC4D,IAAI;EAChBD,KAAK,EAAE3D,KAAK,CAAC2D,KAAK;EAClBrD,gBAAgB,EAAhBA;AACF,CAAC,CAA8B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.type.js","names":[],"sources":["../../../../src/components/radio/Radio.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type {
|
|
1
|
+
{"version":3,"file":"Radio.type.js","names":[],"sources":["../../../../src/components/radio/Radio.type.ts"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport type { RadioCtx, RadioProps, RadioValueProps } from '@semcore/radio';\nimport type { Text } from '@semcore/typography';\n\nimport type { AnimatedSparklesProps } from '../../inner-components/sparkle/AnimatedSparkles';\n\nexport type HighlightedRadioComponent = Intergalactic.Component<'label', RadioProps, RadioCtx> & {\n Value: Intergalactic.Component<'input', RadioValueProps>;\n Text: typeof Text;\n AnimatedSparkles: Intergalactic.Component<'div', AnimatedSparklesProps>;\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","names":["createComponent","Root","Component","Select","React","ButtonTriggerFH","SelectFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","createElement","_assignProps","_defineProperty","Trigger","props","_ref2","arguments[0]","Children","hasChildren","children","_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}) as
|
|
1
|
+
{"version":3,"file":"Select.js","names":["createComponent","Root","Component","Select","React","ButtonTriggerFH","SelectFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","createElement","_assignProps","_defineProperty","Trigger","props","_ref2","arguments[0]","Children","hasChildren","children","_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}) as typeof Select;\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;AAAC,IAEhFC,YAAY,0BAAAC,UAAA;EAAA,SAAAD,aAAA;IAAAE,eAAA,OAAAF,YAAA;IAAA,OAAAG,UAAA,OAAAH,YAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,YAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,YAAA;IAAAO,GAAA;IAAAC,KAAA,EAGhB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,oBACEb,KAAA,CAAAc,aAAA,CAAcf,MAAM,EAAAgB,YAAA,KAAAH,IAAA,CAAG,CAAC;IAE5B;EAAC;AAAA,EAPwBd,SAAS;AAAAkB,eAAA,CAA9Bd,YAAY,iBACK,UAAU;AASjC,SAASe,OAAOA,CAACC,KAA0B,EAAE;EAAA,IAAAC,KAAA,GAAAC,YAAA;EAC3C,IAAQC,QAAQ,GAA4BH,KAAK,CAAzCG,QAAQ;IAAYC,WAAW,GAAKJ,KAAK,CAA/BK,QAAQ;EAE1B,oBACEvB,KAAA,CAAAc,aAAA,CAAcf,MAAM,CAACkB,OAAO,EAAAO,aAAA;IAAA,OAAOvB;EAAe,GAAAkB,KAAA,GAC/CG,WAAW,gBACRtB,KAAA,CAAAc,aAAA,CAACO,QAAQ,MAAE,CAAC,gBAEVrB,KAAA,CAAAc,aAAA,CAAAd,KAAA,CAAAyB,QAAA,qBACEzB,KAAA,CAAAc,aAAA,CAACY,QAAQ,CAACT,OAAO,CAACU,KAAK,MAAE,CAAC,eAC1B3B,KAAA,CAAAc,aAAA,CAACY,QAAQ,CAACT,OAAO,CAACW,IAAI,MAAE,CACxB,CAEJ,CAAC;AAEX;AAEA,OAAO,IAAMF,QAAQ,GAAG9B,eAAe,CAACM,YAAY,EAAE;EACpDe,OAAO,EAAE,CAACA,OAAO,EAAE;IACjBW,IAAI,EAAE3B,eAAe,CAAC2B,IAAI;IAC1BD,KAAK,EAAE1B,eAAe,CAAC0B;EACzB,CAAC,CAAC;EACFE,MAAM,EAAE9B,MAAM,CAAC8B,MAAM;EACrBC,IAAI,EAAE/B,MAAM,CAAC+B,IAAI;EACjBC,MAAM,EAAEhC,MAAM,CAACgC,MAAM;EACrBC,IAAI,EAAEjC,MAAM,CAACiC;AACf,CAAC,CAAkB","ignoreList":[]}
|
|
@@ -11,12 +11,12 @@ import { Component, createComponent, Root, sstyled } from '@semcore/core';
|
|
|
11
11
|
import Switch from '@semcore/switch';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
/*!__reshadow-styles__:"./switch.shadow.css"*/
|
|
14
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
14
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SToggle_1s0v4_gg_{position:relative;transform:translate(0)}.___SToggle_1s0v4_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, rgb(192, 142, 255), rgb(102, 107, 219)));-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_1s0v4_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)))}@media (color-gamut:p3){.___SToggle_1s0v4_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(102, 107, 219)))}}}.___SToggle_1s0v4_gg_.__checked_1s0v4_gg_{color:var(--intergalactic-control-primary-info, rgb(26, 30, 26));background-image:var(--intergalactic-control-primary-feature-highlight, linear-gradient(90deg in oklch, rgb(162, 97, 253), rgb(148, 165, 245)))}.___SToggle_1s0v4_gg_:has(.___SInput_1s0v4_gg_:focus-visible){box-shadow:none;outline:0}.___SToggle_1s0v4_gg_:has(.___SInput_1s0v4_gg_:focus-visible)::before{margin:-4px;opacity:1;transform:scale(1)}@supports not (-webkit-mask-composite:xor){.___SToggle_1s0v4_gg_:has(.___SInput_1s0v4_gg_:focus-visible){outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SToggle_1s0v4_gg_:has(.___SInput_1s0v4_gg_:focus-visible)::before{display:none}}", /*__inner_css_end__*/"1s0v4_gg_"),
|
|
15
15
|
/*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SToggle": "
|
|
18
|
-
"_checked": "
|
|
19
|
-
"__SInput": "
|
|
17
|
+
"__SToggle": "___SToggle_1s0v4_gg_",
|
|
18
|
+
"_checked": "__checked_1s0v4_gg_",
|
|
19
|
+
"__SInput": "___SInput_1s0v4_gg_"
|
|
20
20
|
});
|
|
21
21
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
22
22
|
var SwitchFHRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -13,12 +13,12 @@ import SummaryAI from '@semcore/icon/SummaryAI/m';
|
|
|
13
13
|
import TabLine from '@semcore/tab-line';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
/*!__reshadow-styles__:"./tabLine.shadow.css"*/
|
|
16
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
16
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedItem_2e2cr_gg_:focus-visible{outline:0}.___SHighlightedItem_2e2cr_gg_:focus-visible::before{opacity:1;transform:scale(1)}.___SHighlightedItem_2e2cr_gg_::after{opacity:0;transition:opacity calc(var(--intergalactic-duration-control, 200)*1ms) ease-in-out}.___SHighlightedItem_2e2cr_gg_.__selected_2e2cr_gg_::after{opacity:1;background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245)))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedItem_2e2cr_gg_.__selected_2e2cr_gg_::after{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245)))}@media (color-gamut:p3){.___SHighlightedItem_2e2cr_gg_.__selected_2e2cr_gg_::after{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(148, 165, 245)))}}}@media (hover:hover){.___SHighlightedItem_2e2cr_gg_:hover:not(:focus-visible)::after{opacity:1;background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245)))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedItem_2e2cr_gg_:hover:not(:focus-visible)::after{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245)))}@media (color-gamut:p3){.___SHighlightedItem_2e2cr_gg_:hover:not(:focus-visible)::after{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(148, 165, 245)))}}}}.___SHighlightedItem_2e2cr_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:content-box;background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)));-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_2e2cr_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)))}@media (color-gamut:p3){.___SHighlightedItem_2e2cr_gg_::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(102, 107, 219)))}}}.___SHighlightedCaret_2e2cr_gg_{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245)))}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedCaret_2e2cr_gg_{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(148, 165, 245)))}@media (color-gamut:p3){.___SHighlightedCaret_2e2cr_gg_{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(148, 165, 245)))}}}", /*__inner_css_end__*/"2e2cr_gg_"),
|
|
17
17
|
/*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SHighlightedCaret": "
|
|
20
|
-
"__SHighlightedItem": "
|
|
21
|
-
"_selected": "
|
|
19
|
+
"__SHighlightedCaret": "___SHighlightedCaret_2e2cr_gg_",
|
|
20
|
+
"__SHighlightedItem": "___SHighlightedItem_2e2cr_gg_",
|
|
21
|
+
"_selected": "__selected_2e2cr_gg_"
|
|
22
22
|
});
|
|
23
23
|
import { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
24
24
|
var TabLineFHRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabLine.js","names":["Component","createComponent","Root","sstyled","SummaryAI","TabLine","React","style","_sstyled","insert","AnimatedSparkles","TabLineFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","createElement","_assignProps","_defineProperty","HighlightedItemRoot","_Component2","_this","_len","length","args","Array","_key","concat","clicked","handleClick","e","_this2","onClick","setState","setTimeout","getAddonProps","state","_ref2","_ref4","SHighlightedItem","Item","styles","cn","_objectSpread","_assignProps2","bind","HighlightedAddon","props","_ref3","arguments[0]","animatedSparkleCount","Children","hasChildren","children","Addon","_assignProps3","Fragment","color","show","count","TabLineFH","Text","HighlightedItem"],"sources":["../../../../src/components/tab-line/TabLine.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport TabLine from '@semcore/tab-line';\nimport React from 'react';\n\nimport style from './tabLine.shadow.css';\nimport type { HighlightedTabLineComponent } from './TabLine.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass TabLineFHRoot extends Component {\n static displayName = 'TabLineFH';\n static style = style;\n\n render() {\n return (<Root render={TabLine} />);\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 SHighlightedItem = Root;\n\n return sstyled(this.asProps.styles)(<SHighlightedItem render={TabLine.Item} onClick={this.handleClick.bind(this)} />);\n }\n}\n\nfunction HighlightedAddon(props: { animatedSparkleCount?: number; clicked: boolean } & IRootComponentProps) {\n const { clicked, animatedSparkleCount, Children, children: hasChildren } = props;\n\n return (\n <Root render={TabLine.Item.Addon}>\n {hasChildren\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\nexport const TabLineFH = createComponent(TabLineFHRoot, {\n Item: [TabLine.Item, { Text: TabLine.Item.Text, Addon: TabLine.Item.Addon }],\n HighlightedItem: createComponent(HighlightedItemRoot, { Text: TabLine.Item.Text, Addon: HighlightedAddon }),\n}) as
|
|
1
|
+
{"version":3,"file":"TabLine.js","names":["Component","createComponent","Root","sstyled","SummaryAI","TabLine","React","style","_sstyled","insert","AnimatedSparkles","TabLineFHRoot","_Component","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","_ref","asProps","createElement","_assignProps","_defineProperty","HighlightedItemRoot","_Component2","_this","_len","length","args","Array","_key","concat","clicked","handleClick","e","_this2","onClick","setState","setTimeout","getAddonProps","state","_ref2","_ref4","SHighlightedItem","Item","styles","cn","_objectSpread","_assignProps2","bind","HighlightedAddon","props","_ref3","arguments[0]","animatedSparkleCount","Children","hasChildren","children","Addon","_assignProps3","Fragment","color","show","count","TabLineFH","Text","HighlightedItem"],"sources":["../../../../src/components/tab-line/TabLine.tsx"],"sourcesContent":["import type { IRootComponentProps } from '@semcore/core';\nimport { Component, createComponent, Root, sstyled } from '@semcore/core';\nimport SummaryAI from '@semcore/icon/SummaryAI/m';\nimport TabLine from '@semcore/tab-line';\nimport React from 'react';\n\nimport style from './tabLine.shadow.css';\nimport type { HighlightedTabLineComponent } from './TabLine.type';\nimport { AnimatedSparkles } from '../../inner-components/sparkle/AnimatedSparkles';\n\nclass TabLineFHRoot extends Component {\n static displayName = 'TabLineFH';\n static style = style;\n\n render() {\n return (<Root render={TabLine} />);\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 SHighlightedItem = Root;\n\n return sstyled(this.asProps.styles)(<SHighlightedItem render={TabLine.Item} onClick={this.handleClick.bind(this)} />);\n }\n}\n\nfunction HighlightedAddon(props: { animatedSparkleCount?: number; clicked: boolean } & IRootComponentProps) {\n const { clicked, animatedSparkleCount, Children, children: hasChildren } = props;\n\n return (\n <Root render={TabLine.Item.Addon}>\n {hasChildren\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\nexport const TabLineFH = createComponent(TabLineFHRoot, {\n Item: [TabLine.Item, { Text: TabLine.Item.Text, Addon: TabLine.Item.Addon }],\n HighlightedItem: createComponent(HighlightedItemRoot, { Text: TabLine.Item.Text, Addon: HighlightedAddon }),\n}) as HighlightedTabLineComponent;\n"],"mappings":";;;;;;;;;;AACA,SAASA,SAAS,EAAEC,eAAe,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,OAAOC,SAAS,MAAM,2BAA2B;AACjD,OAAOC,OAAO,MAAM,mBAAmB;AACvC,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,KAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;AAAA;AAI1B,SAASC,gBAAgB,QAAQ,iDAAiD;AAAC,IAE7EC,aAAa,0BAAAC,UAAA;EAAA,SAAAD,cAAA;IAAAE,eAAA,OAAAF,aAAA;IAAA,OAAAG,UAAA,OAAAH,aAAA,EAAAI,SAAA;EAAA;EAAAC,SAAA,CAAAL,aAAA,EAAAC,UAAA;EAAA,OAAAK,YAAA,CAAAN,aAAA;IAAAO,GAAA;IAAAC,KAAA,EAIjB,SAAAC,MAAMA,CAAA,EAAG;MAAA,IAAAC,IAAA,QAAAC,OAAA;MACP,oBAAQhB,KAAA,CAAAiB,aAAA,CAAclB,OAAO,EAAAmB,YAAA,KAAAH,IAAA,CAAG,CAAC;IACnC;EAAC;AAAA,EANyBrB,SAAS;AAAAyB,eAAA,CAA/Bd,aAAa,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,CAAC1C,OAAO,CAAC0C,IAAI,EAAE;IAAEqB,IAAI,EAAE/D,OAAO,CAAC0C,IAAI,CAACqB,IAAI;IAAEP,KAAK,EAAExD,OAAO,CAAC0C,IAAI,CAACc;EAAM,CAAC,CAAC;EAC5EQ,eAAe,EAAEpE,eAAe,CAACyB,mBAAmB,EAAE;IAAE0C,IAAI,EAAE/D,OAAO,CAAC0C,IAAI,CAACqB,IAAI;IAAEP,KAAK,EAAER;EAAiB,CAAC;AAC5G,CAAC,CAAgC","ignoreList":[]}
|
|
@@ -12,16 +12,16 @@ import { createComponent, Root, sstyled, Component } from '@semcore/core';
|
|
|
12
12
|
import SummaryAI from '@semcore/icon/SummaryAI/m';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
/*!__reshadow-styles__:"./buttonTrigger.shadow.css"*/
|
|
15
|
-
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
15
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_){border:1px solid transparent;background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) 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_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_){background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@media (color-gamut:p3){.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_){background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254))) border-box}}}.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_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, rgb(192, 142, 255), rgb(102, 107, 219)));-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_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_)::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, rgb(192, 142, 255), rgb(102, 107, 219)))}@media (color-gamut:p3){.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_)::before{background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg in oklch, color(display-p3 0.72564 0.56096 0.98326), rgb(102, 107, 219)))}}}@media (hover:hover){.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255))) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@supports (background:linear-gradient(in oklch,red 0%,red 0% 1%,red 2%)) and (color:color(display-p3 0 0 0%)){.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, rgb(247, 243, 255), rgb(222, 231, 255))) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, rgb(210, 179, 255), rgb(176, 193, 254))) border-box}@media (color-gamut:p3){.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg in oklch, color(display-p3 0.96716 0.95079 0.99961), color(display-p3 0.87344 0.9059 0.99962))) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg in oklch, color(display-p3 0.80738 0.70018 0.99486), rgb(176, 193, 254))) border-box}}}}.___SHighlightedButtonTrigger_11f2l_gg_.__active_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_),.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):active{background:linear-gradient(white,white) padding-box,var(--intergalactic-control-primary-feature-highlight-hover, linear-gradient(90deg in oklch, rgb(162, 97, 253), rgb(148, 165, 245))) border-box;background-origin:border-box;background-clip:padding-box,border-box;border-color:transparent}.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):focus-visible{outline:0;border-color:transparent}.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):focus-visible::before{opacity:1;transform:scale(1)}.___SHighlightedButtonTrigger_11f2l_gg_._neighborLocation_left_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_)::before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedButtonTrigger_11f2l_gg_._neighborLocation_right_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_)::before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedButtonTrigger_11f2l_gg_._neighborLocation_both_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_)::before{border-radius:0}@supports not (-webkit-mask-composite:xor){.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):focus-visible{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px #7078fc}.___SHighlightedButtonTrigger_11f2l_gg_:not(._state_invalid_11f2l_gg_):not(._state_valid_11f2l_gg_):focus-visible::before{display:none}}", /*__inner_css_end__*/"11f2l_gg_"),
|
|
16
16
|
/*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SHighlightedButtonTrigger": "
|
|
19
|
-
"_state_invalid": "
|
|
20
|
-
"_state_valid": "
|
|
21
|
-
"_active": "
|
|
22
|
-
"_neighborLocation_left": "
|
|
23
|
-
"_neighborLocation_right": "
|
|
24
|
-
"_neighborLocation_both": "
|
|
18
|
+
"__SHighlightedButtonTrigger": "___SHighlightedButtonTrigger_11f2l_gg_",
|
|
19
|
+
"_state_invalid": "_state_invalid_11f2l_gg_",
|
|
20
|
+
"_state_valid": "_state_valid_11f2l_gg_",
|
|
21
|
+
"_active": "__active_11f2l_gg_",
|
|
22
|
+
"_neighborLocation_left": "_neighborLocation_left_11f2l_gg_",
|
|
23
|
+
"_neighborLocation_right": "_neighborLocation_right_11f2l_gg_",
|
|
24
|
+
"_neighborLocation_both": "_neighborLocation_both_11f2l_gg_"
|
|
25
25
|
});
|
|
26
26
|
var ButtonTriggerFHRoot = /*#__PURE__*/function (_Component) {
|
|
27
27
|
function ButtonTriggerFHRoot() {
|
|
@@ -4,21 +4,21 @@ import { assignProps as _assignProps } from "@semcore/core";
|
|
|
4
4
|
import { createBaseComponent, Root, sstyled } from '@semcore/core';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
/*!__reshadow-styles__:"./style/sparkle.shadow.css"*/
|
|
7
|
-
var styles = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes
|
|
7
|
+
var styles = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/"@keyframes sparkles_18gww{50%{transform:rotate(calc(1deg*var(--angle_18gww))) translateY(200%) scale(var(--scale_18gww))}to{transform:rotate(calc(1deg*var(--angle_18gww))) translateY(200%) scale(0)}}.___SSparkle_18gww_gg_{position:absolute}.___SSparkle_18gww_gg_ path{fill:var(--intergalactic-icon-primary-feature-highlight, rgb(144, 65, 250))}.___SSparkle_18gww_gg_.__angle_18gww_gg_.__scale_18gww_gg_.__duration_18gww_gg_{transform:rotate(calc(1deg*var(--angle_18gww))) scale(var(--scale_18gww));animation-name:sparkles_18gww;animation-fill-mode:forwards;animation-duration:var(--duration_18gww)}.___SSparkle_18gww_gg_.__left_18gww_gg_{left:var(--left_18gww)}.___SSparkle_18gww_gg_.__top_18gww_gg_{top:var(--top_18gww)}", /*__inner_css_end__*/"18gww_gg_"),
|
|
8
8
|
/*__reshadow_css_end__*/
|
|
9
9
|
{
|
|
10
|
-
"__SSparkle": "
|
|
11
|
-
"_angle": "
|
|
12
|
-
"_scale": "
|
|
13
|
-
"_duration": "
|
|
14
|
-
"--angle": "--
|
|
15
|
-
"--scale": "--
|
|
16
|
-
"--duration": "--
|
|
17
|
-
"@sparkles": "
|
|
18
|
-
"_left": "
|
|
19
|
-
"--left": "--
|
|
20
|
-
"_top": "
|
|
21
|
-
"--top": "--
|
|
10
|
+
"__SSparkle": "___SSparkle_18gww_gg_",
|
|
11
|
+
"_angle": "__angle_18gww_gg_",
|
|
12
|
+
"_scale": "__scale_18gww_gg_",
|
|
13
|
+
"_duration": "__duration_18gww_gg_",
|
|
14
|
+
"--angle": "--angle_18gww",
|
|
15
|
+
"--scale": "--scale_18gww",
|
|
16
|
+
"--duration": "--duration_18gww",
|
|
17
|
+
"@sparkles": "sparkles_18gww",
|
|
18
|
+
"_left": "__left_18gww_gg_",
|
|
19
|
+
"--left": "--left_18gww",
|
|
20
|
+
"_top": "__top_18gww_gg_",
|
|
21
|
+
"--top": "--top_18gww"
|
|
22
22
|
});
|
|
23
23
|
function SvgSparkle(props, ref) {
|
|
24
24
|
var _ref = arguments[0],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sparkle.js","names":["createBaseComponent","Root","sstyled","React","styles","_sstyled","insert","SvgSparkle","props","ref","_ref","arguments[0]","_ref2","SSparkle","num","index","curve","left","rand","Math","floor","random","angle","sin","PI","x","trunc","odd","scale","animationDuration","concat","createElement","cn","_objectSpread","_assignProps"],"sources":["../../../../src/inner-components/sparkle/Sparkle.tsx"],"sourcesContent":["import { createBaseComponent, Root, sstyled } from '@semcore/core';\nimport type { ForwardedRef } from 'react';\nimport React from 'react';\n\nimport styles from './style/sparkle.shadow.css';\n\ntype SparkleProps = {\n index: number;\n num: number;\n curve?: number;\n top?: string;\n left?: string;\n};\n\nfunction SvgSparkle(props: SparkleProps, ref: ForwardedRef<
|
|
1
|
+
{"version":3,"file":"Sparkle.js","names":["createBaseComponent","Root","sstyled","React","styles","_sstyled","insert","SvgSparkle","props","ref","_ref","arguments[0]","_ref2","SSparkle","num","index","curve","left","rand","Math","floor","random","angle","sin","PI","x","trunc","odd","scale","animationDuration","concat","createElement","cn","_objectSpread","_assignProps"],"sources":["../../../../src/inner-components/sparkle/Sparkle.tsx"],"sourcesContent":["import type { Intergalactic } from '@semcore/core';\nimport { createBaseComponent, Root, sstyled } from '@semcore/core';\nimport type { ForwardedRef } from 'react';\nimport React from 'react';\n\nimport styles from './style/sparkle.shadow.css';\n\ntype SparkleProps = {\n index: number;\n num: number;\n curve?: number;\n top?: string;\n left?: string;\n};\n\nfunction SvgSparkle(props: SparkleProps, ref: ForwardedRef<SVGElement>) {\n const SSparkle = Root;\n const { num, index, curve, left } = props;\n const rand = Math.floor(Math.random() * 50);\n const angle = (360 / num) * index + rand;\n const sin = Math.sin((Math.PI * angle) / 180);\n const x = curve ? Math.trunc(sin * -1 * curve) : 0;\n const odd = index % 2;\n const scale = 1 - odd * 0.3;\n const animationDuration = `${0.6 - odd * 0.2}s`;\n\n return sstyled(styles)(\n <SSparkle\n ref={ref}\n aria-hidden={true}\n render='svg'\n use:left={x ? `${x + 14}px` : left}\n scale={scale}\n duration={animationDuration}\n angle={angle}\n width='10'\n height='10'\n viewBox='0 0 10 10'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n >\n <path d='M5.371.269a.39.39 0 0 0-.742 0L3.704 3.08a.977.977 0 0 1-.623.623L.27 4.629a.39.39 0 0 0 0 .742l2.812.925a.977.977 0 0 1 .623.623l.925 2.812a.39.39 0 0 0 .742 0l.925-2.812a.977.977 0 0 1 .623-.623l2.812-.925a.39.39 0 0 0 0-.742L6.92 3.704a.977.977 0 0 1-.623-.623L5.371.27Z' />\n </SSparkle>,\n );\n}\n\nexport default createBaseComponent(SvgSparkle) as unknown as Intergalactic.Component<'svg', SparkleProps>;\n"],"mappings":";;;AACA,SAASA,mBAAmB,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AAElE,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,MAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAY1B,SAASC,UAAUA,CAACC,KAAmB,EAAEC,GAA6B,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACtE,IAAMC,QAAQ,GAcH,KAAK;EAbhB,IAAQC,GAAG,GAAyBN,KAAK,CAAjCM,GAAG;IAAEC,KAAK,GAAkBP,KAAK,CAA5BO,KAAK;IAAEC,KAAK,GAAWR,KAAK,CAArBQ,KAAK;IAAEC,I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