@epam/ai-dial-ui-kit 0.10.0-dev.32 → 0.10.0-dev.34
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/dist/dial-ui-kit.es.js
CHANGED
|
@@ -48710,7 +48710,7 @@ function YN(e, t) {
|
|
|
48710
48710
|
};
|
|
48711
48711
|
}
|
|
48712
48712
|
var Rs = /* @__PURE__ */ ((e) => (e.Undefined = "undefined", e.Mobile = "mobile", e.Tablet = "tablet", e.Desktop = "desktop", e))(Rs || {});
|
|
48713
|
-
const Km = () => typeof window < "u" && window.innerWidth <
|
|
48713
|
+
const Km = () => typeof window < "u" && window.innerWidth < 1279, Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
|
|
48714
48714
|
if (typeof window > "u") return Rs.Undefined;
|
|
48715
48715
|
const e = window.innerWidth;
|
|
48716
48716
|
return e >= 1024 ? Rs.Desktop : e < 640 ? Rs.Mobile : Rs.Tablet;
|
|
@@ -57113,7 +57113,7 @@ function hB({
|
|
|
57113
57113
|
containerPadding: n = 8,
|
|
57114
57114
|
dependencies: o = []
|
|
57115
57115
|
}) {
|
|
57116
|
-
const r = G(null), a = G(null), l = G(null), c = G(null), d = G([]), [u, h] = M(
|
|
57116
|
+
const r = G(null), a = G(null), l = G(null), c = G(null), d = G([]), [u, h] = M(0), p = D(
|
|
57117
57117
|
(v, C) => {
|
|
57118
57118
|
const w = l.current?.offsetWidth ?? 0, b = c.current?.offsetWidth ?? 0, x = w + b, R = C.getBoundingClientRect().width - x - i - s * 2 - n * 2;
|
|
57119
57119
|
let S = 0, F = 0;
|
|
@@ -2,10 +2,10 @@ import { ScreenType } from '../types/screen';
|
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the current viewport width is within the "medium" (tablet) screen range.
|
|
4
4
|
*
|
|
5
|
-
* Specifically, it returns `true` if the window width is less than
|
|
5
|
+
* Specifically, it returns `true` if the window width is less than 1280 pixels.
|
|
6
6
|
* Safely handles server-side rendering by verifying that `window` is defined.
|
|
7
7
|
*
|
|
8
|
-
* @returns {boolean} `true` if the viewport width is less than
|
|
8
|
+
* @returns {boolean} `true` if the viewport width is less than 1279px, otherwise `false`.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* if (isMediumScreen()) {
|