@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
@@ -5,7 +5,7 @@ import { useForm } from "react-hook-form";
5
5
  import ModalHeader from "react-bootstrap/ModalHeader";
6
6
  import ModalTitle from "react-bootstrap/ModalTitle";
7
7
  import { OrderPaymentType } from "@licklist/core/dist/DataMapper/Order/OrderPaymentDataMapper";
8
- import Icon from "../../../static/Icon";
8
+ import { FaTimes } from "react-icons/fa";
9
9
  import { EXTENDED_PAYMENT_TYPE_TRANSLATION_KEYS } from "../../constants";
10
10
  import { CurrencyNumberInput } from "../../../static/CurrencyNumberInput";
11
11
 
@@ -69,7 +69,7 @@ export const RefundModal = ({
69
69
  </ModalTitle>
70
70
 
71
71
  <Button variant="danger" className="btn-sm rounded" onClick={onHide}>
72
- <Icon type="times" height="1.2rem" />
72
+ <FaTimes size={20} />
73
73
  </Button>
74
74
  </ModalHeader>
75
75
 
@@ -2,9 +2,9 @@ import { useEffect, useState } from "react";
2
2
  import { Button, Table } from "react-bootstrap";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import { Note } from "@licklist/core/dist/DataMapper/Order/NoteDataMapper";
5
+ import { FaPlusCircle } from "react-icons/fa";
5
6
  import { TableRow, TableRowProps } from "./NotesTableRow";
6
7
  import { NoteForm } from "./note-form";
7
- import { Icon } from "../../static";
8
8
 
9
9
  export type NotesTableProps = Pick<TableRowProps, "onDeleteNote"> & {
10
10
  heading: string;
@@ -102,7 +102,7 @@ const AddNoteButton = ({ onClick }: { onClick: () => void }) => {
102
102
 
103
103
  return (
104
104
  <Button onClick={onClick} className="show-form-button">
105
- {t("addNew")} <Icon className="ml-2" type="plus-circle" width="1rem" />
105
+ {t("addNew")} <FaPlusCircle size={16} className="ml-2" />
106
106
  </Button>
107
107
  );
108
108
  };
@@ -11,9 +11,9 @@ import {
11
11
  DATE_TIME_FULL_FORMAT,
12
12
  } from "@licklist/core/dist/Config";
13
13
  import { getClientTimeZone } from "@licklist/core/dist/Services";
14
+ import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
14
15
  import { ConfirmModal } from "../../modals";
15
16
  import { MenuButton } from "../../table";
16
- import { Icon } from "../../static";
17
17
 
18
18
  export type TableRowProps = {
19
19
  note: Note;
@@ -42,7 +42,7 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
42
42
  <td>
43
43
  <div className="controls">
44
44
  <span className="btn btn-sm eye">
45
- <Icon type="eye" width="20" />
45
+ <FaEye size={20} />
46
46
  </span>
47
47
  <OverlayTrigger
48
48
  trigger="click"
@@ -70,7 +70,7 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
70
70
  confirm(() => onDeleteNote(note.id));
71
71
  }}
72
72
  name={t("remove")}
73
- icon="trash-alt"
73
+ icon={<FaTrashAlt size={12} />}
74
74
  className="product-set-card-menu-item-text d-flex w-100 align-items-center"
75
75
  rightIcon
76
76
  />
@@ -89,7 +89,7 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
89
89
  setIsOverlayVisible(true);
90
90
  }}
91
91
  >
92
- <Icon type="ellipsis-h" />
92
+ <FaEllipsisH />
93
93
  </button>
94
94
  </OverlayTrigger>
95
95
  </div>
@@ -11,7 +11,7 @@ import Col from "react-bootstrap/Col";
11
11
  import { Link } from "react-router-dom";
12
12
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
13
13
  import { ProvidableType } from "@licklist/core/dist/DataMapper/Provider/ProvidableDataMapper";
14
- import Icon from "../../static/Icon";
14
+ import { FaCommentAlt } from "react-icons/fa";
15
15
  import { PaymentFeeForm, PaymentFeeFormFieldValues } from "./PaymentFeeForm";
16
16
  import { Currency } from "../../types/currency";
17
17
 
