@semcore/base-trigger 4.52.1 → 16.0.0-prerelease.4

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.
@@ -1,91 +1,89 @@
1
- import y from "@babel/runtime/helpers/esm/objectSpread2";
1
+ import v from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import W from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import w from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
4
  import C from "@babel/runtime/helpers/esm/classCallCheck";
5
5
  import S from "@babel/runtime/helpers/esm/createClass";
6
- import A from "@babel/runtime/helpers/esm/assertThisInitialized";
6
+ import R from "@babel/runtime/helpers/esm/assertThisInitialized";
7
7
  import x from "@babel/runtime/helpers/esm/inherits";
8
8
  import E from "@babel/runtime/helpers/esm/createSuper";
9
- import u from "@babel/runtime/helpers/esm/defineProperty";
10
- import $ from "@babel/runtime/helpers/esm/toConsumableArray";
11
- import { sstyled as D } from "@semcore/utils/lib/core/index";
12
- import M, { sstyled as h, assignProps as b, Component as F } from "@semcore/core";
9
+ import p from "@babel/runtime/helpers/esm/defineProperty";
10
+ import D from "@babel/runtime/helpers/esm/toConsumableArray";
11
+ import { sstyled as h, createComponent as M, assignProps as b, Component as I } from "@semcore/core";
13
12
  import i from "react";
14
13
  import f from "./BaseTrigger.mjs";
15
- import { Box as H } from "@semcore/flex-box";
16
- import O from "@semcore/neighbor-location";
17
- import j from "@semcore/dot";
18
- import q from "@semcore/icon/Close/m";
19
- import L from "@semcore/icon/ChevronDown/m";
20
- import { callAllEventHandlers as K } from "@semcore/utils/lib/assignProps";
21
- import V from "@semcore/utils/lib/addonTextChildren";
22
- import { localizedMessages as R } from "./translations/__intergalactic-dynamic-locales.mjs";
23
- import G from "@semcore/utils/lib/enhances/i18nEnhance";
24
- import J from "@semcore/utils/lib/enhances/animatedSizeEnhance";
25
- import { cssVariableEnhance as Q } from "@semcore/utils/lib/useCssVariable";
26
- import U, { inputProps as X } from "@semcore/utils/lib/inputProps";
27
- import Y from "@semcore/utils/lib/uniqueID";
28
- import { setFocus as Z } from "@semcore/utils/lib/use/useFocusLock";
29
- import { isAdvanceMode as ee } from "@semcore/utils/lib/findComponent";
14
+ import { Box as $ } from "@semcore/flex-box";
15
+ import H from "@semcore/neighbor-location";
16
+ import O from "@semcore/dot";
17
+ import j from "@semcore/icon/Close/m";
18
+ import q from "@semcore/icon/ChevronDown/m";
19
+ import { callAllEventHandlers as L } from "@semcore/core/lib/utils/assignProps";
20
+ import K from "@semcore/core/lib/utils/addonTextChildren";
21
+ import { localizedMessages as z } from "./translations/__intergalactic-dynamic-locales.mjs";
22
+ import V from "@semcore/core/lib/utils/enhances/i18nEnhance";
23
+ import G from "@semcore/core/lib/utils/enhances/animatedSizeEnhance";
24
+ import { cssVariableEnhance as J } from "@semcore/core/lib/utils/useCssVariable";
25
+ import Q, { inputProps as U } from "@semcore/core/lib/utils/inputProps";
26
+ import X from "@semcore/core/lib/utils/uniqueID";
27
+ import { setFocus as Y } from "@semcore/core/lib/utils/use/useFocusLock";
28
+ import { isAdvanceMode as Z } from "@semcore/core/lib/utils/findComponent";
30
29
  import { Hint as T } from "@semcore/tooltip";
