@licklist/design 0.66.7-dev.9 → 0.66.8-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 (217) hide show
  1. package/dist/affiliate/card/AffiliateCard.js +7 -9
  2. package/dist/auth/AccessDenied/AccessDenied.js +3 -6
  3. package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
  4. package/dist/auth/Social/SocialFormComponent.js +0 -1
  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 +8 -4
  10. package/dist/custom-fields/field/FieldItem.d.ts +2 -1
  11. package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
  12. package/dist/custom-fields/field/FieldItem.js +1 -6
  13. package/dist/custom-fields/forms/DropdownForm.js +5 -9
  14. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
  15. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -4
  16. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  17. package/dist/events/event-card/EventCard.js +6 -16
  18. package/dist/events/event-statistic-modal/EventStatisticModal.js +3 -5
  19. package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +3 -6
  20. package/dist/file-upload/FilePreview.js +6 -11
  21. package/dist/help/popover/HelpPopover.js +3 -6
  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 +6 -9
  24. package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
  25. package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +7 -11
  26. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +5 -5
  27. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +2 -5
  28. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +2 -5
  29. package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +3 -8
  30. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +2 -5
  31. package/dist/iframe/order-process/components/Timer/Timer.js +2 -5
  32. package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -2
  33. package/dist/iframe/payment/payment-form/PaymentForm.js +1 -2
  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 +3 -4
  39. package/dist/modals/fullscreen/FullscreenModal.js +3 -4
  40. package/dist/notification/email-template/card/EmailTemplateCard.js +3 -8
  41. package/dist/notification/sms-template/card/SmsTemplateCard.js +3 -8
  42. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  43. package/dist/product-set/card/ProductSetCard.js +7 -9
  44. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  45. package/dist/product-set/control/DateAndRecurrenceInput.js +3 -5
  46. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  47. package/dist/product-set/control/DateInput.js +5 -7
  48. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  49. package/dist/product-set/control/ProductSetRecurrenceControl.js +5 -8
  50. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
  51. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +5 -8
  52. package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
  53. package/dist/product-set/control/TutorialGifCard.js +6 -10
  54. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  55. package/dist/product-set/elements/DeleteFieldButton.js +3 -4
  56. package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
  57. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  58. package/dist/product-set/form/ProductSetForm.js +59 -1
  59. package/dist/product-set/form/ProductsControl.js +2 -2
  60. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  61. package/dist/product-set/form/SelectCategoryModal.js +30 -23
  62. package/dist/product-set/form/SubProductsControl.js +1 -1
  63. package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
  64. package/dist/product-set/item/CreateProductSetItem.js +3 -6
  65. package/dist/product-set/popover/ProductSetPopover.js +3 -5
  66. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  67. package/dist/product-set/product/ProductControl.js +3 -4
  68. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +3 -4
  69. package/dist/product-set/product/deposit/ProductDepositControl.js +3 -4
  70. package/dist/product-set/product/price/ProductPriceControl.js +3 -4
  71. package/dist/report/card/ReportCard.d.ts +1 -2
  72. package/dist/report/card/ReportCard.d.ts.map +1 -1
  73. package/dist/report/card/ReportCard.js +6 -16
  74. package/dist/sales/booking/results/components/ResultCard.js +4 -5
  75. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  76. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +3 -6
  77. package/dist/sales/modals/payment-modal/PaymentModal.js +3 -4
  78. package/dist/sales/modals/refund-modal/RefundModal.js +3 -4
  79. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  80. package/dist/sales/notes/NotesTable.js +4 -6
  81. package/dist/sales/notes/NotesTableRow.js +7 -9
  82. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  83. package/dist/setting/admin/AdminSettingForm.js +3 -6
  84. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  85. package/dist/setting/admin/PaymentFeeForm.js +11 -26
  86. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  87. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  88. package/dist/setting/dashboard/ProviderSettingForm.js +3 -6
  89. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +2 -5
  90. package/dist/setting/dashboard/snippets/card/SnippetCard.js +7 -9
  91. package/dist/sidebar/elements/ReturnBack.js +2 -5
  92. package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
  93. package/dist/slide-curtain/SlideCurtain.js +3 -4
  94. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  95. package/dist/snippet/snippet-template/settings/SettingButton.js +3 -6
  96. package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
  97. package/dist/sortable-list/CreateSortableListItem.js +3 -6
  98. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  99. package/dist/sortable-tree/SortableTreeItem.js +6 -10
  100. package/dist/static/RestrictedAccess.js +3 -4
  101. package/dist/static/SocialButton.d.ts +0 -1
  102. package/dist/static/SocialButton.d.ts.map +1 -1
  103. package/dist/static/SocialButton.js +7 -10
  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 +3 -5
  107. package/dist/static/index.d.ts +0 -1
  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 +5 -7
  111. package/dist/striped-static-table/StripedStaticTable.js +1 -2
  112. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +1 -1
  113. package/dist/table/MenuButton.d.ts +3 -3
  114. package/dist/table/MenuButton.d.ts.map +1 -1
  115. package/dist/table/MenuButton.js +3 -8
  116. package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
  117. package/dist/table/PaginationHelperComponent.js +5 -8
  118. package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
  119. package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +17 -16
  120. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts +3 -3
  121. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts.map +1 -1
  122. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.js +2 -8
  123. package/dist/venue-map-sets/card/VenueMapSetCard.js +7 -9
  124. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  125. package/dist/venue-map-sets/form/components/VenueMapControl.js +5 -8
  126. package/dist/venue-map-sets/form/components/VenueMapModal.js +3 -4
  127. package/dist/zone/card/ZoneCard.js +7 -9
  128. package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
  129. package/dist/zone/form/components/ZoneRecurrenceControl.js +5 -8
  130. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  131. package/dist/zone/form/components/ZoneRecurrencesControl.js +3 -5
  132. package/package.json +2 -3
  133. package/src/affiliate/card/AffiliateCard.tsx +4 -4
  134. package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
  135. package/src/auth/Social/SocialFormComponent.tsx +0 -1
  136. package/src/collapsible-input-group/CollapsibleInputGroup.tsx +7 -4
  137. package/src/custom-fields/{constants.ts → constants.tsx} +3 -2
  138. package/src/custom-fields/field/FieldItem.tsx +4 -3
  139. package/src/custom-fields/forms/DropdownForm.tsx +3 -3
  140. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +2 -2
  141. package/src/events/event-card/EventCard.tsx +13 -6
  142. package/src/events/event-statistic-modal/EventStatisticModal.tsx +2 -2
  143. package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +2 -2
  144. package/src/file-upload/FilePreview.tsx +4 -8
  145. package/src/header/Header.stories.tsx +1 -2
  146. package/src/help/popover/HelpPopover.tsx +2 -2
  147. package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +4 -9
  148. package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +5 -4
  149. package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +6 -9
  150. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
  151. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +2 -2
  152. package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +3 -3
  153. package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +2 -2
  154. package/src/iframe/order-process/components/Timer/Timer.tsx +2 -2
  155. package/src/image-radio-input/ImageRadioInput.stories.tsx +3 -3
  156. package/src/modals/confirmation/ConfirmModal.tsx +2 -2
  157. package/src/modals/fullscreen/FullscreenModal.tsx +2 -2
  158. package/src/notification/email-template/card/EmailTemplateCard.tsx +3 -3
  159. package/src/notification/sms-template/card/SmsTemplateCard.tsx +3 -3
  160. package/src/product-set/card/ProductSetCard.tsx +4 -5
  161. package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
  162. package/src/product-set/control/DateInput.tsx +6 -5
  163. package/src/product-set/control/ProductSetRecurrenceControl.tsx +6 -7
  164. package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +5 -8
  165. package/src/product-set/control/TutorialGifCard.tsx +5 -12
  166. package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
  167. package/src/product-set/form/MobileFooter.tsx +6 -36
  168. package/src/product-set/form/ProductSetForm.tsx +12 -1
  169. package/src/product-set/form/SelectCategoryModal.tsx +24 -19
  170. package/src/product-set/item/CreateProductSetItem.tsx +2 -7
  171. package/src/product-set/popover/ProductSetPopover.tsx +2 -2
  172. package/src/product-set/product/ProductControl.tsx +2 -5
  173. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -2
  174. package/src/product-set/product/deposit/ProductDepositControl.tsx +2 -2
  175. package/src/product-set/product/price/ProductPriceControl.tsx +2 -2
  176. package/src/report/card/ReportCard.tsx +0 -10
  177. package/src/sales/booking/results/components/ResultCard.tsx +2 -2
  178. package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -9
  179. package/src/sales/modals/payment-modal/PaymentModal.tsx +2 -2
  180. package/src/sales/modals/refund-modal/RefundModal.tsx +2 -2
  181. package/src/sales/notes/NotesTable.tsx +2 -2
  182. package/src/sales/notes/NotesTableRow.tsx +4 -4
  183. package/src/setting/admin/AdminSettingForm.tsx +2 -7
  184. package/src/setting/admin/PaymentFeeForm.tsx +7 -32
  185. package/src/setting/dashboard/FinancialDataForm.tsx +4 -19
  186. package/src/setting/dashboard/ProviderSettingForm.tsx +2 -7
  187. package/src/setting/dashboard/components/IpInput.tsx +2 -2
  188. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -2
  189. package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -4
  190. package/src/sidebar/elements/ReturnBack.tsx +2 -2
  191. package/src/slide-curtain/SlideCurtain.tsx +2 -6
  192. package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
  193. package/src/sortable-list/CreateSortableListItem.tsx +2 -7
  194. package/src/sortable-tree/SortableTreeItem.tsx +4 -5
  195. package/src/static/RestrictedAccess.tsx +2 -2
  196. package/src/static/SocialButton.tsx +4 -5
  197. package/src/static/Static.stories.tsx +2 -2
  198. package/src/static/UserBadge.tsx +2 -6
  199. package/src/static/date-range-input/DateRangeInput.tsx +2 -6
  200. package/src/static/index.ts +0 -1
  201. package/src/static/number-input/NumberInput.tsx +3 -3
  202. package/src/styles/iframe-external-modal/IframeExternalModal.scss +1 -1
  203. package/src/table/MenuButton.tsx +4 -8
  204. package/src/table/PaginationHelperComponent.tsx +3 -4
  205. package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +24 -16
  206. package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +4 -7
  207. package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
  208. package/src/venue-map-sets/form/components/VenueMapControl.tsx +3 -8
  209. package/src/venue-map-sets/form/components/VenueMapModal.tsx +2 -2
  210. package/src/zone/card/ZoneCard.tsx +4 -4
  211. package/src/zone/form/components/ZoneRecurrenceControl.tsx +3 -11
  212. package/src/zone/form/components/ZoneRecurrencesControl.tsx +2 -6
  213. package/yarn.lock +163 -176
  214. package/dist/static/Icon.d.ts +0 -13
  215. package/dist/static/Icon.d.ts.map +0 -1
  216. package/dist/static/Icon.js +0 -22
  217. package/src/static/Icon.tsx +0 -37
