@licklist/design 0.66.9-dev.1 → 0.66.10-dev.0

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 (223) 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/calendar/components/CalendarButtons/CalendarButtons.js +31 -39
  6. package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
  7. package/dist/collapsible-input-group/CollapsibleInputGroup.js +5 -5
  8. package/dist/custom-fields/constants.d.ts +2 -2
  9. package/dist/custom-fields/constants.d.ts.map +1 -1
  10. package/dist/custom-fields/constants.js +8 -4
  11. package/dist/custom-fields/field/FieldItem.d.ts +2 -1
  12. package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
  13. package/dist/custom-fields/field/FieldItem.js +1 -6
  14. package/dist/custom-fields/forms/DropdownForm.js +5 -9
  15. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
  16. package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -4
  17. package/dist/events/event-card/EventCard.d.ts.map +1 -1
  18. package/dist/events/event-card/EventCard.js +6 -16
  19. package/dist/events/event-statistic-modal/EventStatisticModal.js +3 -5
  20. package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +3 -6
  21. package/dist/file-upload/FilePreview.js +6 -11
  22. package/dist/help/popover/HelpPopover.js +3 -6
  23. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
  24. package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +6 -9
  25. package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
  26. package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +7 -11
  27. package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +9 -8
  28. package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +2 -5
  29. package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +2 -5
  30. package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +3 -8
  31. package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +2 -5
  32. package/dist/iframe/order-process/components/Timer/Timer.js +2 -5
  33. package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -2
  34. package/dist/iframe/payment/payment-form/PaymentForm.js +1 -2
  35. package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
  36. package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
  37. package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/layout/DropDown.d.ts.map +1 -1
  40. package/dist/layout/DropDown.js +1 -0
  41. package/dist/layout/DropDownToggle.d.ts.map +1 -1
  42. package/dist/layout/DropDownToggle.js +1 -0
  43. package/dist/modals/confirmation/ConfirmModal.js +3 -4
  44. package/dist/modals/fullscreen/FullscreenModal.js +3 -4
  45. package/dist/notification/email-template/card/EmailTemplateCard.js +3 -8
  46. package/dist/notification/sms-template/card/SmsTemplateCard.js +3 -8
  47. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  48. package/dist/product-set/card/ProductSetCard.js +7 -9
  49. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  50. package/dist/product-set/control/DateAndRecurrenceInput.js +3 -5
  51. package/dist/product-set/control/DateInput.js +3 -5
  52. package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
  53. package/dist/product-set/control/ProductSetRecurrenceControl.js +5 -8
  54. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
  55. package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +5 -8
  56. package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
  57. package/dist/product-set/control/TutorialGifCard.js +6 -10
  58. package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
  59. package/dist/product-set/elements/DeleteFieldButton.js +3 -4
  60. package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
  61. package/dist/product-set/form/ProductsControl.js +2 -2
  62. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  63. package/dist/product-set/form/SelectCategoryModal.js +30 -23
  64. package/dist/product-set/form/SubProductsControl.js +1 -1
  65. package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
  66. package/dist/product-set/item/CreateProductSetItem.js +3 -6
  67. package/dist/product-set/popover/ProductSetPopover.js +3 -5
  68. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  69. package/dist/product-set/product/ProductControl.js +3 -4
  70. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +3 -4
  71. package/dist/product-set/product/deposit/ProductDepositControl.js +3 -4
  72. package/dist/product-set/product/price/ProductPriceControl.js +3 -4
  73. package/dist/report/card/ReportCard.d.ts +1 -2
  74. package/dist/report/card/ReportCard.d.ts.map +1 -1
  75. package/dist/report/card/ReportCard.js +6 -16
  76. package/dist/sales/booking/results/components/ResultCard.js +4 -5
  77. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
  78. package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +3 -6
  79. package/dist/sales/modals/payment-modal/PaymentModal.js +3 -4
  80. package/dist/sales/modals/refund-modal/RefundModal.js +3 -4
  81. package/dist/sales/notes/NotesTable.d.ts.map +1 -1
  82. package/dist/sales/notes/NotesTable.js +4 -6
  83. package/dist/sales/notes/NotesTableRow.js +7 -9
  84. package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
  85. package/dist/setting/admin/AdminSettingForm.js +3 -6
  86. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  87. package/dist/setting/admin/PaymentFeeForm.js +11 -26
  88. package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
  89. package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
  90. package/dist/setting/dashboard/ProviderSettingForm.js +3 -6
  91. package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +2 -5
  92. package/dist/setting/dashboard/snippets/card/SnippetCard.js +7 -9
  93. package/dist/sidebar/elements/ReturnBack.js +2 -5
  94. package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
  95. package/dist/slide-curtain/SlideCurtain.js +3 -4
  96. package/dist/snippet/snippet-template/preview/Preview.js +1 -1
  97. package/dist/snippet/snippet-template/settings/SettingButton.js +3 -6
  98. package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
  99. package/dist/sortable-list/CreateSortableListItem.js +3 -6
  100. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  101. package/dist/sortable-tree/SortableTreeItem.js +6 -10
  102. package/dist/static/RestrictedAccess.js +3 -4
  103. package/dist/static/SocialButton.d.ts +0 -1
  104. package/dist/static/SocialButton.d.ts.map +1 -1
  105. package/dist/static/SocialButton.js +7 -10
  106. package/dist/static/UserBadge.d.ts.map +1 -1
  107. package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
  108. package/dist/static/date-range-input/DateRangeInput.js +3 -5
  109. package/dist/static/index.d.ts +0 -1
  110. package/dist/static/index.d.ts.map +1 -1
  111. package/dist/static/index.js +1 -1
  112. package/dist/static/number-input/NumberInput.js +5 -7
  113. package/dist/striped-static-table/StripedStaticTable.js +1 -2
  114. package/dist/styles/iframe-page/PageBody.scss +1 -0
  115. package/dist/table/MenuButton.d.ts +3 -3
  116. package/dist/table/MenuButton.d.ts.map +1 -1
  117. package/dist/table/MenuButton.js +3 -8
  118. package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
  119. package/dist/table/PaginationHelperComponent.js +5 -8
  120. package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
  121. package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +17 -16
  122. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts +3 -3
  123. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts.map +1 -1
  124. package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.js +2 -8
  125. package/dist/venue-map-sets/card/VenueMapSetCard.js +7 -9
  126. package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
  127. package/dist/venue-map-sets/form/components/VenueMapControl.js +5 -8
  128. package/dist/venue-map-sets/form/components/VenueMapModal.js +3 -4
  129. package/dist/zone/card/ZoneCard.js +7 -9
  130. package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
  131. package/dist/zone/form/components/ZoneRecurrenceControl.js +5 -8
  132. package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
  133. package/dist/zone/form/components/ZoneRecurrencesControl.js +3 -5
  134. package/package.json +4 -5
  135. package/src/affiliate/card/AffiliateCard.tsx +4 -4
  136. package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
  137. package/src/auth/Social/SocialFormComponent.tsx +0 -1
  138. package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +28 -28
  139. package/src/collapsible-input-group/CollapsibleInputGroup.tsx +7 -4
  140. package/src/custom-fields/{constants.ts → constants.tsx} +3 -2
  141. package/src/custom-fields/field/FieldItem.tsx +4 -3
  142. package/src/custom-fields/forms/DropdownForm.tsx +3 -3
  143. package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +2 -2
  144. package/src/events/event-card/EventCard.tsx +13 -6
  145. package/src/events/event-statistic-modal/EventStatisticModal.tsx +2 -2
  146. package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +2 -2
  147. package/src/file-upload/FilePreview.tsx +4 -8
  148. package/src/header/Header.stories.tsx +1 -2
  149. package/src/help/popover/HelpPopover.tsx +2 -2
  150. package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +4 -9
  151. package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +5 -4
  152. package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +11 -15
  153. package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
  154. package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +2 -2
  155. package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +3 -3
  156. package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +2 -2
  157. package/src/iframe/order-process/components/Timer/Timer.tsx +2 -2
  158. package/src/image-radio-input/ImageRadioInput.stories.tsx +3 -3
  159. package/src/layout/DropDown.tsx +2 -0
  160. package/src/layout/DropDownToggle.tsx +2 -0
  161. package/src/modals/confirmation/ConfirmModal.tsx +2 -2
  162. package/src/modals/fullscreen/FullscreenModal.tsx +2 -2
  163. package/src/notification/email-template/card/EmailTemplateCard.tsx +3 -3
  164. package/src/notification/sms-template/card/SmsTemplateCard.tsx +3 -3
  165. package/src/product-set/card/ProductSetCard.tsx +4 -5
  166. package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
  167. package/src/product-set/control/DateInput.tsx +4 -4
  168. package/src/product-set/control/ProductSetRecurrenceControl.tsx +6 -7
  169. package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +5 -8
  170. package/src/product-set/control/TutorialGifCard.tsx +5 -12
  171. package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
  172. package/src/product-set/form/MobileFooter.tsx +6 -36
  173. package/src/product-set/form/ProductSetForm.tsx +1 -1
  174. package/src/product-set/form/SelectCategoryModal.tsx +24 -19
  175. package/src/product-set/item/CreateProductSetItem.tsx +2 -7
  176. package/src/product-set/popover/ProductSetPopover.tsx +2 -2
  177. package/src/product-set/product/ProductControl.tsx +2 -5
  178. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -2
  179. package/src/product-set/product/deposit/ProductDepositControl.tsx +2 -2
  180. package/src/product-set/product/price/ProductPriceControl.tsx +2 -2
  181. package/src/report/card/ReportCard.tsx +0 -10
  182. package/src/sales/booking/results/components/ResultCard.tsx +2 -2
  183. package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -9
  184. package/src/sales/modals/payment-modal/PaymentModal.tsx +2 -2
  185. package/src/sales/modals/refund-modal/RefundModal.tsx +2 -2
  186. package/src/sales/notes/NotesTable.tsx +2 -2
  187. package/src/sales/notes/NotesTableRow.tsx +4 -4
  188. package/src/setting/admin/AdminSettingForm.tsx +2 -7
  189. package/src/setting/admin/PaymentFeeForm.tsx +7 -32
  190. package/src/setting/dashboard/FinancialDataForm.tsx +4 -19
  191. package/src/setting/dashboard/ProviderSettingForm.tsx +2 -7
  192. package/src/setting/dashboard/components/IpInput.tsx +2 -2
  193. package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -2
  194. package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -4
  195. package/src/sidebar/elements/ReturnBack.tsx +2 -2
  196. package/src/slide-curtain/SlideCurtain.tsx +2 -6
  197. package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
  198. package/src/sortable-list/CreateSortableListItem.tsx +2 -7
  199. package/src/sortable-tree/SortableTreeItem.tsx +4 -5
  200. package/src/static/RestrictedAccess.tsx +2 -2
  201. package/src/static/SocialButton.tsx +4 -5
  202. package/src/static/Static.stories.tsx +2 -2
  203. package/src/static/UserBadge.tsx +2 -6
  204. package/src/static/date-range-input/DateRangeInput.tsx +2 -6
  205. package/src/static/index.ts +0 -1
  206. package/src/static/number-input/NumberInput.tsx +3 -3
  207. package/src/styles/iframe-page/PageBody.scss +1 -0
  208. package/src/table/MenuButton.tsx +4 -8
  209. package/src/table/PaginationHelperComponent.tsx +3 -4
  210. package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +24 -16
  211. package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +4 -7
  212. package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
  213. package/src/venue-map-sets/form/components/VenueMapControl.tsx +3 -8
  214. package/src/venue-map-sets/form/components/VenueMapModal.tsx +2 -2
  215. package/src/zone/card/ZoneCard.tsx +4 -4
  216. package/src/zone/form/components/ZoneRecurrenceControl.tsx +3 -11
  217. package/src/zone/form/components/ZoneRecurrencesControl.tsx +2 -6
  218. package/yarn.lock +152 -165
  219. package/dist/assets/iframe/selectArrow.svg.js +0 -17
  220. package/dist/static/Icon.d.ts +0 -13
  221. package/dist/static/Icon.d.ts.map +0 -1
  222. package/dist/static/Icon.js +0 -22
  223. package/src/static/Icon.tsx +0 -37
