@jenesei-software/jenesei-kit-react 1.3.20 → 1.3.21
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/build/{area-DAgP6K9K.cjs → area-BG04bpxi.cjs} +2 -2
- package/build/{area-DAgP6K9K.cjs.map → area-BG04bpxi.cjs.map} +1 -1
- package/build/{area-CD8KKIM0.js → area-D4BoNEmX.js} +2 -2
- package/build/{area-CD8KKIM0.js.map → area-D4BoNEmX.js.map} +1 -1
- package/build/{area-BLgNLu9A.js → area-occQcGnD.js} +2 -2
- package/build/{area-BLgNLu9A.js.map → area-occQcGnD.js.map} +1 -1
- package/build/area-outside.cjs.js +1 -1
- package/build/area-outside.es.js +1 -1
- package/build/{area-Dup_lUb9.cjs → area-pCo19R2g.cjs} +2 -2
- package/build/{area-Dup_lUb9.cjs.map → area-pCo19R2g.cjs.map} +1 -1
- package/build/area-preview.cjs.js +1 -1
- package/build/area-preview.es.js +1 -1
- package/build/area-scroll.cjs.js +1 -1
- package/build/area-scroll.es.js +2 -2
- package/build/area-skeleton.cjs.js +1 -1
- package/build/area-skeleton.d.ts +6 -1
- package/build/area-skeleton.es.js +2 -3
- package/build/area-skeleton.es.js.map +1 -1
- package/build/area-smooth.cjs.js +1 -1
- package/build/area-smooth.es.js +1 -1
- package/build/{area.styles-DWqSyo49.js → area.styles-BSqCfPE4.js} +2 -2
- package/build/{area.styles-DWqSyo49.js.map → area.styles-BSqCfPE4.js.map} +1 -1
- package/build/area.styles-BuceLNra.cjs +27 -0
- package/build/{area.styles-DQBIvHdz.cjs.map → area.styles-BuceLNra.cjs.map} +1 -1
- package/build/build-info.txt +3 -3
- package/build/{component-GKvpOWlO.cjs → component-5Utdcc2G.cjs} +7 -7
- package/build/{component-GKvpOWlO.cjs.map → component-5Utdcc2G.cjs.map} +1 -1
- package/build/{component-BtgXUCiJ.js → component-B--Ljzf8.js} +2 -2
- package/build/{component-BtgXUCiJ.js.map → component-B--Ljzf8.js.map} +1 -1
- package/build/{component-BLa80fGE.cjs → component-Bq9jd15r.cjs} +2 -2
- package/build/{component-BLa80fGE.cjs.map → component-Bq9jd15r.cjs.map} +1 -1
- package/build/{component-DDVjxLvn.js → component-C3BrgaVs.js} +3 -3
- package/build/{component-DDVjxLvn.js.map → component-C3BrgaVs.js.map} +1 -1
- package/build/{component-CHmCK6Bc.js → component-C7SV3z2B.js} +2 -2
- package/build/{component-CHmCK6Bc.js.map → component-C7SV3z2B.js.map} +1 -1
- package/build/{component-BX7rFpno.js → component-C9TJVTRc.js} +7 -8
- package/build/{component-BX7rFpno.js.map → component-C9TJVTRc.js.map} +1 -1
- package/build/{component-6hRanOkU.cjs → component-CLqcB5mM.cjs} +2 -2
- package/build/{component-6hRanOkU.cjs.map → component-CLqcB5mM.cjs.map} +1 -1
- package/build/{component-DQrnK2Bj.js → component-CS7C3l76.js} +3 -3
- package/build/{component-DQrnK2Bj.js.map → component-CS7C3l76.js.map} +1 -1
- package/build/{component-DpVp9dB1.js → component-CUiqQLEQ.js} +2 -2
- package/build/{component-DpVp9dB1.js.map → component-CUiqQLEQ.js.map} +1 -1
- package/build/{component-DyEa0lzB.js → component-CWIsglCv.js} +3 -3
- package/build/{component-DyEa0lzB.js.map → component-CWIsglCv.js.map} +1 -1
- package/build/component-CZPL9hGj.cjs +2 -0
- package/build/{component-IlhRGJHX.cjs.map → component-CZPL9hGj.cjs.map} +1 -1
- package/build/{component-8NOxwZJO.cjs → component-Cc8X-Z80.cjs} +2 -2
- package/build/{component-8NOxwZJO.cjs.map → component-Cc8X-Z80.cjs.map} +1 -1
- package/build/{component-DerXrx9p.js → component-CeZFnxeP.js} +2 -2
- package/build/{component-DerXrx9p.js.map → component-CeZFnxeP.js.map} +1 -1
- package/build/{component-DhCe6E21.js → component-CqQpLjWf.js} +2 -2
- package/build/{component-DhCe6E21.js.map → component-CqQpLjWf.js.map} +1 -1
- package/build/{component-DF8wYX_U.js → component-DAMiuCOk.js} +3 -3
- package/build/{component-DF8wYX_U.js.map → component-DAMiuCOk.js.map} +1 -1
- package/build/{component-DdSHuopV.cjs → component-DBZIl6Pf.cjs} +2 -2
- package/build/{component-DdSHuopV.cjs.map → component-DBZIl6Pf.cjs.map} +1 -1
- package/build/{component-D9Fz-_ZH.cjs → component-DC6wk9OC.cjs} +2 -2
- package/build/{component-D9Fz-_ZH.cjs.map → component-DC6wk9OC.cjs.map} +1 -1
- package/build/{component-mzzOCXSx.js → component-DEZX8aBs.js} +2 -2
- package/build/{component-mzzOCXSx.js.map → component-DEZX8aBs.js.map} +1 -1
- package/build/{component-C-yqkm2n.cjs → component-DgtdqEgO.cjs} +2 -2
- package/build/{component-C-yqkm2n.cjs.map → component-DgtdqEgO.cjs.map} +1 -1
- package/build/{component-DXSNBORy.cjs → component-Dt1QKoQc.cjs} +2 -2
- package/build/{component-DXSNBORy.cjs.map → component-Dt1QKoQc.cjs.map} +1 -1
- package/build/component-DvuH4WLo.cjs +2 -0
- package/build/{component-KwYlKatx.cjs.map → component-DvuH4WLo.cjs.map} +1 -1
- package/build/{component-C56biWpi.js → component-HpOulBAQ.js} +3 -5
- package/build/{component-C56biWpi.js.map → component-HpOulBAQ.js.map} +1 -1
- package/build/{component-Cr62wN62.js → component-O7HvTkOa.js} +2 -2
- package/build/{component-Cr62wN62.js.map → component-O7HvTkOa.js.map} +1 -1
- package/build/{component-BLW4AlTi.cjs → component-PvY4ZuKa.cjs} +2 -2
- package/build/{component-BLW4AlTi.cjs.map → component-PvY4ZuKa.cjs.map} +1 -1
- package/build/{component-Ds6eJznV.cjs → component-SobV8wHk.cjs} +2 -2
- package/build/{component-Ds6eJznV.cjs.map → component-SobV8wHk.cjs.map} +1 -1
- package/build/{component-GqA6sCHI.cjs → component-VZLVznEM.cjs} +2 -2
- package/build/{component-GqA6sCHI.cjs.map → component-VZLVznEM.cjs.map} +1 -1
- package/build/component-accordion.cjs.js +1 -1
- package/build/component-accordion.d.ts +1 -1
- package/build/component-accordion.es.js +6 -6
- package/build/component-button-group.cjs.js +1 -1
- package/build/component-button-group.es.js +3 -3
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.es.js +3 -3
- package/build/component-checkbox-group.cjs.js +1 -1
- package/build/component-checkbox-group.es.js +8 -8
- package/build/component-checkbox.cjs.js +1 -1
- package/build/component-checkbox.es.js +5 -5
- package/build/component-date-picker.cjs.js +1 -1
- package/build/component-date-picker.es.js +13 -13
- package/build/component-icon.cjs.js +1 -1
- package/build/component-icon.d.ts +16 -3
- package/build/component-icon.es.js +6 -5
- package/build/component-image-button.cjs.js +1 -1
- package/build/component-image-button.es.js +1 -1
- package/build/component-image-select.cjs.js +1 -1
- package/build/component-image-select.es.js +8 -8
- package/build/component-image-slider.cjs.js +1 -1
- package/build/component-image-slider.es.js +4 -4
- package/build/component-image.cjs.js +1 -1
- package/build/component-image.es.js +3 -3
- package/build/component-input-otp.cjs.js +1 -1
- package/build/component-input-otp.es.js +5 -5
- package/build/component-input.cjs.js +1 -1
- package/build/component-input.es.js +15 -15
- package/build/{component-DP42Uzl2.cjs → component-iyi7lqrB.cjs} +2 -2
- package/build/{component-DP42Uzl2.cjs.map → component-iyi7lqrB.cjs.map} +1 -1
- package/build/component-map.cjs.js +1 -1
- package/build/component-map.es.js +8 -8
- package/build/component-pagination.cjs.js +1 -1
- package/build/component-pagination.es.js +1 -1
- package/build/component-range.cjs.js +1 -1
- package/build/component-range.es.js +5 -5
- package/build/component-ripple.cjs.js +1 -1
- package/build/component-select.cjs.js +1 -1
- package/build/component-select.d.ts +1 -1
- package/build/component-select.es.js +18 -18
- package/build/component-separator.cjs.js +1 -1
- package/build/component-stack.cjs.js +1 -1
- package/build/component-stack.es.js +1 -1
- package/build/component-textarea.cjs.js +1 -1
- package/build/component-textarea.es.js +5 -5
- package/build/component-toggle.cjs.js +1 -1
- package/build/component-toggle.es.js +4 -4
- package/build/component-tooltip.cjs.js +1 -1
- package/build/component-tooltip.es.js +9 -9
- package/build/component-typography.cjs.js +1 -1
- package/build/component-typography.es.js +6 -6
- package/build/{component.components-B6FC2-ox.cjs → component.components-Cck7T25y.cjs} +2 -2
- package/build/{component.components-B6FC2-ox.cjs.map → component.components-Cck7T25y.cjs.map} +1 -1
- package/build/{component.components-DlJ9rcRL.js → component.components-NP2aSgyb.js} +2 -2
- package/build/{component.components-DlJ9rcRL.js.map → component.components-NP2aSgyb.js.map} +1 -1
- package/build/{component.constants-B-ZUZwuJ.js → component.constants-3UuU_a__.js} +3 -3
- package/build/{component.constants-B-ZUZwuJ.js.map → component.constants-3UuU_a__.js.map} +1 -1
- package/build/{component.constants-DwSQ9oe4.js → component.constants-B0mODNks.js} +6 -7
- package/build/{component.constants-DwSQ9oe4.js.map → component.constants-B0mODNks.js.map} +1 -1
- package/build/{component.constants-DiCmqOri.cjs → component.constants-CoFHa30V.cjs} +2 -2
- package/build/{component.constants-DiCmqOri.cjs.map → component.constants-CoFHa30V.cjs.map} +1 -1
- package/build/component.constants-vNAPiC5p.cjs +2 -0
- package/build/{component.constants-hDTTnj7k.cjs.map → component.constants-vNAPiC5p.cjs.map} +1 -1
- package/build/{component.types-CYtUJDuN.cjs → component.types-BRZsYWlH.cjs} +2 -2
- package/build/{component.types-CYtUJDuN.cjs.map → component.types-BRZsYWlH.cjs.map} +1 -1
- package/build/{component.types-DFRLIpd6.js → component.types-Cysm3D4v.js} +3 -3
- package/build/{component.types-DFRLIpd6.js.map → component.types-Cysm3D4v.js.map} +1 -1
- package/build/consts.cjs.js +1 -1
- package/build/consts.es.js +1 -1
- package/build/context-app.cjs.js +1 -1
- package/build/context-app.es.js +17 -17
- package/build/context-dialog.cjs.js +1 -1
- package/build/context-dialog.es.js +2 -2
- package/build/context-sonner.cjs.js +1 -1
- package/build/context-sonner.es.js +18 -18
- package/build/{context.constants-C5Unln0I.js → context.constants-BVl2x1gR.js} +302 -179
- package/build/context.constants-BVl2x1gR.js.map +1 -0
- package/build/{context.constants-CRxCVRKK.cjs → context.constants-BgXWD3zz.cjs} +2 -2
- package/build/{context.constants-CRxCVRKK.cjs.map → context.constants-BgXWD3zz.cjs.map} +1 -1
- package/build/{context.constants-CaDW-QGJ.js → context.constants-D-s5XvZX.js} +2 -2
- package/build/{context.constants-CaDW-QGJ.js.map → context.constants-D-s5XvZX.js.map} +1 -1
- package/build/{context.constants-DSfxf3ST.cjs → context.constants-YhrMPIvq.cjs} +285 -227
- package/build/context.constants-YhrMPIvq.cjs.map +1 -0
- package/build/{context.hooks-BfmhHvrX.cjs → context.hooks-99wJ8TBG.cjs} +2 -2
- package/build/{context.hooks-BfmhHvrX.cjs.map → context.hooks-99wJ8TBG.cjs.map} +1 -1
- package/build/{context.hooks-ByjHt-DO.cjs → context.hooks-B16qxQQY.cjs} +2 -2
- package/build/{context.hooks-ByjHt-DO.cjs.map → context.hooks-B16qxQQY.cjs.map} +1 -1
- package/build/{context.hooks-CKO6mDS-.js → context.hooks-DjwMqRSt.js} +2 -2
- package/build/{context.hooks-CKO6mDS-.js.map → context.hooks-DjwMqRSt.js.map} +1 -1
- package/build/{context.hooks-PU-CST61.cjs → context.hooks-Dkb5yK8Z.cjs} +2 -2
- package/build/{context.hooks-PU-CST61.cjs.map → context.hooks-Dkb5yK8Z.cjs.map} +1 -1
- package/build/{context.hooks-B2vWSael.js → context.hooks-KS9z3sac.js} +2 -2
- package/build/{context.hooks-B2vWSael.js.map → context.hooks-KS9z3sac.js.map} +1 -1
- package/build/{context.hooks-Bj9FlQEC.js → context.hooks-fo2TeZoK.js} +2 -2
- package/build/{context.hooks-Bj9FlQEC.js.map → context.hooks-fo2TeZoK.js.map} +1 -1
- package/build/index.cjs.js +1 -1
- package/build/index.d.ts +19 -7
- package/build/index.es.js +188 -190
- package/build/index.es.js.map +1 -1
- package/build/style-error.cjs.js +1 -1
- package/build/style-error.es.js +4 -4
- package/build/style-theme.cjs.js +1 -1
- package/build/style-theme.es.js +13 -13
- package/build/{use-7TZR9yNq.js → use-BI2JJFUm.js} +6 -6
- package/build/{use-7TZR9yNq.js.map → use-BI2JJFUm.js.map} +1 -1
- package/build/{use-DNJlP5ji.cjs → use-CtF6jyms.cjs} +3 -3
- package/build/{use-DNJlP5ji.cjs.map → use-CtF6jyms.cjs.map} +1 -1
- package/package.json +1 -1
- package/build/area-C5QUBcb-.js +0 -26
- package/build/area-C5QUBcb-.js.map +0 -1
- package/build/area-k8GR7Khj.cjs +0 -2
- package/build/area-k8GR7Khj.cjs.map +0 -1
- package/build/area.styles-BJCDsTi3.js +0 -46
- package/build/area.styles-BJCDsTi3.js.map +0 -1
- package/build/area.styles-CtrTLcAj.cjs +0 -40
- package/build/area.styles-CtrTLcAj.cjs.map +0 -1
- package/build/area.styles-DQBIvHdz.cjs +0 -27
- package/build/component-IlhRGJHX.cjs +0 -2
- package/build/component-KwYlKatx.cjs +0 -2
- package/build/component.constants-hDTTnj7k.cjs +0 -2
- package/build/component.styles-CNn9SMc9.cjs +0 -10
- package/build/component.styles-CNn9SMc9.cjs.map +0 -1
- package/build/component.styles-eaocqYbA.js +0 -16
- package/build/component.styles-eaocqYbA.js.map +0 -1
- package/build/context.constants-C5Unln0I.js.map +0 -1
- package/build/context.constants-DSfxf3ST.cjs.map +0 -1
|
@@ -2,15 +2,14 @@ import { j as jsxRuntimeExports } from "./jsx-runtime-BrDlu8eK.js";
|
|
|
2
2
|
import { d as addRippleDefault } from "./component.styles-B0L4jbOO.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { useMemo, useState, useEffect, useRef, useLayoutEffect, useCallback, memo, createContext } from "react";
|
|
5
|
-
import styled, { useTheme, createGlobalStyle,
|
|
5
|
+
import styled, { useTheme, createGlobalStyle, keyframes, css, styled as styled$1 } from "styled-components";
|
|
6
6
|
import { f as addColorTransition, b as addTransition, g as addOutline, c as addFont, i as addAlwaysOutline, l as addDisabled, d as addTransitionWithoutSize, h as addOutlineChildren, j as addRemoveOutline, k as addNiceNumber, a as addRemoveScrollbar, e as addGridTransition } from "./style-RL73t3JD.js";
|
|
7
7
|
import { a as addSX } from "./style-plT9Ah7t.js";
|
|
8
8
|
import { getContrastYIQ } from "./functions.es.js";
|
|
9
|
-
import {
|
|
9
|
+
import { b as Stack, c as StackMotion } from "./component-DEZX8aBs.js";
|
|
10
10
|
import reset from "styled-reset";
|
|
11
11
|
import { AnimatePresence, motion } from "framer-motion";
|
|
12
|
-
import "./area.styles-
|
|
13
|
-
import "./area.styles-BJCDsTi3.js";
|
|
12
|
+
import "./area.styles-BSqCfPE4.js";
|
|
14
13
|
import { W as WordsPullUp } from "./motion-CIQfrLky.js";
|
|
15
14
|
import { u as useScreenWidth } from "./context.hooks-BmwyZ1p3.js";
|
|
16
15
|
import { u as useDeepCompareMemoize } from "./use-DT0XgvJT.js";
|
|
@@ -21,8 +20,7 @@ import { LIBRARY_VERSION, LIST_LANGUAGE, LIST_MAP_THEME } from "./consts.es.js";
|
|
|
21
20
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
22
21
|
import moment from "moment";
|
|
23
22
|
import { R as Ripple } from "./component-DHM9pbab.js";
|
|
24
|
-
import "./
|
|
25
|
-
import "./context.constants-CaDW-QGJ.js";
|
|
23
|
+
import "./context.constants-D-s5XvZX.js";
|
|
26
24
|
import { v4 } from "uuid";
|
|
27
25
|
import "react-leaflet";
|
|
28
26
|
import "leaflet.markercluster";
|
|
@@ -41,10 +39,20 @@ const Icon = (props) => {
|
|
|
41
39
|
[props.name, props.type, theme.icon.getIconId]
|
|
42
40
|
);
|
|
43
41
|
const spriteUrl = useMemo(() => theme.icon.getSpriteUrl({ type: props.type }), [props.type, theme.icon.getSpriteUrl]);
|
|
44
|
-
const loaded = useLazyInjectSprite(spriteUrl);
|
|
45
|
-
if (!loaded
|
|
42
|
+
const { loaded, error: error2 } = useLazyInjectSprite(spriteUrl);
|
|
43
|
+
if (!loaded || error2)
|
|
44
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
45
|
+
StyledIconSkeleton,
|
|
46
|
+
{
|
|
47
|
+
$size: props.size,
|
|
48
|
+
$order: props.order,
|
|
49
|
+
color: props.color ?? void 0,
|
|
50
|
+
className: props.className,
|
|
51
|
+
visible: true
|
|
52
|
+
}
|
|
53
|
+
);
|
|
46
54
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
47
|
-
|
|
55
|
+
StyledIcon,
|
|
48
56
|
{
|
|
49
57
|
width: "24",
|
|
50
58
|
height: "24",
|
|
@@ -53,7 +61,7 @@ const Icon = (props) => {
|
|
|
53
61
|
$size: props.size,
|
|
54
62
|
$turn: props.turn,
|
|
55
63
|
$order: props.order,
|
|
56
|
-
$color: props.color
|
|
64
|
+
$color: props.color ?? void 0,
|
|
57
65
|
$sx: props.sx,
|
|
58
66
|
className: props.className,
|
|
59
67
|
onClick: props.onClick,
|
|
@@ -93,31 +101,51 @@ function useInjectSprites(urls) {
|
|
|
93
101
|
}
|
|
94
102
|
const loadedSprites = /* @__PURE__ */ new Map();
|
|
95
103
|
function useLazyInjectSprite(url) {
|
|
96
|
-
const [loaded, setLoaded] = useState(
|
|
104
|
+
const [loaded, setLoaded] = useState(false);
|
|
105
|
+
const [error2, setError] = useState(null);
|
|
97
106
|
useEffect(() => {
|
|
98
|
-
var _a;
|
|
99
|
-
if (loaded) return;
|
|
100
107
|
let isMounted = true;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const div = document.createElement("div");
|
|
107
|
-
div.style.display = "none";
|
|
108
|
-
div.innerHTML = text;
|
|
109
|
-
document.body.prepend(div);
|
|
110
|
-
})();
|
|
111
|
-
loadedSprites.set(url, promise);
|
|
108
|
+
let status = loadedSprites.get(url);
|
|
109
|
+
if (status == null ? void 0 : status.loaded) {
|
|
110
|
+
setLoaded(true);
|
|
111
|
+
setError(status.error ?? null);
|
|
112
|
+
return;
|
|
112
113
|
}
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
let promise;
|
|
115
|
+
if (!status) {
|
|
116
|
+
promise = (async () => {
|
|
117
|
+
try {
|
|
118
|
+
const res = await fetch(url);
|
|
119
|
+
if (!res.ok) throw new Error(`Failed to load sprite: ${url}`);
|
|
120
|
+
const text = await res.text();
|
|
121
|
+
const div = document.createElement("div");
|
|
122
|
+
div.style.display = "none";
|
|
123
|
+
div.innerHTML = text;
|
|
124
|
+
document.body.prepend(div);
|
|
125
|
+
loadedSprites.set(url, { promise, loaded: true });
|
|
126
|
+
} catch (err) {
|
|
127
|
+
const errorObj = err instanceof Error ? err : new Error(String(err));
|
|
128
|
+
loadedSprites.set(url, { promise, loaded: true, error: errorObj });
|
|
129
|
+
if (isMounted) setError(errorObj);
|
|
130
|
+
throw err;
|
|
131
|
+
}
|
|
132
|
+
})();
|
|
133
|
+
loadedSprites.set(url, { promise, loaded: false });
|
|
134
|
+
} else {
|
|
135
|
+
promise = status.promise;
|
|
136
|
+
}
|
|
137
|
+
promise.then(() => {
|
|
138
|
+
if (!isMounted) return;
|
|
139
|
+
const s = loadedSprites.get(url);
|
|
140
|
+
setLoaded((s == null ? void 0 : s.loaded) ?? true);
|
|
141
|
+
setError((s == null ? void 0 : s.error) ?? null);
|
|
142
|
+
}).catch(() => {
|
|
115
143
|
});
|
|
116
144
|
return () => {
|
|
117
145
|
isMounted = false;
|
|
118
146
|
};
|
|
119
|
-
}, [url
|
|
120
|
-
return loaded;
|
|
147
|
+
}, [url]);
|
|
148
|
+
return { loaded, error: error2 };
|
|
121
149
|
}
|
|
122
150
|
const ThemeMapId = [
|
|
123
151
|
"Close",
|
|
@@ -1112,7 +1140,7 @@ const ThemeLight = {
|
|
|
1112
1140
|
return `#${props.type}-${props.name}`;
|
|
1113
1141
|
},
|
|
1114
1142
|
getSpriteUrl(props) {
|
|
1115
|
-
return `https://assets.jenesei.ru/icons/${props.type}.svg?v=${LIBRARY_VERSION}`;
|
|
1143
|
+
return `https://id.assets.jenesei.ru/icons/${props.type}.svg?v=${LIBRARY_VERSION}`;
|
|
1116
1144
|
}
|
|
1117
1145
|
},
|
|
1118
1146
|
transition: {
|
|
@@ -1418,7 +1446,76 @@ const JeneseiGlobalStyles = createGlobalStyle`
|
|
|
1418
1446
|
}
|
|
1419
1447
|
}
|
|
1420
1448
|
`;
|
|
1421
|
-
const
|
|
1449
|
+
const shimmer = keyframes`
|
|
1450
|
+
0% {
|
|
1451
|
+
background-position: 100%;
|
|
1452
|
+
}
|
|
1453
|
+
100% {
|
|
1454
|
+
background-position: -100%;
|
|
1455
|
+
}
|
|
1456
|
+
`;
|
|
1457
|
+
const StyledSkeleton = styled(Stack)`
|
|
1458
|
+
background: transparent;
|
|
1459
|
+
|
|
1460
|
+
${(props) => css`
|
|
1461
|
+
${!props.$visible && css`
|
|
1462
|
+
${props.$type === "secondary" ? css`
|
|
1463
|
+
background: linear-gradient(
|
|
1464
|
+
90deg,
|
|
1465
|
+
${props.$color ? JeneseiPalette[props.$color] : props.$isInheritColor ? "inherit" : "#f6f7f8"} 25%,
|
|
1466
|
+
${props.$color ? JeneseiPalette[props.$color] : props.$isInheritColor ? "inherit" : "#edeef1"} 50%,
|
|
1467
|
+
${props.$color ? JeneseiPalette[props.$color] : props.$isInheritColor ? "inherit" : "#f6f7f8"} 75%
|
|
1468
|
+
);
|
|
1469
|
+
` : css`
|
|
1470
|
+
background: linear-gradient(
|
|
1471
|
+
90deg,
|
|
1472
|
+
${props.$color ? JeneseiPalette[props.$color] : props.$isInheritColor ? "inherit" : "#edeef1"} 25%,
|
|
1473
|
+
${props.$color ? JeneseiPalette[props.$color] : props.$isInheritColor ? "inherit" : "#f6f7f8"} 50%,
|
|
1474
|
+
${props.$color ? JeneseiPalette[props.$color] : props.$isInheritColor ? "inherit" : "#edeef1"} 75%
|
|
1475
|
+
);
|
|
1476
|
+
`};
|
|
1477
|
+
background-size: 200% 100%;
|
|
1478
|
+
animation: ${shimmer} 1.5s infinite linear;
|
|
1479
|
+
|
|
1480
|
+
`};
|
|
1481
|
+
`}
|
|
1482
|
+
& > * {
|
|
1483
|
+
opacity: ${(props) => !props.$visible ? 0 : 1};
|
|
1484
|
+
transition:
|
|
1485
|
+
outline 0s,
|
|
1486
|
+
opacity ${(props) => props.theme.transition.default};
|
|
1487
|
+
}
|
|
1488
|
+
`;
|
|
1489
|
+
const Skeleton = (props) => {
|
|
1490
|
+
const [visible, setVisible] = useState(props.defaultVisible ?? false);
|
|
1491
|
+
useEffect(() => {
|
|
1492
|
+
if ("time" in props) {
|
|
1493
|
+
const timer = setTimeout(() => {
|
|
1494
|
+
setVisible(true);
|
|
1495
|
+
}, props.time);
|
|
1496
|
+
return () => {
|
|
1497
|
+
clearTimeout(timer);
|
|
1498
|
+
};
|
|
1499
|
+
}
|
|
1500
|
+
}, [props]);
|
|
1501
|
+
useEffect(() => {
|
|
1502
|
+
if ("visible" in props) {
|
|
1503
|
+
setVisible(!props.visible);
|
|
1504
|
+
}
|
|
1505
|
+
}, [props]);
|
|
1506
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1507
|
+
StyledSkeleton,
|
|
1508
|
+
{
|
|
1509
|
+
...props,
|
|
1510
|
+
$visible: visible,
|
|
1511
|
+
$type: props.type,
|
|
1512
|
+
$color: props.color,
|
|
1513
|
+
$isInheritColor: props.isInheritColor,
|
|
1514
|
+
children: props.children
|
|
1515
|
+
}
|
|
1516
|
+
);
|
|
1517
|
+
};
|
|
1518
|
+
const StyledIcon = styled.svg`
|
|
1422
1519
|
color: ${(props) => props.$color ? props.theme.palette[props.$color] : "inherit"};
|
|
1423
1520
|
|
|
1424
1521
|
${(props) => css`
|
|
@@ -1439,6 +1536,19 @@ const StyledSVG = styled.svg`
|
|
|
1439
1536
|
}
|
|
1440
1537
|
${addSX};
|
|
1441
1538
|
`;
|
|
1539
|
+
const StyledIconSkeleton = styled(Skeleton)`
|
|
1540
|
+
${(props) => css`
|
|
1541
|
+
height: ${props.$size !== "100%" ? `${KEY_SIZE_DATA[props.$size].heightIcon}px` : "100%"};
|
|
1542
|
+
min-height: ${props.$size !== "100%" ? `${KEY_SIZE_DATA[props.$size].heightIcon}px` : "100%"};
|
|
1543
|
+
|
|
1544
|
+
width: ${props.$size !== "100%" ? `${KEY_SIZE_DATA[props.$size].heightIcon}px` : "100%"};
|
|
1545
|
+
min-width: ${props.$size !== "100%" ? `${KEY_SIZE_DATA[props.$size].heightIcon}px` : "100%"};
|
|
1546
|
+
`}
|
|
1547
|
+
${(props) => props.$order !== void 0 && css`
|
|
1548
|
+
order: ${props.$order};
|
|
1549
|
+
`};
|
|
1550
|
+
border-radius: 100%;
|
|
1551
|
+
`;
|
|
1442
1552
|
const Preview = (props) => {
|
|
1443
1553
|
const [visible, setVisible] = useState(props.defaultVisible ?? true);
|
|
1444
1554
|
const propsVisible = useMemo(() => "visible" in props ? props.visible : null, [props]);
|
|
@@ -7201,6 +7311,15 @@ const DateInputButton = styled(Button)`
|
|
|
7201
7311
|
height: max-content !important;
|
|
7202
7312
|
${addDateInputButtonSize};
|
|
7203
7313
|
`;
|
|
7314
|
+
const ImageIMG = styled.img`
|
|
7315
|
+
position: absolute;
|
|
7316
|
+
width: 100%;
|
|
7317
|
+
height: 100%;
|
|
7318
|
+
object-fit: cover;
|
|
7319
|
+
opacity: ${(props) => props.$isPending ? 0 : 1};
|
|
7320
|
+
${addTransition};
|
|
7321
|
+
${addSX};
|
|
7322
|
+
`;
|
|
7204
7323
|
const ImageSelectListGenre = css`
|
|
7205
7324
|
${(props) => css`
|
|
7206
7325
|
background: ${props.theme.colors.imageSelect[props.$genre].background.rest};
|
|
@@ -8275,159 +8394,163 @@ const DEFAULT_PROVIDER_SONNER_BUTTON = {
|
|
|
8275
8394
|
}
|
|
8276
8395
|
};
|
|
8277
8396
|
export {
|
|
8278
|
-
|
|
8397
|
+
InputSizeConstructor as $,
|
|
8279
8398
|
AccordionWrapper as A,
|
|
8280
8399
|
Button as B,
|
|
8281
8400
|
CheckboxSize as C,
|
|
8282
8401
|
DateWrapper as D,
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8402
|
+
addDateInputButtonSize as E,
|
|
8403
|
+
DateInputButton as F,
|
|
8404
|
+
getIconComponents as G,
|
|
8405
|
+
useInjectSprites as H,
|
|
8287
8406
|
Icon as I,
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8407
|
+
useLazyInjectSprite as J,
|
|
8408
|
+
StyledIcon as K,
|
|
8409
|
+
StyledIconSkeleton as L,
|
|
8410
|
+
ImageIMG as M,
|
|
8411
|
+
ImageSelectListSize as N,
|
|
8412
|
+
ImageSelectListSizeConstructor as O,
|
|
8294
8413
|
Preview as P,
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8357
|
-
|
|
8358
|
-
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8414
|
+
ImageSelectSize as Q,
|
|
8415
|
+
ImageSelectSizeConstructor as R,
|
|
8416
|
+
StyledSkeleton as S,
|
|
8417
|
+
ImageSelectWrapper as T,
|
|
8418
|
+
ImageSelectListWrapper as U,
|
|
8419
|
+
SliderImage as V,
|
|
8420
|
+
SliderDot as W,
|
|
8421
|
+
StyledInputWrapper as X,
|
|
8422
|
+
addInputPlaceholder as Y,
|
|
8423
|
+
addInputPlaceholderNiceNumber as Z,
|
|
8424
|
+
InputSize as _,
|
|
8425
|
+
Skeleton as a,
|
|
8426
|
+
ProviderAppOutlet as a$,
|
|
8427
|
+
addInputIsInputEffect as a0,
|
|
8428
|
+
StyledInputCSS as a1,
|
|
8429
|
+
StyledInput as a2,
|
|
8430
|
+
StyledMotionInput as a3,
|
|
8431
|
+
StyledInputPattern as a4,
|
|
8432
|
+
StyledInputNumeric as a5,
|
|
8433
|
+
InputPrefixChildren as a6,
|
|
8434
|
+
InputPostfixChildren as a7,
|
|
8435
|
+
InputOTPSize as a8,
|
|
8436
|
+
InputOTPSizeConstructor as a9,
|
|
8437
|
+
SelectTextArea as aA,
|
|
8438
|
+
TextArea as aB,
|
|
8439
|
+
TextAreaWrapper as aC,
|
|
8440
|
+
addTextArea as aD,
|
|
8441
|
+
StyledTextArea as aE,
|
|
8442
|
+
ToggleWrapper as aF,
|
|
8443
|
+
ToggleCenter as aG,
|
|
8444
|
+
TooltipContainer as aH,
|
|
8445
|
+
addTooltipBoxSize as aI,
|
|
8446
|
+
addTooltipBoxSizeConstructor as aJ,
|
|
8447
|
+
TooltipBox as aK,
|
|
8448
|
+
Tooltip as aL,
|
|
8449
|
+
TooltipContent as aM,
|
|
8450
|
+
DEFAULT_TOOLTIP_PLACEMENT_FALLBACK as aN,
|
|
8451
|
+
DEFAULT_TOOLTIP_OFFSET_FALLBACK as aO,
|
|
8452
|
+
addSXTypography as aP,
|
|
8453
|
+
Title as aQ,
|
|
8454
|
+
Typography as aR,
|
|
8455
|
+
TypographyLink as aS,
|
|
8456
|
+
TypographyTooltip as aT,
|
|
8457
|
+
AppContext as aU,
|
|
8458
|
+
ProviderApp as aV,
|
|
8459
|
+
useBgColor as aW,
|
|
8460
|
+
useStatusBarColor as aX,
|
|
8461
|
+
useBgImage as aY,
|
|
8462
|
+
useDescription as aZ,
|
|
8463
|
+
ProviderAppWrapper as a_,
|
|
8464
|
+
InputOTPWrapper as aa,
|
|
8465
|
+
DEFAULT_MAP_MAX_ZOOM as ab,
|
|
8466
|
+
DEFAULT_MAP_MIN_ZOOM as ac,
|
|
8467
|
+
DEFAULT_MAP_ZOOM as ad,
|
|
8468
|
+
DEFAULT_MAP_CENTER as ae,
|
|
8469
|
+
DEFAULT_MAP_THEME as af,
|
|
8470
|
+
MapWrapper as ag,
|
|
8471
|
+
RangeWrapper as ah,
|
|
8472
|
+
RangeTrack as ai,
|
|
8473
|
+
RangeThumb as aj,
|
|
8474
|
+
Select as ak,
|
|
8475
|
+
ContainerDropdownListOption as al,
|
|
8476
|
+
ContainerSelectListOption as am,
|
|
8477
|
+
SelectLanguage as an,
|
|
8478
|
+
SelectMonth as ao,
|
|
8479
|
+
SelectMonths as ap,
|
|
8480
|
+
SelectYear as aq,
|
|
8481
|
+
SelectMapTheme as ar,
|
|
8482
|
+
SelectWrapper as as,
|
|
8483
|
+
DropdownListParent as at,
|
|
8484
|
+
DropdownList as au,
|
|
8485
|
+
DropdownListOption as av,
|
|
8486
|
+
DropdownListOptionIcon as aw,
|
|
8487
|
+
SelectList as ax,
|
|
8488
|
+
ButtonList as ay,
|
|
8489
|
+
SelectListOption as az,
|
|
8490
|
+
AccordionSummary as b,
|
|
8491
|
+
ProviderAppOutletChildren as b0,
|
|
8492
|
+
ProviderAppOutletNotification as b1,
|
|
8493
|
+
ProviderAppOutletHeader as b2,
|
|
8494
|
+
ProviderAppOutletFooter as b3,
|
|
8495
|
+
ProviderAppOutletNav as b4,
|
|
8496
|
+
ProviderAppOutletLeftAside as b5,
|
|
8497
|
+
ProviderAppOutletRightAside as b6,
|
|
8498
|
+
SonnerContext as b7,
|
|
8499
|
+
ProviderSonner as b8,
|
|
8500
|
+
SonnerLayout as b9,
|
|
8501
|
+
ThemeMapLogo as bA,
|
|
8502
|
+
ThemeMapBustmarket as bB,
|
|
8503
|
+
usePopover as bC,
|
|
8504
|
+
Popover as bD,
|
|
8505
|
+
SonnerElementWrapper as ba,
|
|
8506
|
+
SonnerContent as bb,
|
|
8507
|
+
SonnerIcon as bc,
|
|
8508
|
+
SonnerContentTitle as bd,
|
|
8509
|
+
SonnerContentDescription as be,
|
|
8510
|
+
SonnerButtonWrapper as bf,
|
|
8511
|
+
DEFAULT_PROVIDER_SONNER_Z_INDEX as bg,
|
|
8512
|
+
DEFAULT_PROVIDER_SONNER_SCALE as bh,
|
|
8513
|
+
DEFAULT_PROVIDER_SONNER_Y as bi,
|
|
8514
|
+
DEFAULT_PROVIDER_SONNER_DURATION as bj,
|
|
8515
|
+
DEFAULT_PROVIDER_SONNER_GENRE as bk,
|
|
8516
|
+
DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM as bl,
|
|
8517
|
+
DEFAULT_PROVIDER_SONNER_BUTTON as bm,
|
|
8518
|
+
ErrorMessageComponent as bn,
|
|
8519
|
+
addError as bo,
|
|
8520
|
+
ErrorMessage as bp,
|
|
8521
|
+
JeneseiPalette as bq,
|
|
8522
|
+
ThemeLight as br,
|
|
8523
|
+
ThemeBlack as bs,
|
|
8524
|
+
KEY_SIZE_DATA as bt,
|
|
8525
|
+
KEY_SIZE_DATA_TOGGLE as bu,
|
|
8526
|
+
JeneseiGlobalStyles as bv,
|
|
8527
|
+
ThemeMapId as bw,
|
|
8528
|
+
ThemeMapCheckbox as bx,
|
|
8529
|
+
ThemeMapLoading as by,
|
|
8530
|
+
ThemeMapRealebail as bz,
|
|
8531
|
+
AccordionSummaryContent as c,
|
|
8532
|
+
AccordionDetails as d,
|
|
8533
|
+
AccordionStyledIcon as e,
|
|
8534
|
+
StyledButton as f,
|
|
8535
|
+
StyledButtonIconsWrapper as g,
|
|
8536
|
+
ButtonGroupWrapper as h,
|
|
8537
|
+
CheckboxSizeConstructor as i,
|
|
8538
|
+
CheckboxGenre as j,
|
|
8539
|
+
CheckboxWrapper as k,
|
|
8540
|
+
CheckboxGroupSize as l,
|
|
8541
|
+
CheckboxGroupSizeConstructor as m,
|
|
8542
|
+
CheckboxGroupWrapper as n,
|
|
8543
|
+
CheckboxGroupItem as o,
|
|
8544
|
+
CheckboxGroupLabel as p,
|
|
8545
|
+
CheckboxChildren as q,
|
|
8546
|
+
DateDropdownListParent as r,
|
|
8547
|
+
DateDropdownList as s,
|
|
8548
|
+
DateDropdownDays as t,
|
|
8549
|
+
addDateDropdownDaySize as u,
|
|
8550
|
+
DateDropdownDay as v,
|
|
8551
|
+
DateDropdownDayOfWeek as w,
|
|
8552
|
+
DateInput as x,
|
|
8553
|
+
addDateInputWrapperSize as y,
|
|
8554
|
+
DateInputWrapper as z
|
|
8432
8555
|
};
|
|
8433
|
-
//# sourceMappingURL=context.constants-
|
|
8556
|
+
//# sourceMappingURL=context.constants-BVl2x1gR.js.map
|