@chem-po/react-web 0.0.2 → 0.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/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +323 -0
- package/dist/index.d.ts +323 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/package.json +3 -3
package/dist/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.page{display:flex;align-items:center;flex-direction:column;position:relative;overflow:hidden;width:100%;min-height:0;flex:1}.page-enter{opacity:0;transform:scale(1.05);overflow:hidden}.page-enter-active{opacity:1;transform:scale(1);overflow:hidden!important;transition:opacity .3s,transform .3s}.page-exit{opacity:1;transform:scale(1)}.page-exit-active{opacity:0;overflow:hidden!important;transition:opacity .3s,transform .3s}.gradient-text{background-clip:text!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important}.react-date-picker,.react-datetime-picker,.react-time-picker{border:none;width:100%;box-sizing:border-box;margin:.25rem;padding:.5rem;border:1px solid #cdcdcd}.react-date-picker__wrapper,.react-datetime-picker__wrapper,.react-time-picker__wrapper{width:100%;display:flex;border:none!important}.react-date-picker__clear-button__icon,.react-date-picker__button__icon,.react-time-picker__clear-button,.react-time-picker__button__icon{margin-left:auto}.react-date-picker__inputGroup,.react-datetime-picker__inputGroup{flex:1}.react-date-picker__inputGroup>input,.react-time-picker__inputGroup>input,.react-time-picker__inputGroup>select{font-size:1rem;color:#000a;background-color:transparent;width:50px;outline:none;margin:0 .3rem;font-family:Public Sans}.number-input::placeholder{opacity:.7;color:#000}.number-input-dark::placeholder{opacity:.7;color:#fff}.upload-enter{opacity:0;height:0;overflow:hidden}.upload-enter-active{opacity:1;height:26px;overflow:hidden;transition:opacity .3s,height .3s}.upload-exit{opacity:1;height:26px;overflow:hidden}.upload-exit-active{opacity:0;height:0;overflow:hidden;transition:opacity .3s,height .3s}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/box/MobileFrame/styles.css","../src/components/text/GradientText/styles.css","../src/components/form/input/input.css","../src/components/form/input/number/styles.css","../src/components/form/UploadProgress/styles.css"],"sourcesContent":[".page {\n display: flex;\n align-items: center;\n flex-direction: column;\n position: relative;\n overflow: hidden;\n width: 100%;\n min-height: 0;\n flex: 1;\n}\n\n.page-enter {\n opacity: 0;\n transform: scale(1.05);\n overflow: hidden;\n}\n\n.page-enter-active {\n opacity: 1;\n transform: scale(1);\n overflow: hidden !important;\n transition: opacity 300ms, transform 300ms;\n}\n\n.page-exit {\n opacity: 1;\n transform: scale(1);\n}\n\n.page-exit-active {\n opacity: 0;\n overflow: hidden !important;\n /* transform: scale(0.95); */\n transition: opacity 300ms, transform 300ms;\n}\n",".gradient-text {\n background-clip: text !important;\n -webkit-background-clip: text !important;\n -webkit-text-fill-color: transparent !important;\n}\n",".react-date-picker,\n.react-datetime-picker,\n.react-time-picker {\n border: none;\n width: 100%;\n box-sizing: border-box;\n margin: 0.25rem 0.25rem;\n padding: 0.5rem 0.5rem;\n /* box-shadow: 0 0 7px rgba(0, 0, 0, 0.1); */\n border: 1px solid #cdcdcd;\n /* background-color: white; */\n}\n\n.react-date-picker__wrapper,\n.react-datetime-picker__wrapper,\n.react-time-picker__wrapper {\n width: 100%;\n display: flex;\n border: none !important;\n}\n\n.react-date-picker__clear-button__icon,\n.react-date-picker__button__icon,\n.react-time-picker__clear-button,\n.react-time-picker__button__icon {\n margin-left: auto;\n}\n\n.react-date-picker__inputGroup,\n.react-datetime-picker__inputGroup {\n flex: 1;\n}\n\n.react-date-picker__inputGroup > input,\n.react-time-picker__inputGroup > input,\n.react-time-picker__inputGroup > select {\n font-size: 1rem;\n color: #000000aa;\n background-color: transparent;\n width: 50px;\n outline: none;\n margin: 0 0.3rem;\n font-family: 'Public Sans';\n}\n",".number-input::placeholder {\n opacity: 0.7;\n color: #000;\n}\n.number-input-dark::placeholder {\n opacity: 0.7;\n color: white;\n}\n",".upload-enter {\n opacity: 0;\n height: 0;\n overflow: hidden;\n}\n.upload-enter-active {\n opacity: 1;\n height: 26px;\n overflow: hidden;\n transition: opacity 300ms, height 300ms;\n}\n\n.upload-exit {\n opacity: 1;\n height: 26px;\n overflow: hidden;\n}\n.upload-exit-active {\n opacity: 0;\n height: 0;\n overflow: hidden;\n transition: opacity 300ms, height 300ms;\n}\n"],"mappings":"AAAA,CAAC,KACC,QAAS,KACT,YAAa,OACb,eAAgB,OAChB,SAAU,SACV,SAAU,OACV,MAAO,KACP,WAAY,EACZ,KAAM,CACR,CAEA,CAAC,WACC,QAAS,EACT,UAAW,MAAM,MACjB,SAAU,MACZ,CAEA,CAAC,kBACC,QAAS,EACT,UAAW,MAAM,GACjB,SAAU,iBACV,WAAY,QAAQ,GAAK,CAAE,UAAU,GACvC,CAEA,CAAC,UACC,QAAS,EACT,UAAW,MAAM,EACnB,CAEA,CAAC,iBACC,QAAS,EACT,SAAU,iBAEV,WAAY,QAAQ,GAAK,CAAE,UAAU,GACvC,CClCA,CAAC,cACC,gBAAiB,eACjB,wBAAyB,eACzB,wBAAyB,qBAC3B,CCJA,CAAC,kBACD,CAAC,sBACD,CAAC,kBACC,OAAQ,KACR,MAAO,KACP,WAAY,WALd,OAMU,OANV,QAOW,MAET,OAAQ,IAAI,MAAM,OAEpB,CAEA,CAAC,2BACD,CAAC,+BACD,CAAC,2BACC,MAAO,KACP,QAAS,KACT,OAAQ,cACV,CAEA,CAAC,sCACD,CAAC,gCACD,CAAC,gCACD,CAAC,gCACC,YAAa,IACf,CAEA,CAAC,8BACD,CAAC,kCACC,KAAM,CACR,CAEA,CALC,6BAK8B,CAAE,MACjC,CAAC,6BAA8B,CAAE,MACjC,CADC,6BAC8B,CAAE,OAC/B,UAAW,KACX,MAAO,MACP,iBAAkB,YAClB,MAAO,KACP,QAAS,KAxCX,OAyCU,EAAE,MACV,YAAa,WACf,CC3CA,CAAC,YAAY,cACX,QAAS,GACT,MAAO,IACT,CACA,CAAC,iBAAiB,cAChB,QAAS,GACT,MAAO,IACT,CCPA,CAAC,aACC,QAAS,EACT,OAAQ,EACR,SAAU,MACZ,CACA,CAAC,oBACC,QAAS,EACT,OAAQ,KACR,SAAU,OACV,WAAY,QAAQ,GAAK,CAAE,OAAO,GACpC,CAEA,CAAC,YACC,QAAS,EACT,OAAQ,KACR,SAAU,MACZ,CACA,CAAC,mBACC,QAAS,EACT,OAAQ,EACR,SAAU,OACV,WAAY,QAAQ,GAAK,CAAE,OAAO,GACpC","names":[]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
3
|
+
import { CenterProps, FlexProps, StackProps, BoxProps, IconButtonProps, CircularProgressProps, ImageProps, ButtonProps, ModalProps, ModalContentProps } from '@chakra-ui/react';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import react__default, { PropsWithChildren, FC, ReactNode, JSX, MouseEvent, CSSProperties } from 'react';
|
|
6
|
+
import { View, ListField, FormProps, DataViewProps, FieldMapFormProps, FieldFormProps, Field, EditableProps, ListProviderProps, ThemedAsset } from '@chem-po/react';
|
|
7
|
+
import { AnyObject, WithId, FetchFeedFunction, FileValue, InputRef, ImageViewOptions, SpotifyTrack } from '@chem-po/core';
|
|
8
|
+
|
|
9
|
+
interface SignInProps {
|
|
10
|
+
layout?: 'row' | 'column';
|
|
11
|
+
}
|
|
12
|
+
declare const SignIn: ({ layout }: SignInProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare const AbsoluteLogin: (props: SignInProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
declare const CollapseHorizontal: ({ width, children, active, duration, ...props }: CenterProps & {
|
|
16
|
+
width: number;
|
|
17
|
+
active: boolean;
|
|
18
|
+
duration?: number;
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const ContentBox: react.ForwardRefExoticComponent<FlexProps & react.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
|
|
23
|
+
declare const Expandable: ({ header, children, initExpanded, nested, alwaysExpanded, headerProps, iconColor, footer, isOpen: isOpenProp, onClose: onCloseProp, onOpen: onOpenProp, ...stackProps }: PropsWithChildren<StackProps & {
|
|
24
|
+
header: string | FC<{
|
|
25
|
+
isOpen: boolean;
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
}>;
|
|
28
|
+
footer?: FC<{
|
|
29
|
+
isOpen: boolean;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
}>;
|
|
32
|
+
headerProps?: StackProps;
|
|
33
|
+
nested?: boolean;
|
|
34
|
+
alwaysExpanded?: boolean;
|
|
35
|
+
initExpanded?: boolean;
|
|
36
|
+
isOpen?: boolean;
|
|
37
|
+
onClose?: () => void;
|
|
38
|
+
iconColor?: string;
|
|
39
|
+
onOpen?: () => void;
|
|
40
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
declare const ExpandOnMount: FC<BoxProps & {
|
|
43
|
+
in?: boolean;
|
|
44
|
+
animateOpacity?: boolean;
|
|
45
|
+
duration?: number;
|
|
46
|
+
onExited?: () => void;
|
|
47
|
+
}>;
|
|
48
|
+
|
|
49
|
+
declare const FullSizeContainer: ({ children, ...props }: Omit<BoxProps, "children"> & {
|
|
50
|
+
children: FC<{
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
}>;
|
|
54
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
55
|
+
declare const FullSizeProvider: ({ children, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const MobileFrame: ({ children, navBarChildren, views, }: PropsWithChildren<{
|
|
58
|
+
views: View[];
|
|
59
|
+
navBarChildren?: ReactNode;
|
|
60
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
declare const DeleteConfirmAlert: ({ confirmActive, onCancel, onConfirm, body, actionName, actionLoading, itemName, }: {
|
|
63
|
+
confirmActive: boolean;
|
|
64
|
+
onCancel: () => void;
|
|
65
|
+
onConfirm: () => void;
|
|
66
|
+
body?: string | ReactNode;
|
|
67
|
+
actionLoading?: boolean;
|
|
68
|
+
actionName?: string;
|
|
69
|
+
itemName: string;
|
|
70
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const DeleteButton: react__default.FC<Partial<IconButtonProps> & {
|
|
72
|
+
onDelete: (() => Promise<any>) | (() => void);
|
|
73
|
+
itemName: string;
|
|
74
|
+
actionName?: string;
|
|
75
|
+
noConfirm?: boolean;
|
|
76
|
+
text?: string;
|
|
77
|
+
alertBody?: string | ReactNode;
|
|
78
|
+
}>;
|
|
79
|
+
|
|
80
|
+
interface ToggleOption<Option extends string = string> {
|
|
81
|
+
id: Option;
|
|
82
|
+
label: string;
|
|
83
|
+
disabledMessage?: string;
|
|
84
|
+
Render: (selected: boolean) => JSX.Element;
|
|
85
|
+
}
|
|
86
|
+
interface ToggleProps<Option extends string> {
|
|
87
|
+
options: ToggleOption<Option>[];
|
|
88
|
+
value: Option;
|
|
89
|
+
size?: number;
|
|
90
|
+
onChange: (value: Option) => Promise<void> | void;
|
|
91
|
+
}
|
|
92
|
+
declare const Toggle: <Option extends string>({ value, onChange, size, options, }: ToggleProps<Option>) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare const ViewButton: FC<{
|
|
95
|
+
onClick: (e: MouseEvent) => void;
|
|
96
|
+
isOpen: boolean;
|
|
97
|
+
viewText?: string;
|
|
98
|
+
hideText?: string;
|
|
99
|
+
color?: string;
|
|
100
|
+
}>;
|
|
101
|
+
|
|
102
|
+
interface MediaFeedContextValue<T extends AnyObject = AnyObject> {
|
|
103
|
+
curr: WithId<T> | null;
|
|
104
|
+
}
|
|
105
|
+
declare const useMediaFeed: <T extends AnyObject = AnyObject>() => MediaFeedContextValue<T>;
|
|
106
|
+
|
|
107
|
+
type GetBackgroundUrl<T extends AnyObject = AnyObject> = (item: T) => string | null | undefined;
|
|
108
|
+
type GetBackgroundValue<T extends AnyObject = AnyObject> = (item: T) => FileValue | null | undefined;
|
|
109
|
+
interface MediaFeedProps<T extends AnyObject = AnyObject> {
|
|
110
|
+
collection: string;
|
|
111
|
+
fetch: FetchFeedFunction;
|
|
112
|
+
authRequired?: boolean;
|
|
113
|
+
limit?: number;
|
|
114
|
+
swipeDisabled?: boolean;
|
|
115
|
+
defaultBackground?: string;
|
|
116
|
+
getBackgroundUrl?: GetBackgroundUrl<T>;
|
|
117
|
+
getBackgroundValue?: GetBackgroundValue<T>;
|
|
118
|
+
RenderItem: (item: WithId<T>) => JSX.Element;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare const MediaFeed: <T extends AnyObject = AnyObject>({ fetch, collection: collectionPath, RenderItem, authRequired, getBackgroundUrl, getBackgroundValue, limit, defaultBackground, swipeDisabled, children, }: PropsWithChildren<MediaFeedProps<T>>) => react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
declare const ListFieldInput: FC<{
|
|
124
|
+
field: ListField;
|
|
125
|
+
name: string;
|
|
126
|
+
}>;
|
|
127
|
+
declare const FormElement: ({ field, name, }: {
|
|
128
|
+
field: FormProps["field"];
|
|
129
|
+
name: string;
|
|
130
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
131
|
+
declare const DataView: ({ field, value, onClose, onDelete, onSubmit, itemName, storagePath, path, }: DataViewProps & {
|
|
132
|
+
path?: string;
|
|
133
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
declare const FieldMapForm: FC<FieldMapFormProps>;
|
|
135
|
+
declare const FieldForm: FC<FieldFormProps>;
|
|
136
|
+
declare const Form: FC<FormProps>;
|
|
137
|
+
|
|
138
|
+
declare const Editable: <T extends Field>({ value: initValue, field, onSubmit, storagePath, style, onEditClose, onEditOpen, }: EditableProps<CSSProperties, T>) => react_jsx_runtime.JSX.Element;
|
|
139
|
+
|
|
140
|
+
declare const StandaloneInput: react.ForwardRefExoticComponent<{
|
|
141
|
+
onChange: (v?: any) => void;
|
|
142
|
+
value?: any;
|
|
143
|
+
field: Field;
|
|
144
|
+
onBlur?: () => void;
|
|
145
|
+
onFocus?: () => void;
|
|
146
|
+
theme?: "basic" | "detailed";
|
|
147
|
+
inEditable?: boolean;
|
|
148
|
+
style?: CSSProperties;
|
|
149
|
+
} & react.RefAttributes<InputRef>>;
|
|
150
|
+
|
|
151
|
+
declare const FileView: ({ value, hasUpload, noLabel, loading, imageOptions, }: {
|
|
152
|
+
value?: FileValue | null;
|
|
153
|
+
hasUpload?: boolean;
|
|
154
|
+
noLabel?: boolean;
|
|
155
|
+
loading?: boolean;
|
|
156
|
+
imageOptions?: ImageViewOptions;
|
|
157
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
declare const FieldView: ({ field, value, noLabel, style, }: {
|
|
160
|
+
field: Field;
|
|
161
|
+
value: any;
|
|
162
|
+
noLabel?: boolean;
|
|
163
|
+
style?: CSSProperties;
|
|
164
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
165
|
+
|
|
166
|
+
interface DataListHeaderProps {
|
|
167
|
+
onResize: (size: {
|
|
168
|
+
height: number;
|
|
169
|
+
width: number;
|
|
170
|
+
}) => void;
|
|
171
|
+
refetch?: () => void;
|
|
172
|
+
boxProps?: BoxProps;
|
|
173
|
+
}
|
|
174
|
+
interface DataListFooterProps {
|
|
175
|
+
flexProps?: FlexProps;
|
|
176
|
+
noFooter?: boolean;
|
|
177
|
+
onResize: (size: {
|
|
178
|
+
height: number;
|
|
179
|
+
width: number;
|
|
180
|
+
}) => void;
|
|
181
|
+
}
|
|
182
|
+
type ListViewProps<T extends AnyObject> = ListProviderProps<T> & {
|
|
183
|
+
flexProps?: FlexProps;
|
|
184
|
+
footerProps?: FlexProps;
|
|
185
|
+
noFooter?: boolean;
|
|
186
|
+
headerProps?: BoxProps;
|
|
187
|
+
modals?: ReactNode;
|
|
188
|
+
};
|
|
189
|
+
type ListContentProps<T extends AnyObject> = Omit<ListViewProps<T>, 'list' | 'basePath' | 'flexProps'>;
|
|
190
|
+
|
|
191
|
+
declare const DataList: <T extends AnyObject>({ list, basePath, flexProps, infiniteScroll, ...rest }: ListViewProps<T>) => react_jsx_runtime.JSX.Element;
|
|
192
|
+
|
|
193
|
+
declare const ListContainer: (props: FlexProps) => react_jsx_runtime.JSX.Element;
|
|
194
|
+
|
|
195
|
+
declare const ListContent: <T extends AnyObject>({ modals, noFooter, headerProps, footerProps, }: ListContentProps<T>) => react_jsx_runtime.JSX.Element;
|
|
196
|
+
|
|
197
|
+
declare const CircularProgress: (props: CircularProgressProps) => react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
199
|
+
declare const LottieLoadingLogo: ({ size, isLoading, speed, inFeed, asset, }: {
|
|
200
|
+
size?: number | string;
|
|
201
|
+
color?: string;
|
|
202
|
+
isLoading: boolean;
|
|
203
|
+
asset: ThemedAsset;
|
|
204
|
+
inFeed?: boolean;
|
|
205
|
+
speed?: number;
|
|
206
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
207
|
+
declare const LoadingLogo: ({ isLoading, size, inFeed, }: {
|
|
208
|
+
isLoading: boolean;
|
|
209
|
+
size?: number | string;
|
|
210
|
+
inFeed?: boolean;
|
|
211
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
212
|
+
declare const Loading: ({ text, inBox, stackProps, }: {
|
|
213
|
+
text?: string;
|
|
214
|
+
inBox?: boolean;
|
|
215
|
+
stackProps?: StackProps;
|
|
216
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare const LoadingOverlay: ({ isLoading, text, inFeed, ...props }: {
|
|
218
|
+
isLoading: boolean;
|
|
219
|
+
text?: string;
|
|
220
|
+
inFeed?: boolean;
|
|
221
|
+
} & CenterProps) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface LoadingImageProps {
|
|
224
|
+
src?: string | null;
|
|
225
|
+
loadingOverride?: boolean;
|
|
226
|
+
onLoad?: ImageProps['onLoad'];
|
|
227
|
+
alt?: string;
|
|
228
|
+
noFullView?: boolean;
|
|
229
|
+
buttonFullView?: boolean;
|
|
230
|
+
imageProps?: Omit<ImageProps, 'onLoad'>;
|
|
231
|
+
}
|
|
232
|
+
declare const LoadingImage: ({ src, loadingOverride, alt, onLoad, width, height, noFullView, buttonFullView, imageProps, ...boxProps }: LoadingImageProps & Omit<BoxProps, "onLoad">) => react_jsx_runtime.JSX.Element;
|
|
233
|
+
|
|
234
|
+
declare const LoadingSwitch: ({ value, label, onChange, }: {
|
|
235
|
+
value: boolean;
|
|
236
|
+
label: string;
|
|
237
|
+
onChange: (updated: boolean) => Promise<void>;
|
|
238
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare const PlayButton: ({ media, size, opacity, buttonProps, }: {
|
|
241
|
+
media: WithId<SpotifyTrack> | null;
|
|
242
|
+
size?: number;
|
|
243
|
+
opacity?: number;
|
|
244
|
+
withThumbnail?: boolean;
|
|
245
|
+
buttonProps?: ButtonProps;
|
|
246
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
247
|
+
|
|
248
|
+
type DefaultModalProps = PropsWithChildren<Omit<ModalProps, 'render'>> & {
|
|
249
|
+
contentProps?: ModalContentProps;
|
|
250
|
+
onContentMounted?: (mounted: boolean) => void;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
declare const DefaultModal: (props: DefaultModalProps) => react_jsx_runtime.JSX.Element;
|
|
254
|
+
|
|
255
|
+
declare const DesktopModal: ({ children, isOpen, contentProps, ...props }: DefaultModalProps) => react_jsx_runtime.JSX.Element;
|
|
256
|
+
|
|
257
|
+
declare const MobileOverlayBackground: ({ onClick }: {
|
|
258
|
+
onClick?: () => void;
|
|
259
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
260
|
+
declare const MobileModal: ({ isOpen, onClose, children, contentProps, onContentMounted, closeOnOverlayClick, }: DefaultModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
261
|
+
|
|
262
|
+
declare const NAV_BAR_HEIGHT = 50;
|
|
263
|
+
declare const NavBar: ({ selectedView, children, }: PropsWithChildren<{
|
|
264
|
+
selectedView?: View | null;
|
|
265
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
266
|
+
|
|
267
|
+
declare const ImageViewOverlay: ({ src, onClose }: {
|
|
268
|
+
src: string;
|
|
269
|
+
onClose: () => void;
|
|
270
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
271
|
+
|
|
272
|
+
declare const MobileOverlay: (props: FlexProps) => react_jsx_runtime.JSX.Element;
|
|
273
|
+
|
|
274
|
+
declare const NumberTicker: ({ value, duration }: {
|
|
275
|
+
value: number;
|
|
276
|
+
duration?: number;
|
|
277
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
278
|
+
|
|
279
|
+
declare const DarkModeToggle: () => react_jsx_runtime.JSX.Element;
|
|
280
|
+
declare const AbsoluteDarkModeToggle: (props: FlexProps) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
282
|
+
declare const ErrorView: ({ message }: {
|
|
283
|
+
message?: string;
|
|
284
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
285
|
+
|
|
286
|
+
declare const RedirectView: react__default.FC<{
|
|
287
|
+
loading?: boolean;
|
|
288
|
+
}>;
|
|
289
|
+
|
|
290
|
+
declare const switchTheme: {
|
|
291
|
+
baseStyle?: {
|
|
292
|
+
track: {
|
|
293
|
+
_focusVisible: {
|
|
294
|
+
boxShadow: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
} | undefined;
|
|
298
|
+
sizes?: {
|
|
299
|
+
[key: string]: _chakra_ui_react.PartsStyleInterpolation<{
|
|
300
|
+
keys: ("label" | "track" | "container" | "thumb")[];
|
|
301
|
+
}>;
|
|
302
|
+
} | undefined;
|
|
303
|
+
variants?: {
|
|
304
|
+
[key: string]: _chakra_ui_react.PartsStyleInterpolation<{
|
|
305
|
+
keys: ("label" | "track" | "container" | "thumb")[];
|
|
306
|
+
}>;
|
|
307
|
+
} | undefined;
|
|
308
|
+
defaultProps?: {
|
|
309
|
+
size?: string | number | undefined;
|
|
310
|
+
variant?: string | number | undefined;
|
|
311
|
+
colorScheme?: string | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
parts: ("label" | "track" | "container" | "thumb")[];
|
|
314
|
+
};
|
|
315
|
+
declare const headingFont = "Encode Sans";
|
|
316
|
+
declare const bodyFont = "Noto Sans";
|
|
317
|
+
declare const baseTheme: Record<string, any>;
|
|
318
|
+
|
|
319
|
+
declare const useBorderColor: () => "#00000033" | "#ffffff33";
|
|
320
|
+
|
|
321
|
+
declare const initializeScreen: () => () => void;
|
|
322
|
+
|
|
323
|
+
export { AbsoluteDarkModeToggle, AbsoluteLogin, CircularProgress, CollapseHorizontal, ContentBox, DarkModeToggle, DataList, type DataListFooterProps, type DataListHeaderProps, DataView, DefaultModal, DeleteButton, DeleteConfirmAlert, DesktopModal, Editable, ErrorView, ExpandOnMount, Expandable, FieldForm, FieldMapForm, FieldView, FileView, Form, FormElement, FullSizeContainer, FullSizeProvider, ImageViewOverlay, ListContainer, ListContent, type ListContentProps, ListFieldInput, type ListViewProps, Loading, LoadingImage, type LoadingImageProps, LoadingLogo, LoadingOverlay, LoadingSwitch, LottieLoadingLogo, MediaFeed, MobileFrame, MobileModal, MobileOverlay, MobileOverlayBackground, NAV_BAR_HEIGHT, NavBar, NumberTicker, PlayButton, RedirectView, SignIn, StandaloneInput, Toggle, type ToggleOption, type ToggleProps, ViewButton, baseTheme, bodyFont, headingFont, initializeScreen, switchTheme, useBorderColor, useMediaFeed };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
3
|
+
import { CenterProps, FlexProps, StackProps, BoxProps, IconButtonProps, CircularProgressProps, ImageProps, ButtonProps, ModalProps, ModalContentProps } from '@chakra-ui/react';
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import react__default, { PropsWithChildren, FC, ReactNode, JSX, MouseEvent, CSSProperties } from 'react';
|
|
6
|
+
import { View, ListField, FormProps, DataViewProps, FieldMapFormProps, FieldFormProps, Field, EditableProps, ListProviderProps, ThemedAsset } from '@chem-po/react';
|
|
7
|
+
import { AnyObject, WithId, FetchFeedFunction, FileValue, InputRef, ImageViewOptions, SpotifyTrack } from '@chem-po/core';
|
|
8
|
+
|
|
9
|
+
interface SignInProps {
|
|
10
|
+
layout?: 'row' | 'column';
|
|
11
|
+
}
|
|
12
|
+
declare const SignIn: ({ layout }: SignInProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare const AbsoluteLogin: (props: SignInProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
|
|
15
|
+
declare const CollapseHorizontal: ({ width, children, active, duration, ...props }: CenterProps & {
|
|
16
|
+
width: number;
|
|
17
|
+
active: boolean;
|
|
18
|
+
duration?: number;
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const ContentBox: react.ForwardRefExoticComponent<FlexProps & react.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
|
|
23
|
+
declare const Expandable: ({ header, children, initExpanded, nested, alwaysExpanded, headerProps, iconColor, footer, isOpen: isOpenProp, onClose: onCloseProp, onOpen: onOpenProp, ...stackProps }: PropsWithChildren<StackProps & {
|
|
24
|
+
header: string | FC<{
|
|
25
|
+
isOpen: boolean;
|
|
26
|
+
onClose: () => void;
|
|
27
|
+
}>;
|
|
28
|
+
footer?: FC<{
|
|
29
|
+
isOpen: boolean;
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
}>;
|
|
32
|
+
headerProps?: StackProps;
|
|
33
|
+
nested?: boolean;
|
|
34
|
+
alwaysExpanded?: boolean;
|
|
35
|
+
initExpanded?: boolean;
|
|
36
|
+
isOpen?: boolean;
|
|
37
|
+
onClose?: () => void;
|
|
38
|
+
iconColor?: string;
|
|
39
|
+
onOpen?: () => void;
|
|
40
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
declare const ExpandOnMount: FC<BoxProps & {
|
|
43
|
+
in?: boolean;
|
|
44
|
+
animateOpacity?: boolean;
|
|
45
|
+
duration?: number;
|
|
46
|
+
onExited?: () => void;
|
|
47
|
+
}>;
|
|
48
|
+
|
|
49
|
+
declare const FullSizeContainer: ({ children, ...props }: Omit<BoxProps, "children"> & {
|
|
50
|
+
children: FC<{
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
}>;
|
|
54
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
55
|
+
declare const FullSizeProvider: ({ children, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
declare const MobileFrame: ({ children, navBarChildren, views, }: PropsWithChildren<{
|
|
58
|
+
views: View[];
|
|
59
|
+
navBarChildren?: ReactNode;
|
|
60
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
61
|
+
|
|
62
|
+
declare const DeleteConfirmAlert: ({ confirmActive, onCancel, onConfirm, body, actionName, actionLoading, itemName, }: {
|
|
63
|
+
confirmActive: boolean;
|
|
64
|
+
onCancel: () => void;
|
|
65
|
+
onConfirm: () => void;
|
|
66
|
+
body?: string | ReactNode;
|
|
67
|
+
actionLoading?: boolean;
|
|
68
|
+
actionName?: string;
|
|
69
|
+
itemName: string;
|
|
70
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const DeleteButton: react__default.FC<Partial<IconButtonProps> & {
|
|
72
|
+
onDelete: (() => Promise<any>) | (() => void);
|
|
73
|
+
itemName: string;
|
|
74
|
+
actionName?: string;
|
|
75
|
+
noConfirm?: boolean;
|
|
76
|
+
text?: string;
|
|
77
|
+
alertBody?: string | ReactNode;
|
|
78
|
+
}>;
|
|
79
|
+
|
|
80
|
+
interface ToggleOption<Option extends string = string> {
|
|
81
|
+
id: Option;
|
|
82
|
+
label: string;
|
|
83
|
+
disabledMessage?: string;
|
|
84
|
+
Render: (selected: boolean) => JSX.Element;
|
|
85
|
+
}
|
|
86
|
+
interface ToggleProps<Option extends string> {
|
|
87
|
+
options: ToggleOption<Option>[];
|
|
88
|
+
value: Option;
|
|
89
|
+
size?: number;
|
|
90
|
+
onChange: (value: Option) => Promise<void> | void;
|
|
91
|
+
}
|
|
92
|
+
declare const Toggle: <Option extends string>({ value, onChange, size, options, }: ToggleProps<Option>) => react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare const ViewButton: FC<{
|
|
95
|
+
onClick: (e: MouseEvent) => void;
|
|
96
|
+
isOpen: boolean;
|
|
97
|
+
viewText?: string;
|
|
98
|
+
hideText?: string;
|
|
99
|
+
color?: string;
|
|
100
|
+
}>;
|
|
101
|
+
|
|
102
|
+
interface MediaFeedContextValue<T extends AnyObject = AnyObject> {
|
|
103
|
+
curr: WithId<T> | null;
|
|
104
|
+
}
|
|
105
|
+
declare const useMediaFeed: <T extends AnyObject = AnyObject>() => MediaFeedContextValue<T>;
|
|
106
|
+
|
|
107
|
+
type GetBackgroundUrl<T extends AnyObject = AnyObject> = (item: T) => string | null | undefined;
|
|
108
|
+
type GetBackgroundValue<T extends AnyObject = AnyObject> = (item: T) => FileValue | null | undefined;
|
|
109
|
+
interface MediaFeedProps<T extends AnyObject = AnyObject> {
|
|
110
|
+
collection: string;
|
|
111
|
+
fetch: FetchFeedFunction;
|
|
112
|
+
authRequired?: boolean;
|
|
113
|
+
limit?: number;
|
|
114
|
+
swipeDisabled?: boolean;
|
|
115
|
+
defaultBackground?: string;
|
|
116
|
+
getBackgroundUrl?: GetBackgroundUrl<T>;
|
|
117
|
+
getBackgroundValue?: GetBackgroundValue<T>;
|
|
118
|
+
RenderItem: (item: WithId<T>) => JSX.Element;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare const MediaFeed: <T extends AnyObject = AnyObject>({ fetch, collection: collectionPath, RenderItem, authRequired, getBackgroundUrl, getBackgroundValue, limit, defaultBackground, swipeDisabled, children, }: PropsWithChildren<MediaFeedProps<T>>) => react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
declare const ListFieldInput: FC<{
|
|
124
|
+
field: ListField;
|
|
125
|
+
name: string;
|
|
126
|
+
}>;
|
|
127
|
+
declare const FormElement: ({ field, name, }: {
|
|
128
|
+
field: FormProps["field"];
|
|
129
|
+
name: string;
|
|
130
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
131
|
+
declare const DataView: ({ field, value, onClose, onDelete, onSubmit, itemName, storagePath, path, }: DataViewProps & {
|
|
132
|
+
path?: string;
|
|
133
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
134
|
+
declare const FieldMapForm: FC<FieldMapFormProps>;
|
|
135
|
+
declare const FieldForm: FC<FieldFormProps>;
|
|
136
|
+
declare const Form: FC<FormProps>;
|
|
137
|
+
|
|
138
|
+
declare const Editable: <T extends Field>({ value: initValue, field, onSubmit, storagePath, style, onEditClose, onEditOpen, }: EditableProps<CSSProperties, T>) => react_jsx_runtime.JSX.Element;
|
|
139
|
+
|
|
140
|
+
declare const StandaloneInput: react.ForwardRefExoticComponent<{
|
|
141
|
+
onChange: (v?: any) => void;
|
|
142
|
+
value?: any;
|
|
143
|
+
field: Field;
|
|
144
|
+
onBlur?: () => void;
|
|
145
|
+
onFocus?: () => void;
|
|
146
|
+
theme?: "basic" | "detailed";
|
|
147
|
+
inEditable?: boolean;
|
|
148
|
+
style?: CSSProperties;
|
|
149
|
+
} & react.RefAttributes<InputRef>>;
|
|
150
|
+
|
|
151
|
+
declare const FileView: ({ value, hasUpload, noLabel, loading, imageOptions, }: {
|
|
152
|
+
value?: FileValue | null;
|
|
153
|
+
hasUpload?: boolean;
|
|
154
|
+
noLabel?: boolean;
|
|
155
|
+
loading?: boolean;
|
|
156
|
+
imageOptions?: ImageViewOptions;
|
|
157
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
declare const FieldView: ({ field, value, noLabel, style, }: {
|
|
160
|
+
field: Field;
|
|
161
|
+
value: any;
|
|
162
|
+
noLabel?: boolean;
|
|
163
|
+
style?: CSSProperties;
|
|
164
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
165
|
+
|
|
166
|
+
interface DataListHeaderProps {
|
|
167
|
+
onResize: (size: {
|
|
168
|
+
height: number;
|
|
169
|
+
width: number;
|
|
170
|
+
}) => void;
|
|
171
|
+
refetch?: () => void;
|
|
172
|
+
boxProps?: BoxProps;
|
|
173
|
+
}
|
|
174
|
+
interface DataListFooterProps {
|
|
175
|
+
flexProps?: FlexProps;
|
|
176
|
+
noFooter?: boolean;
|
|
177
|
+
onResize: (size: {
|
|
178
|
+
height: number;
|
|
179
|
+
width: number;
|
|
180
|
+
}) => void;
|
|
181
|
+
}
|
|
182
|
+
type ListViewProps<T extends AnyObject> = ListProviderProps<T> & {
|
|
183
|
+
flexProps?: FlexProps;
|
|
184
|
+
footerProps?: FlexProps;
|
|
185
|
+
noFooter?: boolean;
|
|
186
|
+
headerProps?: BoxProps;
|
|
187
|
+
modals?: ReactNode;
|
|
188
|
+
};
|
|
189
|
+
type ListContentProps<T extends AnyObject> = Omit<ListViewProps<T>, 'list' | 'basePath' | 'flexProps'>;
|
|
190
|
+
|
|
191
|
+
declare const DataList: <T extends AnyObject>({ list, basePath, flexProps, infiniteScroll, ...rest }: ListViewProps<T>) => react_jsx_runtime.JSX.Element;
|
|
192
|
+
|
|
193
|
+
declare const ListContainer: (props: FlexProps) => react_jsx_runtime.JSX.Element;
|
|
194
|
+
|
|
195
|
+
declare const ListContent: <T extends AnyObject>({ modals, noFooter, headerProps, footerProps, }: ListContentProps<T>) => react_jsx_runtime.JSX.Element;
|
|
196
|
+
|
|
197
|
+
declare const CircularProgress: (props: CircularProgressProps) => react_jsx_runtime.JSX.Element;
|
|
198
|
+
|
|
199
|
+
declare const LottieLoadingLogo: ({ size, isLoading, speed, inFeed, asset, }: {
|
|
200
|
+
size?: number | string;
|
|
201
|
+
color?: string;
|
|
202
|
+
isLoading: boolean;
|
|
203
|
+
asset: ThemedAsset;
|
|
204
|
+
inFeed?: boolean;
|
|
205
|
+
speed?: number;
|
|
206
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
207
|
+
declare const LoadingLogo: ({ isLoading, size, inFeed, }: {
|
|
208
|
+
isLoading: boolean;
|
|
209
|
+
size?: number | string;
|
|
210
|
+
inFeed?: boolean;
|
|
211
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
212
|
+
declare const Loading: ({ text, inBox, stackProps, }: {
|
|
213
|
+
text?: string;
|
|
214
|
+
inBox?: boolean;
|
|
215
|
+
stackProps?: StackProps;
|
|
216
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare const LoadingOverlay: ({ isLoading, text, inFeed, ...props }: {
|
|
218
|
+
isLoading: boolean;
|
|
219
|
+
text?: string;
|
|
220
|
+
inFeed?: boolean;
|
|
221
|
+
} & CenterProps) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface LoadingImageProps {
|
|
224
|
+
src?: string | null;
|
|
225
|
+
loadingOverride?: boolean;
|
|
226
|
+
onLoad?: ImageProps['onLoad'];
|
|
227
|
+
alt?: string;
|
|
228
|
+
noFullView?: boolean;
|
|
229
|
+
buttonFullView?: boolean;
|
|
230
|
+
imageProps?: Omit<ImageProps, 'onLoad'>;
|
|
231
|
+
}
|
|
232
|
+
declare const LoadingImage: ({ src, loadingOverride, alt, onLoad, width, height, noFullView, buttonFullView, imageProps, ...boxProps }: LoadingImageProps & Omit<BoxProps, "onLoad">) => react_jsx_runtime.JSX.Element;
|
|
233
|
+
|
|
234
|
+
declare const LoadingSwitch: ({ value, label, onChange, }: {
|
|
235
|
+
value: boolean;
|
|
236
|
+
label: string;
|
|
237
|
+
onChange: (updated: boolean) => Promise<void>;
|
|
238
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare const PlayButton: ({ media, size, opacity, buttonProps, }: {
|
|
241
|
+
media: WithId<SpotifyTrack> | null;
|
|
242
|
+
size?: number;
|
|
243
|
+
opacity?: number;
|
|
244
|
+
withThumbnail?: boolean;
|
|
245
|
+
buttonProps?: ButtonProps;
|
|
246
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
247
|
+
|
|
248
|
+
type DefaultModalProps = PropsWithChildren<Omit<ModalProps, 'render'>> & {
|
|
249
|
+
contentProps?: ModalContentProps;
|
|
250
|
+
onContentMounted?: (mounted: boolean) => void;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
declare const DefaultModal: (props: DefaultModalProps) => react_jsx_runtime.JSX.Element;
|
|
254
|
+
|
|
255
|
+
declare const DesktopModal: ({ children, isOpen, contentProps, ...props }: DefaultModalProps) => react_jsx_runtime.JSX.Element;
|
|
256
|
+
|
|
257
|
+
declare const MobileOverlayBackground: ({ onClick }: {
|
|
258
|
+
onClick?: () => void;
|
|
259
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
260
|
+
declare const MobileModal: ({ isOpen, onClose, children, contentProps, onContentMounted, closeOnOverlayClick, }: DefaultModalProps) => react_jsx_runtime.JSX.Element | null;
|
|
261
|
+
|
|
262
|
+
declare const NAV_BAR_HEIGHT = 50;
|
|
263
|
+
declare const NavBar: ({ selectedView, children, }: PropsWithChildren<{
|
|
264
|
+
selectedView?: View | null;
|
|
265
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
266
|
+
|
|
267
|
+
declare const ImageViewOverlay: ({ src, onClose }: {
|
|
268
|
+
src: string;
|
|
269
|
+
onClose: () => void;
|
|
270
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
271
|
+
|
|
272
|
+
declare const MobileOverlay: (props: FlexProps) => react_jsx_runtime.JSX.Element;
|
|
273
|
+
|
|
274
|
+
declare const NumberTicker: ({ value, duration }: {
|
|
275
|
+
value: number;
|
|
276
|
+
duration?: number;
|
|
277
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
278
|
+
|
|
279
|
+
declare const DarkModeToggle: () => react_jsx_runtime.JSX.Element;
|
|
280
|
+
declare const AbsoluteDarkModeToggle: (props: FlexProps) => react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
282
|
+
declare const ErrorView: ({ message }: {
|
|
283
|
+
message?: string;
|
|
284
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
285
|
+
|
|
286
|
+
declare const RedirectView: react__default.FC<{
|
|
287
|
+
loading?: boolean;
|
|
288
|
+
}>;
|
|
289
|
+
|
|
290
|
+
declare const switchTheme: {
|
|
291
|
+
baseStyle?: {
|
|
292
|
+
track: {
|
|
293
|
+
_focusVisible: {
|
|
294
|
+
boxShadow: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
} | undefined;
|
|
298
|
+
sizes?: {
|
|
299
|
+
[key: string]: _chakra_ui_react.PartsStyleInterpolation<{
|
|
300
|
+
keys: ("label" | "track" | "container" | "thumb")[];
|
|
301
|
+
}>;
|
|
302
|
+
} | undefined;
|
|
303
|
+
variants?: {
|
|
304
|
+
[key: string]: _chakra_ui_react.PartsStyleInterpolation<{
|
|
305
|
+
keys: ("label" | "track" | "container" | "thumb")[];
|
|
306
|
+
}>;
|
|
307
|
+
} | undefined;
|
|
308
|
+
defaultProps?: {
|
|
309
|
+
size?: string | number | undefined;
|
|
310
|
+
variant?: string | number | undefined;
|
|
311
|
+
colorScheme?: string | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
parts: ("label" | "track" | "container" | "thumb")[];
|
|
314
|
+
};
|
|
315
|
+
declare const headingFont = "Encode Sans";
|
|
316
|
+
declare const bodyFont = "Noto Sans";
|
|
317
|
+
declare const baseTheme: Record<string, any>;
|
|
318
|
+
|
|
319
|
+
declare const useBorderColor: () => "#00000033" | "#ffffff33";
|
|
320
|
+
|
|
321
|
+
declare const initializeScreen: () => () => void;
|
|
322
|
+
|
|
323
|
+
export { AbsoluteDarkModeToggle, AbsoluteLogin, CircularProgress, CollapseHorizontal, ContentBox, DarkModeToggle, DataList, type DataListFooterProps, type DataListHeaderProps, DataView, DefaultModal, DeleteButton, DeleteConfirmAlert, DesktopModal, Editable, ErrorView, ExpandOnMount, Expandable, FieldForm, FieldMapForm, FieldView, FileView, Form, FormElement, FullSizeContainer, FullSizeProvider, ImageViewOverlay, ListContainer, ListContent, type ListContentProps, ListFieldInput, type ListViewProps, Loading, LoadingImage, type LoadingImageProps, LoadingLogo, LoadingOverlay, LoadingSwitch, LottieLoadingLogo, MediaFeed, MobileFrame, MobileModal, MobileOverlay, MobileOverlayBackground, NAV_BAR_HEIGHT, NavBar, NumberTicker, PlayButton, RedirectView, SignIn, StandaloneInput, Toggle, type ToggleOption, type ToggleProps, ViewButton, baseTheme, bodyFont, headingFont, initializeScreen, switchTheme, useBorderColor, useMediaFeed };
|