31
- import { ScreenReaderOnly as re } from "@semcore/utils/lib/ScreenReaderOnly";
32
- var te = ["empty", "size", "placeholder", "active", "disabled", "includeInputProps", "triggerRef", "data-ui-name"], I = (
30
+ import { ScreenReaderOnly as ee } from "@semcore/core/lib/utils/ScreenReaderOnly";
31
+ var re = ["empty", "size", "placeholder", "active", "disabled", "includeInputProps", "triggerRef", "data-ui-name"], F = (
33
32
  /*__reshadow_css_start__*/
34
- (D.insert(
33
+ (h.insert(
35
34
  /*__inner_css_start__*/
36
- ".___SFilterTrigger_1ui6y_gg_.__selected_1ui6y_gg_{border-color:var(--intergalactic-border-info-active, #006dca);background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-primary, #191b23)}@media (hover:hover){.___SFilterTrigger_1ui6y_gg_.__selected_1ui6y_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SFilterTrigger_1ui6y_gg_.__selected_1ui6y_gg_.__active_1ui6y_gg_,.___SFilterTrigger_1ui6y_gg_.__selected_1ui6y_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SWrapper_1ui6y_gg_{display:inline-flex}.___SWrapper_1ui6y_gg_:focus{outline:0}.___SWrapper_1ui6y_gg_.__keyboardFocused_1ui6y_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SCounter_1ui6y_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8)}",
37
- "1ui6y_gg_"
35
+ ".___SFilterTrigger_1m3i1_gg_.__selected_1m3i1_gg_{border-color:var(--intergalactic-border-info-active, #006dca);background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-primary, #191b23)}@media (hover:hover){.___SFilterTrigger_1m3i1_gg_.__selected_1m3i1_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SFilterTrigger_1m3i1_gg_.__selected_1m3i1_gg_.__active_1m3i1_gg_,.___SFilterTrigger_1m3i1_gg_.__selected_1m3i1_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SWrapper_1m3i1_gg_{display:inline-flex}.___SWrapper_1m3i1_gg_:focus{outline:0}.___SCounter_1m3i1_gg_{background-color:var(--intergalactic-bg-primary-info, #008ff8)}",
36
+ "1m3i1_gg_"
38
37
  ), {
39
- __SWrapper: "___SWrapper_1ui6y_gg_",
40
- _keyboardFocused: "__keyboardFocused_1ui6y_gg_",
41
- __SCounter: "___SCounter_1ui6y_gg_",
42
- __SFilterTrigger: "___SFilterTrigger_1ui6y_gg_",
43
- _selected: "__selected_1ui6y_gg_",
44
- _active: "__active_1ui6y_gg_"
38
+ __SCounter: "___SCounter_1m3i1_gg_",
39
+ __SFilterTrigger: "___SFilterTrigger_1m3i1_gg_",
40
+ _selected: "__selected_1m3i1_gg_",
41
+ _active: "__active_1m3i1_gg_",
42
+ __SWrapper: "___SWrapper_1m3i1_gg_"
45
43
  })
46
- ), ae = [].concat($(X), ["aria-controls", "aria-haspopup", "aria-expanded", "aria-disabled", "aria-activedescendant", "aria-label", "aria-labelledby", "role"]), v = /* @__PURE__ */ function(s) {
44
+ ), te = [].concat(D(U), ["aria-controls", "aria-haspopup", "aria-expanded", "aria-disabled", "aria-activedescendant", "aria-label", "aria-labelledby", "role"]), y = /* @__PURE__ */ function(s) {
47
45
  x(a, s);
48
- var d = E(a);
46
+ var m = E(a);
49
47
  function a() {
50
48
  var n;
51
49
  C(this, a);
52
50
  for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
53
51
  t[o] = arguments[o];
54
- return n = d.call.apply(d, [this].concat(t)), u(A(n), "handleStopPropagation", function(r) {
52
+ return n = m.call.apply(m, [this].concat(t)), p(R(n), "handleStopPropagation", function(r) {
55
53
  return r.stopPropagation();
56
- }), u(A(n), "handleClear", function() {
54
+ }), p(R(n), "handleClear", function() {
57
55
  requestAnimationFrame(function() {
58
- Z(n.asProps.triggerRef.current);
56
+ Y(n.asProps.triggerRef.current);
59
57
  });
60
58
  }), n;
61
59
  }
62
60
  return S(a, [{
63
61
  key: "getTriggerButtonProps",
64
62
  value: function() {
65
- var e = this.asProps, t = e.empty, o = e.size, r = e.placeholder, l = e.active, g = e.disabled, c = e.includeInputProps, _ = e.triggerRef;
63
+ var e = this.asProps, t = e.empty, o = e.size, r = e.placeholder, l = e.active, c = e.disabled, g = e.includeInputProps, u = e.triggerRef;
66
64
  e["data-ui-name"];
67
- var m = w(e, te), P = U(m, c), z = W(P, 1), N = z[0];
68
- return y({
65
+ var _ = w(e, re), P = Q(_, g), k = W(P, 1), N = k[0];
66
+ return v({
69
67
  size: o,
70
68
  placeholder: r,
71
69
  empty: t,
72
70
  selected: !t,
73
71
  active: l,
74
- disabled: g,
75
- triggerRef: _
72
+ disabled: c,
73
+ triggerRef: u
76
74
  }, N);
77
75
  }
78
76
  }, {
79
77
  key: "getClearButtonProps",
80
78
  value: function() {
81
- var e = this.asProps, t = e.empty, o = e.onClear, r = e.size, l = e.disabled, g = e.getI18nText;
79
+ var e = this.asProps, t = e.empty, o = e.onClear, r = e.size, l = e.disabled, c = e.getI18nText;
82
80
  return {
83
81
  size: r,
84
82
  empty: t,
85
- onClick: K(o, this.handleClear, this.handleStopPropagation),
83
+ onClick: L(o, this.handleClear, this.handleStopPropagation),
86
84
  onKeyDown: this.handleStopPropagation,
87
85
  disabled: l,
88
- getI18nText: g
86
+ getI18nText: c
89
87
  };
90
88
  }
91
89
  }, {
@@ -99,9 +97,9 @@ var te = ["empty", "size", "placeholder", "active", "disabled", "includeInputPro
99
97
  }, {
100
98
  key: "render",
101
99
  value: function() {
102
- var e = this.asProps, t, o = H, r = this.asProps, l = r.Children, g = r.styles, c = r.getI18nText, _ = r.empty, m = r.forcedAdvancedMode, P = m || ee(l, [p.TriggerButton.displayName, p.ClearButton.displayName], !0);
103
- return t = h(g), /* @__PURE__ */ i.createElement(o, t.cn("SWrapper", y({}, b({
104
- "aria-label": c("filter"),
100
+ var e = this.asProps, t, o = $, r = this.asProps, l = r.Children, c = r.styles, g = r.getI18nText, u = r.empty, _ = r.forcedAdvancedMode, P = _ || Z(l, [d.TriggerButton.displayName, d.ClearButton.displayName], !0);
101
+ return t = h(c), /* @__PURE__ */ i.createElement(o, t.cn("SWrapper", v({}, b({
102
+ "aria-label": g("filter"),
105
103
  __excludeProps: ["id"],
106
104
  "use:role": void 0,
107
105
  "use:aria-controls": void 0,
@@ -112,25 +110,25 @@ var te = ["empty", "size", "placeholder", "active", "disabled", "includeInputPro
112
110
  "use:aria-activedescendant": void 0,
113
111
  "use:aria-label": void 0,
114
112
  "use:aria-labelledby": void 0
115
- }, e))), /* @__PURE__ */ i.createElement(O, t.cn("NeighborLocation", {}), P ? /* @__PURE__ */ i.createElement(l, t.cn("Children", {})) : /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(p.TriggerButton, null, /* @__PURE__ */ i.createElement(l, t.cn("Children", {}))), !_ && /* @__PURE__ */ i.createElement(p.ClearButton, null))));
113
+ }, e))), /* @__PURE__ */ i.createElement(H, t.cn("NeighborLocation", {}), P ? /* @__PURE__ */ i.createElement(l, t.cn("Children", {})) : /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(d.TriggerButton, null, /* @__PURE__ */ i.createElement(l, t.cn("Children", {}))), !u && /* @__PURE__ */ i.createElement(d.ClearButton, null))));
116
114
  }
117
115
  }]), a;
118
- }(F);
119
- u(v, "displayName", "FilterTrigger");
120
- u(v, "style", I);
121
- u(v, "enhance", [G(R), Q({
116
+ }(I);
117
+ p(y, "displayName", "FilterTrigger");
118
+ p(y, "style", F);
119
+ p(y, "enhance", [V(z), J({
122
120
  variable: "--intergalactic-duration-control",
123
121
  fallback: "200",
124
122
  map: Number.parseInt,
125
123
  prop: "duration"
126
- }), J({
124
+ }), G({
127
125
  animateProps: ["width"],
128
126
  onChangeOf: ["value"]
129
- }), Y()]);
130
- u(v, "defaultProps", function() {
127
+ }), X()]);
128
+ p(y, "defaultProps", function() {
131
129
  return {
132
- includeInputProps: ae,
133
- i18n: R,
130
+ includeInputProps: te,
131
+ i18n: z,
134
132
  locale: "en",
135
133
  triggerRef: /* @__PURE__ */ i.createRef(),
136
134
  role: "group"
@@ -138,68 +136,68 @@ u(v, "defaultProps", function() {
138
136
  });
139
137
  var B = /* @__PURE__ */ function(s) {
140
138
  x(a, s);
141
- var d = E(a);
139
+ var m = E(a);
142
140
  function a() {
143
- return C(this, a), d.apply(this, arguments);
141
+ return C(this, a), m.apply(this, arguments);
144
142
  }
145
143
  return S(a, [{
146
144
  key: "render",
147
145
  value: function() {
148
- var e = this.asProps, t, o = f, r = this.asProps, l = r.Children, g = r.styles, c = r.empty, _ = r.triggerRef;
149
- return t = h(g), /* @__PURE__ */ i.createElement(o, t.cn("SFilterTrigger", y({}, b({
146
+ var e = this.asProps, t, o = f, r = this.asProps, l = r.Children, c = r.styles, g = r.empty, u = r.triggerRef;
147
+ return t = h(c), /* @__PURE__ */ i.createElement(o, t.cn("SFilterTrigger", v({}, b({
150
148
  "use:role": "combobox",
151
149
  w: "100%",
152
- empty: c,
153
- selected: !c,
154
- ref: _,
150
+ empty: g,
151
+ selected: !g,
152
+ ref: u,
155
153
  animationsDisabled: !0
156
- }, e))), V(l, p.Text, [p.Addon, p.Counter], c), c && /* @__PURE__ */ i.createElement(p.Addon, {
157
- tag: L
154
+ }, e))), K(l, d.Text, [d.Addon, d.Counter], g), g && /* @__PURE__ */ i.createElement(d.Addon, {
155
+ tag: q
158
156
  }));
159
157
  }
160
158
  }]), a;
161
- }(F);
162
- u(B, "displayName", "TriggerButton");
163
- u(B, "style", I);
164
- var k = /* @__PURE__ */ function(s) {
159
+ }(I);
160
+ p(B, "displayName", "TriggerButton");
161
+ p(B, "style", F);
162
+ var A = /* @__PURE__ */ function(s) {
165
163
  x(a, s);
166
- var d = E(a);
164
+ var m = E(a);
167
165
  function a() {
168
- return C(this, a), d.apply(this, arguments);
166
+ return C(this, a), m.apply(this, arguments);
169
167
  }
170
168
  return S(a, [{
171
169
  key: "render",
172
170
  value: function() {
173
- var e = this.asProps, t, o = f, r = this.asProps, l = r.styles, g = r.empty, c = r.size, _ = r.disabled, m = r.getI18nText;
174
- return g ? null : (t = h(l), /* @__PURE__ */ i.createElement(T, t.cn("Hint", {}), /* @__PURE__ */ i.createElement(T.Trigger, null, /* @__PURE__ */ i.createElement(o, t.cn("SFilterTrigger", y({}, b({
175
- size: c,
176
- empty: g,
171
+ var e = this.asProps, t, o = f, r = this.asProps, l = r.styles, c = r.empty, g = r.size, u = r.disabled, _ = r.getI18nText;
172
+ return c ? null : (t = h(l), /* @__PURE__ */ i.createElement(T, t.cn("Hint", {}), /* @__PURE__ */ i.createElement(T.Trigger, null, /* @__PURE__ */ i.createElement(o, t.cn("SFilterTrigger", v({}, b({
173
+ size: g,
174
+ empty: c,
177
175
  selected: !0,
178
- disabled: _,
179
- "aria-label": m("clear")
180
- }, e))), /* @__PURE__ */ i.createElement(p.Addon, {
181
- tag: q
182
- }))), /* @__PURE__ */ i.createElement(T.Popper, null, m("clear"))));
176
+ disabled: u,
177
+ "aria-label": _("clear")
178
+ }, e))), /* @__PURE__ */ i.createElement(d.Addon, {
179
+ tag: j
180
+ }))), /* @__PURE__ */ i.createElement(T.Popper, null, _("clear"))));
183
181
  }
184
182
  }]), a;
185
- }(F);
186
- u(k, "displayName", "ClearButton");
187
- u(k, "style", I);
188
- function ie(s) {
189
- var d = arguments[0], a, n = s.styles, e = s.Children, t = s.count, o = s.getI18nText, r = f.Addon;
190
- return a = h(n), /* @__PURE__ */ i.createElement(r, a.cn("SCounter", y({}, b({
191
- tag: j
192
- }, d))), t !== void 0 ? /* @__PURE__ */ i.createElement(i.Fragment, null, t, /* @__PURE__ */ i.createElement(re, a.cn("ScreenReaderOnly", {}), o("BaseTrigger.FilterTrigger.Counter.selected:aria-label"))) : /* @__PURE__ */ i.createElement(e, a.cn("Children", {})));
183
+ }(I);
184
+ p(A, "displayName", "ClearButton");
185
+ p(A, "style", F);
186
+ function ae(s) {
187
+ var m = arguments[0], a, n = s.styles, e = s.Children, t = s.count, o = s.getI18nText, r = f.Addon;
188
+ return a = h(n), /* @__PURE__ */ i.createElement(r, a.cn("SCounter", v({}, b({
189
+ tag: O
190
+ }, m))), t !== void 0 ? /* @__PURE__ */ i.createElement(i.Fragment, null, t, /* @__PURE__ */ i.createElement(ee, a.cn("ScreenReaderOnly", {}), o("BaseTrigger.FilterTrigger.Counter.selected:aria-label"))) : /* @__PURE__ */ i.createElement(e, a.cn("Children", {})));
193
191
  }
194
- var p = M(v, {
192
+ var d = M(y, {
195
193
  Text: f.Text,
196
194
  Addon: f.Addon,
197
- Counter: ie,
195
+ Counter: ae,
198
196
  TriggerButton: B,
199
- ClearButton: k
197
+ ClearButton: A
200
198
  }, {
201
199
  parent: f
202
200
  });
203
201
  export {
204
- p as default
202
+ d as default
205
203
  };
@@ -1,88 +1,86 @@
1
- import h from "@babel/runtime/helpers/esm/objectSpread2";
2
- import b from "@babel/runtime/helpers/esm/classCallCheck";
1
+ import m from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import y from "@babel/runtime/helpers/esm/classCallCheck";
3
3
  import L from "@babel/runtime/helpers/esm/createClass";
4
- import A from "@babel/runtime/helpers/esm/inherits";
5
- import C from "@babel/runtime/helpers/esm/createSuper";
6
- import l from "@babel/runtime/helpers/esm/defineProperty";
7
- import { sstyled as w } from "@semcore/utils/lib/core/index";
8
- import z, { sstyled as y, assignProps as p, Component as P } from "@semcore/core";
4
+ import b from "@babel/runtime/helpers/esm/inherits";
5
+ import A from "@babel/runtime/helpers/esm/createSuper";
6
+ import c from "@babel/runtime/helpers/esm/defineProperty";
7
+ import { sstyled as s, createComponent as C, assignProps as v, Component as z } from "@semcore/core";
9
8
  import t from "react";
10
- import E from "@semcore/utils/lib/addonTextChildren";
11
- import F from "@semcore/icon/ChevronDown/m";
9
+ import P from "@semcore/core/lib/utils/addonTextChildren";
10
+ import E from "@semcore/icon/ChevronDown/m";
12
11
  import R from "@semcore/spin";
13
- import { Box as m } from "@semcore/flex-box";
14
- import $ from "@semcore/utils/lib/enhances/resolveColorEnhance";
15
- import j from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
12
+ import { Box as h } from "@semcore/flex-box";
13
+ import j from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
16
14
  var D = (
17
15
  /*__reshadow_css_start__*/
18
- (w.insert(
16
+ (s.insert(
19
17
  /*__inner_css_start__*/
20
- ".___SLinkTrigger_nhd0y_gg_{display:inline-flex;align-items:center;line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;outline:0;vertical-align:middle;cursor:pointer;color:var(--intergalactic-text-link, #006dca);background:0 0;transition:color .15s ease-in-out;border:0}.___SLinkTrigger_nhd0y_gg_:focus{outline:0}.___SLinkTrigger_nhd0y_gg_.__active_nhd0y_gg_,.___SLinkTrigger_nhd0y_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLinkTrigger_nhd0y_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLinkTrigger_nhd0y_gg_.__active_nhd0y_gg_ .___SText_nhd0y_gg_,.___SLinkTrigger_nhd0y_gg_:active .___SText_nhd0y_gg_{border-color:currentColor}@media (hover:hover){.___SLinkTrigger_nhd0y_gg_:hover .___SText_nhd0y_gg_{border-color:currentColor}}.___SLinkTrigger_nhd0y_gg_ .___SText_nhd0y_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out;text-overflow:ellipsis;overflow:hidden}.___SLinkTrigger_nhd0y_gg_.__color_nhd0y_gg_{color:var(--color_nhd0y)}@media (hover:hover){.___SLinkTrigger_nhd0y_gg_.__color_nhd0y_gg_:hover{filter:brightness(.8)}}.___SLinkTrigger_nhd0y_gg_.__disabled_nhd0y_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SLinkTrigger_nhd0y_gg_.__keyboardFocused_nhd0y_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SAddon_nhd0y_gg_,.___SLinkAddon_nhd0y_gg_{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SAddon_nhd0y_gg_:not(:only-child):first-child,.___SLinkAddon_nhd0y_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_nhd0y_gg_:not(:only-child):last-child,.___SLinkAddon_nhd0y_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SLinkAddon_nhd0y_gg_{width:16px;height:16px}.___SLinkTrigger_nhd0y_gg_._size_m_nhd0y_gg_{font-size:var(--intergalactic-fs-200, 14px)}.___SLinkTrigger_nhd0y_gg_._size_l_nhd0y_gg_{font-size:var(--intergalactic-fs-300, 16px)}@media (prefers-reduced-motion){.___SLinkTrigger_nhd0y_gg_,.___SLinkTrigger_nhd0y_gg_ .___SText_nhd0y_gg_{transition:none}}",
21
- "nhd0y_gg_"
18
+ ".___SLinkTrigger_lwral_gg_{display:inline-flex;align-items:center;line-height:normal;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;-webkit-text-decoration:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;outline:0;vertical-align:middle;cursor:pointer;color:var(--intergalactic-text-link, #006dca);background:0 0;transition:color .15s ease-in-out;border:0}.___SLinkTrigger_lwral_gg_.__active_lwral_gg_,.___SLinkTrigger_lwral_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLinkTrigger_lwral_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLinkTrigger_lwral_gg_.__active_lwral_gg_ .___SText_lwral_gg_,.___SLinkTrigger_lwral_gg_:active .___SText_lwral_gg_{border-color:currentColor}@media (hover:hover){.___SLinkTrigger_lwral_gg_:hover .___SText_lwral_gg_{border-color:currentColor}}.___SLinkTrigger_lwral_gg_ .___SText_lwral_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out;text-overflow:ellipsis;overflow:hidden}.___SLinkTrigger_lwral_gg_.__color_lwral_gg_{color:var(--color_lwral)}@media (hover:hover){.___SLinkTrigger_lwral_gg_.__color_lwral_gg_:hover{filter:brightness(.8)}}.___SLinkTrigger_lwral_gg_.__disabled_lwral_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SAddon_lwral_gg_,.___SLinkAddon_lwral_gg_{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:var(--intergalactic-spacing-05x, 2px)}.___SAddon_lwral_gg_:not(:only-child):first-child,.___SLinkAddon_lwral_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SAddon_lwral_gg_:not(:only-child):last-child,.___SLinkAddon_lwral_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SLinkAddon_lwral_gg_{width:16px;height:16px}.___SLinkTrigger_lwral_gg_._size_m_lwral_gg_{font-size:var(--intergalactic-fs-200, 14px)}.___SLinkTrigger_lwral_gg_._size_l_lwral_gg_{font-size:var(--intergalactic-fs-300, 16px)}@media (prefers-reduced-motion){.___SLinkTrigger_lwral_gg_,.___SLinkTrigger_lwral_gg_ .___SText_lwral_gg_{transition:none}}",
19
+ "lwral_gg_"
22
20
  ), {
23
- __SLinkTrigger: "___SLinkTrigger_nhd0y_gg_",
24
- _disabled: "__disabled_nhd0y_gg_",
25
- _keyboardFocused: "__keyboardFocused_nhd0y_gg_",
26
- __SLinkAddon: "___SLinkAddon_nhd0y_gg_",
27
- _size_m: "_size_m_nhd0y_gg_",
28
- _size_l: "_size_l_nhd0y_gg_",
29
- _active: "__active_nhd0y_gg_",
30
- __SText: "___SText_nhd0y_gg_",
31
- _color: "__color_nhd0y_gg_",
32
- "--color": "--color_nhd0y",
33
- __SAddon: "___SAddon_nhd0y_gg_"
21
+ __SLinkTrigger: "___SLinkTrigger_lwral_gg_",
22
+ _disabled: "__disabled_lwral_gg_",
23
+ __SLinkAddon: "___SLinkAddon_lwral_gg_",
24
+ _size_m: "_size_m_lwral_gg_",
25
+ _size_l: "_size_l_lwral_gg_",
26
+ _active: "__active_lwral_gg_",
27
+ __SText: "___SText_lwral_gg_",
28
+ _color: "__color_lwral_gg_",
29
+ "--color": "--color_lwral",
30
+ __SAddon: "___SAddon_lwral_gg_"
34
31
  })
35
- ), a = /* @__PURE__ */ function(r) {
36
- A(e, r);
37
- var g = C(e);
38
- function e() {
39
- return b(this, e), g.apply(this, arguments);
32
+ ), g = /* @__PURE__ */ function(_) {
33
+ b(r, _);
34
+ var n = A(r);
35
+ function r() {
36
+ return y(this, r), n.apply(this, arguments);
40
37
  }
41
- return L(e, [{
38
+ return L(r, [{
42
39
  key: "getTextProps",
43
40
  value: function() {
44
- var n = this.asProps, _ = n.placeholder, o = n.empty;
41
+ var l = this.asProps, e = l.placeholder, i = l.empty;
45
42
  return {
46
- placeholder: _,
47
- empty: o
43
+ placeholder: e,
44
+ empty: i
48
45
  };
49
46
  }
50
47
  }, {
51
48
  key: "render",
52
49
  value: function() {
53
- var n = this.asProps, _, o = m, c = s.Addon, i = this.asProps, v = i.Children, f = i.loading, k = i.styles, S = i.empty, u = i.color, x = i.resolveColor, T = x(u);
54
- return _ = y(k), /* @__PURE__ */ t.createElement(o, _.cn("SLinkTrigger", h({}, p({
50
+ var l = this.asProps, e, i = h, d = p.Addon, o = this.asProps, w = o.Children, S = o.loading, f = o.styles, k = o.empty, u = o.color, x = o.resolveColor, T = x(u);
51
+ return e = s(f), /* @__PURE__ */ t.createElement(i, e.cn("SLinkTrigger", m({}, v({
55
52
  tag: "button",
56
53
  type: "button",
54
+ tabIndex: 0,
57
55
  "use:color": T
58
- }, n))), E(v, s.Text, s.Addon, S), /* @__PURE__ */ t.createElement(c, _.cn("SLinkAddon", {}), f ? /* @__PURE__ */ t.createElement(R, _.cn("Spin", {
56
+ }, l))), P(w, p.Text, p.Addon, k), /* @__PURE__ */ t.createElement(d, e.cn("SLinkAddon", {}), S ? /* @__PURE__ */ t.createElement(R, e.cn("Spin", {
59
57
  size: "xs",
60
58
  theme: "currentColor"
61
- })) : /* @__PURE__ */ t.createElement(F, _.cn("ChevronDown", {}))));
59
+ })) : /* @__PURE__ */ t.createElement(E, e.cn("ChevronDown", {}))));
62
60
  }
63
- }]), e;
64
- }(P);
65
- l(a, "displayName", "LinkTrigger");
66
- l(a, "style", D);
67
- l(a, "defaultProps", {
61
+ }]), r;
62
+ }(z);
63
+ c(g, "displayName", "LinkTrigger");
64
+ c(g, "style", D);
65
+ c(g, "defaultProps", {
68
66
  size: "m"
69
67
  });
70
- l(a, "enhance", [j(), $()]);
71
- function B(r) {
72
- var g = arguments[0], e, d = m, n = r.children, _ = r.styles, o = r.empty, c = r.placeholder;
73
- return e = y(_), /* "use:" prefix was used for backward compatibility (by lsroman) */
74
- /* @__PURE__ */ t.createElement(d, e.cn("SText", h({}, p({
75
- "display-placeholder": o
76
- }, g))), o ? c : n);
68
+ c(g, "enhance", [j()]);
69
+ function $(_) {
70
+ var n = arguments[0], r, a = h, l = _.children, e = _.styles, i = _.empty, d = _.placeholder;
71
+ return r = s(e), /* "use:" prefix was used for backward compatibility (by lsroman) */
72
+ /* @__PURE__ */ t.createElement(a, r.cn("SText", m({}, v({
73
+ "display-placeholder": i
74
+ }, n))), i ? d : l);
77
75
  }
78
- function N(r) {
79
- var g = arguments[0], e, d = m;
80
- return e = y(r.styles), /* @__PURE__ */ t.createElement(d, e.cn("SAddon", h({}, p({}, g))));
76
+ function B(_) {
77
+ var n = arguments[0], r, a = h;
78
+ return r = s(_.styles), /* @__PURE__ */ t.createElement(a, r.cn("SAddon", m({}, v({}, n))));
81
79
  }
82
- var s = z(a, {
83
- Text: B,
84
- Addon: N
80
+ var p = C(g, {
81
+ Text: $,
82
+ Addon: B
85
83
  });
86
84
  export {
87
- s as default
85
+ p as default
88
86
  };
@@ -3,8 +3,8 @@ import { UnknownProperties, Intergalactic, Root } from '@semcore/core';
3
3
  import { Box, BoxProps } from '@semcore/flex-box';
4
4
  import { DotProps } from '@semcore/dot';
5
5
  import { NeighborItemProps } from '@semcore/neighbor-location';
6
- import { KeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
7
- import { WithAnimatedSizeEnhanceProps } from '@semcore/utils/lib/enhances/animatedSizeEnhance';
6
+ import { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';
7
+ import { WithAnimatedSizeEnhanceProps } from '@semcore/core/lib/utils/enhances/animatedSizeEnhance';
8
8
 
9
9
  /** @deprecated */
10
10
  export interface IBaseTriggerProps extends BaseTriggerProps, UnknownProperties {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/base-trigger",
3
3
  "description": "Semrush BaseTrigger Component",
4
- "version": "4.52.1",
4
+ "version": "16.0.0-prerelease.4",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,18 +14,15 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/dot": "5.40.1",
18
- "@semcore/flex-box": "5.41.1",
19
- "@semcore/icon": "4.60.1",
20
- "@semcore/neighbor-location": "4.40.1",
21
- "@semcore/spin": "5.41.1",
22
- "@semcore/utils": "4.48.1",
23
- "@semcore/tooltip": "6.49.1"
17
+ "@semcore/dot": "16.0.0-prerelease.4",
18
+ "@semcore/icon": "16.0.0-prerelease.4",
19
+ "@semcore/spin": "16.0.0-prerelease.4",
20
+ "@semcore/flex-box": "16.0.0-prerelease.4",
21
+ "@semcore/neighbor-location": "16.0.0-prerelease.4",
22
+ "@semcore/tooltip": "16.0.0-prerelease.4"
24
23
  },
25
24
  "peerDependencies": {
26
- "@semcore/core": "^2.17.5",
27
- "react": "16.8 - 18",
28
- "react-dom": "16.8 - 18"
25
+ "@semcore/base-components": "^16.0.0-prerelease.4"
29
26
  },
30
27
  "repository": {
31
28
  "type": "git",