@app-studio/web 0.3.7 → 0.3.11

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.
Files changed (30) hide show
  1. package/dist/GlobalStyle.d.ts +2 -1
  2. package/dist/assets/svg/index.d.ts +2 -0
  3. package/dist/components/File/File.d.ts +8 -0
  4. package/dist/components/Form/Checkbox/Checkbox/Checkbox.state.d.ts +1 -1
  5. package/dist/components/Form/Select/Select/Select.state.d.ts +1 -1
  6. package/dist/components/Form/TextArea/TextArea/TextArea.state.d.ts +1 -1
  7. package/dist/components/Form/TextField/TextField/TextField.state.d.ts +1 -1
  8. package/dist/components/Layout/View/View.d.ts +7 -1
  9. package/dist/components/Message/Examples/CloseButtonMessage.d.ts +2 -0
  10. package/dist/components/Message/Examples/DefaultMessage.d.ts +2 -0
  11. package/dist/components/Message/Examples/VariantMessage.d.ts +2 -0
  12. package/dist/components/Message/Examples/index.d.ts +3 -0
  13. package/dist/components/Message/Message/Message.layout.d.ts +3 -0
  14. package/dist/components/Message/Message/Message.props.d.ts +115 -0
  15. package/dist/components/Message/Message/Message.store.d.ts +10 -0
  16. package/dist/components/Message/Message/Message.style.d.ts +5 -0
  17. package/dist/components/Message/Message/Message.view.d.ts +19 -0
  18. package/dist/components/Message/Message.d.ts +2 -0
  19. package/dist/components/Modal/Modal/Modal.layout.d.ts +3 -0
  20. package/dist/components/Modal/Modal/Modal.props.d.ts +9 -0
  21. package/dist/components/Modal/Modal/Modal.store.d.ts +11 -0
  22. package/dist/components/index.d.ts +1 -0
  23. package/dist/pages/message.page.d.ts +3 -0
  24. package/dist/web.cjs.development.js +131 -48
  25. package/dist/web.cjs.development.js.map +1 -1
  26. package/dist/web.cjs.production.min.js +1 -1
  27. package/dist/web.cjs.production.min.js.map +1 -1
  28. package/dist/web.esm.js +117 -37
  29. package/dist/web.esm.js.map +1 -1
  30. package/package.json +7 -6
