@antscorp/antsomi-ui 2.0.107 → 2.0.109
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 +63 -0
- package/README.md +78 -78
- package/es/__mocks__/1000_city.json +802 -802
- package/es/__mocks__/sql-query.json +56 -56
- package/es/assets/css/main.scss +6 -6
- package/es/assets/images/feedback.svg +3 -3
- package/es/assets/svg/mobile-frame.svg +3 -3
- package/es/assets/svg/warning-icon.svg +5 -5
- package/es/components/atoms/Alert/Alert.js +28 -28
- package/es/components/atoms/ContentEditable/styled.js +16 -16
- package/es/components/atoms/DividerPure/styled.js +35 -35
- package/es/components/atoms/Icon/index.js +19 -19
- package/es/components/atoms/Iframe/Iframe.js +18 -18
- package/es/components/atoms/Input/styled.js +104 -104
- package/es/components/atoms/InputDynamic/styled.js +284 -284
- package/es/components/atoms/MobileBrandingBar/styled.js +21 -21
- package/es/components/atoms/MobileFrame/styled.js +30 -30
- package/es/components/atoms/MobileFrameV2/styled.js +42 -42
- package/es/components/atoms/MobileFrameV3/styled.js +31 -31
- package/es/components/atoms/NotificationStatus/styled.js +10 -10
- package/es/components/atoms/PreviewTabs/styled.js +69 -69
- package/es/components/atoms/Radio/index.js +16 -16
- package/es/components/atoms/ReactIframe/ReactIframe.js +5 -5
- package/es/components/atoms/ReactIframe/styled.js +9 -9
- package/es/components/atoms/RequiredLabel/styled.js +3 -3
- package/es/components/atoms/ScrollBox/index.js +5 -5
- package/es/components/atoms/Scrollbars/styled.js +21 -21
- package/es/components/atoms/SlideBar/styled.js +194 -194
- package/es/components/atoms/Slider/styled.js +31 -31
- package/es/components/atoms/Space/Space.js +4 -4
- package/es/components/atoms/Spin/styled.js +11 -11
- package/es/components/atoms/Steps/styled.js +244 -244
- package/es/components/atoms/Switch/styled.js +56 -56
- package/es/components/atoms/Tag/Tag.js +10 -10
- package/es/components/atoms/Text/styled.js +34 -34
- package/es/components/icons/DomainManagementIcon.js +1 -1
- package/es/components/icons/LoadingIcon.js +33 -33
- package/es/components/icons/document/styled.js +43 -43
- package/es/components/index.scss +1 -1
- package/es/components/molecules/AccessDenied/styled.js +28 -28
- package/es/components/molecules/AccountSelection/styled.js +110 -110
- package/es/components/molecules/AddDynamicContent/styled.js +23 -23
- package/es/components/molecules/AlignSetting/styled.js +4 -4
- package/es/components/molecules/ApplyPopupContent/styled.js +32 -32
- package/es/components/molecules/CalendarSelection/components/AutoUpdateTo/styled.js +8 -8
- package/es/components/molecules/CalendarSelection/components/CustomPicker/styled.js +79 -79
- package/es/components/molecules/CalendarSelection/components/Footer/styled.js +4 -4
- package/es/components/molecules/CalendarSelection/components/RangePicker/styled.js +21 -21
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +26 -26
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/styled.js +30 -30
- package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/styled.js +26 -26
- package/es/components/molecules/CalendarSelection/styled.js +8 -8
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +119 -119
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +67 -67
- package/es/components/molecules/CaptureScreen/styled.js +240 -240
- package/es/components/molecules/ChartTab/components/styled.js +24 -24
- package/es/components/molecules/ChartTab/styled.js +20 -20
- package/es/components/molecules/ChatBox/AntsomiAI.js +8 -8
- package/es/components/molecules/ChatBox/ChatBoxInsight/QuestionItem.js +9 -9
- package/es/components/molecules/ChatBox/ChatBoxInsight/styled.js +365 -365
- package/es/components/molecules/ChatBox/styled.js +324 -324
- package/es/components/molecules/CodeStructure/styled.js +5 -5
- package/es/components/molecules/ColorPicker/ChromePicker/styled.js +10 -10
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +89 -89
- package/es/components/molecules/ColorPicker/SketchPicker/styled.js +5 -5
- package/es/components/molecules/ColorPicker/styled.js +7 -7
- package/es/components/molecules/ColorSetting/styled.js +39 -39
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +110 -110
- package/es/components/molecules/DatePickerV2/styled.js +6 -6
- package/es/components/molecules/DisplayFormat/styled.js +12 -12
- package/es/components/molecules/DrawerDetail/components/ToggleDrawerSizeButton.js +24 -24
- package/es/components/molecules/DrawerDetail/styled.js +109 -109
- package/es/components/molecules/Dropdown/style.scss +11 -11
- package/es/components/molecules/Dropdown/styled.js +28 -28
- package/es/components/molecules/EdgeSetting/styled.js +10 -10
- package/es/components/molecules/EditableName/styled.js +70 -70
- package/es/components/molecules/EditingList/styled.js +29 -29
- package/es/components/molecules/EditingListV2/components/List/List.d.ts +1 -1
- package/es/components/molecules/EditingListV2/components/List/List.js +16 -7
- package/es/components/molecules/EditorTab/styled.js +156 -156
- package/es/components/molecules/EmojiCollections/styled.js +22 -22
- package/es/components/molecules/EmojiPopover/styled.js +4 -4
- package/es/components/molecules/EmptyData/styled.js +53 -53
- package/es/components/molecules/FontSizeInput/index.scss +15 -15
- package/es/components/molecules/GradientSetting/styled.js +57 -57
- package/es/components/molecules/HeaderV2/styled.js +70 -70
- package/es/components/molecules/IconSelection/styled.js +69 -69
- package/es/components/molecules/ImageEditor/components/ModalShortcut.js +21 -21
- package/es/components/molecules/ImageEditor/styled.js +5 -5
- package/es/components/molecules/ImagePreview/styled.js +3 -3
- package/es/components/molecules/InputNumberWithUnit/styled.js +14 -14
- package/es/components/molecules/InputSearch/styled.js +41 -41
- package/es/components/molecules/ItemNotFound/styled.js +26 -26
- package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.js +8 -8
- package/es/components/molecules/MatchAnySelect/styled.js +247 -247
- package/es/components/molecules/Modal/styled.js +63 -63
- package/es/components/molecules/ModalSelect/styled.js +152 -152
- package/es/components/molecules/ModalV2/styled.js +27 -27
- package/es/components/molecules/PopupDraggable/styled.js +57 -57
- package/es/components/molecules/PreviewModal/styled.js +26 -26
- package/es/components/molecules/ProcessLoading/styled.js +2 -2
- package/es/components/molecules/QuillEditor/CustomToolbar.js +3165 -3165
- package/es/components/molecules/QuillEditor/EditorToolbar.js +7 -7
- package/es/components/molecules/QuillEditor/styled.js +25 -25
- package/es/components/molecules/RadioGroup/styled.js +9 -9
- package/es/components/molecules/RequestAccess/styled.js +38 -38
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +77 -77
- package/es/components/molecules/ResizeGrid/styled.js +50 -50
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +118 -118
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +13 -13
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +40 -40
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +27 -27
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +2 -2
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +38 -38
- package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.js +36 -36
- package/es/components/molecules/SearchPopover/components/PopoverSelect/styles.scss +7 -7
- package/es/components/molecules/SearchPopover/styled.js +32 -32
- package/es/components/molecules/Select/styled.js +32 -32
- package/es/components/molecules/SelectAccount/styled.js +147 -147
- package/es/components/molecules/SelectEventAttribute/styled.js +8 -8
- package/es/components/molecules/SelectMulti/styled.js +62 -62
- package/es/components/molecules/SelectV2/styled.js +124 -124
- package/es/components/molecules/SettingWrapper/styled.js +12 -12
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +56 -56
- package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +5 -5
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.js +15 -15
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +63 -63
- package/es/components/molecules/ShareAccess/components/SearchUser/styled.js +31 -31
- package/es/components/molecules/SliderWithInputNumber/styled.js +2 -2
- package/es/components/molecules/Tabs/Tabs.js +11 -11
- package/es/components/molecules/TagifyInput/TagifyInput.js +65 -54
- package/es/components/molecules/TagifyInput/constants.d.ts +7 -3
- package/es/components/molecules/TagifyInput/constants.js +7 -2
- package/es/components/molecules/TagifyInput/patternHandlers.js +34 -1
- package/es/components/molecules/TagifyInput/styled.js +37 -37
- package/es/components/molecules/TagifyInput/types.d.ts +13 -3
- package/es/components/molecules/TagifyInput/utils.d.ts +1 -0
- package/es/components/molecules/TagifyInput/utils.js +15 -14
- package/es/components/molecules/TagifyInput/utils.style.js +218 -218
- package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +5 -5
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.js +276 -276
- package/es/components/molecules/TemplateSaveAs/styled.js +134 -134
- package/es/components/molecules/ThumbnailCard/styled.js +92 -92
- package/es/components/molecules/Tree/styled.js +38 -38
- package/es/components/molecules/UnsubscribePreferences/constants.d.ts +27 -0
- package/es/components/molecules/UnsubscribePreferences/constants.js +28 -0
- package/es/components/molecules/UnsubscribePreferences/index.d.ts +17 -0
- package/es/components/molecules/UnsubscribePreferences/index.js +203 -0
- package/es/components/molecules/UnsubscribePreferences/styled.d.ts +2 -0
- package/es/components/molecules/UnsubscribePreferences/styled.js +11 -0
- package/es/components/molecules/UnsubscribePreferences/utils.d.ts +15 -0
- package/es/components/molecules/UnsubscribePreferences/utils.js +56 -0
- package/es/components/molecules/UnsubscribePreview/components/PreferencesPage/index.d.ts +12 -0
- package/es/components/molecules/UnsubscribePreview/components/PreferencesPage/index.js +159 -0
- package/es/components/molecules/UnsubscribePreview/components/ResultPage/index.d.ts +13 -0
- package/es/components/molecules/UnsubscribePreview/components/ResultPage/index.js +28 -0
- package/es/components/molecules/UnsubscribePreview/components/TestAlert/index.d.ts +9 -0
- package/es/components/molecules/UnsubscribePreview/components/TestAlert/index.js +18 -0
- package/es/components/molecules/UnsubscribePreview/components/UnsubscribedPage/index.d.ts +13 -0
- package/es/components/molecules/UnsubscribePreview/components/UnsubscribedPage/index.js +85 -0
- package/es/components/molecules/UnsubscribePreview/components/index.d.ts +3 -0
- package/es/components/molecules/UnsubscribePreview/components/index.js +3 -0
- package/es/components/molecules/UnsubscribePreview/components/styled.d.ts +13 -0
- package/es/components/molecules/UnsubscribePreview/components/styled.js +65 -0
- package/es/components/molecules/UnsubscribePreview/index.d.ts +10 -0
- package/es/components/molecules/UnsubscribePreview/index.js +66 -0
- package/es/components/molecules/UnsubscribePreview/styled.d.ts +9 -0
- package/es/components/molecules/UnsubscribePreview/styled.js +51 -0
- package/es/components/molecules/UnsubscribePreview/type.d.ts +5 -0
- package/es/components/molecules/UnsubscribePreview/type.js +1 -0
- package/es/components/molecules/UnsubscribePreview/utils.d.ts +9 -0
- package/es/components/molecules/UnsubscribePreview/utils.js +27 -0
- package/es/components/molecules/UploadImage/index.d.ts +4 -0
- package/es/components/molecules/UploadImage/index.js +2 -2
- package/es/components/molecules/UploadImage/styled.js +114 -114
- package/es/components/molecules/VirtualizedMenu/styled.js +82 -82
- package/es/components/molecules/index.d.ts +4 -0
- package/es/components/molecules/index.js +2 -0
- package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/styles.js +98 -98
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +18 -18
- package/es/components/organism/AccountProfile/components/AccountSetting/styled.js +543 -543
- package/es/components/organism/AccountProfile/components/AccountSetting/styles.scss +39 -39
- package/es/components/organism/AccountSharing/styled.js +336 -336
- package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +1290 -1290
- package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +3059 -3059
- package/es/components/organism/ActivityTimeline/components/ActionHistory/styled.js +28 -28
- package/es/components/organism/ActivityTimeline/components/CardMember/styled.js +60 -60
- package/es/components/organism/ActivityTimeline/components/ItemGroupEvent/styled.js +4 -4
- package/es/components/organism/ActivityTimeline/components/List/styled.js +77 -77
- package/es/components/organism/ActivityTimeline/components/ListItem/styled.js +37 -37
- package/es/components/organism/ActivityTimeline/components/ProductCard/styled.js +92 -92
- package/es/components/organism/ActivityTimeline/components/Redeem/styled.js +7 -7
- package/es/components/organism/ActivityTimeline/components/Slide/styled.js +20 -20
- package/es/components/organism/ActivityTimeline/components/TimeLineTitle/styled.js +7 -7
- package/es/components/organism/ActivityTimeline/components/TimelineSection/styled.js +69 -69
- package/es/components/organism/ActivityTimeline/styled.js +39 -39
- package/es/components/organism/AlgorithmsSetting/styled.js +35 -35
- package/es/components/organism/BasicLogin/components/ChooseMethod/styled.js +19 -19
- package/es/components/organism/BasicLogin/components/LoginWithEmail/styled.js +3 -3
- package/es/components/organism/BasicLogin/components/LoginWithGG/styled.js +3 -3
- package/es/components/organism/BasicLogin/components/SignIn/styled.js +8 -8
- package/es/components/organism/BasicLogin/components/WidgetLayout/styled.js +18 -18
- package/es/components/organism/BasicLogin/styled.js +107 -107
- package/es/components/organism/ContentSources/styled.js +50 -50
- package/es/components/organism/DataTable/components/AddButton/index.js +8 -8
- package/es/components/organism/DataTable/components/ModifyColumn/styled.js +18 -18
- package/es/components/organism/DataTable/components/Pagination/styled.js +26 -26
- package/es/components/organism/DataTable/components/Table/styled.js +135 -135
- package/es/components/organism/DataTable/components/Toolbar/SearchPopover.js +17 -17
- package/es/components/organism/DataTable/components/Toolbar/styled.js +70 -70
- package/es/components/organism/DataTable/styled/index.js +84 -84
- package/es/components/organism/Filter/components/FilterCondition/styled.js +34 -34
- package/es/components/organism/Filter/styled.js +109 -109
- package/es/components/organism/FilterSetting/components/common/InputArray/styled.js +5 -5
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +63 -63
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/ColumnSuggestion/index.js +31 -31
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/Tree/index.js +22 -22
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +55 -55
- package/es/components/organism/FilterSetting/styled.js +19 -19
- package/es/components/organism/Help/styled.js +267 -267
- package/es/components/organism/LeftMenu/components/HomeMenu/styled.js +39 -39
- package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.js +16 -16
- package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +156 -156
- package/es/components/organism/LeftMenu/styled.js +214 -214
- package/es/components/organism/Login/components/ChooseMethod/styled.js +19 -19
- package/es/components/organism/Login/components/ForgotPassword/styled.js +8 -8
- package/es/components/organism/Login/components/LoginSelectPortal/Item/styled.js +31 -31
- package/es/components/organism/Login/components/LoginSelectPortal/styled.js +3 -3
- package/es/components/organism/Login/components/LoginWithEmail/styled.js +3 -3
- package/es/components/organism/Login/components/LoginWithGG/styled.js +3 -3
- package/es/components/organism/Login/components/SetupGGAuthenticator/styled.js +7 -7
- package/es/components/organism/Login/components/SignIn/styled.js +8 -8
- package/es/components/organism/Login/components/VerifyAccount/styled.js +13 -13
- package/es/components/organism/Login/components/WidgetLayout/styled.js +18 -18
- package/es/components/organism/Login/styled.js +115 -115
- package/es/components/organism/Menu/styled.js +6 -6
- package/es/components/organism/ModifyColumnModal/styled.js +132 -132
- package/es/components/organism/Notification/styled.js +155 -155
- package/es/components/organism/PreviewCollections/Messages/SkeletonMessage/styled.js +14 -14
- package/es/components/organism/PreviewCollections/WhatsappMessage/CarouselMessage/styled.js +63 -63
- package/es/components/organism/PreviewCollections/WhatsappMessage/FooterMessage/index.js +3 -1
- package/es/components/organism/PreviewCollections/constants.js +50 -50
- package/es/components/organism/PreviewCollections/styled.js +16 -16
- package/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +78 -78
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.js +52 -52
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.js +18 -18
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +77 -77
- package/es/components/organism/PreviewTemplateModal/styled.js +21 -21
- package/es/components/organism/SQLGeneration/components/styled.js +354 -354
- package/es/components/organism/SQLGeneration/index.scss +1 -1
- package/es/components/organism/SQLGeneration/integrations/AceEditor/index.scss +4 -4
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +11 -11
- package/es/components/organism/Table/CrossTabTable/styled.js +11 -11
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +17 -17
- package/es/components/organism/Table/ExplorePivotTable/styled.js +11 -11
- package/es/components/organism/TicketEditor/styled.js +850 -850
- package/es/components/organism/TicketEditorV2/styled.js +839 -839
- package/es/components/organism/index.scss +1 -1
- package/es/components/template/Layout/Layout.js +10 -10
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/styled.js +73 -73
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.js +39 -39
- package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/styled.js +61 -61
- package/es/components/template/Layout/components/RecommendationWorkspace/styled.js +16 -16
- package/es/components/template/Layout/styled.js +84 -84
- package/es/components/template/TemplateListing/components/BlankTemplate/styled.js +21 -21
- package/es/components/template/TemplateListing/components/CategoryListing/styled.js +123 -123
- package/es/components/template/TemplateListing/components/Empty/styled.js +20 -20
- package/es/components/template/TemplateListing/stories/demo/styled.js +4 -4
- package/es/components/template/TemplateListing/styled/index.js +40 -40
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.js +1 -0
- package/es/constants/queries.d.ts +5 -0
- package/es/constants/queries.js +6 -0
- package/es/constants/unsubscribe.d.ts +56 -0
- package/es/constants/unsubscribe.js +77 -0
- package/es/providers/ConfigProvider/GlobalStyle.js +1249 -1249
- package/es/queries/Unsubscribe/index.d.ts +5 -0
- package/es/queries/Unsubscribe/index.js +5 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeList.d.ts +8 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeList.js +18 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.d.ts +8 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.js +11 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.d.ts +8 -0
- package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.js +17 -0
- package/es/queries/Unsubscribe/useGetUnsubscribePreferences.d.ts +23 -0
- package/es/queries/Unsubscribe/useGetUnsubscribePreferences.js +26 -0
- package/es/services/MediaTemplateDesign/UploadFile/index.js +4 -4
- package/es/services/Unsubscribe/index.d.ts +41 -0
- package/es/services/Unsubscribe/index.js +78 -0
- package/es/styled/common.js +51 -51
- package/es/tests/styled.js +4 -4
- package/es/types/index.d.ts +1 -0
- package/es/types/index.js +1 -0
- package/es/types/unsubscribe.d.ts +25 -0
- package/es/types/unsubscribe.js +1 -0
- package/es/utils/common.d.ts +1 -0
- package/es/utils/common.js +3 -0
- package/es/utils/variables.js +7 -7
- package/package.json +266 -266
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { List } from 'antd';
|
|
3
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const LogoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const LogoImg: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
6
|
+
export declare const Identifier: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const ListStyled: import("styled-components").StyledComponent<typeof List, any, {}, never>;
|
|
10
|
+
export declare const TaskAltIconStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../icons/types").IconProps & import("react").RefAttributes<SVGSVGElement>>, any, {}, never>;
|
|
11
|
+
export declare const CheckboxStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").CheckboxProps & import("react").RefAttributes<import("rc-checkbox").CheckboxRef>> & {
|
|
12
|
+
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd/es/checkbox").CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
13
|
+
}, any, {}, never>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Checkbox, List } from 'antd';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { TaskAltIcon } from '../../../icons';
|
|
4
|
+
export const Wrapper = styled.div `
|
|
5
|
+
width: 550px;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
padding: 30px 20px;
|
|
9
|
+
`;
|
|
10
|
+
export const LogoContainer = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
margin-bottom: 30px;
|
|
14
|
+
`;
|
|
15
|
+
export const LogoImg = styled.img `
|
|
16
|
+
max-width: 60%;
|
|
17
|
+
`;
|
|
18
|
+
export const Identifier = styled.div `
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
margin-bottom: 15px;
|
|
22
|
+
`;
|
|
23
|
+
export const Title = styled.div `
|
|
24
|
+
font-size: 24px;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
margin-bottom: 15px;
|
|
27
|
+
text-align: center;
|
|
28
|
+
`;
|
|
29
|
+
export const Description = styled.div `
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
margin-bottom: 30px;
|
|
33
|
+
`;
|
|
34
|
+
export const ListStyled = styled(List) `
|
|
35
|
+
.antsomi-list-header {
|
|
36
|
+
padding-block: 0px !important;
|
|
37
|
+
border-color: #e5e5e5 !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.antsomi-list-item {
|
|
41
|
+
border-color: #e5e5e5 !important;
|
|
42
|
+
padding: 15px 0px;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 3px;
|
|
46
|
+
align-items: flex-start !important;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
export const TaskAltIconStyled = styled(TaskAltIcon) `
|
|
50
|
+
border-radius: 100%;
|
|
51
|
+
background-color: #c8cedb45;
|
|
52
|
+
padding: 20px;
|
|
53
|
+
margin-bottom: 30px;
|
|
54
|
+
`;
|
|
55
|
+
export const CheckboxStyled = styled(Checkbox) `
|
|
56
|
+
align-items: flex-start;
|
|
57
|
+
|
|
58
|
+
& .antsomi-checkbox {
|
|
59
|
+
align-self: auto !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
& .antsomi-typography {
|
|
63
|
+
margin-bottom: 0px !important;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TUnsubscribePayloadInfo } from '@antscorp/antsomi-ui/es/services/Unsubscribe';
|
|
3
|
+
import { TUnsubscribeSettings, TUnsubscribeType } from '@antscorp/antsomi-ui/es';
|
|
4
|
+
export type TUnsubscribePreviewProps = {
|
|
5
|
+
unsubscribePreferences: TUnsubscribeSettings['unsubscribePreferences'];
|
|
6
|
+
apiConfig: TUnsubscribePayloadInfo;
|
|
7
|
+
type: TUnsubscribeType;
|
|
8
|
+
identifier?: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare const UnsubscribePreview: React.FC<TUnsubscribePreviewProps>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Libraries
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
// Constants
|
|
5
|
+
import { LANDING_PAGE_TYPE, RESULT_PAGE_TYPES } from '@antscorp/antsomi-ui/es/constants';
|
|
6
|
+
import { LANDING_PAGE_TYPE as UNSUBSCRIBE_LANDING_PAGE_TYPE } from '../UnsubscribePreferences/constants';
|
|
7
|
+
// Components
|
|
8
|
+
import { Unsubscribed, Preferences, Result } from './components';
|
|
9
|
+
// Styles
|
|
10
|
+
import { UnsubscribeLandingPageWrapper } from './styled';
|
|
11
|
+
export const UnsubscribePreview = props => {
|
|
12
|
+
const { unsubscribePreferences, apiConfig, type, identifier = [] } = props;
|
|
13
|
+
const { landingPageType, customLink } = unsubscribePreferences || {};
|
|
14
|
+
// States
|
|
15
|
+
const initialState = {
|
|
16
|
+
page: LANDING_PAGE_TYPE.UNSUBSCRIBE,
|
|
17
|
+
resultPage: RESULT_PAGE_TYPES.RESUBSCRIBED,
|
|
18
|
+
};
|
|
19
|
+
const [state, setState] = useState(initialState);
|
|
20
|
+
const { page, resultPage } = state;
|
|
21
|
+
const onChangePage = (newPage) => {
|
|
22
|
+
setState(prevState => ({
|
|
23
|
+
...prevState,
|
|
24
|
+
page: newPage,
|
|
25
|
+
}));
|
|
26
|
+
};
|
|
27
|
+
// Effects
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (!apiConfig?.accountId)
|
|
30
|
+
return;
|
|
31
|
+
const updateAndRedirect = async () => {
|
|
32
|
+
window.location.replace(customLink || '');
|
|
33
|
+
};
|
|
34
|
+
if (landingPageType === UNSUBSCRIBE_LANDING_PAGE_TYPE.SPECIFIC_LINK.value) {
|
|
35
|
+
updateAndRedirect();
|
|
36
|
+
}
|
|
37
|
+
}, [landingPageType, apiConfig?.accountId, customLink]);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
onChangePage(LANDING_PAGE_TYPE.UNSUBSCRIBE);
|
|
40
|
+
}, [unsubscribePreferences]);
|
|
41
|
+
// Renders
|
|
42
|
+
const renderContent = () => {
|
|
43
|
+
if (landingPageType !== UNSUBSCRIBE_LANDING_PAGE_TYPE.SPECIFIC_LINK.value) {
|
|
44
|
+
switch (page) {
|
|
45
|
+
case LANDING_PAGE_TYPE.UNSUBSCRIBE:
|
|
46
|
+
return (_jsx(Unsubscribed, { preferences: unsubscribePreferences, identifier: identifier, onViewPreferences: () => onChangePage(LANDING_PAGE_TYPE.PREFERENCES), onResubscribe: () => {
|
|
47
|
+
onChangePage(LANDING_PAGE_TYPE.RESULT);
|
|
48
|
+
setState(prevState => ({
|
|
49
|
+
...prevState,
|
|
50
|
+
resultPage: RESULT_PAGE_TYPES.RESUBSCRIBED,
|
|
51
|
+
}));
|
|
52
|
+
}, apiConfig: apiConfig, type: type }));
|
|
53
|
+
case LANDING_PAGE_TYPE.PREFERENCES:
|
|
54
|
+
return (_jsx(Preferences, { preferences: unsubscribePreferences, identifier: identifier, onOptOutAll: () => {
|
|
55
|
+
onChangePage(LANDING_PAGE_TYPE.RESULT);
|
|
56
|
+
setState(prevState => ({ ...prevState, resultPage: RESULT_PAGE_TYPES.OPT_OUT }));
|
|
57
|
+
}, apiConfig: apiConfig, type: type }));
|
|
58
|
+
case LANDING_PAGE_TYPE.RESULT:
|
|
59
|
+
return (_jsx(Result, { unsubscribeType: type, type: resultPage, preferences: unsubscribePreferences, identifier: identifier, onClickOptIn: () => onChangePage(LANDING_PAGE_TYPE.PREFERENCES) }));
|
|
60
|
+
default:
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
return (_jsx(UnsubscribeLandingPageWrapper, { className: "unsubscribe-preview", children: renderContent() }));
|
|
66
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const UnsubscribeLandingPageWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const SpinContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const LogoContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const Logo: import("styled-components").StyledComponent<"img", any, {}, never>;
|
|
6
|
+
export declare const Identifier: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const ButtonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
export const UnsubscribeLandingPageWrapper = styled.div `
|
|
4
|
+
.antsomi-card-body {
|
|
5
|
+
padding: 0px !important;
|
|
6
|
+
}
|
|
7
|
+
.ant-list-item {
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
export const SpinContainer = styled.div `
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
`;
|
|
19
|
+
export const Wrapper = styled.div `
|
|
20
|
+
padding: 30px 20px;
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
`;
|
|
25
|
+
export const LogoContainer = styled.div `
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
width: 100%;
|
|
29
|
+
margin-bottom: 30px;
|
|
30
|
+
`;
|
|
31
|
+
export const Logo = styled.img `
|
|
32
|
+
width: 60%;
|
|
33
|
+
`;
|
|
34
|
+
export const Identifier = styled.div `
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
line-height: 1;
|
|
38
|
+
padding: 7px 0px;
|
|
39
|
+
`;
|
|
40
|
+
export const Title = styled.div `
|
|
41
|
+
font-size: 24px;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
`;
|
|
44
|
+
export const Description = styled.div `
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
`;
|
|
48
|
+
export const ButtonWrapper = styled.div `
|
|
49
|
+
padding-top: 15px;
|
|
50
|
+
border-top: 1px solid #e5e5e5;
|
|
51
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Masks an email address to show only the first and last characters of the local part and the first and last characters of the domain.
|
|
3
|
+
* @param {string} [email=''] - the email address to mask
|
|
4
|
+
* @returns {string} the masked email address
|
|
5
|
+
* @example
|
|
6
|
+
* maskEmail('user@example.com') // 'u**r@e**mple.com'
|
|
7
|
+
*/
|
|
8
|
+
export declare const maskEmail: (email?: string) => string;
|
|
9
|
+
export declare const maskPhone: (phone?: string) => string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Masks an email address to show only the first and last characters of the local part and the first and last characters of the domain.
|
|
3
|
+
* @param {string} [email=''] - the email address to mask
|
|
4
|
+
* @returns {string} the masked email address
|
|
5
|
+
* @example
|
|
6
|
+
* maskEmail('user@example.com') // 'u**r@e**mple.com'
|
|
7
|
+
*/
|
|
8
|
+
export const maskEmail = (email = '') => {
|
|
9
|
+
if (!email.includes('@'))
|
|
10
|
+
return 'Invalid email';
|
|
11
|
+
const [local, domain] = email.split('@');
|
|
12
|
+
const localLength = local.length;
|
|
13
|
+
const domainLength = domain.length;
|
|
14
|
+
if (localLength < 2 || domainLength < 3)
|
|
15
|
+
return 'Invalid email';
|
|
16
|
+
const maskedLocal = `${local[0]}${'*'.repeat(localLength - 2)}${local[localLength - 1]}`;
|
|
17
|
+
const maskedDomain = `${domain[0]}${'*'.repeat(domainLength - 2)}${domain[domainLength - 1]}`;
|
|
18
|
+
return `${maskedLocal}@${maskedDomain}`;
|
|
19
|
+
};
|
|
20
|
+
export const maskPhone = (phone = '') => {
|
|
21
|
+
const digits = phone.replace(/\D/g, '');
|
|
22
|
+
if (digits.length < 6)
|
|
23
|
+
return 'Invalid phone';
|
|
24
|
+
const end = digits.slice(-3);
|
|
25
|
+
const masked = '*'.repeat(digits.length - end.length);
|
|
26
|
+
return `${masked}${end}`;
|
|
27
|
+
};
|
|
@@ -129,6 +129,10 @@ export interface UploadImageProps extends AntdUploadProps {
|
|
|
129
129
|
* Indicates if the input is currently focused.
|
|
130
130
|
*/
|
|
131
131
|
focused?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Whether to disable the remove button.
|
|
134
|
+
*/
|
|
135
|
+
disableRemove?: boolean;
|
|
132
136
|
}
|
|
133
137
|
interface UploadMediaObject {
|
|
134
138
|
url: string;
|
|
@@ -44,7 +44,7 @@ const SORT_OPTIONS = {
|
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
export const UploadImage = props => {
|
|
47
|
-
const { labelHeadingModal, labelButtonSelect, labelModalDelete, searchPlaceholder, onRemoveImage, onChangeImage: onChangeMedia, isOpen, isInputMode, width, placeholder, extensions, maxSize, title, showImageURL: showMediaURL, selectedImage: selectedMediaProp, required, focused, domainMedia, slug, paramConfigs, errors, iconName, mode, } = props;
|
|
47
|
+
const { labelHeadingModal, labelButtonSelect, labelModalDelete, searchPlaceholder, onRemoveImage, onChangeImage: onChangeMedia, isOpen, isInputMode, width, placeholder, extensions, maxSize, title, showImageURL: showMediaURL, selectedImage: selectedMediaProp, required, focused, domainMedia, slug, paramConfigs, errors, iconName, mode, disableRemove, } = props;
|
|
48
48
|
const { Dragger } = Upload;
|
|
49
49
|
const [selectedMedia, setSelectedMedia] = useState(selectedMediaProp || { url: '' });
|
|
50
50
|
const [isModalOpen, setIsModalOpen] = useState(isOpen);
|
|
@@ -237,7 +237,7 @@ export const UploadImage = props => {
|
|
|
237
237
|
zIndex: 1,
|
|
238
238
|
marginLeft: 25,
|
|
239
239
|
color: THEME.token?.colorIcon,
|
|
240
|
-
} })) : null, _jsxs("div", { style: flexStyleCenter, children: [_jsxs(Button, { onClick: showModal, style: { backgroundColor: '#ffffff' }, children: ["Browse ", mode === 'video' ? 'Video' : 'Image'] }), selectedMedia && selectedMedia.url ? (_jsx(Button, { onClick: handleRemoveMedia, style: { backgroundColor: '#ffffff' }, children: _jsx(Icon, { type: "icon-ants-remove-trash", size: 15, style: { color: THEME.token?.colorPrimary } }) })) : null] })] }), _jsxs("div", { className: "upload-file-info", style: { marginTop: 12 }, children: [_jsxs(Text, { children: ["File type: ", extensions?.join(', ')] }), _jsxs(Text, { children: ["File size:
|
|
240
|
+
} })) : null, _jsxs("div", { style: flexStyleCenter, children: [_jsxs(Button, { onClick: showModal, style: { backgroundColor: '#ffffff' }, children: ["Browse ", mode === 'video' ? 'Video' : 'Image'] }), !disableRemove && selectedMedia && selectedMedia.url ? (_jsx(Button, { onClick: handleRemoveMedia, style: { backgroundColor: '#ffffff' }, children: _jsx(Icon, { type: "icon-ants-remove-trash", size: 15, style: { color: THEME.token?.colorPrimary } }) })) : null] })] }), _jsxs("div", { className: "upload-file-info", style: { marginTop: 12 }, children: [_jsxs(Text, { children: ["File type: ", extensions?.join(', ')] }), _jsxs(Text, { children: ["File size: Under ", maxSize, "MB"] })] }), showMediaURL && (_jsx(Space, { size: 5, direction: "vertical", style: { marginTop: 12 }, children: _jsx(Input, { label: mode === 'video' ? 'Video URL' : 'Image URL', required: required, placeholder: placeholder, value: selectedMedia.url ? selectedMedia.url : '', focused: focused, maxLength: 255, onAfterChange: value => handleSelectMedia({
|
|
241
241
|
url: value,
|
|
242
242
|
}) }) }))] })), _jsx(Modal, { title: labelModalDelete, open: isOpenConfirmDelete, onOk: () => handleRemoveUploadedMedia(deleteMediaRef.current, false), onCancel: () => setOpenConfirmDelete(prev => !prev), okText: "OK", cancelText: "Cancel", destroyOnClose: true, children: _jsxs("p", { children: ["Are you sure you want to delete ", deleteMediaRef.current?.name, "?"] }) }), _jsxs(Modal, { wrapClassName: "icons-selection-modal", title: _jsxs("div", { style: { display: 'flex', gap: '8px', alignItems: 'center' }, children: [_jsx(Icon, { type: `icon-ants-${iconName}`, size: 20 }), labelHeadingModal] }), centered: true, headerStyle: {
|
|
243
243
|
padding: '20px 20px 0',
|
|
@@ -2,128 +2,128 @@
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
// Constants
|
|
4
4
|
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
5
|
-
export const WrapperListImages = styled.div `
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
width: 250px;
|
|
10
|
-
height: auto;
|
|
11
|
-
text-align: center;
|
|
12
|
-
|
|
13
|
-
&.ants-group:hover .group-hover {
|
|
14
|
-
opacity: 1;
|
|
15
|
-
}
|
|
5
|
+
export const WrapperListImages = styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 250px;
|
|
10
|
+
height: auto;
|
|
11
|
+
text-align: center;
|
|
12
|
+
|
|
13
|
+
&.ants-group:hover .group-hover {
|
|
14
|
+
opacity: 1;
|
|
15
|
+
}
|
|
16
16
|
`;
|
|
17
|
-
export const TextStyled = styled.span `
|
|
18
|
-
color: ${THEME.token?.colorTextDark};
|
|
17
|
+
export const TextStyled = styled.span `
|
|
18
|
+
color: ${THEME.token?.colorTextDark};
|
|
19
19
|
`;
|
|
20
|
-
export const Boxed = styled.div `
|
|
21
|
-
position: relative;
|
|
22
|
-
display: flex;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
align-items: center;
|
|
25
|
-
width: 250px;
|
|
26
|
-
height: 250px;
|
|
27
|
-
border-width: 1px;
|
|
28
|
-
border-style: solid;
|
|
29
|
-
--tw-border-opacity: 1;
|
|
30
|
-
border-color: rgb(224 224 224 / var(--tw-border-opacity));
|
|
20
|
+
export const Boxed = styled.div `
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
width: 250px;
|
|
26
|
+
height: 250px;
|
|
27
|
+
border-width: 1px;
|
|
28
|
+
border-style: solid;
|
|
29
|
+
--tw-border-opacity: 1;
|
|
30
|
+
border-color: rgb(224 224 224 / var(--tw-border-opacity));
|
|
31
31
|
`;
|
|
32
|
-
export const Image = styled.img `
|
|
33
|
-
object-fit: contain;
|
|
34
|
-
width: 100%;
|
|
35
|
-
height: 100%;
|
|
32
|
+
export const Image = styled.img `
|
|
33
|
+
object-fit: contain;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
36
|
`;
|
|
37
|
-
export const WrapperBtn = styled.div `
|
|
38
|
-
position: absolute;
|
|
39
|
-
display: flex;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
align-items: center;
|
|
42
|
-
z-index: 3;
|
|
43
|
-
gap: 15px;
|
|
44
|
-
opacity: 0;
|
|
45
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke,
|
|
46
|
-
opacity, box-shadow, transform, filter, backdrop-filter;
|
|
47
|
-
transition-duration: 200ms;
|
|
48
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
37
|
+
export const WrapperBtn = styled.div `
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
z-index: 3;
|
|
43
|
+
gap: 15px;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke,
|
|
46
|
+
opacity, box-shadow, transform, filter, backdrop-filter;
|
|
47
|
+
transition-duration: 200ms;
|
|
48
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
49
49
|
`;
|
|
50
|
-
export const Paragraph = styled.p `
|
|
51
|
-
display: inline-block;
|
|
52
|
-
margin-top: 5px;
|
|
53
|
-
width: 100%;
|
|
54
|
-
font-size: ${THEME.token?.fontSize}px;
|
|
50
|
+
export const Paragraph = styled.p `
|
|
51
|
+
display: inline-block;
|
|
52
|
+
margin-top: 5px;
|
|
53
|
+
width: 100%;
|
|
54
|
+
font-size: ${THEME.token?.fontSize}px;
|
|
55
55
|
`;
|
|
56
|
-
export const Overlay = styled.div `
|
|
57
|
-
position: absolute;
|
|
58
|
-
top: 0px;
|
|
59
|
-
right: 0px;
|
|
60
|
-
bottom: 0px;
|
|
61
|
-
left: 0px;
|
|
62
|
-
z-index: 2;
|
|
63
|
-
background-color: ${THEME.token?.bgLightTransparent};
|
|
64
|
-
opacity: 0;
|
|
65
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke,
|
|
66
|
-
opacity, box-shadow, transform, filter, backdrop-filter;
|
|
67
|
-
transition-duration: 200ms;
|
|
68
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
56
|
+
export const Overlay = styled.div `
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 0px;
|
|
59
|
+
right: 0px;
|
|
60
|
+
bottom: 0px;
|
|
61
|
+
left: 0px;
|
|
62
|
+
z-index: 2;
|
|
63
|
+
background-color: ${THEME.token?.bgLightTransparent};
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke,
|
|
66
|
+
opacity, box-shadow, transform, filter, backdrop-filter;
|
|
67
|
+
transition-duration: 200ms;
|
|
68
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
69
69
|
`;
|
|
70
|
-
export const WrapperInputMode = styled.div `
|
|
71
|
-
position: relative;
|
|
72
|
-
width: ${props => (props.width ? props.width : '100%')};
|
|
70
|
+
export const WrapperInputMode = styled.div `
|
|
71
|
+
position: relative;
|
|
72
|
+
width: ${props => (props.width ? props.width : '100%')};
|
|
73
73
|
`;
|
|
74
|
-
export const WrapperIcon = styled.div `
|
|
75
|
-
position: absolute;
|
|
76
|
-
top: -10px;
|
|
77
|
-
left: calc(100% - 44px);
|
|
78
|
-
|
|
79
|
-
display: flex;
|
|
80
|
-
justify-content: center;
|
|
81
|
-
align-items: center;
|
|
82
|
-
padding: 12px;
|
|
83
|
-
border-radius: 50%;
|
|
84
|
-
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
|
|
87
|
-
&:hover {
|
|
88
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
89
|
-
}
|
|
74
|
+
export const WrapperIcon = styled.div `
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: -10px;
|
|
77
|
+
left: calc(100% - 44px);
|
|
78
|
+
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
align-items: center;
|
|
82
|
+
padding: 12px;
|
|
83
|
+
border-radius: 50%;
|
|
84
|
+
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
89
|
+
}
|
|
90
90
|
`;
|
|
91
|
-
export const ErrorMessage = styled.div `
|
|
92
|
-
width: 100%;
|
|
93
|
-
margin-top: 3px;
|
|
94
|
-
color: #f44336;
|
|
95
|
-
font-size: 0.688rem;
|
|
96
|
-
line-height: 1.66;
|
|
91
|
+
export const ErrorMessage = styled.div `
|
|
92
|
+
width: 100%;
|
|
93
|
+
margin-top: 3px;
|
|
94
|
+
color: #f44336;
|
|
95
|
+
font-size: 0.688rem;
|
|
96
|
+
line-height: 1.66;
|
|
97
97
|
`;
|
|
98
|
-
export const UploadImageWrapper = styled.div `
|
|
99
|
-
.antsomi-upload.antsomi-upload-btn {
|
|
100
|
-
padding: 0px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.image-upload-content {
|
|
104
|
-
display: flex;
|
|
105
|
-
align-items: center;
|
|
106
|
-
justify-content: center;
|
|
107
|
-
height: 100%;
|
|
108
|
-
gap: 20px;
|
|
109
|
-
position: relative;
|
|
110
|
-
border-radius: ${THEME.token?.borderRadius}px;
|
|
111
|
-
border-width: 2px;
|
|
112
|
-
border-style: dashed;
|
|
113
|
-
--tw-border-opacity: 1;
|
|
114
|
-
border-color: rgb(210 210 210 / var(--tw-border-opacity));
|
|
115
|
-
aspect-ratio: 3.2;
|
|
116
|
-
|
|
117
|
-
&.uploaded {
|
|
118
|
-
background: url('data:image/svg+xml;base64, PHN2ZyBoZWlnaHQ9IjEwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1oaWRkZW49InRydWUiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1vcGFjaXR5PSIuMTI1IiBkPSJNMCAyNTZoMjU2djI1NkgweiI+PC9wYXRoPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik0yNTYgMjU2aDI1NnYyNTZIMjU2eiI+PC9wYXRoPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1vcGFjaXR5PSIuMTI1IiBkPSJNMjU2IDBoMjU2djI1NkgyNTZ6Ij48L3BhdGg+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTAgMGgyNTZ2MjU2SDB6Ij48L3BhdGg+PC9zdmc+')
|
|
119
|
-
repeat rgb(249, 251, 255);
|
|
120
|
-
}
|
|
121
|
-
.antsomi-upload-drag-container {
|
|
122
|
-
}
|
|
123
|
-
.upload-file-info {
|
|
124
|
-
p {
|
|
125
|
-
font-size: 12px;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
98
|
+
export const UploadImageWrapper = styled.div `
|
|
99
|
+
.antsomi-upload.antsomi-upload-btn {
|
|
100
|
+
padding: 0px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-upload-content {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
height: 100%;
|
|
108
|
+
gap: 20px;
|
|
109
|
+
position: relative;
|
|
110
|
+
border-radius: ${THEME.token?.borderRadius}px;
|
|
111
|
+
border-width: 2px;
|
|
112
|
+
border-style: dashed;
|
|
113
|
+
--tw-border-opacity: 1;
|
|
114
|
+
border-color: rgb(210 210 210 / var(--tw-border-opacity));
|
|
115
|
+
aspect-ratio: 3.2;
|
|
116
|
+
|
|
117
|
+
&.uploaded {
|
|
118
|
+
background: url('data:image/svg+xml;base64, PHN2ZyBoZWlnaHQ9IjEwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiB3aWR0aD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1oaWRkZW49InRydWUiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1vcGFjaXR5PSIuMTI1IiBkPSJNMCAyNTZoMjU2djI1NkgweiI+PC9wYXRoPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1vcGFjaXR5PSIuMjUiIGQ9Ik0yNTYgMjU2aDI1NnYyNTZIMjU2eiI+PC9wYXRoPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZmlsbC1vcGFjaXR5PSIuMTI1IiBkPSJNMjU2IDBoMjU2djI1NkgyNTZ6Ij48L3BhdGg+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBmaWxsLW9wYWNpdHk9Ii4yNSIgZD0iTTAgMGgyNTZ2MjU2SDB6Ij48L3BhdGg+PC9zdmc+')
|
|
119
|
+
repeat rgb(249, 251, 255);
|
|
120
|
+
}
|
|
121
|
+
.antsomi-upload-drag-container {
|
|
122
|
+
}
|
|
123
|
+
.upload-file-info {
|
|
124
|
+
p {
|
|
125
|
+
font-size: 12px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
129
|
`;
|