@flipova/foundation 1.14.0 → 2.0.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.
- package/CHANGELOG.md +175 -0
- package/README.md +53 -178
- package/components/ui/accordion/ANIMATION_CUSTOMIZATION.md +162 -0
- package/components/ui/accordion/AccordionAnimatedHeight.tsx +56 -0
- package/components/ui/accordion/AccordionAnimatedIcon.tsx +41 -0
- package/components/ui/accordion/AnimatedHeight.tsx +56 -0
- package/components/ui/accordion/AnimatedIcon.tsx +41 -0
- package/components/ui/accordion/MIGRATION_SUMMARY.md +250 -0
- package/components/ui/accordion/USAGE_EXAMPLE.tsx +179 -0
- package/components/ui/accordion/animation-config.ts +32 -0
- package/components/ui/accordion/index.tsx +253 -0
- package/components/ui/actionsheet/index.tsx +511 -0
- package/components/ui/alert/index.tsx +158 -0
- package/components/ui/alert-dialog/index.tsx +254 -0
- package/components/ui/avatar/index.tsx +139 -0
- package/components/ui/badge/index.tsx +163 -0
- package/components/ui/bottomsheet/index.tsx +477 -0
- package/components/ui/box/index.tsx +19 -0
- package/components/ui/box/index.web.tsx +19 -0
- package/components/ui/box/styles.tsx +10 -0
- package/components/ui/button/index.tsx +264 -0
- package/components/ui/calendar/creator.tsx +366 -0
- package/components/ui/calendar/index.tsx +462 -0
- package/components/ui/calendar/styles.tsx +140 -0
- package/components/ui/card/index.tsx +23 -0
- package/components/ui/card/index.web.tsx +26 -0
- package/components/ui/card/styles.tsx +16 -0
- package/components/ui/center/index.tsx +22 -0
- package/components/ui/center/index.web.tsx +20 -0
- package/components/ui/center/styles.tsx +8 -0
- package/components/ui/checkbox/index.tsx +184 -0
- package/components/ui/date-time-picker/creator.tsx +109 -0
- package/components/ui/date-time-picker/index.tsx +585 -0
- package/components/ui/date-time-picker/index.web.tsx +217 -0
- package/components/ui/date-time-picker/styles.tsx +56 -0
- package/components/ui/divider/index.tsx +40 -0
- package/components/ui/drawer/index.tsx +362 -0
- package/components/ui/fab/index.tsx +215 -0
- package/components/ui/flat-list/index.tsx +21 -0
- package/components/ui/form-control/index.tsx +352 -0
- package/components/ui/gluestack-ui-provider/config.ts +72 -0
- package/components/ui/gluestack-ui-provider/index.tsx +47 -0
- package/components/ui/gluestack-ui-provider/index.web.tsx +96 -0
- package/components/ui/gluestack-ui-provider/script.ts +19 -0
- package/components/ui/gluestack-ui-provider/tokens.d.ts +17 -0
- package/components/ui/gluestack-ui-provider/tokens.js +188 -0
- package/components/ui/gluestack-ui-provider/useGluestackColors.ts +82 -0
- package/components/ui/grid/index.tsx +283 -0
- package/components/ui/grid/index.web.tsx +66 -0
- package/components/ui/grid/styles.tsx +15 -0
- package/components/ui/heading/index.tsx +220 -0
- package/components/ui/heading/index.web.tsx +202 -0
- package/components/ui/heading/styles.tsx +43 -0
- package/components/ui/hstack/index.tsx +27 -0
- package/components/ui/hstack/index.web.tsx +26 -0
- package/components/ui/hstack/styles.tsx +25 -0
- package/components/ui/icon/index.tsx +1588 -0
- package/components/ui/icon/index.web.tsx +1573 -0
- package/components/ui/image/index.tsx +48 -0
- package/components/ui/image-background/index.tsx +25 -0
- package/components/ui/image-viewer/index.tsx +743 -0
- package/components/ui/image-viewer/index.web.tsx +302 -0
- package/components/ui/index.ts +58 -0
- package/components/ui/input/index.tsx +125 -0
- package/components/ui/input-accessory-view/index.tsx +2 -0
- package/components/ui/keyboard-avoiding-view/index.tsx +2 -0
- package/components/ui/link/index.tsx +102 -0
- package/components/ui/liquid-glass/index.tsx +74 -0
- package/components/ui/menu/index.tsx +186 -0
- package/components/ui/modal/index.tsx +237 -0
- package/components/ui/popover/index.tsx +272 -0
- package/components/ui/portal/index.tsx +17 -0
- package/components/ui/pressable/index.tsx +39 -0
- package/components/ui/progress/index.tsx +83 -0
- package/components/ui/radio/index.tsx +217 -0
- package/components/ui/refresh-control/index.tsx +2 -0
- package/components/ui/safe-area-view/index.tsx +2 -0
- package/components/ui/scroll-view/index.tsx +2 -0
- package/components/ui/section-list/index.tsx +2 -0
- package/components/ui/select/index.tsx +277 -0
- package/components/ui/select/select-actionsheet.tsx +562 -0
- package/components/ui/skeleton/index.tsx +105 -0
- package/components/ui/skeleton/index.web.tsx +103 -0
- package/components/ui/skeleton/styles.tsx +35 -0
- package/components/ui/slider/index.tsx +181 -0
- package/components/ui/spinner/index.tsx +40 -0
- package/components/ui/status-bar/index.tsx +2 -0
- package/components/ui/switch/index.tsx +41 -0
- package/components/ui/table/index.tsx +210 -0
- package/components/ui/table/index.web.tsx +157 -0
- package/components/ui/table/styles.tsx +44 -0
- package/components/ui/tabs/TabsAnimatedIndicator.tsx +160 -0
- package/components/ui/tabs/animation-config.ts +3 -0
- package/components/ui/tabs/creator.tsx +206 -0
- package/components/ui/tabs/index.tsx +484 -0
- package/components/ui/text/index.tsx +48 -0
- package/components/ui/text/index.web.tsx +45 -0
- package/components/ui/text/styles.tsx +47 -0
- package/components/ui/textarea/index.tsx +94 -0
- package/components/ui/toast/index.tsx +252 -0
- package/components/ui/tooltip/index.tsx +131 -0
- package/components/ui/view/index.tsx +2 -0
- package/components/ui/virtualized-list/index.tsx +2 -0
- package/components/ui/vstack/index.tsx +28 -0
- package/components/ui/vstack/index.web.tsx +27 -0
- package/components/ui/vstack/styles.tsx +25 -0
- package/design/canonical.index.txt +53 -0
- package/design/documentation.xml +519 -0
- package/design/manifest.xml +90 -0
- package/design/schema.xsd +639 -0
- package/design/themes.xml +204 -0
- package/design/tokens.xml +510 -0
- package/design/tools/design.js +165 -0
- package/design/tools/npm.js +65 -0
- package/design/tools/requirements.txt +35 -0
- package/design/tools/sources/.checker/__init__.py +81 -0
- package/design/tools/sources/.checker/checks.py +198 -0
- package/design/tools/sources/.checker/cli.py +154 -0
- package/design/tools/sources/.checker/io.py +242 -0
- package/design/tools/sources/.checker/model.py +144 -0
- package/design/tools/sources/.checker/registry.py +115 -0
- package/design/tools/sources/.checker/report.py +21 -0
- package/design/tools/sources/.docgen/__init__.py +45 -0
- package/design/tools/sources/.docgen/cli.py +101 -0
- package/design/tools/sources/.docgen/model.py +147 -0
- package/design/tools/sources/.docgen/reference.py +97 -0
- package/design/tools/sources/.docgen/site.py +145 -0
- package/design/tools/sources/.docgen/xsddoc.py +329 -0
- package/design/tools/sources/.generate/__init__.py +35 -0
- package/design/tools/sources/.generate/cli.py +76 -0
- package/design/tools/sources/.generate/common.py +33 -0
- package/design/tools/sources/.generate/config.py +119 -0
- package/design/tools/sources/.generate/model.py +51 -0
- package/design/tools/sources/.generate/tokens.py +141 -0
- package/design/tools/sources/.linter/__init__.py +9 -0
- package/design/tools/sources/.linter/cli.py +44 -0
- package/design/tools/sources/.linter/discovery.py +30 -0
- package/design/tools/sources/.linter/errors.py +45 -0
- package/design/tools/sources/.linter/linter.py +68 -0
- package/design/tools/sources/.xmleditor/__init__.py +74 -0
- package/design/tools/sources/.xmleditor/blocks.py +185 -0
- package/design/tools/sources/.xmleditor/cli.py +141 -0
- package/design/tools/sources/.xmleditor/editor.py +906 -0
- package/design/tools/sources/.xmleditor/model.py +708 -0
- package/design/tools/sources/.xmleditor/widgets.py +1832 -0
- package/design/tools/sources/.xmleditor/xsdmodel.py +753 -0
- package/design/tools/sources/checker.py +55 -0
- package/design/tools/sources/docgen.py +66 -0
- package/design/tools/sources/generate.py +48 -0
- package/design/tools/sources/linter.py +54 -0
- package/design/tools/sources/ruff.toml +12 -0
- package/design/tools/sources/xmleditor.py +62 -0
- package/design/tools/unix/_venv_python.sh +16 -0
- package/design/tools/unix/check.sh +13 -0
- package/design/tools/unix/doc.sh +14 -0
- package/design/tools/unix/gen.sh +14 -0
- package/design/tools/unix/lint.sh +10 -0
- package/design/tools/unix/run.sh +20 -0
- package/design/tools/unix/verify.sh +12 -0
- package/design/tools/unix/xmledit.sh +12 -0
- package/design/tools/windows/check.cmd +12 -0
- package/design/tools/windows/doc.cmd +12 -0
- package/design/tools/windows/gen.cmd +11 -0
- package/design/tools/windows/lint.cmd +9 -0
- package/design/tools/windows/run.cmd +26 -0
- package/design/tools/windows/verify.cmd +10 -0
- package/design/tools/windows/xmledit.cmd +10 -0
- package/dist/chunk-LV4UIEQN.js +9730 -0
- package/dist/chunk-LV4UIEQN.js.map +1 -0
- package/dist/chunk-WNVU3BM2.mjs +9401 -0
- package/dist/chunk-WNVU3BM2.mjs.map +1 -0
- package/dist/index.d.mts +40 -10
- package/dist/index.d.ts +40 -10
- package/dist/index.js +726 -414
- package/dist/index.mjs +1 -5
- package/dist/ui/index.d.mts +6931 -3070
- package/dist/ui/index.d.ts +6931 -3070
- package/dist/ui/index.js +779 -352
- package/dist/ui/index.mjs +1 -2
- package/package.json +66 -149
- package/dist/chunk-2XORADW6.js +0 -24552
- package/dist/chunk-2XORADW6.js.map +0 -1
- package/dist/chunk-52BHHF5M.js +0 -46
- package/dist/chunk-52BHHF5M.js.map +0 -1
- package/dist/chunk-5647JY7Z.mjs +0 -100
- package/dist/chunk-5647JY7Z.mjs.map +0 -1
- package/dist/chunk-5N5HC4ZA.mjs +0 -3
- package/dist/chunk-5N5HC4ZA.mjs.map +0 -1
- package/dist/chunk-7QFZMGL6.js +0 -8583
- package/dist/chunk-7QFZMGL6.js.map +0 -1
- package/dist/chunk-ASZEP37D.js +0 -423
- package/dist/chunk-ASZEP37D.js.map +0 -1
- package/dist/chunk-BH5SU2JQ.mjs +0 -8282
- package/dist/chunk-BH5SU2JQ.mjs.map +0 -1
- package/dist/chunk-BO65GO53.mjs +0 -422
- package/dist/chunk-BO65GO53.mjs.map +0 -1
- package/dist/chunk-BSVXX52E.mjs +0 -413
- package/dist/chunk-BSVXX52E.mjs.map +0 -1
- package/dist/chunk-DNV5UBNF.mjs +0 -3
- package/dist/chunk-DNV5UBNF.mjs.map +0 -1
- package/dist/chunk-EDTAMUO2.js +0 -8310
- package/dist/chunk-EDTAMUO2.js.map +0 -1
- package/dist/chunk-IJTI6EX4.js +0 -4
- package/dist/chunk-IJTI6EX4.js.map +0 -1
- package/dist/chunk-M3YLASM2.js +0 -428
- package/dist/chunk-M3YLASM2.js.map +0 -1
- package/dist/chunk-OXKOGLXE.js +0 -4
- package/dist/chunk-OXKOGLXE.js.map +0 -1
- package/dist/chunk-RQXQK3ZO.mjs +0 -8486
- package/dist/chunk-RQXQK3ZO.mjs.map +0 -1
- package/dist/chunk-SR25V4EA.mjs +0 -40
- package/dist/chunk-SR25V4EA.mjs.map +0 -1
- package/dist/chunk-UB34WFEQ.js +0 -106
- package/dist/chunk-UB34WFEQ.js.map +0 -1
- package/dist/chunk-ZBRWXKDF.mjs +0 -24431
- package/dist/chunk-ZBRWXKDF.mjs.map +0 -1
- package/dist/cli/ds.d.mts +0 -1
- package/dist/cli/ds.d.ts +0 -1
- package/dist/cli/ds.js +0 -602
- package/dist/cli/ds.js.map +0 -1
- package/dist/cli/ds.mjs +0 -579
- package/dist/cli/ds.mjs.map +0 -1
- package/dist/cli/flipova.d.mts +0 -1
- package/dist/cli/flipova.d.ts +0 -1
- package/dist/cli/flipova.js +0 -161
- package/dist/cli/flipova.js.map +0 -1
- package/dist/cli/flipova.mjs +0 -154
- package/dist/cli/flipova.mjs.map +0 -1
- package/dist/config/index.d.mts +0 -123
- package/dist/config/index.d.ts +0 -123
- package/dist/config/index.js +0 -28
- package/dist/config/index.js.map +0 -1
- package/dist/config/index.mjs +0 -3
- package/dist/config/index.mjs.map +0 -1
- package/dist/createTheme-DQeX3s0I.d.mts +0 -78
- package/dist/createTheme-Y4jfz4-u.d.ts +0 -78
- package/dist/index-CuaJA3gM.d.mts +0 -78
- package/dist/index-CuaJA3gM.d.ts +0 -78
- package/dist/registry/index.d.mts +0 -10160
- package/dist/registry/index.d.ts +0 -10160
- package/dist/registry/index.js +0 -392
- package/dist/registry/index.js.map +0 -1
- package/dist/registry/index.mjs +0 -3
- package/dist/registry/index.mjs.map +0 -1
- package/dist/theme/index.d.mts +0 -35
- package/dist/theme/index.d.ts +0 -35
- package/dist/theme/index.js +0 -28
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/index.mjs +0 -3
- package/dist/theme/index.mjs.map +0 -1
- package/dist/tokens/index.d.mts +0 -423
- package/dist/tokens/index.d.ts +0 -423
- package/dist/tokens/index.js +0 -44
- package/dist/tokens/index.js.map +0 -1
- package/dist/tokens/index.mjs +0 -3
- package/dist/tokens/index.mjs.map +0 -1
- package/dist/types/index.d.mts +0 -202
- package/dist/types/index.d.ts +0 -202
- package/dist/types/index.js +0 -4
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -3
- package/dist/types/index.mjs.map +0 -1
- package/dist/web/index.d.mts +0 -316
- package/dist/web/index.d.ts +0 -316
- package/dist/web/index.js +0 -1500
- package/dist/web/index.js.map +0 -1
- package/dist/web/index.mjs +0 -1396
- package/dist/web/index.mjs.map +0 -1
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React, { useCallback, useState, useEffect } from 'react';
|
|
3
|
+
import { tva } from '@gluestack-ui/utils/nativewind-utils';
|
|
4
|
+
import { Overlay } from '@gluestack-ui/core/overlay/creator';
|
|
5
|
+
|
|
6
|
+
interface ImageItem {
|
|
7
|
+
url: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface ImageViewerProps {
|
|
12
|
+
images: ImageItem[];
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
isOpen?: boolean;
|
|
15
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
16
|
+
onIndexChange?: (index: number) => void;
|
|
17
|
+
initialIndex?: number;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface ImageViewerTriggerProps {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
onPress?: () => void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Web-specific styles
|
|
27
|
+
const imageViewerModalStyle = tva({
|
|
28
|
+
base: 'absolute inset-0 bg-black/95',
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const imageViewerContentStyle = tva({
|
|
32
|
+
base: 'flex flex-col items-center justify-center h-full w-full',
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const imageViewerCloseButtonStyle = tva({
|
|
36
|
+
base: 'absolute top-4 right-4 z-50 w-10 h-10 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center text-white text-xl font-bold cursor-pointer backdrop-blur-sm',
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const imageViewerNavigationStyle = tva({
|
|
40
|
+
base: 'absolute inset-0 flex items-center justify-between px-4 pointer-events-none',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const imageViewerNavButtonStyle = tva({
|
|
44
|
+
base: 'w-12 h-12 rounded-full bg-white/20 hover:bg-white/30 flex items-center justify-center text-white text-2xl font-bold cursor-pointer pointer-events-auto backdrop-blur-sm',
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const imageViewerCounterStyle = tva({
|
|
48
|
+
base: 'absolute bottom-8 left-0 right-0 flex justify-center',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const imageViewerCounterTextStyle = tva({
|
|
52
|
+
base: 'text-white text-sm font-medium bg-black/60 px-4 py-2 rounded-full',
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
// Context for ImageViewer - with default values to prevent errors when used outside provider
|
|
56
|
+
interface ImageViewerContextType {
|
|
57
|
+
images: ImageItem[];
|
|
58
|
+
currentIndex: number;
|
|
59
|
+
isOpen: boolean;
|
|
60
|
+
open: () => void;
|
|
61
|
+
close: () => void;
|
|
62
|
+
goNext: () => void;
|
|
63
|
+
goPrevious: () => void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const ImageViewerContext = React.createContext<ImageViewerContextType>({
|
|
67
|
+
images: [],
|
|
68
|
+
currentIndex: 0,
|
|
69
|
+
isOpen: false,
|
|
70
|
+
open: () => {},
|
|
71
|
+
close: () => {},
|
|
72
|
+
goNext: () => {},
|
|
73
|
+
goPrevious: () => {},
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const useImageViewerContext = () => {
|
|
77
|
+
const context = React.useContext(ImageViewerContext);
|
|
78
|
+
return context;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// Main ImageViewer Component
|
|
82
|
+
const ImageViewer = React.forwardRef<HTMLDivElement, ImageViewerProps>(
|
|
83
|
+
function ImageViewer(
|
|
84
|
+
{
|
|
85
|
+
images,
|
|
86
|
+
defaultOpen = false,
|
|
87
|
+
isOpen: controlledIsOpen,
|
|
88
|
+
onOpenChange,
|
|
89
|
+
onIndexChange,
|
|
90
|
+
initialIndex = 0,
|
|
91
|
+
children,
|
|
92
|
+
},
|
|
93
|
+
ref
|
|
94
|
+
) {
|
|
95
|
+
const [uncontrolledIsOpen, setUncontrolledIsOpen] = useState(defaultOpen);
|
|
96
|
+
const [currentIndex, setCurrentIndex] = useState(initialIndex);
|
|
97
|
+
|
|
98
|
+
const isControlled = controlledIsOpen !== undefined;
|
|
99
|
+
const isOpen = isControlled ? controlledIsOpen : uncontrolledIsOpen;
|
|
100
|
+
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
onIndexChange?.(currentIndex);
|
|
103
|
+
}, [currentIndex, onIndexChange]);
|
|
104
|
+
|
|
105
|
+
const open = useCallback(() => {
|
|
106
|
+
if (!isControlled) {
|
|
107
|
+
setUncontrolledIsOpen(true);
|
|
108
|
+
}
|
|
109
|
+
onOpenChange?.(true);
|
|
110
|
+
}, [isControlled, onOpenChange]);
|
|
111
|
+
|
|
112
|
+
const close = useCallback(() => {
|
|
113
|
+
if (!isControlled) {
|
|
114
|
+
setUncontrolledIsOpen(false);
|
|
115
|
+
}
|
|
116
|
+
onOpenChange?.(false);
|
|
117
|
+
}, [isControlled, onOpenChange]);
|
|
118
|
+
|
|
119
|
+
const goNext = useCallback(() => {
|
|
120
|
+
setCurrentIndex((prev) => Math.min(prev + 1, images.length - 1));
|
|
121
|
+
}, [images.length]);
|
|
122
|
+
|
|
123
|
+
const goPrevious = useCallback(() => {
|
|
124
|
+
setCurrentIndex((prev) => Math.max(prev - 1, 0));
|
|
125
|
+
}, []);
|
|
126
|
+
|
|
127
|
+
const contextValue = React.useMemo(
|
|
128
|
+
() => ({
|
|
129
|
+
images,
|
|
130
|
+
currentIndex,
|
|
131
|
+
isOpen,
|
|
132
|
+
open,
|
|
133
|
+
close,
|
|
134
|
+
goNext,
|
|
135
|
+
goPrevious,
|
|
136
|
+
}),
|
|
137
|
+
[images, currentIndex, isOpen, open, close, goNext, goPrevious]
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
<div ref={ref} className="w-full">
|
|
142
|
+
<ImageViewerContext.Provider value={contextValue}>
|
|
143
|
+
{children}
|
|
144
|
+
</ImageViewerContext.Provider>
|
|
145
|
+
</div>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
// Trigger Component
|
|
151
|
+
const ImageViewerTrigger = React.forwardRef<
|
|
152
|
+
HTMLDivElement,
|
|
153
|
+
ImageViewerTriggerProps
|
|
154
|
+
>(function ImageViewerTrigger({ children, onPress, ...props }, ref) {
|
|
155
|
+
const { open } = useImageViewerContext();
|
|
156
|
+
|
|
157
|
+
const handlePress = useCallback(() => {
|
|
158
|
+
onPress?.();
|
|
159
|
+
open();
|
|
160
|
+
}, [onPress, open]);
|
|
161
|
+
|
|
162
|
+
return (
|
|
163
|
+
<div ref={ref} onClick={handlePress} className="cursor-pointer" {...props}>
|
|
164
|
+
{children}
|
|
165
|
+
</div>
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// Content Component (Uses gluestack Overlay for proper portal rendering)
|
|
170
|
+
// Context provider is placed INSIDE the Overlay so portaled content has access
|
|
171
|
+
const ImageViewerContent = React.forwardRef<
|
|
172
|
+
HTMLDivElement,
|
|
173
|
+
{ children?: React.ReactNode }
|
|
174
|
+
>(function ImageViewerContent({ children }, ref) {
|
|
175
|
+
const context = useImageViewerContext();
|
|
176
|
+
const { images, currentIndex, isOpen, close, goNext, goPrevious } = context;
|
|
177
|
+
const currentImage = images[currentIndex];
|
|
178
|
+
|
|
179
|
+
// Handle keyboard navigation
|
|
180
|
+
useEffect(() => {
|
|
181
|
+
if (!isOpen) return;
|
|
182
|
+
|
|
183
|
+
const handleKeyDown = (e: KeyboardEvent) => {
|
|
184
|
+
if (e.key === 'Escape') close();
|
|
185
|
+
if (e.key === 'ArrowLeft') goPrevious();
|
|
186
|
+
if (e.key === 'ArrowRight') goNext();
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
190
|
+
document.body.style.overflow = 'hidden';
|
|
191
|
+
|
|
192
|
+
return () => {
|
|
193
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
194
|
+
document.body.style.overflow = '';
|
|
195
|
+
};
|
|
196
|
+
}, [isOpen, close, goNext, goPrevious]);
|
|
197
|
+
|
|
198
|
+
return (
|
|
199
|
+
<Overlay
|
|
200
|
+
isOpen={isOpen}
|
|
201
|
+
onRequestClose={close}
|
|
202
|
+
isKeyboardDismissable={true}
|
|
203
|
+
>
|
|
204
|
+
<ImageViewerContext.Provider value={context}>
|
|
205
|
+
<div className={imageViewerModalStyle({})}>
|
|
206
|
+
<div ref={ref} className={imageViewerContentStyle({})}>
|
|
207
|
+
{currentImage && (
|
|
208
|
+
<img
|
|
209
|
+
src={currentImage.url}
|
|
210
|
+
alt={currentImage.alt || `Image ${currentIndex + 1}`}
|
|
211
|
+
className="max-w-full max-h-[80vh] object-contain"
|
|
212
|
+
/>
|
|
213
|
+
)}
|
|
214
|
+
{children}
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</ImageViewerContext.Provider>
|
|
218
|
+
</Overlay>
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
// Close Button Component
|
|
223
|
+
const ImageViewerCloseButton = React.forwardRef<
|
|
224
|
+
HTMLButtonElement,
|
|
225
|
+
{ className?: string }
|
|
226
|
+
>(function ImageViewerCloseButton({ className, ...props }, ref) {
|
|
227
|
+
const { close } = useImageViewerContext();
|
|
228
|
+
|
|
229
|
+
return (
|
|
230
|
+
<button
|
|
231
|
+
ref={ref}
|
|
232
|
+
onClick={close}
|
|
233
|
+
className={imageViewerCloseButtonStyle({ class: className })}
|
|
234
|
+
aria-label="Close image viewer"
|
|
235
|
+
{...props}
|
|
236
|
+
>
|
|
237
|
+
✕
|
|
238
|
+
</button>
|
|
239
|
+
);
|
|
240
|
+
});
|
|
241
|
+
|
|
242
|
+
// Navigation Component
|
|
243
|
+
const ImageViewerNavigation = React.forwardRef<
|
|
244
|
+
HTMLDivElement,
|
|
245
|
+
{ className?: string }
|
|
246
|
+
>(function ImageViewerNavigation({ className }, ref) {
|
|
247
|
+
const { goPrevious, goNext, currentIndex, images } = useImageViewerContext();
|
|
248
|
+
|
|
249
|
+
const canGoPrevious = currentIndex > 0;
|
|
250
|
+
const canGoNext = currentIndex < images.length - 1;
|
|
251
|
+
|
|
252
|
+
return (
|
|
253
|
+
<div ref={ref} className={imageViewerNavigationStyle({ class: className })}>
|
|
254
|
+
{canGoPrevious && (
|
|
255
|
+
<button
|
|
256
|
+
onClick={goPrevious}
|
|
257
|
+
className={imageViewerNavButtonStyle({})}
|
|
258
|
+
aria-label="Previous image"
|
|
259
|
+
>
|
|
260
|
+
‹
|
|
261
|
+
</button>
|
|
262
|
+
)}
|
|
263
|
+
<div className="flex-1" />
|
|
264
|
+
{canGoNext && (
|
|
265
|
+
<button
|
|
266
|
+
onClick={goNext}
|
|
267
|
+
className={imageViewerNavButtonStyle({})}
|
|
268
|
+
aria-label="Next image"
|
|
269
|
+
>
|
|
270
|
+
›
|
|
271
|
+
</button>
|
|
272
|
+
)}
|
|
273
|
+
</div>
|
|
274
|
+
);
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
// Counter Component
|
|
278
|
+
const ImageViewerCounter = React.forwardRef<
|
|
279
|
+
HTMLDivElement,
|
|
280
|
+
{ className?: string }
|
|
281
|
+
>(function ImageViewerCounter({ className }, ref) {
|
|
282
|
+
const { currentIndex, images } = useImageViewerContext();
|
|
283
|
+
|
|
284
|
+
return (
|
|
285
|
+
<div ref={ref} className={imageViewerCounterStyle({ class: className })}>
|
|
286
|
+
<span className={imageViewerCounterTextStyle({})}>
|
|
287
|
+
{currentIndex + 1} / {images.length}
|
|
288
|
+
</span>
|
|
289
|
+
</div>
|
|
290
|
+
);
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
export {
|
|
294
|
+
ImageViewer,
|
|
295
|
+
ImageViewerTrigger,
|
|
296
|
+
ImageViewerContent,
|
|
297
|
+
ImageViewerCloseButton,
|
|
298
|
+
ImageViewerNavigation,
|
|
299
|
+
ImageViewerCounter,
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export type { ImageItem, ImageViewerProps, ImageViewerTriggerProps };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './actionsheet';
|
|
3
|
+
export * from './alert';
|
|
4
|
+
export * from './alert-dialog';
|
|
5
|
+
export * from './avatar';
|
|
6
|
+
export * from './badge';
|
|
7
|
+
export * from './bottomsheet';
|
|
8
|
+
export * from './box';
|
|
9
|
+
export * from './button';
|
|
10
|
+
export * from './calendar';
|
|
11
|
+
export * from './card';
|
|
12
|
+
export * from './center';
|
|
13
|
+
export * from './checkbox';
|
|
14
|
+
export * from './date-time-picker';
|
|
15
|
+
export * from './divider';
|
|
16
|
+
export * from './drawer';
|
|
17
|
+
export * from './fab';
|
|
18
|
+
export * from './flat-list';
|
|
19
|
+
export * from './form-control';
|
|
20
|
+
export * from './gluestack-ui-provider';
|
|
21
|
+
export * from './grid';
|
|
22
|
+
export * from './heading';
|
|
23
|
+
export * from './hstack';
|
|
24
|
+
export * from './icon';
|
|
25
|
+
export * from './image';
|
|
26
|
+
export * from './image-background';
|
|
27
|
+
export * from './image-viewer';
|
|
28
|
+
export * from './input';
|
|
29
|
+
export * from './input-accessory-view';
|
|
30
|
+
export * from './keyboard-avoiding-view';
|
|
31
|
+
export * from './link';
|
|
32
|
+
export * from './liquid-glass';
|
|
33
|
+
export * from './menu';
|
|
34
|
+
export * from './modal';
|
|
35
|
+
export * from './popover';
|
|
36
|
+
export * from './portal';
|
|
37
|
+
export * from './pressable';
|
|
38
|
+
export * from './progress';
|
|
39
|
+
export * from './radio';
|
|
40
|
+
export * from './refresh-control';
|
|
41
|
+
export * from './safe-area-view';
|
|
42
|
+
export * from './scroll-view';
|
|
43
|
+
export * from './section-list';
|
|
44
|
+
export * from './select';
|
|
45
|
+
export * from './skeleton';
|
|
46
|
+
export * from './slider';
|
|
47
|
+
export * from './spinner';
|
|
48
|
+
export * from './status-bar';
|
|
49
|
+
export * from './switch';
|
|
50
|
+
export * from './table';
|
|
51
|
+
export * from './tabs';
|
|
52
|
+
export * from './text';
|
|
53
|
+
export * from './textarea';
|
|
54
|
+
export * from './toast';
|
|
55
|
+
export * from './tooltip';
|
|
56
|
+
export * from './view';
|
|
57
|
+
export * from './virtualized-list';
|
|
58
|
+
export * from './vstack';
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { createInput } from '@gluestack-ui/core/input/creator';
|
|
4
|
+
import { View, Pressable, TextInput } from 'react-native';
|
|
5
|
+
import { tva } from '@gluestack-ui/utils/nativewind-utils';
|
|
6
|
+
import { withStyleContext } from '@gluestack-ui/utils/nativewind-utils';
|
|
7
|
+
import { cssInterop } from 'nativewind';
|
|
8
|
+
import type { VariantProps } from '@gluestack-ui/utils/nativewind-utils';
|
|
9
|
+
import { UIIcon } from '@gluestack-ui/core/icon/creator';
|
|
10
|
+
|
|
11
|
+
const SCOPE = 'INPUT';
|
|
12
|
+
|
|
13
|
+
const UIInput = createInput({
|
|
14
|
+
Root: withStyleContext(View, SCOPE),
|
|
15
|
+
Icon: UIIcon,
|
|
16
|
+
Slot: Pressable,
|
|
17
|
+
Input: TextInput,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
cssInterop(UIIcon, {
|
|
21
|
+
className: {
|
|
22
|
+
target: 'style',
|
|
23
|
+
nativeStyleToProp: {
|
|
24
|
+
height: true,
|
|
25
|
+
width: true,
|
|
26
|
+
fill: true,
|
|
27
|
+
color: 'classNameColor',
|
|
28
|
+
stroke: true,
|
|
29
|
+
} as any,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const inputStyle = tva({
|
|
34
|
+
base: 'h-9 w-full flex-row items-center rounded-md border border-border dark:bg-input/30 bg-transparent shadow-xs transition-[color,box-shadow] overflow-hidden data-[focus=true]:outline-none data-[focus=true]:border-ring dark:data-[focus=true]:border-ring data-[focus=true]:web:ring-[3px] data-[focus=true]:web:ring-ring/50 data-[invalid=true]:border-destructive/40 dark:data-[invalid=true]:border-destructive/40 data-[invalid=true]:web:ring-destructive/20 dark:data-[invalid=true]:web:ring-destructive/40 data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50 px-3 gap-2',
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const inputIconStyle = tva({
|
|
38
|
+
base: 'justify-center items-center text-muted-foreground fill-none h-4 w-4',
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const inputSlotStyle = tva({
|
|
42
|
+
base: 'justify-center items-center web:disabled:cursor-not-allowed',
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const inputFieldStyle = tva({
|
|
46
|
+
base: 'flex-1 text-foreground text-sm md:text-sm py-1 h-full placeholder:text-muted-foreground web:outline-none ios:leading-[0px] web:cursor-text web:data-[disabled=true]:cursor-not-allowed',
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
type IInputProps = React.ComponentProps<typeof UIInput> &
|
|
50
|
+
VariantProps<typeof inputStyle> & { className?: string };
|
|
51
|
+
const Input = React.forwardRef<React.ComponentRef<typeof UIInput>, IInputProps>(
|
|
52
|
+
function Input({ className, ...props }, ref) {
|
|
53
|
+
return (
|
|
54
|
+
<UIInput
|
|
55
|
+
ref={ref}
|
|
56
|
+
{...props}
|
|
57
|
+
className={inputStyle({ class: className })}
|
|
58
|
+
context={{}}
|
|
59
|
+
/>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
type IInputIconProps = React.ComponentProps<typeof UIInput.Icon> &
|
|
65
|
+
VariantProps<typeof inputIconStyle> & {
|
|
66
|
+
className?: string;
|
|
67
|
+
height?: number;
|
|
68
|
+
width?: number;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const InputIcon = React.forwardRef<
|
|
72
|
+
React.ComponentRef<typeof UIInput.Icon>,
|
|
73
|
+
IInputIconProps
|
|
74
|
+
>(function InputIcon({ className, ...props }, ref) {
|
|
75
|
+
return (
|
|
76
|
+
<UIInput.Icon
|
|
77
|
+
ref={ref}
|
|
78
|
+
{...props}
|
|
79
|
+
className={inputIconStyle({ class: className })}
|
|
80
|
+
/>
|
|
81
|
+
);
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
type IInputSlotProps = React.ComponentProps<typeof UIInput.Slot> &
|
|
85
|
+
VariantProps<typeof inputSlotStyle> & { className?: string };
|
|
86
|
+
|
|
87
|
+
const InputSlot = React.forwardRef<
|
|
88
|
+
React.ComponentRef<typeof UIInput.Slot>,
|
|
89
|
+
IInputSlotProps
|
|
90
|
+
>(function InputSlot({ className, ...props }, ref) {
|
|
91
|
+
return (
|
|
92
|
+
<UIInput.Slot
|
|
93
|
+
ref={ref}
|
|
94
|
+
{...props}
|
|
95
|
+
className={inputSlotStyle({
|
|
96
|
+
class: className,
|
|
97
|
+
})}
|
|
98
|
+
/>
|
|
99
|
+
);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
type IInputFieldProps = React.ComponentProps<typeof UIInput.Input> &
|
|
103
|
+
VariantProps<typeof inputFieldStyle> & { className?: string };
|
|
104
|
+
|
|
105
|
+
const InputField = React.forwardRef<
|
|
106
|
+
React.ComponentRef<typeof UIInput.Input>,
|
|
107
|
+
IInputFieldProps
|
|
108
|
+
>(function InputField({ className, ...props }, ref) {
|
|
109
|
+
return (
|
|
110
|
+
<UIInput.Input
|
|
111
|
+
ref={ref}
|
|
112
|
+
{...props}
|
|
113
|
+
className={inputFieldStyle({
|
|
114
|
+
class: className,
|
|
115
|
+
})}
|
|
116
|
+
/>
|
|
117
|
+
);
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
Input.displayName = 'Input';
|
|
121
|
+
InputIcon.displayName = 'InputIcon';
|
|
122
|
+
InputSlot.displayName = 'InputSlot';
|
|
123
|
+
InputField.displayName = 'InputField';
|
|
124
|
+
|
|
125
|
+
export { Input, InputField, InputIcon, InputSlot };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createLink } from '@gluestack-ui/core/link/creator';
|
|
3
|
+
import { Pressable } from 'react-native';
|
|
4
|
+
import { Text } from 'react-native';
|
|
5
|
+
|
|
6
|
+
import { tva } from '@gluestack-ui/utils/nativewind-utils';
|
|
7
|
+
import { withStyleContext } from '@gluestack-ui/utils/nativewind-utils';
|
|
8
|
+
import { cssInterop } from 'nativewind';
|
|
9
|
+
import type { VariantProps } from '@gluestack-ui/utils/nativewind-utils';
|
|
10
|
+
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export const UILink = createLink({
|
|
13
|
+
Root: withStyleContext(Pressable),
|
|
14
|
+
Text: Text,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
cssInterop(UILink, { className: 'style' });
|
|
18
|
+
cssInterop(UILink.Text, { className: 'style' });
|
|
19
|
+
|
|
20
|
+
const linkStyle = tva({
|
|
21
|
+
base: 'group/link web:outline-0 data-[disabled=true]:web:cursor-not-allowed data-[focus-visible=true]:web:ring-2 data-[focus-visible=true]:web:ring-indicator-primary data-[focus-visible=true]:web:outline-0 data-[disabled=true]:opacity-4 ',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const linkTextStyle = tva({
|
|
25
|
+
base: 'underline text-primary data-[hover=true]:text-primary/80 data-[hover=true]:no-underline data-[active=true]:text-destructive/80 font-normal font-body web:font-sans web:tracking-sm web:my-0 web:bg-transparent web:border-0 web:box-border web:inline web:list-none web:m-0 web:p-0 web:relative web:text-start web:whitespace-pre-wrap web:break-words',
|
|
26
|
+
|
|
27
|
+
variants: {
|
|
28
|
+
isTruncated: {
|
|
29
|
+
true: 'web:truncate',
|
|
30
|
+
},
|
|
31
|
+
bold: {
|
|
32
|
+
true: 'font-bold',
|
|
33
|
+
},
|
|
34
|
+
underline: {
|
|
35
|
+
true: 'underline',
|
|
36
|
+
},
|
|
37
|
+
strikeThrough: {
|
|
38
|
+
true: 'line-through',
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
'2xs': 'text-2xs',
|
|
42
|
+
'xs': 'text-xs',
|
|
43
|
+
'sm': 'text-sm',
|
|
44
|
+
'md': 'text-base',
|
|
45
|
+
'lg': 'text-lg',
|
|
46
|
+
'xl': 'text-xl',
|
|
47
|
+
'2xl': 'text-2xl',
|
|
48
|
+
'3xl': 'text-3xl',
|
|
49
|
+
'4xl': 'text-4xl',
|
|
50
|
+
'5xl': 'text-5xl',
|
|
51
|
+
'6xl': 'text-6xl',
|
|
52
|
+
},
|
|
53
|
+
sub: {
|
|
54
|
+
true: 'text-xs',
|
|
55
|
+
},
|
|
56
|
+
italic: {
|
|
57
|
+
true: 'italic',
|
|
58
|
+
},
|
|
59
|
+
highlight: {
|
|
60
|
+
true: 'bg-yellow-500',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
type ILinkProps = React.ComponentProps<typeof UILink> &
|
|
66
|
+
VariantProps<typeof linkStyle> & { className?: string };
|
|
67
|
+
|
|
68
|
+
const Link = React.forwardRef<React.ComponentRef<typeof UILink>, ILinkProps>(
|
|
69
|
+
function Link({ className, ...props }, ref) {
|
|
70
|
+
return (
|
|
71
|
+
<UILink
|
|
72
|
+
ref={ref}
|
|
73
|
+
{...props}
|
|
74
|
+
className={linkStyle({ class: className })}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
type ILinkTextProps = React.ComponentProps<typeof UILink.Text> &
|
|
81
|
+
VariantProps<typeof linkTextStyle> & { className?: string };
|
|
82
|
+
|
|
83
|
+
const LinkText = React.forwardRef<
|
|
84
|
+
React.ComponentRef<typeof UILink.Text>,
|
|
85
|
+
ILinkTextProps
|
|
86
|
+
>(function LinkText({ className, size = 'md', ...props }, ref) {
|
|
87
|
+
return (
|
|
88
|
+
<UILink.Text
|
|
89
|
+
ref={ref}
|
|
90
|
+
{...props}
|
|
91
|
+
className={linkTextStyle({
|
|
92
|
+
class: className,
|
|
93
|
+
size,
|
|
94
|
+
})}
|
|
95
|
+
/>
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
Link.displayName = 'Link';
|
|
100
|
+
LinkText.displayName = 'LinkText';
|
|
101
|
+
|
|
102
|
+
export { Link, LinkText };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { tva } from '@gluestack-ui/utils/nativewind-utils';
|
|
2
|
+
import {
|
|
3
|
+
GlassContainer as ExpoGlassContainer,
|
|
4
|
+
GlassView as ExpoGlassView,
|
|
5
|
+
type GlassContainerProps,
|
|
6
|
+
type GlassViewProps
|
|
7
|
+
} from 'expo-glass-effect';
|
|
8
|
+
|
|
9
|
+
import { cssInterop } from 'nativewind';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
|
|
12
|
+
const glassViewStyle = tva({
|
|
13
|
+
base: 'overflow-hidden',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
const glassContainerStyle = tva({
|
|
17
|
+
base: 'overflow-hidden',
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
type IGlassViewProps = GlassViewProps & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type IGlassContainerProps = GlassContainerProps & {
|
|
25
|
+
className?: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const GlassView = React.forwardRef<
|
|
29
|
+
React.ComponentRef<typeof ExpoGlassView>,
|
|
30
|
+
IGlassViewProps
|
|
31
|
+
>(function GlassView({ className, ...props }, ref) {
|
|
32
|
+
return (
|
|
33
|
+
<ExpoGlassView
|
|
34
|
+
ref={ref}
|
|
35
|
+
{...props}
|
|
36
|
+
// @ts-ignore - className support via cssInterop
|
|
37
|
+
className={glassViewStyle({ className })}
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
GlassView.displayName = 'GlassView';
|
|
43
|
+
|
|
44
|
+
export const GlassContainer = React.forwardRef<
|
|
45
|
+
React.ComponentRef<typeof ExpoGlassContainer>,
|
|
46
|
+
IGlassContainerProps
|
|
47
|
+
>(function GlassContainer({ className, ...props }, ref) {
|
|
48
|
+
return (
|
|
49
|
+
<ExpoGlassContainer
|
|
50
|
+
ref={ref}
|
|
51
|
+
{...props}
|
|
52
|
+
// @ts-ignore - className support via cssInterop
|
|
53
|
+
className={glassContainerStyle({ className })}
|
|
54
|
+
/>
|
|
55
|
+
);
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
GlassContainer.displayName = 'GlassContainer';
|
|
59
|
+
|
|
60
|
+
export { isGlassEffectAPIAvailable, isLiquidGlassAvailable } from 'expo-glass-effect';
|
|
61
|
+
export type {
|
|
62
|
+
GlassColorScheme,
|
|
63
|
+
GlassContainerProps,
|
|
64
|
+
GlassStyle,
|
|
65
|
+
GlassViewProps
|
|
66
|
+
} from 'expo-glass-effect';
|
|
67
|
+
|
|
68
|
+
cssInterop(ExpoGlassView, {
|
|
69
|
+
className: 'style',
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
cssInterop(ExpoGlassContainer, {
|
|
73
|
+
className: 'style',
|
|
74
|
+
});
|