@semcore/button 5.44.0-prerelease.1 → 5.44.0-prerelease.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/component/Button/Button.js +166 -64
- package/lib/cjs/component/Button/Button.js.map +1 -1
- package/lib/cjs/component/Button/Button.type.js.map +1 -1
- package/lib/cjs/component/{AbstractButton → Button}/SpinButton.js +3 -4
- package/lib/cjs/component/Button/SpinButton.js.map +1 -0
- package/lib/cjs/component/Button/button.shadow.css +12 -20
- package/lib/cjs/component/ButtonLink/ButtonLink.js +35 -68
- package/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/cjs/component/ButtonLink/ButtonLink.type.js.map +1 -1
- package/lib/cjs/component/ButtonLink/buttonLink.shadow.css +12 -151
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/component/Button/Button.js +163 -57
- package/lib/es6/component/Button/Button.js.map +1 -1
- package/lib/es6/component/Button/Button.type.js.map +1 -1
- package/lib/es6/component/{AbstractButton → Button}/SpinButton.js +1 -1
- package/lib/es6/component/Button/SpinButton.js.map +1 -0
- package/lib/es6/component/Button/button.shadow.css +12 -20
- package/lib/es6/component/ButtonLink/ButtonLink.js +34 -65
- package/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/es6/component/ButtonLink/ButtonLink.type.js.map +1 -1
- package/lib/es6/component/ButtonLink/buttonLink.shadow.css +12 -151
- package/lib/es6/index.js +1 -2
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/component/Button/Button.mjs +142 -56
- package/lib/esm/component/Button/Button.type.mjs +1 -0
- package/lib/esm/component/{AbstractButton → Button}/SpinButton.mjs +2 -3
- package/lib/esm/component/Button/button.shadow.css +12 -20
- package/lib/esm/component/ButtonLink/ButtonLink.mjs +33 -61
- package/lib/esm/component/ButtonLink/ButtonLink.type.mjs +1 -0
- package/lib/esm/component/ButtonLink/buttonLink.shadow.css +12 -151
- package/lib/esm/index.mjs +3 -2
- package/lib/types/component/Button/Button.d.ts +28 -1
- package/lib/types/component/Button/Button.type.d.ts +40 -39
- package/lib/types/component/{AbstractButton → Button}/SpinButton.d.ts +2 -2
- package/lib/types/component/ButtonLink/ButtonLink.d.ts +1 -1
- package/lib/types/component/ButtonLink/ButtonLink.type.d.ts +15 -21
- package/lib/types/index.d.ts +1 -2
- package/package.json +7 -7
- package/src/component/Button/button.shadow.css +12 -12
- package/src/component/ButtonLink/buttonLink.shadow.css +3 -3
- package/lib/cjs/component/AbstractButton/AbstractButton.js +0 -182
- package/lib/cjs/component/AbstractButton/AbstractButton.js.map +0 -1
- package/lib/cjs/component/AbstractButton/AbstractButton.type.js +0 -2
- package/lib/cjs/component/AbstractButton/AbstractButton.type.js.map +0 -1
- package/lib/cjs/component/AbstractButton/SpinButton.js.map +0 -1
- package/lib/es6/component/AbstractButton/AbstractButton.js +0 -175
- package/lib/es6/component/AbstractButton/AbstractButton.js.map +0 -1
- package/lib/es6/component/AbstractButton/AbstractButton.type.js +0 -2
- package/lib/es6/component/AbstractButton/AbstractButton.type.js.map +0 -1
- package/lib/es6/component/AbstractButton/SpinButton.js.map +0 -1
- package/lib/esm/component/AbstractButton/AbstractButton.mjs +0 -152
- package/lib/types/component/AbstractButton/AbstractButton.d.ts +0 -24
- package/lib/types/component/AbstractButton/AbstractButton.type.d.ts +0 -39
|
@@ -1,70 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
font-family: inherit;
|
|
4
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
5
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.214 263.4));
|
|
6
|
-
line-height: normal;
|
|
7
|
-
position: relative;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
text-decoration: none;
|
|
1
|
+
SButtonLink {
|
|
10
2
|
border: none;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
box-shadow: none;
|
|
14
|
-
-webkit-tap-highlight-color: transparent;
|
|
15
|
-
outline: 0;
|
|
16
|
-
background: none;
|
|
17
|
-
transition: color 0.15s ease-in-out;
|
|
18
|
-
|
|
19
|
-
&:active,
|
|
20
|
-
&:hover,
|
|
21
|
-
&:focus {
|
|
22
|
-
outline: 0;
|
|
23
|
-
text-decoration: none;
|
|
24
|
-
}
|
|
3
|
+
font-family: inherit;
|
|
4
|
+
}
|
|
25
5
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
padding: 0;
|
|
29
|
-
}
|
|
6
|
+
SButtonLink[use='primary']:not([color]) {
|
|
7
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
30
8
|
|
|
31
9
|
&[active],
|
|
32
|
-
&:
|
|
33
|
-
&:
|
|
34
|
-
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.
|
|
35
|
-
|
|
36
|
-
& SText {
|
|
37
|
-
border-color: currentColor;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&[enableVisited]:visited,
|
|
42
|
-
&[enableVisited]:visited:hover {
|
|
43
|
-
color: var(--intergalactic-text-link-visited, oklch(0.53 0.26 296));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
SText {
|
|
47
|
-
border-bottom-width: 1px;
|
|
48
|
-
border-bottom-style: solid;
|
|
49
|
-
border-color: transparent;
|
|
50
|
-
transition: border-bottom-color 0.15s ease-in-out;
|
|
10
|
+
&:active,
|
|
11
|
+
&:hover {
|
|
12
|
+
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
51
13
|
}
|
|
52
14
|
}
|
|
53
15
|
|
|
54
|
-
|
|
55
|
-
outline-color: var(--intergalactic-keyboard-focus-outline, oklch(0.376 0.247 264.2 / 0.441));
|
|
56
|
-
outline-style: solid;
|
|
57
|
-
outline-width: 3px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
SButton[disabled] {
|
|
61
|
-
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
62
|
-
cursor: default;
|
|
63
|
-
/* Disable link interactions */
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
SButton[use='secondary'] {
|
|
16
|
+
SButtonLink[use='secondary']:not([color]) {
|
|
68
17
|
color: var(--intergalactic-text-hint, oklch(0.088 0.026 147.7 / 0.583));
|
|
69
18
|
|
|
70
19
|
&[active],
|
|
@@ -72,97 +21,9 @@ SButton[use='secondary'] {
|
|
|
72
21
|
&:hover {
|
|
73
22
|
color: var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
74
23
|
}
|
|
75
|
-
|
|
76
|
-
SText {
|
|
77
|
-
border-bottom-width: 1px;
|
|
78
|
-
border-bottom-style: dashed;
|
|
79
|
-
border-color: currentColor;
|
|
80
|
-
}
|
|
81
24
|
}
|
|
82
25
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
justify-content: center;
|
|
87
|
-
height: 100%;
|
|
88
|
-
width: 100%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
SAddon {
|
|
92
|
-
display: inline-flex;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
align-items: center;
|
|
95
|
-
vertical-align: middle;
|
|
96
|
-
pointer-events: none;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
SButton SAddon {
|
|
100
|
-
&:not(:only-child):first-child {
|
|
101
|
-
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&:not(:only-child):last-child {
|
|
105
|
-
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
SButton[text-color] {
|
|
110
|
-
color: var(--text-color);
|
|
111
|
-
|
|
112
|
-
&[active],
|
|
113
|
-
&:hover,
|
|
114
|
-
&:active {
|
|
115
|
-
color: var(--text-color);
|
|
116
|
-
filter: brightness(0.8);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
SButton[size='100'] {
|
|
121
|
-
font-size: var(--intergalactic-fs-100, 12px);
|
|
122
|
-
line-height: var(--intergalactic-lh-100, 133%);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
SButton[size='200'] {
|
|
126
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
127
|
-
line-height: var(--intergalactic-lh-200, 142%);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
SButton[size='300'] {
|
|
131
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
132
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
SButton[size='400'] {
|
|
136
|
-
font-size: var(--intergalactic-fs-400, 20px);
|
|
137
|
-
line-height: var(--intergalactic-lh-400, 120%);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
SButton[size='500'] {
|
|
141
|
-
font-size: var(--intergalactic-fs-500, 24px);
|
|
142
|
-
line-height: var(--intergalactic-lh-500, 117%);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
SButton[size='600'] {
|
|
146
|
-
font-size: var(--intergalactic-fs-600, 32px);
|
|
147
|
-
line-height: var(--intergalactic-lh-600, 125%);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
SButton[size='700'] {
|
|
151
|
-
font-size: var(--intergalactic-fs-700, 36px);
|
|
152
|
-
line-height: var(--intergalactic-lh-700, 110%);
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
SButton[size='800'] {
|
|
156
|
-
font-size: var(--intergalactic-fs-800, 48px);
|
|
157
|
-
line-height: var(--intergalactic-lh-800, 117%);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
@media (prefers-reduced-motion) {
|
|
161
|
-
SButton {
|
|
162
|
-
transition: none;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
SText {
|
|
166
|
-
transition: none;
|
|
167
|
-
}
|
|
26
|
+
SButtonLink[use='secondary'] SText {
|
|
27
|
+
text-decoration-style: dashed;
|
|
28
|
+
text-decoration-color: currentColor;
|
|
168
29
|
}
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { default as default2 } from "./component/Button/Button.mjs";
|
|
1
|
+
import { MAP_USE_DEFAULT_THEME, default as default2 } from "./component/Button/Button.mjs";
|
|
2
|
+
import "./component/Button/Button.type.mjs";
|
|
2
3
|
import { ButtonLink } from "./component/ButtonLink/ButtonLink.mjs";
|
|
3
|
-
import
|
|
4
|
+
import "./component/ButtonLink/ButtonLink.type.mjs";
|
|
4
5
|
export {
|
|
5
6
|
ButtonLink,
|
|
6
7
|
MAP_USE_DEFAULT_THEME,
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component } from '@semcore/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ButtonProps, ButtonComponent } from './Button.type';
|
|
4
|
+
export declare const MAP_USE_DEFAULT_THEME: Record<string, string>;
|
|
5
|
+
type State = {
|
|
6
|
+
ariaLabelledByContent: null | string;
|
|
7
|
+
};
|
|
8
|
+
export declare class RootButton extends Component<ButtonProps, [], never, {}, State> {
|
|
9
|
+
static displayName: string;
|
|
10
|
+
static style: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
static defaultProps: {
|
|
14
|
+
use: string;
|
|
15
|
+
size: string;
|
|
16
|
+
};
|
|
17
|
+
containerRef: React.RefObject<HTMLButtonElement>;
|
|
18
|
+
state: State;
|
|
19
|
+
getTextProps(): {
|
|
20
|
+
size: "l" | "m" | undefined;
|
|
21
|
+
'hint:triggerRef': React.RefObject<HTMLButtonElement>;
|
|
22
|
+
};
|
|
23
|
+
getAddonProps(): {
|
|
24
|
+
size: "l" | "m" | undefined;
|
|
25
|
+
};
|
|
26
|
+
componentDidMount(): void;
|
|
27
|
+
render(): React.JSX.Element;
|
|
28
|
+
}
|
|
2
29
|
declare const Button: ButtonComponent;
|
|
3
30
|
export default Button;
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
export type ButtonContext = AbstractButtonContext;
|
|
35
|
-
export type ButtonChildren = {
|
|
36
|
-
Text: Intergalactic.Component<'span', ButtonTextProps>;
|
|
37
|
-
Addon: Intergalactic.Component<'span', ButtonAddonProps>;
|
|
1
|
+
import type { BoxProps, NeighborItemProps, SimpleHintPopperProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic, PropGetterFn } from '@semcore/core';
|
|
3
|
+
import type { NSText } from '@semcore/typography';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
export type ButtonProps = BoxProps & NeighborItemProps & {
|
|
6
|
+
/** Button activity state */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
/** Disabled button state */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Loading button state */
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/** Tag for the left Addon */
|
|
13
|
+
addonLeft?: React.ElementType;
|
|
14
|
+
/** Tag for the right Addon */
|
|
15
|
+
addonRight?: React.ElementType;
|
|
16
|
+
/**
|
|
17
|
+
* Placement for hint
|
|
18
|
+
* @default top
|
|
19
|
+
*/
|
|
20
|
+
hintPlacement?: SimpleHintPopperProps['placement'];
|
|
21
|
+
/** Button size.
|
|
22
|
+
* @default `m`
|
|
23
|
+
*/
|
|
24
|
+
size?: 'l' | 'm';
|
|
25
|
+
/** Button usage.
|
|
26
|
+
* @default `primary`
|
|
27
|
+
*/
|
|
28
|
+
use?: 'primary' | 'secondary' | 'tertiary';
|
|
29
|
+
/** Button theme.
|
|
30
|
+
* @default undefined
|
|
31
|
+
*/
|
|
32
|
+
theme?: 'info' | 'success' | 'brand' | 'danger' | 'muted' | 'invert';
|
|
38
33
|
};
|
|
39
|
-
export type
|
|
34
|
+
export type ButtonTextProps = NSText.Props;
|
|
35
|
+
export type ButtonAddonProps = BoxProps;
|
|
36
|
+
export type ButtonContext = {
|
|
37
|
+
getTextProps: PropGetterFn;
|
|
38
|
+
getAddonProps: PropGetterFn;
|
|
39
|
+
};
|
|
40
|
+
export type ButtonChildren = {
|
|
40
41
|
Text: Intergalactic.Component<'span', ButtonTextProps>;
|
|
41
42
|
Addon: Intergalactic.Component<'span', ButtonAddonProps>;
|
|
42
43
|
};
|
|
43
|
-
export
|
|
44
|
+
export type ButtonComponent = Intergalactic.Component<'button', ButtonProps, ButtonContext> & ButtonChildren;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const SPIN_SIZE_MAP: Record<string, string>;
|
|
3
|
-
export default function SpinButton({ theme, size, ...others }: any): JSX.Element;
|
|
3
|
+
export default function SpinButton({ theme, size, ...others }: any): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ButtonLinkComponent } from './ButtonLink.type';
|
|
1
|
+
import type { ButtonLinkComponent } from './ButtonLink.type';
|
|
2
2
|
export declare const ButtonLink: ButtonLinkComponent;
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type Use = 'primary' | 'secondary';
|
|
13
|
-
export type ButtonLinkProps = AbstractButtonProps<ButtonLinkSize, Use, never>;
|
|
14
|
-
export type ButtonLinkTextProps = AbstractButtonTextProps<ButtonLinkSize>;
|
|
15
|
-
export type ButtonLinkAddonProps = AbstractButtonAddonProps<ButtonLinkSize>;
|
|
16
|
-
export type ButtonLinkContext = AbstractButtonContext;
|
|
17
|
-
export type ButtonLinkChildren = {
|
|
18
|
-
Text: Intergalactic.Component<'span', ButtonLinkTextProps>;
|
|
19
|
-
Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;
|
|
1
|
+
import type { BoxProps } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
3
|
+
import type { LinkProps } from '@semcore/link';
|
|
4
|
+
import type { NSText } from '@semcore/typography';
|
|
5
|
+
import type { ButtonContext } from '../Button/Button.type';
|
|
6
|
+
export type ButtonLinkProps = Intergalactic.InternalTypings.EfficientOmit<LinkProps, 'enableVisited'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Button link type
|
|
9
|
+
* @default primary
|
|
10
|
+
*/
|
|
11
|
+
use?: 'primary' | 'secondary';
|
|
20
12
|
};
|
|
21
|
-
export type
|
|
13
|
+
export type ButtonLinkTextProps = NSText.Props;
|
|
14
|
+
export type ButtonLinkAddonProps = BoxProps;
|
|
15
|
+
export type ButtonLinkChildren = {
|
|
22
16
|
Text: Intergalactic.Component<'span', ButtonLinkTextProps>;
|
|
23
17
|
Addon: Intergalactic.Component<'span', ButtonLinkAddonProps>;
|
|
24
18
|
};
|
|
25
|
-
export
|
|
19
|
+
export type ButtonLinkComponent = Intergalactic.Component<'button', ButtonLinkProps, ButtonContext> & ButtonLinkChildren;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { default } from './component/Button/Button';
|
|
1
|
+
export { default, MAP_USE_DEFAULT_THEME } from './component/Button/Button';
|
|
2
2
|
export * from './component/Button/Button.type';
|
|
3
3
|
export * from './component/ButtonLink/ButtonLink';
|
|
4
4
|
export * from './component/ButtonLink/ButtonLink.type';
|
|
5
|
-
export { MAP_USE_DEFAULT_THEME } from './component/AbstractButton/AbstractButton';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/button",
|
|
3
3
|
"description": "Semrush Button Component",
|
|
4
|
-
"version": "5.44.0-prerelease.
|
|
4
|
+
"version": "5.44.0-prerelease.5",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.42.0-prerelease.
|
|
18
|
-
"@semcore/neighbor-location": "4.41.0-prerelease.
|
|
19
|
-
"@semcore/spin": "5.42.0-prerelease.
|
|
20
|
-
"@semcore/tooltip": "6.50.0-prerelease.
|
|
21
|
-
"@semcore/utils": "4.49.0-prerelease.
|
|
17
|
+
"@semcore/flex-box": "5.42.0-prerelease.5",
|
|
18
|
+
"@semcore/neighbor-location": "4.41.0-prerelease.5",
|
|
19
|
+
"@semcore/spin": "5.42.0-prerelease.5",
|
|
20
|
+
"@semcore/tooltip": "6.50.0-prerelease.5",
|
|
21
|
+
"@semcore/utils": "4.49.0-prerelease.5"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@semcore/core": "^2.40.0-prerelease.
|
|
24
|
+
"@semcore/core": "^2.40.0-prerelease.5",
|
|
25
25
|
"react": "16.8 - 18",
|
|
26
26
|
"react-dom": "16.8 - 18"
|
|
27
27
|
},
|
|
@@ -38,7 +38,7 @@ SButton {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
SButton[keyboardFocused] {
|
|
41
|
-
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.
|
|
41
|
+
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469));
|
|
42
42
|
z-index: 1;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -184,19 +184,19 @@ SButton[theme='secondary-muted'] {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
SButton[theme='secondary-info'] {
|
|
187
|
-
background-color: var(--intergalactic-control-secondary-info, oklch(0.
|
|
188
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
187
|
+
background-color: var(--intergalactic-control-secondary-info, oklch(0.527 0.264 262.9 / 0.039));
|
|
188
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
189
189
|
border-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
|
|
190
190
|
|
|
191
191
|
&:hover {
|
|
192
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
193
|
-
background-color: var(--intergalactic-control-secondary-info-hover, oklch(0.
|
|
192
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
193
|
+
background-color: var(--intergalactic-control-secondary-info-hover, oklch(0.525 0.265 263 / 0.077));
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
&:active,
|
|
197
197
|
&[active] {
|
|
198
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
199
|
-
background-color: var(--intergalactic-control-secondary-info-active, oklch(0.
|
|
198
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
199
|
+
background-color: var(--intergalactic-control-secondary-info-active, oklch(0.524 0.266 263.1 / 0.116));
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
@@ -219,18 +219,18 @@ SButton[theme='secondary-invert'] {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
SButton[theme='tertiary-info'] {
|
|
222
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
222
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
223
223
|
background-color: var(--intergalactic-control-tertiary-info, transparent);
|
|
224
224
|
|
|
225
225
|
&:hover {
|
|
226
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
227
|
-
background-color: var(--intergalactic-control-tertiary-info-hover, oklch(0.
|
|
226
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
227
|
+
background-color: var(--intergalactic-control-tertiary-info-hover, oklch(0.525 0.265 263 / 0.077));
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
&:active,
|
|
231
231
|
&[active] {
|
|
232
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
233
|
-
background-color: var(--intergalactic-control-tertiary-info-active, oklch(0.
|
|
232
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
233
|
+
background-color: var(--intergalactic-control-tertiary-info-active, oklch(0.524 0.266 263.1 / 0.116));
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -2,7 +2,7 @@ SButton {
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
5
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
5
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
6
6
|
line-height: normal;
|
|
7
7
|
position: relative;
|
|
8
8
|
cursor: pointer;
|
|
@@ -31,7 +31,7 @@ SButton {
|
|
|
31
31
|
&[active],
|
|
32
32
|
&:hover,
|
|
33
33
|
&:active {
|
|
34
|
-
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.
|
|
34
|
+
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
35
35
|
|
|
36
36
|
& SText {
|
|
37
37
|
border-color: currentColor;
|
|
@@ -52,7 +52,7 @@ SButton {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
SButton[keyboardFocused] {
|
|
55
|
-
outline-color: var(--intergalactic-keyboard-focus-outline, oklch(0.
|
|
55
|
+
outline-color: var(--intergalactic-keyboard-focus-outline, oklch(0.424 0.269 264.2 / 0.469));
|
|
56
56
|
outline-style: solid;
|
|
57
57
|
outline-width: 3px;
|
|
58
58
|
}
|