@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
|
@@ -4,7 +4,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled, assignProps, Component
|
|
7
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
8
8
|
import { ButtonTrigger } from "@semcore/base-trigger";
|
|
9
9
|
import SummaryAI from "@semcore/icon/SummaryAI/m";
|
|
10
10
|
import React from "react";
|
|
@@ -13,18 +13,18 @@ var style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
'.
|
|
16
|
+
'.___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}}',
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"11f2l_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SHighlightedButtonTrigger": "
|
|
22
|
-
"_state_invalid": "
|
|
23
|
-
"_state_valid": "
|
|
24
|
-
"_active": "
|
|
25
|
-
"_neighborLocation_left": "
|
|
26
|
-
"_neighborLocation_right": "
|
|
27
|
-
"_neighborLocation_both": "
|
|
21
|
+
"__SHighlightedButtonTrigger": "___SHighlightedButtonTrigger_11f2l_gg_",
|
|
22
|
+
"_state_invalid": "_state_invalid_11f2l_gg_",
|
|
23
|
+
"_state_valid": "_state_valid_11f2l_gg_",
|
|
24
|
+
"_active": "__active_11f2l_gg_",
|
|
25
|
+
"_neighborLocation_left": "_neighborLocation_left_11f2l_gg_",
|
|
26
|
+
"_neighborLocation_right": "_neighborLocation_right_11f2l_gg_",
|
|
27
|
+
"_neighborLocation_both": "_neighborLocation_both_11f2l_gg_"
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
var ButtonTriggerFHRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import { sstyled, assignProps
|
|
2
|
+
import { createBaseComponent, sstyled, assignProps } from "@semcore/core";
|
|
3
3
|
import React from "react";
|
|
4
4
|
/*!__reshadow-styles__:"./style/sparkle.shadow.css"*/
|
|
5
5
|
var styles = (
|
|
6
6
|
/*__reshadow_css_start__*/
|
|
7
7
|
(sstyled.insert(
|
|
8
8
|
/*__inner_css_start__*/
|
|
9
|
-
"@keyframes
|
|
9
|
+
"@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)}",
|
|
10
10
|
/*__inner_css_end__*/
|
|
11
|
-
"
|
|
11
|
+
"18gww_gg_"
|
|
12
12
|
), /*__reshadow_css_end__*/
|
|
13
13
|
{
|
|
14
|
-
"__SSparkle": "
|
|
15
|
-
"_angle": "
|
|
16
|
-
"_scale": "
|
|
17
|
-
"_duration": "
|
|
18
|
-
"--angle": "--
|
|
19
|
-
"--scale": "--
|
|
20
|
-
"--duration": "--
|
|
21
|
-
"@sparkles": "
|
|
22
|
-
"_left": "
|
|
23
|
-
"--left": "--
|
|
24
|
-
"_top": "
|
|
25
|
-
"--top": "--
|
|
14
|
+
"__SSparkle": "___SSparkle_18gww_gg_",
|
|
15
|
+
"_angle": "__angle_18gww_gg_",
|
|
16
|
+
"_scale": "__scale_18gww_gg_",
|
|
17
|
+
"_duration": "__duration_18gww_gg_",
|
|
18
|
+
"--angle": "--angle_18gww",
|
|
19
|
+
"--scale": "--scale_18gww",
|
|
20
|
+
"--duration": "--duration_18gww",
|
|
21
|
+
"@sparkles": "sparkles_18gww",
|
|
22
|
+
"_left": "__left_18gww_gg_",
|
|
23
|
+
"--left": "--left_18gww",
|
|
24
|
+
"_top": "__top_18gww_gg_",
|
|
25
|
+
"--top": "--top_18gww"
|
|
26
26
|
})
|
|
27
27
|
);
|
|
28
28
|
function SvgSparkle(props, ref) {
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Type of feature badge.
|
|
6
|
-
* @default accent
|
|
7
|
-
*/
|
|
8
|
-
use?: BadgeFHUse;
|
|
9
|
-
};
|
|
10
|
-
export declare const BadgeFH: import("@semcore/core").Intergalactic.Component<"span", BadgeFHProps, {}, never[]>;
|
|
11
|
-
export {};
|
|
1
|
+
export declare const BadgeFH: import("@semcore/core/lib/coreFactory").ComponentType<unknown, {}, {}, {
|
|
2
|
+
[key: string]: (arg: unknown) => void;
|
|
3
|
+
}, null>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CheckboxContext, CheckboxProps, CheckboxTextProps, CheckboxValueProps } from '@semcore/checkbox';
|
|
2
2
|
import type { Intergalactic } from '@semcore/core';
|
|
3
3
|
import type { AnimatedSparklesProps } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
4
|
-
export type HighlightedCheckboxComponent = Intergalactic.Component<'label',
|
|
5
|
-
Text: Intergalactic.Component<'span',
|
|
6
|
-
Value: Intergalactic.Component<'input',
|
|
4
|
+
export type HighlightedCheckboxComponent = Intergalactic.Component<'label', CheckboxProps, CheckboxContext> & {
|
|
5
|
+
Text: Intergalactic.Component<'span', CheckboxTextProps>;
|
|
6
|
+
Value: Intergalactic.Component<'input', CheckboxValueProps>;
|
|
7
7
|
AnimatedSparkles: Intergalactic.Component<'div', AnimatedSparklesProps>;
|
|
8
8
|
};
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NoticeSmartProps } from '@semcore/notice';
|
|
1
|
+
import type { NoticeSmart } from '@semcore/notice';
|
|
3
2
|
import type Notice from '@semcore/notice';
|
|
4
|
-
export type HighlightedNoticeComponent =
|
|
5
|
-
Label: typeof Notice['Label'];
|
|
6
|
-
Actions: typeof Notice['Actions'];
|
|
7
|
-
Content: typeof Notice['Content'];
|
|
8
|
-
Title: typeof Notice['Title'];
|
|
9
|
-
Text: typeof Notice['Text'];
|
|
10
|
-
Close: typeof Notice['Close'];
|
|
11
|
-
};
|
|
3
|
+
export type HighlightedNoticeComponent = typeof Notice & typeof NoticeSmart;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Intergalactic } from '@semcore/core';
|
|
2
|
-
import type {
|
|
2
|
+
import type { RadioCtx, RadioProps, RadioValueProps } from '@semcore/radio';
|
|
3
3
|
import type { Text } from '@semcore/typography';
|
|
4
4
|
import type { AnimatedSparklesProps } from '../../inner-components/sparkle/AnimatedSparkles';
|
|
5
|
-
export type HighlightedRadioComponent = Intergalactic.Component<'label',
|
|
6
|
-
Value: Intergalactic.Component<'input',
|
|
5
|
+
export type HighlightedRadioComponent = Intergalactic.Component<'label', RadioProps, RadioCtx> & {
|
|
6
|
+
Value: Intergalactic.Component<'input', RadioValueProps>;
|
|
7
7
|
Text: typeof Text;
|
|
8
8
|
AnimatedSparkles: Intergalactic.Component<'div', AnimatedSparklesProps>;
|
|
9
9
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
1
2
|
type SparkleProps = {
|
|
2
3
|
index: number;
|
|
3
4
|
num: number;
|
|
@@ -5,5 +6,5 @@ type SparkleProps = {
|
|
|
5
6
|
top?: string;
|
|
6
7
|
left?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const _default:
|
|
9
|
+
declare const _default: Intergalactic.Component<"svg", SparkleProps>;
|
|
9
10
|
export default _default;
|
package/package.json
CHANGED