@licklist/design 0.66.8-dev.2 → 0.66.9-dev.1

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 (212) hide show
  1. package/dist/affiliate/card/AffiliateCard.js +9 -7
  2. package/dist/auth/AccessDenied/AccessDenied.js +6 -3
  3. package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
  4. package/dist/auth/Social/SocialFormComponent.js +1 -0
  5. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
  6. package/dist/collapsible-input-group/CollapsibleInputGroup.js +5 -5
  7. package/dist/custom-fields/constants.d.ts +2 -2
  8. package/dist/custom-fields/constants.d.ts.map +1 -1
  9. package/dist/custom-fields/constants.js +4 -8
  10. package/dist/custom-fields/field/FieldItem.d.ts +1 -2
  11. package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
  12. package/dist/custom-fields/field/FieldItem.js +6 -1
  13. package/dist/custom-fields/forms/DropdownForm.js +9 -5
  14. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
  15. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +4 -3
  16. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  17. package/dist/events/event-card/EventCard.js +16 -6
  18. package/dist/events/event-statistic-modal/EventStatisticModal.js +5 -3
  19. package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +6 -3
  20. package/dist/file-upload/FilePreview.js +11 -6
  21. package/dist/help/popover/HelpPopover.js +6 -3
  22. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
  23. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +9 -6
  24. package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
  25. package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +11 -7
  26. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +8 -9
  27. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +5 -2
  28. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +5 -2
  29. package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +8 -3
  30. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +5 -2
  31. package/dist/iframe/order-process/components/Timer/Timer.js +5 -2
  32. package/dist/iframe/payment/order-items-table/OrderItemsTable.js +2 -1
  33. package/dist/iframe/payment/payment-form/PaymentForm.js +2 -1
  34. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  35. package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
  36. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/modals/confirmation/ConfirmModal.js +4 -3
  39. package/dist/modals/fullscreen/FullscreenModal.js +4 -3
  40. package/dist/notification/email-template/card/EmailTemplateCard.js +8 -3
  41. package/dist/notification/sms-template/card/SmsTemplateCard.js +8 -3
  42. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  43. package/dist/product-set/card/ProductSetCard.js +9 -7
  44. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  45. package/dist/product-set/control/DateAndRecurrenceInput.js +5 -3
  46. package/dist/product-set/control/DateInput.js +5 -3
  47. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  48. package/dist/product-set/control/ProductSetRecurrenceControl.js +8 -5
  49. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
  50. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +8 -5
  51. package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
  52. package/dist/product-set/control/TutorialGifCard.js +10 -6
  53. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  54. package/dist/product-set/elements/DeleteFieldButton.js +4 -3
  55. package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
  56. package/dist/product-set/form/ProductsControl.js +2 -2
  57. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  58. package/dist/product-set/form/SelectCategoryModal.js +23 -30
  59. package/dist/product-set/form/SubProductsControl.js +1 -1
  60. package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
  61. package/dist/product-set/item/CreateProductSetItem.js +6 -3
  62. package/dist/product-set/popover/ProductSetPopover.js +5 -3
  63. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  64. package/dist/product-set/product/ProductControl.js +4 -3
  65. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +4 -3
  66. package/dist/product-set/product/deposit/ProductDepositControl.js +4 -3
  67. package/dist/product-set/product/price/ProductPriceControl.js +4 -3
  68. package/dist/report/card/ReportCard.d.ts +2 -1
  69. package/dist/report/card/ReportCard.d.ts.map +1 -1
  70. package/dist/report/card/ReportCard.js +16 -6
  71. package/dist/sales/booking/results/components/ResultCard.js +5 -4
  72. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  73. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +6 -3
  74. package/dist/sales/modals/payment-modal/PaymentModal.js +4 -3
  75. package/dist/sales/modals/refund-modal/RefundModal.js +4 -3
  76. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  77. package/dist/sales/notes/NotesTable.js +6 -4
  78. package/dist/sales/notes/NotesTableRow.js +9 -7
  79. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  80. package/dist/setting/admin/AdminSettingForm.js +6 -3
  81. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  82. package/dist/setting/admin/PaymentFeeForm.js +26 -11
  83. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  84. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  85. package/dist/setting/dashboard/ProviderSettingForm.js +6 -3
  86. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +5 -2
  87. package/dist/setting/dashboard/snippets/card/SnippetCard.js +9 -7
  88. package/dist/sidebar/elements/ReturnBack.js +5 -2
  89. package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
  90. package/dist/slide-curtain/SlideCurtain.js +4 -3
  91. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  92. package/dist/snippet/snippet-template/settings/SettingButton.js +6 -3
  93. package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
  94. package/dist/sortable-list/CreateSortableListItem.js +6 -3
  95. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  96. package/dist/sortable-tree/SortableTreeItem.js +10 -6
  97. package/dist/static/Icon.d.ts +13 -0
  98. package/dist/static/Icon.d.ts.map +1 -0
  99. package/dist/static/Icon.js +22 -0
  100. package/dist/static/RestrictedAccess.js +4 -3
  101. package/dist/static/SocialButton.d.ts +1 -0
  102. package/dist/static/SocialButton.d.ts.map +1 -1
  103. package/dist/static/SocialButton.js +10 -7
  104. package/dist/static/UserBadge.d.ts.map +1 -1
  105. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  106. package/dist/static/date-range-input/DateRangeInput.js +5 -3
  107. package/dist/static/index.d.ts +1 -0
  108. package/dist/static/index.d.ts.map +1 -1
  109. package/dist/static/index.js +1 -1
  110. package/dist/static/number-input/NumberInput.js +7 -5
  111. package/dist/striped-static-table/StripedStaticTable.js +2 -1
  112. package/dist/table/MenuButton.d.ts +3 -3
  113. package/dist/table/MenuButton.d.ts.map +1 -1
  114. package/dist/table/MenuButton.js +8 -3
  115. package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
  116. package/dist/table/PaginationHelperComponent.js +8 -5
  117. package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
  118. package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +16 -17
  119. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts +3 -3
  120. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts.map +1 -1
  121. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.js +8 -2
  122. package/dist/venue-map-sets/card/VenueMapSetCard.js +9 -7
  123. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  124. package/dist/venue-map-sets/form/components/VenueMapControl.js +8 -5
  125. package/dist/venue-map-sets/form/components/VenueMapModal.js +4 -3
  126. package/dist/zone/card/ZoneCard.js +9 -7
  127. package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
  128. package/dist/zone/form/components/ZoneRecurrenceControl.js +8 -5
  129. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  130. package/dist/zone/form/components/ZoneRecurrencesControl.js +5 -3
  131. package/package.json +5 -4
  132. package/src/affiliate/card/AffiliateCard.tsx +4 -4
  133. package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
  134. package/src/auth/Social/SocialFormComponent.tsx +1 -0
  135. package/src/collapsible-input-group/CollapsibleInputGroup.tsx +4 -7
  136. package/src/custom-fields/{constants.tsx → constants.ts} +2 -3
  137. package/src/custom-fields/field/FieldItem.tsx +3 -4
  138. package/src/custom-fields/forms/DropdownForm.tsx +3 -3
  139. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +2 -2
  140. package/src/events/event-card/EventCard.tsx +6 -13
  141. package/src/events/event-statistic-modal/EventStatisticModal.tsx +2 -2
  142. package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +2 -2
  143. package/src/file-upload/FilePreview.tsx +8 -4
  144. package/src/header/Header.stories.tsx +2 -1
  145. package/src/help/popover/HelpPopover.tsx +2 -2
  146. package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +9 -4
  147. package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +4 -5
  148. package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +15 -11
  149. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
  150. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +2 -2
  151. package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +3 -3
  152. package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +2 -2
  153. package/src/iframe/order-process/components/Timer/Timer.tsx +2 -2
  154. package/src/image-radio-input/ImageRadioInput.stories.tsx +3 -3
  155. package/src/modals/confirmation/ConfirmModal.tsx +2 -2
  156. package/src/modals/fullscreen/FullscreenModal.tsx +2 -2
  157. package/src/notification/email-template/card/EmailTemplateCard.tsx +3 -3
  158. package/src/notification/sms-template/card/SmsTemplateCard.tsx +3 -3
  159. package/src/product-set/card/ProductSetCard.tsx +5 -4
  160. package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
  161. package/src/product-set/control/DateInput.tsx +4 -4
  162. package/src/product-set/control/ProductSetRecurrenceControl.tsx +7 -6
  163. package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +8 -5
  164. package/src/product-set/control/TutorialGifCard.tsx +12 -5
  165. package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
  166. package/src/product-set/form/MobileFooter.tsx +36 -6
  167. package/src/product-set/form/ProductSetForm.tsx +1 -1
  168. package/src/product-set/form/SelectCategoryModal.tsx +19 -24
  169. package/src/product-set/item/CreateProductSetItem.tsx +7 -2
  170. package/src/product-set/popover/ProductSetPopover.tsx +2 -2
  171. package/src/product-set/product/ProductControl.tsx +5 -2
  172. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -2
  173. package/src/product-set/product/deposit/ProductDepositControl.tsx +2 -2
  174. package/src/product-set/product/price/ProductPriceControl.tsx +2 -2
  175. package/src/report/card/ReportCard.tsx +10 -0
  176. package/src/sales/booking/results/components/ResultCard.tsx +2 -2
  177. package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +9 -3
  178. package/src/sales/modals/payment-modal/PaymentModal.tsx +2 -2
  179. package/src/sales/modals/refund-modal/RefundModal.tsx +2 -2
  180. package/src/sales/notes/NotesTable.tsx +2 -2
  181. package/src/sales/notes/NotesTableRow.tsx +4 -4
  182. package/src/setting/admin/AdminSettingForm.tsx +7 -2
  183. package/src/setting/admin/PaymentFeeForm.tsx +32 -7
  184. package/src/setting/dashboard/FinancialDataForm.tsx +19 -4
  185. package/src/setting/dashboard/ProviderSettingForm.tsx +7 -2
  186. package/src/setting/dashboard/components/IpInput.tsx +2 -2
  187. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -2
  188. package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -4
  189. package/src/sidebar/elements/ReturnBack.tsx +2 -2
  190. package/src/slide-curtain/SlideCurtain.tsx +6 -2
  191. package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
  192. package/src/sortable-list/CreateSortableListItem.tsx +7 -2
  193. package/src/sortable-tree/SortableTreeItem.tsx +5 -4
  194. package/src/static/Icon.tsx +37 -0
  195. package/src/static/RestrictedAccess.tsx +2 -2
  196. package/src/static/SocialButton.tsx +5 -4
  197. package/src/static/Static.stories.tsx +2 -2
  198. package/src/static/UserBadge.tsx +6 -2
  199. package/src/static/date-range-input/DateRangeInput.tsx +6 -2
  200. package/src/static/index.ts +1 -0
  201. package/src/static/number-input/NumberInput.tsx +3 -3
  202. package/src/table/MenuButton.tsx +8 -4
  203. package/src/table/PaginationHelperComponent.tsx +4 -3
  204. package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +16 -24
  205. package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +7 -4
  206. package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
  207. package/src/venue-map-sets/form/components/VenueMapControl.tsx +8 -3
  208. package/src/venue-map-sets/form/components/VenueMapModal.tsx +2 -2
  209. package/src/zone/card/ZoneCard.tsx +4 -4
  210. package/src/zone/form/components/ZoneRecurrenceControl.tsx +11 -3
  211. package/src/zone/form/components/ZoneRecurrencesControl.tsx +6 -2
  212. package/yarn.lock +127 -114
