amotify 0.1.31 → 0.1.32
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/@declaration/_.js +1 -1
- package/dist/@styles/componentClasses/_.css +68 -65
- package/dist/@styles/componentClasses/_.js +39 -39
- package/dist/@styles/index.css +68 -65
- package/dist/@styles/index.js +39 -39
- package/dist/@styles/init.css +1 -1
- package/dist/@styles/style.css +68 -65
- package/dist/@styles/style.js +39 -39
- package/dist/@styles/var.css +1 -1
- package/dist/@utils/GenerateClassName.js +470 -1
- package/dist/@utils/LaunchReactApp.js +78 -1
- package/dist/@utils/_.js +12 -1
- package/dist/@utils/collectForm.js +96 -1
- package/dist/@utils/color.js +103 -1
- package/dist/@utils/config.js +101 -1
- package/dist/@utils/fin.js +39 -1
- package/dist/@utils/getElement.js +13 -1
- package/dist/@utils/jsminEx.js +172 -1
- package/dist/@utils/pageTransit.js +33 -1
- package/dist/@utils/useRecycle.js +44 -1
- package/dist/@utils/useStore.js +54 -1
- package/dist/atoms/Box.js +20 -1
- package/dist/atoms/FAI.js +148 -1
- package/dist/atoms/Flex.js +34 -1
- package/dist/atoms/Grid.js +17 -1
- package/dist/atoms/Img.js +65 -1
- package/dist/atoms/Logo.js +359 -51
- package/dist/atoms/P.js +20 -1
- package/dist/atoms/Placeholder.js +44 -1
- package/dist/atoms/Span.js +20 -1
- package/dist/atoms/_.js +9 -1
- package/dist/chunk-JJ3PEWPN.js +60 -0
- package/dist/fn/Button.js +316 -1
- package/dist/fn/Cropper.js +1009 -1
- package/dist/fn/Effect/Fade.js +88 -1
- package/dist/fn/Effect/Pudding.js +22 -1
- package/dist/fn/Effect/Ripple.js +117 -3
- package/dist/fn/Effect/_.js +14 -1
- package/dist/fn/Input/AutoHeightText.js +112 -1
- package/dist/fn/Input/Checker.js +36 -1
- package/dist/fn/Input/Chips/Selector.js +472 -1
- package/dist/fn/Input/Chips/_.js +349 -1
- package/dist/fn/Input/Contenteditable.js +160 -1
- package/dist/fn/Input/DigitCharacters.js +275 -1
- package/dist/fn/Input/Filer.js +619 -1
- package/dist/fn/Input/Hidden.js +48 -1
- package/dist/fn/Input/List.js +450 -1
- package/dist/fn/Input/Parts.js +121 -1
- package/dist/fn/Input/Plain.js +12 -1
- package/dist/fn/Input/RichSelect.js +279 -1
- package/dist/fn/Input/Search.js +53 -1
- package/dist/fn/Input/Segmented.js +245 -1
- package/dist/fn/Input/Select.js +278 -1
- package/dist/fn/Input/Slider.js +538 -1
- package/dist/fn/Input/Switch.js +221 -1
- package/dist/fn/Input/Text.js +626 -1
- package/dist/fn/Input/TextArea.js +151 -1
- package/dist/fn/Input/Time/Picker.js +1457 -1
- package/dist/fn/Input/Time/_.js +867 -1
- package/dist/fn/Input/_.js +48 -1
- package/dist/fn/Input/core.js +626 -1
- package/dist/fn/Layout/PageNotFound.js +90 -1
- package/dist/fn/Layout/PageRouter.js +87 -1
- package/dist/fn/Layout/PageViewController.js +29 -1
- package/dist/fn/Layout/Plate.js +37 -1
- package/dist/fn/Layout/RootViewController.js +315 -1
- package/dist/fn/Layout/SwipeView.js +348 -1
- package/dist/fn/Layout/TabBar.js +72 -1
- package/dist/fn/Layout/_.js +22 -1
- package/dist/fn/Loader/_.js +104 -1
- package/dist/fn/Loader/corner.js +85 -1
- package/dist/fn/Loader/mini.js +125 -1
- package/dist/fn/Loader/top.js +73 -1
- package/dist/fn/Sheet.js +1101 -1
- package/dist/fn/Snackbar.js +216 -1
- package/dist/fn/Table/Data.js +974 -1
- package/dist/fn/Table/Drag.js +435 -1
- package/dist/fn/Table/Normal.js +136 -1
- package/dist/fn/Table/Parts.js +41 -1
- package/dist/fn/Table/Wrapper.js +60 -1
- package/dist/fn/Table/_.js +16 -1
- package/dist/fn/Table/cellStyling.js +51 -1
- package/dist/fn/Tooltips.js +58 -1
- package/dist/fn/_.js +10 -1
- package/dist/index.js +20 -1
- package/dist/mols/Accordion.js +152 -1
- package/dist/mols/Column.js +16 -1
- package/dist/mols/LinkifyText.js +42 -1
- package/dist/mols/List.js +42 -1
- package/dist/mols/Row.js +47 -1
- package/dist/mols/Text.js +67 -1
- package/dist/mols/_.js +6 -1
- package/dist/temps/_.js +1 -1
- package/dist/temps/designBook.js +3639 -20
- package/package.json +1 -1
package/dist/atoms/FAI.js
CHANGED
|
@@ -1 +1,148 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "../chunk-JJ3PEWPN.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import Box from "./Box";
|
|
8
|
+
import {
|
|
9
|
+
FontAwesomeIcon
|
|
10
|
+
} from "@fortawesome/react-fontawesome";
|
|
11
|
+
import { faTimes } from "@fortawesome/free-solid-svg-icons/faTimes";
|
|
12
|
+
import { faAngleRight } from "@fortawesome/free-solid-svg-icons/faAngleRight";
|
|
13
|
+
import { faAngleLeft } from "@fortawesome/free-solid-svg-icons/faAngleLeft";
|
|
14
|
+
import { faAngleUp } from "@fortawesome/free-solid-svg-icons/faAngleUp";
|
|
15
|
+
import { faAngleDown } from "@fortawesome/free-solid-svg-icons/faAngleDown";
|
|
16
|
+
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons/faChevronLeft";
|
|
17
|
+
import { faChevronRight } from "@fortawesome/free-solid-svg-icons/faChevronRight";
|
|
18
|
+
import { faChevronUp } from "@fortawesome/free-solid-svg-icons/faChevronUp";
|
|
19
|
+
import { faChevronDown } from "@fortawesome/free-solid-svg-icons/faChevronDown";
|
|
20
|
+
import { faCaretLeft } from "@fortawesome/free-solid-svg-icons/faCaretLeft";
|
|
21
|
+
import { faCaretRight } from "@fortawesome/free-solid-svg-icons/faCaretRight";
|
|
22
|
+
import { faCaretUp } from "@fortawesome/free-solid-svg-icons/faCaretUp";
|
|
23
|
+
import { faCaretDown } from "@fortawesome/free-solid-svg-icons/faCaretDown";
|
|
24
|
+
import { faArrowLeft } from "@fortawesome/free-solid-svg-icons/faArrowLeft";
|
|
25
|
+
import { faArrowRight } from "@fortawesome/free-solid-svg-icons/faArrowRight";
|
|
26
|
+
import { faArrowUp } from "@fortawesome/free-solid-svg-icons/faArrowUp";
|
|
27
|
+
import { faArrowDown } from "@fortawesome/free-solid-svg-icons/faArrowDown";
|
|
28
|
+
import { faRotate } from "@fortawesome/free-solid-svg-icons/faRotate";
|
|
29
|
+
import { faRedo } from "@fortawesome/free-solid-svg-icons/faRedo";
|
|
30
|
+
import { faCheck } from "@fortawesome/free-solid-svg-icons/faCheck";
|
|
31
|
+
import { faQuestion } from "@fortawesome/free-solid-svg-icons/faQuestion";
|
|
32
|
+
import { faExclamation } from "@fortawesome/free-solid-svg-icons/faExclamation";
|
|
33
|
+
import { faExclamationTriangle } from "@fortawesome/free-solid-svg-icons/faExclamationTriangle";
|
|
34
|
+
import { faHome } from "@fortawesome/free-solid-svg-icons/faHome";
|
|
35
|
+
import { faShare } from "@fortawesome/free-solid-svg-icons/faShare";
|
|
36
|
+
import { faSearch } from "@fortawesome/free-solid-svg-icons/faSearch";
|
|
37
|
+
import { faYenSign } from "@fortawesome/free-solid-svg-icons/faYenSign";
|
|
38
|
+
import { faPen } from "@fortawesome/free-solid-svg-icons/faPen";
|
|
39
|
+
import { faBars } from "@fortawesome/free-solid-svg-icons/faBars";
|
|
40
|
+
import { faDownload } from "@fortawesome/free-solid-svg-icons/faDownload";
|
|
41
|
+
import { faLink } from "@fortawesome/free-solid-svg-icons/faLink";
|
|
42
|
+
import { faLinkSlash } from "@fortawesome/free-solid-svg-icons/faLinkSlash";
|
|
43
|
+
import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons/faExternalLinkAlt";
|
|
44
|
+
import { faGear } from "@fortawesome/free-solid-svg-icons/faGear";
|
|
45
|
+
import { faPlus } from "@fortawesome/free-solid-svg-icons/faPlus";
|
|
46
|
+
import { faMinus } from "@fortawesome/free-solid-svg-icons/faMinus";
|
|
47
|
+
import { faEllipsisH } from "@fortawesome/free-solid-svg-icons/faEllipsisH";
|
|
48
|
+
import { faEllipsisV } from "@fortawesome/free-solid-svg-icons/faEllipsisV";
|
|
49
|
+
import { faStar } from "@fortawesome/free-solid-svg-icons/faStar";
|
|
50
|
+
import { faPaperPlane } from "@fortawesome/free-solid-svg-icons/faPaperPlane";
|
|
51
|
+
import { faHeart } from "@fortawesome/free-solid-svg-icons/faHeart";
|
|
52
|
+
import { faUser } from "@fortawesome/free-regular-svg-icons/faUser";
|
|
53
|
+
import { faCheckCircle } from "@fortawesome/free-regular-svg-icons/faCheckCircle";
|
|
54
|
+
import { faQuestionCircle } from "@fortawesome/free-regular-svg-icons/faQuestionCircle";
|
|
55
|
+
import { faEdit } from "@fortawesome/free-regular-svg-icons/faEdit";
|
|
56
|
+
import { faCopy } from "@fortawesome/free-regular-svg-icons/faCopy";
|
|
57
|
+
import { faFile } from "@fortawesome/free-regular-svg-icons/faFile";
|
|
58
|
+
import { faTrashAlt } from "@fortawesome/free-regular-svg-icons/faTrashAlt";
|
|
59
|
+
import { faImage } from "@fortawesome/free-regular-svg-icons/faImage";
|
|
60
|
+
const Component = (params) => {
|
|
61
|
+
let _a = params, {
|
|
62
|
+
icon,
|
|
63
|
+
iconParams
|
|
64
|
+
} = _a, others = __objRest(_a, [
|
|
65
|
+
"icon",
|
|
66
|
+
"iconParams"
|
|
67
|
+
]);
|
|
68
|
+
return /* @__PURE__ */ jsx(
|
|
69
|
+
Box,
|
|
70
|
+
__spreadProps(__spreadValues({
|
|
71
|
+
display: "inlineFlex",
|
|
72
|
+
flexCenter: true,
|
|
73
|
+
position: "relative",
|
|
74
|
+
freeCSS: {
|
|
75
|
+
aspectRatio: "1"
|
|
76
|
+
}
|
|
77
|
+
}, others), {
|
|
78
|
+
children: /* @__PURE__ */ jsx(
|
|
79
|
+
FontAwesomeIcon,
|
|
80
|
+
__spreadProps(__spreadValues({
|
|
81
|
+
icon,
|
|
82
|
+
fixedWidth: true,
|
|
83
|
+
size: "sm"
|
|
84
|
+
}, iconParams), {
|
|
85
|
+
style: __spreadValues({
|
|
86
|
+
aspectRatio: 1,
|
|
87
|
+
minWidth: 12 * 1,
|
|
88
|
+
minHeight: 12 * 1
|
|
89
|
+
}, iconParams == null ? void 0 : iconParams.style)
|
|
90
|
+
})
|
|
91
|
+
)
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
const FAI = Component;
|
|
96
|
+
FAI.User = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faUser }));
|
|
97
|
+
FAI.Times = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faTimes }));
|
|
98
|
+
FAI.AngleRight = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faAngleRight }));
|
|
99
|
+
FAI.AngleLeft = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faAngleLeft }));
|
|
100
|
+
FAI.AngleUp = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faAngleUp }));
|
|
101
|
+
FAI.AngleDown = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faAngleDown }));
|
|
102
|
+
FAI.ChevronLeft = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faChevronLeft }));
|
|
103
|
+
FAI.ChevronRight = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faChevronRight }));
|
|
104
|
+
FAI.ChevronUp = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faChevronUp }));
|
|
105
|
+
FAI.ChevronDown = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faChevronDown }));
|
|
106
|
+
FAI.CaretLeft = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCaretLeft }));
|
|
107
|
+
FAI.CaretRight = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCaretRight }));
|
|
108
|
+
FAI.CaretUp = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCaretUp }));
|
|
109
|
+
FAI.CaretDown = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCaretDown }));
|
|
110
|
+
FAI.ArrowLeft = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faArrowLeft }));
|
|
111
|
+
FAI.ArrowRight = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faArrowRight }));
|
|
112
|
+
FAI.ArrowUp = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faArrowUp }));
|
|
113
|
+
FAI.ArrowDown = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faArrowDown }));
|
|
114
|
+
FAI.Rotate = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faRotate }));
|
|
115
|
+
FAI.Redo = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faRedo }));
|
|
116
|
+
FAI.Check = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCheck }));
|
|
117
|
+
FAI.CheckCircle = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCheckCircle }));
|
|
118
|
+
FAI.Question = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faQuestion }));
|
|
119
|
+
FAI.QuestionCircle = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faQuestionCircle }));
|
|
120
|
+
FAI.Exclamation = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faExclamation }));
|
|
121
|
+
FAI.ExclamationTriangle = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faExclamationTriangle }));
|
|
122
|
+
FAI.Home = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faHome }));
|
|
123
|
+
FAI.Share = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faShare }));
|
|
124
|
+
FAI.Search = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faSearch }));
|
|
125
|
+
FAI.YenSign = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faYenSign }));
|
|
126
|
+
FAI.Heart = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faHeart }));
|
|
127
|
+
FAI.Star = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faStar }));
|
|
128
|
+
FAI.Edit = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faEdit }));
|
|
129
|
+
FAI.Pen = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faPen }));
|
|
130
|
+
FAI.Copy = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faCopy }));
|
|
131
|
+
FAI.File = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faFile }));
|
|
132
|
+
FAI.TrashAlt = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faTrashAlt }));
|
|
133
|
+
FAI.Bars = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faBars }));
|
|
134
|
+
FAI.Download = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faDownload }));
|
|
135
|
+
FAI.Link = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faLink }));
|
|
136
|
+
FAI.LinkSlash = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faLinkSlash }));
|
|
137
|
+
FAI.ExternalLinkAlt = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faExternalLinkAlt }));
|
|
138
|
+
FAI.Gear = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faGear }));
|
|
139
|
+
FAI.Plus = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faPlus }));
|
|
140
|
+
FAI.Minus = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faMinus }));
|
|
141
|
+
FAI.EllipsisH = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faEllipsisH }));
|
|
142
|
+
FAI.EllipsisV = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faEllipsisV }));
|
|
143
|
+
FAI.PaperPlane = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faPaperPlane }));
|
|
144
|
+
FAI.Image = (params) => /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, params), { icon: faImage }));
|
|
145
|
+
export {
|
|
146
|
+
FAI,
|
|
147
|
+
FAI as default
|
|
148
|
+
};
|
package/dist/atoms/Flex.js
CHANGED
|
@@ -1 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-JJ3PEWPN.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import Box from "./Box";
|
|
7
|
+
const Flex = (params) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
Box,
|
|
10
|
+
__spreadProps(__spreadValues({
|
|
11
|
+
flexType: "row",
|
|
12
|
+
flexWrap: true,
|
|
13
|
+
display: "flex"
|
|
14
|
+
}, params), {
|
|
15
|
+
freeCSS: __spreadValues({
|
|
16
|
+
wordBreak: "break-word"
|
|
17
|
+
}, params.freeCSS)
|
|
18
|
+
})
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
const FlexBr = (params) => {
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
Box,
|
|
24
|
+
__spreadValues({
|
|
25
|
+
width: 1,
|
|
26
|
+
flexSizing: "none"
|
|
27
|
+
}, params)
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
Flex,
|
|
32
|
+
FlexBr,
|
|
33
|
+
Flex as default
|
|
34
|
+
};
|
package/dist/atoms/Grid.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__spreadValues
|
|
3
|
+
} from "../chunk-JJ3PEWPN.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import Box from "./Box";
|
|
6
|
+
const Grid = (params) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Box,
|
|
9
|
+
__spreadValues({
|
|
10
|
+
display: "grid"
|
|
11
|
+
}, params)
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
Grid,
|
|
16
|
+
Grid as default
|
|
17
|
+
};
|
package/dist/atoms/Img.js
CHANGED
|
@@ -1 +1,65 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-JJ3PEWPN.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import {
|
|
7
|
+
GenerateClassName
|
|
8
|
+
} from "../@utils/_";
|
|
9
|
+
import Sheet from "../fn/Sheet";
|
|
10
|
+
import { ImgClasses } from "../@styles/componentClasses/_";
|
|
11
|
+
const Img = (params) => {
|
|
12
|
+
let _a = params, {
|
|
13
|
+
src = "",
|
|
14
|
+
alt = "",
|
|
15
|
+
showExpand
|
|
16
|
+
} = _a, others = __objRest(_a, [
|
|
17
|
+
"src",
|
|
18
|
+
"alt",
|
|
19
|
+
"showExpand"
|
|
20
|
+
]);
|
|
21
|
+
others.freeCSS = __spreadValues({
|
|
22
|
+
cursor: showExpand ? "zoom-in" : "inherit"
|
|
23
|
+
}, others.freeCSS);
|
|
24
|
+
let _b = GenerateClassName(others), {
|
|
25
|
+
freeCSS,
|
|
26
|
+
className = ""
|
|
27
|
+
} = _b, Others = __objRest(_b, [
|
|
28
|
+
"freeCSS",
|
|
29
|
+
"className"
|
|
30
|
+
]);
|
|
31
|
+
return /* @__PURE__ */ jsx(
|
|
32
|
+
"img",
|
|
33
|
+
__spreadValues({
|
|
34
|
+
src,
|
|
35
|
+
alt,
|
|
36
|
+
className: [
|
|
37
|
+
ImgClasses("Img"),
|
|
38
|
+
ImgClasses("ShowExpand_" + !!showExpand),
|
|
39
|
+
className
|
|
40
|
+
].join(" "),
|
|
41
|
+
onMouseDown: (event) => {
|
|
42
|
+
if (showExpand)
|
|
43
|
+
event.stopPropagation();
|
|
44
|
+
},
|
|
45
|
+
onTouchStart: (event) => {
|
|
46
|
+
if (showExpand)
|
|
47
|
+
event.stopPropagation();
|
|
48
|
+
},
|
|
49
|
+
onClick: (event) => {
|
|
50
|
+
if (showExpand) {
|
|
51
|
+
event.stopPropagation();
|
|
52
|
+
Sheet.open({
|
|
53
|
+
type: "image",
|
|
54
|
+
src: showExpand != true ? showExpand : src
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
others.onClick && others.onClick(event);
|
|
58
|
+
}
|
|
59
|
+
}, Others)
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
Img,
|
|
64
|
+
Img as default
|
|
65
|
+
};
|