@openlettermarketing/olc-react-sdk 2.1.6 → 2.1.8

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 (230) hide show
  1. package/build/index.js +1 -1
  2. package/build/index.js.map +1 -1
  3. package/build/types/version.d.ts +1 -1
  4. package/package.json +7 -6
  5. package/.eslintignore +0 -1
  6. package/.eslintrc.cjs +0 -18
  7. package/.eslintrc.yml +0 -47
  8. package/.github/workflows/publish-beta.yml +0 -154
  9. package/.github/workflows/publish-production.yml +0 -143
  10. package/.prettierignore +0 -3
  11. package/.prettierrc.yml +0 -5
  12. package/CHANGELOG.md +0 -4
  13. package/babel.config.json +0 -10
  14. package/examples/.eslintrc.yml +0 -4
  15. package/index.html +0 -18
  16. package/public/vite.svg +0 -1
  17. package/src/App.tsx +0 -209
  18. package/src/assets/Fonts/Lexi-Regular.ttf +0 -0
  19. package/src/assets/images/create-template/prebuilt.svg +0 -13
  20. package/src/assets/images/create-template/scratch.svg +0 -4
  21. package/src/assets/images/input/cancel.tsx +0 -20
  22. package/src/assets/images/input/search.tsx +0 -20
  23. package/src/assets/images/input/select-cancel.tsx +0 -17
  24. package/src/assets/images/modal-icons/add.tsx +0 -36
  25. package/src/assets/images/modal-icons/cancel-file.tsx +0 -12
  26. package/src/assets/images/modal-icons/cancel-input.tsx +0 -13
  27. package/src/assets/images/modal-icons/cancel.tsx +0 -35
  28. package/src/assets/images/modal-icons/close-new.svg +0 -3
  29. package/src/assets/images/modal-icons/confirm-close-icon.tsx +0 -14
  30. package/src/assets/images/modal-icons/confirm-new.tsx +0 -22
  31. package/src/assets/images/modal-icons/confirm.svg +0 -12
  32. package/src/assets/images/modal-icons/cross.tsx +0 -23
  33. package/src/assets/images/modal-icons/del.tsx +0 -19
  34. package/src/assets/images/modal-icons/design-icon.tsx +0 -22
  35. package/src/assets/images/modal-icons/doc.tsx +0 -43
  36. package/src/assets/images/modal-icons/docx.tsx +0 -43
  37. package/src/assets/images/modal-icons/envelope-icon.tsx +0 -26
  38. package/src/assets/images/modal-icons/info.tsx +0 -19
  39. package/src/assets/images/modal-icons/jpeg.tsx +0 -43
  40. package/src/assets/images/modal-icons/jpg.tsx +0 -43
  41. package/src/assets/images/modal-icons/modal-cros.svg +0 -4
  42. package/src/assets/images/modal-icons/modal-cross.tsx +0 -37
  43. package/src/assets/images/modal-icons/new-cancel.tsx +0 -11
  44. package/src/assets/images/modal-icons/order-download.tsx +0 -42
  45. package/src/assets/images/modal-icons/pdf.tsx +0 -51
  46. package/src/assets/images/modal-icons/png.tsx +0 -43
  47. package/src/assets/images/modal-icons/save.tsx +0 -23
  48. package/src/assets/images/modal-icons/template-copy.tsx +0 -25
  49. package/src/assets/images/modal-icons/tool-cancel.tsx +0 -25
  50. package/src/assets/images/products/bi-new.svg +0 -23
  51. package/src/assets/images/products/left-arrow.svg +0 -17
  52. package/src/assets/images/products/personal-new.tsx +0 -31
  53. package/src/assets/images/products/postcard-new.tsx +0 -27
  54. package/src/assets/images/products/professional-new.tsx +0 -24
  55. package/src/assets/images/products/real-new.tsx +0 -30
  56. package/src/assets/images/products/right-arrow.svg +0 -17
  57. package/src/assets/images/products/snap-new.svg +0 -31
  58. package/src/assets/images/templates/actions.svg +0 -3
  59. package/src/assets/images/templates/address-block-icon.tsx +0 -62
  60. package/src/assets/images/templates/archive.svg +0 -3
  61. package/src/assets/images/templates/arrow-down.tsx +0 -27
  62. package/src/assets/images/templates/back-arrow.tsx +0 -19
  63. package/src/assets/images/templates/bi-fold-self-mailers.tsx +0 -28
  64. package/src/assets/images/templates/check.svg +0 -3
  65. package/src/assets/images/templates/code.svg +0 -10
  66. package/src/assets/images/templates/content-copy-icon.tsx +0 -24
  67. package/src/assets/images/templates/custom-add-on-icon.tsx +0 -18
  68. package/src/assets/images/templates/custom-qr-section-icon.tsx +0 -9
  69. package/src/assets/images/templates/custom-template.tsx +0 -23
  70. package/src/assets/images/templates/designer.tsx +0 -43
  71. package/src/assets/images/templates/dot.tsx +0 -22
  72. package/src/assets/images/templates/download-v2.svg +0 -4
  73. package/src/assets/images/templates/download.svg +0 -4
  74. package/src/assets/images/templates/dummy-template.tsx +0 -76
  75. package/src/assets/images/templates/dynamic-field.tsx +0 -119
  76. package/src/assets/images/templates/edit-pencil-icon.tsx +0 -21
  77. package/src/assets/images/templates/edit.svg +0 -3
  78. package/src/assets/images/templates/epo-icon.tsx +0 -16
  79. package/src/assets/images/templates/field.tsx +0 -29
  80. package/src/assets/images/templates/gsv-icon.tsx +0 -31
  81. package/src/assets/images/templates/info-icon.tsx +0 -37
  82. package/src/assets/images/templates/left-arrow.svg +0 -17
  83. package/src/assets/images/templates/pencil.svg +0 -3
  84. package/src/assets/images/templates/personal-letter.tsx +0 -53
  85. package/src/assets/images/templates/postcard.tsx +0 -32
  86. package/src/assets/images/templates/professional-letter.tsx +0 -53
  87. package/src/assets/images/templates/qr-code.tsx +0 -13
  88. package/src/assets/images/templates/real-penned-letters.tsx +0 -57
  89. package/src/assets/images/templates/right-arrow.svg +0 -17
  90. package/src/assets/images/templates/size-image-lg.tsx +0 -20
  91. package/src/assets/images/templates/size-image-mid.tsx +0 -20
  92. package/src/assets/images/templates/size-image-xl.tsx +0 -20
  93. package/src/assets/images/templates/size-image.tsx +0 -20
  94. package/src/assets/images/templates/snap-pack.tsx +0 -67
  95. package/src/assets/images/templates/template-default-design.tsx +0 -21
  96. package/src/assets/images/templates/trash-upload.svg +0 -3
  97. package/src/assets/images/templates/trash.svg +0 -3
  98. package/src/assets/images/templates/tri-fold-self-mailers.tsx +0 -93
  99. package/src/assets/images/templates/upload-image.svg +0 -10
  100. package/src/assets/images/templates/x.svg +0 -3
  101. package/src/assets/images/thumbnails/one.svg +0 -9
  102. package/src/assets/images/tooltip/tool-arrow.tsx +0 -25
  103. package/src/components/CreateTemplate/V2/index.tsx +0 -527
  104. package/src/components/CreateTemplate/V2/styles.scss +0 -372
  105. package/src/components/CreateTemplate/index.tsx +0 -508
  106. package/src/components/CreateTemplate/styles.scss +0 -404
  107. package/src/components/GenericUIBlocks/Button/index.tsx +0 -54
  108. package/src/components/GenericUIBlocks/Button/styles.scss +0 -43
  109. package/src/components/GenericUIBlocks/CircularProgress/index.tsx +0 -18
  110. package/src/components/GenericUIBlocks/CircularProgress/styles.scss +0 -93
  111. package/src/components/GenericUIBlocks/CustomTooltip/index.tsx +0 -88
  112. package/src/components/GenericUIBlocks/CustomTooltip/styles.scss +0 -19
  113. package/src/components/GenericUIBlocks/Dialog/V2/index.tsx +0 -227
  114. package/src/components/GenericUIBlocks/Dialog/V2/styles.scss +0 -289
  115. package/src/components/GenericUIBlocks/Dialog/index.tsx +0 -185
  116. package/src/components/GenericUIBlocks/Dialog/styles.scss +0 -227
  117. package/src/components/GenericUIBlocks/Divider/index.tsx +0 -12
  118. package/src/components/GenericUIBlocks/Divider/styles.scss +0 -7
  119. package/src/components/GenericUIBlocks/GeneralSelect/index.tsx +0 -114
  120. package/src/components/GenericUIBlocks/GeneralSelect/styles.scss +0 -406
  121. package/src/components/GenericUIBlocks/GeneralTooltip/index.tsx +0 -25
  122. package/src/components/GenericUIBlocks/GeneralTooltip/styles.scss +0 -20
  123. package/src/components/GenericUIBlocks/GenericSnackbar/Toast/index.tsx +0 -91
  124. package/src/components/GenericUIBlocks/GenericSnackbar/Toast/styles.scss +0 -92
  125. package/src/components/GenericUIBlocks/Grid/index.tsx +0 -82
  126. package/src/components/GenericUIBlocks/Input/index.tsx +0 -269
  127. package/src/components/GenericUIBlocks/Input/styles.scss +0 -332
  128. package/src/components/GenericUIBlocks/Tabs/index.tsx +0 -71
  129. package/src/components/GenericUIBlocks/Tabs/styles.scss +0 -42
  130. package/src/components/GenericUIBlocks/Typography/index.tsx +0 -18
  131. package/src/components/GenericUIBlocks/Typography/styles.scss +0 -27
  132. package/src/components/SidePanel/CustomAddOns/index.tsx +0 -342
  133. package/src/components/SidePanel/CustomAddOns/styles.scss +0 -86
  134. package/src/components/SidePanel/CustomBlockColors/index.tsx +0 -211
  135. package/src/components/SidePanel/CustomBlockColors/styles.scss +0 -80
  136. package/src/components/SidePanel/CustomFields/customFieldSection.tsx +0 -547
  137. package/src/components/SidePanel/CustomFields/styles.scss +0 -64
  138. package/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/index.tsx +0 -172
  139. package/src/components/SidePanel/CustomQRCode/V2/QRCodeModal/styles.scss +0 -46
  140. package/src/components/SidePanel/CustomQRCode/index.tsx +0 -1070
  141. package/src/components/SidePanel/CustomQRCode/styles.scss +0 -149
  142. package/src/components/SidePanel/CustomUploads/V2/index.tsx +0 -542
  143. package/src/components/SidePanel/CustomUploads/V2/styles.scss +0 -267
  144. package/src/components/SidePanel/CustomUploads/index.tsx +0 -301
  145. package/src/components/SidePanel/Templates/ModalGallery/HireDesigner/index.tsx +0 -424
  146. package/src/components/SidePanel/Templates/ModalGallery/HireDesigner/styles.scss +0 -180
  147. package/src/components/SidePanel/Templates/ModalGallery/V2/index.tsx +0 -235
  148. package/src/components/SidePanel/Templates/ModalGallery/V2/styles.scss +0 -244
  149. package/src/components/SidePanel/Templates/ModalGallery/index.tsx +0 -231
  150. package/src/components/SidePanel/Templates/SideBarGallery/index.tsx +0 -233
  151. package/src/components/SidePanel/Templates/SideBarGallery/styles.scss +0 -152
  152. package/src/components/SidePanel/Templates/TemplatesCard/V2/index.tsx +0 -149
  153. package/src/components/SidePanel/Templates/TemplatesCard/V2/styles.scss +0 -156
  154. package/src/components/SidePanel/Templates/TemplatesCard/index.tsx +0 -160
  155. package/src/components/SidePanel/Templates/TemplatesCard/styles.scss +0 -98
  156. package/src/components/SidePanel/Templates/customTemplateSection.tsx +0 -793
  157. package/src/components/SidePanel/Templates/styles.scss +0 -244
  158. package/src/components/SidePanel/index.tsx +0 -160
  159. package/src/components/TemplateBuilder/index.tsx +0 -585
  160. package/src/components/TemplateBuilder/styles.scss +0 -100
  161. package/src/components/TemplateTypes/index.tsx +0 -96
  162. package/src/components/TemplateTypes/styles.scss +0 -91
  163. package/src/components/TopNavigation/ConfirmNavigateDialog/index.tsx +0 -81
  164. package/src/components/TopNavigation/ConfirmNavigateDialog/styles.scss +0 -123
  165. package/src/components/TopNavigation/DuplicateTemplateModal.tsx +0 -103
  166. package/src/components/TopNavigation/EditTemplateNameModel/index.tsx +0 -71
  167. package/src/components/TopNavigation/EditTemplateNameModel/styles.scss +0 -88
  168. package/src/components/TopNavigation/SaveTemplateModel/index.tsx +0 -201
  169. package/src/components/TopNavigation/SaveTemplateModel/styles.scss +0 -128
  170. package/src/components/TopNavigation/index.tsx +0 -938
  171. package/src/components/TopNavigation/styles.scss +0 -303
  172. package/src/importMeta.d.ts +0 -31
  173. package/src/index.scss +0 -131
  174. package/src/index.tsx +0 -238
  175. package/src/libs/test.ts +0 -7
  176. package/src/redux/actions/action-types.ts +0 -52
  177. package/src/redux/actions/customQRCodeActions.ts +0 -54
  178. package/src/redux/actions/snackbarActions.ts +0 -16
  179. package/src/redux/actions/templateActions.ts +0 -236
  180. package/src/redux/reducers/customFieldReducer.ts +0 -99
  181. package/src/redux/reducers/customQRCodeReducer.ts +0 -58
  182. package/src/redux/reducers/index.ts +0 -15
  183. package/src/redux/reducers/snackbarReducer.ts +0 -40
  184. package/src/redux/reducers/templateReducer.ts +0 -485
  185. package/src/redux/store.ts +0 -18
  186. package/src/styles/colors.scss +0 -61
  187. package/src/test/mocks.js +0 -89
  188. package/src/test/setupJest.js +0 -1
  189. package/src/utils/api.ts +0 -36
  190. package/src/utils/constants.ts +0 -182
  191. package/src/utils/customStyles.ts +0 -45
  192. package/src/utils/fetchWrapper.ts +0 -73
  193. package/src/utils/fonts.json +0 -1597
  194. package/src/utils/helper.ts +0 -205
  195. package/src/utils/local-storage.ts +0 -15
  196. package/src/utils/message.ts +0 -162
  197. package/src/utils/products.ts +0 -186
  198. package/src/utils/template-builder.ts +0 -328
  199. package/src/utils/templateIdentifierArea/biFold.ts +0 -107
  200. package/src/utils/templateIdentifierArea/index.ts +0 -35
  201. package/src/utils/templateIdentifierArea/personal.ts +0 -107
  202. package/src/utils/templateIdentifierArea/postCards.ts +0 -163
  203. package/src/utils/templateIdentifierArea/professional.ts +0 -125
  204. package/src/utils/templateIdentifierArea/snapPack.ts +0 -107
  205. package/src/utils/templateIdentifierArea/triFold.ts +0 -107
  206. package/src/utils/templateRestrictedArea/biFold.ts +0 -329
  207. package/src/utils/templateRestrictedArea/nonWindowProfessional.ts +0 -90
  208. package/src/utils/templateRestrictedArea/personal.ts +0 -90
  209. package/src/utils/templateRestrictedArea/postCard.ts +0 -334
  210. package/src/utils/templateRestrictedArea/postCardJumbo.tsx +0 -408
  211. package/src/utils/templateRestrictedArea/professional.ts +0 -318
  212. package/src/utils/templateRestrictedArea/realPenned.ts +0 -233
  213. package/src/utils/templateRestrictedArea/snapPack.ts +0 -1009
  214. package/src/utils/templateRestrictedArea/triFold.ts +0 -330
  215. package/src/utils/templateSafetyBorders/biFold.ts +0 -91
  216. package/src/utils/templateSafetyBorders/index.ts +0 -43
  217. package/src/utils/templateSafetyBorders/personal.ts +0 -41
  218. package/src/utils/templateSafetyBorders/postCards.ts +0 -259
  219. package/src/utils/templateSafetyBorders/professional.ts +0 -78
  220. package/src/utils/templateSafetyBorders/snapPack.ts +0 -165
  221. package/src/utils/templateSafetyBorders/triFold.ts +0 -114
  222. package/src/utils/templateSafetyBorders/types.d.ts +0 -68
  223. package/src/utils/types.ts +0 -12
  224. package/src/v2Theme.scss +0 -142
  225. package/tsconfig.json +0 -29
  226. package/tsconfig.node.json +0 -12
  227. package/update-version.js +0 -23
  228. package/version.js +0 -1
  229. package/vite.config.ts +0 -8
  230. package/webpack.config.js +0 -80
