@semcore/feature-highlight 16.0.1-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +39 -0
- package/lib/cjs/components/badge/Badge.js +46 -0
- package/lib/cjs/components/badge/Badge.js.map +1 -0
- package/lib/cjs/components/badge/badge.shadow.css +14 -0
- package/lib/cjs/components/button/Button.js +107 -0
- package/lib/cjs/components/button/Button.js.map +1 -0
- package/lib/cjs/components/button/Button.type.js +2 -0
- package/lib/cjs/components/button/Button.type.js.map +1 -0
- package/lib/cjs/components/button/button.shadow.css +76 -0
- package/lib/cjs/components/checkbox/Checkbox.js +86 -0
- package/lib/cjs/components/checkbox/Checkbox.js.map +1 -0
- package/lib/cjs/components/checkbox/Checkbox.type.js +2 -0
- package/lib/cjs/components/checkbox/Checkbox.type.js.map +1 -0
- package/lib/cjs/components/checkbox/checkbox.shadow.css +38 -0
- package/lib/cjs/components/input/Input.js +63 -0
- package/lib/cjs/components/input/Input.js.map +1 -0
- package/lib/cjs/components/input/input.shadow.css +41 -0
- package/lib/cjs/components/notice/Notice.js +73 -0
- package/lib/cjs/components/notice/Notice.js.map +1 -0
- package/lib/cjs/components/notice/notice.shadow.css +26 -0
- package/lib/cjs/components/pills/Pills.js +117 -0
- package/lib/cjs/components/pills/Pills.js.map +1 -0
- package/lib/cjs/components/pills/Pills.type.js +2 -0
- package/lib/cjs/components/pills/Pills.type.js.map +1 -0
- package/lib/cjs/components/pills/pills.shadow.css +57 -0
- package/lib/cjs/components/radio/Radio.js +100 -0
- package/lib/cjs/components/radio/Radio.js.map +1 -0
- package/lib/cjs/components/radio/Radio.type.js +2 -0
- package/lib/cjs/components/radio/Radio.type.js.map +1 -0
- package/lib/cjs/components/radio/radio.shadow.css +43 -0
- package/lib/cjs/components/select/Select.js +53 -0
- package/lib/cjs/components/select/Select.js.map +1 -0
- package/lib/cjs/components/switch/Switch.js +94 -0
- package/lib/cjs/components/switch/Switch.js.map +1 -0
- package/lib/cjs/components/switch/Switch.type.js +2 -0
- package/lib/cjs/components/switch/Switch.type.js.map +1 -0
- package/lib/cjs/components/switch/switch.shadow.css +22 -0
- package/lib/cjs/components/tab-line/TabLine.js +119 -0
- package/lib/cjs/components/tab-line/TabLine.js.map +1 -0
- package/lib/cjs/components/tab-line/TabLine.type.js +2 -0
- package/lib/cjs/components/tab-line/TabLine.type.js.map +1 -0
- package/lib/cjs/components/tab-line/tabLine.shadow.css +25 -0
- package/lib/cjs/index.js +116 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.js +66 -0
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.js.map +1 -0
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.type.js +2 -0
- package/lib/cjs/inner-components/button-trigger/ButtonTrigger.type.js.map +1 -0
- package/lib/cjs/inner-components/button-trigger/buttonTrigger.shadow.css +57 -0
- package/lib/cjs/inner-components/sparkle/AnimatedSparkles.js +28 -0
- package/lib/cjs/inner-components/sparkle/AnimatedSparkles.js.map +1 -0
- package/lib/cjs/inner-components/sparkle/Sparkle.js +59 -0
- package/lib/cjs/inner-components/sparkle/Sparkle.js.map +1 -0
- package/lib/cjs/inner-components/sparkle/index.js +14 -0
- package/lib/cjs/inner-components/sparkle/index.js.map +1 -0
- package/lib/cjs/inner-components/sparkle/style/sparkle.shadow.css +31 -0
- package/lib/es6/components/badge/Badge.js +41 -0
- package/lib/es6/components/badge/Badge.js.map +1 -0
- package/lib/es6/components/badge/badge.shadow.css +14 -0
- package/lib/es6/components/button/Button.js +103 -0
- package/lib/es6/components/button/Button.js.map +1 -0
- package/lib/es6/components/button/Button.type.js +2 -0
- package/lib/es6/components/button/Button.type.js.map +1 -0
- package/lib/es6/components/button/button.shadow.css +76 -0
- package/lib/es6/components/checkbox/Checkbox.js +81 -0
- package/lib/es6/components/checkbox/Checkbox.js.map +1 -0
- package/lib/es6/components/checkbox/Checkbox.type.js +2 -0
- package/lib/es6/components/checkbox/Checkbox.type.js.map +1 -0
- package/lib/es6/components/checkbox/checkbox.shadow.css +38 -0
- package/lib/es6/components/input/Input.js +59 -0
- package/lib/es6/components/input/Input.js.map +1 -0
- package/lib/es6/components/input/input.shadow.css +41 -0
- package/lib/es6/components/notice/Notice.js +68 -0
- package/lib/es6/components/notice/Notice.js.map +1 -0
- package/lib/es6/components/notice/notice.shadow.css +26 -0
- package/lib/es6/components/pills/Pills.js +113 -0
- package/lib/es6/components/pills/Pills.js.map +1 -0
- package/lib/es6/components/pills/Pills.type.js +2 -0
- package/lib/es6/components/pills/Pills.type.js.map +1 -0
- package/lib/es6/components/pills/pills.shadow.css +57 -0
- package/lib/es6/components/radio/Radio.js +94 -0
- package/lib/es6/components/radio/Radio.js.map +1 -0
- package/lib/es6/components/radio/Radio.type.js +2 -0
- package/lib/es6/components/radio/Radio.type.js.map +1 -0
- package/lib/es6/components/radio/radio.shadow.css +43 -0
- package/lib/es6/components/select/Select.js +48 -0
- package/lib/es6/components/select/Select.js.map +1 -0
- package/lib/es6/components/switch/Switch.js +90 -0
- package/lib/es6/components/switch/Switch.js.map +1 -0
- package/lib/es6/components/switch/Switch.type.js +2 -0
- package/lib/es6/components/switch/Switch.type.js.map +1 -0
- package/lib/es6/components/switch/switch.shadow.css +22 -0
- package/lib/es6/components/tab-line/TabLine.js +116 -0
- package/lib/es6/components/tab-line/TabLine.js.map +1 -0
- package/lib/es6/components/tab-line/TabLine.type.js +2 -0
- package/lib/es6/components/tab-line/TabLine.type.js.map +1 -0
- package/lib/es6/components/tab-line/tabLine.shadow.css +25 -0
- package/lib/es6/index.js +11 -0
- package/lib/es6/index.js.map +1 -0
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.js +62 -0
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.js.map +1 -0
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.type.js +2 -0
- package/lib/es6/inner-components/button-trigger/ButtonTrigger.type.js.map +1 -0
- package/lib/es6/inner-components/button-trigger/buttonTrigger.shadow.css +57 -0
- package/lib/es6/inner-components/sparkle/AnimatedSparkles.js +21 -0
- package/lib/es6/inner-components/sparkle/AnimatedSparkles.js.map +1 -0
- package/lib/es6/inner-components/sparkle/Sparkle.js +54 -0
- package/lib/es6/inner-components/sparkle/Sparkle.js.map +1 -0
- package/lib/es6/inner-components/sparkle/index.js +3 -0
- package/lib/es6/inner-components/sparkle/index.js.map +1 -0
- package/lib/es6/inner-components/sparkle/style/sparkle.shadow.css +31 -0
- package/lib/esm/components/badge/Badge.mjs +49 -0
- package/lib/esm/components/badge/badge.shadow.css +14 -0
- package/lib/esm/components/button/Button.mjs +106 -0
- package/lib/esm/components/button/button.shadow.css +76 -0
- package/lib/esm/components/checkbox/Checkbox.mjs +86 -0
- package/lib/esm/components/checkbox/checkbox.shadow.css +38 -0
- package/lib/esm/components/input/Input.mjs +65 -0
- package/lib/esm/components/input/input.shadow.css +41 -0
- package/lib/esm/components/notice/Notice.mjs +66 -0
- package/lib/esm/components/notice/notice.shadow.css +26 -0
- package/lib/esm/components/pills/Pills.mjs +117 -0
- package/lib/esm/components/pills/pills.shadow.css +57 -0
- package/lib/esm/components/radio/Radio.mjs +98 -0
- package/lib/esm/components/radio/radio.shadow.css +43 -0
- package/lib/esm/components/select/Select.mjs +49 -0
- package/lib/esm/components/switch/Switch.mjs +96 -0
- package/lib/esm/components/switch/switch.shadow.css +22 -0
- package/lib/esm/components/tab-line/TabLine.mjs +119 -0
- package/lib/esm/components/tab-line/tabLine.shadow.css +25 -0
- package/lib/esm/index.mjs +22 -0
- package/lib/esm/inner-components/button-trigger/ButtonTrigger.mjs +67 -0
- package/lib/esm/inner-components/button-trigger/buttonTrigger.shadow.css +57 -0
- package/lib/esm/inner-components/sparkle/AnimatedSparkles.mjs +19 -0
- package/lib/esm/inner-components/sparkle/Sparkle.mjs +57 -0
- package/lib/esm/inner-components/sparkle/style/sparkle.shadow.css +31 -0
- package/lib/types/components/badge/Badge.d.ts +3 -0
- package/lib/types/components/button/Button.d.ts +2 -0
- package/lib/types/components/button/Button.type.d.ts +8 -0
- package/lib/types/components/checkbox/Checkbox.d.ts +2 -0
- package/lib/types/components/checkbox/Checkbox.type.d.ts +8 -0
- package/lib/types/components/input/Input.d.ts +2 -0
- package/lib/types/components/notice/Notice.d.ts +3 -0
- package/lib/types/components/pills/Pills.d.ts +2 -0
- package/lib/types/components/pills/Pills.type.d.ts +13 -0
- package/lib/types/components/radio/Radio.d.ts +2 -0
- package/lib/types/components/radio/Radio.type.d.ts +9 -0
- package/lib/types/components/select/Select.d.ts +2 -0
- package/lib/types/components/switch/Switch.d.ts +2 -0
- package/lib/types/components/switch/Switch.type.d.ts +6 -0
- package/lib/types/components/tab-line/TabLine.d.ts +2 -0
- package/lib/types/components/tab-line/TabLine.type.d.ts +9 -0
- package/lib/types/index.d.ts +10 -0
- package/lib/types/inner-components/button-trigger/ButtonTrigger.d.ts +2 -0
- package/lib/types/inner-components/button-trigger/ButtonTrigger.type.d.ts +7 -0
- package/lib/types/inner-components/sparkle/AnimatedSparkles.d.ts +10 -0
- package/lib/types/inner-components/sparkle/Sparkle.d.ts +10 -0
- package/lib/types/inner-components/sparkle/index.d.ts +2 -0
- package/package.json +47 -0
- package/vite.config.ts +33 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import { createComponent, assignProps, Component, sstyled } from "@semcore/core";
|
|
10
|
+
import SummaryAI from "@semcore/icon/SummaryAI/m";
|
|
11
|
+
import Pills from "@semcore/pills";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { AnimatedSparkles } from "../../inner-components/sparkle/AnimatedSparkles.mjs";
|
|
14
|
+
function _callSuper(t, o, e) {
|
|
15
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
16
|
+
}
|
|
17
|
+
/*!__reshadow-styles__:"./pills.shadow.css"*/
|
|
18
|
+
var style = (
|
|
19
|
+
/*__reshadow_css_start__*/
|
|
20
|
+
(sstyled.insert(
|
|
21
|
+
/*__inner_css_start__*/
|
|
22
|
+
'.___SHighlightedPill_4manu_gg_{border:1px solid transparent;background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff)\n ) border-box;background-origin:border-box;background-clip:padding-box,border-box;z-index:1}@media (hover:hover){.___SHighlightedPill_4manu_gg_:hover{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg, #f9f2ff, #e9f7ff)) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff)\n ) border-box}}.___SHighlightedPill_4manu_gg_.__selected_4manu_gg_{background:var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg, #f9f2ff, #e9f7ff)) padding-box,var(--intergalactic-control-primary-feature-highlight-hover, linear-gradient(90deg, #8649e1, #006dca)) border-box;background-origin:border-box;background-clip:padding-box,border-box;border-color:transparent}.___SHighlightedPill_4manu_gg_:focus-visible{outline:0;position:relative}.___SHighlightedPill_4manu_gg_:focus-visible::before{content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:-4px;padding:4px;border-radius:calc(var(--intergalactic-control-rounded, 6px) + 3px);background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5)));-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}.___SHighlightedPill_4manu_gg_._neighborLocation_left_4manu_gg_:focus-visible::before{border-top-left-radius:0;border-bottom-left-radius:0}.___SHighlightedPill_4manu_gg_._neighborLocation_right_4manu_gg_:focus-visible::before{border-top-right-radius:0;border-bottom-right-radius:0}.___SHighlightedPill_4manu_gg_._neighborLocation_both_4manu_gg_:focus-visible::before{border-radius:0}',
|
|
23
|
+
/*__inner_css_end__*/
|
|
24
|
+
"4manu_gg_"
|
|
25
|
+
), /*__reshadow_css_end__*/
|
|
26
|
+
{
|
|
27
|
+
"__SHighlightedPill": "___SHighlightedPill_4manu_gg_",
|
|
28
|
+
"_selected": "__selected_4manu_gg_",
|
|
29
|
+
"_neighborLocation_left": "_neighborLocation_left_4manu_gg_",
|
|
30
|
+
"_neighborLocation_right": "_neighborLocation_right_4manu_gg_",
|
|
31
|
+
"_neighborLocation_both": "_neighborLocation_both_4manu_gg_"
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
var PillsFHRoot = /* @__PURE__ */ function(_Component) {
|
|
35
|
+
function PillsFHRoot2() {
|
|
36
|
+
_classCallCheck(this, PillsFHRoot2);
|
|
37
|
+
return _callSuper(this, PillsFHRoot2, arguments);
|
|
38
|
+
}
|
|
39
|
+
_inherits(PillsFHRoot2, _Component);
|
|
40
|
+
return _createClass(PillsFHRoot2, [{
|
|
41
|
+
key: "render",
|
|
42
|
+
value: function render() {
|
|
43
|
+
var _ref = this.asProps;
|
|
44
|
+
return /* @__PURE__ */ React.createElement(Pills, assignProps({}, _ref));
|
|
45
|
+
}
|
|
46
|
+
}]);
|
|
47
|
+
}(Component);
|
|
48
|
+
_defineProperty(PillsFHRoot, "displayName", "PillsFH");
|
|
49
|
+
_defineProperty(PillsFHRoot, "style", style);
|
|
50
|
+
var HighlightedItemRoot = /* @__PURE__ */ function(_Component2) {
|
|
51
|
+
function HighlightedItemRoot2() {
|
|
52
|
+
var _this;
|
|
53
|
+
_classCallCheck(this, HighlightedItemRoot2);
|
|
54
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
55
|
+
args[_key] = arguments[_key];
|
|
56
|
+
}
|
|
57
|
+
_this = _callSuper(this, HighlightedItemRoot2, [].concat(args));
|
|
58
|
+
_defineProperty(_this, "state", {
|
|
59
|
+
clicked: false
|
|
60
|
+
});
|
|
61
|
+
return _this;
|
|
62
|
+
}
|
|
63
|
+
_inherits(HighlightedItemRoot2, _Component2);
|
|
64
|
+
return _createClass(HighlightedItemRoot2, [{
|
|
65
|
+
key: "handleClick",
|
|
66
|
+
value: function handleClick(e) {
|
|
67
|
+
var _this2 = this;
|
|
68
|
+
var onClick = this.asProps.onClick;
|
|
69
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
70
|
+
this.setState({
|
|
71
|
+
clicked: false
|
|
72
|
+
});
|
|
73
|
+
setTimeout(function() {
|
|
74
|
+
_this2.setState({
|
|
75
|
+
clicked: true
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
key: "getAddonProps",
|
|
81
|
+
value: function getAddonProps() {
|
|
82
|
+
return {
|
|
83
|
+
clicked: this.state.clicked
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}, {
|
|
87
|
+
key: "render",
|
|
88
|
+
value: function render() {
|
|
89
|
+
var _ref2 = this.asProps, _ref3;
|
|
90
|
+
var SHighlightedPill = Pills.Item;
|
|
91
|
+
return _ref3 = sstyled(this.asProps.styles), /* @__PURE__ */ React.createElement(SHighlightedPill, _ref3.cn("SHighlightedPill", _objectSpread({}, assignProps({
|
|
92
|
+
"onClick": this.handleClick.bind(this)
|
|
93
|
+
}, _ref2))));
|
|
94
|
+
}
|
|
95
|
+
}]);
|
|
96
|
+
}(Component);
|
|
97
|
+
_defineProperty(HighlightedItemRoot, "displayName", "HighlightedItem");
|
|
98
|
+
_defineProperty(HighlightedItemRoot, "style", style);
|
|
99
|
+
function HighlightedItemAddon(props) {
|
|
100
|
+
var clicked = props.clicked, animatedSparkleCount = props.animatedSparkleCount, Children = props.Children, hasChildren = props.children;
|
|
101
|
+
return /* @__PURE__ */ React.createElement(Pills.Item.Addon, null, hasChildren ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SummaryAI, {
|
|
102
|
+
color: "--intergalactic-icon-primary-feature-highlight"
|
|
103
|
+
}), /* @__PURE__ */ React.createElement(AnimatedSparkles, {
|
|
104
|
+
show: clicked,
|
|
105
|
+
count: animatedSparkleCount
|
|
106
|
+
})));
|
|
107
|
+
}
|
|
108
|
+
var PillsFH = createComponent(PillsFHRoot, {
|
|
109
|
+
Item: Pills.Item,
|
|
110
|
+
HighlightedItem: createComponent(HighlightedItemRoot, {
|
|
111
|
+
Text: Pills.Item.Text,
|
|
112
|
+
Addon: HighlightedItemAddon
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
export {
|
|
116
|
+
PillsFH
|
|
117
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
SHighlightedPill {
|
|
2
|
+
border: 1px solid transparent;
|
|
3
|
+
background:
|
|
4
|
+
linear-gradient(white, white) padding-box,
|
|
5
|
+
var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff)
|
|
6
|
+
) border-box;
|
|
7
|
+
background-origin: border-box;
|
|
8
|
+
background-clip: padding-box, border-box;
|
|
9
|
+
z-index: 1;
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
background: var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg, #f9f2ff, #e9f7ff)) padding-box,
|
|
13
|
+
var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff)
|
|
14
|
+
) border-box;
|
|
15
|
+
}
|
|
16
|
+
&[selected] {
|
|
17
|
+
background:
|
|
18
|
+
var(--intergalactic-bg-primary-feature-highlight-hover-active, linear-gradient(90deg, #f9f2ff, #e9f7ff)) padding-box,
|
|
19
|
+
var(--intergalactic-control-primary-feature-highlight-hover, linear-gradient(90deg, #8649e1, #006dca)) border-box;
|
|
20
|
+
background-origin: border-box;
|
|
21
|
+
background-clip: padding-box, border-box;
|
|
22
|
+
border-color: transparent;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
SHighlightedPill:focus-visible {
|
|
27
|
+
outline: none;
|
|
28
|
+
position: relative;
|
|
29
|
+
/*isolation: isolate;*/
|
|
30
|
+
|
|
31
|
+
&::before {
|
|
32
|
+
content: "";
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: -1;
|
|
35
|
+
inset: 0;
|
|
36
|
+
margin: -4px;
|
|
37
|
+
padding: 4px;
|
|
38
|
+
border-radius: calc(var(--intergalactic-control-rounded, 6px) + 3px);
|
|
39
|
+
|
|
40
|
+
background-image: var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5)));
|
|
41
|
+
mask: linear-gradient(0deg, #fff, #fff) content-box, linear-gradient(0deg, #fff, #fff);
|
|
42
|
+
mask-composite: exclude;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[neighborLocation='left']::before {
|
|
46
|
+
border-top-left-radius: 0;
|
|
47
|
+
border-bottom-left-radius: 0;
|
|
48
|
+
}
|
|
49
|
+
&[neighborLocation='right']::before {
|
|
50
|
+
border-top-right-radius: 0;
|
|
51
|
+
border-bottom-right-radius: 0;
|
|
52
|
+
}
|
|
53
|
+
&[neighborLocation='both']::before {
|
|
54
|
+
border-radius: 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import { createComponent, sstyled, assignProps, Component, CONTEXT_COMPONENT } from "@semcore/core";
|
|
10
|
+
import Radio, { RadioGroup } from "@semcore/radio";
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { AnimatedSparkles } from "../../inner-components/sparkle/AnimatedSparkles.mjs";
|
|
13
|
+
function _callSuper(t, o, e) {
|
|
14
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
15
|
+
}
|
|
16
|
+
/*!__reshadow-styles__:"./radio.shadow.css"*/
|
|
17
|
+
var style = (
|
|
18
|
+
/*__reshadow_css_start__*/
|
|
19
|
+
(sstyled.insert(
|
|
20
|
+
/*__inner_css_start__*/
|
|
21
|
+
'.___SHighlightedRadio_ts8qi_gg_{position:relative}.___SHighlightedRadio_ts8qi_gg_:not(._state_invalid_ts8qi_gg_) input[data-ui-name="RadioFH.Value"]:focus-visible+[data-ui-name="Value.RadioMark"]::before{box-shadow:none;border-color:transparent;content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:-3px;padding:1px;opacity:1;border-width:3px;background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) padding-box,var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5))) border-box;-webkit-mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);mask:linear-gradient(0deg,#fff,#fff) content-box,linear-gradient(0deg,#fff,#fff);-webkit-mask-composite:xor;mask-composite:exclude}.___SHighlightedRadio_ts8qi_gg_:not(._state_invalid_ts8qi_gg_) input[data-ui-name="RadioFH.Value"]:checked:focus-visible+[data-ui-name="Value.RadioMark"]::before{-webkit-mask:none;mask:none;background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) padding-box,var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5))) border-box}.___SHighlightedRadio_ts8qi_gg_:not(._state_invalid_ts8qi_gg_) input[data-ui-name="RadioFH.Value"]+[data-ui-name="Value.RadioMark"]::before{border-color:transparent;background:linear-gradient(white,white) padding-box,var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff)\n ) border-box;background-origin:border-box;background-clip:padding-box,border-box}.___SHighlightedRadio_ts8qi_gg_:not(._state_invalid_ts8qi_gg_) input[data-ui-name="RadioFH.Value"]:checked:not(:focus-visible)+[data-ui-name="Value.RadioMark"]::before{border-color:transparent;background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) padding-box,var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) border-box}',
|
|
22
|
+
/*__inner_css_end__*/
|
|
23
|
+
"ts8qi_gg_"
|
|
24
|
+
), /*__reshadow_css_end__*/
|
|
25
|
+
{
|
|
26
|
+
"__SHighlightedRadio": "___SHighlightedRadio_ts8qi_gg_",
|
|
27
|
+
"_state_invalid": "_state_invalid_ts8qi_gg_"
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
var RadioFHRoot = /* @__PURE__ */ function(_Component) {
|
|
31
|
+
function RadioFHRoot2() {
|
|
32
|
+
var _this;
|
|
33
|
+
_classCallCheck(this, RadioFHRoot2);
|
|
34
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
35
|
+
args[_key] = arguments[_key];
|
|
36
|
+
}
|
|
37
|
+
_this = _callSuper(this, RadioFHRoot2, [].concat(args));
|
|
38
|
+
_defineProperty(_this, "inputRef", /* @__PURE__ */ React.createRef());
|
|
39
|
+
_defineProperty(_this, "state", {
|
|
40
|
+
checked: false
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(_this, "setChecked", function() {
|
|
43
|
+
_this.setState({
|
|
44
|
+
checked: false
|
|
45
|
+
});
|
|
46
|
+
setTimeout(function() {
|
|
47
|
+
var _this$inputRef$curren;
|
|
48
|
+
_this.setState({
|
|
49
|
+
checked: (_this$inputRef$curren = _this.inputRef.current) === null || _this$inputRef$curren === void 0 ? void 0 : _this$inputRef$curren.checked
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
return _this;
|
|
54
|
+
}
|
|
55
|
+
_inherits(RadioFHRoot2, _Component);
|
|
56
|
+
return _createClass(RadioFHRoot2, [{
|
|
57
|
+
key: "getValueProps",
|
|
58
|
+
value: function getValueProps() {
|
|
59
|
+
return {
|
|
60
|
+
ref: this.inputRef,
|
|
61
|
+
onChange: this.setChecked,
|
|
62
|
+
// for click by label / programmatically changed
|
|
63
|
+
onClick: this.setChecked
|
|
64
|
+
// for click by radio
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
key: "getAnimatedSparklesProps",
|
|
69
|
+
value: function getAnimatedSparklesProps() {
|
|
70
|
+
var size = this.context.size;
|
|
71
|
+
var checked = this.state.checked;
|
|
72
|
+
return {
|
|
73
|
+
show: checked,
|
|
74
|
+
top: size === "l" ? "7px" : "5px",
|
|
75
|
+
left: size === "l" ? "5px" : "3px"
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}, {
|
|
79
|
+
key: "render",
|
|
80
|
+
value: function render() {
|
|
81
|
+
var _ref = this.asProps, _ref2;
|
|
82
|
+
var SHighlightedRadio = Radio;
|
|
83
|
+
var _this$asProps = this.asProps, styles = _this$asProps.styles, Children = _this$asProps.Children, hasChildren = _this$asProps.children;
|
|
84
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SHighlightedRadio, _ref2.cn("SHighlightedRadio", _objectSpread({}, assignProps({}, _ref))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref2.cn("Children", {})) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(RadioFH.Value, null), /* @__PURE__ */ React.createElement(RadioFH.Text, null)));
|
|
85
|
+
}
|
|
86
|
+
}]);
|
|
87
|
+
}(Component);
|
|
88
|
+
_defineProperty(RadioFHRoot, "displayName", "RadioFH");
|
|
89
|
+
_defineProperty(RadioFHRoot, "style", style);
|
|
90
|
+
_defineProperty(RadioFHRoot, "contextType", RadioGroup[CONTEXT_COMPONENT]);
|
|
91
|
+
var RadioFH = createComponent(RadioFHRoot, {
|
|
92
|
+
Text: Radio.Text,
|
|
93
|
+
Value: Radio.Value,
|
|
94
|
+
AnimatedSparkles
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
RadioFH
|
|
98
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
SHighlightedRadio {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
SHighlightedRadio:not([state="invalid"]) {
|
|
6
|
+
input[data-ui-name="RadioFH.Value"]:focus-visible + [data-ui-name="Value.RadioMark"]::before {
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
border-color: transparent;
|
|
9
|
+
content: "";
|
|
10
|
+
position: absolute;
|
|
11
|
+
z-index: -1;
|
|
12
|
+
inset: 0;
|
|
13
|
+
margin: -3px;
|
|
14
|
+
padding: 1px;
|
|
15
|
+
opacity: 1;
|
|
16
|
+
border-width: 3px;
|
|
17
|
+
|
|
18
|
+
background: var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) padding-box, var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5))) border-box;
|
|
19
|
+
mask: linear-gradient(0deg, #fff, #fff) content-box, linear-gradient(0deg, #fff, #fff);
|
|
20
|
+
mask-composite: exclude;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
input[data-ui-name="RadioFH.Value"]:checked:focus-visible + [data-ui-name="Value.RadioMark"]::before {
|
|
24
|
+
mask: none;
|
|
25
|
+
background: var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) padding-box, var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5))) border-box;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
input[data-ui-name="RadioFH.Value"] + [data-ui-name="Value.RadioMark"]::before {
|
|
29
|
+
/*SValue[state='normal']::before {*/
|
|
30
|
+
border-color: transparent;
|
|
31
|
+
background: linear-gradient(white, white) padding-box,
|
|
32
|
+
var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff)
|
|
33
|
+
) border-box;
|
|
34
|
+
background-origin: border-box;
|
|
35
|
+
background-clip: padding-box, border-box;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
input[data-ui-name="RadioFH.Value"]:checked:not(:focus-visible) + [data-ui-name="Value.RadioMark"]::before {
|
|
39
|
+
border-color: transparent;
|
|
40
|
+
background: var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) padding-box,
|
|
41
|
+
var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8)) border-box;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
4
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
5
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import { createComponent, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import Select from "@semcore/select";
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { ButtonTriggerFH } from "../../inner-components/button-trigger/ButtonTrigger.mjs";
|
|
12
|
+
function _callSuper(t, o, e) {
|
|
13
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
14
|
+
}
|
|
15
|
+
var SelectFHRoot = /* @__PURE__ */ function(_Component) {
|
|
16
|
+
function SelectFHRoot2() {
|
|
17
|
+
_classCallCheck(this, SelectFHRoot2);
|
|
18
|
+
return _callSuper(this, SelectFHRoot2, arguments);
|
|
19
|
+
}
|
|
20
|
+
_inherits(SelectFHRoot2, _Component);
|
|
21
|
+
return _createClass(SelectFHRoot2, [{
|
|
22
|
+
key: "render",
|
|
23
|
+
value: function render() {
|
|
24
|
+
var _ref = this.asProps;
|
|
25
|
+
return /* @__PURE__ */ React.createElement(Select, assignProps({}, _ref));
|
|
26
|
+
}
|
|
27
|
+
}]);
|
|
28
|
+
}(Component);
|
|
29
|
+
_defineProperty(SelectFHRoot, "displayName", "SelectFH");
|
|
30
|
+
function Trigger(props) {
|
|
31
|
+
var _ref2 = arguments[0];
|
|
32
|
+
var Children = props.Children, hasChildren = props.children;
|
|
33
|
+
return /* @__PURE__ */ React.createElement(Select.Trigger, assignProps({
|
|
34
|
+
"tag": ButtonTriggerFH
|
|
35
|
+
}, _ref2), hasChildren ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SelectFH.Trigger.Addon, null), /* @__PURE__ */ React.createElement(SelectFH.Trigger.Text, null)));
|
|
36
|
+
}
|
|
37
|
+
var SelectFH = createComponent(SelectFHRoot, {
|
|
38
|
+
Trigger: [Trigger, {
|
|
39
|
+
Text: ButtonTriggerFH.Text,
|
|
40
|
+
Addon: ButtonTriggerFH.Addon
|
|
41
|
+
}],
|
|
42
|
+
Popper: Select.Popper,
|
|
43
|
+
Menu: Select.Menu,
|
|
44
|
+
Option: Select.Option,
|
|
45
|
+
List: Select.List
|
|
46
|
+
});
|
|
47
|
+
export {
|
|
48
|
+
SelectFH
|
|
49
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
10
|
+
import Switch from "@semcore/switch";
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { AnimatedSparkles } from "../../inner-components/sparkle/AnimatedSparkles.mjs";
|
|
13
|
+
function _callSuper(t, o, e) {
|
|
14
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
15
|
+
}
|
|
16
|
+
/*!__reshadow-styles__:"./switch.shadow.css"*/
|
|
17
|
+
var style = (
|
|
18
|
+
/*__reshadow_css_start__*/
|
|
19
|
+
(sstyled.insert(
|
|
20
|
+
/*__inner_css_start__*/
|
|
21
|
+
'.___SToggle_1qdzt_gg_.__checked_1qdzt_gg_{color:var(--intergalactic-control-primary-info, #008ff8);background-image:var(--intergalactic-control-primary-feature-highlight, linear-gradient(90deg, #ab6cfe, #008ff8))}.___SToggle_1qdzt_gg_:has(.___SInput_1qdzt_gg_:focus-visible){box-shadow:none}.___SToggle_1qdzt_gg_:has(.___SInput_1qdzt_gg_:focus-visible)::before{content:"";position:absolute;z-index:-1;top:0;right:0;bottom:0;left:0;margin:-4px;padding:4px;border-radius:inherit;background-image:var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5)));-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}',
|
|
22
|
+
/*__inner_css_end__*/
|
|
23
|
+
"1qdzt_gg_"
|
|
24
|
+
), /*__reshadow_css_end__*/
|
|
25
|
+
{
|
|
26
|
+
"__SToggle": "___SToggle_1qdzt_gg_",
|
|
27
|
+
"_checked": "__checked_1qdzt_gg_",
|
|
28
|
+
"__SInput": "___SInput_1qdzt_gg_"
|
|
29
|
+
})
|
|
30
|
+
);
|
|
31
|
+
var SwitchFHRoot = /* @__PURE__ */ function(_Component) {
|
|
32
|
+
function SwitchFHRoot2() {
|
|
33
|
+
var _this;
|
|
34
|
+
_classCallCheck(this, SwitchFHRoot2);
|
|
35
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
|
+
args[_key] = arguments[_key];
|
|
37
|
+
}
|
|
38
|
+
_this = _callSuper(this, SwitchFHRoot2, [].concat(args));
|
|
39
|
+
_defineProperty(_this, "inputRef", /* @__PURE__ */ React.createRef());
|
|
40
|
+
return _this;
|
|
41
|
+
}
|
|
42
|
+
_inherits(SwitchFHRoot2, _Component);
|
|
43
|
+
return _createClass(SwitchFHRoot2, [{
|
|
44
|
+
key: "getValueProps",
|
|
45
|
+
value: function getValueProps() {
|
|
46
|
+
var _this2 = this;
|
|
47
|
+
return {
|
|
48
|
+
ref: this.inputRef,
|
|
49
|
+
onChange: function onChange() {
|
|
50
|
+
setTimeout(function() {
|
|
51
|
+
_this2.forceUpdate();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
key: "getAnimatedSparklesProps",
|
|
58
|
+
value: function getAnimatedSparklesProps() {
|
|
59
|
+
var _this$inputRef$curren;
|
|
60
|
+
var size = this.asProps.size;
|
|
61
|
+
var checked = (_this$inputRef$curren = this.inputRef.current) === null || _this$inputRef$curren === void 0 ? void 0 : _this$inputRef$curren.checked;
|
|
62
|
+
var left = "4px";
|
|
63
|
+
if (size === "l") left = "12px";
|
|
64
|
+
if (size === "xl") left = "14px";
|
|
65
|
+
return {
|
|
66
|
+
show: checked,
|
|
67
|
+
curve: size === "l" || size === "xl" ? 9 : void 0,
|
|
68
|
+
left
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
key: "render",
|
|
73
|
+
value: function render() {
|
|
74
|
+
var _ref = this.asProps, _ref3;
|
|
75
|
+
var SInput = Switch;
|
|
76
|
+
return _ref3 = sstyled(this.asProps.styles), /* @__PURE__ */ React.createElement(SInput, _ref3.cn("SInput", _objectSpread({}, assignProps({}, _ref))));
|
|
77
|
+
}
|
|
78
|
+
}]);
|
|
79
|
+
}(Component);
|
|
80
|
+
_defineProperty(SwitchFHRoot, "displayName", "SwitchFH");
|
|
81
|
+
_defineProperty(SwitchFHRoot, "style", style);
|
|
82
|
+
function Value(props) {
|
|
83
|
+
var _ref2 = arguments[0], _ref4;
|
|
84
|
+
var SToggle = Switch.Value;
|
|
85
|
+
return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SToggle, _ref4.cn("SToggle", _objectSpread({}, assignProps({
|
|
86
|
+
"onChange": props.onChange
|
|
87
|
+
}, _ref2))));
|
|
88
|
+
}
|
|
89
|
+
var SwitchFH = createComponent(SwitchFHRoot, {
|
|
90
|
+
Addon: Switch.Addon,
|
|
91
|
+
Value,
|
|
92
|
+
AnimatedSparkles
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
SwitchFH
|
|
96
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
SToggle[checked] {
|
|
2
|
+
color: var(--intergalactic-control-primary-info, #008ff8);
|
|
3
|
+
background-image: var(--intergalactic-control-primary-feature-highlight, linear-gradient(90deg, #ab6cfe, #008ff8));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
SToggle:has(SInput:focus-visible) {
|
|
7
|
+
box-shadow: none;
|
|
8
|
+
|
|
9
|
+
&::before {
|
|
10
|
+
content: "";
|
|
11
|
+
position: absolute;
|
|
12
|
+
z-index: -1;
|
|
13
|
+
inset: 0;
|
|
14
|
+
margin: -4px;
|
|
15
|
+
padding: 4px;
|
|
16
|
+
border-radius: inherit;
|
|
17
|
+
|
|
18
|
+
background-image: var(--intergalactic-keyboard-focus-feature-highlight-outline, linear-gradient(90deg, rgba(171, 108, 254, 0.5), rgba(0, 143, 248, 0.5)));
|
|
19
|
+
mask: linear-gradient(0deg, #fff, #fff) content-box, linear-gradient(0deg, #fff, #fff);
|
|
20
|
+
mask-composite: exclude;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
5
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
6
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
7
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import { createComponent, assignProps, Component, sstyled } from "@semcore/core";
|
|
10
|
+
import SummaryAI from "@semcore/icon/SummaryAI/m";
|
|
11
|
+
import TabLine from "@semcore/tab-line";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { AnimatedSparkles } from "../../inner-components/sparkle/AnimatedSparkles.mjs";
|
|
14
|
+
function _callSuper(t, o, e) {
|
|
15
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
16
|
+
}
|
|
17
|
+
/*!__reshadow-styles__:"./tabLine.shadow.css"*/
|
|
18
|
+
var style = (
|
|
19
|
+
/*__reshadow_css_start__*/
|
|
20
|
+
(sstyled.insert(
|
|
21
|
+
/*__inner_css_start__*/
|
|
22
|
+
".___SHighlightedItem_fe5js_gg_::after,.___SHighlightedItem_fe5js_gg_:not(:focus-visible)::before{opacity:0;transition:opacity calc(var(--intergalactic-duration-control, 200)*1ms) ease-in-out}.___SHighlightedItem_fe5js_gg_:not(:focus-visible)::before{background:var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff))}@media (hover:hover){.___SHighlightedItem_fe5js_gg_:hover:not(:focus-visible)::before{opacity:1}}.___SHighlightedItem_fe5js_gg_.__selected_fe5js_gg_::after{opacity:1;background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8))}.___SHighlightedItem_fe5js_gg_:focus-visible::before{height:auto}.___SHighlightedCaret_fe5js_gg_{background:var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8))}",
|
|
23
|
+
/*__inner_css_end__*/
|
|
24
|
+
"fe5js_gg_"
|
|
25
|
+
), /*__reshadow_css_end__*/
|
|
26
|
+
{
|
|
27
|
+
"__SHighlightedCaret": "___SHighlightedCaret_fe5js_gg_",
|
|
28
|
+
"__SHighlightedItem": "___SHighlightedItem_fe5js_gg_",
|
|
29
|
+
"_selected": "__selected_fe5js_gg_"
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
var TabLineFHRoot = /* @__PURE__ */ function(_Component) {
|
|
33
|
+
function TabLineFHRoot2() {
|
|
34
|
+
_classCallCheck(this, TabLineFHRoot2);
|
|
35
|
+
return _callSuper(this, TabLineFHRoot2, arguments);
|
|
36
|
+
}
|
|
37
|
+
_inherits(TabLineFHRoot2, _Component);
|
|
38
|
+
return _createClass(TabLineFHRoot2, [{
|
|
39
|
+
key: "render",
|
|
40
|
+
value: function render() {
|
|
41
|
+
var _ref = this.asProps;
|
|
42
|
+
return /* @__PURE__ */ React.createElement(TabLine, assignProps({}, _ref));
|
|
43
|
+
}
|
|
44
|
+
}]);
|
|
45
|
+
}(Component);
|
|
46
|
+
_defineProperty(TabLineFHRoot, "displayName", "TabLineFH");
|
|
47
|
+
_defineProperty(TabLineFHRoot, "style", style);
|
|
48
|
+
var HighlightedItemRoot = /* @__PURE__ */ function(_Component2) {
|
|
49
|
+
function HighlightedItemRoot2() {
|
|
50
|
+
var _this;
|
|
51
|
+
_classCallCheck(this, HighlightedItemRoot2);
|
|
52
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53
|
+
args[_key] = arguments[_key];
|
|
54
|
+
}
|
|
55
|
+
_this = _callSuper(this, HighlightedItemRoot2, [].concat(args));
|
|
56
|
+
_defineProperty(_this, "state", {
|
|
57
|
+
clicked: false
|
|
58
|
+
});
|
|
59
|
+
return _this;
|
|
60
|
+
}
|
|
61
|
+
_inherits(HighlightedItemRoot2, _Component2);
|
|
62
|
+
return _createClass(HighlightedItemRoot2, [{
|
|
63
|
+
key: "handleClick",
|
|
64
|
+
value: function handleClick(e) {
|
|
65
|
+
var _this2 = this;
|
|
66
|
+
var onClick = this.asProps.onClick;
|
|
67
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
68
|
+
this.setState({
|
|
69
|
+
clicked: false
|
|
70
|
+
});
|
|
71
|
+
setTimeout(function() {
|
|
72
|
+
_this2.setState({
|
|
73
|
+
clicked: true
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "getAddonProps",
|
|
79
|
+
value: function getAddonProps() {
|
|
80
|
+
return {
|
|
81
|
+
clicked: this.state.clicked
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
key: "render",
|
|
86
|
+
value: function render() {
|
|
87
|
+
var _ref2 = this.asProps, _ref4;
|
|
88
|
+
var SHighlightedItem = TabLine.Item;
|
|
89
|
+
return _ref4 = sstyled(this.asProps.styles), /* @__PURE__ */ React.createElement(SHighlightedItem, _ref4.cn("SHighlightedItem", _objectSpread({}, assignProps({
|
|
90
|
+
"onClick": this.handleClick.bind(this)
|
|
91
|
+
}, _ref2))));
|
|
92
|
+
}
|
|
93
|
+
}]);
|
|
94
|
+
}(Component);
|
|
95
|
+
_defineProperty(HighlightedItemRoot, "displayName", "HighlightedItem");
|
|
96
|
+
_defineProperty(HighlightedItemRoot, "style", style);
|
|
97
|
+
function HighlightedAddon(props) {
|
|
98
|
+
var _ref3 = arguments[0];
|
|
99
|
+
var clicked = props.clicked, animatedSparkleCount = props.animatedSparkleCount, Children = props.Children, hasChildren = props.children;
|
|
100
|
+
return /* @__PURE__ */ React.createElement(TabLine.Item.Addon, assignProps({}, _ref3), hasChildren ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SummaryAI, {
|
|
101
|
+
color: "--intergalactic-icon-primary-feature-highlight"
|
|
102
|
+
}), /* @__PURE__ */ React.createElement(AnimatedSparkles, {
|
|
103
|
+
show: clicked,
|
|
104
|
+
count: animatedSparkleCount
|
|
105
|
+
})));
|
|
106
|
+
}
|
|
107
|
+
var TabLineFH = createComponent(TabLineFHRoot, {
|
|
108
|
+
Item: [TabLine.Item, {
|
|
109
|
+
Text: TabLine.Item.Text,
|
|
110
|
+
Addon: TabLine.Item.Addon
|
|
111
|
+
}],
|
|
112
|
+
HighlightedItem: createComponent(HighlightedItemRoot, {
|
|
113
|
+
Text: TabLine.Item.Text,
|
|
114
|
+
Addon: HighlightedAddon
|
|
115
|
+
})
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
TabLineFH
|
|
119
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
SHighlightedItem {
|
|
2
|
+
&::after,
|
|
3
|
+
&:not(:focus-visible)::before {
|
|
4
|
+
opacity: 0;
|
|
5
|
+
transition: opacity calc(var(--intergalactic-duration-control, 200) * 1ms) ease-in-out;
|
|
6
|
+
}
|
|
7
|
+
&:not(:focus-visible)::before {
|
|
8
|
+
background: var(--intergalactic-border-feature-highlight, linear-gradient(90deg, #c695ff, #2bb3ff));
|
|
9
|
+
}
|
|
10
|
+
&:hover:not(:focus-visible)::before {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
&[selected]::after {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
background: var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:focus-visible::before {
|
|
19
|
+
height: auto;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
SHighlightedCaret {
|
|
24
|
+
background: var(--intergalactic-border-feature-highlight-active, linear-gradient(90deg, #ab6cfe, #008ff8));
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ButtonFH } from "./components/button/Button.mjs";
|
|
2
|
+
import { PillsFH } from "./components/pills/Pills.mjs";
|
|
3
|
+
import { SelectFH } from "./components/select/Select.mjs";
|
|
4
|
+
import { InputFH } from "./components/input/Input.mjs";
|
|
5
|
+
import { SwitchFH } from "./components/switch/Switch.mjs";
|
|
6
|
+
import { TabLineFH } from "./components/tab-line/TabLine.mjs";
|
|
7
|
+
import { NoticeFH } from "./components/notice/Notice.mjs";
|
|
8
|
+
import { BadgeFH } from "./components/badge/Badge.mjs";
|
|
9
|
+
import { RadioFH } from "./components/radio/Radio.mjs";
|
|
10
|
+
import { CheckboxFH } from "./components/checkbox/Checkbox.mjs";
|
|
11
|
+
export {
|
|
12
|
+
BadgeFH,
|
|
13
|
+
ButtonFH,
|
|
14
|
+
CheckboxFH,
|
|
15
|
+
InputFH,
|
|
16
|
+
NoticeFH,
|
|
17
|
+
PillsFH,
|
|
18
|
+
RadioFH,
|
|
19
|
+
SelectFH,
|
|
20
|
+
SwitchFH,
|
|
21
|
+
TabLineFH
|
|
22
|
+
};
|