@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,14 +3,6 @@ import { Editor } from "@tiptap/react";
3
3
  import { Row } from "react-bootstrap";
4
4
  import clsx from "clsx";
5
5
 
6
- import {
7
- FaList,
8
- FaListOl,
9
- FaRedoAlt,
10
- FaSmile,
11
- FaTasks,
12
- FaUndoAlt,
13
- } from "react-icons/fa";
14
6
  import { ReactComponent as BoldSvg } from "../../assets/editor/bold.svg";
15
7
  import { ReactComponent as ItalicSvg } from "../../assets/editor/italic.svg";
16
8
  import { ReactComponent as StrikethroughSvg } from "../../assets/editor/strikethrough.svg";
@@ -39,19 +31,19 @@ export function TipTapMenu({ editor, withEmoji, disabled }: TipTapMenuPros) {
39
31
  <TipTapMenuItem
40
32
  onClick={() => editor.chain().focus().toggleBold().run()}
41
33
  type="Bold"
42
- icon={<BoldSvg />}
34
+ customIcon={<BoldSvg />}
43
35
  isActive={editor.isActive("bold")}
44
36
  />
45
37
  <TipTapMenuItem
46
38
  onClick={() => editor.chain().focus().toggleItalic().run()}
47
39
  type="Italic"
48
- icon={<ItalicSvg />}
40
+ customIcon={<ItalicSvg />}
49
41
  isActive={editor.isActive("italic")}
50
42
  />
51
43
  <TipTapMenuItem
52
44
  onClick={() => editor.chain().focus().toggleStrike().run()}
53
45
  type="Strike"
54
- icon={<StrikethroughSvg />}
46
+ customIcon={<StrikethroughSvg />}
55
47
  isActive={editor.isActive("strike")}
56
48
  />
57
49
  {withEmoji && (
@@ -68,7 +60,7 @@ export function TipTapMenu({ editor, withEmoji, disabled }: TipTapMenuPros) {
68
60
  .run()
69
61
  }
70
62
  type="Emoji"
71
- icon={<FaSmile />}
63
+ iconName="smile"
72
64
  />
73
65
  </>
74
66
  )}
@@ -76,75 +68,75 @@ export function TipTapMenu({ editor, withEmoji, disabled }: TipTapMenuPros) {
76
68
  <TipTapMenuItem
77
69
  onClick={() => editor.chain().focus().toggleHeading({ level: 1 }).run()}
78
70
  type="Heading 1"
79
- icon={<H1Svg />}
71
+ customIcon={<H1Svg />}
80
72
  isActive={editor.isActive("heading", { level: 1 })}
81
73
  />
82
74
  <TipTapMenuItem
83
75
  onClick={() => editor.chain().focus().toggleHeading({ level: 2 }).run()}
84
76
  type="Heading 2"
85
- icon={<H2Svg />}
77
+ customIcon={<H2Svg />}
86
78
  isActive={editor.isActive("heading", { level: 2 })}
87
79
  />
88
80
  <TipTapMenuItem
89
81
  onClick={() => editor.chain().focus().setParagraph().run()}
90
82
  type="Paragraph"
91
- icon={<ParagraphSvg />}
83
+ customIcon={<ParagraphSvg />}
92
84
  isActive={editor.isActive("paragraph")}
93
85
  />
94
86
 
95
87
  <TipTapMenuItem
96
88
  onClick={() => editor.chain().focus().toggleOrderedList().run()}
97
89
  type="Bullet list"
98
- icon={<FaList />}
90
+ iconName="list"
99
91
  isActive={editor.isActive("bulletList")}
100
92
  />
101
93
  <TipTapMenuItem
102
94
  onClick={() => editor.chain().focus().toggleBulletList().run()}
103
95
  type="Ordered list"
104
- icon={<FaListOl />}
96
+ iconName="list-ol"
105
97
  isActive={editor.isActive("orderedList")}
106
98
  />
107
99
  <TipTapMenuItem
108
100
  onClick={() => editor.commands.toggleTaskList()}
109
101
  type="Task list"
110
- icon={<FaTasks />}
102
+ iconName="tasks"
111
103
  isActive={editor.isActive("taskList")}
112
104
  />
113
105
  <div className="divider" />
114
106
  <TipTapMenuItem
115
107
  onClick={() => editor.chain().focus().toggleBlockquote().run()}
116
108
  type="Blockquote"
117
- icon={<DoubleQuotesLSvg />}
109
+ customIcon={<DoubleQuotesLSvg />}
118
110
  isActive={editor.isActive("blockquote")}
119
111
  />
120
112
  <TipTapMenuItem
121
113
  onClick={() => editor.chain().focus().setHorizontalRule().run()}
122
114
  type="Horizontal Rule"
123
- icon={<SepatatorSvg />}
115
+ customIcon={<SepatatorSvg />}
124
116
  />
125
117
  <div className="divider" />
126
118
  <TipTapMenuItem
127
119
  onClick={() => editor.chain().focus().setHardBreak().run()}
128
120
  type="Hard Break"
129
- icon={<TextWrapSvg />}
121
+ customIcon={<TextWrapSvg />}
130
122
  />
131
123
  <TipTapMenuItem
132
124
  onClick={() =>
133
125
  editor.chain().focus().unsetAllMarks().clearNodes().run()
134
126
  }
135
127
  type="Clear Format"
136
- icon={<FormatClearSvg />}
128
+ customIcon={<FormatClearSvg />}
137
129
  />
138
130
  <div className="divider" />
139
131
  <TipTapMenuItem
140
132
  onClick={() => editor.chain().focus().undo().run()}
141
133
  type="Undo"
142
- icon={<FaUndoAlt />}
134
+ iconName="undo-alt"
143
135
  />
144
136
  <TipTapMenuItem
145
137
  onClick={() => editor.chain().focus().redo().run()}
146
138
  type="Redo"
147
- icon={<FaRedoAlt />}
139
+ iconName="redo-alt"
148
140
  />
149
141
  </Row>
150
142
  );
@@ -1,19 +1,22 @@
1
1
  import { Tooltip, OverlayTrigger } from "react-bootstrap";
2
2
  import { useId } from "@react-aria/utils";
3
3
  import clsx from "clsx";
4
- import { ReactElement } from "react";
4
+
5
+ import { Icon } from "../../../static";
5
6
 
6
7
  interface TipTapMenuItemProps {
7
8
  onClick: () => void;
8
9
  type: string;
9
- icon?: ReactElement;
10
+ iconName?: string;
11
+ customIcon?: React.ReactElement;
10
12
  isActive?: boolean;
11
13
  }
12
14
 
13
15
  export const TipTapMenuItem = ({
14
16
  onClick,
15
17
  type,
16
- icon,
18
+ iconName,
19
+ customIcon,
17
20
  isActive,
18
21
  }: TipTapMenuItemProps) => {
19
22
  const toltipId = useId();
@@ -31,7 +34,7 @@ export const TipTapMenuItem = ({
31
34
  onClick={onClick}
32
35
  onKeyPress={() => {}}
33
36
  >
34
- {icon}
37
+ {customIcon || <Icon type={iconName} height="1rem" color="black" />}
35
38
  </div>
36
39
  </OverlayTrigger>
37
40
  );
@@ -5,9 +5,9 @@ import { useTranslation } from "react-i18next";
5
5
  import clsx from "clsx";
6
6
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
7
7
  import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
8
- import { FaEye, FaEllipsisH, FaTrashAlt } from "react-icons/fa";
9
8
  import { MenuButton } from "../../table/MenuButton";
10
9
  import { ConfirmModal } from "../../modals";
10
+ import { Icon } from "../../static";
11
11
 
12
12
  export interface VenueMapSetCardProps extends HasPermissionProp {
13
13
  name: string;
@@ -39,7 +39,7 @@ export function VenueMapSetCard({
39
39
  <div className="venue-map-set-card-link">{name}</div>
40
40
  <div className="d-flex">
41
41
  <div className="venue-map-set-card-menu-eye-container">
42
- <FaEye color="#0E8CE2" size={20} />
42
+ <Icon type="eye" color="#0E8CE2" width="20" />
43
43
  </div>
44
44
  <OverlayTrigger
45
45
  trigger="click"
@@ -70,7 +70,7 @@ export function VenueMapSetCard({
70
70
  confirm(onRemove);
71
71
  }}
72
72
  name={t("remove")}
73
- icon={<FaTrashAlt size={12} />}
73
+ icon="trash-alt"
74
74
  className="venue-map-set-card-menu-item-text d-flex w-100 align-items-center"
75
75
  rightIcon
76
76
  />
@@ -92,7 +92,7 @@ export function VenueMapSetCard({
92
92
  setIsOverlayVisible(true);
93
93
  }}
94
94
  >
95
- <FaEllipsisH />
95
+ <Icon type="ellipsis-h" />
96
96
  </button>
97
97
  </OverlayTrigger>
98
98
  </div>
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from "react";
2
2
  import clsx from "clsx";
3
- import { FaEllipsisH, FaPlus } from "react-icons/fa";
3
+ import Icon from "../../../static/Icon";
4
4
 
5
5
  type MainControlProps = {
6
6
  title: string;
@@ -47,7 +47,12 @@ export const VenueMapControl = ({
47
47
  >
48
48
  <div className="overflow-hidden name-wrapper w-100">
49
49
  {!showMenu && (
50
- <FaPlus size={20} className="rounded venue-map-zone-item-icon" />
50
+ <Icon
51
+ type="plus"
52
+ height="1.25rem"
53
+ width="1.25rem"
54
+ className="rounded venue-map-zone-item-icon"
55
+ />
51
56
  )}
52
57
  <span className="name">{title || "Name"}</span>
53
58
  </div>
@@ -62,7 +67,7 @@ export const VenueMapControl = ({
62
67
  }}
63
68
  onKeyDown={(e) => e.stopPropagation()}
64
69
  >
65
- <FaEllipsisH color="#0E8CE2" size={16} />
70
+ <Icon type="ellipsis-h" color="#0E8CE2" height="1rem" />
66
71
  </div>
67
72
  )}
68
73
  </button>
@@ -3,8 +3,8 @@ import { useTranslation } from "react-i18next";
3
3
  import clsx from "clsx";
4
4
  import { useFormContext } from "react-hook-form";
5
5
  import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
6
- import { FaTrashAlt } from "react-icons/fa";
7
6
  import { ConfirmModal } from "../../../modals/confirmation";
7
+ import Icon from "../../../static/Icon";
8
8
  import { VenueMapWithLocalBlob } from "../types";
9
9
  import { VenueMapImageControl } from "./VenueMapImageControl";
10
10
  import { getVenueMapsRequiredKeys } from "../utils";
@@ -152,7 +152,7 @@ export const VenueMapModal = ({
152
152
  variant="outline-danger"
153
153
  className="d-flex align-items-center"
154
154
  >
155
- <FaTrashAlt size={16} />
155
+ <Icon type="trash" height="1rem" />
156
156
  &nbsp;
157
157
  <span className="d-none d-sm-inline ml-2">{t("delete")}</span>
158
158
  </Button>
@@ -5,8 +5,8 @@ import clsx from "clsx";
5
5
  import { useId } from "@react-aria/utils";
6
6
  import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
7
7
  import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
8
- import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
9
8
  import { ConfirmModal } from "../../modals";
9
+ import { Icon } from "../../static";
10
10
  import { MenuButton } from "../../table/MenuButton";
11
11
 
12
12
  export interface ZoneCardProps extends HasPermissionProp {
@@ -40,7 +40,7 @@ export function ZoneCard({
40
40
  <div className="zone-card-link">{name}</div>
41
41
  <div className="d-flex">
42
42
  <div className="zone-card-menu-eye-container">
43
- <FaEye color="#0E8CE2" size={20} />
43
+ <Icon type="eye" color="#0E8CE2" width="20" />
44
44
  </div>
45
45
  <OverlayTrigger
46
46
  trigger="click"
@@ -71,7 +71,7 @@ export function ZoneCard({
71
71
  confirm(onRemove);
72
72
  }}
73
73
  name={t("remove")}
74
- icon={<FaTrashAlt size={12} />}
74
+ icon="trash-alt"
75
75
  className="zone-card-menu-item-text d-flex w-100 align-items-center"
76
76
  rightIcon
77
77
  />
@@ -93,7 +93,7 @@ export function ZoneCard({
93
93
  setIsOverlayVisible(true);
94
94
  }}
95
95
  >
96
- <FaEllipsisH />
96
+ <Icon type="ellipsis-h" />
97
97
  </button>
98
98
  </OverlayTrigger>
99
99
  </div>
@@ -5,7 +5,7 @@ import { ZoneRecurrence } from "@licklist/core/dist/DataMapper/Provider/ZoneRecu
5
5
 
6
6
  import { useSortable } from "@dnd-kit/sortable";
7
7
  import { CSS } from "@dnd-kit/utilities";
8
- import { FaCalendar, FaEllipsisH } from "react-icons/fa";
8
+ import { Icon } from "../../../static";
9
9
 
10
10
  export interface ZoneRecurrenceControlProps {
11
11
  zoneRecurrence?: { _id: string } & Partial<ZoneRecurrence>;
@@ -45,7 +45,11 @@ export const ZoneRecurrenceControl = ({
45
45
  className="zone-recurrence d-flex flex-column mr-0 mb-3 p-3 px-4 flex-grow-1"
46
46
  >
47
47
  <span className="d-flex flex-row align-items-center">
48
- <FaCalendar size={16} className="zone-recurrence-icon-calendar" />
48
+ <Icon
49
+ type="calendar"
50
+ height="1rem"
51
+ className="zone-recurrence-icon-calendar"
52
+ />
49
53
  <span className="zone-recurrence-title d-flex flex-grow-1">
50
54
  {t("from")}{" "}
51
55
  {formatDate(zoneRecurrence.startDate, {
@@ -64,7 +68,11 @@ export const ZoneRecurrenceControl = ({
64
68
  onClick={() => onEdit(zoneRecurrence)}
65
69
  onKeyDown={() => onEdit(zoneRecurrence)}
66
70
  >
67
- <FaEllipsisH size={16} className="zone-recurrence-icon-more" />
71
+ <Icon
72
+ type="ellipsis-h"
73
+ height="1rem"
74
+ className="zone-recurrence-icon-more"
75
+ />
68
76
  </div>
69
77
  </span>
70
78
  <span className="zone-recurrence-description">
@@ -12,8 +12,8 @@ import {
12
12
  import { DndContext } from "@dnd-kit/core";
13
13
  import { WorkHour } from "@licklist/core/dist/DataMapper/Provider/WorkHourDataMapper";
14
14
 
15
- import { FaPlusCircle } from "react-icons/fa";
16
15
  import { CONFIRM_MODAL_ACTIONS } from "../../../modals/confirmation/ConfirmModal";
16
+ import { Icon } from "../../../static";
17
17
  import {
18
18
  RecurringDatePickerInput,
19
19
  RecurringDatePickerInputValues,
@@ -202,7 +202,11 @@ export const ZoneRecurrencesControl = ({
202
202
  onClick={handleOnAdd}
203
203
  onKeyDown={handleOnAdd}
204
204
  >
205
- <FaPlusCircle size={16} className="zone-recurrence-icon-add mr-2" />
205
+ <Icon
206
+ type="plus-circle"
207
+ height="1rem"
208
+ className="zone-recurrence-icon-add mr-2"
209
+ />
206
210
  {t("addDates")}
207
211
  </div>
208
212