@@ -1,201 +0,0 @@
1
- import React, { useMemo, useState, useEffect } from 'react';
2
-
3
- // Hooks
4
- import { useDispatch, useSelector } from 'react-redux';
5
- import { RootState } from '~/redux/reducers';
6
- import { AppDispatch } from '~/redux/store';
7
-
8
- // Actions
9
- import { SET_ROS_OFFER_PERCENTAGE } from '../../../redux/actions/action-types';
10
- import { failure } from '../../../redux/actions/snackbarActions';
11
-
12
- // Utils
13
- import { MESSAGES } from '../../../utils/message';
14
- import { getEnv, getIsSandbox, getPublicApiKey } from '../../../utils/helper';
15
- import { DEMO_PO_GENERATOR_URL, PROD_PO_GENERATOR_URL, STAGE_PO_GENERATOR_URL } from '../../../utils/constants';
16
-
17
- // Components
18
- import Dialog from '../../GenericUIBlocks/Dialog';
19
- import DialogV2 from '../../GenericUIBlocks/Dialog/V2';
20
- import Input from '../../GenericUIBlocks/Input';
21
-
22
- // Icons
23
- import Save from '../../../assets/images/modal-icons/save';
24
-
25
- // Styles
26
- import './styles.scss';
27
-
28
-
29
- /**
30
- * Renders a modal dialog for deleting a template.
31
- *
32
- * @param {function} handleSave - Callback function to handle the save action.
33
- * @param {function} handleClose - Callback function to handle the close action.
34
- * @param {boolean} open - Boolean value indicating whether the modal is open or not.
35
- * @returns {JSX.Element} The delete template modal component.
36
- */
37
-
38
- const saveDialogStyles = {
39
- maxWidth: '433px',
40
- minHeight: '280px',
41
- };
42
-
43
- interface SaveTemplateModelProps {
44
- open: boolean;
45
- loading: boolean;
46
- handleClose: () => void;
47
- handleSave: () => void;
48
- store: any; // StoreType if available
49
- allowedAddOns?: any;
50
- currentTheme?: string | null | undefined;
51
- }
52
-
53
- const SaveTemplateModel: React.FC<SaveTemplateModelProps> = ({
54
- handleSave,
55
- handleClose,
56
- open,
57
- loading,
58
- store,
59
- allowedAddOns,
60
- currentTheme,
61
- }) => {
62
- const [customRosInput, setCustomRosInput] = useState("");
63
-
64
- const dispatch: AppDispatch = useDispatch();
65
-
66
- const currentOfferPercentage = useSelector(
67
- (state: RootState) => state.templates.offerPercentage
68
- ) as string;
69
-
70
- const propertyOfferGeneratorURL: string =
71
- (getEnv() === 'local' || getEnv() === 'staging'
72
- ? STAGE_PO_GENERATOR_URL
73
- : getIsSandbox()
74
- ? DEMO_PO_GENERATOR_URL
75
- : PROD_PO_GENERATOR_URL) + `?apiKey=${getPublicApiKey()}`;
76
-
77
- const enableCustomRos = allowedAddOns?.includes('custom_property_offer');
78
-
79
- const rosFieldExists = useMemo(() => {
80
- if (!enableCustomRos || !store?.pages) return false;
81
- for (const page of store.pages) {
82
- for (const el of page.children) {
83
- if (el.text === '{{ROS.PROPERTY_OFFER}}' ) {
84
- return true
85
- }
86
- }
87
- }
88
- return false;
89
- }, [enableCustomRos, store]);
90
-
91
- const handleCustomRosChange = (e: React.ChangeEvent<HTMLInputElement>) => {
92
- const val = e.target.value;
93
- if (val === "") {
94
- setCustomRosInput("");
95
- dispatch({ type: SET_ROS_OFFER_PERCENTAGE, payload: "" });
96
- return;
97
- }
98
- const num = Number(val);
99
- if (!isNaN(num) && num >= 1 && num <= 100) {
100
- setCustomRosInput(val);
101
- dispatch({ type: SET_ROS_OFFER_PERCENTAGE, payload: val });
102
- } else {
103
- dispatch(failure("Please enter a number between 1 and 100"));
104
- }
105
- };
106
-
107
- useEffect(() => {
108
- if (!enableCustomRos) return;
109
- setCustomRosInput(currentOfferPercentage || "");
110
- }, []);
111
-
112
- // Custom content for the dialog
113
- const customContent = (
114
- enableCustomRos ? (
115
- <div style={{ display: "flex", flexDirection: "column", gap: 0, marginBottom: 32 }}>
116
- <div>
117
- {MESSAGES.TEMPLATE.SAVE.PARAGRAPH}
118
- </div>
119
- <div style={{ marginTop: 10, marginBottom: 35}}>
120
- <label style={{ fontWeight: 500, marginBottom: 4, display: "block", textAlign: 'center' }}>
121
- Confirm Custom ROS Value
122
- </label>
123
- <div className='plain-text' style={{
124
- textAlign: 'center',
125
- }}>
126
- <a href={propertyOfferGeneratorURL} target='_blank'
127
- style={{
128
- color: 'var(--primary-color)',
129
- }}
130
- onClick={(e) => {
131
- e.stopPropagation()
132
- }}
133
- >
134
- {MESSAGES.TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.CUSTOM.CLICK}
135
- </a>{' '}
136
- {MESSAGES.TEMPLATE.CUSTOM_ADD_ONS.PROPERTY_OFFER.CUSTOM.CSV_IMPORT}
137
- </div>
138
- <Input
139
- type="number"
140
- onlyNumber={true}
141
- placeholder="Type in a Number between 1-100"
142
- value={customRosInput}
143
- onChange={handleCustomRosChange}
144
- />
145
- </div>
146
- </div>
147
- ) : null
148
- );
149
-
150
- // Custom submit handler with validation
151
- const handleSubmit = () => {
152
- if (enableCustomRos && rosFieldExists && !customRosInput) {
153
- dispatch(failure("Please enter the offer percentage before saving the template"))
154
- return;
155
- }
156
- handleSave();
157
- };
158
-
159
- return (
160
- currentTheme === 'v2' ?
161
- <DialogV2
162
- icon={<Save fill="var(--primary-color)" />}
163
- open={open}
164
- loading={loading}
165
- handleClose={handleClose}
166
- title={MESSAGES.TEMPLATE.SAVE.TITLE}
167
- subHeading={MESSAGES.TEMPLATE.SAVE.HEADING}
168
- // Show custom content if rosCustomValue exists, else default description
169
- description={enableCustomRos && rosFieldExists ? undefined : MESSAGES.TEMPLATE.SAVE.PARAGRAPH}
170
- cancelText={MESSAGES.TEMPLATE.SAVE.CANCEL_BUTTON}
171
- submitText={MESSAGES.TEMPLATE.SAVE.SUBMIT_BUTTON}
172
- customStyles={{...saveDialogStyles, padding: '40px', maxWidth: enableCustomRos && rosFieldExists ? '620px' : '550px'}}
173
- onSubmit={handleSubmit}
174
- onCancel={handleClose}
175
- currentTheme="v2"
176
- isGallery={false}
177
- >
178
- {enableCustomRos && rosFieldExists && customContent}
179
- </DialogV2>
180
- :
181
- <Dialog
182
- icon={<Save fill="var(--primary-color)" />}
183
- open={open}
184
- loading={loading}
185
- handleClose={handleClose}
186
- title={MESSAGES.TEMPLATE.SAVE.TITLE}
187
- subHeading={MESSAGES.TEMPLATE.SAVE.HEADING}
188
- // Show custom content if rosCustomValue exists, else default description
189
- description={enableCustomRos && rosFieldExists ? undefined : MESSAGES.TEMPLATE.SAVE.PARAGRAPH}
190
- cancelText={MESSAGES.TEMPLATE.SAVE.CANCEL_BUTTON}
191
- submitText={MESSAGES.TEMPLATE.SAVE.SUBMIT_BUTTON}
192
- customStyles={{...saveDialogStyles, maxWidth: enableCustomRos && rosFieldExists ? '620px' : '433px'}}
193
- onSubmit={handleSubmit}
194
- onCancel={handleClose}
195
- >
196
- {enableCustomRos && rosFieldExists && customContent}
197
- </Dialog>
198
- );
199
- };
200
-
201
- export default SaveTemplateModel;
@@ -1,128 +0,0 @@
1
- .confirmTemplateSaveModal {
2
- .MuiPaper-root {
3
- width: 100% !important;
4
- max-width: 433px !important;
5
- height: 100% !important;
6
- max-height: 290px !important;
7
- margin: 0 auto !important;
8
- border-radius: 11px;
9
- background: #fff8ee;
10
- }
11
-
12
- .confirmTemplateSaveModalTitle {
13
- color: #ed5c2f;
14
- text-align: center;
15
- font-size: 22px;
16
- font-style: normal;
17
- font-weight: 700;
18
- line-height: normal;
19
- }
20
-
21
- .confirmTemplateSaveModalContent {
22
- display: flex;
23
- flex-direction: column;
24
- gap: 20px;
25
- padding: 16px 16px 0px;
26
-
27
- .trashIconWrapper {
28
- text-align: center;
29
-
30
- p {
31
- color: #ed5c2f;
32
- text-align: center;
33
- font-size: 22px;
34
- font-style: normal;
35
- font-weight: 700;
36
- line-height: normal;
37
- margin-top: 10px;
38
- }
39
- }
40
-
41
- .confirmTemplateSaveText {
42
- display: flex;
43
- flex-direction: column;
44
- justify-content: center;
45
- align-items: center;
46
- gap: 10px;
47
-
48
- p {
49
- color: #000;
50
- text-align: center;
51
- font-size: 16px;
52
- font-style: normal;
53
- font-weight: 600;
54
- line-height: normal;
55
-
56
- &:last-child {
57
- color: #000;
58
- text-align: center;
59
- font-size: 14px;
60
- font-style: normal;
61
- font-weight: 400;
62
- line-height: 16px;
63
- /* 114.286% */
64
- letter-spacing: 0.28px;
65
- margin: 0;
66
- }
67
- }
68
- }
69
-
70
- .MuiInputBase-root {
71
- border-radius: 7px;
72
- border: 0.5px solid #303030;
73
- background: #fff;
74
- width: 100%;
75
- padding: 10px 22px;
76
-
77
- &:focus,
78
- &:focus-visible {
79
- outline: none !important;
80
- }
81
-
82
- &::after,
83
- &::before {
84
- display: none !important;
85
- }
86
- }
87
- }
88
-
89
- .actionBtns {
90
- justify-content: center;
91
- align-items: center;
92
- margin-bottom: 10px;
93
- gap: 20px;
94
-
95
- button {
96
- border-radius: 5px;
97
- text-transform: capitalize;
98
- width: 100%;
99
- max-width: 107px;
100
- height: 100%;
101
- min-height: 41px;
102
-
103
- &:first-child {
104
- border: 0.5px solid rgba(48, 48, 48, 0.5);
105
- background: #fff;
106
- color: #000;
107
- font-size: 16px;
108
- font-style: normal;
109
- font-weight: 600;
110
- line-height: normal;
111
- }
112
-
113
- &:last-child {
114
- color: #fff;
115
- font-size: 16px;
116
- font-style: normal;
117
- font-weight: 600;
118
- line-height: normal;
119
- background: #ed5c2f;
120
- margin: 0;
121
- }
122
-
123
- &:disabled {
124
- opacity: 0.5;
125
- }
126
- }
127
- }
128
- }