@licklist/design 0.70.6-dev.0 → 0.70.6
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/form/AffiliateForm.d.ts.map +1 -1
- package/dist/assets/iframe/available.svg +4 -4
- package/dist/assets/iframe/available.svg.js +18 -16
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/availability-indicator/AvailabilityIndicator.d.ts +2 -4
- package/dist/availability-indicator/AvailabilityIndicator.d.ts.map +1 -1
- package/dist/availability-indicator/AvailabilityIndicator.js +18 -112
- package/dist/calendar/Calendar.d.ts +0 -2
- package/dist/calendar/Calendar.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts +2 -2
- package/dist/calendar/components/CalendarDates/CalendarDates.d.ts.map +1 -1
- package/dist/calendar/components/CalendarDates/CalendarDates.js +2 -3
- package/dist/calendar/utils/index.d.ts +2 -8
- package/dist/calendar/utils/index.d.ts.map +1 -1
- package/dist/calendar/utils/index.js +21 -9
- package/dist/date-time-button/DateContent.d.ts.map +1 -1
- package/dist/date-time-button/DateContent.js +3 -3
- package/dist/date-time-button/DateTimeButton.d.ts +1 -3
- package/dist/date-time-button/DateTimeButton.d.ts.map +1 -1
- package/dist/date-time-button/DateTimeButton.js +3 -5
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -3
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +1 -0
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +0 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +4 -11
- package/dist/iframe/activity-card/ActivityCard.d.ts +1 -3
- package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
- package/dist/iframe/activity-card/ActivityCard.js +3 -5
- package/dist/iframe/event/ticket-description/TicketDescription.d.ts.map +1 -1
- package/dist/iframe/event/ticket-description/TicketDescription.js +32 -43
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +12 -25
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +5 -4
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +2 -48
- package/dist/product-set/form/ProductSetForm.d.ts +1 -4
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductZonesControl.js +2 -0
- package/dist/product-set/form/ProductsControl.js +0 -1
- package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/SubProductsControl.js +3 -0
- package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
- package/dist/product-set/form/VenueMapsControl.js +3 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +0 -3
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +0 -3
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +0 -3
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +0 -21
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
- package/dist/setting/admin/PaymentFeeForm.js +1 -16
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +3 -11
- package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +4 -10
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +0 -3
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +0 -3
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +0 -3
- package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
- package/dist/styles/date-time-button/DateTimeButton.scss +1 -2
- package/dist/styles/iframe-events/TicketDescription.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/tiptap-editor/TipTapEditor.d.ts +1 -2
- package/dist/tiptap-editor/TipTapEditor.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapEditor.js +2 -32
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +0 -3
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +0 -3
- package/package.json +6 -8
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/assets/iframe/available.svg +4 -4
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/availability-indicator/AvailabilityIndicator.tsx +17 -92
- package/src/calendar/Calendar.tsx +0 -2
- package/src/calendar/components/CalendarDates/CalendarDates.tsx +0 -3
- package/src/calendar/utils/index.ts +26 -17
- package/src/date-time-button/DateContent.tsx +3 -3
- package/src/date-time-button/DateTimeButton.tsx +3 -7
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
- package/src/events/event-venue-map/EventVenueMap.tsx +0 -1
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +1 -5
- package/src/iframe/activity-card/ActivityCard.tsx +2 -15
- package/src/iframe/event/ticket-description/TicketDescription.tsx +22 -35
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/iframe/ryft/RyftPaymentForm.tsx +3 -14
- package/src/iframe/ryft/utils/ryft-form.ts +5 -6
- package/src/layout/DropDown.tsx +1 -1
- package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
- package/src/product-set/form/ProductSetForm.tsx +2 -6
- package/src/product-set/form/ProductZonesControl.tsx +4 -1
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/product-set/form/SubProductsControl.tsx +3 -0
- package/src/product-set/form/VenueMapsControl.tsx +3 -0
- package/src/product-set/product/ProductControl.tsx +1 -0
- package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
- package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
- package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
- package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
- package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
- package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
- package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
- package/src/resource/form/components/CapacityControl.tsx +0 -1
- package/src/resource/form/components/SortControl.tsx +0 -1
- package/src/sales/booking/results/components/ResultCard.tsx +2 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
- package/src/setting/admin/PaymentFeeForm.tsx +0 -5
- package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
- package/src/snippet/snippet-template/preview/Preview.tsx +5 -13
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- package/src/static/CurrencyNumberInput.tsx +0 -1
- package/src/static/form-number-input/FormNumberInput.tsx +0 -1
- package/src/static/number-input/NumberInput.tsx +0 -1
- package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
- package/src/styles/date-time-button/DateTimeButton.scss +1 -2
- package/src/styles/iframe-events/TicketDescription.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +3 -1
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/tiptap-editor/TipTapEditor.tsx +1 -8
- package/src/zone/form/components/GameDurationControl.tsx +0 -1
- package/src/zone/form/components/SortControl.tsx +0 -1
- package/yarn.lock +18 -34
|
@@ -27,7 +27,6 @@ export const CapacityControl = ({ isLoading }: CapacityControlProps) => {
|
|
|
27
27
|
required: true,
|
|
28
28
|
min: 1,
|
|
29
29
|
})}
|
|
30
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
31
30
|
placeholder={t('Design:capacity')}
|
|
32
31
|
isInvalid={Boolean(errors.capacity)}
|
|
33
32
|
disabled={isLoading}
|
|
@@ -179,7 +179,6 @@ export const CouponFormControl = ({
|
|
|
179
179
|
<Form.Label>{t('Design:discount')}</Form.Label>
|
|
180
180
|
<Form.Control
|
|
181
181
|
type='number'
|
|
182
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
183
182
|
isInvalid={errors.discount !== undefined}
|
|
184
183
|
{...register('discount', {
|
|
185
184
|
required: t('Validation:fieldRequired', {
|
|
@@ -317,7 +316,6 @@ export const CouponFormControl = ({
|
|
|
317
316
|
<Form.Control
|
|
318
317
|
{...register('totalCoupons')}
|
|
319
318
|
type='number'
|
|
320
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
321
319
|
isInvalid={errors.totalCoupons !== undefined}
|
|
322
320
|
disabled={isLoading}
|
|
323
321
|
/>
|
|
@@ -332,7 +330,6 @@ export const CouponFormControl = ({
|
|
|
332
330
|
<Form.Control
|
|
333
331
|
type='number'
|
|
334
332
|
{...register('usesPerUser')}
|
|
335
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
336
333
|
disabled={isLoading}
|
|
337
334
|
/>
|
|
338
335
|
</Form.Group>
|
|
@@ -345,7 +342,6 @@ export const CouponFormControl = ({
|
|
|
345
342
|
<Form.Control
|
|
346
343
|
type='number'
|
|
347
344
|
{...register('useAgain')}
|
|
348
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
349
345
|
disabled={isLoading}
|
|
350
346
|
/>
|
|
351
347
|
<Form.Text className='text-muted'>
|
|
@@ -359,7 +355,6 @@ export const CouponFormControl = ({
|
|
|
359
355
|
<Form.Control
|
|
360
356
|
type='number'
|
|
361
357
|
{...register('usesPerUserDay')}
|
|
362
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
363
358
|
disabled={isLoading}
|
|
364
359
|
/>
|
|
365
360
|
<Form.Text className='text-muted'>
|
|
@@ -375,7 +370,6 @@ export const CouponFormControl = ({
|
|
|
375
370
|
<Form.Control
|
|
376
371
|
type='number'
|
|
377
372
|
{...register('minAmount')}
|
|
378
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
379
373
|
disabled={isLoading}
|
|
380
374
|
/>
|
|
381
375
|
<Form.Text className='text-muted'>
|
|
@@ -389,7 +383,6 @@ export const CouponFormControl = ({
|
|
|
389
383
|
<Form.Control
|
|
390
384
|
type='number'
|
|
391
385
|
{...register('maxAmount')}
|
|
392
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
393
386
|
disabled={isLoading}
|
|
394
387
|
/>
|
|
395
388
|
<Form.Text className='text-muted'>
|
|
@@ -74,7 +74,6 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
74
74
|
max={100}
|
|
75
75
|
step='1'
|
|
76
76
|
placeholder='0'
|
|
77
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
78
77
|
{...register('feeInPercent', {
|
|
79
78
|
validate: {
|
|
80
79
|
moreThan: (v) => (v ? v >= 0 : true),
|
|
@@ -130,7 +129,6 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
130
129
|
max={999999.99}
|
|
131
130
|
step='0.01'
|
|
132
131
|
placeholder='0,00'
|
|
133
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
134
132
|
isInvalid={Boolean(errors.minFeeInPounds)}
|
|
135
133
|
disabled={isLoading}
|
|
136
134
|
/>
|
|
@@ -176,7 +174,6 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
176
174
|
max={999999.99}
|
|
177
175
|
step='0.01'
|
|
178
176
|
placeholder='0,00'
|
|
179
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
180
177
|
isInvalid={Boolean(errors.maxFeeInPounds)}
|
|
181
178
|
disabled={isLoading}
|
|
182
179
|
/>
|
|
@@ -234,7 +231,6 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
234
231
|
max={100}
|
|
235
232
|
step='1'
|
|
236
233
|
placeholder='0'
|
|
237
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
238
234
|
isInvalid={Boolean(errors.vatInPercent)}
|
|
239
235
|
disabled={isLoading}
|
|
240
236
|
/>
|
|
@@ -280,7 +276,6 @@ export function PaymentFeeForm({ isLoading = false }: PaymentFeeFormProps) {
|
|
|
280
276
|
max={999999.99}
|
|
281
277
|
step='0.01'
|
|
282
278
|
placeholder='0,00'
|
|
283
|
-
onWheel={(event) => event.currentTarget.blur()}
|
|
284
279
|
isInvalid={Boolean(errors.fixedFee)}
|
|
285
280
|
disabled={isLoading}
|
|
286
281
|
/>
|
|
@@ -3,10 +3,9 @@ import { useTranslation } from 'react-i18next'
|
|
|
3
3
|
import { MemoryRouter } from 'react-router-dom'
|
|
4
4
|
import { Button } from 'react-bootstrap'
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from '@licklist/core/dist/DataMapper/Provider/
|
|
9
|
-
|
|
6
|
+
SNIPPET_TYPE_EVENT_LIST,
|
|
7
|
+
SNIPPET_TYPE_VENUE_MAP,
|
|
8
|
+
} from '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper'
|
|
10
9
|
import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
|
|
11
10
|
import { DateTime } from 'luxon'
|
|
12
11
|
import { Calendar, CalendarProps, defaultStartDay } from '../../../calendar'
|
|
@@ -29,7 +28,6 @@ import {
|
|
|
29
28
|
import { NumberInput } from '../../../iframe/order-process/components/CategoryProduct/components/NumberInput'
|
|
30
29
|
import { SnippetTemplateContext } from '../context/snippetTemplate'
|
|
31
30
|
|
|
32
|
-
|
|
33
31
|
const DEFAULT_IMAGE =
|
|
34
32
|
'https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&auto=format&fit=crop&w=687&q=80'
|
|
35
33
|
|
|
@@ -48,7 +46,7 @@ export function Preview({
|
|
|
48
46
|
|
|
49
47
|
const { setView } = useContext(SnippetTemplateViewContext)
|
|
50
48
|
const {
|
|
51
|
-
template: { type =
|
|
49
|
+
template: { type = SNIPPET_TYPE_EVENT_LIST },
|
|
52
50
|
} = useContext(SnippetTemplateContext)
|
|
53
51
|
|
|
54
52
|
const handleOnClick = (nextView: keyof typeof snippetTemplateViews) => {
|
|
@@ -194,7 +192,7 @@ export function Preview({
|
|
|
194
192
|
</div>
|
|
195
193
|
</SettingButton>
|
|
196
194
|
|
|
197
|
-
{providerHasMap && type ===
|
|
195
|
+
{providerHasMap && type === SNIPPET_TYPE_VENUE_MAP && (
|
|
198
196
|
<>
|
|
199
197
|
<div className='pt-4'>
|
|
200
198
|
<h4>{t('Calendar')}</h4>
|
|
@@ -309,7 +307,6 @@ export function Preview({
|
|
|
309
307
|
productCategoryId: 57,
|
|
310
308
|
productGroupId: null,
|
|
311
309
|
availableQuantity: 980,
|
|
312
|
-
zoneId: null,
|
|
313
310
|
name: 'Cofee',
|
|
314
311
|
description: '',
|
|
315
312
|
price: 15,
|
|
@@ -318,8 +315,6 @@ export function Preview({
|
|
|
318
315
|
maxQuantity: 15,
|
|
319
316
|
totalQuantity: 980,
|
|
320
317
|
type: 'sale' as const,
|
|
321
|
-
capacity: 0,
|
|
322
|
-
duration: 0,
|
|
323
318
|
weight: 0,
|
|
324
319
|
isAvailable: true,
|
|
325
320
|
isSoldOut: false,
|
|
@@ -338,7 +333,6 @@ export function Preview({
|
|
|
338
333
|
productCategoryId: 57,
|
|
339
334
|
productGroupId: null,
|
|
340
335
|
availableQuantity: 980,
|
|
341
|
-
zoneId: null,
|
|
342
336
|
name: 'Cofee 2',
|
|
343
337
|
description: '',
|
|
344
338
|
price: 15,
|
|
@@ -347,8 +341,6 @@ export function Preview({
|
|
|
347
341
|
maxQuantity: 15,
|
|
348
342
|
totalQuantity: 980,
|
|
349
343
|
type: 'sale' as const,
|
|
350
|
-
capacity: 0,
|
|
351
|
-
duration: 0,
|
|
352
344
|
weight: 0,
|
|
353
345
|
isAvailable: true,
|
|
354
346
|
isSoldOut: false,
|
|
@@ -33,7 +33,6 @@ export interface SortableTreeItemProps {
|
|
|
33
33
|
body: ReactNode
|
|
34
34
|
children?: ReactNode
|
|
35
35
|
preItem?: ReactNode
|
|
36
|
-
itemButton?: ReactNode
|
|
37
36
|
postItem?: ReactNode
|
|
38
37
|
sortableItems?: string[]
|
|
39
38
|
isExpanded?: boolean
|
|
@@ -83,7 +82,6 @@ export function SortableTreeItem({
|
|
|
83
82
|
secondaryBadge,
|
|
84
83
|
setIsExpanded,
|
|
85
84
|
isOverride,
|
|
86
|
-
itemButton,
|
|
87
85
|
}: SortableTreeItemProps) {
|
|
88
86
|
const [expanded, setExpanded] = useState(isExpanded)
|
|
89
87
|
const [isModalVisible, setIsModalVisible] = useState(isNewAdded)
|
|
@@ -289,13 +287,9 @@ export function SortableTreeItem({
|
|
|
289
287
|
className={clsx(
|
|
290
288
|
'sortable-tree-item-title',
|
|
291
289
|
modalLabel && 'sortable-tree-product-set-element-title',
|
|
292
|
-
'd-flex justify-content-between',
|
|
293
290
|
)}
|
|
294
291
|
>
|
|
295
292
|
{title}
|
|
296
|
-
<div className='sortable-tree-item-subtitle'>
|
|
297
|
-
{itemButton}
|
|
298
|
-
</div>
|
|
299
293
|
</span>
|
|
300
294
|
{!expanded && (
|
|
301
295
|
<span className='sortable-tree-item-subtitle'>
|
|
@@ -15,7 +15,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
15
15
|
left: 0;
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
z-index:
|
|
18
|
+
z-index: 1000000;
|
|
19
19
|
background-color: rgba(0, 0, 0, 0.5);
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
|
-
z-index:
|
|
27
|
+
z-index: 1000001;
|
|
28
28
|
display: none;
|
|
29
29
|
width: 100%;
|
|
30
30
|
height: 100%;
|
|
@@ -15,12 +15,10 @@
|
|
|
15
15
|
height: 2.5rem;
|
|
16
16
|
border-width: 2px;
|
|
17
17
|
padding: 2px;
|
|
18
|
-
|
|
19
18
|
label,
|
|
20
19
|
.btn-switch-indicator {
|
|
21
20
|
border-radius: 0.375rem !important;
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
label {
|
|
25
23
|
height: 2rem;
|
|
26
24
|
}
|
|
@@ -36,7 +34,6 @@
|
|
|
36
34
|
margin-top: 1.5rem;
|
|
37
35
|
margin-bottom: 1.5rem;
|
|
38
36
|
}
|
|
39
|
-
|
|
40
37
|
@include media-breakpoint-down(sm) {
|
|
41
38
|
padding: 1.5rem 1rem;
|
|
42
39
|
margin-top: 0.5rem;
|
|
@@ -62,21 +59,10 @@
|
|
|
62
59
|
background-color: #ffdbdb;
|
|
63
60
|
color: #d52902;
|
|
64
61
|
}
|
|
65
|
-
|
|
66
62
|
.category-badge {
|
|
67
63
|
background-color: #e8f4f6;
|
|
68
64
|
color: #1a93aa;
|
|
69
65
|
}
|
|
70
|
-
|
|
71
|
-
.item-icon {
|
|
72
|
-
display: flex;
|
|
73
|
-
justify-items: center;
|
|
74
|
-
align-items: center;
|
|
75
|
-
font-size: 0.65rem;
|
|
76
|
-
padding: 0.2rem;
|
|
77
|
-
margin-right: 1rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
66
|
.product-badge {
|
|
81
67
|
background-color: #e9f5ea;
|
|
82
68
|
color: #269b36;
|
|
@@ -89,12 +75,10 @@
|
|
|
89
75
|
|
|
90
76
|
.product-set-mobile-modal {
|
|
91
77
|
margin: 0;
|
|
92
|
-
|
|
93
78
|
.modal-content {
|
|
94
79
|
border-radius: 1rem 1rem 0 0;
|
|
95
80
|
border-width: 0;
|
|
96
81
|
margin: 0;
|
|
97
|
-
|
|
98
82
|
.modal-body {
|
|
99
83
|
padding: 1rem 0;
|
|
100
84
|
}
|
|
@@ -116,22 +100,18 @@
|
|
|
116
100
|
font-weight: 600;
|
|
117
101
|
font-size: 0.625rem;
|
|
118
102
|
}
|
|
119
|
-
|
|
120
103
|
.product-set-subtitle-dot {
|
|
121
104
|
margin-right: 0.375rem;
|
|
122
105
|
width: 0.375rem;
|
|
123
106
|
height: 0.375rem;
|
|
124
107
|
border-radius: 3px;
|
|
125
108
|
}
|
|
126
|
-
|
|
127
109
|
.product-set-subtitle-category-dot {
|
|
128
110
|
background-color: #269b36;
|
|
129
111
|
}
|
|
130
|
-
|
|
131
112
|
.product-set-subtitle-step-dot {
|
|
132
113
|
background-color: #1a93aa;
|
|
133
114
|
}
|
|
134
|
-
|
|
135
115
|
.product-set-subtitle-product-dot {
|
|
136
116
|
background-color: #269b36;
|
|
137
117
|
}
|
|
@@ -176,7 +156,6 @@
|
|
|
176
156
|
justify-self: flex-end;
|
|
177
157
|
align-items: flex-end;
|
|
178
158
|
}
|
|
179
|
-
|
|
180
159
|
.small-badge {
|
|
181
160
|
font-size: 0.5rem;
|
|
182
161
|
height: 1rem;
|
|
@@ -184,7 +163,6 @@
|
|
|
184
163
|
padding: 0 0.2rem;
|
|
185
164
|
margin-bottom: 0.2rem;
|
|
186
165
|
}
|
|
187
|
-
|
|
188
166
|
.product-set-save-btn-wrapper {
|
|
189
167
|
padding-left: 0 !important;
|
|
190
168
|
display: flex;
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
+
|
|
105
106
|
.form-disable-box {
|
|
106
107
|
display: none;
|
|
107
108
|
position: absolute;
|
|
@@ -183,6 +184,7 @@
|
|
|
183
184
|
}
|
|
184
185
|
|
|
185
186
|
@include media-breakpoint-up(md) {
|
|
187
|
+
|
|
186
188
|
.ryft-payment-form,
|
|
187
189
|
.form-disable-box {
|
|
188
190
|
height: 50%;
|
|
@@ -211,4 +213,4 @@
|
|
|
211
213
|
.divider {
|
|
212
214
|
display: none !important;
|
|
213
215
|
}
|
|
214
|
-
}
|
|
216
|
+
}
|
|
@@ -30,7 +30,6 @@ export interface TipTapEditorProps {
|
|
|
30
30
|
editorStyle?: React.CSSProperties
|
|
31
31
|
className?: string
|
|
32
32
|
id?: string
|
|
33
|
-
hideEmptyEditor?: boolean
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
const DEFAULT_CONTENT = '<p></p>'
|
|
@@ -66,7 +65,6 @@ export function TipTapEditor({
|
|
|
66
65
|
editorStyle,
|
|
67
66
|
className,
|
|
68
67
|
id,
|
|
69
|
-
hideEmptyEditor = false,
|
|
70
68
|
}: TipTapEditorProps) {
|
|
71
69
|
const editor = useEditor(
|
|
72
70
|
{
|
|
@@ -105,12 +103,7 @@ export function TipTapEditor({
|
|
|
105
103
|
disabled && 'editor-disabled',
|
|
106
104
|
className,
|
|
107
105
|
)}
|
|
108
|
-
style={
|
|
109
|
-
...editorStyle,
|
|
110
|
-
...(hideEmptyEditor
|
|
111
|
-
? { display: editor?.isEmpty ? 'none' : 'block' }
|
|
112
|
-
: {}),
|
|
113
|
-
}}
|
|
106
|
+
style={editorStyle}
|
|
114
107
|
editor={editor}
|
|
115
108
|
/>
|
|
116
109
|
</div>
|
package/yarn.lock
CHANGED
|
@@ -2466,9 +2466,9 @@ __metadata:
|
|
|
2466
2466
|
languageName: node
|
|
2467
2467
|
linkType: hard
|
|
2468
2468
|
|
|
2469
|
-
"@licklist/core@npm:0.
|
|
2470
|
-
version: 0.
|
|
2471
|
-
resolution: "@licklist/core@npm:0.
|
|
2469
|
+
"@licklist/core@npm:0.30.1":
|
|
2470
|
+
version: 0.30.1
|
|
2471
|
+
resolution: "@licklist/core@npm:0.30.1"
|
|
2472
2472
|
dependencies:
|
|
2473
2473
|
"@sentry/browser": "npm:6.2.0"
|
|
2474
2474
|
axios: "npm:0.26.0"
|
|
@@ -2480,7 +2480,6 @@ __metadata:
|
|
|
2480
2480
|
react-intl: "npm:6.6.8"
|
|
2481
2481
|
uuid: "npm:9.0.0"
|
|
2482
2482
|
wait-for-expect: "npm:3.0.2"
|
|
2483
|
-
zustand: "npm:3.7.2"
|
|
2484
2483
|
peerDependencies:
|
|
2485
2484
|
"@licklist/eslint-config": 0.5.6
|
|
2486
2485
|
axios: 0.26.0
|
|
@@ -2489,14 +2488,13 @@ __metadata:
|
|
|
2489
2488
|
react-dom: 17.0.2
|
|
2490
2489
|
react-i18next: 11.8.8
|
|
2491
2490
|
react-intl: 6.6.8
|
|
2492
|
-
|
|
2493
|
-
checksum: 10c0/fcefd4631fbf3d116a36833b748fc9b557cae8b580acae4c1bd7d29f1665a42456b1109a3f80620f6f7244161f8260d6243680ff739a2a544221e1b7e4a01e57
|
|
2491
|
+
checksum: 10c0/2b3ec4eebfffd120e188825beb607864dfc85ddc6f5cd834e6c7b99b0191171936da0299441f2a91721d70ebb196279b6b72d8e9ec37fc21d4f51f97400b8475
|
|
2494
2492
|
languageName: node
|
|
2495
2493
|
linkType: hard
|
|
2496
2494
|
|
|
2497
|
-
"@licklist/core@npm:0.
|
|
2498
|
-
version: 0.
|
|
2499
|
-
resolution: "@licklist/core@npm:0.
|
|
2495
|
+
"@licklist/core@npm:0.30.3":
|
|
2496
|
+
version: 0.30.3
|
|
2497
|
+
resolution: "@licklist/core@npm:0.30.3"
|
|
2500
2498
|
dependencies:
|
|
2501
2499
|
"@sentry/browser": "npm:6.2.0"
|
|
2502
2500
|
axios: "npm:0.26.0"
|
|
@@ -2508,7 +2506,6 @@ __metadata:
|
|
|
2508
2506
|
react-intl: "npm:6.6.8"
|
|
2509
2507
|
uuid: "npm:9.0.0"
|
|
2510
2508
|
wait-for-expect: "npm:3.0.2"
|
|
2511
|
-
zustand: "npm:3.7.2"
|
|
2512
2509
|
peerDependencies:
|
|
2513
2510
|
"@licklist/eslint-config": 0.5.6
|
|
2514
2511
|
axios: 0.26.0
|
|
@@ -2517,8 +2514,7 @@ __metadata:
|
|
|
2517
2514
|
react-dom: 17.0.2
|
|
2518
2515
|
react-i18next: 11.8.8
|
|
2519
2516
|
react-intl: 6.6.8
|
|
2520
|
-
|
|
2521
|
-
checksum: 10c0/2cba12fe6e2d18ea5cf882489e03f2fe68fc9fb36fde88fabe2deba61fad99fd2dd22e445e6d5c0506008d138ba4b64c7f5d0e92ce131ea41ec72c16269901ab
|
|
2517
|
+
checksum: 10c0/0c07f146b3be699955f19880cef83c7e5132727aace74ea36da2b1d33ea3b6c3b63d1de2439ed996723ed3c046b5611952bcdd76e0db74a629ce46a1b836f3fa
|
|
2522
2518
|
languageName: node
|
|
2523
2519
|
linkType: hard
|
|
2524
2520
|
|
|
@@ -2533,9 +2529,9 @@ __metadata:
|
|
|
2533
2529
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2534
2530
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2535
2531
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2536
|
-
"@licklist/core": "npm:0.
|
|
2532
|
+
"@licklist/core": "npm:0.30.3"
|
|
2537
2533
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2538
|
-
"@licklist/plugins": "npm:0.
|
|
2534
|
+
"@licklist/plugins": "npm:0.33.6"
|
|
2539
2535
|
"@mantine/core": "npm:6.0.22"
|
|
2540
2536
|
"@mantine/hooks": "npm:6.0.22"
|
|
2541
2537
|
"@mdx-js/react": "npm:1.6.22"
|
|
@@ -2664,9 +2660,9 @@ __metadata:
|
|
|
2664
2660
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2665
2661
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2666
2662
|
peerDependencies:
|
|
2667
|
-
"@licklist/core": 0.
|
|
2663
|
+
"@licklist/core": 0.30.3
|
|
2668
2664
|
"@licklist/eslint-config": 0.5.6
|
|
2669
|
-
"@licklist/plugins": 0.
|
|
2665
|
+
"@licklist/plugins": 0.33.6
|
|
2670
2666
|
lodash: 4.17.21
|
|
2671
2667
|
luxon: 3.5.0
|
|
2672
2668
|
react: 17.0.2
|
|
@@ -2696,11 +2692,11 @@ __metadata:
|
|
|
2696
2692
|
languageName: node
|
|
2697
2693
|
linkType: hard
|
|
2698
2694
|
|
|
2699
|
-
"@licklist/plugins@npm:0.
|
|
2700
|
-
version: 0.
|
|
2701
|
-
resolution: "@licklist/plugins@npm:0.
|
|
2695
|
+
"@licklist/plugins@npm:0.33.6":
|
|
2696
|
+
version: 0.33.6
|
|
2697
|
+
resolution: "@licklist/plugins@npm:0.33.6"
|
|
2702
2698
|
dependencies:
|
|
2703
|
-
"@licklist/core": "npm:0.
|
|
2699
|
+
"@licklist/core": "npm:0.30.1"
|
|
2704
2700
|
axios: "npm:0.26.0"
|
|
2705
2701
|
history: "npm:4.10.1"
|
|
2706
2702
|
laravel-echo: "npm:1.15.1"
|
|
@@ -2720,7 +2716,7 @@ __metadata:
|
|
|
2720
2716
|
rrule: "npm:2.6.8"
|
|
2721
2717
|
use-debounce: "npm:7.0.1"
|
|
2722
2718
|
peerDependencies:
|
|
2723
|
-
"@licklist/core": 0.
|
|
2719
|
+
"@licklist/core": 0.30.1
|
|
2724
2720
|
"@licklist/eslint-config": 0.5.6
|
|
2725
2721
|
axios: 0.26.0
|
|
2726
2722
|
lodash: 4.17.21
|
|
@@ -2732,7 +2728,7 @@ __metadata:
|
|
|
2732
2728
|
react-loader: 2.4.7
|
|
2733
2729
|
react-query: 3.34.12
|
|
2734
2730
|
react-router-dom: 5.2.0
|
|
2735
|
-
checksum: 10c0/
|
|
2731
|
+
checksum: 10c0/e22d0c52eefb6e256a45062343700676b62839e440759ba1cdfe17c8a6320adf3f329adf2e1929cb63b0306ad01d99bb69a878717ec25db6027847d39f6dae67
|
|
2736
2732
|
languageName: node
|
|
2737
2733
|
linkType: hard
|
|
2738
2734
|
|
|
@@ -21953,18 +21949,6 @@ __metadata:
|
|
|
21953
21949
|
languageName: node
|
|
21954
21950
|
linkType: hard
|
|
21955
21951
|
|
|
21956
|
-
"zustand@npm:3.7.2":
|
|
21957
|
-
version: 3.7.2
|
|
21958
|
-
resolution: "zustand@npm:3.7.2"
|
|
21959
|
-
peerDependencies:
|
|
21960
|
-
react: ">=16.8"
|
|
21961
|
-
peerDependenciesMeta:
|
|
21962
|
-
react:
|
|
21963
|
-
optional: true
|
|
21964
|
-
checksum: 10c0/6a56185ca67080c252dfe96039da02094cfd780bd7a45768708105f114dea39ae9abc80ffaa7f3f6104e6490db325bd443b857ab5eab8ebf9a697318cd163bb6
|
|
21965
|
-
languageName: node
|
|
21966
|
-
linkType: hard
|
|
21967
|
-
|
|
21968
21952
|
"zwitch@npm:^1.0.0":
|
|
21969
21953
|
version: 1.0.5
|
|
21970
21954
|
resolution: "zwitch@npm:1.0.5"
|