@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.
- package/dist/affiliate/card/AffiliateCard.js +7 -9
- package/dist/auth/AccessDenied/AccessDenied.js +3 -6
- package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialFormComponent.js +0 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.d.ts.map +1 -1
- package/dist/collapsible-input-group/CollapsibleInputGroup.js +5 -5
- package/dist/custom-fields/constants.d.ts +2 -2
- package/dist/custom-fields/constants.d.ts.map +1 -1
- package/dist/custom-fields/constants.js +8 -4
- package/dist/custom-fields/field/FieldItem.d.ts +2 -1
- package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
- package/dist/custom-fields/field/FieldItem.js +1 -6
- package/dist/custom-fields/forms/DropdownForm.js +5 -9
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +3 -4
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +6 -16
- package/dist/events/event-statistic-modal/EventStatisticModal.js +3 -5
- package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +3 -6
- package/dist/file-upload/FilePreview.js +6 -11
- package/dist/help/popover/HelpPopover.js +3 -6
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.d.ts.map +1 -1
- package/dist/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.js +6 -9
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +7 -11
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +5 -5
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +2 -5
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +2 -5
- package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +3 -8
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +2 -5
- package/dist/iframe/order-process/components/Timer/Timer.js +2 -5
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +1 -2
- package/dist/iframe/payment/payment-form/PaymentForm.js +1 -2
- package/dist/iframe/payment/payment-page/PaymentPage.js +1 -1
- package/dist/iframe/payment/payment-page/PaymentTimer.js +1 -1
- package/dist/iframe/payment/payment-status-page/PaymentStatusPage.js +1 -1
- package/dist/index.js +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +3 -4
- package/dist/modals/fullscreen/FullscreenModal.js +3 -4
- package/dist/notification/email-template/card/EmailTemplateCard.js +3 -8
- package/dist/notification/sms-template/card/SmsTemplateCard.js +3 -8
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +7 -9
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +3 -5
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +5 -7
- package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceControl.js +5 -8
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +5 -8
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +6 -10
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.js +3 -4
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +59 -1
- package/dist/product-set/form/ProductsControl.js +2 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +30 -23
- package/dist/product-set/form/SubProductsControl.js +1 -1
- package/dist/product-set/item/CreateProductSetItem.d.ts.map +1 -1
- package/dist/product-set/item/CreateProductSetItem.js +3 -6
- package/dist/product-set/popover/ProductSetPopover.js +3 -5
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +3 -4
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +3 -4
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -4
- package/dist/product-set/product/price/ProductPriceControl.js +3 -4
- package/dist/report/card/ReportCard.d.ts +1 -2
- package/dist/report/card/ReportCard.d.ts.map +1 -1
- package/dist/report/card/ReportCard.js +6 -16
- package/dist/sales/booking/results/components/ResultCard.js +4 -5
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +3 -6
- package/dist/sales/modals/payment-modal/PaymentModal.js +3 -4
- package/dist/sales/modals/refund-modal/RefundModal.js +3 -4
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.js +4 -6
- package/dist/sales/notes/NotesTableRow.js +7 -9
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.js +3 -6
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +11 -26
- package/dist/setting/dashboard/FinancialDataForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/ProviderSettingForm.js +3 -6
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +2 -5
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +7 -9
- package/dist/sidebar/elements/ReturnBack.js +2 -5
- package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
- package/dist/slide-curtain/SlideCurtain.js +3 -4
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/snippet/snippet-template/settings/SettingButton.js +3 -6
- package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
- package/dist/sortable-list/CreateSortableListItem.js +3 -6
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +6 -10
- package/dist/static/RestrictedAccess.js +3 -4
- package/dist/static/SocialButton.d.ts +0 -1
- package/dist/static/SocialButton.d.ts.map +1 -1
- package/dist/static/SocialButton.js +7 -10
- package/dist/static/UserBadge.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.d.ts.map +1 -1
- package/dist/static/date-range-input/DateRangeInput.js +3 -5
- package/dist/static/index.d.ts +0 -1
- package/dist/static/index.d.ts.map +1 -1
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.js +5 -7
- package/dist/striped-static-table/StripedStaticTable.js +1 -2
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +1 -1
- package/dist/table/MenuButton.d.ts +3 -3
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/MenuButton.js +3 -8
- package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
- package/dist/table/PaginationHelperComponent.js +5 -8
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +17 -16
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts +3 -3
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/components/TipTapMenuItem.js +2 -8
- package/dist/venue-map-sets/card/VenueMapSetCard.js +7 -9
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.js +5 -8
- package/dist/venue-map-sets/form/components/VenueMapModal.js +3 -4
- package/dist/zone/card/ZoneCard.js +7 -9
- package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrenceControl.js +5 -8
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +3 -5
- package/package.json +2 -3
- package/src/affiliate/card/AffiliateCard.tsx +4 -4
- package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
- package/src/auth/Social/SocialFormComponent.tsx +0 -1
- package/src/collapsible-input-group/CollapsibleInputGroup.tsx +7 -4
- package/src/custom-fields/{constants.ts → constants.tsx} +3 -2
- package/src/custom-fields/field/FieldItem.tsx +4 -3
- package/src/custom-fields/forms/DropdownForm.tsx +3 -3
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +2 -2
- package/src/events/event-card/EventCard.tsx +13 -6
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +2 -2
- package/src/events/event-venue-map/components/ZoomButtons/ZoomButtons.tsx +2 -2
- package/src/file-upload/FilePreview.tsx +4 -8
- package/src/header/Header.stories.tsx +1 -2
- package/src/help/popover/HelpPopover.tsx +2 -2
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +4 -9
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +5 -4
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +6 -9
- package/src/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.tsx +2 -2
- package/src/iframe/order-process/components/ErrorModal/ErrorModal.tsx +2 -2
- package/src/iframe/order-process/components/NavigationFooter/NavigationFooter.tsx +3 -3
- package/src/iframe/order-process/components/PaymentCard/PaymentCard.tsx +2 -2
- package/src/iframe/order-process/components/Timer/Timer.tsx +2 -2
- package/src/image-radio-input/ImageRadioInput.stories.tsx +3 -3
- package/src/modals/confirmation/ConfirmModal.tsx +2 -2
- package/src/modals/fullscreen/FullscreenModal.tsx +2 -2
- package/src/notification/email-template/card/EmailTemplateCard.tsx +3 -3
- package/src/notification/sms-template/card/SmsTemplateCard.tsx +3 -3
- package/src/product-set/card/ProductSetCard.tsx +4 -5
- package/src/product-set/control/DateAndRecurrenceInput.tsx +3 -4
- package/src/product-set/control/DateInput.tsx +6 -5
- package/src/product-set/control/ProductSetRecurrenceControl.tsx +6 -7
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +5 -8
- package/src/product-set/control/TutorialGifCard.tsx +5 -12
- package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
- package/src/product-set/form/MobileFooter.tsx +6 -36
- package/src/product-set/form/ProductSetForm.tsx +12 -1
- package/src/product-set/form/SelectCategoryModal.tsx +24 -19
- package/src/product-set/item/CreateProductSetItem.tsx +2 -7
- package/src/product-set/popover/ProductSetPopover.tsx +2 -2
- package/src/product-set/product/ProductControl.tsx +2 -5
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +2 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +2 -2
- package/src/report/card/ReportCard.tsx +0 -10
- package/src/sales/booking/results/components/ResultCard.tsx +2 -2
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +3 -9
- package/src/sales/modals/payment-modal/PaymentModal.tsx +2 -2
- package/src/sales/modals/refund-modal/RefundModal.tsx +2 -2
- package/src/sales/notes/NotesTable.tsx +2 -2
- package/src/sales/notes/NotesTableRow.tsx +4 -4
- package/src/setting/admin/AdminSettingForm.tsx +2 -7
- package/src/setting/admin/PaymentFeeForm.tsx +7 -32
- package/src/setting/dashboard/FinancialDataForm.tsx +4 -19
- package/src/setting/dashboard/ProviderSettingForm.tsx +2 -7
- package/src/setting/dashboard/components/IpInput.tsx +2 -2
- package/src/setting/dashboard/snippet-templates/card/SnippetTemplateCard.tsx +2 -2
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -4
- package/src/sidebar/elements/ReturnBack.tsx +2 -2
- package/src/slide-curtain/SlideCurtain.tsx +2 -6
- package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
- package/src/sortable-list/CreateSortableListItem.tsx +2 -7
- package/src/sortable-tree/SortableTreeItem.tsx +4 -5
- package/src/static/RestrictedAccess.tsx +2 -2
- package/src/static/SocialButton.tsx +4 -5
- package/src/static/Static.stories.tsx +2 -2
- package/src/static/UserBadge.tsx +2 -6
- package/src/static/date-range-input/DateRangeInput.tsx +2 -6
- package/src/static/index.ts +0 -1
- package/src/static/number-input/NumberInput.tsx +3 -3
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +1 -1
- package/src/table/MenuButton.tsx +4 -8
- package/src/table/PaginationHelperComponent.tsx +3 -4
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +24 -16
- package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +4 -7
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
- package/src/venue-map-sets/form/components/VenueMapControl.tsx +3 -8
- package/src/venue-map-sets/form/components/VenueMapModal.tsx +2 -2
- package/src/zone/card/ZoneCard.tsx +4 -4
- package/src/zone/form/components/ZoneRecurrenceControl.tsx +3 -11
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +2 -6
- package/yarn.lock +163 -176
- package/dist/static/Icon.d.ts +0 -13
- package/dist/static/Icon.d.ts.map +0 -1
- package/dist/static/Icon.js +0 -22
- package/src/static/Icon.tsx +0 -37
|
@@ -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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
142
|
+
icon={<FaUndoAlt />}
|
|
135
143
|
/>
|
|
136
144
|
<TipTapMenuItem
|
|
137
145
|
onClick={() => editor.chain().focus().redo().run()}
|
|
138
146
|
type="Redo"
|
|
139
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
{
|
|
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
|
-
<
|
|
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=
|
|
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
|
-
<
|
|
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
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
155
|
+
<FaTrashAlt size={16} />
|
|
156
156
|
|
|
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
|
-
<
|
|
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=
|
|
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
|
-
<
|
|
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 {
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
|