@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,94 +1,180 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled } from "@semcore/
|
|
8
|
-
import
|
|
7
|
+
import { sstyled, CORE_INSTANCE, assignProps, Component, createComponent } from "@semcore/core";
|
|
8
|
+
import { Box, NeighborLocation, Hint } from "@semcore/base-components";
|
|
9
|
+
import addonTextChildren from "@semcore/core/lib/utils/addonTextChildren";
|
|
10
|
+
import hasLabels from "@semcore/core/lib/utils/hasLabels";
|
|
11
|
+
import logger from "@semcore/core/lib/utils/logger";
|
|
12
|
+
import { Text } from "@semcore/typography";
|
|
9
13
|
import React from "react";
|
|
10
|
-
import
|
|
11
|
-
import keyboardFocusEnhance from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
12
|
-
import { AbstractButton } from "../AbstractButton/AbstractButton.mjs";
|
|
14
|
+
import SpinButton from "./SpinButton.mjs";
|
|
13
15
|
/*!__reshadow-styles__:"./button.shadow.css"*/
|
|
14
16
|
var style = (
|
|
15
17
|
/*__reshadow_css_start__*/
|
|
16
18
|
(sstyled.insert(
|
|
17
19
|
/*__inner_css_start__*/
|
|
18
|
-
'.___SButton_jgdxy_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));min-width:-moz-fit-content;min-width:fit-content}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButton_jgdxy_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SButton_jgdxy_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_jgdxy_gg_:active,.___SButton_jgdxy_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_jgdxy_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_jgdxy_gg_.__keyboardFocused_jgdxy_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 18, 193, 0.441));z-index:1}.___SButton_jgdxy_gg_.__disabled_jgdxy_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_jgdxy_gg_._size_s_jgdxy_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_jgdxy_gg_._size_m_jgdxy_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_jgdxy_gg_._size_l_jgdxy_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_jgdxy_gg_._theme_primary-info_jgdxy_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}@media (hover:hover){.___SButton_jgdxy_gg_._theme_primary-info_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-info-hover, rgb(49, 52, 48))}}.___SButton_jgdxy_gg_._theme_primary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-info_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-info-active, rgb(0, 0, 0))}.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-success, rgb(0, 167, 127))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_{background-color:var(--intergalactic-control-primary-success, rgb(0, 167, 127))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_{background-color:var(--intergalactic-control-primary-success, color(display-p3 0.13723 0.6542 0.50031))}}}@media (hover:hover){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-success-hover, rgb(0, 153, 116))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, rgb(0, 153, 116))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, color(display-p3 0.09181 0.60147 0.45602))}}}}.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-success-active, rgb(0, 146, 110))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_:active{background-color:var(--intergalactic-control-primary-success-active, rgb(0, 146, 110))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-success_jgdxy_gg_:active{background-color:var(--intergalactic-control-primary-success-active, color(display-p3 0.07522 0.57486 0.43446))}}}.___SButton_jgdxy_gg_._theme_primary-brand_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-warning_jgdxy_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand, rgb(162, 97, 253))}@media (hover:hover){.___SButton_jgdxy_gg_._theme_primary-brand_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-hover, rgb(150, 76, 251))}}.___SButton_jgdxy_gg_._theme_primary-brand_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-brand_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-active, rgb(144, 65, 250))}@media (hover:hover){.___SButton_jgdxy_gg_._theme_primary-warning_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-hover, rgb(150, 76, 251))}}.___SButton_jgdxy_gg_._theme_primary-warning_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-warning_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-active, rgb(144, 65, 250))}.___SButton_jgdxy_gg_._theme_primary-danger_jgdxy_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-critical, rgb(247, 55, 64))}@media (hover:hover){.___SButton_jgdxy_gg_._theme_primary-danger_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-critical-hover, rgb(230, 44, 51))}}.___SButton_jgdxy_gg_._theme_primary-danger_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-danger_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-critical-active, rgb(221, 39, 45))}.___SButton_jgdxy_gg_._theme_primary-invert_jgdxy_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));background-color:var(--intergalactic-control-primary-invert, rgb(255, 255, 255))}@media (hover:hover){.___SButton_jgdxy_gg_._theme_primary-invert_jgdxy_gg_:hover{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));background-color:var(--intergalactic-control-primary-invert-hover, rgb(241, 242, 242))}}.___SButton_jgdxy_gg_._theme_primary-invert_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_primary-invert_jgdxy_gg_:active{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));background-color:var(--intergalactic-control-primary-invert-active, rgb(234, 235, 235))}.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));background-color:var(--intergalactic-control-secondary-neutral, rgba(0, 22, 16, 0.028))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583));border-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}@media (hover:hover){.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(0, 21, 16, 0.056));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}}.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(0, 21, 16, 0.084));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(0, 21, 16, 0.084))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n color(display-p3 0.01753 0.08157 0.06372 / 0.084))}}}.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 31, 210, 0.031));color:var(--intergalactic-text-link, rgb(36, 93, 229));border-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 31, 210, 0.031))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_{background-color:var(--intergalactic-control-secondary-info, color(display-p3 0.03208 0.12081 0.79186 / 0.031))}}}@media (hover:hover){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_:hover{color:var(--intergalactic-text-link, rgb(36, 93, 229));background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 30, 209, 0.062))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 30, 209, 0.062))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, color(display-p3 0.02906 0.11403 0.78782 / 0.062))}}}}.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_:active{color:var(--intergalactic-text-link, rgb(36, 93, 229));background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 31, 207, 0.093))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 31, 207, 0.093))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-info_jgdxy_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, color(display-p3 0.02831 0.11224 0.78317 / 0.093))}}}.___SButton_jgdxy_gg_._theme_secondary-invert_jgdxy_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));border-color:var(--intergalactic-border-primary-invert, rgba(250, 255, 250, 0.391));background-color:var(--intergalactic-control-secondary-invert, rgba(225, 255, 219, 0.118))}@media (hover:hover){.___SButton_jgdxy_gg_._theme_secondary-invert_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-secondary-invert-hover, rgba(232, 255, 227, 0.145))}}.___SButton_jgdxy_gg_._theme_secondary-invert_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_secondary-invert_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(239, 255, 236, 0.183))}.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_{color:var(--intergalactic-text-link, rgb(36, 93, 229));background-color:var(--intergalactic-control-tertiary-info, transparent)}@media (hover:hover){.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_:hover{color:var(--intergalactic-text-link, rgb(36, 93, 229));background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 30, 209, 0.062))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 30, 209, 0.062))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, color(display-p3 0.02906 0.11403 0.78782 / 0.062))}}}}.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_:active{color:var(--intergalactic-text-link, rgb(36, 93, 229));background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 31, 207, 0.093))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 31, 207, 0.093))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-info_jgdxy_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, color(display-p3 0.02831 0.11224 0.78317 / 0.093))}}}.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));background-color:var(--intergalactic-control-tertiary-neutral, transparent)}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}@media (hover:hover){.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(0, 21, 16, 0.056));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}}.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(0, 21, 16, 0.084));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(0, 21, 16, 0.084))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-muted_jgdxy_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n color(display-p3 0.01753 0.08157 0.06372 / 0.084))}}}.___SButton_jgdxy_gg_._theme_tertiary-invert_jgdxy_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-tertiary-invert, transparent)}@media (hover:hover){.___SButton_jgdxy_gg_._theme_tertiary-invert_jgdxy_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(232, 255, 227, 0.145))}}.___SButton_jgdxy_gg_._theme_tertiary-invert_jgdxy_gg_.__active_jgdxy_gg_,.___SButton_jgdxy_gg_._theme_tertiary-invert_jgdxy_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-tertiary-invert-active, rgba(239, 255, 236, 0.183))}.___SButton_jgdxy_gg_._neighborLocation_right_jgdxy_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_{border-radius:0;margin-left:-1px}.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_,.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_{position:relative}.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_:after,.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_:after{background-color:var(--intergalactic-border-primary-invert, rgba(250, 255, 250, 0.391))}.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:after,.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:after{background-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0)){.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:after,.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:after{background-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:after,.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_._theme_secondary-muted_jgdxy_gg_:after{background-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SButton_jgdxy_gg_+.___SButton_jgdxy_gg_._neighborLocation_both_jgdxy_gg_:after,.___SButton_jgdxy_gg_+.___SButton_jgdxy_gg_._neighborLocation_left_jgdxy_gg_:after{content:"";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_jgdxy_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_jgdxy_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_jgdxy_gg_.__loading_jgdxy_gg_{visibility:hidden}.___SText_jgdxy_gg_{display:inline-flex}.___SText_jgdxy_gg_._size_l_jgdxy_gg_,.___SText_jgdxy_gg_._size_m_jgdxy_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_jgdxy_gg_._size_m_jgdxy_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_jgdxy_gg_._size_l_jgdxy_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_jgdxy_gg_._size_l_jgdxy_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_jgdxy_gg_._size_l_jgdxy_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_jgdxy_gg_._size_l_jgdxy_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_jgdxy_gg_{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.___SAddon_jgdxy_gg_._size_m_jgdxy_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_jgdxy_gg_._size_m_jgdxy_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_jgdxy_gg_._size_m_jgdxy_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_jgdxy_gg_._size_l_jgdxy_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_jgdxy_gg_._size_l_jgdxy_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_jgdxy_gg_._size_l_jgdxy_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}',
|
|
20
|
+
'.___SButton_jldv4_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));min-width:-moz-fit-content;min-width:fit-content}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButton_jldv4_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SButton_jldv4_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_jldv4_gg_:active{-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_jldv4_gg_:hover{-webkit-text-decoration:none;text-decoration:none}}.___SButton_jldv4_gg_.__disabled_jldv4_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_jldv4_gg_._size_s_jldv4_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_jldv4_gg_._size_m_jldv4_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_jldv4_gg_._size_l_jldv4_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_jldv4_gg_._theme_primary-info_jldv4_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}@media (hover:hover){.___SButton_jldv4_gg_._theme_primary-info_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-info-hover, rgb(49, 52, 48))}}.___SButton_jldv4_gg_._theme_primary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-info_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-info-active, rgb(0, 0, 0))}.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-success, rgb(0, 164, 128))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_{background-color:var(--intergalactic-control-primary-success, rgb(0, 164, 128))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_{background-color:var(--intergalactic-control-primary-success, color(display-p3 0.13723 0.6542 0.50031))}}}@media (hover:hover){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-success-hover, rgb(0, 150, 117))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, rgb(0, 150, 117))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, color(display-p3 0.09181 0.60147 0.45602))}}}}.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-success-active, rgb(0, 144, 112))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_:active{background-color:var(--intergalactic-control-primary-success-active, rgb(0, 144, 112))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-success_jldv4_gg_:active{background-color:var(--intergalactic-control-primary-success-active, color(display-p3 0.07522 0.57486 0.43446))}}}.___SButton_jldv4_gg_._theme_primary-brand_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-warning_jldv4_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand, rgb(162, 97, 253))}@media (hover:hover){.___SButton_jldv4_gg_._theme_primary-brand_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-hover, rgb(150, 76, 251))}}.___SButton_jldv4_gg_._theme_primary-brand_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-brand_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-active, rgb(144, 65, 250))}@media (hover:hover){.___SButton_jldv4_gg_._theme_primary-warning_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-hover, rgb(150, 76, 251))}}.___SButton_jldv4_gg_._theme_primary-warning_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-warning_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-brand-active, rgb(144, 65, 250))}.___SButton_jldv4_gg_._theme_primary-danger_jldv4_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-critical, rgb(247, 55, 64))}@media (hover:hover){.___SButton_jldv4_gg_._theme_primary-danger_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-critical-hover, rgb(230, 44, 51))}}.___SButton_jldv4_gg_._theme_primary-danger_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-danger_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-primary-critical-active, rgb(221, 39, 45))}.___SButton_jldv4_gg_._theme_primary-invert_jldv4_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));background-color:var(--intergalactic-control-primary-invert, rgb(255, 255, 255))}@media (hover:hover){.___SButton_jldv4_gg_._theme_primary-invert_jldv4_gg_:hover{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));background-color:var(--intergalactic-control-primary-invert-hover, rgb(241, 242, 242))}}.___SButton_jldv4_gg_._theme_primary-invert_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_primary-invert_jldv4_gg_:active{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));background-color:var(--intergalactic-control-primary-invert-active, rgb(234, 235, 235))}.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));background-color:var(--intergalactic-control-secondary-neutral, rgba(0, 22, 16, 0.028))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583));border-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}@media (hover:hover){.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(0, 21, 16, 0.056));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}}.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(0, 21, 16, 0.084));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(0, 21, 16, 0.084))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-muted_jldv4_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n color(display-p3 0.01753 0.08157 0.06372 / 0.084))}}}.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 81, 255, 0.039));color:var(--intergalactic-text-link, rgb(35, 95, 226));border-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 81, 255, 0.039))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_{background-color:var(--intergalactic-control-secondary-info, color(display-p3 0.12567 0.31309 0.96324 / 0.039))}}}@media (hover:hover){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_:hover{color:var(--intergalactic-text-link, rgb(35, 95, 226));background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 80, 255, 0.077))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 80, 255, 0.077))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, color(display-p3 0.12402 0.30857 0.96259 / 0.077))}}}}.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_:active{color:var(--intergalactic-text-link, rgb(35, 95, 226));background-color:var(--intergalactic-control-secondary-info-active, rgba(1, 79, 255, 0.116))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(1, 79, 255, 0.116))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-info_jldv4_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, color(display-p3 0.12361 0.30547 0.96332 / 0.116))}}}.___SButton_jldv4_gg_._theme_secondary-invert_jldv4_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));border-color:var(--intergalactic-border-primary-invert, rgba(250, 255, 250, 0.391));background-color:var(--intergalactic-control-secondary-invert, rgba(225, 255, 219, 0.118))}@media (hover:hover){.___SButton_jldv4_gg_._theme_secondary-invert_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-secondary-invert-hover, rgba(232, 255, 227, 0.145))}}.___SButton_jldv4_gg_._theme_secondary-invert_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_secondary-invert_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(239, 255, 236, 0.183))}.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_{color:var(--intergalactic-text-link, rgb(35, 95, 226));background-color:var(--intergalactic-control-tertiary-info, transparent)}@media (hover:hover){.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_:hover{color:var(--intergalactic-text-link, rgb(35, 95, 226));background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 80, 255, 0.077))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 80, 255, 0.077))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, color(display-p3 0.12402 0.30857 0.96259 / 0.077))}}}}.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_:active{color:var(--intergalactic-text-link, rgb(35, 95, 226));background-color:var(--intergalactic-control-tertiary-info-active, rgba(1, 79, 255, 0.116))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(1, 79, 255, 0.116))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-info_jldv4_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, color(display-p3 0.12361 0.30547 0.96332 / 0.116))}}}.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));background-color:var(--intergalactic-control-tertiary-neutral, transparent)}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}@media (hover:hover){.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(0, 21, 16, 0.056));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}}.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(0, 21, 16, 0.084));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(0, 21, 16, 0.084))}@media (color-gamut:p3){.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-muted_jldv4_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n color(display-p3 0.01753 0.08157 0.06372 / 0.084))}}}.___SButton_jldv4_gg_._theme_tertiary-invert_jldv4_gg_{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-tertiary-invert, transparent)}@media (hover:hover){.___SButton_jldv4_gg_._theme_tertiary-invert_jldv4_gg_:hover{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(232, 255, 227, 0.145))}}.___SButton_jldv4_gg_._theme_tertiary-invert_jldv4_gg_.__active_jldv4_gg_,.___SButton_jldv4_gg_._theme_tertiary-invert_jldv4_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-tertiary-invert-active, rgba(239, 255, 236, 0.183))}.___SButton_jldv4_gg_._neighborLocation_right_jldv4_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_{border-radius:0;margin-left:-1px}.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_,.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_{position:relative}.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_:after,.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_:after{background-color:var(--intergalactic-border-primary-invert, rgba(250, 255, 250, 0.391))}.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_._theme_secondary-muted_jldv4_gg_:after,.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_._theme_secondary-muted_jldv4_gg_:after{background-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_._theme_secondary-muted_jldv4_gg_:after,.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_._theme_secondary-muted_jldv4_gg_:after{background-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_._theme_secondary-muted_jldv4_gg_:after,.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_._theme_secondary-muted_jldv4_gg_:after{background-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SButton_jldv4_gg_+.___SButton_jldv4_gg_._neighborLocation_both_jldv4_gg_:after,.___SButton_jldv4_gg_+.___SButton_jldv4_gg_._neighborLocation_left_jldv4_gg_:after{content:"";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_jldv4_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_jldv4_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_jldv4_gg_.__loading_jldv4_gg_{visibility:hidden}.___SText_jldv4_gg_{display:inline-flex}.___SText_jldv4_gg_._size_l_jldv4_gg_,.___SText_jldv4_gg_._size_m_jldv4_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_jldv4_gg_._size_m_jldv4_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_jldv4_gg_._size_l_jldv4_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_jldv4_gg_._size_l_jldv4_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_jldv4_gg_._size_l_jldv4_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_jldv4_gg_._size_l_jldv4_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_jldv4_gg_{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.___SAddon_jldv4_gg_._size_m_jldv4_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_jldv4_gg_._size_m_jldv4_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_jldv4_gg_._size_m_jldv4_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_jldv4_gg_._size_l_jldv4_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_jldv4_gg_._size_l_jldv4_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_jldv4_gg_._size_l_jldv4_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}',
|
|
19
21
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
22
|
+
"jldv4_gg_"
|
|
21
23
|
), /*__reshadow_css_end__*/
|
|
22
24
|
{
|
|
23
|
-
"__SButton": "
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"_theme_primary-
|
|
40
|
-
"_theme_primary-
|
|
41
|
-
"_theme_primary-
|
|
42
|
-
"_theme_primary-
|
|
43
|
-
"
|
|
44
|
-
"_theme_secondary-
|
|
45
|
-
"_theme_secondary-
|
|
46
|
-
"
|
|
47
|
-
"_theme_tertiary-
|
|
48
|
-
"_theme_tertiary-
|
|
49
|
-
"_theme_tertiary-invert": "_theme_tertiary-invert_jgdxy_gg_"
|
|
25
|
+
"__SButton": "___SButton_jldv4_gg_",
|
|
26
|
+
"_disabled": "__disabled_jldv4_gg_",
|
|
27
|
+
"_size_s": "_size_s_jldv4_gg_",
|
|
28
|
+
"_size_m": "_size_m_jldv4_gg_",
|
|
29
|
+
"_size_l": "_size_l_jldv4_gg_",
|
|
30
|
+
"_neighborLocation_right": "_neighborLocation_right_jldv4_gg_",
|
|
31
|
+
"_neighborLocation_both": "_neighborLocation_both_jldv4_gg_",
|
|
32
|
+
"_neighborLocation_left": "_neighborLocation_left_jldv4_gg_",
|
|
33
|
+
"__SSpin": "___SSpin_jldv4_gg_",
|
|
34
|
+
"__SInner": "___SInner_jldv4_gg_",
|
|
35
|
+
"_loading": "__loading_jldv4_gg_",
|
|
36
|
+
"__SText": "___SText_jldv4_gg_",
|
|
37
|
+
"__SAddon": "___SAddon_jldv4_gg_",
|
|
38
|
+
"_theme_primary-info": "_theme_primary-info_jldv4_gg_",
|
|
39
|
+
"_active": "__active_jldv4_gg_",
|
|
40
|
+
"_theme_primary-success": "_theme_primary-success_jldv4_gg_",
|
|
41
|
+
"_theme_primary-brand": "_theme_primary-brand_jldv4_gg_",
|
|
42
|
+
"_theme_primary-warning": "_theme_primary-warning_jldv4_gg_",
|
|
43
|
+
"_theme_primary-danger": "_theme_primary-danger_jldv4_gg_",
|
|
44
|
+
"_theme_primary-invert": "_theme_primary-invert_jldv4_gg_",
|
|
45
|
+
"_theme_secondary-muted": "_theme_secondary-muted_jldv4_gg_",
|
|
46
|
+
"_theme_secondary-info": "_theme_secondary-info_jldv4_gg_",
|
|
47
|
+
"_theme_secondary-invert": "_theme_secondary-invert_jldv4_gg_",
|
|
48
|
+
"_theme_tertiary-info": "_theme_tertiary-info_jldv4_gg_",
|
|
49
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_jldv4_gg_",
|
|
50
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_jldv4_gg_"
|
|
50
51
|
})
|
|
51
52
|
);
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
var MAP_USE_DEFAULT_THEME = {
|
|
54
|
+
primary: "info",
|
|
55
|
+
secondary: "muted",
|
|
56
|
+
tertiary: "info"
|
|
57
|
+
};
|
|
58
|
+
var RootButton = /* @__PURE__ */ (function(_Component) {
|
|
55
59
|
function RootButton2() {
|
|
60
|
+
var _this;
|
|
56
61
|
_classCallCheck(this, RootButton2);
|
|
57
|
-
|
|
62
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
63
|
+
args[_key] = arguments[_key];
|
|
64
|
+
}
|
|
65
|
+
_this = _callSuper(this, RootButton2, [].concat(args));
|
|
66
|
+
_defineProperty(_this, "containerRef", /* @__PURE__ */ React.createRef());
|
|
67
|
+
_defineProperty(_this, "state", {
|
|
68
|
+
ariaLabelledByContent: null
|
|
69
|
+
});
|
|
70
|
+
return _this;
|
|
58
71
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
72
|
+
_inherits(RootButton2, _Component);
|
|
73
|
+
return _createClass(RootButton2, [{
|
|
74
|
+
key: "getTextProps",
|
|
75
|
+
value: function getTextProps() {
|
|
76
|
+
var size = this.asProps.size;
|
|
77
|
+
return {
|
|
78
|
+
size,
|
|
79
|
+
"hint:triggerRef": this.containerRef
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
key: "getAddonProps",
|
|
84
|
+
value: function getAddonProps() {
|
|
85
|
+
var size = this.asProps.size;
|
|
86
|
+
return {
|
|
87
|
+
size
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
key: "componentDidMount",
|
|
92
|
+
value: function componentDidMount() {
|
|
93
|
+
var _this2 = this;
|
|
94
|
+
if (process.env.NODE_ENV !== "production") {
|
|
95
|
+
logger.warn(this.containerRef.current && !hasLabels(this.containerRef.current) && !this.asProps.title, "'title' or 'aria-label' or 'aria-labelledby' are required props for buttons without text content", this.asProps["data-ui-name"] || RootButton2.displayName);
|
|
96
|
+
}
|
|
97
|
+
var ariaLabelledby = this.asProps["aria-labelledby"];
|
|
98
|
+
if (ariaLabelledby) {
|
|
99
|
+
setTimeout(function() {
|
|
100
|
+
var _document$getElementB, _document$getElementB2;
|
|
101
|
+
_this2.setState({
|
|
102
|
+
ariaLabelledByContent: (_document$getElementB = (_document$getElementB2 = document.getElementById(ariaLabelledby)) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.textContent) !== null && _document$getElementB !== void 0 ? _document$getElementB : ""
|
|
103
|
+
});
|
|
104
|
+
}, 0);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "render",
|
|
109
|
+
value: function render() {
|
|
110
|
+
var _ref = this.asProps, _ref7, _ref8, _this3 = this;
|
|
111
|
+
var _this$asProps = this.asProps, styles = _this$asProps.styles, use = _this$asProps.use, _this$asProps$theme = _this$asProps.theme, theme = _this$asProps$theme === void 0 ? typeof use === "string" && MAP_USE_DEFAULT_THEME[use] : _this$asProps$theme, loading = _this$asProps.loading, _this$asProps$disable = _this$asProps.disabled, disabled = _this$asProps$disable === void 0 ? loading : _this$asProps$disable, size = _this$asProps.size, neighborLocation = _this$asProps.neighborLocation, children = _this$asProps.children, title = _this$asProps.title, ariaLabel = _this$asProps["aria-label"], Children = _this$asProps.Children, AddonLeft = _this$asProps.addonLeft, AddonRight = _this$asProps.addonRight, hintPlacement = _this$asProps.hintPlacement;
|
|
112
|
+
var SButton = Box;
|
|
113
|
+
var Button2 = this[CORE_INSTANCE];
|
|
114
|
+
var useTheme = use && theme ? "".concat(use, "-").concat(theme) : false;
|
|
115
|
+
var SInner = Box;
|
|
116
|
+
var SSpin = Box;
|
|
117
|
+
var buttonAriaLabel = (_ref7 = (_ref8 = title !== null && title !== void 0 ? title : ariaLabel) !== null && _ref8 !== void 0 ? _ref8 : this.state.ariaLabelledByContent) !== null && _ref7 !== void 0 ? _ref7 : "";
|
|
118
|
+
var showHint = children === void 0 || title;
|
|
119
|
+
return /* @__PURE__ */ React.createElement(NeighborLocation.Detect, {
|
|
120
|
+
neighborLocation
|
|
121
|
+
}, function(neighborLocation2) {
|
|
122
|
+
var _ref4;
|
|
123
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SButton, _ref4.cn("SButton", _objectSpread({}, assignProps({
|
|
124
|
+
"invertOutline": theme === "invert",
|
|
125
|
+
"type": "button",
|
|
126
|
+
"tag": "button",
|
|
127
|
+
"tabIndex": 0,
|
|
128
|
+
"disabled": disabled,
|
|
129
|
+
"use:theme": useTheme,
|
|
130
|
+
"ref": _this3.containerRef,
|
|
131
|
+
"aria-busy": loading,
|
|
132
|
+
"__excludeProps": ["title"],
|
|
133
|
+
"aria-label": showHint ? buttonAriaLabel : void 0,
|
|
134
|
+
"neighborLocation": neighborLocation2
|
|
135
|
+
}, _ref))), /* @__PURE__ */ React.createElement(SInner, _ref4.cn("SInner", {
|
|
136
|
+
"tag": "span",
|
|
137
|
+
"loading": loading,
|
|
138
|
+
"data-ui-name": "".concat(_this3.asProps["data-ui-name"], ".InnerWrapper")
|
|
139
|
+
}), AddonLeft ? /* @__PURE__ */ React.createElement(Button2.Addon, null, /* @__PURE__ */ React.createElement(AddonLeft, _ref4.cn("AddonLeft", {}))) : null, addonTextChildren(Children, Button2.Text, Button2.Addon), AddonRight ? /* @__PURE__ */ React.createElement(Button2.Addon, null, /* @__PURE__ */ React.createElement(AddonRight, _ref4.cn("AddonRight", {}))) : null), loading && /* @__PURE__ */ React.createElement(SSpin, _ref4.cn("SSpin", {
|
|
140
|
+
"tag": "span"
|
|
141
|
+
}), /* @__PURE__ */ React.createElement(SpinButton, _ref4.cn("SpinButton", {
|
|
142
|
+
"centered": true,
|
|
143
|
+
"size": size,
|
|
144
|
+
"theme": useTheme
|
|
145
|
+
})))), showHint && /* @__PURE__ */ React.createElement(Hint, _ref4.cn("Hint", {
|
|
146
|
+
"triggerRef": _this3.containerRef,
|
|
147
|
+
"timeout": [250, 50],
|
|
148
|
+
"placement": hintPlacement
|
|
149
|
+
}), buttonAriaLabel));
|
|
150
|
+
});
|
|
63
151
|
}
|
|
64
152
|
}]);
|
|
65
|
-
|
|
66
|
-
}(AbstractButton);
|
|
153
|
+
})(Component);
|
|
67
154
|
_defineProperty(RootButton, "displayName", "Button");
|
|
68
|
-
_defineProperty(RootButton, "enhance", [keyboardFocusEnhance()]);
|
|
69
155
|
_defineProperty(RootButton, "style", style);
|
|
70
156
|
_defineProperty(RootButton, "defaultProps", {
|
|
71
157
|
use: "secondary",
|
|
72
158
|
size: "m"
|
|
73
159
|
});
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
var SText =
|
|
77
|
-
return
|
|
78
|
-
"tag": "span"
|
|
79
|
-
}, _ref))));
|
|
160
|
+
function ButtonText(props) {
|
|
161
|
+
var _ref2 = arguments[0], _ref5;
|
|
162
|
+
var SText = Text;
|
|
163
|
+
return _ref5 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SText, _ref5.cn("SText", _objectSpread({}, assignProps({}, _ref2))));
|
|
80
164
|
}
|
|
81
165
|
function Addon(props) {
|
|
82
|
-
var
|
|
166
|
+
var _ref3 = arguments[0], _ref6;
|
|
83
167
|
var SAddon = Box;
|
|
84
|
-
return
|
|
168
|
+
return _ref6 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref6.cn("SAddon", _objectSpread({}, assignProps({
|
|
85
169
|
"tag": "span"
|
|
86
|
-
},
|
|
170
|
+
}, _ref3))));
|
|
87
171
|
}
|
|
88
172
|
var Button = createComponent(RootButton, {
|
|
89
|
-
Text,
|
|
173
|
+
Text: ButtonText,
|
|
90
174
|
Addon
|
|
91
175
|
});
|
|
92
176
|
export {
|
|
177
|
+
MAP_USE_DEFAULT_THEME,
|
|
178
|
+
RootButton,
|
|
93
179
|
Button as default
|
|
94
180
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
import React from "react";
|
|
4
3
|
import Spin from "@semcore/spin";
|
|
4
|
+
import React from "react";
|
|
5
5
|
var _excluded = ["theme", "size"];
|
|
6
6
|
var SPIN_SIZE_MAP = {
|
|
7
7
|
xl: "m",
|
|
@@ -10,8 +10,7 @@ var SPIN_SIZE_MAP = {
|
|
|
10
10
|
s: "xxs"
|
|
11
11
|
};
|
|
12
12
|
function SpinButton(_ref) {
|
|
13
|
-
_ref.theme;
|
|
14
|
-
var size = _ref.size, others = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
var theme = _ref.theme, size = _ref.size, others = _objectWithoutProperties(_ref, _excluded);
|
|
15
14
|
return /* @__PURE__ */ React.createElement(Spin, _extends({
|
|
16
15
|
size: typeof size === "string" ? SPIN_SIZE_MAP[size] : size,
|
|
17
16
|
theme: "currentColor"
|
|
@@ -12,7 +12,6 @@ SButton {
|
|
|
12
12
|
text-align: center;
|
|
13
13
|
vertical-align: middle;
|
|
14
14
|
border: 1px solid transparent;
|
|
15
|
-
outline: 0;
|
|
16
15
|
box-shadow: none;
|
|
17
16
|
cursor: pointer;
|
|
18
17
|
box-sizing: border-box;
|
|
@@ -30,18 +29,11 @@ SButton {
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
&:active,
|
|
33
|
-
&:hover
|
|
34
|
-
&:focus {
|
|
35
|
-
outline: 0;
|
|
32
|
+
&:hover {
|
|
36
33
|
text-decoration: none;
|
|
37
34
|
}
|
|
38
35
|
}
|
|
39
36
|
|
|
40
|
-
SButton[keyboardFocused] {
|
|
41
|
-
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441));
|
|
42
|
-
z-index: 1;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
37
|
SButton[disabled] {
|
|
46
38
|
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
47
39
|
cursor: default;
|
|
@@ -184,19 +176,19 @@ SButton[theme='secondary-muted'] {
|
|
|
184
176
|
}
|
|
185
177
|
|
|
186
178
|
SButton[theme='secondary-info'] {
|
|
187
|
-
background-color: var(--intergalactic-control-secondary-info, oklch(0.
|
|
188
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
179
|
+
background-color: var(--intergalactic-control-secondary-info, oklch(0.527 0.264 262.9 / 0.039));
|
|
180
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
189
181
|
border-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
|
|
190
182
|
|
|
191
183
|
&:hover {
|
|
192
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
193
|
-
background-color: var(--intergalactic-control-secondary-info-hover, oklch(0.
|
|
184
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
185
|
+
background-color: var(--intergalactic-control-secondary-info-hover, oklch(0.525 0.265 263 / 0.077));
|
|
194
186
|
}
|
|
195
187
|
|
|
196
188
|
&:active,
|
|
197
189
|
&[active] {
|
|
198
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
199
|
-
background-color: var(--intergalactic-control-secondary-info-active, oklch(0.
|
|
190
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
191
|
+
background-color: var(--intergalactic-control-secondary-info-active, oklch(0.524 0.266 263.1 / 0.116));
|
|
200
192
|
}
|
|
201
193
|
}
|
|
202
194
|
|
|
@@ -219,18 +211,18 @@ SButton[theme='secondary-invert'] {
|
|
|
219
211
|
}
|
|
220
212
|
|
|
221
213
|
SButton[theme='tertiary-info'] {
|
|
222
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
214
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
223
215
|
background-color: var(--intergalactic-control-tertiary-info, transparent);
|
|
224
216
|
|
|
225
217
|
&:hover {
|
|
226
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
227
|
-
background-color: var(--intergalactic-control-tertiary-info-hover, oklch(0.
|
|
218
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
219
|
+
background-color: var(--intergalactic-control-tertiary-info-hover, oklch(0.525 0.265 263 / 0.077));
|
|
228
220
|
}
|
|
229
221
|
|
|
230
222
|
&:active,
|
|
231
223
|
&[active] {
|
|
232
|
-
color: var(--intergalactic-text-link, oklch(0.53 0.
|
|
233
|
-
background-color: var(--intergalactic-control-tertiary-info-active, oklch(0.
|
|
224
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
225
|
+
background-color: var(--intergalactic-control-tertiary-info-active, oklch(0.524 0.266 263.1 / 0.116));
|
|
234
226
|
}
|
|
235
227
|
}
|
|
236
228
|
|
|
@@ -1,90 +1,62 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled } from "@semcore/
|
|
8
|
-
import
|
|
7
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
8
|
+
import Link from "@semcore/link";
|
|
9
9
|
import React from "react";
|
|
10
|
-
import keyboardFocusEnhance from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
11
|
-
import { Box } from "@semcore/flex-box";
|
|
12
|
-
import { AbstractButton } from "../AbstractButton/AbstractButton.mjs";
|
|
13
|
-
import resolveColorEnhance from "@semcore/utils/lib/enhances/resolveColorEnhance";
|
|
14
10
|
/*!__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
15
11
|
var style = (
|
|
16
12
|
/*__reshadow_css_start__*/
|
|
17
13
|
(sstyled.insert(
|
|
18
14
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
15
|
+
".___SButtonLink_prbrc_gg_{border:0;font-family:inherit}.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-link, rgb(35, 95, 226))}.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_.__active_prbrc_gg_:not(.__color_prbrc_gg_),.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_:not(.__color_prbrc_gg_):active{color:var(--intergalactic-text-link-hover-active, rgb(33, 89, 215))}@media (hover:hover){.___SButtonLink_prbrc_gg_._use_primary_prbrc_gg_:not(.__color_prbrc_gg_):hover{color:var(--intergalactic-text-link-hover-active, rgb(33, 89, 215))}}.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-hint, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0%)){.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-hint, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_){color:var(--intergalactic-text-hint, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_.__active_prbrc_gg_:not(.__color_prbrc_gg_),.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_):active{color:var(--intergalactic-text-hint-hover-active, rgba(0, 3, 0, 0.605))}@media (hover:hover){.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_:not(.__color_prbrc_gg_):hover{color:var(--intergalactic-text-hint-hover-active, rgba(0, 3, 0, 0.605))}}.___SButtonLink_prbrc_gg_._use_secondary_prbrc_gg_ .___SText_prbrc_gg_{text-decoration-style:dashed;text-decoration-color:currentColor}",
|
|
20
16
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
17
|
+
"prbrc_gg_"
|
|
22
18
|
), /*__reshadow_css_end__*/
|
|
23
19
|
{
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"_size_200": "_size_200_1dn0k_gg_",
|
|
31
|
-
"_size_300": "_size_300_1dn0k_gg_",
|
|
32
|
-
"_size_400": "_size_400_1dn0k_gg_",
|
|
33
|
-
"_size_500": "_size_500_1dn0k_gg_",
|
|
34
|
-
"_size_600": "_size_600_1dn0k_gg_",
|
|
35
|
-
"_size_700": "_size_700_1dn0k_gg_",
|
|
36
|
-
"_size_800": "_size_800_1dn0k_gg_",
|
|
37
|
-
"__SText": "___SText_1dn0k_gg_",
|
|
38
|
-
"_active": "__active_1dn0k_gg_",
|
|
39
|
-
"_enableVisited": "__enableVisited_1dn0k_gg_",
|
|
40
|
-
"_use_secondary": "_use_secondary_1dn0k_gg_",
|
|
41
|
-
"_text-color": "__text-color_1dn0k_gg_",
|
|
42
|
-
"--text-color": "--text-color_1dn0k"
|
|
20
|
+
"__SButtonLink": "___SButtonLink_prbrc_gg_",
|
|
21
|
+
"_use_secondary": "_use_secondary_prbrc_gg_",
|
|
22
|
+
"__SText": "___SText_prbrc_gg_",
|
|
23
|
+
"_use_primary": "_use_primary_prbrc_gg_",
|
|
24
|
+
"_color": "__color_prbrc_gg_",
|
|
25
|
+
"_active": "__active_prbrc_gg_"
|
|
43
26
|
})
|
|
44
27
|
);
|
|
45
|
-
var
|
|
46
|
-
keyboardFocused: keyboardFocusEnhance(),
|
|
47
|
-
resolveColor: resolveColorEnhance()
|
|
48
|
-
};
|
|
49
|
-
var RootButtonLink = /* @__PURE__ */ function(_AbstractButton) {
|
|
50
|
-
_inherits(RootButtonLink2, _AbstractButton);
|
|
51
|
-
var _super = _createSuper(RootButtonLink2);
|
|
28
|
+
var RootButtonLink = /* @__PURE__ */ (function(_Component) {
|
|
52
29
|
function RootButtonLink2() {
|
|
53
30
|
_classCallCheck(this, RootButtonLink2);
|
|
54
|
-
return
|
|
31
|
+
return _callSuper(this, RootButtonLink2, arguments);
|
|
55
32
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
_inherits(RootButtonLink2, _Component);
|
|
34
|
+
return _createClass(RootButtonLink2, [{
|
|
35
|
+
key: "render",
|
|
36
|
+
value: function render() {
|
|
37
|
+
var _ref = this.asProps, _ref2;
|
|
38
|
+
var SButtonLink = Link;
|
|
39
|
+
var disabled = this.asProps.disabled;
|
|
40
|
+
return _ref2 = sstyled(style), /* @__PURE__ */ React.createElement(SButtonLink, _ref2.cn("SButtonLink", _objectSpread({}, assignProps({
|
|
41
|
+
"tag": "button",
|
|
42
|
+
"type": "button",
|
|
43
|
+
"use:disabled": disabled,
|
|
44
|
+
"use:tabIndex": 0
|
|
45
|
+
}, _ref))));
|
|
61
46
|
}
|
|
62
47
|
}]);
|
|
63
|
-
|
|
64
|
-
}(AbstractButton);
|
|
48
|
+
})(Component);
|
|
65
49
|
_defineProperty(RootButtonLink, "displayName", "ButtonLink");
|
|
66
|
-
_defineProperty(RootButtonLink, "enhance", Object.values(enhance));
|
|
67
50
|
_defineProperty(RootButtonLink, "style", style);
|
|
68
51
|
_defineProperty(RootButtonLink, "defaultProps", {
|
|
69
|
-
use: "primary"
|
|
52
|
+
use: "primary",
|
|
53
|
+
size: 200
|
|
70
54
|
});
|
|
71
|
-
function Text(props) {
|
|
72
|
-
var _ref = arguments[0], _ref3;
|
|
73
|
-
var SText = Box;
|
|
74
|
-
return _ref3 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SText, _ref3.cn("SText", _objectSpread({}, assignProps({
|
|
75
|
-
"tag": "span"
|
|
76
|
-
}, _ref))));
|
|
77
|
-
}
|
|
78
|
-
function Addon(props) {
|
|
79
|
-
var _ref2 = arguments[0], _ref4;
|
|
80
|
-
var SAddon = Box;
|
|
81
|
-
return _ref4 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref4.cn("SAddon", _objectSpread({}, assignProps({
|
|
82
|
-
"tag": "span"
|
|
83
|
-
}, _ref2))));
|
|
84
|
-
}
|
|
85
55
|
var ButtonLink = createComponent(RootButtonLink, {
|
|
86
|
-
Text,
|
|
87
|
-
Addon
|
|
56
|
+
Text: Link.Text,
|
|
57
|
+
Addon: Link.Addon
|
|
58
|
+
}, {
|
|
59
|
+
parent: Link
|
|
88
60
|
});
|
|
89
61
|
export {
|
|
90
62
|
ButtonLink
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|