@@ -74,12 +74,7 @@ export const AdminSettingForm = ({
74
74
  <InputGroup>
75
75
  <InputGroup.Prepend>
76
76
  <InputGroup.Text>
77
- <Icon
78
- type="comment-alt"
79
- style={{
80
- width: "1rem",
81
- }}
82
- />
77
+ <FaCommentAlt size={16} />
83
78
  </InputGroup.Text>
84
79
  </InputGroup.Prepend>
85
80
 
@@ -6,8 +6,8 @@ import InputGroup from "react-bootstrap/InputGroup";
6
6
  import Row from "react-bootstrap/Row";
7
7
  import { useFormContext } from "react-hook-form";
8
8
  import { useTranslation } from "react-i18next";
9
-
10
- import { WarningMessage, Icon } from "../../static";
9
+ import { FaPercentage, FaPoundSign } from "react-icons/fa";
10
+ import { WarningMessage } from "../../static";
11
11
 
12
12
  export type PaymentFeeFormFieldValues = {
13
13
  feeInPercent: number;
@@ -64,12 +64,7 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
64
64
  <InputGroup hasValidation>
65
65
  <InputGroup.Prepend>
66
66
  <InputGroup.Text>
67
- <Icon
68
- type="percentage"
69
- style={{
70
- width: ".7rem",
71
- }}
72
- />
67
+ <FaPercentage size={10} />
73
68
  </InputGroup.Text>
74
69
  </InputGroup.Prepend>
75
70
 
@@ -117,12 +112,7 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
117
112
  <InputGroup hasValidation>
118
113
  <InputGroup.Prepend>
119
114
  <InputGroup.Text>
120
- <Icon
121
- type="pound-sign"
122
- style={{
123
- width: ".7rem",
124
- }}
125
- />
115
+ <FaPoundSign size={10} />
126
116
  </InputGroup.Text>
127
117
  </InputGroup.Prepend>
128
118
 
@@ -167,12 +157,7 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
167
157
  <InputGroup hasValidation>
168
158
  <InputGroup.Prepend>
169
159
  <InputGroup.Text>
170
- <Icon
171
- type="pound-sign"
172
- style={{
173
- width: ".7rem",
174
- }}
175
- />
160
+ <FaPoundSign size={10} />
176
161
  </InputGroup.Text>
177
162
  </InputGroup.Prepend>
178
163
 
@@ -229,12 +214,7 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
229
214
  <InputGroup hasValidation>
230
215
  <InputGroup.Prepend>
231
216
  <InputGroup.Text>
232
- <Icon
233
- type="percentage"
234
- style={{
235
- width: ".7rem",
236
- }}
237
- />
217
+ <FaPercentage size={10} />
238
218
  </InputGroup.Text>
239
219
  </InputGroup.Prepend>
240
220
 
@@ -279,12 +259,7 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
279
259
  <InputGroup hasValidation>
280
260
  <InputGroup.Prepend>
281
261
  <InputGroup.Text>
282
- <Icon
283
- type="pound-sign"
284
- style={{
285
- width: ".7rem",
286
- }}
287
- />
262
+ <FaPoundSign size={10} />
288
263
  </InputGroup.Text>
289
264
  </InputGroup.Prepend>
290
265
 
@@ -5,7 +5,7 @@ import InputGroup from "react-bootstrap/InputGroup";
5
5
  import Row from "react-bootstrap/Row";
6
6
  import { useFormContext } from "react-hook-form";
7
7
  import { useTranslation } from "react-i18next";
8
- import Icon from "../../static/Icon";
8
+ import { FaIdBadge, FaMoneyCheckAlt, FaUser } from "react-icons/fa";
9
9
 
10
10
  export type FinancialDataFormFieldValues = {
11
11
  accountName: string;
@@ -45,12 +45,7 @@ export function FinancialDataForm({
45
45
  <InputGroup>
46
46
  <InputGroup.Prepend>
47
47
  <InputGroup.Text>
48
- <Icon
49
- type="user"
50
- style={{
51
- width: "1rem",
52
- }}
53
- />
48
+ <FaUser size={16} />
54
49
  </InputGroup.Text>
55
50
  </InputGroup.Prepend>
56
51
 
@@ -64,12 +59,7 @@ export function FinancialDataForm({
64
59
  <InputGroup hasValidation>
65
60
  <InputGroup.Prepend>
66
61
  <InputGroup.Text>
67
- <Icon
68
- type="id-badge"
69
- style={{
70
- width: "1rem",
71
- }}
72
- />
62
+ <FaIdBadge size={16} />
73
63
  </InputGroup.Text>
74
64
  </InputGroup.Prepend>
75
65
 
@@ -115,12 +105,7 @@ export function FinancialDataForm({
115
105
  <InputGroup hasValidation>
116
106
  <InputGroup.Prepend>
117
107
  <InputGroup.Text>
118
- <Icon
119
- type="money-check-alt"
120
- style={{
121
- width: "1.7rem",
122
- }}
123
- />
108
+ <FaMoneyCheckAlt size={28} />
124
109
  </InputGroup.Text>
125
110
  </InputGroup.Prepend>
126
111
 
@@ -6,7 +6,7 @@ import InputGroup from "react-bootstrap/InputGroup";
6
6
  import Row from "react-bootstrap/Row";
7
7
  import { useFormContext } from "react-hook-form";
8
8
  import { useTranslation } from "react-i18next";
9
- import Icon from "../../static/Icon";
9
+ import { FaPhone } from "react-icons/fa";
10
10
  import { SelectItem } from "../../types/generic/SelectItem";
11
11
  // @TODO not for first release
12
12
  // import { Button } from "react-bootstrap";
@@ -113,12 +113,7 @@ export const ProviderSettingForm = ({
113
113
  <InputGroup>
114
114
  <InputGroup.Prepend>
115
115
  <InputGroup.Text>
116
- <Icon
117
- type="phone"
118
- style={{
119
- width: "1rem",
120
- }}
121
- />
116
+ <FaPhone size={16} />
122
117
  </InputGroup.Text>
123
118
  </InputGroup.Prepend>
124
119
 
@@ -12,7 +12,7 @@ import {
12
12
  import { Button, FormControl, InputGroup } from "react-bootstrap";
13
13
  import { FormProvider, useForm, useWatch } from "react-hook-form";
14
14
  import { useTranslation } from "react-i18next";
15
- import { Icon } from "../../../static";
15
+ import { FaTimes } from "react-icons/fa";
16
16
 
17
17
  export interface IpInputProps {
18
18
  onChange: (value: string) => void;
@@ -154,7 +154,7 @@ export function IpInput({ onChange, onRemove, value }: IpInputProps) {
154
154
  disabled={!isRemovable}
155
155
  onClick={onRemove}
156
156
  >
157
- <Icon type="times" width=".55rem" height=".9rem" color="red" />
157
+ <FaTimes size={14} color="red" />
158
158
  </Button>
159
159
  </InputGroup.Text>
160
160
  <FormControl.Feedback type="invalid">
@@ -1,7 +1,7 @@
1
1
  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
- import { Icon } from "../../../../static";
4
+ import { FaTrashAlt } from "react-icons/fa";
5
5
 
6
6
  export interface SnippetTemplateCardProps extends HasPermissionProp {
7
7
  name: string;
@@ -31,7 +31,7 @@ export function SnippetTemplateCard({
31
31
  className="snippet-template-card-button"
32
32
  onClick={onRemove}
33
33
  >
34
- <Icon type="trash-alt" />
34
+ <FaTrashAlt />
35
35
  </button>
36
36
  )}
37
37
  </div>
@@ -5,9 +5,9 @@ import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
5
5
  import clsx from "clsx";
6
6
  import { OverlayTrigger, Popover, ListGroup } from "react-bootstrap";
7
7
  import { useId } from "@react-aria/utils";
8
+ import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
8
9
  import { MenuButton } from "../../../../table";
9
10
  import { ConfirmModal } from "../../../../modals";
10
- import { Icon } from "../../../../static";
11
11
 
12
12
  export interface SnippetCardProps extends HasPermissionProp {
13
13
  name: string;
@@ -42,7 +42,7 @@ export function SnippetCard({
42
42
  <div className="d-flex align-items-center">
43
43
  {isDefault && <div className="mr-4">{t("Design:default")}</div>}
44
44
  <div className="product-set-card-menu-eye-container">
45
- <Icon type="eye" color="#0E8CE2" width="20" />
45
+ <FaEye color="#0E8CE2" size={20} />
46
46
  </div>
47
47
  <OverlayTrigger
48
48
  trigger="click"
@@ -70,7 +70,7 @@ export function SnippetCard({
70
70
  confirm(onRemove);
71
71
  }}
72
72
  name={t("remove")}
73
- icon="trash-alt"
73
+ icon={<FaTrashAlt size={12} />}
74
74
  className="product-set-card-menu-item-text d-flex w-100 align-items-center"
75
75
  rightIcon
76
76
  />
@@ -90,7 +90,7 @@ export function SnippetCard({
90
90
  setIsOverlayVisible(true);
91
91
  }}
92
92
  >
93
- <Icon type="ellipsis-h" />
93
+ <FaEllipsisH />
94
94
  </button>
95
95
  </OverlayTrigger>
96
96
  </div>
@@ -1,6 +1,6 @@
1
1
  import { Button } from "react-bootstrap";
2
2
  import { useTranslation } from "react-i18next";
3
- import Icon from "../../static/Icon";
3
+ import { FaChevronLeft } from "react-icons/fa";
4
4
 
5
5
  export interface ReturnBackProps {
6
6
  onClick: () => void;
@@ -12,7 +12,7 @@ function ReturnBack({ onClick }: ReturnBackProps) {
12
12
  return (
13
13
  <div className="sidebar-return-back-container">
14
14
  <Button onClick={onClick} variant="outline-primary">
15
- <Icon type="chevron-left" height="1rem" />
15
+ <FaChevronLeft />
16
16
  <span className="sidebar-return-back__title">{t("backToCompany")}</span>
17
17
  </Button>
18
18
  </div>
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useRef, useState } from "react";
2
+ import { FaEllipsisH } from "react-icons/fa";
2
3
  import { useSwipeable } from "react-swipeable";
3
- import Icon from "../static/Icon";
4
4
 
5
5
  const formOffsetBuffer = 90;
6
6
 
@@ -52,11 +52,7 @@ export function SlideCurtain({ children }) {
52
52
  {...handlers}
53
53
  ref={passRefToSwieable}
54
54
  >
55
- <Icon
56
- type="ellipsis-h"
57
- height="1.5rem"
58
- className="slide-form__swipe-trigger__icon"
59
- />
55
+ <FaEllipsisH size={24} className="slide-form__swipe-trigger__icon" />
60
56
  </div>
61
57
  <div className="slide-form__content">{children}</div>
62
58
  </div>
@@ -1,6 +1,6 @@
1
1
  import Button from "react-bootstrap/Button";
2
2
  import clsx from "clsx";
3
- import Icon from "../../../static/Icon";
3
+ import { FaCog } from "react-icons/fa";
4
4
  import { snippetTemplateViews } from "../context/snippetTemplateView";
5
5
 
6
6
  export interface SettingButtonProps extends React.PropsWithChildren<unknown> {
@@ -27,7 +27,7 @@ export const SettingButton = ({
27
27
  className={clsx("snippet-template__setting d-inline", className)}
28
28
  onClick={() => onClick(view as keyof typeof snippetTemplateViews)}
29
29
  >
30
- <Icon type="cog" style={{ width: 16 }} />
30
+ <FaCog size={16} />
31
31
  </Button>
32
32
  </div>
33
33
  );
@@ -1,4 +1,4 @@
1
- import { Icon } from "../static";
1
+ import { FaPlus } from "react-icons/fa";
2
2
 
3
3
  interface CreateSortableListItemProps {
4
4
  onClick: () => void;
@@ -16,12 +16,7 @@ export function CreateSortableListItem({
16
16
  type="button"
17
17
  >
18
18
  <span>{title}</span>
19
- <Icon
20
- type="plus"
21
- height="2rem"
22
- width="2rem"
23
- className="rounded sortable-list-item-icon p-2"
24
- />
19
+ <FaPlus size={32} className="rounded sortable-list-item-icon p-2" />
25
20
  </button>
26
21
  );
27
22
  }
@@ -9,9 +9,8 @@ import { CSS } from "@dnd-kit/utilities";
9
9
  import { Button, Collapse, Modal } from "react-bootstrap";
10
10
  import { useTranslation } from "react-i18next";
11
11
  import clsx from "clsx";
12
-
12
+ import { FaEllipsisH, FaGripVertical, FaMinus } from "react-icons/fa";
13
13
  import { ConfirmModal } from "../modals";
14
- import Icon from "../static/Icon";
15
14
  import { DeleteFieldButton } from "../product-set/elements/DeleteFieldButton";
16
15
 
17
16
  const DRAG_RADIUS_LIMIT = 5;
@@ -205,7 +204,7 @@ export function SortableTreeItem({
205
204
  onMouseUp={onHandleExpand}
206
205
  >
207
206
  {expanded ? (
208
- <Icon type="minus" width=".7rem" />
207
+ <FaMinus size={10} />
209
208
  ) : (
210
209
  <div className="expand-icon-container">
211
210
  <div />
@@ -251,7 +250,7 @@ export function SortableTreeItem({
251
250
  {...attributes}
252
251
  {...listeners}
253
252
  >
254
- <Icon type="grip-vertical" />
253
+ <FaGripVertical />
255
254
  </Button>
256
255
  )}
257
256
  <Button
@@ -291,7 +290,7 @@ export function SortableTreeItem({
291
290
  onClick={(e) => onEdit(e)}
292
291
  onKeyDown={(e) => e.stopPropagation()}
293
292
  >
294
- <Icon type="ellipsis-h" color="#0E8CE2" height="1rem" />
293
+ <FaEllipsisH color="#0E8CE2" size={16} />
295
294
  </div>
296
295
  </Button>
297
296
  </div>
@@ -1,7 +1,7 @@
1
1
  import { Button } from "react-bootstrap";
2
2
  import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
3
3
  import { useTranslation } from "react-i18next";
4
- import Icon from "./Icon";
4
+ import { FaArrowLeft } from "react-icons/fa";
5
5
 
6
6
  function RestrictedAccess() {
7
7
  const { t } = useTranslation("Design");
@@ -13,7 +13,7 @@ function RestrictedAccess() {
13
13
  variant="link"
14
14
  onClick={() => RouteService.goBack()}
15
15
  >
16
- <Icon type="arrow-left" width="25" />
16
+ <FaArrowLeft size={25} />
17
17
  </Button>
18
18
  <div className="container d-flex justify-content-center pt-5">
19
19
  <div className="text-center">
@@ -2,22 +2,20 @@
2
2
  /* eslint-disable jsx-a11y/click-events-have-key-events */
3
3
  /* eslint-disable jsx-a11y/anchor-is-valid */
4
4
  import { ReactNode } from "react";
5
- import Icon from "./Icon";
5
+ import { FaFacebookF, FaTwitter } from "react-icons/fa";
6
6
 
7
7
  interface Props {
8
8
  children?: ReactNode | ReactNode[];
9
9
  onClick?: () => void;
10
10
  className?: string;
11
11
  type?: string;
12
- icon?: string;
13
12
  disabled?: boolean;
14
13
  }
15
14
 
16
15
  function SocialButton(props: Props) {
17
- const { children, className, onClick, type, icon, disabled } = props;
16
+ const { children, className, onClick, type, disabled } = props;
18
17
 
19
18
  const defaultType = "twitter";
20
- const defaultIcon = "twitter";
21
19
 
22
20
  const handleClick = () => {
23
21
  if (onClick) {
@@ -38,7 +36,8 @@ function SocialButton(props: Props) {
38
36
  onClick={handleClick}
39
37
  >
40
38
  <span className="separator">
41
- <Icon type={["fab", icon ?? defaultIcon]} />
39
+ {type === "facebook" && <FaFacebookF />}
40
+ {type === "twitter" && <FaTwitter />}
42
41
  </span>
43
42
  {children}
44
43
  </a>
@@ -4,10 +4,10 @@ import InputGroup from "react-bootstrap/InputGroup";
4
4
  import Row from "react-bootstrap/Row";
5
5
  import Input from "react-phone-number-input/input";
6
6
  import { FormProvider, useForm } from "react-hook-form";
7
+ import { FaSearch } from "react-icons/fa";
7
8
  import CountrySelect from "./CountrySelect";
8
9
  import CountryCodeSelect from "./CountryCodeSelect";
9
10
  import FormCard from "./FormCard";
10
- import Icon from "./Icon";
11
11
  import Image from "./Image";
12
12
  import SocialButton from "./SocialButton";
13
13
  import StyledButton from "./StyledButton";
@@ -72,7 +72,7 @@ _RestrictedAccess.story = {
72
72
  name: "RestrictedAccess",
73
73
  };
74
74
 
75
- export const _Icon = () => <Icon type="search" />;
75
+ export const _Icon = () => <FaSearch />;
76
76
 
77
77
  _Icon.story = {
78
78
  parameters: {
@@ -1,7 +1,7 @@
1
1
  import { Button } from "react-bootstrap";
2
2
  import { useTranslation } from "react-i18next";
3
+ import { FaLongArrowAltDown } from "react-icons/fa";
3
4
  import { useIntl } from "react-intl";
4
- import { Icon } from ".";
5
5
 
6
6
  interface UserBadgeProps {
7
7
  userName: string;
@@ -35,11 +35,7 @@ export function UserBadge({
35
35
  </p>
36
36
  </div>
37
37
  </div>
38
- <Icon
39
- type="long-arrow-alt-down"
40
- height="1.5rem"
41
- className="user-badge-down-icon"
42
- />
38
+ <FaLongArrowAltDown size={24} className="user-badge-down-icon" />
43
39
  </Button>
44
40
  );
45
41
  }
@@ -5,7 +5,7 @@ import { useClickAway } from "react-use";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import { Modifier } from "@popperjs/core";
7
7
  import { useId } from "@react-aria/utils";
8
- import { Icon } from "..";
8
+ import { FaCalendar } from "react-icons/fa";
9
9
  import {
10
10
  stringDatesToJSDates,
11
11
  rangeDatesToStringDates,
@@ -151,11 +151,7 @@ export const DateRangeInput = ({
151
151
  className="date-range-input"
152
152
  value={stringDatesToInputValue({ startDate, endDate })}
153
153
  />
154
- <Icon
155
- type="calendar"
156
- height="1rem"
157
- className="date-range-input-icon"
158
- />
154
+ <FaCalendar size={16} className="date-range-input-icon" />
159
155
  </div>
160
156
  </OverlayTrigger>
161
157
  </div>
@@ -12,7 +12,6 @@ export * from "./text-expand";
12
12
  export { Tabs } from "./tabs";
13
13
  export { default as CountrySelect } from "./CountrySelect";
14
14
  export { default as FormCard } from "./FormCard";
15
- export { default as Icon } from "./Icon";
16
15
  export { default as Image } from "./Image";
17
16
  export { default as SocialButton } from "./SocialButton";
18
17
  export { default as StyledButton } from "./StyledButton";
@@ -1,6 +1,6 @@
1
1
  import clsx from "clsx";
2
2
  import { FormControl } from "react-bootstrap";
3
- import Icon from "../Icon";
3
+ import { FaChevronDown, FaChevronUp } from "react-icons/fa";
4
4
 
5
5
  interface NumberInputProps {
6
6
  disabled?: boolean;
@@ -63,7 +63,7 @@ export function NumberInput({
63
63
  className="licklist-number-input__btn-up"
64
64
  disabled={disabled}
65
65
  >
66
- <Icon type="chevron-up" width="1rem" />
66
+ <FaChevronUp size={16} />
67
67
  </button>
68
68
  <button
69
69
  type="button"
@@ -71,7 +71,7 @@ export function NumberInput({
71
71
  className="licklist-number-input__btn-down"
72
72
  disabled={disabled}
73
73
  >
74
- <Icon type="chevron-down" width="1rem" />
74
+ <FaChevronDown size={16} />
75
75
  </button>
76
76
  </div>
77
77
  );
@@ -83,7 +83,7 @@ body[bkdt-scrollable="false"] .bkdt-mask {
83
83
  width: 100%;
84
84
  height: 100%;
85
85
  max-width: 800px;
86
- min-height: unset;
86
+ min-height: 55vh;
87
87
  }
88
88
  }
89
89
  }
@@ -1,5 +1,5 @@
1
1
  import clsx from "clsx";
2
- import Icon from "../static/Icon";
2
+ import { ReactElement } from "react";
3
3
 
4
4
  export type MenuButtonProps = {
5
5
  onClick?: () => void;
@@ -7,8 +7,7 @@ export type MenuButtonProps = {
7
7
  rightIcon?: boolean;
8
8
  name: string;
9
9
  className?: string;
10
- icon?: string;
11
- iconWidth?: string;
10
+ icon?: ReactElement;
12
11
  };
13
12
 
14
13
  export const MenuButton = ({
@@ -18,10 +17,7 @@ export const MenuButton = ({
18
17
  icon,
19
18
  leftIcon,
20
19
  rightIcon,
21
- iconWidth = "12",
22
20
  }: MenuButtonProps) => {
23
- const iconComponent = icon ? <Icon type={icon} width={iconWidth} /> : null;
24
-
25
21
  return (
26
22
  <>
27
23
  <button
@@ -32,7 +28,7 @@ export const MenuButton = ({
32
28
  }}
33
29
  className={clsx(className)}
34
30
  >
35
- {leftIcon && iconComponent}
31
+ {leftIcon && icon}
36
32
  <span
37
33
  className={clsx(
38
34
  icon && leftIcon && "ml-3",
@@ -41,7 +37,7 @@ export const MenuButton = ({
41
37
  >
42
38
  {name}
43
39
  </span>
44
- {rightIcon && iconComponent}
40
+ {rightIcon && icon}
45
41
  </button>
46
42
  </>
47
43
  );