@licklist/design 0.68.5-dev.0 → 0.68.5
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/selectArrow.svg.js +17 -0
- package/dist/auth/Login/LoginComponent.js +1 -2
- package/dist/calendar/components/CalendarButtons/CalendarButtons.d.ts.map +1 -1
- package/dist/calendar/components/CalendarButtons/CalendarButtons.js +40 -35
- package/dist/events/edit-event-modal/IntervalInput.js +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +1 -0
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +23 -24
- 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/iframe/event/event-card/IframeEventCard.d.ts.map +1 -1
- package/dist/iframe/event/event-card/IframeEventCard.js +2 -2
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
- package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/layout/DropDown.d.ts +1 -2
- package/dist/layout/DropDown.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
- package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
- package/dist/modals/confirmation/ConfirmModal.js +8 -172
- package/dist/product-set/card/ProductSetCard.d.ts +2 -6
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +11 -30
- package/dist/product-set/control/DateInput.d.ts.map +1 -1
- package/dist/product-set/control/DateInput.js +2 -2
- 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 -59
- 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/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/form/index.d.ts +0 -1
- package/dist/product-set/form/index.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/utils/index.d.ts +0 -7
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/dist/product-set/utils/index.js +1 -10
- package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
- package/dist/sales/booking/results/components/ResultCard.js +2 -0
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +0 -6
- 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/styles/iframe-events/Calendar.scss +1 -0
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/product-set/ProductSetForm.scss +0 -22
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/utils.d.ts +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/utils.d.ts.map +1 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/utils.js +1 -3
- package/dist/typeahead/Typeahead.d.ts +1 -5
- package/dist/typeahead/Typeahead.d.ts.map +1 -1
- package/dist/typeahead/Typeahead.js +2 -9
- package/package.json +6 -8
- package/src/affiliate/form/AffiliateForm.tsx +0 -1
- package/src/auth/Login/LoginComponent.tsx +1 -1
- package/src/calendar/components/CalendarButtons/CalendarButtons.tsx +28 -29
- package/src/events/edit-event-modal/IntervalInput.tsx +4 -4
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +1 -0
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +85 -82
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -0
- package/src/iframe/event/event-card/IframeEventCard.tsx +29 -30
- package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
- package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
- package/src/layout/DropDown.tsx +1 -2
- package/src/modals/confirmation/ConfirmModal.tsx +3 -19
- package/src/product-set/card/ProductSetCard.tsx +8 -47
- package/src/product-set/control/DateInput.tsx +1 -2
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
- package/src/product-set/form/ProductSetForm.tsx +2 -17
- 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/form/index.ts +0 -1
- 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-zone/ProductZoneControl.tsx +1 -1
- package/src/product-set/utils/index.ts +0 -11
- package/src/sales/booking/results/components/ResultCard.tsx +2 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
- package/src/sortable-tree/SortableTreeItem.tsx +0 -6
- package/src/styles/iframe-events/Calendar.scss +1 -0
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/product-set/ProductSetForm.scss +0 -22
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/tiptap-editor/TipTapMenu/extensions/utils.ts +1 -4
- package/src/typeahead/Typeahead.tsx +1 -15
- package/yarn.lock +14 -40
- package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
- package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
- package/dist/product-set/form/ProductSetNameControl.js +0 -35
- package/dist/tiptap-editor/TipTapMenu/extensions/constants.d.ts +0 -2
- package/dist/tiptap-editor/TipTapMenu/extensions/constants.d.ts.map +0 -1
- package/dist/tiptap-editor/TipTapMenu/extensions/constants.js +0 -3
- package/src/product-set/form/ProductSetNameControl.tsx +0 -27
- package/src/tiptap-editor/TipTapMenu/extensions/constants.ts +0 -1
|
@@ -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;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { parse } from 'twemoji-parser'
|
|
2
|
-
import { EMOJI_URL } from './constants'
|
|
3
2
|
|
|
4
3
|
function parseTwemoji(emoji: string) {
|
|
5
4
|
const [twemoji] = parse(emoji)
|
|
6
5
|
|
|
7
|
-
const emojiPathUrl = EMOJI_URL.concat(twemoji.url.split("/").slice(-1));
|
|
8
|
-
|
|
9
6
|
return {
|
|
10
|
-
src:
|
|
7
|
+
src: twemoji.url,
|
|
11
8
|
alt: twemoji.text,
|
|
12
9
|
class: 'emoji',
|
|
13
10
|
draggable: 'false',
|
|
@@ -12,13 +12,10 @@ export interface TypeaheadProps {
|
|
|
12
12
|
placeholder: string
|
|
13
13
|
isRequired?: boolean
|
|
14
14
|
name: string
|
|
15
|
-
value?: TypeaheadOptions
|
|
16
15
|
isMultipleChoise?: boolean
|
|
17
16
|
noOptionsMessage: string
|
|
18
17
|
isInvalid?: boolean
|
|
19
18
|
isCouponForm?: boolean
|
|
20
|
-
containerStyles?: CSSObjectWithLabel
|
|
21
|
-
onChangeValue?: (value: TypeaheadOptions) => void
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
function Typeahead({
|
|
@@ -27,9 +24,6 @@ function Typeahead({
|
|
|
27
24
|
isRequired = false,
|
|
28
25
|
isMultipleChoise,
|
|
29
26
|
name = '',
|
|
30
|
-
value,
|
|
31
|
-
onChangeValue,
|
|
32
|
-
containerStyles,
|
|
33
27
|
isCouponForm = false,
|
|
34
28
|
noOptionsMessage = '',
|
|
35
29
|
isInvalid,
|
|
@@ -59,23 +53,15 @@ function Typeahead({
|
|
|
59
53
|
render={({ field }) => (
|
|
60
54
|
<Select
|
|
61
55
|
placeholder={placeholder}
|
|
62
|
-
value={
|
|
56
|
+
value={field.value}
|
|
63
57
|
isMulti={isMultipleChoise}
|
|
64
58
|
styles={{
|
|
65
|
-
container: (base) => ({
|
|
66
|
-
...base,
|
|
67
|
-
...containerStyles,
|
|
68
|
-
}),
|
|
69
59
|
control: (base) => ({
|
|
70
60
|
...base,
|
|
71
61
|
...getStyle(),
|
|
72
62
|
}),
|
|
73
63
|
}}
|
|
74
64
|
onChange={(value) => {
|
|
75
|
-
if (onChangeValue) {
|
|
76
|
-
onChangeValue(value)
|
|
77
|
-
return
|
|
78
|
-
}
|
|
79
65
|
field.onChange(value)
|
|
80
66
|
}}
|
|
81
67
|
options={options}
|
package/yarn.lock
CHANGED
|
@@ -2554,35 +2554,9 @@ __metadata:
|
|
|
2554
2554
|
languageName: node
|
|
2555
2555
|
linkType: hard
|
|
2556
2556
|
|
|
2557
|
-
"@licklist/core@npm:0.
|
|
2558
|
-
version: 0.
|
|
2559
|
-
resolution: "@licklist/core@npm:0.
|
|
2560
|
-
dependencies:
|
|
2561
|
-
"@sentry/browser": "npm:6.2.0"
|
|
2562
|
-
axios: "npm:0.26.0"
|
|
2563
|
-
i18next: "npm:19.4.5"
|
|
2564
|
-
luxon: "npm:3.5.0"
|
|
2565
|
-
react: "npm:17.0.2"
|
|
2566
|
-
react-dom: "npm:17.0.2"
|
|
2567
|
-
react-i18next: "npm:11.8.8"
|
|
2568
|
-
react-intl: "npm:6.6.8"
|
|
2569
|
-
uuid: "npm:9.0.0"
|
|
2570
|
-
wait-for-expect: "npm:3.0.2"
|
|
2571
|
-
peerDependencies:
|
|
2572
|
-
"@licklist/eslint-config": 0.5.5
|
|
2573
|
-
axios: 0.26.0
|
|
2574
|
-
luxon: 3.5.0
|
|
2575
|
-
react: 17.0.2
|
|
2576
|
-
react-dom: 17.0.2
|
|
2577
|
-
react-i18next: 11.8.8
|
|
2578
|
-
react-intl: 6.6.8
|
|
2579
|
-
checksum: 10c0/cacb058eb075b8e42fe9135877aa90f5104b661a0a99addbadfe916604ee35d468d07f9ce4e349fad573015044977bf77821b92dc385bab23393bc4d72677c4f
|
|
2580
|
-
languageName: node
|
|
2581
|
-
linkType: hard
|
|
2582
|
-
|
|
2583
|
-
"@licklist/core@npm:0.30.0-dev.0":
|
|
2584
|
-
version: 0.30.0-dev.0
|
|
2585
|
-
resolution: "@licklist/core@npm:0.30.0-dev.0"
|
|
2557
|
+
"@licklist/core@npm:0.30.1":
|
|
2558
|
+
version: 0.30.1
|
|
2559
|
+
resolution: "@licklist/core@npm:0.30.1"
|
|
2586
2560
|
dependencies:
|
|
2587
2561
|
"@sentry/browser": "npm:6.2.0"
|
|
2588
2562
|
axios: "npm:0.26.0"
|
|
@@ -2602,7 +2576,7 @@ __metadata:
|
|
|
2602
2576
|
react-dom: 17.0.2
|
|
2603
2577
|
react-i18next: 11.8.8
|
|
2604
2578
|
react-intl: 6.6.8
|
|
2605
|
-
checksum: 10c0/
|
|
2579
|
+
checksum: 10c0/2b3ec4eebfffd120e188825beb607864dfc85ddc6f5cd834e6c7b99b0191171936da0299441f2a91721d70ebb196279b6b72d8e9ec37fc21d4f51f97400b8475
|
|
2606
2580
|
languageName: node
|
|
2607
2581
|
linkType: hard
|
|
2608
2582
|
|
|
@@ -2617,9 +2591,9 @@ __metadata:
|
|
|
2617
2591
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2618
2592
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2619
2593
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2620
|
-
"@licklist/core": "npm:0.30.
|
|
2594
|
+
"@licklist/core": "npm:0.30.1"
|
|
2621
2595
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2622
|
-
"@licklist/plugins": "npm:0.33.
|
|
2596
|
+
"@licklist/plugins": "npm:0.33.1"
|
|
2623
2597
|
"@mdx-js/react": "npm:1.6.22"
|
|
2624
2598
|
"@popperjs/core": "npm:2.11.8"
|
|
2625
2599
|
"@react-aria/utils": "npm:3.9.0"
|
|
@@ -2739,9 +2713,9 @@ __metadata:
|
|
|
2739
2713
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2740
2714
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2741
2715
|
peerDependencies:
|
|
2742
|
-
"@licklist/core": 0.30.
|
|
2716
|
+
"@licklist/core": 0.30.1
|
|
2743
2717
|
"@licklist/eslint-config": 0.5.6
|
|
2744
|
-
"@licklist/plugins": 0.33.
|
|
2718
|
+
"@licklist/plugins": 0.33.1
|
|
2745
2719
|
lodash: 4.17.21
|
|
2746
2720
|
luxon: 3.5.0
|
|
2747
2721
|
react: 17.0.2
|
|
@@ -2771,11 +2745,11 @@ __metadata:
|
|
|
2771
2745
|
languageName: node
|
|
2772
2746
|
linkType: hard
|
|
2773
2747
|
|
|
2774
|
-
"@licklist/plugins@npm:0.33.
|
|
2775
|
-
version: 0.33.
|
|
2776
|
-
resolution: "@licklist/plugins@npm:0.33.
|
|
2748
|
+
"@licklist/plugins@npm:0.33.1":
|
|
2749
|
+
version: 0.33.1
|
|
2750
|
+
resolution: "@licklist/plugins@npm:0.33.1"
|
|
2777
2751
|
dependencies:
|
|
2778
|
-
"@licklist/core": "npm:0.
|
|
2752
|
+
"@licklist/core": "npm:0.30.1"
|
|
2779
2753
|
"@ungap/url-search-params": "npm:0.2.2"
|
|
2780
2754
|
axios: "npm:0.26.0"
|
|
2781
2755
|
history: "npm:4.10.1"
|
|
@@ -2796,7 +2770,7 @@ __metadata:
|
|
|
2796
2770
|
rrule: "npm:2.6.8"
|
|
2797
2771
|
use-debounce: "npm:7.0.1"
|
|
2798
2772
|
peerDependencies:
|
|
2799
|
-
"@licklist/core": 0.
|
|
2773
|
+
"@licklist/core": 0.30.1
|
|
2800
2774
|
"@licklist/eslint-config": 0.5.6
|
|
2801
2775
|
axios: 0.26.0
|
|
2802
2776
|
lodash: 4.17.21
|
|
@@ -2808,7 +2782,7 @@ __metadata:
|
|
|
2808
2782
|
react-loader: 2.4.7
|
|
2809
2783
|
react-query: 3.34.12
|
|
2810
2784
|
react-router-dom: 5.2.0
|
|
2811
|
-
checksum: 10c0/
|
|
2785
|
+
checksum: 10c0/9f9cba3fcf3b2543c1b781233c0cfa2d6638ff47edde93ed3500ea4dfe12f7940380e9d79b6051b6cc8eb5cb26cdbb97fcd412b83bfd3dce7cd1c34835f975a7
|
|
2812
2786
|
languageName: node
|
|
2813
2787
|
linkType: hard
|
|
2814
2788
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSetNameControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetNameControl.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,gCAI/B;IACD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,4CAeA,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Form } from 'react-bootstrap';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
-
|
|
5
|
-
var ProductSetNameControl = function(param) {
|
|
6
|
-
var value = param.value, onChange = param.onChange, error = param.error;
|
|
7
|
-
var t = useTranslation([
|
|
8
|
-
'Design'
|
|
9
|
-
]).t;
|
|
10
|
-
return /*#__PURE__*/ jsxs(Form.Group, {
|
|
11
|
-
children: [
|
|
12
|
-
/*#__PURE__*/ jsxs(Form.Label, {
|
|
13
|
-
children: [
|
|
14
|
-
t('Design:ProductSetName'),
|
|
15
|
-
"*"
|
|
16
|
-
]
|
|
17
|
-
}),
|
|
18
|
-
/*#__PURE__*/ jsx(Form.Control, {
|
|
19
|
-
value: value,
|
|
20
|
-
maxLength: 255,
|
|
21
|
-
onChange: function(e) {
|
|
22
|
-
return onChange(e.target.value);
|
|
23
|
-
},
|
|
24
|
-
placeholder: t('Design:placeholderProductSetName'),
|
|
25
|
-
isInvalid: Boolean(error)
|
|
26
|
-
}),
|
|
27
|
-
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
28
|
-
type: "invalid",
|
|
29
|
-
children: error
|
|
30
|
-
})
|
|
31
|
-
]
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export { ProductSetNameControl };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tiptap-editor/TipTapMenu/extensions/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,sEAAsE,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Form } from 'react-bootstrap'
|
|
2
|
-
import { useTranslation } from 'react-i18next'
|
|
3
|
-
|
|
4
|
-
export const ProductSetNameControl = ({
|
|
5
|
-
value,
|
|
6
|
-
onChange,
|
|
7
|
-
error,
|
|
8
|
-
}: {
|
|
9
|
-
value: string
|
|
10
|
-
onChange: (value: string) => void
|
|
11
|
-
error?: string
|
|
12
|
-
}) => {
|
|
13
|
-
const { t } = useTranslation(['Design'])
|
|
14
|
-
return (
|
|
15
|
-
<Form.Group>
|
|
16
|
-
<Form.Label>{t('Design:ProductSetName')}*</Form.Label>
|
|
17
|
-
<Form.Control
|
|
18
|
-
value={value}
|
|
19
|
-
maxLength={255}
|
|
20
|
-
onChange={(e) => onChange(e.target.value)}
|
|
21
|
-
placeholder={t('Design:placeholderProductSetName')}
|
|
22
|
-
isInvalid={Boolean(error)}
|
|
23
|
-
/>
|
|
24
|
-
<Form.Control.Feedback type="invalid">{error}</Form.Control.Feedback>
|
|
25
|
-
</Form.Group>
|
|
26
|
-
)
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const EMOJI_URL = "https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.7/assets/svg/";
|