@@ -74,7 +74,6 @@ function SocialFormComponent(props: SocialFormComponentProps) {
74
74
  <SocialButton
75
75
  className={["btn-social-lg", "pl-5", "pr-1"].join(" ")}
76
76
  type="facebook"
77
- icon="facebook-f"
78
77
  onClick={handleFacebookClick}
79
78
  disabled={isLoading}
80
79
  >
@@ -7,7 +7,7 @@ import {
7
7
  Form,
8
8
  } from "react-bootstrap";
9
9
  import clsx from "clsx";
10
- import Icon from "../static/Icon";
10
+ import { FaChevronUp, FaChevronDown } from "react-icons/fa";
11
11
 
12
12
  export type CollapsibleInputGroupProps = {
13
13
  label: ReactNode;
@@ -27,8 +27,7 @@ export function CollapsibleInputGroup({
27
27
  error,
28
28
  }: CollapsibleInputGroupProps) {
29
29
  const currentEventKey = useContext(AccordionContext);
30
- const accordionIcon =
31
- currentEventKey === eventKey ? "chevron-up" : "chevron-down";
30
+
32
31
  const isInvalid = Boolean(error);
33
32
 
34
33
  return (
@@ -42,7 +41,11 @@ export function CollapsibleInputGroup({
42
41
  >
43
42
  <div className="accordion-form-control-header">
44
43
  <h5 className="mb-0 pl-3">{label}</h5>
45
- <Icon type={accordionIcon} height="1.25rem" />
44
+ {currentEventKey === eventKey ? (
45
+ <FaChevronUp size={20} />
46
+ ) : (
47
+ <FaChevronDown size={20} />
48
+ )}
46
49
  </div>
47
50
  <Collapse in={currentEventKey !== eventKey}>
48
51
  <div className="pl-3">{description}</div>
@@ -3,18 +3,19 @@ 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";
6
7
  import { SORTABLE_ID_KEY } from "../sortable-list";
7
8
 
8
9
  export const FIELD_TYPES = {
9
10
  [CUSTOM_FIELD_TYPE_INPUT]: {
10
11
  id: "1",
11
12
  label: "Text Input",
12
- icon: "font",
13
+ icon: <FaFont size={32} />,
13
14
  },
14
15
  [CUSTOM_FIELD_TYPE_DROPDOWN]: {
15
16
  id: "2",
16
17
  label: "Dropdown",
17
- icon: "list-ol",
18
+ icon: <FaListOl size={32} />,
18
19
  },
19
20
  };
20
21
 
@@ -1,17 +1,18 @@
1
1
  /* eslint-disable jsx-a11y/no-static-element-interactions */
2
2
  /* eslint-disable jsx-a11y/click-events-have-key-events */
3
- import { Icon } from "../../static";
3
+
4
+ import { ReactElement } from "react";
4
5
 
5
6
  interface FieldItemProps {
6
7
  label: string;
7
- icon: string;
8
+ icon: ReactElement;
8
9
  onClick: () => void;
9
10
  }
10
11
 
11
12
  export function FieldItem({ label, icon, onClick }: FieldItemProps) {
12
13
  return (
13
14
  <div className="custom-field-item" onClick={onClick}>
14
- <Icon type={icon} height="2rem" />
15
+ {icon}
15
16
  <h6>{label}</h6>
16
17
  </div>
17
18
  );
@@ -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 { Icon } from "../../static";
14
+ import { FaPlus, FaTrashAlt } from "react-icons/fa";
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
- <Icon type="trash-alt" height="1.2rem" />
181
+ <FaTrashAlt size={20} />
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
- <Icon type="plus" height="1.1rem" width=".8rem" />
199
+ <FaPlus size={18} />
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 Icon from "../../static/Icon";
4
+ import { FaTimes } from "react-icons/fa";
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
- <Icon type="times" height="1rem" />
65
+ <FaTimes size={16} />
66
66
  </Button>
67
67
  </Modal.Header>
68
68
  <Modal.Body className="p-0 ml-4">
@@ -12,7 +12,13 @@ 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 Icon from "../../static/Icon";
15
+ import {
16
+ FaEye,
17
+ FaExternalLinkAlt,
18
+ FaEdit,
19
+ FaCopy,
20
+ FaTrashAlt,
21
+ } from "react-icons/fa";
16
22
  import { Sale } from "../../types/bookings";
17
23
  import { TipTapEditor } from "../../tiptap-editor/TipTapEditor";
18
24
  import {
@@ -159,7 +165,8 @@ export function EventCard({
159
165
  <ChartBarIcon />
160
166
  </button>
161
167
  <div className="event-card-views">
162
- <Icon type="eye" />
168
+ <FaEye />
169
+
163
170
  <span>{formatNumber(totalViews)}</span>
164
171
  </div>
165
172
  </div>
@@ -169,7 +176,7 @@ export function EventCard({
169
176
  className="event-card-link-button"
170
177
  onClick={onPreview}
171
178
  >
172
- <Icon type="external-link-alt" />
179
+ <FaExternalLinkAlt />
173
180
  </button>
174
181
  {hasPermission && (
175
182
  <>
@@ -178,21 +185,21 @@ export function EventCard({
178
185
  className="event-card-link-button"
179
186
  onClick={onEdit}
180
187
  >
181
- <Icon type="edit" />
188
+ <FaEdit />
182
189
  </button>
183
190
  <button
184
191
  type="button"
185
192
  className="event-card-link-button"
186
193
  onClick={onCopy}
187
194
  >
188
- <Icon type="copy" />
195
+ <FaCopy />
189
196
  </button>
190
197
  <button
191
198
  type="button"
192
199
  className="event-card-link-button"
193
200
  onClick={onRemove}
194
201
  >
195
- <Icon type="trash-alt" />
202
+ <FaTrashAlt />
196
203
  </button>
197
204
  </>
198
205
  )}
@@ -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 Icon from "../../static/Icon";
5
+ import { FaTimes } from "react-icons/fa";
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
- <Icon type="times" height="1rem" />
47
+ <FaTimes size={16} />
48
48
  </Button>
49
49
  </Modal.Header>
50
50
  <Modal.Body>
@@ -1,5 +1,5 @@
1
1
  import { Button } from "react-bootstrap";
2
- import { Icon } from "../../../../static";
2
+ import { FaSearch } from "react-icons/fa";
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
- <Icon type="search" width="1rem" height="1rem" />
16
+ <FaSearch size={16} />
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
-
8
- import { Icon, Image as ImageComponent } from "../static";
7
+ import { FaFile, FaFilePdf, FaTimes } from "react-icons/fa";
8
+ import { 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
- <Icon type="times" height="1rem" />
68
+ <FaTimes />
69
69
  </button>
70
70
  {renderItemPreview(item)}
71
71
  </div>
@@ -129,11 +129,7 @@ const renderFileTypeIcon = (itemName?: string) => {
129
129
 
130
130
  return (
131
131
  <div className="preview-item__file">
132
- {isPdfFile ? (
133
- <Icon type="file-pdf" height="5rem" />
134
- ) : (
135
- <Icon type="file" height="5rem" />
136
- )}
132
+ {isPdfFile ? <FaFilePdf size={80} /> : <FaFile size={80} />}
137
133
  </div>
138
134
  );
139
135
  };
@@ -1,5 +1,4 @@
1
1
  import Nav from "react-bootstrap/Nav";
2
- import Icon from "../static/Icon";
3
2
  import StyledButton from "../static/StyledButton";
4
3
  import BookeditHeader from "./BookeditHeader";
5
4
  import CompanySelector from "./elements/CompanySelector";
@@ -29,7 +28,7 @@ export const Licklist = () => (
29
28
  <ul className="navbar-nav bd-navbar-nav flex-row navbar-nav-primary">
30
29
  <li className="nav-item px-3 px-sm-3 px-lg-4">
31
30
  <Nav.Link href="#">
32
- <Icon type="search" />
31
+ <FaSearch />
33
32
  </Nav.Link>
34
33
  </li>
35
34
  <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 Icon from "../../static/Icon";
8
+ import { FaQuestion } from "react-icons/fa";
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 ?? <Icon type="question" style={{ width: "10px" }} />}
50
+ {icon ?? <FaQuestion size={10} />}
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";
12
14
  import { NumberInput } from "../../../../../static";
13
- import Icon from "../../../../../static/Icon";
14
15
  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
- <Icon className={iconClassName} type="angle-right" height="1.5rem" />
52
+ <FaAngleRight className={iconClassName} size={24} />
53
53
  </Card.Header>
54
54
  );
55
55
  }
@@ -152,12 +152,7 @@ function ProductItem({
152
152
  value={order[id]?.quantity || 0}
153
153
  className="product-item__counter"
154
154
  />
155
- <Icon
156
- className="product-item__icon m-3"
157
- type="times"
158
- height="1rem"
159
- width="1rem"
160
- />
155
+ <FaTimes className="product-item__icon m-3" size={16} />
161
156
  <div className="product-item__price">
162
157
  {formatNumber(price * (order[id]?.quantity || 1), {
163
158
  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 Icon from "../../../static/Icon";
4
+ import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
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
- <Icon type="arrow-left" width="1rem" />
57
+ <FaArrowLeft size={16} />
58
58
  </Button>
59
59
  {amount > 1 && (
60
60
  <PaginationDots amount={amount} activeElement={activeElement} />
@@ -67,11 +67,12 @@ export function EventNavigationFooter({
67
67
  {...submitButtonProps}
68
68
  >
69
69
  {t("continue")}
70
- <Icon type="arrow-right" width="1rem" className="ml-2" />
70
+ <FaArrowRight size={16} className="ml-2" />
71
71
  </Button>
72
72
  ) : (
73
73
  <Button className="m-0" onClick={onNextClick}>
74
- {t("next")} <Icon type="arrow-right" width="1rem" className="ml-2" />
74
+ {t("next")}
75
+ <FaArrowRight size={16} className="ml-2" />
75
76
  </Button>
76
77
  )}
77
78
  </>
@@ -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 { Icon } from "../../../../../../static";
6
+ import { FaChevronDown, FaChevronUp } from "react-icons/fa";
7
7
  import { ACCORDION_KEY } from "../../types";
8
8
 
9
9
  type ToggleHeaderProps = {
@@ -91,14 +91,11 @@ 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
- <Icon
95
- type={
96
- currentEventKey === ACCORDION_KEY
97
- ? "chevron-up"
98
- : "chevron-down"
99
- }
100
- width="0.5rem"
101
- />
94
+ {currentEventKey === ACCORDION_KEY ? (
95
+ <FaChevronUp size={8} />
96
+ ) : (
97
+ <FaChevronDown size={8} />
98
+ )}
102
99
  </div>
103
100
  )}
104
101
  </div>
@@ -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";
10
11
  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
- <Icon type="times" height="1rem" />
60
+ <FaTimes />
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 Icon from "../../../../static/Icon";
7
+ import { FaTimes } from "react-icons/fa";
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
- <Icon type="times" height="1rem" />
46
+ <FaTimes />
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 Icon from "../../../../static/Icon";
4
+ import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
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
- <Icon type="arrow-left" width="1rem" />
35
+ <FaArrowLeft />
36
36
  </Button>
37
37
 
38
38
  <Button className="m-0" disabled={isButtonDisabled} {...buttonProps}>
39
39
  {nextButtonLabel ?? t("continue")}
40
- <Icon type="arrow-right" width="1rem" className="ml-2" />
40
+ <FaArrowRight 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 { Icon } from "../../../../static";
7
+ import { FaCreditCard } from "react-icons/fa";
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
- <Icon type="credit-card" />
74
+ <FaCreditCard />
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";
2
3
  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
- <Icon type="stopwatch" />
17
+ <FaStopwatch />
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";
3
4
  import { ImageRadioInput, ImageRadioInputProps } from "./ImageRadioInput";
4
5
  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: <Icon type="bars" />,
45
+ img: <FaBars />,
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 Icon from "../../static/Icon";
9
+ import { FaTimes } from "react-icons/fa";
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
- <Icon type="times" height="1rem" />
94
+ <FaTimes size={16} />
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 Icon from "../../static/Icon";
9
+ import { FaTimes } from "react-icons/fa";
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
- <Icon type="times" height="1rem" />
66
+ <FaTimes size={16} />
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";
5
6
  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
- <Icon type="trash-alt" />
56
+ <FaTrashAlt />
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
- <Icon type="copy" />
66
+ <FaCopy />
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";
5
6
  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
- <Icon type="trash-alt" />
54
+ <FaTrashAlt />
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
- <Icon type="copy" />
64
+ <FaCopy />
65
65
  </button>
66
66
  </div>
67
67
  <div className="mt-2">