@@ -3,19 +3,18 @@ import {
3
3
  CUSTOM_FIELD_TYPE_DROPDOWN,
4
4
  CUSTOM_FIELD_TYPE_INPUT,
5
5
  } from "@licklist/core/dist/DataMapper/Order/CustomFieldDataMapper";
6
- import { FaFont, FaListOl } from "react-icons/fa";
7
6
  import { SORTABLE_ID_KEY } from "../sortable-list";
8
7
 
9
8
  export const FIELD_TYPES = {
10
9
  [CUSTOM_FIELD_TYPE_INPUT]: {
11
10
  id: "1",
12
11
  label: "Text Input",
13
- icon: <FaFont size={32} />,
12
+ icon: "font",
14
13
  },
15
14
  [CUSTOM_FIELD_TYPE_DROPDOWN]: {
16
15
  id: "2",
17
16
  label: "Dropdown",
18
- icon: <FaListOl size={32} />,
17
+ icon: "list-ol",
19
18
  },
20
19
  };
21
20
 
@@ -1,18 +1,17 @@
1
1
  /* eslint-disable jsx-a11y/no-static-element-interactions */
2
2
  /* eslint-disable jsx-a11y/click-events-have-key-events */
3
-
4
- import { ReactElement } from "react";
3
+ import { Icon } from "../../static";
5
4
 