@@ -95,6 +95,7 @@
95
95
  }
96
96
 
97
97
  .children-wrapper {
98
+ overflow: auto;
98
99
  padding: 1rem;
99
100
  flex: 1;
100
101
 
@@ -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
  );
@@ -5,8 +5,7 @@ import { useTranslation } from "react-i18next";
5
5
  import ILengthAwarePaginator from "@licklist/plugins/dist/types/services/Table/ILengthAwarePaginator";
6
6
  import PaginationService from "@licklist/plugins/dist/services/Table/PaginationService";
7
7
  import clsx from "clsx";
8
-
9
- import { Icon } from "../static";
8
+ import { FaArrowLeft, FaArrowRight } from "react-icons/fa";
10
9
 
11
10
  export interface PaginationHelperComponentProps {
12
11
  displayShowingSection?: boolean;
@@ -59,7 +58,7 @@ function PaginationHelperComponent({
59
58
  className="border-0"
60
59
  onClick={() => onPageChange(paginationService.getPrevPage())}
61
60
  >
62
- <Icon type="arrow-left" width="0.9rem" color="black" />
61
+ <FaArrowLeft size={14} color="black" />
63
62
  </button>
64
63
 
65
64
  {paginationService.getElements().map((element) => {
@@ -84,7 +83,7 @@ function PaginationHelperComponent({
84
83
  className="border-0"
85
84
  onClick={() => onPageChange(paginationService.getNextPage())}
86
85
  >
87
- <Icon type="arrow-right" width="0.9rem" color="black" />
86
+ <FaArrowRight size={14} color="black" />
88
87
  </button>
89
88
  </Pagination>
90
89
  ),
@@ -3,6 +3,14 @@ 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";
6
14
  import { ReactComponent as BoldSvg } from "../../assets/editor/bold.svg";
7
15
  import { ReactComponent as ItalicSvg } from "../../assets/editor/italic.svg";
8
16
  import { ReactComponent as StrikethroughSvg } from "../../assets/editor/strikethrough.svg";
@@ -31,19 +39,19 @@ export function TipTapMenu({ editor, withEmoji, disabled }: TipTapMenuPros) {
31
39
  <TipTapMenuItem
32
40
  onClick={() => editor.chain().focus().toggleBold().run()}
33
41
  type="Bold"
34
- customIcon={<BoldSvg />}
42
+ icon={<BoldSvg />}
35
43
  isActive={editor.isActive("bold")}
36
44
  />
37
45
  <TipTapMenuItem
38
46
  onClick={() => editor.chain().focus().toggleItalic().run()}
39
47
  type="Italic"
40
- customIcon={<ItalicSvg />}
48
+ icon={<ItalicSvg />}
41
49
  isActive={editor.isActive("italic")}
42
50
  />
43
51
  <TipTapMenuItem
44
52
  onClick={() => editor.chain().focus().toggleStrike().run()}
45
53
  type="Strike"
46
- customIcon={<StrikethroughSvg />}
54
+ icon={<StrikethroughSvg />}
47
55
  isActive={editor.isActive("strike")}
48
56
  />
49
57
  {withEmoji && (
@@ -60,7 +68,7 @@ export function TipTapMenu({ editor, withEmoji, disabled }: TipTapMenuPros) {
60
68
  .run()
61
69
  }
62
70
  type="Emoji"
63
- iconName="smile"
71
+ icon={<FaSmile />}
64
72
  />
65
73
  </>
66
74
  )}
@@ -68,75 +76,75 @@ export function TipTapMenu({ editor, withEmoji, disabled }: TipTapMenuPros) {
68
76
  <TipTapMenuItem
69
77
  onClick={() => editor.chain().focus().toggleHeading({ level: 1 }).run()}
70
78
  type="Heading 1"
71
- customIcon={<H1Svg />}
79
+ icon={<H1Svg />}
72
80
  isActive={editor.isActive("heading", { level: 1 })}
73
81
  />
74
82
  <TipTapMenuItem
75
83
  onClick={() => editor.chain().focus().toggleHeading({ level: 2 }).run()}
76
84
  type="Heading 2"
77
- customIcon={<H2Svg />}
85
+ icon={<H2Svg />}
78
86
  isActive={editor.isActive("heading", { level: 2 })}
79
87
  />
80
88
  <TipTapMenuItem
81
89
  onClick={() => editor.chain().focus().setParagraph().run()}
82
90
  type="Paragraph"
83
- customIcon={<ParagraphSvg />}
91
+ icon={<ParagraphSvg />}
84
92
  isActive={editor.isActive("paragraph")}
85
93
  />
86
94
 
87
95
  <TipTapMenuItem
88
96
  onClick={() => editor.chain().focus().toggleOrderedList().run()}
89
97
  type="Bullet list"
90
- iconName="list"
98
+ icon={<FaList />}
91
99
  isActive={editor.isActive("bulletList")}
92
100
  />
93
101
  <TipTapMenuItem
94
102
  onClick={() => editor.chain().focus().toggleBulletList().run()}
95
103
  type="Ordered list"
96
- iconName="list-ol"
104
+ icon={<FaListOl />}
97
105
  isActive={editor.isActive("orderedList")}
98
106
  />
99
107
  <TipTapMenuItem
100
108
  onClick={() => editor.commands.toggleTaskList()}
101
109
  type="Task list"
102
- iconName="tasks"
110
+ icon={<FaTasks />}
103
111
  isActive={editor.isActive("taskList")}
104
112
  />
105
113
  <div className="divider" />
106
114
  <TipTapMenuItem
107
115
  onClick={() => editor.chain().focus().toggleBlockquote().run()}
108
116
  type="Blockquote"
109
- customIcon={<DoubleQuotesLSvg />}
117
+ icon={<DoubleQuotesLSvg />}
110
118
  isActive={editor.isActive("blockquote")}
111
119
  />
112
120
  <TipTapMenuItem
113
121
  onClick={() => editor.chain().focus().setHorizontalRule().run()}
114
122
  type="Horizontal Rule"
115
- customIcon={<SepatatorSvg />}
123
+ icon={<SepatatorSvg />}
116
124
  />
117
125
  <div className="divider" />
118
126
  <TipTapMenuItem
119
127
  onClick={() => editor.chain().focus().setHardBreak().run()}
120
128
  type="Hard Break"
121
- customIcon={<TextWrapSvg />}
129
+ icon={<TextWrapSvg />}
122
130
  />
123
131
  <TipTapMenuItem
124
132
  onClick={() =>
125
133
  editor.chain().focus().unsetAllMarks().clearNodes().run()
126
134
  }
127
135
  type="Clear Format"
128
- customIcon={<FormatClearSvg />}
136
+ icon={<FormatClearSvg />}
129
137
  />
130
138
  <div className="divider" />
131
139
  <TipTapMenuItem
132
140
  onClick={() => editor.chain().focus().undo().run()}
133
141
  type="Undo"
134
- iconName="undo-alt"
142
+ icon={<FaUndoAlt />}
135
143
  />
136
144
  <TipTapMenuItem
137
145
  onClick={() => editor.chain().focus().redo().run()}
138
146
  type="Redo"
139
- iconName="redo-alt"
147
+ icon={<FaRedoAlt />}
140
148
  />
141
149
  </Row>
142
150
  );
@@ -1,22 +1,19 @@
1
1
  import { Tooltip, OverlayTrigger } from "react-bootstrap";
2
2
  import { useId } from "@react-aria/utils";
3
3
  import clsx from "clsx";
4
-
5
- import { Icon } from "../../../static";
4
+ import { ReactElement } from "react";
6
5
 
7
6
  interface TipTapMenuItemProps {
8
7
  onClick: () => void;
9
8
  type: string;
10
- iconName?: string;
11
- customIcon?: React.ReactElement;
9
+ icon?: ReactElement;
12
10
  isActive?: boolean;
13
11
  }
14
12
 
15
13
  export const TipTapMenuItem = ({
16
14
  onClick,
17
15
  type,
18
- iconName,
19
- customIcon,
16
+ icon,
20
17
  isActive,
21
18
  }: TipTapMenuItemProps) => {
22
19
  const toltipId = useId();
@@ -34,7 +31,7 @@ export const TipTapMenuItem = ({
34
31
  onClick={onClick}
35
32
  onKeyPress={() => {}}
36
33
  >
37
- {customIcon || <Icon type={iconName} height="1rem" color="black" />}
34
+ {icon}
38
35
  </div>
39
36
  </OverlayTrigger>
40
37
  );
@@ -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";
8
9
  import { MenuButton } from "../../table/MenuButton";
9
10
  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
- <Icon type="eye" color="#0E8CE2" width="20" />
42
+ <FaEye color="#0E8CE2" size={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="trash-alt"
73
+ icon={<FaTrashAlt size={12} />}
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
- <Icon type="ellipsis-h" />
95
+ <FaEllipsisH />
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 Icon from "../../../static/Icon";
3
+ import { FaEllipsisH, FaPlus } from "react-icons/fa";
4
4
 
5
5
  type MainControlProps = {
6
6
  title: string;
@@ -47,12 +47,7 @@ export const VenueMapControl = ({
47
47
  >
48
48
  <div className="overflow-hidden name-wrapper w-100">
49
49
  {!showMenu && (
50
- <Icon
51
- type="plus"
52
- height="1.25rem"
53
- width="1.25rem"
54
- className="rounded venue-map-zone-item-icon"
55
- />
50
+ <FaPlus size={20} className="rounded venue-map-zone-item-icon" />
56
51
  )}
57
52
  <span className="name">{title || "Name"}</span>
58
53
  </div>
@@ -67,7 +62,7 @@ export const VenueMapControl = ({
67
62
  }}
68
63
  onKeyDown={(e) => e.stopPropagation()}
69
64
  >
70
- <Icon type="ellipsis-h" color="#0E8CE2" height="1rem" />
65
+ <FaEllipsisH color="#0E8CE2" size={16} />
71
66
  </div>
72
67
  )}
73
68
  </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";
6
7
  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
- <Icon type="trash" height="1rem" />
155
+ <FaTrashAlt size={16} />
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";
8
9
  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
- <Icon type="eye" color="#0E8CE2" width="20" />
43
+ <FaEye color="#0E8CE2" size={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="trash-alt"
74
+ icon={<FaTrashAlt size={12} />}
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
- <Icon type="ellipsis-h" />
96
+ <FaEllipsisH />
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 { Icon } from "../../../static";
8
+ import { FaCalendar, FaEllipsisH } from "react-icons/fa";
9
9
 
10
10
  export interface ZoneRecurrenceControlProps {
11
11
  zoneRecurrence?: { _id: string } & Partial<ZoneRecurrence>;
@@ -45,11 +45,7 @@ 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
- <Icon
49
- type="calendar"
50
- height="1rem"
51
- className="zone-recurrence-icon-calendar"
52
- />
48
+ <FaCalendar size={16} className="zone-recurrence-icon-calendar" />
53
49
  <span className="zone-recurrence-title d-flex flex-grow-1">
54
50
  {t("from")}{" "}
55
51
  {formatDate(zoneRecurrence.startDate, {
@@ -68,11 +64,7 @@ export const ZoneRecurrenceControl = ({
68
64
  onClick={() => onEdit(zoneRecurrence)}
69
65
  onKeyDown={() => onEdit(zoneRecurrence)}
70
66
  >
71
- <Icon
72
- type="ellipsis-h"
73
- height="1rem"
74
- className="zone-recurrence-icon-more"
75
- />
67
+ <FaEllipsisH size={16} className="zone-recurrence-icon-more" />
76
68
  </div>
77
69
  </span>
78
70
  <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";
15
16
  import { CONFIRM_MODAL_ACTIONS } from "../../../modals/confirmation/ConfirmModal";
16
- import { Icon } from "../../../static";
17
17
  import {
18
18
  RecurringDatePickerInput,
19
19
  RecurringDatePickerInputValues,
@@ -202,11 +202,7 @@ export const ZoneRecurrencesControl = ({
202
202
  onClick={handleOnAdd}
203
203
  onKeyDown={handleOnAdd}
204
204
  >
205
- <Icon
206
- type="plus-circle"
207
- height="1rem"
208
- className="zone-recurrence-icon-add mr-2"
209
- />
205
+ <FaPlusCircle size={16} className="zone-recurrence-icon-add mr-2" />
210
206
  {t("addDates")}
211
207
  </div>
212
208