@semcore/tag 5.53.0-prerelease.9 → 5.53.1-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -2
- package/lib/cjs/Tag.js +23 -23
- package/lib/es6/Tag.js +23 -23
- package/lib/esm/Tag.mjs +339 -0
- package/lib/esm/index.mjs +5 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +33 -0
- package/lib/esm/translations/de.json.mjs +7 -0
- package/lib/esm/translations/en.json.mjs +7 -0
- package/lib/esm/translations/es.json.mjs +7 -0
- package/lib/esm/translations/fr.json.mjs +7 -0
- package/lib/esm/translations/it.json.mjs +7 -0
- package/lib/esm/translations/ja.json.mjs +7 -0
- package/lib/esm/translations/ko.json.mjs +7 -0
- package/lib/esm/translations/nl.json.mjs +7 -0
- package/lib/esm/translations/pl.json.mjs +7 -0
- package/lib/esm/translations/pt.json.mjs +7 -0
- package/lib/esm/translations/sv.json.mjs +7 -0
- package/lib/esm/translations/tr.json.mjs +7 -0
- package/lib/esm/translations/vi.json.mjs +7 -0
- package/lib/esm/translations/zh.json.mjs +7 -0
- package/package.json +11 -6
- package/vite.config.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [5.53.
|
|
5
|
+
## [5.53.1] - 2025-03-17
|
|
6
6
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
|
-
- Version
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [4.48.0 ~> 4.48.1], `@semcore/icon` [4.60.0 ~> 4.60.1], `@semcore/flex-box` [5.41.0 ~> 5.41.1], `@semcore/core` [2.39.0 ~> 2.39.1]).
|
|
10
|
+
|
|
11
|
+
## [5.53.0] - 2025-03-14
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Build for ESM.
|
|
10
16
|
|
|
11
17
|
## [5.52.1] - 2025-02-05
|
|
12
18
|
|
package/lib/cjs/Tag.js
CHANGED
|
@@ -27,29 +27,29 @@ var _uniqueID = _interopRequireDefault(require("@semcore/utils/lib/uniqueID"));
|
|
|
27
27
|
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
28
28
|
var _findComponent = require("@semcore/utils/lib/findComponent");
|
|
29
29
|
/*__reshadow-styles__:"./style/tag.shadow.css"*/
|
|
30
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCircle_maeu3_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 var(--intergalactic-spacing-1x, 4px)}.___SCircle_maeu3_gg_:first-child{margin-left:0}.___SCircle_maeu3_gg_:last-child{margin-right:0}.___SCircle_maeu3_gg_._size_m_maeu3_gg_{width:16px;height:16px}.___SCircle_maeu3_gg_._size_l_maeu3_gg_,.___SCircle_maeu3_gg_._size_xl_maeu3_gg_{width:20px;height:20px}.___SAddon_maeu3_gg_,.___STagContainerClose_maeu3_gg_,.___STag_maeu3_gg_{position:relative;display:inline-flex;align-items:center;justify-content:center;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_maeu3_gg_{flex-shrink:0}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_{padding-left:0;padding-right:0}.___STagContainerClose_maeu3_gg_,.___STag_maeu3_gg_{vertical-align:middle;border:1px solid var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-tag-rounded, 24px);font-weight:var(--intergalactic-medium, 500);color:var(--tag-color_maeu3)}.___STagContainerClose_maeu3_gg_.__interactive_maeu3_gg_.__keyboardFocused_maeu3_gg_,.___STag_maeu3_gg_.__interactive_maeu3_gg_.__keyboardFocused_maeu3_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___STagContainerClose_maeu3_gg_::before,.___STag_maeu3_gg_::before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--intergalactic-tag-rounded, 24px);background-color:var(--tag-color_maeu3);opacity:.2;filter:brightness(150%)}.___STagContainerClose_maeu3_gg_::after,.___STag_maeu3_gg_::after{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--intergalactic-tag-rounded, 24px);pointer-events:none;border:1px solid var(--tag-color_maeu3);opacity:.1;filter:brightness(150%)}.___STagContainerClose_maeu3_gg_:active,.___STagContainerClose_maeu3_gg_:focus,.___STag_maeu3_gg_:active,.___STag_maeu3_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___STagContainerClose_maeu3_gg_:hover,.___STag_maeu3_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___STagContainerClose_maeu3_gg_.__disabled_maeu3_gg_,.___STag_maeu3_gg_.__disabled_maeu3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STag_maeu3_gg_.__interactiveView_maeu3_gg_{cursor:pointer}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_,.___STag_maeu3_gg_._size_m_maeu3_gg_{height:20px;min-width:20px}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:first-child,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_ .___SCircle_maeu3_gg_:first-child,.___STag_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:first-child{margin-left:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:last-child,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_ .___SCircle_maeu3_gg_:last-child,.___STag_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:last-child{margin-right:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_ .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_ .___SText_maeu3_gg_,.___STag_maeu3_gg_._size_m_maeu3_gg_ .___SText_maeu3_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___STagContainerClose_maeu3_gg_._size_l_maeu3_gg_,.___STagContainer_maeu3_gg_._size_l_maeu3_gg_ .___SAddon_maeu3_gg_,.___STag_maeu3_gg_._size_l_maeu3_gg_{height:28px;min-width:28px}.___STagContainerClose_maeu3_gg_._size_l_maeu3_gg_ .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_._size_l_maeu3_gg_ .___SAddon_maeu3_gg_ .___SText_maeu3_gg_,.___STag_maeu3_gg_._size_l_maeu3_gg_ .___SText_maeu3_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STagContainerClose_maeu3_gg_._size_xl_maeu3_gg_,.___STag_maeu3_gg_._size_xl_maeu3_gg_{height:40px;min-width:40px;padding:0 var(--intergalactic-spacing-2x, 8px)}.___STagContainerClose_maeu3_gg_._size_xl_maeu3_gg_ .___SText_maeu3_gg_,.___STag_maeu3_gg_._size_xl_maeu3_gg_ .___SText_maeu3_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_::before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_::before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_::before{top:-1px;left:-1px;right:-1px;bottom:-1px}.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_:after,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_:after,.___STag_maeu3_gg_._theme_primary_maeu3_gg_:after{display:none}.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_.__active_maeu3_gg_:before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before{opacity:.3}@media (hover:hover){.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before{opacity:.3}}.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_::before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_::before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_::before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_::before{opacity:.01}.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_.__active_maeu3_gg_:before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_.__active_maeu3_gg_:before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before{opacity:.1}@media (hover:hover){.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before{opacity:.1}}.___SClose_maeu3_gg_ path,.___STagContainerClose_maeu3_gg_._theme_additional-invert_maeu3_gg_::after,.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_::after,.___STagContainerClose_maeu3_gg_._theme_secondary-invert_maeu3_gg_::after,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_::after,.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_ svg path,.___STag_maeu3_gg_._theme_additional-invert_maeu3_gg_::after,.___STag_maeu3_gg_._theme_additional_maeu3_gg_::after,.___STag_maeu3_gg_._theme_secondary-invert_maeu3_gg_::after,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_::after{opacity:.5}.___STagContainerClose_maeu3_gg_._theme_primary-invert_maeu3_gg_,.___STag_maeu3_gg_._theme_primary-invert_maeu3_gg_{background-color:var(--intergalactic-tag-primary-white-normal,\n rgba(255, 255, 255, 0.15)\n );color:var(--intergalactic-text-primary-invert, #ffffff)}.___STagContainerClose_maeu3_gg_._theme_additional-invert_maeu3_gg_,.___STagContainerClose_maeu3_gg_._theme_secondary-invert_maeu3_gg_,.___STag_maeu3_gg_._theme_additional-invert_maeu3_gg_,.___STag_maeu3_gg_._theme_secondary-invert_maeu3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___STag_maeu3_gg_._theme_additional_maeu3_gg_::after{border-style:dashed}.___SText_maeu3_gg_{display:inline-block;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:0;position:relative}.___SText_maeu3_gg_.__keyboardFocused_maeu3_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___SText_maeu3_gg_:not(:only-child):first-child{padding-right:0}.___SText_maeu3_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_maeu3_gg_:not(:only-child):last-child{padding-left:0}.___SClose_maeu3_gg_{cursor:pointer;flex-shrink:0;padding:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___SClose_maeu3_gg_:hover path{opacity:1}}.___SClose_maeu3_gg_,.___STagContainer_maeu3_gg_{display:inline-flex;position:relative;align-items:center;justify-content:center}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child),.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;padding-right:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child)::after,.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child)::before,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child)::after,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child)::before{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-1px}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child) .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child) .___SText_maeu3_gg_{padding-right:0}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child),.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;padding-left:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child)::after,.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child)::before,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child)::after,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child)::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child) .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child) .___SText_maeu3_gg_{padding-left:0}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_{cursor:pointer;border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0;padding-right:0;min-width:20px}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_::after,.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_::before{left:-1px}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_ svg{padding-left:0;padding-right:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_:hover svg path{opacity:1}}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_._size_xl_maeu3_gg_ svg{padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "maeu3_gg_") /*__reshadow_css_end__*/, {
|
|
31
|
-
"__SCircle": "
|
|
32
|
-
"_size_m": "
|
|
33
|
-
"_size_l": "
|
|
34
|
-
"_size_xl": "
|
|
35
|
-
"__SAddon": "
|
|
36
|
-
"__STagContainer": "
|
|
37
|
-
"__STag": "
|
|
38
|
-
"_disabled": "
|
|
39
|
-
"__STagContainerClose": "
|
|
40
|
-
"_interactiveView": "
|
|
41
|
-
"_theme_primary-invert": "_theme_primary-
|
|
42
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
43
|
-
"_theme_additional-invert": "_theme_additional-
|
|
44
|
-
"__SText": "
|
|
45
|
-
"_keyboardFocused": "
|
|
46
|
-
"--tag-color": "--tag-
|
|
47
|
-
"_interactive": "
|
|
48
|
-
"_theme_primary": "
|
|
49
|
-
"_active": "
|
|
50
|
-
"_theme_secondary": "
|
|
51
|
-
"_theme_additional": "
|
|
52
|
-
"__SClose": "
|
|
30
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCircle_1ctkw_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 var(--intergalactic-spacing-1x, 4px)}.___SCircle_1ctkw_gg_:first-child{margin-left:0}.___SCircle_1ctkw_gg_:last-child{margin-right:0}.___SCircle_1ctkw_gg_._size_m_1ctkw_gg_{width:16px;height:16px}.___SCircle_1ctkw_gg_._size_l_1ctkw_gg_,.___SCircle_1ctkw_gg_._size_xl_1ctkw_gg_{width:20px;height:20px}.___SAddon_1ctkw_gg_,.___STagContainerClose_1ctkw_gg_,.___STag_1ctkw_gg_{position:relative;display:inline-flex;align-items:center;justify-content:center;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_1ctkw_gg_{flex-shrink:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_{padding-left:0;padding-right:0}.___STagContainerClose_1ctkw_gg_,.___STag_1ctkw_gg_{vertical-align:middle;border:1px solid var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-tag-rounded, 24px);font-weight:var(--intergalactic-medium, 500);color:var(--tag-color_1ctkw)}.___STagContainerClose_1ctkw_gg_.__interactive_1ctkw_gg_.__keyboardFocused_1ctkw_gg_,.___STag_1ctkw_gg_.__interactive_1ctkw_gg_.__keyboardFocused_1ctkw_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___STagContainerClose_1ctkw_gg_::before,.___STag_1ctkw_gg_::before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--intergalactic-tag-rounded, 24px);background-color:var(--tag-color_1ctkw);opacity:.2;filter:brightness(150%)}.___STagContainerClose_1ctkw_gg_::after,.___STag_1ctkw_gg_::after{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--intergalactic-tag-rounded, 24px);pointer-events:none;border:1px solid var(--tag-color_1ctkw);opacity:.1;filter:brightness(150%)}.___STagContainerClose_1ctkw_gg_:active,.___STagContainerClose_1ctkw_gg_:focus,.___STag_1ctkw_gg_:active,.___STag_1ctkw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___STagContainerClose_1ctkw_gg_:hover,.___STag_1ctkw_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___STagContainerClose_1ctkw_gg_.__disabled_1ctkw_gg_,.___STag_1ctkw_gg_.__disabled_1ctkw_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STag_1ctkw_gg_.__interactiveView_1ctkw_gg_{cursor:pointer}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_,.___STag_1ctkw_gg_._size_m_1ctkw_gg_{height:20px;min-width:20px}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child{margin-left:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child{margin-right:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___STagContainerClose_1ctkw_gg_._size_l_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_l_1ctkw_gg_ .___SAddon_1ctkw_gg_,.___STag_1ctkw_gg_._size_l_1ctkw_gg_{height:28px;min-width:28px}.___STagContainerClose_1ctkw_gg_._size_l_1ctkw_gg_ .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_l_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_l_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_,.___STag_1ctkw_gg_._size_xl_1ctkw_gg_{height:40px;min-width:40px;padding:0 var(--intergalactic-spacing-2x, 8px)}.___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_xl_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_::before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_::before{top:-1px;left:-1px;right:-1px;bottom:-1px}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_:after,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_:after,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_:after{display:none}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before{opacity:.3}@media (hover:hover){.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before{opacity:.3}}.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_::before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_::before{opacity:.01}.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before{opacity:.1}@media (hover:hover){.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before{opacity:.1}}.___SClose_1ctkw_gg_ path,.___STagContainerClose_1ctkw_gg_._theme_additional-invert_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_::after,.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_ svg path,.___STag_1ctkw_gg_._theme_additional-invert_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_::after{opacity:.5}.___STagContainerClose_1ctkw_gg_._theme_primary-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_primary-invert_1ctkw_gg_{background-color:var(--intergalactic-tag-primary-white-normal,\n rgba(255, 255, 255, 0.15)\n );color:var(--intergalactic-text-primary-invert, #ffffff)}.___STagContainerClose_1ctkw_gg_._theme_additional-invert_1ctkw_gg_,.___STagContainerClose_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_additional-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::after{border-style:dashed}.___SText_1ctkw_gg_{display:inline-block;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:0;position:relative}.___SText_1ctkw_gg_.__keyboardFocused_1ctkw_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___SText_1ctkw_gg_:not(:only-child):first-child{padding-right:0}.___SText_1ctkw_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_1ctkw_gg_:not(:only-child):last-child{padding-left:0}.___SClose_1ctkw_gg_{cursor:pointer;flex-shrink:0;padding:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___SClose_1ctkw_gg_:hover path{opacity:1}}.___SClose_1ctkw_gg_,.___STagContainer_1ctkw_gg_{display:inline-flex;position:relative;align-items:center;justify-content:center}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child),.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;padding-right:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child)::after,.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child)::before,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child)::after,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child)::before{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-1px}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child) .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child) .___SText_1ctkw_gg_{padding-right:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child),.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;padding-left:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child)::after,.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child)::before,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child)::after,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child)::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child) .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child) .___SText_1ctkw_gg_{padding-left:0}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_{cursor:pointer;border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0;padding-right:0;min-width:20px}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::after,.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::before{left:-1px}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_ svg{padding-left:0;padding-right:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_:hover svg path{opacity:1}}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_ svg{padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "1ctkw_gg_") /*__reshadow_css_end__*/, {
|
|
31
|
+
"__SCircle": "___SCircle_1ctkw_gg_",
|
|
32
|
+
"_size_m": "_size_m_1ctkw_gg_",
|
|
33
|
+
"_size_l": "_size_l_1ctkw_gg_",
|
|
34
|
+
"_size_xl": "_size_xl_1ctkw_gg_",
|
|
35
|
+
"__SAddon": "___SAddon_1ctkw_gg_",
|
|
36
|
+
"__STagContainer": "___STagContainer_1ctkw_gg_",
|
|
37
|
+
"__STag": "___STag_1ctkw_gg_",
|
|
38
|
+
"_disabled": "__disabled_1ctkw_gg_",
|
|
39
|
+
"__STagContainerClose": "___STagContainerClose_1ctkw_gg_",
|
|
40
|
+
"_interactiveView": "__interactiveView_1ctkw_gg_",
|
|
41
|
+
"_theme_primary-invert": "_theme_primary-invert_1ctkw_gg_",
|
|
42
|
+
"_theme_secondary-invert": "_theme_secondary-invert_1ctkw_gg_",
|
|
43
|
+
"_theme_additional-invert": "_theme_additional-invert_1ctkw_gg_",
|
|
44
|
+
"__SText": "___SText_1ctkw_gg_",
|
|
45
|
+
"_keyboardFocused": "__keyboardFocused_1ctkw_gg_",
|
|
46
|
+
"--tag-color": "--tag-color_1ctkw",
|
|
47
|
+
"_interactive": "__interactive_1ctkw_gg_",
|
|
48
|
+
"_theme_primary": "_theme_primary_1ctkw_gg_",
|
|
49
|
+
"_active": "__active_1ctkw_gg_",
|
|
50
|
+
"_theme_secondary": "_theme_secondary_1ctkw_gg_",
|
|
51
|
+
"_theme_additional": "_theme_additional_1ctkw_gg_",
|
|
52
|
+
"__SClose": "___SClose_1ctkw_gg_"
|
|
53
53
|
});
|
|
54
54
|
var legacyThemeRecommendedMigration = {
|
|
55
55
|
primary: {
|
package/lib/es6/Tag.js
CHANGED
|
@@ -28,29 +28,29 @@ import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhan
|
|
|
28
28
|
import log from '@semcore/utils/lib/logger';
|
|
29
29
|
import { isAdvanceMode } from '@semcore/utils/lib/findComponent';
|
|
30
30
|
/*__reshadow-styles__:"./style/tag.shadow.css"*/
|
|
31
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_maeu3_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 var(--intergalactic-spacing-1x, 4px)}.___SCircle_maeu3_gg_:first-child{margin-left:0}.___SCircle_maeu3_gg_:last-child{margin-right:0}.___SCircle_maeu3_gg_._size_m_maeu3_gg_{width:16px;height:16px}.___SCircle_maeu3_gg_._size_l_maeu3_gg_,.___SCircle_maeu3_gg_._size_xl_maeu3_gg_{width:20px;height:20px}.___SAddon_maeu3_gg_,.___STagContainerClose_maeu3_gg_,.___STag_maeu3_gg_{position:relative;display:inline-flex;align-items:center;justify-content:center;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_maeu3_gg_{flex-shrink:0}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_{padding-left:0;padding-right:0}.___STagContainerClose_maeu3_gg_,.___STag_maeu3_gg_{vertical-align:middle;border:1px solid var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-tag-rounded, 24px);font-weight:var(--intergalactic-medium, 500);color:var(--tag-color_maeu3)}.___STagContainerClose_maeu3_gg_.__interactive_maeu3_gg_.__keyboardFocused_maeu3_gg_,.___STag_maeu3_gg_.__interactive_maeu3_gg_.__keyboardFocused_maeu3_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___STagContainerClose_maeu3_gg_::before,.___STag_maeu3_gg_::before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--intergalactic-tag-rounded, 24px);background-color:var(--tag-color_maeu3);opacity:.2;filter:brightness(150%)}.___STagContainerClose_maeu3_gg_::after,.___STag_maeu3_gg_::after{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--intergalactic-tag-rounded, 24px);pointer-events:none;border:1px solid var(--tag-color_maeu3);opacity:.1;filter:brightness(150%)}.___STagContainerClose_maeu3_gg_:active,.___STagContainerClose_maeu3_gg_:focus,.___STag_maeu3_gg_:active,.___STag_maeu3_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___STagContainerClose_maeu3_gg_:hover,.___STag_maeu3_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___STagContainerClose_maeu3_gg_.__disabled_maeu3_gg_,.___STag_maeu3_gg_.__disabled_maeu3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STag_maeu3_gg_.__interactiveView_maeu3_gg_{cursor:pointer}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_,.___STag_maeu3_gg_._size_m_maeu3_gg_{height:20px;min-width:20px}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:first-child,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_ .___SCircle_maeu3_gg_:first-child,.___STag_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:first-child{margin-left:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:last-child,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_ .___SCircle_maeu3_gg_:last-child,.___STag_maeu3_gg_._size_m_maeu3_gg_ .___SCircle_maeu3_gg_:last-child{margin-right:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_maeu3_gg_._size_m_maeu3_gg_ .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_._size_m_maeu3_gg_ .___SAddon_maeu3_gg_ .___SText_maeu3_gg_,.___STag_maeu3_gg_._size_m_maeu3_gg_ .___SText_maeu3_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___STagContainerClose_maeu3_gg_._size_l_maeu3_gg_,.___STagContainer_maeu3_gg_._size_l_maeu3_gg_ .___SAddon_maeu3_gg_,.___STag_maeu3_gg_._size_l_maeu3_gg_{height:28px;min-width:28px}.___STagContainerClose_maeu3_gg_._size_l_maeu3_gg_ .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_._size_l_maeu3_gg_ .___SAddon_maeu3_gg_ .___SText_maeu3_gg_,.___STag_maeu3_gg_._size_l_maeu3_gg_ .___SText_maeu3_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STagContainerClose_maeu3_gg_._size_xl_maeu3_gg_,.___STag_maeu3_gg_._size_xl_maeu3_gg_{height:40px;min-width:40px;padding:0 var(--intergalactic-spacing-2x, 8px)}.___STagContainerClose_maeu3_gg_._size_xl_maeu3_gg_ .___SText_maeu3_gg_,.___STag_maeu3_gg_._size_xl_maeu3_gg_ .___SText_maeu3_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_::before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_::before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_::before{top:-1px;left:-1px;right:-1px;bottom:-1px}.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_:after,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_:after,.___STag_maeu3_gg_._theme_primary_maeu3_gg_:after{display:none}.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_.__active_maeu3_gg_:before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before{opacity:.3}@media (hover:hover){.___STagContainerClose_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STagContainer_maeu3_gg_._theme_primary_maeu3_gg_ .___SAddon_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STag_maeu3_gg_._theme_primary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before{opacity:.3}}.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_::before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_::before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_::before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_::before{opacity:.01}.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_.__active_maeu3_gg_:before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_.__active_maeu3_gg_:before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:active:before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_.__active_maeu3_gg_:before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:active:before{opacity:.1}@media (hover:hover){.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STag_maeu3_gg_._theme_additional_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_.__interactiveView_maeu3_gg_:hover:before{opacity:.1}}.___SClose_maeu3_gg_ path,.___STagContainerClose_maeu3_gg_._theme_additional-invert_maeu3_gg_::after,.___STagContainerClose_maeu3_gg_._theme_additional_maeu3_gg_::after,.___STagContainerClose_maeu3_gg_._theme_secondary-invert_maeu3_gg_::after,.___STagContainerClose_maeu3_gg_._theme_secondary_maeu3_gg_::after,.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_ svg path,.___STag_maeu3_gg_._theme_additional-invert_maeu3_gg_::after,.___STag_maeu3_gg_._theme_additional_maeu3_gg_::after,.___STag_maeu3_gg_._theme_secondary-invert_maeu3_gg_::after,.___STag_maeu3_gg_._theme_secondary_maeu3_gg_::after{opacity:.5}.___STagContainerClose_maeu3_gg_._theme_primary-invert_maeu3_gg_,.___STag_maeu3_gg_._theme_primary-invert_maeu3_gg_{background-color:var(--intergalactic-tag-primary-white-normal,\n rgba(255, 255, 255, 0.15)\n );color:var(--intergalactic-text-primary-invert, #ffffff)}.___STagContainerClose_maeu3_gg_._theme_additional-invert_maeu3_gg_,.___STagContainerClose_maeu3_gg_._theme_secondary-invert_maeu3_gg_,.___STag_maeu3_gg_._theme_additional-invert_maeu3_gg_,.___STag_maeu3_gg_._theme_secondary-invert_maeu3_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___STag_maeu3_gg_._theme_additional_maeu3_gg_::after{border-style:dashed}.___SText_maeu3_gg_{display:inline-block;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:0;position:relative}.___SText_maeu3_gg_.__keyboardFocused_maeu3_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___SText_maeu3_gg_:not(:only-child):first-child{padding-right:0}.___SText_maeu3_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_maeu3_gg_:not(:only-child):last-child{padding-left:0}.___SClose_maeu3_gg_{cursor:pointer;flex-shrink:0;padding:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___SClose_maeu3_gg_:hover path{opacity:1}}.___SClose_maeu3_gg_,.___STagContainer_maeu3_gg_{display:inline-flex;position:relative;align-items:center;justify-content:center}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child),.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;padding-right:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child)::after,.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child)::before,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child)::after,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child)::before{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-1px}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:last-child) .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:last-child) .___SText_maeu3_gg_{padding-right:0}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child),.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;padding-left:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child)::after,.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child)::before,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child)::after,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child)::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_maeu3_gg_ .___SAddon_maeu3_gg_:not(:first-child) .___SText_maeu3_gg_,.___STagContainer_maeu3_gg_ .___STag_maeu3_gg_:not(:first-child) .___SText_maeu3_gg_{padding-left:0}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_{cursor:pointer;border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0;padding-right:0;min-width:20px}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_::after,.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_::before{left:-1px}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_ svg{padding-left:0;padding-right:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_:hover svg path{opacity:1}}.___STagContainer_maeu3_gg_ .___STagContainerClose_maeu3_gg_._size_xl_maeu3_gg_ svg{padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "maeu3_gg_") /*__reshadow_css_end__*/, {
|
|
32
|
-
"__SCircle": "
|
|
33
|
-
"_size_m": "
|
|
34
|
-
"_size_l": "
|
|
35
|
-
"_size_xl": "
|
|
36
|
-
"__SAddon": "
|
|
37
|
-
"__STagContainer": "
|
|
38
|
-
"__STag": "
|
|
39
|
-
"_disabled": "
|
|
40
|
-
"__STagContainerClose": "
|
|
41
|
-
"_interactiveView": "
|
|
42
|
-
"_theme_primary-invert": "_theme_primary-
|
|
43
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
44
|
-
"_theme_additional-invert": "_theme_additional-
|
|
45
|
-
"__SText": "
|
|
46
|
-
"_keyboardFocused": "
|
|
47
|
-
"--tag-color": "--tag-
|
|
48
|
-
"_interactive": "
|
|
49
|
-
"_theme_primary": "
|
|
50
|
-
"_active": "
|
|
51
|
-
"_theme_secondary": "
|
|
52
|
-
"_theme_additional": "
|
|
53
|
-
"__SClose": "
|
|
31
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1ctkw_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 var(--intergalactic-spacing-1x, 4px)}.___SCircle_1ctkw_gg_:first-child{margin-left:0}.___SCircle_1ctkw_gg_:last-child{margin-right:0}.___SCircle_1ctkw_gg_._size_m_1ctkw_gg_{width:16px;height:16px}.___SCircle_1ctkw_gg_._size_l_1ctkw_gg_,.___SCircle_1ctkw_gg_._size_xl_1ctkw_gg_{width:20px;height:20px}.___SAddon_1ctkw_gg_,.___STagContainerClose_1ctkw_gg_,.___STag_1ctkw_gg_{position:relative;display:inline-flex;align-items:center;justify-content:center;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_1ctkw_gg_{flex-shrink:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_{padding-left:0;padding-right:0}.___STagContainerClose_1ctkw_gg_,.___STag_1ctkw_gg_{vertical-align:middle;border:1px solid var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-tag-rounded, 24px);font-weight:var(--intergalactic-medium, 500);color:var(--tag-color_1ctkw)}.___STagContainerClose_1ctkw_gg_.__interactive_1ctkw_gg_.__keyboardFocused_1ctkw_gg_,.___STag_1ctkw_gg_.__interactive_1ctkw_gg_.__keyboardFocused_1ctkw_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___STagContainerClose_1ctkw_gg_::before,.___STag_1ctkw_gg_::before{content:\"\";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--intergalactic-tag-rounded, 24px);background-color:var(--tag-color_1ctkw);opacity:.2;filter:brightness(150%)}.___STagContainerClose_1ctkw_gg_::after,.___STag_1ctkw_gg_::after{content:\"\";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--intergalactic-tag-rounded, 24px);pointer-events:none;border:1px solid var(--tag-color_1ctkw);opacity:.1;filter:brightness(150%)}.___STagContainerClose_1ctkw_gg_:active,.___STagContainerClose_1ctkw_gg_:focus,.___STag_1ctkw_gg_:active,.___STag_1ctkw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___STagContainerClose_1ctkw_gg_:hover,.___STag_1ctkw_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___STagContainerClose_1ctkw_gg_.__disabled_1ctkw_gg_,.___STag_1ctkw_gg_.__disabled_1ctkw_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STag_1ctkw_gg_.__interactiveView_1ctkw_gg_{cursor:pointer}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_,.___STag_1ctkw_gg_._size_m_1ctkw_gg_{height:20px;min-width:20px}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child{margin-left:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child{margin-right:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___STagContainerClose_1ctkw_gg_._size_l_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_l_1ctkw_gg_ .___SAddon_1ctkw_gg_,.___STag_1ctkw_gg_._size_l_1ctkw_gg_{height:28px;min-width:28px}.___STagContainerClose_1ctkw_gg_._size_l_1ctkw_gg_ .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_l_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_l_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_,.___STag_1ctkw_gg_._size_xl_1ctkw_gg_{height:40px;min-width:40px;padding:0 var(--intergalactic-spacing-2x, 8px)}.___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_xl_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_::before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_::before{top:-1px;left:-1px;right:-1px;bottom:-1px}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_:after,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_:after,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_:after{display:none}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before{opacity:.3}@media (hover:hover){.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before{opacity:.3}}.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_::before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_::before{opacity:.01}.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before{opacity:.1}@media (hover:hover){.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before{opacity:.1}}.___SClose_1ctkw_gg_ path,.___STagContainerClose_1ctkw_gg_._theme_additional-invert_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_::after,.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_ svg path,.___STag_1ctkw_gg_._theme_additional-invert_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_::after{opacity:.5}.___STagContainerClose_1ctkw_gg_._theme_primary-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_primary-invert_1ctkw_gg_{background-color:var(--intergalactic-tag-primary-white-normal,\n rgba(255, 255, 255, 0.15)\n );color:var(--intergalactic-text-primary-invert, #ffffff)}.___STagContainerClose_1ctkw_gg_._theme_additional-invert_1ctkw_gg_,.___STagContainerClose_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_additional-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::after{border-style:dashed}.___SText_1ctkw_gg_{display:inline-block;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:0;position:relative}.___SText_1ctkw_gg_.__keyboardFocused_1ctkw_gg_{box-shadow:var(--intergalactic-keyboard-focus,\n 0px 0px 0px 3px rgba(0, 143, 248, 0.5)\n );z-index:1}.___SText_1ctkw_gg_:not(:only-child):first-child{padding-right:0}.___SText_1ctkw_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_1ctkw_gg_:not(:only-child):last-child{padding-left:0}.___SClose_1ctkw_gg_{cursor:pointer;flex-shrink:0;padding:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___SClose_1ctkw_gg_:hover path{opacity:1}}.___SClose_1ctkw_gg_,.___STagContainer_1ctkw_gg_{display:inline-flex;position:relative;align-items:center;justify-content:center}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child),.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;padding-right:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child)::after,.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child)::before,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child)::after,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child)::before{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-1px}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child) .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child) .___SText_1ctkw_gg_{padding-right:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child),.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;padding-left:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child)::after,.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child)::before,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child)::after,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child)::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child) .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child) .___SText_1ctkw_gg_{padding-left:0}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_{cursor:pointer;border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0;padding-right:0;min-width:20px}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::after,.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::before{left:-1px}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_ svg{padding-left:0;padding-right:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_:hover svg path{opacity:1}}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_ svg{padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-2x, 8px)}" /*__inner_css_end__*/, "1ctkw_gg_") /*__reshadow_css_end__*/, {
|
|
32
|
+
"__SCircle": "___SCircle_1ctkw_gg_",
|
|
33
|
+
"_size_m": "_size_m_1ctkw_gg_",
|
|
34
|
+
"_size_l": "_size_l_1ctkw_gg_",
|
|
35
|
+
"_size_xl": "_size_xl_1ctkw_gg_",
|
|
36
|
+
"__SAddon": "___SAddon_1ctkw_gg_",
|
|
37
|
+
"__STagContainer": "___STagContainer_1ctkw_gg_",
|
|
38
|
+
"__STag": "___STag_1ctkw_gg_",
|
|
39
|
+
"_disabled": "__disabled_1ctkw_gg_",
|
|
40
|
+
"__STagContainerClose": "___STagContainerClose_1ctkw_gg_",
|
|
41
|
+
"_interactiveView": "__interactiveView_1ctkw_gg_",
|
|
42
|
+
"_theme_primary-invert": "_theme_primary-invert_1ctkw_gg_",
|
|
43
|
+
"_theme_secondary-invert": "_theme_secondary-invert_1ctkw_gg_",
|
|
44
|
+
"_theme_additional-invert": "_theme_additional-invert_1ctkw_gg_",
|
|
45
|
+
"__SText": "___SText_1ctkw_gg_",
|
|
46
|
+
"_keyboardFocused": "__keyboardFocused_1ctkw_gg_",
|
|
47
|
+
"--tag-color": "--tag-color_1ctkw",
|
|
48
|
+
"_interactive": "__interactive_1ctkw_gg_",
|
|
49
|
+
"_theme_primary": "_theme_primary_1ctkw_gg_",
|
|
50
|
+
"_active": "__active_1ctkw_gg_",
|
|
51
|
+
"_theme_secondary": "_theme_secondary_1ctkw_gg_",
|
|
52
|
+
"_theme_additional": "_theme_additional_1ctkw_gg_",
|
|
53
|
+
"__SClose": "___SClose_1ctkw_gg_"
|
|
54
54
|
});
|
|
55
55
|
var legacyThemeRecommendedMigration = {
|
|
56
56
|
primary: {
|
package/lib/esm/Tag.mjs
ADDED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import f from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import z from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import A from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import u from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
5
|
+
import E from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import V from "@babel/runtime/helpers/esm/createSuper";
|
|
7
|
+
import n from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import { sstyled as X } from "@semcore/utils/lib/core/index";
|
|
9
|
+
import D, { sstyled as v, assignProps as m, Component as I } from "@semcore/core";
|
|
10
|
+
import i from "react";
|
|
11
|
+
import { Box as h } from "@semcore/flex-box";
|
|
12
|
+
import Y from "@semcore/utils/lib/addonTextChildren";
|
|
13
|
+
import R from "@semcore/utils/lib/logger";
|
|
14
|
+
import F from "@semcore/icon/Close/m";
|
|
15
|
+
import { localizedMessages as b } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
16
|
+
import j from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
17
|
+
import M from "@semcore/utils/lib/enhances/resolveColorEnhance";
|
|
18
|
+
import U from "@semcore/utils/lib/uniqueID";
|
|
19
|
+
import K from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
20
|
+
import { isAdvanceMode as Z } from "@semcore/utils/lib/findComponent";
|
|
21
|
+
var $ = (
|
|
22
|
+
/*__reshadow_css_start__*/
|
|
23
|
+
(X.insert(
|
|
24
|
+
/*__inner_css_start__*/
|
|
25
|
+
`.___SCircle_1ctkw_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 var(--intergalactic-spacing-1x, 4px)}.___SCircle_1ctkw_gg_:first-child{margin-left:0}.___SCircle_1ctkw_gg_:last-child{margin-right:0}.___SCircle_1ctkw_gg_._size_m_1ctkw_gg_{width:16px;height:16px}.___SCircle_1ctkw_gg_._size_l_1ctkw_gg_,.___SCircle_1ctkw_gg_._size_xl_1ctkw_gg_{width:20px;height:20px}.___SAddon_1ctkw_gg_,.___STagContainerClose_1ctkw_gg_,.___STag_1ctkw_gg_{position:relative;display:inline-flex;align-items:center;justify-content:center;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_1ctkw_gg_{flex-shrink:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_{padding-left:0;padding-right:0}.___STagContainerClose_1ctkw_gg_,.___STag_1ctkw_gg_{vertical-align:middle;border:1px solid var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-tag-rounded, 24px);font-weight:var(--intergalactic-medium, 500);color:var(--tag-color_1ctkw)}.___STagContainerClose_1ctkw_gg_.__interactive_1ctkw_gg_.__keyboardFocused_1ctkw_gg_,.___STag_1ctkw_gg_.__interactive_1ctkw_gg_.__keyboardFocused_1ctkw_gg_{box-shadow:var(--intergalactic-keyboard-focus,
|
|
26
|
+
0px 0px 0px 3px rgba(0, 143, 248, 0.5)
|
|
27
|
+
);z-index:1}.___STagContainerClose_1ctkw_gg_::before,.___STag_1ctkw_gg_::before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--intergalactic-tag-rounded, 24px);background-color:var(--tag-color_1ctkw);opacity:.2;filter:brightness(150%)}.___STagContainerClose_1ctkw_gg_::after,.___STag_1ctkw_gg_::after{content:"";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--intergalactic-tag-rounded, 24px);pointer-events:none;border:1px solid var(--tag-color_1ctkw);opacity:.1;filter:brightness(150%)}.___STagContainerClose_1ctkw_gg_:active,.___STagContainerClose_1ctkw_gg_:focus,.___STag_1ctkw_gg_:active,.___STag_1ctkw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___STagContainerClose_1ctkw_gg_:hover,.___STag_1ctkw_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___STagContainerClose_1ctkw_gg_.__disabled_1ctkw_gg_,.___STag_1ctkw_gg_.__disabled_1ctkw_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STag_1ctkw_gg_.__interactiveView_1ctkw_gg_{cursor:pointer}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_,.___STag_1ctkw_gg_._size_m_1ctkw_gg_{height:20px;min-width:20px}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:first-child{margin-left:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SCircle_1ctkw_gg_:last-child{margin-right:calc(-1*var(--intergalactic-spacing-05x, 2px))}.___STagContainerClose_1ctkw_gg_._size_m_1ctkw_gg_ .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_m_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_m_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___STagContainerClose_1ctkw_gg_._size_l_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_l_1ctkw_gg_ .___SAddon_1ctkw_gg_,.___STag_1ctkw_gg_._size_l_1ctkw_gg_{height:28px;min-width:28px}.___STagContainerClose_1ctkw_gg_._size_l_1ctkw_gg_ .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_._size_l_1ctkw_gg_ .___SAddon_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_l_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_,.___STag_1ctkw_gg_._size_xl_1ctkw_gg_{height:40px;min-width:40px;padding:0 var(--intergalactic-spacing-2x, 8px)}.___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_ .___SText_1ctkw_gg_,.___STag_1ctkw_gg_._size_xl_1ctkw_gg_ .___SText_1ctkw_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_::before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_::before{top:-1px;left:-1px;right:-1px;bottom:-1px}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_:after,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_:after,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_:after{display:none}.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before{opacity:.3}@media (hover:hover){.___STagContainerClose_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STagContainer_1ctkw_gg_._theme_primary_1ctkw_gg_ .___SAddon_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_primary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before{opacity:.3}}.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_::before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_::before{opacity:.01}.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__active_1ctkw_gg_:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:active:before{opacity:.1}@media (hover:hover){.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_.__interactiveView_1ctkw_gg_:hover:before{opacity:.1}}.___SClose_1ctkw_gg_ path,.___STagContainerClose_1ctkw_gg_._theme_additional-invert_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_additional_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_::after,.___STagContainerClose_1ctkw_gg_._theme_secondary_1ctkw_gg_::after,.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_ svg path,.___STag_1ctkw_gg_._theme_additional-invert_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_::after,.___STag_1ctkw_gg_._theme_secondary_1ctkw_gg_::after{opacity:.5}.___STagContainerClose_1ctkw_gg_._theme_primary-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_primary-invert_1ctkw_gg_{background-color:var(--intergalactic-tag-primary-white-normal,
|
|
28
|
+
rgba(255, 255, 255, 0.15)
|
|
29
|
+
);color:var(--intergalactic-text-primary-invert, #ffffff)}.___STagContainerClose_1ctkw_gg_._theme_additional-invert_1ctkw_gg_,.___STagContainerClose_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_additional-invert_1ctkw_gg_,.___STag_1ctkw_gg_._theme_secondary-invert_1ctkw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff)}.___STag_1ctkw_gg_._theme_additional_1ctkw_gg_::after{border-style:dashed}.___SText_1ctkw_gg_{display:inline-block;padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-1x, 4px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:0;position:relative}.___SText_1ctkw_gg_.__keyboardFocused_1ctkw_gg_{box-shadow:var(--intergalactic-keyboard-focus,
|
|
30
|
+
0px 0px 0px 3px rgba(0, 143, 248, 0.5)
|
|
31
|
+
);z-index:1}.___SText_1ctkw_gg_:not(:only-child):first-child{padding-right:0}.___SText_1ctkw_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_1ctkw_gg_:not(:only-child):last-child{padding-left:0}.___SClose_1ctkw_gg_{cursor:pointer;flex-shrink:0;padding:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___SClose_1ctkw_gg_:hover path{opacity:1}}.___SClose_1ctkw_gg_,.___STagContainer_1ctkw_gg_{display:inline-flex;position:relative;align-items:center;justify-content:center}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child),.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;padding-right:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child)::after,.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child)::before,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child)::after,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child)::before{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-1px}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:last-child) .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:last-child) .___SText_1ctkw_gg_{padding-right:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child),.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;padding-left:var(--intergalactic-spacing-05x, 2px)}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child)::after,.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child)::before,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child)::after,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child)::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_1ctkw_gg_ .___SAddon_1ctkw_gg_:not(:first-child) .___SText_1ctkw_gg_,.___STagContainer_1ctkw_gg_ .___STag_1ctkw_gg_:not(:first-child) .___SText_1ctkw_gg_{padding-left:0}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_{cursor:pointer;border-top-left-radius:0;border-bottom-left-radius:0;padding-left:0;padding-right:0;min-width:20px}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::after,.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::before{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_::before{left:-1px}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_ svg{padding-left:0;padding-right:var(--intergalactic-spacing-1x, 4px)}@media (hover:hover){.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_:hover svg path{opacity:1}}.___STagContainer_1ctkw_gg_ .___STagContainerClose_1ctkw_gg_._size_xl_1ctkw_gg_ svg{padding-left:var(--intergalactic-spacing-1x, 4px);padding-right:var(--intergalactic-spacing-2x, 8px)}`,
|
|
32
|
+
"1ctkw_gg_"
|
|
33
|
+
), {
|
|
34
|
+
__SCircle: "___SCircle_1ctkw_gg_",
|
|
35
|
+
_size_m: "_size_m_1ctkw_gg_",
|
|
36
|
+
_size_l: "_size_l_1ctkw_gg_",
|
|
37
|
+
_size_xl: "_size_xl_1ctkw_gg_",
|
|
38
|
+
__SAddon: "___SAddon_1ctkw_gg_",
|
|
39
|
+
__STagContainer: "___STagContainer_1ctkw_gg_",
|
|
40
|
+
__STag: "___STag_1ctkw_gg_",
|
|
41
|
+
_disabled: "__disabled_1ctkw_gg_",
|
|
42
|
+
__STagContainerClose: "___STagContainerClose_1ctkw_gg_",
|
|
43
|
+
_interactiveView: "__interactiveView_1ctkw_gg_",
|
|
44
|
+
"_theme_primary-invert": "_theme_primary-invert_1ctkw_gg_",
|
|
45
|
+
"_theme_secondary-invert": "_theme_secondary-invert_1ctkw_gg_",
|
|
46
|
+
"_theme_additional-invert": "_theme_additional-invert_1ctkw_gg_",
|
|
47
|
+
__SText: "___SText_1ctkw_gg_",
|
|
48
|
+
_keyboardFocused: "__keyboardFocused_1ctkw_gg_",
|
|
49
|
+
"--tag-color": "--tag-color_1ctkw",
|
|
50
|
+
_interactive: "__interactive_1ctkw_gg_",
|
|
51
|
+
_theme_primary: "_theme_primary_1ctkw_gg_",
|
|
52
|
+
_active: "__active_1ctkw_gg_",
|
|
53
|
+
_theme_secondary: "_theme_secondary_1ctkw_gg_",
|
|
54
|
+
_theme_additional: "_theme_additional_1ctkw_gg_",
|
|
55
|
+
__SClose: "___SClose_1ctkw_gg_"
|
|
56
|
+
})
|
|
57
|
+
), __ = {
|
|
58
|
+
primary: {
|
|
59
|
+
muted: "gray-500",
|
|
60
|
+
info: "blue-500",
|
|
61
|
+
success: "green-500",
|
|
62
|
+
warning: "orange-500",
|
|
63
|
+
danger: "red-500"
|
|
64
|
+
},
|
|
65
|
+
secondary: {
|
|
66
|
+
muted: "gray-50"
|
|
67
|
+
}
|
|
68
|
+
}, T = /* @__PURE__ */ function(r) {
|
|
69
|
+
E(g, r);
|
|
70
|
+
var c = V(g);
|
|
71
|
+
function g(o) {
|
|
72
|
+
var _, e;
|
|
73
|
+
return z(this, g), e = c.call(this, o), n(u(e), "state", {
|
|
74
|
+
focusable: "container"
|
|
75
|
+
}), n(u(e), "handleCloseMount", function() {
|
|
76
|
+
e.setState({
|
|
77
|
+
focusable: "text"
|
|
78
|
+
});
|
|
79
|
+
}), n(u(e), "handleCloseUnmount", function() {
|
|
80
|
+
e.setState({
|
|
81
|
+
focusable: "container"
|
|
82
|
+
});
|
|
83
|
+
}), n(u(e), "handleKeyDown", function(t) {
|
|
84
|
+
switch (t.key) {
|
|
85
|
+
case " ":
|
|
86
|
+
case "Enter":
|
|
87
|
+
e.asProps.onClick && (t.preventDefault(), e.asProps.onClick(t));
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}), R.warn(o.use, `Property 'use' is deprecated, replace property to "theme='`.concat(o.use, "' color='").concat((_ = __[o.use]) === null || _ === void 0 ? void 0 : _[o.theme], `'"`), o["data-ui-name"] || k.displayName), e;
|
|
91
|
+
}
|
|
92
|
+
return A(g, [{
|
|
93
|
+
key: "getCircleProps",
|
|
94
|
+
value: function() {
|
|
95
|
+
var _ = this.asProps, e = _.size, t = _.color, a = _.resolveColor;
|
|
96
|
+
return {
|
|
97
|
+
size: e,
|
|
98
|
+
color: t,
|
|
99
|
+
resolveColor: a
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
key: "getTextProps",
|
|
104
|
+
value: function() {
|
|
105
|
+
var _ = this.asProps.interactive, e = this.asProps.id || "igc-".concat(this.asProps.uid, "-tag"), t = this.state.focusable;
|
|
106
|
+
return {
|
|
107
|
+
tabIndex: t === "text" && _ ? 0 : -1,
|
|
108
|
+
id: "".concat(e, "-text"),
|
|
109
|
+
role: t === "text" && _ ? "button" : void 0
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
key: "getCloseProps",
|
|
114
|
+
value: function() {
|
|
115
|
+
var _ = this.asProps, e = _.getI18nText, t = _.color, a = _.resolveColor, l = this.asProps.id || "igc-".concat(this.asProps.uid, "-tag");
|
|
116
|
+
return {
|
|
117
|
+
getI18nText: e,
|
|
118
|
+
id: "".concat(l, "-clear"),
|
|
119
|
+
"aria-labelledby": "".concat(l, "-clear ").concat(l, "-text"),
|
|
120
|
+
"aria-label": e("remove"),
|
|
121
|
+
onMount: this.handleCloseMount,
|
|
122
|
+
onUnmount: this.handleCloseUnmount,
|
|
123
|
+
color: t,
|
|
124
|
+
resolveColor: a
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
key: "render",
|
|
129
|
+
value: function() {
|
|
130
|
+
var _ = this.asProps, e, t = h, a = this.asProps, l = a.Children, s = a.styles, d = a.color, w = a.interactive, p = a.disabled, C = a.addonLeft, N = a.addonRight, G = a.resolveColor, H = a.id, J = a.uid, O = this.state.focusable, Q = H || "igc-".concat(J, "-tag"), W = !p && w, P = !p && w && O === "container";
|
|
131
|
+
return e = v(s), /* @__PURE__ */ i.createElement(t, e.cn("STag", f({}, m({
|
|
132
|
+
id: Q,
|
|
133
|
+
"use:interactive": P,
|
|
134
|
+
"use:interactiveView": W,
|
|
135
|
+
"tag-color": G(d),
|
|
136
|
+
onKeyDown: this.handleKeyDown,
|
|
137
|
+
"use:tabIndex": P ? 0 : -1,
|
|
138
|
+
role: P ? "button" : void 0
|
|
139
|
+
}, _))), C ? /* @__PURE__ */ i.createElement(k.Addon, {
|
|
140
|
+
tag: C
|
|
141
|
+
}) : null, Y(l, k.Text, [k.Addon, S.Circle]), N ? /* @__PURE__ */ i.createElement(k.Addon, {
|
|
142
|
+
tag: N
|
|
143
|
+
}) : null);
|
|
144
|
+
}
|
|
145
|
+
}]), g;
|
|
146
|
+
}(I);
|
|
147
|
+
n(T, "displayName", "Tag");
|
|
148
|
+
n(T, "style", $);
|
|
149
|
+
n(T, "enhance", [j(b), U(), M(), K()]);
|
|
150
|
+
n(T, "defaultProps", {
|
|
151
|
+
theme: "primary",
|
|
152
|
+
color: "gray-500",
|
|
153
|
+
size: "m",
|
|
154
|
+
i18n: b,
|
|
155
|
+
locale: "en"
|
|
156
|
+
});
|
|
157
|
+
var y = /* @__PURE__ */ function(r) {
|
|
158
|
+
E(g, r);
|
|
159
|
+
var c = V(g);
|
|
160
|
+
function g() {
|
|
161
|
+
return z(this, g), c.apply(this, arguments);
|
|
162
|
+
}
|
|
163
|
+
return A(g, [{
|
|
164
|
+
key: "getTagProps",
|
|
165
|
+
value: function() {
|
|
166
|
+
var _ = this.asProps, e = _.size, t = _.theme, a = _.color, l = _.disabled, s = _.uid, d = _.id, w = _.interactive, p = _.resolveColor, C = d || "igc-".concat(s, "-tag");
|
|
167
|
+
return {
|
|
168
|
+
id: "".concat(C, "-text"),
|
|
169
|
+
disabled: l,
|
|
170
|
+
size: e,
|
|
171
|
+
theme: t,
|
|
172
|
+
color: a,
|
|
173
|
+
tag: w ? "button" : void 0,
|
|
174
|
+
interactive: w,
|
|
175
|
+
resolveColor: p
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
key: "getCircleProps",
|
|
180
|
+
value: function() {
|
|
181
|
+
var _ = this.asProps, e = _.color, t = _.resolveColor, a = _.size;
|
|
182
|
+
return {
|
|
183
|
+
color: e,
|
|
184
|
+
resolveColor: t,
|
|
185
|
+
size: a
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}, {
|
|
189
|
+
key: "getAddonProps",
|
|
190
|
+
value: function() {
|
|
191
|
+
var _ = this.asProps, e = _.color, t = _.resolveColor;
|
|
192
|
+
return {
|
|
193
|
+
color: e,
|
|
194
|
+
resolveColor: t
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
key: "getCloseProps",
|
|
199
|
+
value: function() {
|
|
200
|
+
var _ = this.asProps, e = _.size, t = _.theme, a = _.color, l = _.disabled, s = _.uid, d = _.id, w = _.getI18nText, p = _.resolveColor, C = d || "igc-".concat(s, "-tag");
|
|
201
|
+
return {
|
|
202
|
+
disabled: l,
|
|
203
|
+
size: e,
|
|
204
|
+
theme: t,
|
|
205
|
+
color: a,
|
|
206
|
+
id: "".concat(C, "-clear"),
|
|
207
|
+
"aria-labelledby": "".concat(C, "-clear ").concat(C, "-text"),
|
|
208
|
+
"aria-label": w("remove"),
|
|
209
|
+
resolveColor: p
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}, {
|
|
213
|
+
key: "render",
|
|
214
|
+
value: function() {
|
|
215
|
+
var _ = this.asProps, e, t = h, a = this.asProps, l = a.styles, s = a.Children, d = a.forcedAdvancedMode, w = d || Z(s, ["InputTags." + k.Text.displayName, "InputTags." + k.Addon.displayName, "InputTags." + k.Close.displayName, "InputTags." + k.Circle.displayName, S.Tag.displayName, S.Addon.displayName, S.Close.displayName, S.Circle.displayName], !0);
|
|
216
|
+
return e = v(l), /* @__PURE__ */ i.createElement(t, e.cn("STagContainer", f({}, m({}, _))), w ? /* @__PURE__ */ i.createElement(s, e.cn("Children", {})) : /* @__PURE__ */ i.createElement(S.Tag, null, /* @__PURE__ */ i.createElement(s, e.cn("Children", {}))));
|
|
217
|
+
}
|
|
218
|
+
}]), g;
|
|
219
|
+
}(I);
|
|
220
|
+
n(y, "displayName", "TagContainer");
|
|
221
|
+
n(y, "style", $);
|
|
222
|
+
n(y, "enhance", [j(b), U(), M()]);
|
|
223
|
+
n(y, "defaultProps", {
|
|
224
|
+
color: "gray-500",
|
|
225
|
+
theme: "primary"
|
|
226
|
+
});
|
|
227
|
+
var x = /* @__PURE__ */ function(r) {
|
|
228
|
+
E(g, r);
|
|
229
|
+
var c = V(g);
|
|
230
|
+
function g() {
|
|
231
|
+
var o;
|
|
232
|
+
z(this, g);
|
|
233
|
+
for (var _ = arguments.length, e = new Array(_), t = 0; t < _; t++)
|
|
234
|
+
e[t] = arguments[t];
|
|
235
|
+
return o = c.call.apply(c, [this].concat(e)), n(u(o), "handleKeyDown", function(a) {
|
|
236
|
+
var l = o.asProps, s = l.onKeyDown, d = l.onClick;
|
|
237
|
+
if (s)
|
|
238
|
+
return s(a);
|
|
239
|
+
d && (a.key === "Enter" || a.key === " ") && (a.preventDefault(), d(a));
|
|
240
|
+
}), o;
|
|
241
|
+
}
|
|
242
|
+
return A(g, [{
|
|
243
|
+
key: "render",
|
|
244
|
+
value: function() {
|
|
245
|
+
var _ = this.asProps, e, t = h, a = this.asProps, l = a.Children, s = a.styles, d = a.color, w = a.resolveColor;
|
|
246
|
+
return e = v(s), /* @__PURE__ */ i.createElement(t, e.cn("STagContainerClose", f({}, m({
|
|
247
|
+
tag: "button",
|
|
248
|
+
type: "button",
|
|
249
|
+
interactive: !0,
|
|
250
|
+
interactiveView: !0,
|
|
251
|
+
"tag-color": w(d),
|
|
252
|
+
onKeyDown: this.handleKeyDown
|
|
253
|
+
}, _))), /* @__PURE__ */ i.createElement(l, e.cn("Children", {})));
|
|
254
|
+
}
|
|
255
|
+
}]), g;
|
|
256
|
+
}(I);
|
|
257
|
+
n(x, "displayName", "CloseTagContainer");
|
|
258
|
+
n(x, "style", $);
|
|
259
|
+
n(x, "defaultProps", function() {
|
|
260
|
+
return {
|
|
261
|
+
theme: "primary",
|
|
262
|
+
color: "gray-500",
|
|
263
|
+
size: "m",
|
|
264
|
+
i18n: b,
|
|
265
|
+
locale: "en",
|
|
266
|
+
children: /* @__PURE__ */ i.createElement(B.Close, null)
|
|
267
|
+
};
|
|
268
|
+
});
|
|
269
|
+
n(x, "enhance", [M(), K()]);
|
|
270
|
+
function e_(r) {
|
|
271
|
+
var c = arguments[0], g, o = h, _ = h, e = r.styles, t = r.color, a = r.resolveColor;
|
|
272
|
+
return g = v(e), /* @__PURE__ */ i.createElement(o, g.cn("SAddon", {
|
|
273
|
+
"tag-color": a(t)
|
|
274
|
+
}), /* @__PURE__ */ i.createElement(_, g.cn("SCircle", f({}, m({}, c)))));
|
|
275
|
+
}
|
|
276
|
+
function L(r) {
|
|
277
|
+
var c = arguments[0], g, o = h, _ = r.styles;
|
|
278
|
+
return g = v(_), /* @__PURE__ */ i.createElement(o, g.cn("SText", f({}, m({
|
|
279
|
+
tag: "span"
|
|
280
|
+
}, c))));
|
|
281
|
+
}
|
|
282
|
+
L.enhance = [K()];
|
|
283
|
+
function t_(r) {
|
|
284
|
+
var c = arguments[0], g, o = h, _ = r.styles;
|
|
285
|
+
i.useEffect(function() {
|
|
286
|
+
var t;
|
|
287
|
+
return (t = r.onMount) === null || t === void 0 || t.call(r), R.warn(!0, "Tag.Close is deprecated and will be removed in the next major release. Please, use TagContainer and TagContainer.Close", "Tag.Close"), function() {
|
|
288
|
+
var a;
|
|
289
|
+
return (a = r.onUnmount) === null || a === void 0 ? void 0 : a.call(r);
|
|
290
|
+
};
|
|
291
|
+
}, []);
|
|
292
|
+
var e = i.useCallback(function(t) {
|
|
293
|
+
if (r.onKeyDown)
|
|
294
|
+
return r.onKeyDown(t);
|
|
295
|
+
r.onClick && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), r.onClick(t));
|
|
296
|
+
}, [r.onKeyDown, r.onClick]);
|
|
297
|
+
return g = v(_), /* @__PURE__ */ i.createElement(o, g.cn("SClose", f({}, m({
|
|
298
|
+
tag: F,
|
|
299
|
+
interactive: !0,
|
|
300
|
+
onKeyDown: e
|
|
301
|
+
}, c))));
|
|
302
|
+
}
|
|
303
|
+
function q(r) {
|
|
304
|
+
var c = arguments[0], g, o = h, _ = r.styles, e = r.color, t = r.resolveColor, a = i.useMemo(function() {
|
|
305
|
+
if (typeof t == "function")
|
|
306
|
+
return t(e);
|
|
307
|
+
}, [e, t]);
|
|
308
|
+
return g = v(_), /* @__PURE__ */ i.createElement(o, g.cn("SAddon", f({}, m({
|
|
309
|
+
tag: "div",
|
|
310
|
+
"tag-color": a
|
|
311
|
+
}, c))));
|
|
312
|
+
}
|
|
313
|
+
function a_(r) {
|
|
314
|
+
var c = arguments[0], g, o = h, _ = r.styles, e = r.color, t = r.resolveColor, a = i.useMemo(function() {
|
|
315
|
+
if (typeof t == "function")
|
|
316
|
+
return t(e);
|
|
317
|
+
}, [e, t]);
|
|
318
|
+
return g = v(_), /* @__PURE__ */ i.createElement(o, g.cn("SCircle", f({}, m({
|
|
319
|
+
tag: "span",
|
|
320
|
+
"tag-color": a
|
|
321
|
+
}, c))));
|
|
322
|
+
}
|
|
323
|
+
var k = D(T, {
|
|
324
|
+
Text: L,
|
|
325
|
+
Addon: q,
|
|
326
|
+
Close: t_,
|
|
327
|
+
Circle: a_
|
|
328
|
+
}), B = D(x, {
|
|
329
|
+
Close: F
|
|
330
|
+
}), S = D(y, {
|
|
331
|
+
Tag: k,
|
|
332
|
+
Addon: q,
|
|
333
|
+
Close: B,
|
|
334
|
+
Circle: e_
|
|
335
|
+
});
|
|
336
|
+
export {
|
|
337
|
+
S as TagContainer,
|
|
338
|
+
k as default
|
|
339
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import r from "./de.json.mjs";
|
|
2
|
+
import o from "./en.json.mjs";
|
|
3
|
+
import m from "./es.json.mjs";
|
|
4
|
+
import t from "./fr.json.mjs";
|
|
5
|
+
import i from "./it.json.mjs";
|
|
6
|
+
import p from "./ja.json.mjs";
|
|
7
|
+
import f from "./ko.json.mjs";
|
|
8
|
+
import e from "./nl.json.mjs";
|
|
9
|
+
import s from "./pt.json.mjs";
|
|
10
|
+
import a from "./tr.json.mjs";
|
|
11
|
+
import l from "./vi.json.mjs";
|
|
12
|
+
import v from "./zh.json.mjs";
|
|
13
|
+
import d from "./pl.json.mjs";
|
|
14
|
+
import n from "./sv.json.mjs";
|
|
15
|
+
var B = {
|
|
16
|
+
de: r,
|
|
17
|
+
en: o,
|
|
18
|
+
es: m,
|
|
19
|
+
fr: t,
|
|
20
|
+
it: i,
|
|
21
|
+
ja: p,
|
|
22
|
+
ko: f,
|
|
23
|
+
nl: e,
|
|
24
|
+
pt: s,
|
|
25
|
+
tr: a,
|
|
26
|
+
vi: l,
|
|
27
|
+
zh: v,
|
|
28
|
+
pl: d,
|
|
29
|
+
sv: n
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
B as localizedMessages
|
|
33
|
+
};
|
package/package.json
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/tag",
|
|
3
3
|
"description": "Semrush Tag Component",
|
|
4
|
-
"version": "5.53.
|
|
4
|
+
"version": "5.53.1-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"exports": {
|
|
12
|
+
"require": "./lib/cjs/index.js",
|
|
13
|
+
"import": "./lib/esm/index.mjs",
|
|
14
|
+
"types": "./lib/types/index.d.ts"
|
|
15
|
+
},
|
|
11
16
|
"dependencies": {
|
|
12
|
-
"@semcore/utils": "4.
|
|
13
|
-
"@semcore/icon": "4.
|
|
14
|
-
"@semcore/flex-box": "5.41.
|
|
17
|
+
"@semcore/utils": "4.48.1-prerelease.0",
|
|
18
|
+
"@semcore/icon": "4.60.1-prerelease.0",
|
|
19
|
+
"@semcore/flex-box": "5.41.1-prerelease.0"
|
|
15
20
|
},
|
|
16
21
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "^2.39.
|
|
22
|
+
"@semcore/core": "^2.39.1-prerelease.0",
|
|
18
23
|
"react": "16.8 - 18",
|
|
19
24
|
"react-dom": "16.8 - 18"
|
|
20
25
|
},
|
|
@@ -28,6 +33,6 @@
|
|
|
28
33
|
"@semcore/testing-utils": "1.0.0"
|
|
29
34
|
},
|
|
30
35
|
"scripts": {
|
|
31
|
-
"build": "pnpm semcore-builder --source=js"
|
|
36
|
+
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
32
37
|
}
|
|
33
38
|
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineConfig, mergeConfig } from 'vite';
|
|
2
|
+
|
|
3
|
+
import viteConfig from '../../commonVite.config';
|
|
4
|
+
|
|
5
|
+
export default mergeConfig(
|
|
6
|
+
viteConfig,
|
|
7
|
+
defineConfig({
|
|
8
|
+
build: {
|
|
9
|
+
lib: {
|
|
10
|
+
entry: './src/index.js',
|
|
11
|
+
},
|
|
12
|
+
rollupOptions: {
|
|
13
|
+
external: ['react', 'react-dom', 'react/jsx-runtime', /@babel\/runtime\/*/, /@semcore\/*/],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}),
|
|
17
|
+
);
|