6
5
  interface FieldItemProps {
7
6
  label: string;
8
- icon: ReactElement;
7
+ icon: string;
9
8
  onClick: () => void;
10
9
  }
11
10
 
12
11
  export function FieldItem({ label, icon, onClick }: FieldItemProps) {
13
12
  return (
14
13
  <div className="custom-field-item" onClick={onClick}>
15
- {icon}
14
+ <Icon type={icon} height="2rem" />
16
15
  <h6>{label}</h6>
17
16
  </div>
18
17
  );
@@ -11,7 +11,7 @@ import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permi
11
11
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
12
12
  import { FieldNamePrefixPath } from "@licklist/plugins/dist/types/services/Form/hook-form-service";
13
13
  import { Option } from "@licklist/core/dist/DataMapper/Order/CustomFieldDataMapper";
14
- import { FaPlus, FaTrashAlt } from "react-icons/fa";
14
+ import { Icon } from "../../static";
15
15
 
16
16
  interface DropdownFormProps<T>
17
17
  extends FieldNamePrefixPath<T>,
@@ -178,7 +178,7 @@ export function DropdownForm<T>({
178
178
  trigger();
179
179
  }}
180
180
  >
181
- <FaTrashAlt size={20} />
181
+ <Icon type="trash-alt" height="1.2rem" />
182
182
  </button>
183
183
  </Form.Group>
184
184
  </div>
@@ -196,7 +196,7 @@ export function DropdownForm<T>({
196
196
  resetOptionsError();
197
197
  }}
198
198
  >
199
- <FaPlus size={18} />
199
+ <Icon type="plus" height="1.1rem" width=".8rem" />
200
200
  </Button>
201
201
  </div>
202
202
  <div className="manual-form-error">
@@ -1,7 +1,7 @@
1
1
  import { Form, Modal, Button } from "react-bootstrap";
2
2
  import { useTranslation } from "react-i18next";
3
3
  import { Controller, useForm } from "react-hook-form";
4
- import { FaTimes } from "react-icons/fa";
4
+ import Icon from "../../static/Icon";
5
5
 
6
6
  export const MODE_THIS_EVENT = "thisEvent";
7
7
  export const MODE_THIS_AND_FOLLOWING_EVENTS = "thisAndFollowingEvents";
@@ -62,7 +62,7 @@ export const EditRecurrentEventModal = ({
62
62
  <Modal.Header className="border-0">
63
63
  <Modal.Title as="h6">{title}</Modal.Title>
64
64
  <Button variant="danger" className="btn-sm rounded" onClick={onHide}>
65
- <FaTimes size={16} />
65
+ <Icon type="times" height="1rem" />
66
66
  </Button>
67
67
  </Modal.Header>
68
68
  <Modal.Body className="p-0 ml-4">
@@ -12,13 +12,7 @@ import { useTranslation } from "react-i18next";
12
12
  import * as Config from "@licklist/core/dist/Config";
13
13
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
14
14
  import { EventStatistic } from "@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper";
15
- import {
16
- FaEye,
17
- FaExternalLinkAlt,
18
- FaEdit,
19
- FaCopy,
20
- FaTrashAlt,
21
- } from "react-icons/fa";
15
+ import Icon from "../../static/Icon";
22
16
  import { Sale } from "../../types/bookings";
23
17
  import { TipTapEditor } from "../../tiptap-editor/TipTapEditor";
24
18
  import {
@@ -165,8 +159,7 @@ export function EventCard({
165
159
  <ChartBarIcon />
166
160
  </button>
167
161
  <div className="event-card-views">
168
- <FaEye />
169
-
162
+ <Icon type="eye" />
170
163
  <span>{formatNumber(totalViews)}</span>
171
164
  </div>
172
165
  </div>
@@ -176,7 +169,7 @@ export function EventCard({
176
169
  className="event-card-link-button"
177
170
  onClick={onPreview}
178
171
  >
179
- <FaExternalLinkAlt />
172
+ <Icon type="external-link-alt" />
180
173
  </button>
181
174
  {hasPermission && (
182
175
  <>
@@ -185,21 +178,21 @@ export function EventCard({
185
178
  className="event-card-link-button"
186
179
  onClick={onEdit}
187
180
  >
188
- <FaEdit />
181
+ <Icon type="edit" />
189
182
  </button>
190
183
  <button
191
184
  type="button"
192
185
  className="event-card-link-button"
193
186
  onClick={onCopy}
194
187
  >
195
- <FaCopy />
188
+ <Icon type="copy" />
196
189
  </button>
197
190
  <button
198
191
  type="button"
199
192
  className="event-card-link-button"
200
193
  onClick={onRemove}
201
194
  >
202
- <FaTrashAlt />
195
+ <Icon type="trash-alt" />
203
196
  </button>
204
197
  </>
205
198
  )}
@@ -2,7 +2,7 @@ import { Modal, Button } from "react-bootstrap";
2
2
  import { useTranslation } from "react-i18next";
3
3
  import { EventStatistic } from "@licklist/core/dist/DataMapper/Provider/EventStatisticDataMapper";
4
4
  import { Event } from "@licklist/core/dist/DataMapper/Provider/EventDataMapper";
5
- import { FaTimes } from "react-icons/fa";
5
+ import Icon from "../../static/Icon";
6
6
  import { StaticTable } from "../../table";
7
7
  import { useTableData } from "./hooks/useTableData";
8
8
 
@@ -44,7 +44,7 @@ export const EventStatisticModal = ({
44
44
  className="btn-sm rounded"
45
45
  onClick={handleClose}
46
46
  >
47
- <FaTimes size={16} />
47
+ <Icon type="times" height="1rem" />
48
48
  </Button>
49
49
  </Modal.Header>
50
50
  <Modal.Body>
@@ -1,5 +1,5 @@
1
1
  import { Button } from "react-bootstrap";
2
- import { FaSearch } from "react-icons/fa";
2
+ import { Icon } from "../../../../static";
3
3
  import { useZoom } from "../../hooks/useZoom";
4
4
  import { CanvasRefs } from "../../types";
5
5
 
@@ -13,7 +13,7 @@ export const ZoomButtons = ({
13
13
  <div className="zoom-buttons">
14
14
  <div className="buttons-wrapper">
15
15
  <div className="icon-wrapper mb-1">
16
- <FaSearch size={16} />
16
+ <Icon type="search" width="1rem" height="1rem" />
17
17
  </div>
18
18
  <Button onClick={onZoomOut} className="mb-1">
19
19
  -
@@ -4,8 +4,8 @@ import {
4
4
  } from "@licklist/core/dist/DataMapper/Media/ImageDataMapper";
5
5
  import { Attachment } from "@licklist/core/dist/DataMapper/Notification/AttachmentDataMapper";
6
6
  import { AttachmentMetadata } from "@licklist/core/dist/DataMapper/Notification/AttachmentMetadataDataMapper";
7
- import { FaFile, FaFilePdf, FaTimes } from "react-icons/fa";
8
- import { Image as ImageComponent } from "../static";
7
+
8
+ import { Icon, Image as ImageComponent } from "../static";
9
9
 
10
10
  type Item = File | Image | Attachment | AttachmentMetadata;
11
11
 
@@ -65,7 +65,7 @@ export function PreviewItem({ disabled, item, onRemove }: PreviewItemProps) {
65
65
  }}
66
66
  disabled={disabled}
67
67
  >
68
- <FaTimes />
68
+ <Icon type="times" height="1rem" />
69
69
  </button>
70
70
  {renderItemPreview(item)}
71
71
  </div>
@@ -129,7 +129,11 @@ const renderFileTypeIcon = (itemName?: string) => {
129
129
 
130
130
  return (
131
131
  <div className="preview-item__file">
132
- {isPdfFile ? <FaFilePdf size={80} /> : <FaFile size={80} />}
132
+ {isPdfFile ? (
133
+ <Icon type="file-pdf" height="5rem" />
134
+ ) : (
135
+ <Icon type="file" height="5rem" />
136
+ )}
133
137
  </div>
134
138
  );
135
139
  };
@@ -1,4 +1,5 @@
1
1
  import Nav from "react-bootstrap/Nav";
2
+ import Icon from "../static/Icon";
2
3
  import StyledButton from "../static/StyledButton";
3
4
  import BookeditHeader from "./BookeditHeader";
4
5
  import CompanySelector from "./elements/CompanySelector";
@@ -28,7 +29,7 @@ export const Licklist = () => (
28
29
  <ul className="navbar-nav bd-navbar-nav flex-row navbar-nav-primary">
29
30
  <li className="nav-item px-3 px-sm-3 px-lg-4">
30
31
  <Nav.Link href="#">
31
- <FaSearch />
32
+ <Icon type="search" />
32
33
  </Nav.Link>
33
34
  </li>
34
35
  <li className="nav-item px-3 px-sm-4 d-none d-sm-inline">
@@ -5,7 +5,7 @@ import OverlayTrigger from "react-bootstrap/OverlayTrigger";
5
5
  import Popover from "react-bootstrap/Popover";
6
6
  import { ButtonVariant } from "react-bootstrap/types";
7
7
  import clsx from "clsx";
8
- import { FaQuestion } from "react-icons/fa";
8
+ import Icon from "../../static/Icon";
9
9
 
10
10
  export type HelpPopoverProps = {
11
11
  children?: React.ReactElement | React.ReactElement[];
@@ -47,7 +47,7 @@ export function HelpPopover({
47
47
  {...triggerHandler}
48
48
  className="btn-icon-popover rounded-circle px-2 py-1 d-inline-flex align-items-center"
49
49
  >
50
- {icon ?? <FaQuestion size={10} />}
50
+ {icon ?? <Icon type="question" style={{ width: "10px" }} />}
51
51
  </Button>
52
52
  )}
53
53
  </OverlayTrigger>
@@ -9,10 +9,10 @@ import {
9
9
  OrderItems,
10
10
  } from "@licklist/plugins/dist/types/context/Iframe/orderItems";
11
11
  import { Product } from "@licklist/plugins/dist/types/context/sale/menuSteps";
12
- import { useContext } from "react";
13
- import { FaAngleRight, FaTimes } from "react-icons/fa";
14
12
  import { NumberInput } from "../../../../../static";
13
+ import Icon from "../../../../../static/Icon";
15
14
  import { SetOrderFn } from "../../../../../types";
15
+ import { useContext } from "react";
16
16
 
17
17
  interface CustomToggleProps {
18
18
  eventKey: string;
@@ -49,7 +49,7 @@ function CustomToggle({
49
49
  return (
50
50
  <Card.Header className="accordion-toggle p-4" onClick={decoratedOnClick}>
51
51
  <div className={contentClassName}>{children}</div>
52
- <FaAngleRight className={iconClassName} size={24} />
52
+ <Icon className={iconClassName} type="angle-right" height="1.5rem" />
53
53
  </Card.Header>
54
54
  );
55
55
  }
@@ -152,7 +152,12 @@ function ProductItem({
152
152
  value={order[id]?.quantity || 0}
153
153
  className="product-item__counter"
154
154
  />
155
- <FaTimes className="product-item__icon m-3" size={16} />
155
+ <Icon
156
+ className="product-item__icon m-3"
157
+ type="times"
158
+ height="1rem"
159
+ width="1rem"
160
+ />
156
161
  <div className="product-item__price">
157
162
  {formatNumber(price * (order[id]?.quantity || 1), {
158
163
  style: "currency",
@@ -1,7 +1,7 @@
1
1
  import { useTranslation } from "react-i18next";
2
2
  import Button from "react-bootstrap/Button";
3
3
  import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
4
- import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
4
+ import Icon from "../../../static/Icon";
5
5
 
6
6
  interface PaginationDotsProps {
7
7
  amount: number;
@@ -54,7 +54,7 @@ export function EventNavigationFooter({
54
54
  className="event-fixed-footer__prev-btn m-0"
55
55
  onClick={onPrevButtonClick}
56
56
  >
57
- <FaArrowLeft size={16} />
57
+ <Icon type="arrow-left" width="1rem" />
58
58
  </Button>
59
59
  {amount > 1 && (
60
60
  <PaginationDots amount={amount} activeElement={activeElement} />
@@ -67,12 +67,11 @@ export function EventNavigationFooter({
67
67
  {...submitButtonProps}
68
68
  >
69
69
  {t("continue")}
70
- <FaArrowRight size={16} className="ml-2" />
70
+ <Icon type="arrow-right" width="1rem" className="ml-2" />
71
71
  </Button>
72
72
  ) : (
73
73
  <Button className="m-0" onClick={onNextClick}>
74
- {t("next")}
75
- <FaArrowRight size={16} className="ml-2" />
74
+ {t("next")} <Icon type="arrow-right" width="1rem" className="ml-2" />
76
75
  </Button>
77
76
  )}
78
77
  </>
@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
3
3
  import { useAccordionToggle } from "react-bootstrap/AccordionToggle";
4
4
  import AccordionContext from "react-bootstrap/AccordionContext";
5
5
  import clsx from "clsx";
6
- import { FaChevronDown, FaChevronUp } from "react-icons/fa";
6
+ import { Icon } from "../../../../../../static";
7
7
  import { ACCORDION_KEY } from "../../types";
8
8
 
9
9
  type ToggleHeaderProps = {
@@ -91,11 +91,14 @@ const HeaderContent = ({
91
91
  <p className="m-0 mr-2 toggle-title">{title || t("yourBooking")}</p>
92
92
  {showExpandButton && (
93
93
  <div className="expand-button">
94
- {currentEventKey === ACCORDION_KEY ? (
95
- <FaChevronUp size={8} />
96
- ) : (
97
- <FaChevronDown size={8} />
98
- )}
94
+ <Icon
95
+ type={
96
+ currentEventKey === ACCORDION_KEY
97
+ ? "chevron-up"
98
+ : "chevron-down"
99
+ }
100
+ width="0.5rem"
101
+ />
99
102
  </div>
100
103
  )}
101
104
  </div>
@@ -111,11 +114,12 @@ const HeaderContent = ({
111
114
 
112
115
  {showExpandButton && (
113
116
  <div className="expand-button">
114
- {currentEventKey === ACCORDION_KEY ? (
115
- <FaChevronUp size={16} />
116
- ) : (
117
- <FaChevronDown size={16} />
118
- )}
117
+ <Icon
118
+ type={
119
+ currentEventKey === ACCORDION_KEY ? "chevron-up" : "chevron-down"
120
+ }
121
+ width="1rem"
122
+ />
119
123
  </div>
120
124
  )}
121
125
  </>
@@ -7,8 +7,8 @@ import {
7
7
  Product,
8
8
  ProductCategory,
9
9
  } from "@licklist/plugins/dist/types/context/sale/menuSteps";
10
- import { FaTimes } from "react-icons/fa";
11
10
  import { CategoryProduct } from "../../CategoryProduct";
11
+ import Icon from "../../../../../static/Icon";
12
12
 
13
13
  export type CategoryProductModalProps = {
14
14
  activePointId?: number;
@@ -57,7 +57,7 @@ export const CategoryProductModal = ({
57
57
  className="btn-sm rounded"
58
58
  onClick={onCloseModal}
59
59
  >
60
- <FaTimes />
60
+ <Icon type="times" height="1rem" />
61
61
  </Button>
62
62
  </div>
63
63
  </div>
@@ -4,7 +4,7 @@ import ModalHeader from "react-bootstrap/ModalHeader";
4
4
  import ModalTitle from "react-bootstrap/ModalTitle";
5
5
  import ModalBody from "react-bootstrap/ModalBody";
6
6
  import Modal from "react-bootstrap/Modal";
7
- import { FaTimes } from "react-icons/fa";
7
+ import Icon from "../../../../static/Icon";
8
8
 
9
9
  export interface ErrorModalProps {
10
10
  isOpen: boolean;
@@ -43,7 +43,7 @@ export const ErrorModal = ({
43
43
  className="btn-sm rounded"
44
44
  onClick={handleClose}
45
45
  >
46
- <FaTimes />
46
+ <Icon type="times" height="1rem" />
47
47
  </Button>
48
48
  </ModalHeader>
49
49
  <ModalBody className="confirmation-modal-body">
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { useTranslation } from "react-i18next";
3
3
  import Button from "react-bootstrap/Button";
4
- import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
4
+ import Icon from "../../../../static/Icon";
5
5
 
6
6
  interface NavigationFooterProps {
7
7
  onPrevStep: () => void;
@@ -32,12 +32,12 @@ export const NavigationFooter = ({
32
32
  className="event-fixed-footer__prev-btn m-0"
33
33
  onClick={onPrevButtonClick}
34
34
  >
35
- <FaArrowLeft />
35
+ <Icon type="arrow-left" width="1rem" />
36
36
  </Button>
37
37
 
38
38
  <Button className="m-0" disabled={isButtonDisabled} {...buttonProps}>
39
39
  {nextButtonLabel ?? t("continue")}
40
- <FaArrowRight className="ml-2" />
40
+ <Icon type="arrow-right" width="1rem" className="ml-2" />
41
41
  </Button>
42
42
  </div>
43
43
  );
@@ -4,7 +4,7 @@ import { useIntl } from "react-intl";
4
4
  import * as Config from "@licklist/core/dist/Config";
5
5
  import { Order } from "@licklist/core/dist/DataMapper/Order/OrderDataMapper";
6
6
  import { PaymentDetail } from "@licklist/core/dist/DataMapper/Order/PaymentDetailDataMapper";
7
- import { FaCreditCard } from "react-icons/fa";
7
+ import { Icon } from "../../../../static";
8
8
 
9
9
  export type PaymentCardProps = {
10
10
  discountBlock?: ReactNode;
@@ -71,7 +71,7 @@ export const PaymentCard: FC<PaymentCardProps> = ({
71
71
  return (
72
72
  <div className="payment-card">
73
73
  <div className="title">
74
- <FaCreditCard />
74
+ <Icon type="credit-card" />
75
75
  <p className="m-0">{t("Design:payment")}</p>
76
76
  </div>
77
77
  <div className="payment-summary mb-5">
@@ -1,6 +1,6 @@
1
1
  import { useTranslation } from "react-i18next";
2
- import { FaStopwatch } from "react-icons/fa";
3
2
  import { fancyTimeFormat } from "./utils";
3
+ import { Icon } from "../../../../static";
4
4
 
5
5
  export type TimerProps = {
6
6
  timer: number;
@@ -14,7 +14,7 @@ export const Timer = ({ timer }: TimerProps) => {
14
14
  <div className="timer-wrapper ">
15
15
  <div className="timer">
16
16
  <div className="d-flex align-items-center">
17
- <FaStopwatch />
17
+ <Icon type="stopwatch" />
18
18
  </div>
19
19
  <div className="time">{fancyTimeFormat(timer)}</div>
20
20
  </div>
@@ -1,8 +1,8 @@
1
1
  import { Meta, Story } from "@storybook/react";
2
2
  import { FormProvider, useForm } from "react-hook-form";
3
- import { FaBars } from "react-icons/fa";
4
3
  import { ImageRadioInput, ImageRadioInputProps } from "./ImageRadioInput";
5
4
  import { ReactComponent as MonthIcon } from "../assets/widgets/monthCalendar.svg";
5
+ import Icon from "../static/Icon";
6
6
 
7
7
  export default {
8
8
  title: "ImageRadioInput",
@@ -30,7 +30,7 @@ Default.args = {
30
30
  };
31
31
 
32
32
  export const WithFontAwesomeIcon: Story<ImageRadioInputProps<FormModel>> = (
33
- args,
33
+ args
34
34
  ) => {
35
35
  const form = useForm();
36
36
 
@@ -42,7 +42,7 @@ export const WithFontAwesomeIcon: Story<ImageRadioInputProps<FormModel>> = (
42
42
  };
43
43
 
44
44
  WithFontAwesomeIcon.args = {
45
- img: <FaBars />,
45
+ img: <Icon type="bars" />,
46
46
  label: "List",
47
47
  name: "test",
48
48
  };
@@ -6,7 +6,7 @@ import ModalTitle from "react-bootstrap/ModalTitle";
6
6
  import ModalBody from "react-bootstrap/ModalBody";
7
7
  import ModalFooter from "react-bootstrap/ModalFooter";
8
8
  import Modal from "react-bootstrap/Modal";
9
- import { FaTimes } from "react-icons/fa";
9
+ import Icon from "../../static/Icon";
10
10
 
11
11
  export type ConfirmAction = () => void;
12
12
  export const ConfirmModalType = {
@@ -91,7 +91,7 @@ export function ConfirmModal({
91
91
  onClick={handleClose}
92
92
  data-id={CONFIRM_MODAL_ACTION_DECLINE}
93
93
  >
94
- <FaTimes size={16} />
94
+ <Icon type="times" height="1rem" />
95
95
  </Button>
96
96
  </ModalHeader>
97
97
  <ModalBody className="confirmation-modal-body">
@@ -6,7 +6,7 @@ import ModalTitle from "react-bootstrap/ModalTitle";
6
6
  import ModalBody from "react-bootstrap/ModalBody";
7
7
  import ModalFooter from "react-bootstrap/ModalFooter";
8
8
  import Modal from "react-bootstrap/Modal";
9
- import { FaTimes } from "react-icons/fa";
9
+ import Icon from "../../static/Icon";
10
10
 
11
11
  export interface FullscreenModalProps {
12
12
  children?: (confirm: () => void) => ReactNode;
@@ -63,7 +63,7 @@ export const FullscreenModal = ({
63
63
  className="btn-sm rounded"
64
64
  onClick={handleClose}
65
65
  >
66
- <FaTimes size={16} />
66
+ <Icon type="times" height="1rem" />
67
67
  </Button>
68
68
  </ModalHeader>
69
69
  )}
@@ -2,8 +2,8 @@ import { Link } from "react-router-dom";
2
2
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
5
- import { FaTrashAlt, FaCopy } from "react-icons/fa";
6
5
  import { ConfirmModal, ConfirmModalType } from "../../../modals";
6
+ import { Icon } from "../../../static";
7
7
  import { useTranslatedParameters } from "../../hooks/useTranslatedParameters";
8
8
 
9
9
  export interface EmailTemplateCardProps extends HasPermissionProp {
@@ -53,7 +53,7 @@ export function EmailTemplateCard({
53
53
  confirm(onRemove);
54
54
  }}
55
55
  >
56
- <FaTrashAlt />
56
+ <Icon type="trash-alt" />
57
57
  </button>
58
58
  )}
59
59
  </ConfirmModal>
@@ -63,7 +63,7 @@ export function EmailTemplateCard({
63
63
  className="snippet-template-card-button"
64
64
  onClick={onDuplicate}
65
65
  >
66
- <FaCopy />
66
+ <Icon type="copy" />
67
67
  </button>
68
68
  </div>
69
69
  <div className={`mt-${isDefault ? "3" : "4"}`}>
@@ -2,8 +2,8 @@ import { Link } from "react-router-dom";
2
2
  import { useTranslation } from "react-i18next";
3
3
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
4
4
  import { NotificationType } from "@licklist/core/dist/DataMapper/Notification/NotificationTypeDataMapper";
5
- import { FaCopy, FaTrashAlt } from "react-icons/fa";
6
5
  import { ConfirmModal, ConfirmModalType } from "../../../modals";
6
+ import { Icon } from "../../../static";
7
7
  import { useTranslatedParameters } from "../../hooks/useTranslatedParameters";
8
8
 
9
9
  export interface SmsTemplateCardProps extends HasPermissionProp {
@@ -51,7 +51,7 @@ export function SmsTemplateCard({
51
51
  confirm(onRemove);
52
52
  }}
53
53
  >
54
- <FaTrashAlt />
54
+ <Icon type="trash-alt" />
55
55
  </button>
56
56
  )}
57
57
  </ConfirmModal>
@@ -61,7 +61,7 @@ export function SmsTemplateCard({
61
61
  className="snippet-template-card-button"
62
62
  onClick={onDuplicate}
63
63
  >
64
- <FaCopy />
64
+ <Icon type="copy" />
65
65
  </button>
66
66
  </div>
67
67
  <div className="mt-2">
@@ -6,8 +6,9 @@ import clsx from "clsx";
6
6
  import { useId } from "@react-aria/utils";
7
7
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
8
8
  import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
9
- import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
9
+
10
10
  import { ConfirmModal } from "../../modals";
11
+ import { Icon } from "../../static";
11
12
  import { MenuButton } from "../../table/MenuButton";
12
13
 
13
14
  export interface ProductSetCardProps extends HasPermissionProp {
@@ -58,7 +59,7 @@ export function ProductSetCard({
58
59
  </div>
59
60
  <div className="d-flex">
60
61
  <div className="product-set-card-menu-eye-container">
61
- <FaEye color="#0E8CE2" size={20} />
62
+ <Icon type="eye" color="#0E8CE2" width="20" />
62
63
  </div>
63
64
  <OverlayTrigger
64
65
  trigger="click"
@@ -105,7 +106,7 @@ export function ProductSetCard({
105
106
  confirm(onRemove);
106
107
  }}
107
108
  name={t("remove")}
108
- icon={<FaTrashAlt size={12} />}
109
+ icon="trash-alt"
109
110
  className="product-set-card-menu-item-text d-flex w-100 align-items-center"
110
111
  rightIcon
111
112
  />
@@ -127,7 +128,7 @@ export function ProductSetCard({
127
128
  setIsOverlayVisible(true);
128
129
  }}
129
130
  >
130
- <FaEllipsisH />
131
+ <Icon type="ellipsis-h" />
131
132
  </button>
132
133
  </OverlayTrigger>
133
134
  </div>