@semcore/base-trigger 2.5.2 → 2.5.3
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
CHANGED
package/lib/cjs/BaseTrigger.js
CHANGED
|
@@ -52,30 +52,30 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SBaseTrigger_qaw1b_gg_{display:inline-block;align-items:center;justify-content:center;line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;outline:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;outline:0;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;border:1px solid #a6b0b3;background:#fff;color:#333333}.___SBaseTrigger_qaw1b_gg_::-moz-focus-inner{border:none;padding:0}.___SBaseTrigger_qaw1b_gg_:active,.___SBaseTrigger_qaw1b_gg_:focus,.___SBaseTrigger_qaw1b_gg_:hover{outline:0;text-decoration:none}.___SBaseTrigger_qaw1b_gg_.__keyboardFocused_qaw1b_gg_{border:1px solid #2b94e1;box-shadow:0 0 0 3px rgba(43, 148, 225, 0.3)}.___SBaseTrigger_qaw1b_gg_:active,.___SBaseTrigger_qaw1b_gg_:hover,.___SBaseTrigger_qaw1b_gg_.__active_qaw1b_gg_{background-color:rgba(166,176,179,.2)}.___SBaseTrigger_qaw1b_gg_.__disabled_qaw1b_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SBaseTrigger_qaw1b_gg_.__keyboardFocused_qaw1b_gg_{z-index:1}.___SInner_qaw1b_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SText_qaw1b_gg_{display:inline;padding:1px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.1;flex-grow:1;text-align:left}.___SAddon_qaw1b_gg_{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.___SBaseAddon_qaw1b_gg_{width:12px;height:12px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_{height:18px;min-width:18px;border-radius:2px;font-size:10px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:4px;margin-right:4px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:4px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:4px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-2px;margin-right:-2px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_{height:26px;min-width:26px;border-radius:3px;font-size:12px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:8px;margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:8px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_{height:32px;min-width:32px;border-radius:4px;font-size:14px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:8px;margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:8px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_{height:42px;min-width:42px;border-radius:5px;font-size:16px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:12px;margin-right:12px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:12px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:12px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-6px;margin-right:-6px}.___SBaseTrigger_qaw1b_gg_._neighborLocation_right_qaw1b_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SBaseTrigger_qaw1b_gg_._neighborLocation_both_qaw1b_gg_{border-radius:0;margin-left:-1px}.___SBaseTrigger_qaw1b_gg_._neighborLocation_left_qaw1b_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SText_qaw1b_gg_.__placeholder_qaw1b_gg_{color:#aaaaaa}.___SBaseTrigger_qaw1b_gg_._state_normal_qaw1b_gg_{border-color:#a6b0b3}.___SBaseTrigger_qaw1b_gg_._state_valid_qaw1b_gg_{border-color:#4fae33}.___SBaseTrigger_qaw1b_gg_._state_invalid_qaw1b_gg_{border-color:#ff7f00}.___SBaseTrigger_qaw1b_gg_._state_invalid_qaw1b_gg_.__keyboardFocused_qaw1b_gg_{border-color:#ff7f00;box-shadow:0 0 0 3px rgba(255,127,0,.3)}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "pimup5_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SBaseTrigger": "
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"__SInner": "
|
|
65
|
-
"__SText": "
|
|
66
|
-
"__SAddon": "
|
|
67
|
-
"__SBaseAddon": "
|
|
68
|
-
"_size_s": "
|
|
69
|
-
"_size_m": "
|
|
70
|
-
"_size_l": "
|
|
71
|
-
"_size_xl": "
|
|
72
|
-
"_neighborLocation_right": "
|
|
73
|
-
"_neighborLocation_both": "
|
|
74
|
-
"_neighborLocation_left": "
|
|
75
|
-
"_placeholder": "
|
|
76
|
-
"_state_normal": "
|
|
77
|
-
"_state_valid": "
|
|
78
|
-
"_state_invalid": "
|
|
60
|
+
"__SBaseTrigger": "___SBaseTrigger_qaw1b_gg_",
|
|
61
|
+
"_keyboardFocused": "__keyboardFocused_qaw1b_gg_",
|
|
62
|
+
"_active": "__active_qaw1b_gg_",
|
|
63
|
+
"_disabled": "__disabled_qaw1b_gg_",
|
|
64
|
+
"__SInner": "___SInner_qaw1b_gg_",
|
|
65
|
+
"__SText": "___SText_qaw1b_gg_",
|
|
66
|
+
"__SAddon": "___SAddon_qaw1b_gg_",
|
|
67
|
+
"__SBaseAddon": "___SBaseAddon_qaw1b_gg_",
|
|
68
|
+
"_size_s": "_size_s_qaw1b_gg_",
|
|
69
|
+
"_size_m": "_size_m_qaw1b_gg_",
|
|
70
|
+
"_size_l": "_size_l_qaw1b_gg_",
|
|
71
|
+
"_size_xl": "_size_xl_qaw1b_gg_",
|
|
72
|
+
"_neighborLocation_right": "_neighborLocation_right_qaw1b_gg_",
|
|
73
|
+
"_neighborLocation_both": "_neighborLocation_both_qaw1b_gg_",
|
|
74
|
+
"_neighborLocation_left": "_neighborLocation_left_qaw1b_gg_",
|
|
75
|
+
"_placeholder": "__placeholder_qaw1b_gg_",
|
|
76
|
+
"_state_normal": "_state_normal_qaw1b_gg_",
|
|
77
|
+
"_state_valid": "_state_valid_qaw1b_gg_",
|
|
78
|
+
"_state_invalid": "_state_invalid_qaw1b_gg_"
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
var RootBaseTrigger = /*#__PURE__*/function (_Component) {
|
|
@@ -39,6 +39,11 @@ SBaseTrigger {
|
|
|
39
39
|
text-decoration: none;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
&[keyboardFocused] {
|
|
43
|
+
border: 1px solid var(--light-blue);
|
|
44
|
+
box-shadow: var(--keyborad-focus);
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
&:active,
|
|
43
48
|
&:hover,
|
|
44
49
|
&[active] {
|
|
@@ -53,7 +58,6 @@ SBaseTrigger[disabled] {
|
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
SBaseTrigger[keyboardFocused] {
|
|
56
|
-
box-shadow: var(--keyborad-focus);
|
|
57
61
|
z-index: 1;
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -226,4 +230,9 @@ SBaseTrigger[state='valid'] {
|
|
|
226
230
|
|
|
227
231
|
SBaseTrigger[state='invalid'] {
|
|
228
232
|
border-color: var(--orange);
|
|
233
|
+
|
|
234
|
+
&[keyboardFocused] {
|
|
235
|
+
border-color: var(--orange);
|
|
236
|
+
box-shadow: 0 0 0 3px color-mod(var(--orange) a(30%));
|
|
237
|
+
}
|
|
229
238
|
}
|
package/lib/es6/BaseTrigger.js
CHANGED
|
@@ -30,30 +30,30 @@ var style = (
|
|
|
30
30
|
/*__reshadow_css_start__*/
|
|
31
31
|
_sstyled.insert(
|
|
32
32
|
/*__inner_css_start__*/
|
|
33
|
-
".
|
|
33
|
+
".___SBaseTrigger_qaw1b_gg_{display:inline-block;align-items:center;justify-content:center;line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;outline:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;outline:0;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;border:1px solid #a6b0b3;background:#fff;color:#333333}.___SBaseTrigger_qaw1b_gg_::-moz-focus-inner{border:none;padding:0}.___SBaseTrigger_qaw1b_gg_:active,.___SBaseTrigger_qaw1b_gg_:focus,.___SBaseTrigger_qaw1b_gg_:hover{outline:0;text-decoration:none}.___SBaseTrigger_qaw1b_gg_.__keyboardFocused_qaw1b_gg_{border:1px solid #2b94e1;box-shadow:0 0 0 3px rgba(43, 148, 225, 0.3)}.___SBaseTrigger_qaw1b_gg_:active,.___SBaseTrigger_qaw1b_gg_:hover,.___SBaseTrigger_qaw1b_gg_.__active_qaw1b_gg_{background-color:rgba(166,176,179,.2)}.___SBaseTrigger_qaw1b_gg_.__disabled_qaw1b_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SBaseTrigger_qaw1b_gg_.__keyboardFocused_qaw1b_gg_{z-index:1}.___SInner_qaw1b_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SText_qaw1b_gg_{display:inline;padding:1px 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.1;flex-grow:1;text-align:left}.___SAddon_qaw1b_gg_{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.___SBaseAddon_qaw1b_gg_{width:12px;height:12px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_{height:18px;min-width:18px;border-radius:2px;font-size:10px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:4px;margin-right:4px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:4px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:4px}.___SBaseTrigger_qaw1b_gg_._size_s_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-2px;margin-right:-2px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_{height:26px;min-width:26px;border-radius:3px;font-size:12px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:8px;margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:8px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_m_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_{height:32px;min-width:32px;border-radius:4px;font-size:14px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:8px;margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:8px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:8px}.___SBaseTrigger_qaw1b_gg_._size_l_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_{height:42px;min-width:42px;border-radius:5px;font-size:16px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SText_qaw1b_gg_{margin-left:12px;margin-right:12px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):first-child{margin-left:12px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SAddon_qaw1b_gg_:not(:only-child):last-child{margin-right:12px}.___SBaseTrigger_qaw1b_gg_._size_xl_qaw1b_gg_ .___SAddon_qaw1b_gg_:only-child{margin-left:-6px;margin-right:-6px}.___SBaseTrigger_qaw1b_gg_._neighborLocation_right_qaw1b_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SBaseTrigger_qaw1b_gg_._neighborLocation_both_qaw1b_gg_{border-radius:0;margin-left:-1px}.___SBaseTrigger_qaw1b_gg_._neighborLocation_left_qaw1b_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SText_qaw1b_gg_.__placeholder_qaw1b_gg_{color:#aaaaaa}.___SBaseTrigger_qaw1b_gg_._state_normal_qaw1b_gg_{border-color:#a6b0b3}.___SBaseTrigger_qaw1b_gg_._state_valid_qaw1b_gg_{border-color:#4fae33}.___SBaseTrigger_qaw1b_gg_._state_invalid_qaw1b_gg_{border-color:#ff7f00}.___SBaseTrigger_qaw1b_gg_._state_invalid_qaw1b_gg_.__keyboardFocused_qaw1b_gg_{border-color:#ff7f00;box-shadow:0 0 0 3px rgba(255,127,0,.3)}"
|
|
34
34
|
/*__inner_css_end__*/
|
|
35
|
-
, "
|
|
35
|
+
, "pimup5_gg_")
|
|
36
36
|
/*__reshadow_css_end__*/
|
|
37
37
|
, {
|
|
38
|
-
"__SBaseTrigger": "
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"__SInner": "
|
|
43
|
-
"__SText": "
|
|
44
|
-
"__SAddon": "
|
|
45
|
-
"__SBaseAddon": "
|
|
46
|
-
"_size_s": "
|
|
47
|
-
"_size_m": "
|
|
48
|
-
"_size_l": "
|
|
49
|
-
"_size_xl": "
|
|
50
|
-
"_neighborLocation_right": "
|
|
51
|
-
"_neighborLocation_both": "
|
|
52
|
-
"_neighborLocation_left": "
|
|
53
|
-
"_placeholder": "
|
|
54
|
-
"_state_normal": "
|
|
55
|
-
"_state_valid": "
|
|
56
|
-
"_state_invalid": "
|
|
38
|
+
"__SBaseTrigger": "___SBaseTrigger_qaw1b_gg_",
|
|
39
|
+
"_keyboardFocused": "__keyboardFocused_qaw1b_gg_",
|
|
40
|
+
"_active": "__active_qaw1b_gg_",
|
|
41
|
+
"_disabled": "__disabled_qaw1b_gg_",
|
|
42
|
+
"__SInner": "___SInner_qaw1b_gg_",
|
|
43
|
+
"__SText": "___SText_qaw1b_gg_",
|
|
44
|
+
"__SAddon": "___SAddon_qaw1b_gg_",
|
|
45
|
+
"__SBaseAddon": "___SBaseAddon_qaw1b_gg_",
|
|
46
|
+
"_size_s": "_size_s_qaw1b_gg_",
|
|
47
|
+
"_size_m": "_size_m_qaw1b_gg_",
|
|
48
|
+
"_size_l": "_size_l_qaw1b_gg_",
|
|
49
|
+
"_size_xl": "_size_xl_qaw1b_gg_",
|
|
50
|
+
"_neighborLocation_right": "_neighborLocation_right_qaw1b_gg_",
|
|
51
|
+
"_neighborLocation_both": "_neighborLocation_both_qaw1b_gg_",
|
|
52
|
+
"_neighborLocation_left": "_neighborLocation_left_qaw1b_gg_",
|
|
53
|
+
"_placeholder": "__placeholder_qaw1b_gg_",
|
|
54
|
+
"_state_normal": "_state_normal_qaw1b_gg_",
|
|
55
|
+
"_state_valid": "_state_valid_qaw1b_gg_",
|
|
56
|
+
"_state_invalid": "_state_invalid_qaw1b_gg_"
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
var RootBaseTrigger = /*#__PURE__*/function (_Component) {
|
|
@@ -39,6 +39,11 @@ SBaseTrigger {
|
|
|
39
39
|
text-decoration: none;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
&[keyboardFocused] {
|
|
43
|
+
border: 1px solid var(--light-blue);
|
|
44
|
+
box-shadow: var(--keyborad-focus);
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
&:active,
|
|
43
48
|
&:hover,
|
|
44
49
|
&[active] {
|
|
@@ -53,7 +58,6 @@ SBaseTrigger[disabled] {
|
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
SBaseTrigger[keyboardFocused] {
|
|
56
|
-
box-shadow: var(--keyborad-focus);
|
|
57
61
|
z-index: 1;
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -226,4 +230,9 @@ SBaseTrigger[state='valid'] {
|
|
|
226
230
|
|
|
227
231
|
SBaseTrigger[state='invalid'] {
|
|
228
232
|
border-color: var(--orange);
|
|
233
|
+
|
|
234
|
+
&[keyboardFocused] {
|
|
235
|
+
border-color: var(--orange);
|
|
236
|
+
box-shadow: 0 0 0 3px color-mod(var(--orange) a(30%));
|
|
237
|
+
}
|
|
229
238
|
}
|
package/package.json
CHANGED
|
@@ -39,6 +39,11 @@ SBaseTrigger {
|
|
|
39
39
|
text-decoration: none;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
&[keyboardFocused] {
|
|
43
|
+
border: 1px solid var(--light-blue);
|
|
44
|
+
box-shadow: var(--keyborad-focus);
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
&:active,
|
|
43
48
|
&:hover,
|
|
44
49
|
&[active] {
|
|
@@ -53,7 +58,6 @@ SBaseTrigger[disabled] {
|
|
|
53
58
|
}
|
|
54
59
|
|
|
55
60
|
SBaseTrigger[keyboardFocused] {
|
|
56
|
-
box-shadow: var(--keyborad-focus);
|
|
57
61
|
z-index: 1;
|
|
58
62
|
}
|
|
59
63
|
|
|
@@ -226,4 +230,9 @@ SBaseTrigger[state='valid'] {
|
|
|
226
230
|
|
|
227
231
|
SBaseTrigger[state='invalid'] {
|
|
228
232
|
border-color: var(--orange);
|
|
233
|
+
|
|
234
|
+
&[keyboardFocused] {
|
|
235
|
+
border-color: var(--orange);
|
|
236
|
+
box-shadow: 0 0 0 3px color-mod(var(--orange) a(30%));
|
|
237
|
+
}
|
|
229
238
|
}
|