@semcore/button 16.1.0-prerelease.3 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/component/Button/Button.js +160 -50
- 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/Button/SpinButton.js.map +1 -0
- package/lib/cjs/component/ButtonLink/ButtonLink.js +29 -54
- 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 +10 -140
- package/lib/cjs/index.js +3 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/component/Button/Button.js +160 -49
- 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/Button/SpinButton.js.map +1 -0
- package/lib/es6/component/ButtonLink/ButtonLink.js +30 -56
- 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 +10 -140
- package/lib/es6/index.js +1 -2
- package/lib/es6/index.js.map +1 -1
- package/lib/esm/component/Button/Button.mjs +140 -48
- package/lib/esm/component/Button/Button.type.mjs +1 -0
- package/lib/esm/component/{AbstractButton → Button}/SpinButton.mjs +1 -2
- package/lib/esm/component/ButtonLink/ButtonLink.mjs +30 -52
- package/lib/esm/component/ButtonLink/ButtonLink.type.mjs +1 -0
- package/lib/esm/component/ButtonLink/buttonLink.shadow.css +10 -140
- 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/ButtonLink/ButtonLink.type.d.ts +14 -19
- package/lib/types/index.d.ts +1 -2
- package/package.json +9 -9
- package/lib/cjs/component/AbstractButton/AbstractButton.js +0 -189
- 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 -184
- 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 -157
- package/lib/types/component/AbstractButton/AbstractButton.d.ts +0 -24
- package/lib/types/component/AbstractButton/AbstractButton.type.d.ts +0 -38
- /package/lib/cjs/component/{AbstractButton → Button}/SpinButton.js +0 -0
- /package/lib/es6/component/{AbstractButton → Button}/SpinButton.js +0 -0
- /package/lib/types/component/{AbstractButton → Button}/SpinButton.d.ts +0 -0
|
@@ -4,85 +4,177 @@ 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 {
|
|
8
|
-
import { Box } from "@semcore/
|
|
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
|
|
14
|
+
import SpinButton from "./SpinButton.mjs";
|
|
11
15
|
/*!__reshadow-styles__:"./button.shadow.css"*/
|
|
12
16
|
var style = (
|
|
13
17
|
/*__reshadow_css_start__*/
|
|
14
18
|
(sstyled.insert(
|
|
15
19
|
/*__inner_css_start__*/
|
|
16
|
-
'.___SButton_1h7vs_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;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-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_1h7vs_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButton_1h7vs_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SButton_1h7vs_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_1h7vs_gg_:active{text-decoration:none}@media (hover:hover){.___SButton_1h7vs_gg_:hover{text-decoration:none}}.___SButton_1h7vs_gg_.__disabled_1h7vs_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_1h7vs_gg_._size_s_1h7vs_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_1h7vs_gg_._size_m_1h7vs_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_1h7vs_gg_._size_l_1h7vs_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_1h7vs_gg_._theme_primary-info_1h7vs_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_1h7vs_gg_._theme_primary-info_1h7vs_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_1h7vs_gg_._theme_primary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-info_1h7vs_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_1h7vs_gg_._theme_primary-success_1h7vs_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_1h7vs_gg_._theme_primary-success_1h7vs_gg_{background-color:var(--intergalactic-control-primary-success, rgb(0, 164, 128))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_gg_{background-color:var(--intergalactic-control-primary-success, color(display-p3 0.13723 0.6542 0.50031))}}}@media (hover:hover){.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_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_1h7vs_gg_._theme_primary-success_1h7vs_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, rgb(0, 150, 117))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, color(display-p3 0.09181 0.60147 0.45602))}}}}.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_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_1h7vs_gg_._theme_primary-success_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_gg_:active{background-color:var(--intergalactic-control-primary-success-active, rgb(0, 144, 112))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-success_1h7vs_gg_:active{background-color:var(--intergalactic-control-primary-success-active, color(display-p3 0.07522 0.57486 0.43446))}}}.___SButton_1h7vs_gg_._theme_primary-brand_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-warning_1h7vs_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_1h7vs_gg_._theme_primary-brand_1h7vs_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_1h7vs_gg_._theme_primary-brand_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-brand_1h7vs_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_1h7vs_gg_._theme_primary-warning_1h7vs_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_1h7vs_gg_._theme_primary-warning_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-warning_1h7vs_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_1h7vs_gg_._theme_primary-danger_1h7vs_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_1h7vs_gg_._theme_primary-danger_1h7vs_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_1h7vs_gg_._theme_primary-danger_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-danger_1h7vs_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_1h7vs_gg_._theme_primary-invert_1h7vs_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_1h7vs_gg_._theme_primary-invert_1h7vs_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_1h7vs_gg_._theme_primary-invert_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_primary-invert_1h7vs_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_1h7vs_gg_._theme_secondary-muted_1h7vs_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_1h7vs_gg_._theme_secondary-muted_1h7vs_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_1h7vs_gg_._theme_secondary-muted_1h7vs_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_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover, rgba(0, 21, 16, 0.056));color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}}.___SButton_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active, 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_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active, rgba(0, 21, 16, 0.084))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active, color(display-p3 0.01753 0.08157 0.06372 / 0.084))}}}.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_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_1h7vs_gg_._theme_secondary-info_1h7vs_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 81, 255, 0.039))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_gg_{background-color:var(--intergalactic-control-secondary-info, color(display-p3 0.12567 0.31309 0.96324 / 0.039))}}}@media (hover:hover){.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_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_1h7vs_gg_._theme_secondary-info_1h7vs_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 80, 255, 0.077))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, color(display-p3 0.12402 0.30857 0.96259 / 0.077))}}}}.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_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_1h7vs_gg_._theme_secondary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(1, 79, 255, 0.116))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-info_1h7vs_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, color(display-p3 0.12361 0.30547 0.96332 / 0.116))}}}.___SButton_1h7vs_gg_._theme_secondary-invert_1h7vs_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_1h7vs_gg_._theme_secondary-invert_1h7vs_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_1h7vs_gg_._theme_secondary-invert_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_secondary-invert_1h7vs_gg_:active{color:var(--intergalactic-text-primary-invert, rgba(254, 255, 255, 0.949));background-color:var(--intergalactic-control-secondary-invert-active, rgba(239, 255, 236, 0.183))}.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_{color:var(--intergalactic-text-link, rgb(35, 95, 226));background-color:var(--intergalactic-control-tertiary-info, transparent)}@media (hover:hover){.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_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_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 80, 255, 0.077))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, color(display-p3 0.12402 0.30857 0.96259 / 0.077))}}}}.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_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_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(1, 79, 255, 0.116))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-info_1h7vs_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, color(display-p3 0.12361 0.30547 0.96332 / 0.116))}}}.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_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_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}@media (hover:hover){.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_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_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active, 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_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active, rgba(0, 21, 16, 0.084))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-muted_1h7vs_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active, color(display-p3 0.01753 0.08157 0.06372 / 0.084))}}}.___SButton_1h7vs_gg_._theme_tertiary-invert_1h7vs_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_1h7vs_gg_._theme_tertiary-invert_1h7vs_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_1h7vs_gg_._theme_tertiary-invert_1h7vs_gg_.__active_1h7vs_gg_,.___SButton_1h7vs_gg_._theme_tertiary-invert_1h7vs_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_1h7vs_gg_._neighborLocation_right_1h7vs_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_{border-radius:0;margin-left:-1px}.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_,.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_{position:relative}.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_:after,.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_:after{background-color:var(--intergalactic-border-primary-invert, rgba(250, 255, 250, 0.391))}.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:after,.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:after{background-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:after,.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:after{background-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:after,.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_._theme_secondary-muted_1h7vs_gg_:after{background-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SButton_1h7vs_gg_+.___SButton_1h7vs_gg_._neighborLocation_both_1h7vs_gg_:after,.___SButton_1h7vs_gg_+.___SButton_1h7vs_gg_._neighborLocation_left_1h7vs_gg_:after{content:"";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_1h7vs_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1h7vs_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1h7vs_gg_.__loading_1h7vs_gg_{visibility:hidden}.___SText_1h7vs_gg_{display:inline-flex}.___SText_1h7vs_gg_._size_l_1h7vs_gg_,.___SText_1h7vs_gg_._size_m_1h7vs_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_1h7vs_gg_._size_m_1h7vs_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_1h7vs_gg_._size_l_1h7vs_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_1h7vs_gg_._size_l_1h7vs_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_1h7vs_gg_._size_l_1h7vs_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_1h7vs_gg_._size_l_1h7vs_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_1h7vs_gg_{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.___SAddon_1h7vs_gg_._size_m_1h7vs_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1h7vs_gg_._size_m_1h7vs_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1h7vs_gg_._size_m_1h7vs_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_1h7vs_gg_._size_l_1h7vs_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1h7vs_gg_._size_l_1h7vs_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1h7vs_gg_._size_l_1h7vs_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, 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, 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, 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, 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, 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, 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, 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, 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)}',
|
|
17
21
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
22
|
+
"jldv4_gg_"
|
|
19
23
|
), /*__reshadow_css_end__*/
|
|
20
24
|
{
|
|
21
|
-
"__SButton": "
|
|
22
|
-
"_disabled": "
|
|
23
|
-
"_size_s": "
|
|
24
|
-
"_size_m": "
|
|
25
|
-
"_size_l": "
|
|
26
|
-
"_neighborLocation_right": "
|
|
27
|
-
"_neighborLocation_both": "
|
|
28
|
-
"_neighborLocation_left": "
|
|
29
|
-
"__SSpin": "
|
|
30
|
-
"__SInner": "
|
|
31
|
-
"_loading": "
|
|
32
|
-
"__SText": "
|
|
33
|
-
"__SAddon": "
|
|
34
|
-
"_theme_primary-info": "_theme_primary-
|
|
35
|
-
"_active": "
|
|
36
|
-
"_theme_primary-success": "_theme_primary-
|
|
37
|
-
"_theme_primary-brand": "_theme_primary-
|
|
38
|
-
"_theme_primary-warning": "_theme_primary-
|
|
39
|
-
"_theme_primary-danger": "_theme_primary-
|
|
40
|
-
"_theme_primary-invert": "_theme_primary-
|
|
41
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
42
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
43
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
44
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
45
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
46
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
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_"
|
|
47
51
|
})
|
|
48
52
|
);
|
|
49
|
-
var
|
|
53
|
+
var MAP_USE_DEFAULT_THEME = {
|
|
54
|
+
primary: "info",
|
|
55
|
+
secondary: "muted",
|
|
56
|
+
tertiary: "info"
|
|
57
|
+
};
|
|
58
|
+
var RootButton = /* @__PURE__ */ (function(_Component) {
|
|
50
59
|
function RootButton2() {
|
|
60
|
+
var _this;
|
|
51
61
|
_classCallCheck(this, RootButton2);
|
|
52
|
-
|
|
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;
|
|
53
71
|
}
|
|
54
|
-
_inherits(RootButton2,
|
|
72
|
+
_inherits(RootButton2, _Component);
|
|
55
73
|
return _createClass(RootButton2, [{
|
|
56
|
-
key: "
|
|
57
|
-
value: function
|
|
58
|
-
|
|
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
|
+
});
|
|
59
151
|
}
|
|
60
152
|
}]);
|
|
61
|
-
})(
|
|
153
|
+
})(Component);
|
|
62
154
|
_defineProperty(RootButton, "displayName", "Button");
|
|
63
155
|
_defineProperty(RootButton, "style", style);
|
|
64
156
|
_defineProperty(RootButton, "defaultProps", {
|
|
65
157
|
use: "secondary",
|
|
66
158
|
size: "m"
|
|
67
159
|
});
|
|
68
|
-
function
|
|
69
|
-
var
|
|
70
|
-
var SText =
|
|
71
|
-
return
|
|
72
|
-
"tag": "span"
|
|
73
|
-
}, _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))));
|
|
74
164
|
}
|
|
75
165
|
function Addon(props) {
|
|
76
|
-
var
|
|
166
|
+
var _ref3 = arguments[0], _ref6;
|
|
77
167
|
var SAddon = Box;
|
|
78
|
-
return
|
|
168
|
+
return _ref6 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref6.cn("SAddon", _objectSpread({}, assignProps({
|
|
79
169
|
"tag": "span"
|
|
80
|
-
},
|
|
170
|
+
}, _ref3))));
|
|
81
171
|
}
|
|
82
172
|
var Button = createComponent(RootButton, {
|
|
83
|
-
Text,
|
|
173
|
+
Text: ButtonText,
|
|
84
174
|
Addon
|
|
85
175
|
});
|
|
86
176
|
export {
|
|
177
|
+
MAP_USE_DEFAULT_THEME,
|
|
178
|
+
RootButton,
|
|
87
179
|
Button as default
|
|
88
180
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -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"
|
|
@@ -4,81 +4,59 @@ 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 {
|
|
8
|
-
import
|
|
9
|
-
import { Box } from "@semcore/flex-box";
|
|
7
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
8
|
+
import Link from "@semcore/link";
|
|
10
9
|
import React from "react";
|
|
11
|
-
import { AbstractButton } from "../AbstractButton/AbstractButton.mjs";
|
|
12
10
|
/*!__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
13
11
|
var style = (
|
|
14
12
|
/*__reshadow_css_start__*/
|
|
15
13
|
(sstyled.insert(
|
|
16
14
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
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}",
|
|
18
16
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
17
|
+
"prbrc_gg_"
|
|
20
18
|
), /*__reshadow_css_end__*/
|
|
21
19
|
{
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"_size_300": "_size_300_1642v_gg_",
|
|
29
|
-
"_size_400": "_size_400_1642v_gg_",
|
|
30
|
-
"_size_500": "_size_500_1642v_gg_",
|
|
31
|
-
"_size_600": "_size_600_1642v_gg_",
|
|
32
|
-
"_size_700": "_size_700_1642v_gg_",
|
|
33
|
-
"_size_800": "_size_800_1642v_gg_",
|
|
34
|
-
"__SText": "___SText_1642v_gg_",
|
|
35
|
-
"_active": "__active_1642v_gg_",
|
|
36
|
-
"_enableVisited": "__enableVisited_1642v_gg_",
|
|
37
|
-
"_use_secondary": "_use_secondary_1642v_gg_",
|
|
38
|
-
"_text-color": "__text-color_1642v_gg_",
|
|
39
|
-
"--text-color": "--text-color_1642v"
|
|
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_"
|
|
40
26
|
})
|
|
41
27
|
);
|
|
42
|
-
var
|
|
43
|
-
resolveColor: resolveColorEnhance()
|
|
44
|
-
};
|
|
45
|
-
var RootButtonLink = /* @__PURE__ */ (function(_AbstractButton) {
|
|
28
|
+
var RootButtonLink = /* @__PURE__ */ (function(_Component) {
|
|
46
29
|
function RootButtonLink2() {
|
|
47
30
|
_classCallCheck(this, RootButtonLink2);
|
|
48
31
|
return _callSuper(this, RootButtonLink2, arguments);
|
|
49
32
|
}
|
|
50
|
-
_inherits(RootButtonLink2,
|
|
33
|
+
_inherits(RootButtonLink2, _Component);
|
|
51
34
|
return _createClass(RootButtonLink2, [{
|
|
52
|
-
key: "
|
|
53
|
-
value: function
|
|
54
|
-
var
|
|
55
|
-
|
|
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))));
|
|
56
46
|
}
|
|
57
47
|
}]);
|
|
58
|
-
})(
|
|
48
|
+
})(Component);
|
|
59
49
|
_defineProperty(RootButtonLink, "displayName", "ButtonLink");
|
|
60
|
-
_defineProperty(RootButtonLink, "enhance", Object.values(enhance));
|
|
61
50
|
_defineProperty(RootButtonLink, "style", style);
|
|
62
51
|
_defineProperty(RootButtonLink, "defaultProps", {
|
|
63
|
-
use: "primary"
|
|
52
|
+
use: "primary",
|
|
53
|
+
size: 200
|
|
64
54
|
});
|
|
65
|
-
function Text(props) {
|
|
66
|
-
var _ref = arguments[0], _ref3;
|
|
67
|
-
var SText = Box;
|
|
68
|
-
return _ref3 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SText, _ref3.cn("SText", _objectSpread({}, assignProps({
|
|
69
|
-
"tag": "span"
|
|
70
|
-
}, _ref))));
|
|
71
|
-
}
|
|
72
|
-
function Addon(props) {
|
|
73
|
-
var _ref2 = arguments[0], _ref4;
|
|
74
|
-
var SAddon = Box;
|
|
75
|
-
return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref4.cn("SAddon", _objectSpread({}, assignProps({
|
|
76
|
-
"tag": "span"
|
|
77
|
-
}, _ref2))));
|
|
78
|
-
}
|
|
79
55
|
var ButtonLink = createComponent(RootButtonLink, {
|
|
80
|
-
Text,
|
|
81
|
-
Addon
|
|
56
|
+
Text: Link.Text,
|
|
57
|
+
Addon: Link.Addon
|
|
58
|
+
}, {
|
|
59
|
+
parent: Link
|
|
82
60
|
});
|
|
83
61
|
export {
|
|
84
62
|
ButtonLink
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,61 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
SButtonLink {
|
|
2
|
+
border: none;
|
|
3
3
|
font-family: inherit;
|
|
4
|
-
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
SButtonLink[use='primary']:not([color]) {
|
|
5
7
|
color: var(--intergalactic-text-link, oklch(0.53 0.21 263));
|
|
6
|
-
line-height: normal;
|
|
7
|
-
position: relative;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
border: none;
|
|
11
|
-
padding: 0;
|
|
12
|
-
margin: 0;
|
|
13
|
-
box-shadow: none;
|
|
14
|
-
-webkit-tap-highlight-color: transparent;
|
|
15
|
-
background: none;
|
|
16
|
-
transition: color 0.15s ease-in-out;
|
|
17
8
|
|
|
9
|
+
&[active],
|
|
18
10
|
&:active,
|
|
19
11
|
&:hover {
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&::-moz-focus-inner {
|
|
24
|
-
border: none;
|
|
25
|
-
padding: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&[active],
|
|
29
|
-
&:hover,
|
|
30
|
-
&:active {
|
|
31
12
|
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.202 263));
|
|
32
|
-
|
|
33
|
-
& SText {
|
|
34
|
-
border-color: currentColor;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&[enableVisited]:visited,
|
|
39
|
-
&[enableVisited]:visited:hover {
|
|
40
|
-
color: var(--intergalactic-text-link-visited, oklch(0.53 0.26 296));
|
|
41
13
|
}
|
|
42
|
-
|
|
43
|
-
SText {
|
|
44
|
-
border-bottom-width: 1px;
|
|
45
|
-
border-bottom-style: solid;
|
|
46
|
-
border-color: transparent;
|
|
47
|
-
transition: border-bottom-color 0.15s ease-in-out;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
SButton[disabled] {
|
|
52
|
-
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
53
|
-
cursor: default;
|
|
54
|
-
/* Disable link interactions */
|
|
55
|
-
pointer-events: none;
|
|
56
14
|
}
|
|
57
15
|
|
|
58
|
-
|
|
16
|
+
SButtonLink[use='secondary']:not([color]) {
|
|
59
17
|
color: var(--intergalactic-text-hint, oklch(0.088 0.026 147.7 / 0.583));
|
|
60
18
|
|
|
61
19
|
&[active],
|
|
@@ -63,97 +21,9 @@ SButton[use='secondary'] {
|
|
|
63
21
|
&:hover {
|
|
64
22
|
color: var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
65
23
|
}
|
|
66
|
-
|
|
67
|
-
SText {
|
|
68
|
-
border-bottom-width: 1px;
|
|
69
|
-
border-bottom-style: dashed;
|
|
70
|
-
border-color: currentColor;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
SInner {
|
|
75
|
-
display: inline-flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
height: 100%;
|
|
79
|
-
width: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
SAddon {
|
|
83
|
-
display: inline-flex;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
pointer-events: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
SButton SAddon {
|
|
91
|
-
&:not(:only-child):first-child {
|
|
92
|
-
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:not(:only-child):last-child {
|
|
96
|
-
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
SButton[text-color] {
|
|
101
|
-
color: var(--text-color);
|
|
102
|
-
|
|
103
|
-
&[active],
|
|
104
|
-
&:hover,
|
|
105
|
-
&:active {
|
|
106
|
-
color: var(--text-color);
|
|
107
|
-
filter: brightness(0.8);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
SButton[size='100'] {
|
|
112
|
-
font-size: var(--intergalactic-fs-100, 12px);
|
|
113
|
-
line-height: var(--intergalactic-lh-100, 133%);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
SButton[size='200'] {
|
|
117
|
-
font-size: var(--intergalactic-fs-200, 14px);
|
|
118
|
-
line-height: var(--intergalactic-lh-200, 142%);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
SButton[size='300'] {
|
|
122
|
-
font-size: var(--intergalactic-fs-300, 16px);
|
|
123
|
-
line-height: var(--intergalactic-lh-300, 150%);
|
|
124
24
|
}
|
|
125
25
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
SButton[size='500'] {
|
|
132
|
-
font-size: var(--intergalactic-fs-500, 24px);
|
|
133
|
-
line-height: var(--intergalactic-lh-500, 117%);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
SButton[size='600'] {
|
|
137
|
-
font-size: var(--intergalactic-fs-600, 32px);
|
|
138
|
-
line-height: var(--intergalactic-lh-600, 125%);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
SButton[size='700'] {
|
|
142
|
-
font-size: var(--intergalactic-fs-700, 36px);
|
|
143
|
-
line-height: var(--intergalactic-lh-700, 110%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
SButton[size='800'] {
|
|
147
|
-
font-size: var(--intergalactic-fs-800, 48px);
|
|
148
|
-
line-height: var(--intergalactic-lh-800, 117%);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@media (prefers-reduced-motion) {
|
|
152
|
-
SButton {
|
|
153
|
-
transition: none;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
SText {
|
|
157
|
-
transition: none;
|
|
158
|
-
}
|
|
26
|
+
SButtonLink[use='secondary'] SText {
|
|
27
|
+
text-decoration-style: dashed;
|
|
28
|
+
text-decoration-color: currentColor;
|
|
159
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,
|