@semcore/tag 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/Tag.js +22 -22
- package/lib/cjs/style/tag.shadow.css +15 -3
- package/lib/es6/Tag.js +22 -22
- package/lib/es6/style/tag.shadow.css +15 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.1.1] - 2022-09-07
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Enforced inner text font line height to prevent possible bottom cut.
|
|
10
|
+
|
|
5
11
|
## [4.1.0] - 2022-09-05
|
|
6
12
|
|
|
7
13
|
### Added
|
package/lib/cjs/Tag.js
CHANGED
|
@@ -52,31 +52,31 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___STag_16eyp_gg_{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;border-width:1px;border-style:solid;border-color:transparent;border-radius:24px;padding-left:4px;padding-right:4px;font-weight:500;background-color:var(--colorBg_16eyp);color:var(--colorText_16eyp);border-color:var(--colorBorder_16eyp)}.___STag_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:var(--colorBgHover_16eyp)}.___STag_16eyp_gg_.__disabled_16eyp_gg_{opacity:0.3;cursor:default;pointer-events:none}.___STag_16eyp_gg_.__interactive_16eyp_gg_{cursor:pointer}.___STag_16eyp_gg_._size_m_16eyp_gg_{height:20px;min-width:20px}.___STag_16eyp_gg_._size_m_16eyp_gg_ .___SCircle_16eyp_gg_:first-child{margin-left:-2px}.___STag_16eyp_gg_._size_m_16eyp_gg_ .___SCircle_16eyp_gg_:last-child{margin-right:-2px}.___STag_16eyp_gg_._size_m_16eyp_gg_ .___SText_16eyp_gg_{font-size:12px;line-height:1.33}.___STag_16eyp_gg_._size_l_16eyp_gg_{height:28px;min-width:28px}.___STag_16eyp_gg_._size_l_16eyp_gg_ .___SText_16eyp_gg_{font-size:14px;line-height:1.42}.___STag_16eyp_gg_._size_xl_16eyp_gg_{height:40px;min-width:40px}.___STag_16eyp_gg_._size_xl_16eyp_gg_ .___SText_16eyp_gg_{font-size:16px;line-height:1.5}.___STag_16eyp_gg_._theme_primary_16eyp_gg_{background-color:var(--colorBg_16eyp);border-color:var(--colorBg_16eyp);color:var(--colorText_16eyp)}.___STag_16eyp_gg_._theme_primary_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_primary_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_primary_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:var(--colorBgHover_16eyp)}.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_{background-color:hsla(0,0%,100%,.15);color:#ffffff}.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:hsla(0,0%,100%,.3)}.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_{color:#ffffff;border-color:hsla(0,0%,100%,.3)}.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_.__interactive_16eyp_gg_:hover,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___STag_16eyp_gg_._theme_additional_16eyp_gg_{border-style:dashed}.___SText_16eyp_gg_{display:inline-block;padding-left:4px;padding-right:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_16eyp_gg_:not(:only-child):first-child{padding-right:0}.___SText_16eyp_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_16eyp_gg_:not(:only-child):last-child{padding-left:0}.___SAddon_16eyp_gg_{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding-left:4px;padding-right:4px}.___SCircle_16eyp_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 4px}.___SCircle_16eyp_gg_:first-child{margin-left:0}.___SCircle_16eyp_gg_:last-child{margin-right:0}.___SCircle_16eyp_gg_._size_m_16eyp_gg_{width:16px;height:16px}.___SCircle_16eyp_gg_._size_l_16eyp_gg_{width:20px;height:20px}.___SCircle_16eyp_gg_._size_xl_16eyp_gg_{width:20px;height:20px}.___SClose_16eyp_gg_{cursor:pointer;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:4px}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "16eyp_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__STag": "
|
|
61
|
-
"--colorBg": "--
|
|
62
|
-
"--colorText": "--
|
|
63
|
-
"--colorBorder": "--
|
|
64
|
-
"_active": "
|
|
65
|
-
"_interactive": "
|
|
66
|
-
"--colorBgHover": "--
|
|
67
|
-
"_disabled": "
|
|
68
|
-
"_size_m": "
|
|
69
|
-
"__SCircle": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"_theme_primary
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"__SAddon": "
|
|
79
|
-
"__SClose": "
|
|
60
|
+
"__STag": "___STag_16eyp_gg_",
|
|
61
|
+
"--colorBg": "--colorBg_16eyp",
|
|
62
|
+
"--colorText": "--colorText_16eyp",
|
|
63
|
+
"--colorBorder": "--colorBorder_16eyp",
|
|
64
|
+
"_active": "__active_16eyp_gg_",
|
|
65
|
+
"_interactive": "__interactive_16eyp_gg_",
|
|
66
|
+
"--colorBgHover": "--colorBgHover_16eyp",
|
|
67
|
+
"_disabled": "__disabled_16eyp_gg_",
|
|
68
|
+
"_size_m": "_size_m_16eyp_gg_",
|
|
69
|
+
"__SCircle": "___SCircle_16eyp_gg_",
|
|
70
|
+
"__SText": "___SText_16eyp_gg_",
|
|
71
|
+
"_size_l": "_size_l_16eyp_gg_",
|
|
72
|
+
"_size_xl": "_size_xl_16eyp_gg_",
|
|
73
|
+
"_theme_primary": "_theme_primary_16eyp_gg_",
|
|
74
|
+
"_theme_primary-invert": "_theme_primary-invert_16eyp_gg_",
|
|
75
|
+
"_theme_additional-invert": "_theme_additional-invert_16eyp_gg_",
|
|
76
|
+
"_theme_secondary-invert": "_theme_secondary-invert_16eyp_gg_",
|
|
77
|
+
"_theme_additional": "_theme_additional_16eyp_gg_",
|
|
78
|
+
"__SAddon": "___SAddon_16eyp_gg_",
|
|
79
|
+
"__SClose": "___SClose_16eyp_gg_"
|
|
80
80
|
});
|
|
81
81
|
var textColorToBgColor = {
|
|
82
82
|
'gray-500': 'gray-100',
|
|
@@ -37,7 +37,6 @@ STag[interactive] {
|
|
|
37
37
|
STag[size='m'] {
|
|
38
38
|
height: 20px;
|
|
39
39
|
min-width: 20px;
|
|
40
|
-
font-size: var(--fs-100);
|
|
41
40
|
|
|
42
41
|
& SCircle:first-child {
|
|
43
42
|
margin-left: -2px;
|
|
@@ -46,18 +45,31 @@ STag[size='m'] {
|
|
|
46
45
|
& SCircle:last-child {
|
|
47
46
|
margin-right: -2px;
|
|
48
47
|
}
|
|
48
|
+
|
|
49
|
+
& SText {
|
|
50
|
+
font-size: var(--fs-100);
|
|
51
|
+
line-height: var(--lh-100);
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
STag[size='l'] {
|
|
52
56
|
height: 28px;
|
|
53
57
|
min-width: 28px;
|
|
54
|
-
|
|
58
|
+
|
|
59
|
+
& SText {
|
|
60
|
+
font-size: var(--fs-200);
|
|
61
|
+
line-height: var(--lh-200);
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
STag[size='xl'] {
|
|
58
66
|
height: 40px;
|
|
59
67
|
min-width: 40px;
|
|
60
|
-
|
|
68
|
+
|
|
69
|
+
& SText {
|
|
70
|
+
font-size: var(--fs-300);
|
|
71
|
+
line-height: var(--lh-300);
|
|
72
|
+
}
|
|
61
73
|
}
|
|
62
74
|
|
|
63
75
|
STag[theme='primary'] {
|
package/lib/es6/Tag.js
CHANGED
|
@@ -32,31 +32,31 @@ var style = (
|
|
|
32
32
|
/*__reshadow_css_start__*/
|
|
33
33
|
_sstyled.insert(
|
|
34
34
|
/*__inner_css_start__*/
|
|
35
|
-
".
|
|
35
|
+
".___STag_16eyp_gg_{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;border-width:1px;border-style:solid;border-color:transparent;border-radius:24px;padding-left:4px;padding-right:4px;font-weight:500;background-color:var(--colorBg_16eyp);color:var(--colorText_16eyp);border-color:var(--colorBorder_16eyp)}.___STag_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:var(--colorBgHover_16eyp)}.___STag_16eyp_gg_.__disabled_16eyp_gg_{opacity:0.3;cursor:default;pointer-events:none}.___STag_16eyp_gg_.__interactive_16eyp_gg_{cursor:pointer}.___STag_16eyp_gg_._size_m_16eyp_gg_{height:20px;min-width:20px}.___STag_16eyp_gg_._size_m_16eyp_gg_ .___SCircle_16eyp_gg_:first-child{margin-left:-2px}.___STag_16eyp_gg_._size_m_16eyp_gg_ .___SCircle_16eyp_gg_:last-child{margin-right:-2px}.___STag_16eyp_gg_._size_m_16eyp_gg_ .___SText_16eyp_gg_{font-size:12px;line-height:1.33}.___STag_16eyp_gg_._size_l_16eyp_gg_{height:28px;min-width:28px}.___STag_16eyp_gg_._size_l_16eyp_gg_ .___SText_16eyp_gg_{font-size:14px;line-height:1.42}.___STag_16eyp_gg_._size_xl_16eyp_gg_{height:40px;min-width:40px}.___STag_16eyp_gg_._size_xl_16eyp_gg_ .___SText_16eyp_gg_{font-size:16px;line-height:1.5}.___STag_16eyp_gg_._theme_primary_16eyp_gg_{background-color:var(--colorBg_16eyp);border-color:var(--colorBg_16eyp);color:var(--colorText_16eyp)}.___STag_16eyp_gg_._theme_primary_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_primary_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_primary_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:var(--colorBgHover_16eyp)}.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_{background-color:hsla(0,0%,100%,.15);color:#ffffff}.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_primary-invert_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:hsla(0,0%,100%,.3)}.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_{color:#ffffff;border-color:hsla(0,0%,100%,.3)}.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_additional-invert_16eyp_gg_.__interactive_16eyp_gg_:hover,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_.__active_16eyp_gg_,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_.__interactive_16eyp_gg_:active,.___STag_16eyp_gg_._theme_secondary-invert_16eyp_gg_.__interactive_16eyp_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___STag_16eyp_gg_._theme_additional_16eyp_gg_{border-style:dashed}.___SText_16eyp_gg_{display:inline-block;padding-left:4px;padding-right:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_16eyp_gg_:not(:only-child):first-child{padding-right:0}.___SText_16eyp_gg_:not(:first-child):not(:last-child){padding-left:0;padding-right:0}.___SText_16eyp_gg_:not(:only-child):last-child{padding-left:0}.___SAddon_16eyp_gg_{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding-left:4px;padding-right:4px}.___SCircle_16eyp_gg_{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;margin:0 4px}.___SCircle_16eyp_gg_:first-child{margin-left:0}.___SCircle_16eyp_gg_:last-child{margin-right:0}.___SCircle_16eyp_gg_._size_m_16eyp_gg_{width:16px;height:16px}.___SCircle_16eyp_gg_._size_l_16eyp_gg_{width:20px;height:20px}.___SCircle_16eyp_gg_._size_xl_16eyp_gg_{width:20px;height:20px}.___SClose_16eyp_gg_{cursor:pointer;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:4px}"
|
|
36
36
|
/*__inner_css_end__*/
|
|
37
|
-
, "
|
|
37
|
+
, "16eyp_gg_")
|
|
38
38
|
/*__reshadow_css_end__*/
|
|
39
39
|
, {
|
|
40
|
-
"__STag": "
|
|
41
|
-
"--colorBg": "--
|
|
42
|
-
"--colorText": "--
|
|
43
|
-
"--colorBorder": "--
|
|
44
|
-
"_active": "
|
|
45
|
-
"_interactive": "
|
|
46
|
-
"--colorBgHover": "--
|
|
47
|
-
"_disabled": "
|
|
48
|
-
"_size_m": "
|
|
49
|
-
"__SCircle": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"_theme_primary
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"__SAddon": "
|
|
59
|
-
"__SClose": "
|
|
40
|
+
"__STag": "___STag_16eyp_gg_",
|
|
41
|
+
"--colorBg": "--colorBg_16eyp",
|
|
42
|
+
"--colorText": "--colorText_16eyp",
|
|
43
|
+
"--colorBorder": "--colorBorder_16eyp",
|
|
44
|
+
"_active": "__active_16eyp_gg_",
|
|
45
|
+
"_interactive": "__interactive_16eyp_gg_",
|
|
46
|
+
"--colorBgHover": "--colorBgHover_16eyp",
|
|
47
|
+
"_disabled": "__disabled_16eyp_gg_",
|
|
48
|
+
"_size_m": "_size_m_16eyp_gg_",
|
|
49
|
+
"__SCircle": "___SCircle_16eyp_gg_",
|
|
50
|
+
"__SText": "___SText_16eyp_gg_",
|
|
51
|
+
"_size_l": "_size_l_16eyp_gg_",
|
|
52
|
+
"_size_xl": "_size_xl_16eyp_gg_",
|
|
53
|
+
"_theme_primary": "_theme_primary_16eyp_gg_",
|
|
54
|
+
"_theme_primary-invert": "_theme_primary-invert_16eyp_gg_",
|
|
55
|
+
"_theme_additional-invert": "_theme_additional-invert_16eyp_gg_",
|
|
56
|
+
"_theme_secondary-invert": "_theme_secondary-invert_16eyp_gg_",
|
|
57
|
+
"_theme_additional": "_theme_additional_16eyp_gg_",
|
|
58
|
+
"__SAddon": "___SAddon_16eyp_gg_",
|
|
59
|
+
"__SClose": "___SClose_16eyp_gg_"
|
|
60
60
|
});
|
|
61
61
|
var textColorToBgColor = {
|
|
62
62
|
'gray-500': 'gray-100',
|
|
@@ -37,7 +37,6 @@ STag[interactive] {
|
|
|
37
37
|
STag[size='m'] {
|
|
38
38
|
height: 20px;
|
|
39
39
|
min-width: 20px;
|
|
40
|
-
font-size: var(--fs-100);
|
|
41
40
|
|
|
42
41
|
& SCircle:first-child {
|
|
43
42
|
margin-left: -2px;
|
|
@@ -46,18 +45,31 @@ STag[size='m'] {
|
|
|
46
45
|
& SCircle:last-child {
|
|
47
46
|
margin-right: -2px;
|
|
48
47
|
}
|
|
48
|
+
|
|
49
|
+
& SText {
|
|
50
|
+
font-size: var(--fs-100);
|
|
51
|
+
line-height: var(--lh-100);
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
STag[size='l'] {
|
|
52
56
|
height: 28px;
|
|
53
57
|
min-width: 28px;
|
|
54
|
-
|
|
58
|
+
|
|
59
|
+
& SText {
|
|
60
|
+
font-size: var(--fs-200);
|
|
61
|
+
line-height: var(--lh-200);
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
64
|
|
|
57
65
|
STag[size='xl'] {
|
|
58
66
|
height: 40px;
|
|
59
67
|
min-width: 40px;
|
|
60
|
-
|
|
68
|
+
|
|
69
|
+
& SText {
|
|
70
|
+
font-size: var(--fs-300);
|
|
71
|
+
line-height: var(--lh-300);
|
|
72
|
+
}
|
|
61
73
|
}
|
|
62
74
|
|
|
63
75
|
STag[theme='primary'] {
|