@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.
- package/dist/affiliate/card/AffiliateCard.js +9 -7
- package/dist/auth/AccessDenied/AccessDenied.js +6 -3
- package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialFormComponent.js +1 -0
- 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 +4 -8
- package/dist/custom-fields/field/FieldItem.d.ts +1 -2
- package/dist/custom-fields/field/FieldItem.d.ts.map +1 -1
- package/dist/custom-fields/field/FieldItem.js +6 -1
- package/dist/custom-fields/forms/DropdownForm.js +9 -5
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.js +4 -3
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +16 -6
- package/dist/events/event-statistic-modal/EventStatisticModal.js +5 -3
- package/dist/events/event-venue-map/components/ZoomButtons/ZoomButtons.js +6 -3
- package/dist/file-upload/FilePreview.js +11 -6
- package/dist/help/popover/HelpPopover.js +6 -3
- 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 +9 -6
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +11 -7
- package/dist/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.js +8 -9
- package/dist/iframe/order-process/components/CalendarStepsForm/components/CategoryProductModal.js +5 -2
- package/dist/iframe/order-process/components/ErrorModal/ErrorModal.js +5 -2
- package/dist/iframe/order-process/components/NavigationFooter/NavigationFooter.js +8 -3
- package/dist/iframe/order-process/components/PaymentCard/PaymentCard.js +5 -2
- package/dist/iframe/order-process/components/Timer/Timer.js +5 -2
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +2 -1
- package/dist/iframe/payment/payment-form/PaymentForm.js +2 -1
- 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 +4 -3
- package/dist/modals/fullscreen/FullscreenModal.js +4 -3
- package/dist/notification/email-template/card/EmailTemplateCard.js +8 -3
- package/dist/notification/sms-template/card/SmsTemplateCard.js +8 -3
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +9 -7
- package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
- package/dist/product-set/control/DateAndRecurrenceInput.js +5 -3
- package/dist/product-set/control/DateInput.js +5 -3
- package/dist/product-set/control/ProductSetRecurrenceControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceControl.js +8 -5
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.d.ts.map +1 -1
- package/dist/product-set/control/ProductSetRecurrenceOverridesControl.js +8 -5
- package/dist/product-set/control/TutorialGifCard.d.ts.map +1 -1
- package/dist/product-set/control/TutorialGifCard.js +10 -6
- package/dist/product-set/elements/DeleteFieldButton.d.ts.map +1 -1
- package/dist/product-set/elements/DeleteFieldButton.js +4 -3
- package/dist/product-set/form/MobileFooter.d.ts.map +1 -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 +23 -30
- 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 +6 -3
- package/dist/product-set/popover/ProductSetPopover.js +5 -3
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +4 -3
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +4 -3
- package/dist/product-set/product/deposit/ProductDepositControl.js +4 -3
- package/dist/product-set/product/price/ProductPriceControl.js +4 -3
- package/dist/report/card/ReportCard.d.ts +2 -1
- package/dist/report/card/ReportCard.d.ts.map +1 -1
- package/dist/report/card/ReportCard.js +16 -6
- package/dist/sales/booking/results/components/ResultCard.js +5 -4
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.d.ts.map +1 -1
- package/dist/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.js +6 -3
- package/dist/sales/modals/payment-modal/PaymentModal.js +4 -3
- package/dist/sales/modals/refund-modal/RefundModal.js +4 -3
- package/dist/sales/notes/NotesTable.d.ts.map +1 -1
- package/dist/sales/notes/NotesTable.js +6 -4
- package/dist/sales/notes/NotesTableRow.js +9 -7
- package/dist/setting/admin/AdminSettingForm.d.ts.map +1 -1
- package/dist/setting/admin/AdminSettingForm.js +6 -3
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +26 -11
- 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 +6 -3
- package/dist/setting/dashboard/snippet-templates/card/SnippetTemplateCard.js +5 -2
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +9 -7
- package/dist/sidebar/elements/ReturnBack.js +5 -2
- package/dist/slide-curtain/SlideCurtain.d.ts.map +1 -1
- package/dist/slide-curtain/SlideCurtain.js +4 -3
- package/dist/snippet/snippet-template/preview/Preview.js +1 -1
- package/dist/snippet/snippet-template/settings/SettingButton.js +6 -3
- package/dist/sortable-list/CreateSortableListItem.d.ts.map +1 -1
- package/dist/sortable-list/CreateSortableListItem.js +6 -3
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +10 -6
- package/dist/static/Icon.d.ts +13 -0
- package/dist/static/Icon.d.ts.map +1 -0
- package/dist/static/Icon.js +22 -0
- package/dist/static/RestrictedAccess.js +4 -3
- package/dist/static/SocialButton.d.ts +1 -0
- package/dist/static/SocialButton.d.ts.map +1 -1
- package/dist/static/SocialButton.js +10 -7
- 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 +5 -3
- package/dist/static/index.d.ts +1 -0
- package/dist/static/index.d.ts.map +1 -1
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.js +7 -5
- package/dist/striped-static-table/StripedStaticTable.js +2 -1
- package/dist/table/MenuButton.d.ts +3 -3
- package/dist/table/MenuButton.d.ts.map +1 -1
- package/dist/table/MenuButton.js +8 -3
- package/dist/table/PaginationHelperComponent.d.ts.map +1 -1
- package/dist/table/PaginationHelperComponent.js +8 -5
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/TipTapMenu.js +16 -17
- 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 +8 -2
- package/dist/venue-map-sets/card/VenueMapSetCard.js +9 -7
- package/dist/venue-map-sets/form/components/VenueMapControl.d.ts.map +1 -1
- package/dist/venue-map-sets/form/components/VenueMapControl.js +8 -5
- package/dist/venue-map-sets/form/components/VenueMapModal.js +4 -3
- package/dist/zone/card/ZoneCard.js +9 -7
- package/dist/zone/form/components/ZoneRecurrenceControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrenceControl.js +8 -5
- package/dist/zone/form/components/ZoneRecurrencesControl.d.ts.map +1 -1
- package/dist/zone/form/components/ZoneRecurrencesControl.js +5 -3
- package/package.json +5 -4
- package/src/affiliate/card/AffiliateCard.tsx +4 -4
- package/src/auth/AccessDenied/AccessDenied.tsx +2 -2
- package/src/auth/Social/SocialFormComponent.tsx +1 -0
- package/src/collapsible-input-group/CollapsibleInputGroup.tsx +4 -7
- package/src/custom-fields/{constants.tsx → constants.ts} +2 -3
- package/src/custom-fields/field/FieldItem.tsx +3 -4
- 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 +6 -13
- 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 +8 -4
- package/src/header/Header.stories.tsx +2 -1
- package/src/help/popover/HelpPopover.tsx +2 -2
- package/src/iframe/event/event-booking-products/components/AccordionItem/AccordionItem.tsx +9 -4
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +4 -5
- package/src/iframe/order-process/components/BookingSummary/components/ToggleHeader/ToggleHeader.tsx +15 -11
- 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 +5 -4
- package/src/product-set/control/DateAndRecurrenceInput.tsx +4 -3
- package/src/product-set/control/DateInput.tsx +4 -4
- package/src/product-set/control/ProductSetRecurrenceControl.tsx +7 -6
- package/src/product-set/control/ProductSetRecurrenceOverridesControl.tsx +8 -5
- package/src/product-set/control/TutorialGifCard.tsx +12 -5
- package/src/product-set/elements/DeleteFieldButton.tsx +2 -2
- package/src/product-set/form/MobileFooter.tsx +36 -6
- package/src/product-set/form/ProductSetForm.tsx +1 -1
- package/src/product-set/form/SelectCategoryModal.tsx +19 -24
- package/src/product-set/item/CreateProductSetItem.tsx +7 -2
- package/src/product-set/popover/ProductSetPopover.tsx +2 -2
- package/src/product-set/product/ProductControl.tsx +5 -2
- 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 +10 -0
- package/src/sales/booking/results/components/ResultCard.tsx +2 -2
- package/src/sales/manual-booking/number-input-horizontal/NumberInputHorizontal.tsx +9 -3
- 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 +7 -2
- package/src/setting/admin/PaymentFeeForm.tsx +32 -7
- package/src/setting/dashboard/FinancialDataForm.tsx +19 -4
- package/src/setting/dashboard/ProviderSettingForm.tsx +7 -2
- 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 +6 -2
- package/src/snippet/snippet-template/settings/SettingButton.tsx +2 -2
- package/src/sortable-list/CreateSortableListItem.tsx +7 -2
- package/src/sortable-tree/SortableTreeItem.tsx +5 -4
- package/src/static/Icon.tsx +37 -0
- package/src/static/RestrictedAccess.tsx +2 -2
- package/src/static/SocialButton.tsx +5 -4
- package/src/static/Static.stories.tsx +2 -2
- package/src/static/UserBadge.tsx +6 -2
- package/src/static/date-range-input/DateRangeInput.tsx +6 -2
- package/src/static/index.ts +1 -0
- package/src/static/number-input/NumberInput.tsx +3 -3
- package/src/table/MenuButton.tsx +8 -4
- package/src/table/PaginationHelperComponent.tsx +4 -3
- package/src/tiptap-editor/TipTapMenu/TipTapMenu.tsx +16 -24
- package/src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx +7 -4
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -4
- package/src/venue-map-sets/form/components/VenueMapControl.tsx +8 -3
- 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 +11 -3
- package/src/zone/form/components/ZoneRecurrencesControl.tsx +6 -2
- package/yarn.lock +127 -114
package/dist/table/MenuButton.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import Icon from '../static/Icon.js';
|
|
3
4
|
|
|
4
5
|
var MenuButton = function(param) {
|
|
5
|
-
var onClick = param.onClick, name = param.name, className = param.className, icon = param.icon, leftIcon = param.leftIcon, rightIcon = param.rightIcon;
|
|
6
|
+
var onClick = param.onClick, name = param.name, className = param.className, icon = param.icon, leftIcon = param.leftIcon, rightIcon = param.rightIcon, _param_iconWidth = param.iconWidth, iconWidth = _param_iconWidth === void 0 ? "12" : _param_iconWidth;
|
|
7
|
+
var iconComponent = icon ? /*#__PURE__*/ jsx(Icon, {
|
|
8
|
+
type: icon,
|
|
9
|
+
width: iconWidth
|
|
10
|
+
}) : null;
|
|
6
11
|
return /*#__PURE__*/ jsx(Fragment, {
|
|
7
12
|
children: /*#__PURE__*/ jsxs("button", {
|
|
8
13
|
type: "button",
|
|
@@ -12,12 +17,12 @@ var MenuButton = function(param) {
|
|
|
12
17
|
},
|
|
13
18
|
className: clsx(className),
|
|
14
19
|
children: [
|
|
15
|
-
leftIcon &&
|
|
20
|
+
leftIcon && iconComponent,
|
|
16
21
|
/*#__PURE__*/ jsx("span", {
|
|
17
22
|
className: clsx(icon && leftIcon && "ml-3", icon && rightIcon && "mr-3"),
|
|
18
23
|
children: name
|
|
19
24
|
}),
|
|
20
|
-
rightIcon &&
|
|
25
|
+
rightIcon && iconComponent
|
|
21
26
|
]
|
|
22
27
|
})
|
|
23
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/PaginationHelperComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,MAAM,mEAAmE,CAAC;
|
|
1
|
+
{"version":3,"file":"PaginationHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/PaginationHelperComponent.tsx"],"names":[],"mappings":"AAIA,OAAO,qBAAqB,MAAM,mEAAmE,CAAC;AAMtG,MAAM,WAAW,8BAA8B;IAC7C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED;;;;GAIG;AACH,iBAAS,yBAAyB,CAAC,EACjC,SAAS,EACT,cAAc,EACd,qBAA4B,GAC7B,EAAE,8BAA8B,2CAoFhC;AAED,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -5,7 +5,8 @@ import PageItem, { Ellipsis } from 'react-bootstrap/PageItem';
|
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import PaginationService from '@licklist/plugins/dist/services/Table/PaginationService';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
|
-
import
|
|
8
|
+
import '../static/index.js';
|
|
9
|
+
import Icon from '../static/Icon.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* PaginationHelperComponent
|
|
@@ -61,8 +62,9 @@ import { FaArrowLeft, FaArrowRight } from 'react-icons/fa';
|
|
|
61
62
|
onClick: function() {
|
|
62
63
|
return onPageChange(paginationService.getPrevPage());
|
|
63
64
|
},
|
|
64
|
-
children: /*#__PURE__*/ jsx(
|
|
65
|
-
|
|
65
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
66
|
+
type: "arrow-left",
|
|
67
|
+
width: "0.9rem",
|
|
66
68
|
color: "black"
|
|
67
69
|
})
|
|
68
70
|
}),
|
|
@@ -89,8 +91,9 @@ import { FaArrowLeft, FaArrowRight } from 'react-icons/fa';
|
|
|
89
91
|
onClick: function() {
|
|
90
92
|
return onPageChange(paginationService.getNextPage());
|
|
91
93
|
},
|
|
92
|
-
children: /*#__PURE__*/ jsx(
|
|
93
|
-
|
|
94
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
95
|
+
type: "arrow-right",
|
|
96
|
+
width: "0.9rem",
|
|
94
97
|
color: "black"
|
|
95
98
|
})
|
|
96
99
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TipTapMenu.d.ts","sourceRoot":"","sources":["../../../src/tiptap-editor/TipTapMenu/TipTapMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"TipTapMenu.d.ts","sourceRoot":"","sources":["../../../src/tiptap-editor/TipTapMenu/TipTapMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAgBvC,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,cAAc,2CAuHzE"}
|
|
@@ -2,7 +2,6 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { sample } from 'lodash';
|
|
3
3
|
import { Row } from 'react-bootstrap';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { FaSmile, FaList, FaListOl, FaTasks, FaUndoAlt, FaRedoAlt } from 'react-icons/fa';
|
|
6
5
|
import { ReactComponent as SvgBold } from '../../assets/editor/bold.svg.js';
|
|
7
6
|
import { ReactComponent as SvgItalic } from '../../assets/editor/italic.svg.js';
|
|
8
7
|
import { ReactComponent as SvgStrikethrough } from '../../assets/editor/strikethrough.svg.js';
|
|
@@ -28,7 +27,7 @@ function TipTapMenu(param) {
|
|
|
28
27
|
return editor.chain().focus().toggleBold().run();
|
|
29
28
|
},
|
|
30
29
|
type: "Bold",
|
|
31
|
-
|
|
30
|
+
customIcon: /*#__PURE__*/ jsx(SvgBold, {}),
|
|
32
31
|
isActive: editor.isActive("bold")
|
|
33
32
|
}),
|
|
34
33
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
@@ -36,7 +35,7 @@ function TipTapMenu(param) {
|
|
|
36
35
|
return editor.chain().focus().toggleItalic().run();
|
|
37
36
|
},
|
|
38
37
|
type: "Italic",
|
|
39
|
-
|
|
38
|
+
customIcon: /*#__PURE__*/ jsx(SvgItalic, {}),
|
|
40
39
|
isActive: editor.isActive("italic")
|
|
41
40
|
}),
|
|
42
41
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
@@ -44,7 +43,7 @@ function TipTapMenu(param) {
|
|
|
44
43
|
return editor.chain().focus().toggleStrike().run();
|
|
45
44
|
},
|
|
46
45
|
type: "Strike",
|
|
47
|
-
|
|
46
|
+
customIcon: /*#__PURE__*/ jsx(SvgStrikethrough, {}),
|
|
48
47
|
isActive: editor.isActive("strike")
|
|
49
48
|
}),
|
|
50
49
|
withEmoji && /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -64,7 +63,7 @@ function TipTapMenu(param) {
|
|
|
64
63
|
])).run();
|
|
65
64
|
},
|
|
66
65
|
type: "Emoji",
|
|
67
|
-
|
|
66
|
+
iconName: "smile"
|
|
68
67
|
})
|
|
69
68
|
]
|
|
70
69
|
}),
|
|
@@ -78,7 +77,7 @@ function TipTapMenu(param) {
|
|
|
78
77
|
}).run();
|
|
79
78
|
},
|
|
80
79
|
type: "Heading 1",
|
|
81
|
-
|
|
80
|
+
customIcon: /*#__PURE__*/ jsx(SvgH1, {}),
|
|
82
81
|
isActive: editor.isActive("heading", {
|
|
83
82
|
level: 1
|
|
84
83
|
})
|
|
@@ -90,7 +89,7 @@ function TipTapMenu(param) {
|
|
|
90
89
|
}).run();
|
|
91
90
|
},
|
|
92
91
|
type: "Heading 2",
|
|
93
|
-
|
|
92
|
+
customIcon: /*#__PURE__*/ jsx(SvgH2, {}),
|
|
94
93
|
isActive: editor.isActive("heading", {
|
|
95
94
|
level: 2
|
|
96
95
|
})
|
|
@@ -100,7 +99,7 @@ function TipTapMenu(param) {
|
|
|
100
99
|
return editor.chain().focus().setParagraph().run();
|
|
101
100
|
},
|
|
102
101
|
type: "Paragraph",
|
|
103
|
-
|
|
102
|
+
customIcon: /*#__PURE__*/ jsx(SvgParagraph, {}),
|
|
104
103
|
isActive: editor.isActive("paragraph")
|
|
105
104
|
}),
|
|
106
105
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
@@ -108,7 +107,7 @@ function TipTapMenu(param) {
|
|
|
108
107
|
return editor.chain().focus().toggleOrderedList().run();
|
|
109
108
|
},
|
|
110
109
|
type: "Bullet list",
|
|
111
|
-
|
|
110
|
+
iconName: "list",
|
|
112
111
|
isActive: editor.isActive("bulletList")
|
|
113
112
|
}),
|
|
114
113
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
@@ -116,7 +115,7 @@ function TipTapMenu(param) {
|
|
|
116
115
|
return editor.chain().focus().toggleBulletList().run();
|
|
117
116
|
},
|
|
118
117
|
type: "Ordered list",
|
|
119
|
-
|
|
118
|
+
iconName: "list-ol",
|
|
120
119
|
isActive: editor.isActive("orderedList")
|
|
121
120
|
}),
|
|
122
121
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
@@ -124,7 +123,7 @@ function TipTapMenu(param) {
|
|
|
124
123
|
return editor.commands.toggleTaskList();
|
|
125
124
|
},
|
|
126
125
|
type: "Task list",
|
|
127
|
-
|
|
126
|
+
iconName: "tasks",
|
|
128
127
|
isActive: editor.isActive("taskList")
|
|
129
128
|
}),
|
|
130
129
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -135,7 +134,7 @@ function TipTapMenu(param) {
|
|
|
135
134
|
return editor.chain().focus().toggleBlockquote().run();
|
|
136
135
|
},
|
|
137
136
|
type: "Blockquote",
|
|
138
|
-
|
|
137
|
+
customIcon: /*#__PURE__*/ jsx(SvgDoubleQuotesL, {}),
|
|
139
138
|
isActive: editor.isActive("blockquote")
|
|
140
139
|
}),
|
|
141
140
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
@@ -143,7 +142,7 @@ function TipTapMenu(param) {
|
|
|
143
142
|
return editor.chain().focus().setHorizontalRule().run();
|
|
144
143
|
},
|
|
145
144
|
type: "Horizontal Rule",
|
|
146
|
-
|
|
145
|
+
customIcon: /*#__PURE__*/ jsx(SvgSeparator, {})
|
|
147
146
|
}),
|
|
148
147
|
/*#__PURE__*/ jsx("div", {
|
|
149
148
|
className: "divider"
|
|
@@ -153,14 +152,14 @@ function TipTapMenu(param) {
|
|
|
153
152
|
return editor.chain().focus().setHardBreak().run();
|
|
154
153
|
},
|
|
155
154
|
type: "Hard Break",
|
|
156
|
-
|
|
155
|
+
customIcon: /*#__PURE__*/ jsx(SvgTextWrap, {})
|
|
157
156
|
}),
|
|
158
157
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
159
158
|
onClick: function() {
|
|
160
159
|
return editor.chain().focus().unsetAllMarks().clearNodes().run();
|
|
161
160
|
},
|
|
162
161
|
type: "Clear Format",
|
|
163
|
-
|
|
162
|
+
customIcon: /*#__PURE__*/ jsx(SvgFormatClear, {})
|
|
164
163
|
}),
|
|
165
164
|
/*#__PURE__*/ jsx("div", {
|
|
166
165
|
className: "divider"
|
|
@@ -170,14 +169,14 @@ function TipTapMenu(param) {
|
|
|
170
169
|
return editor.chain().focus().undo().run();
|
|
171
170
|
},
|
|
172
171
|
type: "Undo",
|
|
173
|
-
|
|
172
|
+
iconName: "undo-alt"
|
|
174
173
|
}),
|
|
175
174
|
/*#__PURE__*/ jsx(TipTapMenuItem, {
|
|
176
175
|
onClick: function() {
|
|
177
176
|
return editor.chain().focus().redo().run();
|
|
178
177
|
},
|
|
179
178
|
type: "Redo",
|
|
180
|
-
|
|
179
|
+
iconName: "redo-alt"
|
|
181
180
|
})
|
|
182
181
|
]
|
|
183
182
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
1
|
interface TipTapMenuItemProps {
|
|
3
2
|
onClick: () => void;
|
|
4
3
|
type: string;
|
|
5
|
-
|
|
4
|
+
iconName?: string;
|
|
5
|
+
customIcon?: React.ReactElement;
|
|
6
6
|
isActive?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const TipTapMenuItem: ({ onClick, type,
|
|
8
|
+
export declare const TipTapMenuItem: ({ onClick, type, iconName, customIcon, isActive, }: TipTapMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default TipTapMenuItem;
|
|
10
10
|
//# sourceMappingURL=TipTapMenuItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TipTapMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TipTapMenuItem.d.ts","sourceRoot":"","sources":["../../../../src/tiptap-editor/TipTapMenu/components/TipTapMenuItem.tsx"],"names":[],"mappings":"AAMA,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,uDAMxB,mBAAmB,4CAoBrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -2,9 +2,11 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap';
|
|
3
3
|
import { useId } from '@react-aria/utils';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import '../../../static/index.js';
|
|
6
|
+
import Icon from '../../../static/Icon.js';
|
|
5
7
|
|
|
6
8
|
var TipTapMenuItem = function(param) {
|
|
7
|
-
var onClick = param.onClick, type = param.type,
|
|
9
|
+
var onClick = param.onClick, type = param.type, iconName = param.iconName, customIcon = param.customIcon, isActive = param.isActive;
|
|
8
10
|
var toltipId = useId();
|
|
9
11
|
return /*#__PURE__*/ jsx(OverlayTrigger, {
|
|
10
12
|
placement: "top",
|
|
@@ -22,7 +24,11 @@ var TipTapMenuItem = function(param) {
|
|
|
22
24
|
className: clsx("icon-btn", isActive && "icon-btn-active"),
|
|
23
25
|
onClick: onClick,
|
|
24
26
|
onKeyPress: function() {},
|
|
25
|
-
children:
|
|
27
|
+
children: customIcon || /*#__PURE__*/ jsx(Icon, {
|
|
28
|
+
type: iconName,
|
|
29
|
+
height: "1rem",
|
|
30
|
+
color: "black"
|
|
31
|
+
})
|
|
26
32
|
})
|
|
27
33
|
});
|
|
28
34
|
};
|
|
@@ -5,9 +5,10 @@ import { useId } from '@react-aria/utils';
|
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
8
|
-
import { FaEye, FaTrashAlt, FaEllipsisH } from 'react-icons/fa';
|
|
9
8
|
import { MenuButton } from '../../table/MenuButton.js';
|
|
10
9
|
import { ConfirmModal } from '../../modals/confirmation/ConfirmModal.js';
|
|
10
|
+
import '../../static/index.js';
|
|
11
|
+
import Icon from '../../static/Icon.js';
|
|
11
12
|
|
|
12
13
|
function _array_like_to_array(arr, len) {
|
|
13
14
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -82,9 +83,10 @@ function VenueMapSetCard(param) {
|
|
|
82
83
|
children: [
|
|
83
84
|
/*#__PURE__*/ jsx("div", {
|
|
84
85
|
className: "venue-map-set-card-menu-eye-container",
|
|
85
|
-
children: /*#__PURE__*/ jsx(
|
|
86
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
87
|
+
type: "eye",
|
|
86
88
|
color: "#0E8CE2",
|
|
87
|
-
|
|
89
|
+
width: "20"
|
|
88
90
|
})
|
|
89
91
|
}),
|
|
90
92
|
/*#__PURE__*/ jsx(OverlayTrigger, {
|
|
@@ -111,9 +113,7 @@ function VenueMapSetCard(param) {
|
|
|
111
113
|
confirm(onRemove);
|
|
112
114
|
},
|
|
113
115
|
name: t("remove"),
|
|
114
|
-
icon:
|
|
115
|
-
size: 12
|
|
116
|
-
}),
|
|
116
|
+
icon: "trash-alt",
|
|
117
117
|
className: "venue-map-set-card-menu-item-text d-flex w-100 align-items-center",
|
|
118
118
|
rightIcon: true
|
|
119
119
|
});
|
|
@@ -130,7 +130,9 @@ function VenueMapSetCard(param) {
|
|
|
130
130
|
e.stopPropagation();
|
|
131
131
|
setIsOverlayVisible(true);
|
|
132
132
|
},
|
|
133
|
-
children: /*#__PURE__*/ jsx(
|
|
133
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
134
|
+
type: "ellipsis-h"
|
|
135
|
+
})
|
|
134
136
|
})
|
|
135
137
|
})
|
|
136
138
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapControl.d.ts","sourceRoot":"","sources":["../../../../src/venue-map-sets/form/components/VenueMapControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,KAAK,4BAA4B,GAAG,gBAAgB,GAAG;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,KAAK,+BAA+B,GAAG,gBAAgB,GAAG;IACxD,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,4BAA4B,GAC5B,+BAA+B,CAAC;AAEpC,eAAO,MAAM,eAAe,4EAQzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"VenueMapControl.d.ts","sourceRoot":"","sources":["../../../../src/venue-map-sets/form/components/VenueMapControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,KAAK,4BAA4B,GAAG,gBAAgB,GAAG;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,KAAK,+BAA+B,GAAG,gBAAgB,GAAG;IACxD,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,4BAA4B,GAC5B,+BAA+B,CAAC;AAEpC,eAAO,MAAM,eAAe,4EAQzB,oBAAoB,4CAyCtB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import
|
|
3
|
+
import Icon from '../../../static/Icon.js';
|
|
4
4
|
|
|
5
5
|
var VenueMapControl = function(param) {
|
|
6
6
|
var onClick = param.onClick, disabled = param.disabled, showMenu = param.showMenu, title = param.title, onMenuClick = param.onMenuClick, isInvalid = param.isInvalid, errors = param.errors;
|
|
@@ -15,8 +15,10 @@ var VenueMapControl = function(param) {
|
|
|
15
15
|
/*#__PURE__*/ jsxs("div", {
|
|
16
16
|
className: "overflow-hidden name-wrapper w-100",
|
|
17
17
|
children: [
|
|
18
|
-
!showMenu && /*#__PURE__*/ jsx(
|
|
19
|
-
|
|
18
|
+
!showMenu && /*#__PURE__*/ jsx(Icon, {
|
|
19
|
+
type: "plus",
|
|
20
|
+
height: "1.25rem",
|
|
21
|
+
width: "1.25rem",
|
|
20
22
|
className: "rounded venue-map-zone-item-icon"
|
|
21
23
|
}),
|
|
22
24
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -36,9 +38,10 @@ var VenueMapControl = function(param) {
|
|
|
36
38
|
onKeyDown: function(e) {
|
|
37
39
|
return e.stopPropagation();
|
|
38
40
|
},
|
|
39
|
-
children: /*#__PURE__*/ jsx(
|
|
41
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
42
|
+
type: "ellipsis-h",
|
|
40
43
|
color: "#0E8CE2",
|
|
41
|
-
|
|
44
|
+
height: "1rem"
|
|
42
45
|
})
|
|
43
46
|
})
|
|
44
47
|
]
|
|
@@ -4,8 +4,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useFormContext } from 'react-hook-form';
|
|
6
6
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
7
|
-
import { FaTrashAlt } from 'react-icons/fa';
|
|
8
7
|
import { ConfirmModal } from '../../../modals/confirmation/ConfirmModal.js';
|
|
8
|
+
import Icon from '../../../static/Icon.js';
|
|
9
9
|
import { VenueMapImageControl } from './VenueMapImageControl.js';
|
|
10
10
|
import { getVenueMapsRequiredKeys } from '../utils/index.js';
|
|
11
11
|
|
|
@@ -332,8 +332,9 @@ var VenueMapModal = function(param) {
|
|
|
332
332
|
variant: "outline-danger",
|
|
333
333
|
className: "d-flex align-items-center",
|
|
334
334
|
children: [
|
|
335
|
-
/*#__PURE__*/ jsx(
|
|
336
|
-
|
|
335
|
+
/*#__PURE__*/ jsx(Icon, {
|
|
336
|
+
type: "trash",
|
|
337
|
+
height: "1rem"
|
|
337
338
|
}),
|
|
338
339
|
"\xa0",
|
|
339
340
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -5,9 +5,10 @@ import { useTranslation } from 'react-i18next';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useId } from '@react-aria/utils';
|
|
7
7
|
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
8
|
-
import { FaEye, FaTrashAlt, FaEllipsisH } from 'react-icons/fa';
|
|
9
8
|
import { ConfirmModal } from '../../modals/confirmation/ConfirmModal.js';
|
|
9
|
+
import '../../static/index.js';
|
|
10
10
|
import { MenuButton } from '../../table/MenuButton.js';
|
|
11
|
+
import Icon from '../../static/Icon.js';
|
|
11
12
|
|
|
12
13
|
function _array_like_to_array(arr, len) {
|
|
13
14
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -83,9 +84,10 @@ function ZoneCard(param) {
|
|
|
83
84
|
children: [
|
|
84
85
|
/*#__PURE__*/ jsx("div", {
|
|
85
86
|
className: "zone-card-menu-eye-container",
|
|
86
|
-
children: /*#__PURE__*/ jsx(
|
|
87
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
88
|
+
type: "eye",
|
|
87
89
|
color: "#0E8CE2",
|
|
88
|
-
|
|
90
|
+
width: "20"
|
|
89
91
|
})
|
|
90
92
|
}),
|
|
91
93
|
/*#__PURE__*/ jsx(OverlayTrigger, {
|
|
@@ -112,9 +114,7 @@ function ZoneCard(param) {
|
|
|
112
114
|
confirm(onRemove);
|
|
113
115
|
},
|
|
114
116
|
name: t("remove"),
|
|
115
|
-
icon:
|
|
116
|
-
size: 12
|
|
117
|
-
}),
|
|
117
|
+
icon: "trash-alt",
|
|
118
118
|
className: "zone-card-menu-item-text d-flex w-100 align-items-center",
|
|
119
119
|
rightIcon: true
|
|
120
120
|
});
|
|
@@ -131,7 +131,9 @@ function ZoneCard(param) {
|
|
|
131
131
|
e.stopPropagation();
|
|
132
132
|
setIsOverlayVisible(true);
|
|
133
133
|
},
|
|
134
|
-
children: /*#__PURE__*/ jsx(
|
|
134
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
135
|
+
type: "ellipsis-h"
|
|
136
|
+
})
|
|
135
137
|
})
|
|
136
138
|
})
|
|
137
139
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoneRecurrenceControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/ZoneRecurrenceControl.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAC;AAMlG,MAAM,WAAW,0BAA0B;IACzC,cAAc,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,eAAO,MAAM,qBAAqB,gCAG/B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ZoneRecurrenceControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/ZoneRecurrenceControl.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAC;AAMlG,MAAM,WAAW,0BAA0B;IACzC,cAAc,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,eAAO,MAAM,qBAAqB,gCAG/B,0BAA0B,4CAkE5B,CAAC"}
|
|
@@ -4,7 +4,8 @@ import { useIntl } from 'react-intl';
|
|
|
4
4
|
import RRule from 'rrule';
|
|
5
5
|
import { useSortable } from '@dnd-kit/sortable';
|
|
6
6
|
import { CSS } from '@dnd-kit/utilities';
|
|
7
|
-
import
|
|
7
|
+
import '../../../static/index.js';
|
|
8
|
+
import Icon from '../../../static/Icon.js';
|
|
8
9
|
|
|
9
10
|
function _define_property(obj, key, value) {
|
|
10
11
|
if (key in obj) {
|
|
@@ -85,8 +86,9 @@ var ZoneRecurrenceControl = function(param) {
|
|
|
85
86
|
/*#__PURE__*/ jsxs("span", {
|
|
86
87
|
className: "d-flex flex-row align-items-center",
|
|
87
88
|
children: [
|
|
88
|
-
/*#__PURE__*/ jsx(
|
|
89
|
-
|
|
89
|
+
/*#__PURE__*/ jsx(Icon, {
|
|
90
|
+
type: "calendar",
|
|
91
|
+
height: "1rem",
|
|
90
92
|
className: "zone-recurrence-icon-calendar"
|
|
91
93
|
}),
|
|
92
94
|
/*#__PURE__*/ jsxs("span", {
|
|
@@ -115,8 +117,9 @@ var ZoneRecurrenceControl = function(param) {
|
|
|
115
117
|
onKeyDown: function() {
|
|
116
118
|
return onEdit(zoneRecurrence);
|
|
117
119
|
},
|
|
118
|
-
children: /*#__PURE__*/ jsx(
|
|
119
|
-
|
|
120
|
+
children: /*#__PURE__*/ jsx(Icon, {
|
|
121
|
+
type: "ellipsis-h",
|
|
122
|
+
height: "1rem",
|
|
120
123
|
className: "zone-recurrence-icon-more"
|
|
121
124
|
})
|
|
122
125
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoneRecurrencesControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/ZoneRecurrencesControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAC;AAMlG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAWtF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;CAC7C;AAED,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBAEhC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"ZoneRecurrencesControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/ZoneRecurrencesControl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAC;AAMlG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAWtF,MAAM,WAAW,4BAA4B;IAC3C,eAAe,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;CAC7C;AAED,KAAK,0BAA0B,GAAG;IAChC,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,mBAEhC,0BAA0B,4CAuM5B,CAAC"}
|
|
@@ -7,11 +7,12 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
import { useClickAway } from 'react-use';
|
|
8
8
|
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
|
|
9
9
|
import { DndContext } from '@dnd-kit/core';
|
|
10
|
-
import { FaPlusCircle } from 'react-icons/fa';
|
|
11
10
|
import { CONFIRM_MODAL_ACTIONS } from '../../../modals/confirmation/ConfirmModal.js';
|
|
11
|
+
import '../../../static/index.js';
|
|
12
12
|
import { RecurringDatePickerInput } from '../../../recurring-date-picker-input/RecurringDatePickerInput.js';
|
|
13
13
|
import { ZoneRecurrenceControl } from './ZoneRecurrenceControl.js';
|
|
14
14
|
import { sameWidthPopperModifier } from '../../../product-set/control/DateAndRecurrenceInput.js';
|
|
15
|
+
import Icon from '../../../static/Icon.js';
|
|
15
16
|
|
|
16
17
|
function _array_like_to_array(arr, len) {
|
|
17
18
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -388,8 +389,9 @@ var ZoneRecurrencesControl = function(param) {
|
|
|
388
389
|
onClick: handleOnAdd,
|
|
389
390
|
onKeyDown: handleOnAdd,
|
|
390
391
|
children: [
|
|
391
|
-
/*#__PURE__*/ jsx(
|
|
392
|
-
|
|
392
|
+
/*#__PURE__*/ jsx(Icon, {
|
|
393
|
+
type: "plus-circle",
|
|
394
|
+
height: "1rem",
|
|
393
395
|
className: "zone-recurrence-icon-add mr-2"
|
|
394
396
|
}),
|
|
395
397
|
t("addDates")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9-dev.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@licklist/core": "0.28.3-dev.5",
|
|
46
|
-
"@licklist/eslint-config": "0.5.
|
|
46
|
+
"@licklist/eslint-config": "0.5.4",
|
|
47
47
|
"@licklist/plugins": "0.30.4-dev.3",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "1.26.0",
|
|
@@ -60,9 +60,11 @@
|
|
|
60
60
|
"@dnd-kit/sortable": "4.0.0",
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
|
+
"@fortawesome/free-brands-svg-icons": "5.15.2",
|
|
63
64
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
65
|
+
"@fortawesome/react-fontawesome": "0.1.9",
|
|
64
66
|
"@licklist/core": "0.28.3-dev.5",
|
|
65
|
-
"@licklist/eslint-config": "0.5.
|
|
67
|
+
"@licklist/eslint-config": "0.5.4",
|
|
66
68
|
"@licklist/plugins": "0.30.4-dev.3",
|
|
67
69
|
"@mdx-js/react": "1.6.22",
|
|
68
70
|
"@popperjs/core": "2.11.8",
|
|
@@ -111,7 +113,6 @@
|
|
|
111
113
|
"react-highlighter": "0.4.3",
|
|
112
114
|
"react-hook-form": "7.52.2",
|
|
113
115
|
"react-i18next": "11.8.8",
|
|
114
|
-
"react-icons": "5.3.0",
|
|
115
116
|
"react-intl": "6.6.8",
|
|
116
117
|
"react-konva": "17.0.2-6",
|
|
117
118
|
"react-loader": "2.4.7",
|
|
@@ -4,8 +4,8 @@ import { useTranslation } from "react-i18next";
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { useId } from "@react-aria/utils";
|
|
6
6
|
import { HasPermissionProp } from "@licklist/plugins/dist/types/permission/Permission";
|
|
7
|
-
import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
|
|
8
7
|
import { ConfirmModal } from "../../modals";
|
|
8
|
+
import { Icon } from "../../static";
|
|
9
9
|
import { MenuButton } from "../../table/MenuButton";
|
|
10
10
|
|
|
11
11
|
export interface AffiliateCardProps extends HasPermissionProp {
|
|
@@ -57,7 +57,7 @@ export function AffiliateCard({
|
|
|
57
57
|
)}
|
|
58
58
|
<div className={["d-flex", isHeader ? "invisible" : ""].join(" ")}>
|
|
59
59
|
<div className="affiliate-card-menu-eye-container">
|
|
60
|
-
<
|
|
60
|
+
<Icon type="eye" color="#0E8CE2" width="20" />
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
63
|
<OverlayTrigger
|
|
@@ -89,7 +89,7 @@ export function AffiliateCard({
|
|
|
89
89
|
confirm(onRemove);
|
|
90
90
|
}}
|
|
91
91
|
name={t("remove")}
|
|
92
|
-
icon=
|
|
92
|
+
icon="trash-alt"
|
|
93
93
|
className="affiliate-card-menu-item-text d-flex w-100 align-items-center"
|
|
94
94
|
rightIcon
|
|
95
95
|
/>
|
|
@@ -111,7 +111,7 @@ export function AffiliateCard({
|
|
|
111
111
|
setIsOverlayVisible(true);
|
|
112
112
|
}}
|
|
113
113
|
>
|
|
114
|
-
<
|
|
114
|
+
<Icon type="ellipsis-h" />
|
|
115
115
|
</button>
|
|
116
116
|
</OverlayTrigger>
|
|
117
117
|
</div>
|
|
@@ -2,7 +2,7 @@ import { Button } from "react-bootstrap";
|
|
|
2
2
|
import { useTranslation } from "react-i18next";
|
|
3
3
|
import RouteService from "@licklist/plugins/dist/services/Route/RouteService";
|
|
4
4
|
import useUser from "@licklist/plugins/dist/context/user/hooks/useUser";
|
|
5
|
-
import {
|
|
5
|
+
import { Icon } from "../../static";
|
|
6
6
|
|
|
7
7
|
export const AccessDenied = () => {
|
|
8
8
|
const { t } = useTranslation("App");
|
|
@@ -21,7 +21,7 @@ export const AccessDenied = () => {
|
|
|
21
21
|
<div className="d-flex align-items-center justify-content-center flex-column text-center access-denied h-100">
|
|
22
22
|
<div className="col-8">
|
|
23
23
|
<div className="icon-wrapper mb-5">
|
|
24
|
-
<
|
|
24
|
+
<Icon type="lock" width="5rem" height="5rem" />
|
|
25
25
|
</div>
|
|
26
26
|
<h3 className="mb-3">{t("accessDenied")}</h3>
|
|
27
27
|
<h6 className="mb-3">{t("youDontHavePermissions")}</h6>
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Form,
|
|
8
8
|
} from "react-bootstrap";
|
|
9
9
|
import clsx from "clsx";
|
|
10
|
-
import
|
|
10
|
+
import Icon from "../static/Icon";
|
|
11
11
|
|
|
12
12
|
export type CollapsibleInputGroupProps = {
|
|
13
13
|
label: ReactNode;
|
|
@@ -27,7 +27,8 @@ export function CollapsibleInputGroup({
|
|
|
27
27
|
error,
|
|
28
28
|
}: CollapsibleInputGroupProps) {
|
|
29
29
|
const currentEventKey = useContext(AccordionContext);
|
|
30
|
-
|
|
30
|
+
const accordionIcon =
|
|
31
|
+
currentEventKey === eventKey ? "chevron-up" : "chevron-down";
|
|
31
32
|
const isInvalid = Boolean(error);
|
|
32
33
|
|
|
33
34
|
return (
|
|
@@ -41,11 +42,7 @@ export function CollapsibleInputGroup({
|
|
|
41
42
|
>
|
|
42
43
|
<div className="accordion-form-control-header">
|
|
43
44
|
<h5 className="mb-0 pl-3">{label}</h5>
|
|
44
|
-
{
|
|
45
|
-
<FaChevronUp size={20} />
|
|
46
|
-
) : (
|
|
47
|
-
<FaChevronDown size={20} />
|
|
48
|
-
)}
|
|
45
|
+
<Icon type={accordionIcon} height="1.25rem" />
|
|
49
46
|
</div>
|
|
50
47
|
<Collapse in={currentEventKey !== eventKey}>
|
|
51
48
|
<div className="pl-3">{description}</div>
|