@@ -1,2 +1,3 @@
1
- declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
1
+ /// <reference types="react" />
2
+ declare const GlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
2
3
  export default GlobalStyle;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export declare const FileSVG: ({ src, color, ...props }: {
3
+ src: string;
4
+ color?: string | undefined;
5
+ }) => React.JSX.Element;
6
+ export declare const FileImage: ({ path, ...props }: {
7
+ path: string;
8
+ }) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CheckboxProps } from './Checkbox.props';
3
- export declare const useCheckboxState: ({ defaultIsSelected }: CheckboxProps) => {
3
+ export declare const useCheckboxState: ({ defaultIsSelected, }: CheckboxProps) => {
4
4
  isHovered: boolean;
5
5
  setIsHovered: React.Dispatch<React.SetStateAction<boolean>>;
6
6
  isSelected: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SelectProps } from './Select.props';
3
- export declare const useSelectState: ({ placeholder, isMulti, options }: SelectProps) => {
3
+ export declare const useSelectState: ({ placeholder, isMulti, options, }: SelectProps) => {
4
4
  selected: string | string[];
5
5
  setSelected: React.Dispatch<React.SetStateAction<string | string[]>>;
6
6
  hide: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TextAreaProps } from './TextArea.props';
3
- export declare const useTextAreaState: ({ label, placeholder, defaultValue, value }: TextAreaProps) => {
3
+ export declare const useTextAreaState: ({ label, placeholder, defaultValue, value, }: TextAreaProps) => {
4
4
  hint: string | undefined;
5
5
  setHint: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
6
6
  isHovered: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { TextFieldProps } from './TextField.props';
3
- export declare const useTextFieldState: ({ label, placeholder, value }: TextFieldProps) => {
3
+ export declare const useTextFieldState: ({ label, placeholder, value, }: TextFieldProps) => {
4
4
  hint: string | undefined;
5
5
  setHint: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
6
6
  isFocused: boolean;
@@ -1,2 +1,8 @@
1
+ import React from 'react';
1
2
  export type { ViewProps } from 'app-studio';
2
- export { View } from 'app-studio';
3
+ export declare const Top: (props: any) => React.JSX.Element;
4
+ export declare const Bottom: (props: any) => React.JSX.Element;
5
+ export declare const Left: (props: any) => React.JSX.Element;
6
+ export declare const Right: (props: any) => React.JSX.Element;
7
+ export declare const Inline: (props: any) => React.JSX.Element;
8
+ export declare const View: (props: import("app-studio").ViewProps) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const CloseButtonMessage: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DefaultMessage: () => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const VariantMessage: () => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from '../../Message/Examples/CloseButtonMessage';
2
+ export * from '../../Message/Examples/DefaultMessage';
3
+ export * from '../../Message/Examples/VariantMessage';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { MessageLayoutProps } from './Message.props';
3
+ export declare const MessageLayout: ({ container, icons, text, icon, }: MessageLayoutProps) => React.JSX.Element | null;
@@ -0,0 +1,115 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import { Elevation } from 'src/utils/elevation';
3
+ import { Shadow } from 'app-studio';
4
+ import { CloseButtonPosition, Position, Shape, Size } from './Message.type';
5
+ export interface MessageProps {
6
+ /**
7
+ * The content to be displayed inside the message.
8
+ */
9
+ children: React.ReactNode;
10
+ /**
11
+ * The color of the close button in the header.
12
+ */
13
+ buttonColor?: string;
14
+ /**
15
+ * The size of the close button in the header.
16
+ */
17
+ iconSize?: Size;
18
+ /**
19
+ * Determines whether the message should have sharp or rounded edges.
20
+ */
21
+ shape?: Shape;
22
+ /**
23
+ * If set to true, the message will occupy the full width and height of the screen.
24
+ */
25
+ isFullScreen?: boolean;
26
+ /**
27
+ * Indicates the presence of a close button and its position within the header.
28
+ */
29
+ buttonPosition?: CloseButtonPosition;
30
+ /**
31
+ * The callback function to be executed when the close button is clicked or pressed.
32
+ */
33
+ onClose?: () => void;
34
+ /**
35
+ * The degree of blurriness applied to the overlay.
36
+ */
37
+ blur?: number;
38
+ /**
39
+ * If set to true, the message will be visible.
40
+ */
41
+ isOpen?: boolean;
42
+ /**
43
+ * If set to true, the message will remain open when the overlay is clicked.
44
+ */
45
+ isClosePrevented?: boolean;
46
+ /**
47
+ * The positioning of the message container.
48
+ */
49
+ position?: Position;
50
+ /**
51
+ * Applies a shadow effect to the button.
52
+ */
53
+ shadow?: Shadow | Elevation | CSSProperties;
54
+ /**
55
+ * Additional properties.
56
+ */
57
+ [x: string]: any;
58
+ }
59
+ export interface MessageType extends React.FunctionComponent<MessageProps> {
60
+ /**
61
+ * The container component of the message.
62
+ */
63
+ Container: React.FC<ContainerProps>;
64
+ /**
65
+ * The body component of the message.
66
+ */
67
+ Body: React.FC<BodyProps>;
68
+ /**
69
+ * The header component of the message.
70
+ */
71
+ Layout: React.FC<MessageLayoutProps>;
72
+ }
73
+ export interface MessageLayoutProps {
74
+ icons?: {
75
+ [x: string]: string;
76
+ };
77
+ container?: any;
78
+ text?: React.JSX.Element | React.FC<any>;
79
+ icon?: React.JSX.Element | React.FC<any>;
80
+ theme: {
81
+ [x: string]: any;
82
+ };
83
+ }
84
+ export interface ContainerProps {
85
+ /**
86
+ * The content of the message container
87
+ */
88
+ children: React.ReactNode;
89
+ /**
90
+ * To give a sharp or rounded edges to the message
91
+ */
92
+ shape?: Shape;
93
+ /**
94
+ * If true, the message will take the full width and height
95
+ */
96
+ isFullScreen?: boolean;
97
+ /**
98
+ * Set a shadow effect on the button.
99
+ */
100
+ shadow?: Shadow | Elevation | CSSProperties;
101
+ /**
102
+ * Other properties
103
+ */
104
+ [x: string]: any;
105
+ }
106
+ export interface BodyProps {
107
+ /**
108
+ * The content of the Body
109
+ */
110
+ children?: React.ReactNode;
111
+ /**
112
+ * Other properties
113
+ */
114
+ [x: string]: any;
115
+ }
@@ -0,0 +1,10 @@
1
+ export interface MessageState {
2
+ visible: boolean;
3
+ variant?: string;
4
+ message: string;
5
+ show: (variant?: string, message?: string) => void;
6
+ hide: () => void;
7
+ }
8
+ export declare const useMessageStore: any;
9
+ export declare const showMessage: (variant: string, message?: string | undefined) => void;
10
+ export declare const hideMessage: () => void;
@@ -0,0 +1,5 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Position, Shape, Size } from './Message.type';
3
+ export declare const ContainerShapes: Record<Shape, CSSProperties>;
4
+ export declare const OverlayAlignments: Record<Position, CSSProperties>;
5
+ export declare const HeaderIconSizes: Record<Size, number>;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface IMessage {
3
+ message: string;
4
+ variant?: string;
5
+ show?: boolean;
6
+ hide: Function;
7
+ closable?: boolean;
8
+ timeout?: number;
9
+ props?: any;
10
+ icons?: Record<string, string>;
11
+ text?: any;
12
+ icon?: any;
13
+ theme?: Record<string, any>;
14
+ iconProps?: any;
15
+ textProps?: any;
16
+ containerProps?: any;
17
+ }
18
+ export declare const MessageView: ({ variant, message, hide, props, timeout, closable, icons, text, theme, icon, }: IMessage) => React.JSX.Element;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ export { MessageLayout } from './Message/Message.layout';
2
+ export { MessageView } from './Message/Message.view';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ModalLayoutProps } from './Modal.props';
3
+ export declare const ModalLayout: ({ modals }: ModalLayoutProps) => React.JSX.Element | null;
@@ -77,6 +77,10 @@ export interface ModalType extends React.FunctionComponent<ModalProps> {
77
77
  * The footer component of the modal.
78
78
  */
79
79
  Footer: React.FC<FooterProps>;
80
+ /**
81
+ * The header component of the modal.
82
+ */
83
+ Layout: React.FC<ModalLayoutProps>;
80
84
  }
81
85
  export interface OverlayProps {
82
86
  /**
@@ -134,6 +138,11 @@ export interface HeaderProps {
134
138
  */
135
139
  [x: string]: any;
136
140
  }
141
+ export interface ModalLayoutProps {
142
+ modals: {
143
+ [x: string]: React.FC<any>;
144
+ };
145
+ }
137
146
  export interface ContainerProps {
138
147
  /**
139
148
  * The content of the modal container
@@ -1 +1,12 @@
1
+ export interface ModalState {
2
+ modal: string | boolean;
3
+ modalProps: any & {
4
+ isVisible: boolean;
5
+ };
6
+ overlayProps: any;
7
+ show: (modal: string, modalProps?: any, overlayProps?: any) => void;
8
+ hide: () => void;
9
+ }
1
10
  export declare const useModalStore: any;
11
+ export declare const showModal: (modal: string, modalProps?: any, overlayProps?: any) => void;
12
+ export declare const hideModal: () => void;
@@ -16,3 +16,4 @@ export * from './Link/Link';
16
16
  export * from './Loader/Loader';
17
17
  export * from './Modal/Modal';
18
18
  export * from './Text/Text';
19
+ export * from './File/File';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const ModalPage: () => React.JSX.Element;
3
+ export default ModalPage;
@@ -58,6 +58,34 @@ var useLinkState = function useLinkState() {
58
58
  };
59
59
  };
60
60
 
61
+ var Top = function Top(props) {
62
+ return React__default.createElement(appStudio.View, Object.assign({
63
+ marginBottom: "auto"
64
+ }, props));
65
+ };
66
+ var Bottom = function Bottom(props) {
67
+ return React__default.createElement(appStudio.View, Object.assign({
68
+ marginTop: "auto"
69
+ }, props));
70
+ };
71
+ var Left = function Left(props) {
72
+ return React__default.createElement(appStudio.View, Object.assign({
73
+ marginRight: "auto"
74
+ }, props));
75
+ };
76
+ var Right = function Right(props) {
77
+ return React__default.createElement(appStudio.View, Object.assign({
78
+ marginLeft: "auto"
79
+ }, props));
80
+ };
81
+ var Inline = function Inline(props) {
82
+ return React__default.createElement(appStudio.View, Object.assign({
83
+ display: 'inline-flex',
84
+ wordBreak: "break-word"
85
+ }, props));
86
+ };
87
+ var View = appStudio.View;
88
+
61
89
  var _excluded = ["children", "wrap", "justify", "isReversed"];
62
90
  var HorizontalView = function HorizontalView(_ref) {
63
91
  var children = _ref.children,
@@ -68,7 +96,7 @@ var HorizontalView = function HorizontalView(_ref) {
68
96
  _ref$isReversed = _ref.isReversed,
69
97
  isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
70
98
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
71
- return React__default.createElement(appStudio.View, Object.assign({
99
+ return React__default.createElement(View, Object.assign({
72
100
  display: "flex",
73
101
  flexWrap: wrap,
74
102
  flexDirection: isReversed ? 'row-reverse' : 'row',
@@ -89,7 +117,7 @@ var CenterView = function CenterView(_ref) {
89
117
  var children = _ref.children,
90
118
  wrap = _ref.wrap,
91
119
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
92
- return React__default.createElement(appStudio.View, Object.assign({
120
+ return React__default.createElement(View, Object.assign({
93
121
  display: "flex",
94
122
  justifyContent: "center",
95
123
  alignItems: "center",
@@ -3283,7 +3311,7 @@ var PasswordView = function PasswordView(_ref) {
3283
3311
  return React__default.createElement(TextField, Object.assign({
3284
3312
  name: name,
3285
3313
  type: isVisible ? 'text' : 'password',
3286
- rightChild: React__default.createElement(appStudio.View, {
3314
+ rightChild: React__default.createElement(View, {
3287
3315
  onClick: function onClick() {
3288
3316
  if (!isDisabled) setIsVisible(!isVisible);
3289
3317
  }
@@ -3891,7 +3919,7 @@ var SwitchView = function SwitchView(_ref) {
3891
3919
  readOnly: isReadOnly
3892
3920
  }, onValueChange && {
3893
3921
  onValueChange: handleToggle
3894
- }, props)), React__default.createElement(appStudio.View, Object.assign({
3922
+ }, props)), React__default.createElement(View, Object.assign({
3895
3923
  display: "flex",
3896
3924
  cursor: "pointer",
3897
3925
  alignItems: "center",
@@ -3900,10 +3928,10 @@ var SwitchView = function SwitchView(_ref) {
3900
3928
  transition: "justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
3901
3929
  backgroundColor: isDisabled ? 'disabled' : on ? colorScheme : 'lightgray',
3902
3930
  justifyContent: activeChild ? 'space-between' : on ? 'flex-end' : 'flex-start'
3903
- }, shadow, SliderPadding[size], SliderSizes[size], styles['slider']), activeChild && on && React__default.createElement(appStudio.View, null, activeChild), React__default.createElement(appStudio.View, Object.assign({
3931
+ }, shadow, SliderPadding[size], SliderSizes[size], styles['slider']), activeChild && on && React__default.createElement(View, null, activeChild), React__default.createElement(View, Object.assign({
3904
3932
  borderRadius: "50%",
3905
3933
  backgroundColor: "white"
3906
- }, KnobSizes[size], styles['circle'])), inActiveChild && !on && React__default.createElement(appStudio.View, null, inActiveChild)));
3934
+ }, KnobSizes[size], styles['circle'])), inActiveChild && !on && React__default.createElement(View, null, inActiveChild)));
3907
3935
  };
3908
3936
 
3909
3937
  var SwitchComponent = function SwitchComponent(props) {
@@ -4286,9 +4314,9 @@ var LoaderView = function LoaderView(_ref4) {
4286
4314
  return React__default.createElement(Center, Object.assign({
4287
4315
  gap: 10,
4288
4316
  flexDirection: textPosition === 'top' || textPosition === 'bottom' ? 'column' : 'row'
4289
- }, props), (textPosition === 'left' || textPosition === 'top') && children && React__default.createElement(appStudio.View, {
4317
+ }, props), (textPosition === 'left' || textPosition === 'top') && children && React__default.createElement(View, {
4290
4318
  color: textColor
4291
- }, children), variants[type], (textPosition === 'right' || textPosition === 'bottom') && children && React__default.createElement(appStudio.View, {
4319
+ }, children), variants[type], (textPosition === 'right' || textPosition === 'bottom') && children && React__default.createElement(View, {
4292
4320
  color: textColor
4293
4321
  }, children));
4294
4322
  };
@@ -4303,31 +4331,43 @@ var Loader = LoaderComponent;
4303
4331
 
4304
4332
  var useModalStore = /*#__PURE__*/zustand.create(function (set) {
4305
4333
  return {
4306
- isOpen: false,
4307
- onClose: function onClose() {},
4308
- toggleModal: function toggleModal() {
4309
- return set(function (state) {
4310
- return {
4311
- isOpen: !state.isOpen
4312
- };
4313
- });
4334
+ modal: false,
4335
+ modalProps: {
4336
+ isVisible: false
4314
4337
  },
4315
- setOpen: function setOpen(isOpen) {
4316
- return set(function () {
4317
- return {
4318
- isOpen: isOpen
4319
- };
4338
+ overlayProps: {},
4339
+ show: function show(modal, modalProps, overlayProps) {
4340
+ if (modalProps === void 0) {
4341
+ modalProps = {};
4342
+ }
4343
+ if (overlayProps === void 0) {
4344
+ overlayProps = {};
4345
+ }
4346
+ if (modal) {
4347
+ modalProps.isVisible = true;
4348
+ }
4349
+ set(function (state) {
4350
+ return _extends({}, state, {
4351
+ modal: modal,
4352
+ modalProps: modalProps,
4353
+ overlayProps: overlayProps
4354
+ });
4320
4355
  });
4321
4356
  },
4322
- setOnClose: function setOnClose(onClose) {
4323
- return set(function () {
4324
- return {
4325
- onClose: onClose
4326
- };
4357
+ hide: function hide() {
4358
+ set(function (state) {
4359
+ return _extends({}, state, {
4360
+ modalProps: {
4361
+ isVisible: false
4362
+ }
4363
+ });
4327
4364
  });
4328
4365
  }
4329
4366
  };
4330
4367
  });
4368
+ var hideModal = function hideModal() {
4369
+ useModalStore.getState().hide();
4370
+ };
4331
4371
 
4332
4372
  var ContainerShapes = {
4333
4373
  sharp: {
@@ -4382,17 +4422,6 @@ var ModalOverlay = function ModalOverlay(_ref) {
4382
4422
  _ref$position = _ref.position,
4383
4423
  position = _ref$position === void 0 ? 'center' : _ref$position,
4384
4424
  props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
4385
- var setOpen = useModalStore(function (state) {
4386
- return state.setOpen;
4387
- });
4388
- var setOnClose = useModalStore(function (state) {
4389
- return state.setOnClose;
4390
- });
4391
- React.useEffect(function () {
4392
- setOnClose(onClose);
4393
- if (isOpen) setOpen();
4394
- });
4395
- if (!isOpen) return null;
4396
4425
  var handleClick = function handleClick() {
4397
4426
  if (!isClosePrevented) onClose();
4398
4427
  };
@@ -4405,7 +4434,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
4405
4434
  zIndex: 1000,
4406
4435
  onClick: handleClick,
4407
4436
  visibility: isOpen ? 'visible' : 'hidden'
4408
- }, React__default.createElement(appStudio.View, Object.assign({
4437
+ }, React__default.createElement(View, Object.assign({
4409
4438
  cursor: "pointer",
4410
4439
  position: "absolute",
4411
4440
  top: 0,
@@ -4460,9 +4489,7 @@ var ModalHeader = function ModalHeader(_ref3) {
4460
4489
  _ref3$buttonPosition = _ref3.buttonPosition,
4461
4490
  buttonPosition = _ref3$buttonPosition === void 0 ? 'right' : _ref3$buttonPosition,
4462
4491
  props = _objectWithoutPropertiesLoose(_ref3, _excluded3$2);
4463
- var onClose = useModalStore(function (state) {
4464
- return state.onClose;
4465
- });
4492
+ var onClose = props.onClose ? props.onClose : hideModal;
4466
4493
  var buttonIcon = React__default.createElement(Button, {
4467
4494
  onClick: onClose,
4468
4495
  colorScheme: "transparent",
@@ -4491,7 +4518,7 @@ var ModalBody = function ModalBody(_ref4) {
4491
4518
  borderColor: 'rgba(250, 250, 250, 1)',
4492
4519
  borderStyle: 'solid'
4493
4520
  };
4494
- return React__default.createElement(appStudio.View, Object.assign({
4521
+ return React__default.createElement(View, Object.assign({
4495
4522
  overflowY: "auto",
4496
4523
  paddingVertical: 15,
4497
4524
  paddingHorizontal: 20
@@ -4509,6 +4536,33 @@ var ModalFooter = function ModalFooter(_ref5) {
4509
4536
  }, props), children);
4510
4537
  };
4511
4538
 
4539
+ var ModalLayout = function ModalLayout(_ref) {
4540
+ var modals = _ref.modals;
4541
+ var modalStore = useModalStore(function (_ref2) {
4542
+ var modal = _ref2.modal,
4543
+ modalProps = _ref2.modalProps,
4544
+ overlayProps = _ref2.overlayProps;
4545
+ return {
4546
+ modal: modal,
4547
+ modalProps: modalProps,
4548
+ overlayProps: overlayProps
4549
+ };
4550
+ });
4551
+ if (typeof modalStore.modal === 'boolean') {
4552
+ return null;
4553
+ }
4554
+ var Modal = modals[modalStore.modal];
4555
+ if (!Modal) {
4556
+ console.error(modalStore.modal + " modal doesn't exist");
4557
+ return null;
4558
+ }
4559
+ return React__default.createElement(React.Fragment, null, React__default.createElement(ModalOverlay, Object.assign({
4560
+ isOpen: modalStore.modalProps.isVisible,
4561
+ onClose: hideModal,
4562
+ blur: 10
4563
+ }, modalStore.overlayProps), Modal !== undefined && React__default.createElement(Modal, Object.assign({}, modalStore.modalProps))));
4564
+ };
4565
+
4512
4566
  /**
4513
4567
  * It is a custom content overlay that appears on top of the main screen.
4514
4568
  */
@@ -4522,27 +4576,56 @@ Modal.Container = ModalContainer;
4522
4576
  Modal.Header = ModalHeader;
4523
4577
  Modal.Body = ModalBody;
4524
4578
  Modal.Footer = ModalFooter;
4579
+ Modal.Layout = ModalLayout;
4525
4580
 
4526
- Object.defineProperty(exports, 'View', {
4527
- enumerable: true,
4528
- get: function () {
4529
- return appStudio.View;
4530
- }
4531
- });
4581
+ var _excluded$t = ["src", "color"],
4582
+ _excluded2$3 = ["path"];
4583
+ var FileSVG = function FileSVG(_ref) {
4584
+ var src = _ref.src,
4585
+ color = _ref.color,
4586
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
4587
+ var _useTheme = appStudio.useTheme(),
4588
+ getColor = _useTheme.getColor;
4589
+ var Colorprops = color ? {
4590
+ fill: getColor(color),
4591
+ stroke: getColor(color)
4592
+ } : {};
4593
+ return React__default.createElement(Center, Object.assign({}, props), React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
4594
+ content: 'url("' + src + '")',
4595
+ width: "100%",
4596
+ height: "100%"
4597
+ })));
4598
+ };
4599
+ var FileImage = function FileImage(_ref2) {
4600
+ var path = _ref2.path,
4601
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
4602
+ return React__default.createElement(appStudio.Image, Object.assign({
4603
+ src: path
4604
+ }, props));
4605
+ };
4606
+
4607
+ exports.Bottom = Bottom;
4532
4608
  exports.Button = Button;
4533
4609
  exports.Center = Center;
4534
4610
  exports.Checkbox = Checkbox;
4535
4611
  exports.CountryPicker = CountryPicker;
4536
4612
  exports.DatePicker = DatePicker;
4613
+ exports.FileImage = FileImage;
4614
+ exports.FileSVG = FileSVG;
4537
4615
  exports.Horizontal = Horizontal;
4616
+ exports.Inline = Inline;
4617
+ exports.Left = Left;
4538
4618
  exports.Link = Link;
4539
4619
  exports.Loader = Loader;
4540
4620
  exports.Modal = Modal;
4541
4621
  exports.Password = Password;
4622
+ exports.Right = Right;
4542
4623
  exports.Select = Select;
4543
4624
  exports.Switch = Switch;
4544
4625
  exports.Text = Text;
4545
4626
  exports.TextArea = TextArea;
4546
4627
  exports.TextField = TextField;
4628
+ exports.Top = Top;
4547
4629
  exports.Vertical = Vertical;
4630
+ exports.View = View;
4548
4631
  //# sourceMappingURL=web.cjs.development.js.map