itmar-block-packages 1.6.2 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/README.md +18 -0
  2. package/build/index.asset.php +1 -1
  3. package/build/index.js +3 -3
  4. package/package.json +1 -1
  5. package/src/AnimationBlock.js +8 -8
  6. package/src/BlockPlace.js +62 -70
  7. package/src/DateElm.js +7 -7
  8. package/src/DraggableBox.js +4 -4
  9. package/src/GridControls.js +196 -137
  10. package/src/IconSelectControl.js +15 -15
  11. package/src/ShadowStyle.js +23 -23
  12. package/src/TypographyControls.js +5 -5
  13. package/src/ZipAddress.js +3 -3
  14. package/src/customFooks.js +1 -1
  15. package/src/index.js +3 -0
  16. package/src/validationCheck.js +10 -0
  17. package/src/wordpressApi.js +8 -8
  18. package/languages/itmar-block-packages-ja-2e59d6ebc088ea4b3d475a06e1e94824.json +0 -1
  19. package/languages/itmar-block-packages-ja-314423d5ad20380dc5fb85a96050381e.json +0 -1
  20. package/languages/itmar-block-packages-ja-3e946be5d900b4a727047c8a51bb058e.json +0 -1
  21. package/languages/itmar-block-packages-ja-5f1760422a0125b48fdcca644f4db89f.json +0 -1
  22. package/languages/itmar-block-packages-ja-800102e626a7ce0305d324a5bb0ee61e.json +0 -1
  23. package/languages/itmar-block-packages-ja-865f209aff5ee1f8efb51f6a62e8d8e1.json +0 -1
  24. package/languages/itmar-block-packages-ja-88eb778e4da0e010ceace8232ab1a901.json +0 -1
  25. package/languages/itmar-block-packages-ja-a418e2f5e97a053f5e0785a30f28b854.json +0 -1
  26. package/languages/itmar-block-packages-ja-ce2d14d174f0af0f13cd9a1302cebdd7.json +0 -1
  27. package/languages/itmar-block-packages-ja-f55909920e3bd84845271a62dbfb8dfe.json +0 -1
  28. package/languages/itmar-block-packages-ja-f6bd3c69ad85ee9ae9f1315af8f44e4a.json +0 -1
  29. package/languages/itmar-block-packages-ja.mo +0 -0
  30. package/languages/itmar-block-packages-ja.po +0 -1485
  31. package/languages/itmar-block-packages.pot +0 -530
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itmar-block-packages",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "We have put together a package of common React components used for WordPress custom blocks.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -29,11 +29,11 @@ export default function AnimationBlock(props) {
29
29
  return (
30
30
  <>
31
31
  <PanelBody
32
- title={__("Animation Setting", "itmar-block-packages")}
32
+ title={__("Animation Setting", "block-collections")}
33
33
  initialOpen={true}
34
34
  >
35
35
  <ToggleControl
36
- label={__("Is Animation", "itmar-block-packages")}
36
+ label={__("Is Animation", "block-collections")}
37
37
  checked={is_anime}
38
38
  onChange={(newVal) => {
39
39
  props.onChange({ is_anime: newVal });
@@ -43,7 +43,7 @@ export default function AnimationBlock(props) {
43
43
  <>
44
44
  <div className="itmar_link_type">
45
45
  <RadioControl
46
- label={__("Animation Pattern", "itmar-block-packages")}
46
+ label={__("Animation Pattern", "block-collections")}
47
47
  selected={anime_prm.pattern}
48
48
  options={[
49
49
  { label: "flipDown", value: "flipDown" },
@@ -61,7 +61,7 @@ export default function AnimationBlock(props) {
61
61
 
62
62
  <RangeControl
63
63
  value={anime_prm.duration}
64
- label={__("Animation duration time", "itmar-block-packages")}
64
+ label={__("Animation duration time", "block-collections")}
65
65
  max={5}
66
66
  min={0}
67
67
  onChange={(val) => {
@@ -73,7 +73,7 @@ export default function AnimationBlock(props) {
73
73
 
74
74
  <RangeControl
75
75
  value={anime_prm.delay}
76
- label={__("Animation delay time", "itmar-block-packages")}
76
+ label={__("Animation delay time", "block-collections")}
77
77
  max={3}
78
78
  min={0}
79
79
  onChange={(val) => {
@@ -85,15 +85,15 @@ export default function AnimationBlock(props) {
85
85
 
86
86
  <div className="itmar_link_type">
87
87
  <RadioControl
88
- label={__("Animation Trigger", "itmar-block-packages")}
88
+ label={__("Animation Trigger", "block-collections")}
89
89
  selected={anime_prm.trigger}
90
90
  options={[
91
91
  {
92
- label: __("Page Opend", "itmar-block-packages"),
92
+ label: __("Page Opend", "block-collections"),
93
93
  value: "opend",
94
94
  },
95
95
  {
96
- label: __("Enter Visible", "itmar-block-packages"),
96
+ label: __("Enter Visible", "block-collections"),
97
97
  value: "visible",
98
98
  },
99
99
  ]}
package/src/BlockPlace.js CHANGED
@@ -66,20 +66,20 @@ export default function BlockPlace(props) {
66
66
  //ツールチップの選択
67
67
  const start_tip =
68
68
  sel_pos.direction === "vertical"
69
- ? __("upper alignment", "itmar-block-packages")
70
- : __("left alignment", "itmar-block-packages");
69
+ ? __("upper alignment", "block-collections")
70
+ : __("left alignment", "block-collections");
71
71
  const end_tip =
72
72
  sel_pos.direction === "vertical"
73
- ? __("lower alignment", "itmar-block-packages")
74
- : __("right alignment", "itmar-block-packages");
73
+ ? __("lower alignment", "block-collections")
74
+ : __("right alignment", "block-collections");
75
75
  const cross_start_tip =
76
76
  sel_pos.direction === "vertical"
77
- ? __("left alignment", "itmar-block-packages")
78
- : __("upper alignment", "itmar-block-packages");
77
+ ? __("left alignment", "block-collections")
78
+ : __("upper alignment", "block-collections");
79
79
  const cross_end_tip =
80
80
  sel_pos.direction === "vertical"
81
- ? __("right alignment", "itmar-block-packages")
82
- : __("lower alignment", "itmar-block-packages");
81
+ ? __("right alignment", "block-collections")
82
+ : __("lower alignment", "block-collections");
83
83
 
84
84
  const [isContainer, setIsContainer] = useState(false);
85
85
  const [direction, setDirection] = useState("row");
@@ -123,14 +123,14 @@ export default function BlockPlace(props) {
123
123
  // 翻訳が必要な文字列を直接指定
124
124
  const blockMaxWidthMobile = __(
125
125
  "Block Max Width(Mobile)",
126
- "itmar-block-packages"
126
+ "block-collections"
127
127
  );
128
- const blockWidthMobile = __("Block Width(Mobile)", "itmar-block-packages");
128
+ const blockWidthMobile = __("Block Width(Mobile)", "block-collections");
129
129
  const blockMaxWidthDesktop = __(
130
130
  "Block Max Width(DeskTop)",
131
- "itmar-block-packages"
131
+ "block-collections"
132
132
  );
133
- const blockWidthDesktop = __("Block Width(DeskTop)", "itmar-block-packages");
133
+ const blockWidthDesktop = __("Block Width(DeskTop)", "block-collections");
134
134
 
135
135
  // 条件に応じて選択
136
136
  const blockWidthLabel = isMobile
@@ -144,14 +144,14 @@ export default function BlockPlace(props) {
144
144
  return (
145
145
  <>
146
146
  <PanelBody
147
- title={__("Block placement", "itmar-block-packages")}
147
+ title={__("Block placement", "block-collections")}
148
148
  initialOpen={false}
149
149
  className="itmar_group_direction"
150
150
  >
151
151
  {isMobile ? (
152
- <p>{__("InnerBlock direction(Mobile)", "itmar-block-packages")}</p>
152
+ <p>{__("InnerBlock direction(Mobile)", "block-collections")}</p>
153
153
  ) : (
154
- <p>{__("InnerBlock direction(DeskTop)", "itmar-block-packages")}</p>
154
+ <p>{__("InnerBlock direction(DeskTop)", "block-collections")}</p>
155
155
  )}
156
156
 
157
157
  <ToolbarGroup>
@@ -162,7 +162,7 @@ export default function BlockPlace(props) {
162
162
  isPressed={sel_pos.direction === "block"}
163
163
  onClick={() => props.onDirectionChange("block")}
164
164
  icon={group}
165
- label={__("block", "itmar-block-packages")}
165
+ label={__("block", "block-collections")}
166
166
  />
167
167
  )}
168
168
  </ToolbarItem>
@@ -173,7 +173,7 @@ export default function BlockPlace(props) {
173
173
  isPressed={sel_pos.direction === "vertical"}
174
174
  onClick={() => props.onDirectionChange("vertical")}
175
175
  icon={stack}
176
- label={__("virtical", "itmar-block-packages")}
176
+ label={__("virtical", "block-collections")}
177
177
  />
178
178
  )}
179
179
  </ToolbarItem>
@@ -184,7 +184,7 @@ export default function BlockPlace(props) {
184
184
  isPressed={sel_pos.direction === "horizen"}
185
185
  onClick={() => props.onDirectionChange("horizen")}
186
186
  icon={flex}
187
- label={__("horizen", "itmar-block-packages")}
187
+ label={__("horizen", "block-collections")}
188
188
  />
189
189
  )}
190
190
  </ToolbarItem>
@@ -195,7 +195,7 @@ export default function BlockPlace(props) {
195
195
  isPressed={sel_pos.direction === "grid"}
196
196
  onClick={() => props.onDirectionChange("grid")}
197
197
  icon={layout}
198
- label={__("grid", "itmar-block-packages")}
198
+ label={__("grid", "block-collections")}
199
199
  />
200
200
  )}
201
201
  </ToolbarItem>
@@ -203,12 +203,12 @@ export default function BlockPlace(props) {
203
203
  sel_pos.direction === "vertical") && (
204
204
  <PanelRow className="position_row">
205
205
  <ToggleControl
206
- label={__("reverse", "itmar-block-packages")}
206
+ label={__("reverse", "block-collections")}
207
207
  checked={sel_pos.reverse}
208
208
  onChange={(checked) => props.onReverseChange(checked)}
209
209
  />
210
210
  <ToggleControl
211
- label={__("wrap", "itmar-block-packages")}
211
+ label={__("wrap", "block-collections")}
212
212
  checked={sel_pos.wrap}
213
213
  onChange={(checked) => props.onWrapChange(checked)}
214
214
  />
@@ -219,13 +219,9 @@ export default function BlockPlace(props) {
219
219
  {sel_pos.direction !== "block" && sel_pos.direction !== "grid" && (
220
220
  <>
221
221
  {isMobile ? (
222
- <p>
223
- {__("InnerBlock Main Axis(Mobile)", "itmar-block-packages")}
224
- </p>
222
+ <p>{__("InnerBlock Main Axis(Mobile)", "block-collections")}</p>
225
223
  ) : (
226
- <p>
227
- {__("InnerBlock Main Axis(DeskTop)", "itmar-block-packages")}
228
- </p>
224
+ <p>{__("InnerBlock Main Axis(DeskTop)", "block-collections")}</p>
229
225
  )}
230
226
  <ToolbarGroup>
231
227
  <ToolbarItem>
@@ -248,7 +244,7 @@ export default function BlockPlace(props) {
248
244
  isPressed={sel_pos.inner_align === "center"}
249
245
  onClick={() => props.onFlexChange("center", "inner_align")} //親コンポーネントに通知
250
246
  icon={center_icon}
251
- label={__("center alignment", "itmar-block-packages")}
247
+ label={__("center alignment", "block-collections")}
252
248
  />
253
249
  )}
254
250
  </ToolbarItem>
@@ -274,7 +270,7 @@ export default function BlockPlace(props) {
274
270
  props.onFlexChange("space-between", "inner_align")
275
271
  } //親コンポーネントに通知
276
272
  icon={between_icon}
277
- label={__("beteen stretch", "itmar-block-packages")}
273
+ label={__("beteen stretch", "block-collections")}
278
274
  />
279
275
  )}
280
276
  </ToolbarItem>
@@ -287,7 +283,7 @@ export default function BlockPlace(props) {
287
283
  props.onFlexChange("space-around", "inner_align")
288
284
  } //親コンポーネントに通知
289
285
  icon={around_icon}
290
- label={__("around stretch", "itmar-block-packages")}
286
+ label={__("around stretch", "block-collections")}
291
287
  />
292
288
  )}
293
289
  </ToolbarItem>
@@ -297,11 +293,9 @@ export default function BlockPlace(props) {
297
293
 
298
294
  {!isSubmenu &&
299
295
  (isMobile ? (
300
- <p>{__("InnerBlock Cross Axis(Mobile)", "itmar-block-packages")}</p>
296
+ <p>{__("InnerBlock Cross Axis(Mobile)", "block-collections")}</p>
301
297
  ) : (
302
- <p>
303
- {__("InnerBlock Cross Axis(DeskTop)", "itmar-block-packages")}
304
- </p>
298
+ <p>{__("InnerBlock Cross Axis(DeskTop)", "block-collections")}</p>
305
299
  ))}
306
300
 
307
301
  {!isSubmenu && (
@@ -326,7 +320,7 @@ export default function BlockPlace(props) {
326
320
  isPressed={sel_pos.inner_items === "center"}
327
321
  onClick={() => props.onFlexChange("center", "inner_items")} //親コンポーネントに通知
328
322
  icon={center_cross}
329
- label={__("center alignment", "itmar-block-packages")}
323
+ label={__("center alignment", "block-collections")}
330
324
  />
331
325
  )}
332
326
  </ToolbarItem>
@@ -346,12 +340,10 @@ export default function BlockPlace(props) {
346
340
  {isContainer && (
347
341
  <>
348
342
  {isMobile ? (
349
- <p>
350
- {__("Alignment in container(Mobile)", "itmar-block-packages")}
351
- </p>
343
+ <p>{__("Alignment in container(Mobile)", "block-collections")}</p>
352
344
  ) : (
353
345
  <p>
354
- {__("Alignment in container(DeskTop)", "itmar-block-packages")}
346
+ {__("Alignment in container(DeskTop)", "block-collections")}
355
347
  </p>
356
348
  )}
357
349
 
@@ -373,8 +365,8 @@ export default function BlockPlace(props) {
373
365
  icon={direction === "row" ? upper : justifyLeft}
374
366
  label={
375
367
  direction === "row"
376
- ? __("upper alignment", "itmar-block-packages")
377
- : __("left alignment", "itmar-block-packages")
368
+ ? __("upper alignment", "block-collections")
369
+ : __("left alignment", "block-collections")
378
370
  }
379
371
  />
380
372
  )}
@@ -394,7 +386,7 @@ export default function BlockPlace(props) {
394
386
  : () => props.onAlignChange("center")
395
387
  }
396
388
  icon={direction === "row" ? middle : justifyCenter}
397
- label={__("center alignment", "itmar-block-packages")}
389
+ label={__("center alignment", "block-collections")}
398
390
  />
399
391
  )}
400
392
  </ToolbarItem>
@@ -415,8 +407,8 @@ export default function BlockPlace(props) {
415
407
  icon={direction === "row" ? lower : justifyRight}
416
408
  label={
417
409
  direction === "row"
418
- ? __("lower alignment", "itmar-block-packages")
419
- : __("right alignment", "itmar-block-packages")
410
+ ? __("lower alignment", "block-collections")
411
+ : __("right alignment", "block-collections")
420
412
  }
421
413
  />
422
414
  )}
@@ -445,12 +437,12 @@ export default function BlockPlace(props) {
445
437
  {sel_pos.direction === "grid" && (
446
438
  <>
447
439
  {isMobile ? (
448
- <p>{__("Grid Info settings(Mobile)", "itmar-block-packages")}</p>
440
+ <p>{__("Grid Info settings(Mobile)", "block-collections")}</p>
449
441
  ) : (
450
- <p>{__("Grid Info settings(DeskTop)", "itmar-block-packages")}</p>
442
+ <p>{__("Grid Info settings(DeskTop)", "block-collections")}</p>
451
443
  )}
452
444
  <Button variant="primary" onClick={openGridModal}>
453
- {__("Open Setting Modal", "itmar-block-packages")}
445
+ {__("Open Setting Modal", "block-collections")}
454
446
  </Button>
455
447
  {isGridModalOpen && (
456
448
  <Modal title="Grid Info settings" onRequestClose={closeGridModal}>
@@ -467,20 +459,20 @@ export default function BlockPlace(props) {
467
459
  )}
468
460
  <div className="itmar_title_type">
469
461
  <RadioControl
470
- label={__("Position Type", "itmar-block-packages")}
462
+ label={__("Position Type", "block-collections")}
471
463
  selected={positionType}
472
464
  options={[
473
- { label: __("Static", "itmar-block-packages"), value: "staic" },
465
+ { label: __("Static", "block-collections"), value: "staic" },
474
466
  {
475
- label: __("Relative", "itmar-block-packages"),
467
+ label: __("Relative", "block-collections"),
476
468
  value: "relative",
477
469
  },
478
470
  {
479
- label: __("Absolute", "itmar-block-packages"),
471
+ label: __("Absolute", "block-collections"),
480
472
  value: "absolute",
481
473
  },
482
- { label: __("Fix", "itmar-block-packages"), value: "fixed" },
483
- { label: __("Sticky", "itmar-block-packages"), value: "sticky" },
474
+ { label: __("Fix", "block-collections"), value: "fixed" },
475
+ { label: __("Sticky", "block-collections"), value: "sticky" },
484
476
  ]}
485
477
  onChange={(newVal) => {
486
478
  props.onPositionChange(newVal);
@@ -491,7 +483,7 @@ export default function BlockPlace(props) {
491
483
  <ToggleControl
492
484
  label={__(
493
485
  "Center Vertically and Horizontally",
494
- "itmar-block-packages"
486
+ "block-collections"
495
487
  )}
496
488
  checked={isPosCenter}
497
489
  onChange={(newVal) => {
@@ -504,12 +496,12 @@ export default function BlockPlace(props) {
504
496
  positionType === "sticky") && (
505
497
  <>
506
498
  {isMobile ? (
507
- <p>{__("Block Position(Mobile)", "itmar-block-packages")}</p>
499
+ <p>{__("Block Position(Mobile)", "block-collections")}</p>
508
500
  ) : (
509
- <p>{__("Block Position(DeskTop)", "itmar-block-packages")}</p>
501
+ <p>{__("Block Position(DeskTop)", "block-collections")}</p>
510
502
  )}
511
503
  <PanelBody
512
- title={__("Vertical", "itmar-block-packages")}
504
+ title={__("Vertical", "block-collections")}
513
505
  initialOpen={true}
514
506
  >
515
507
  {!sel_pos.posValue?.isVertCenter && (
@@ -543,7 +535,7 @@ export default function BlockPlace(props) {
543
535
  )}
544
536
  {!isParallax && (
545
537
  <ToggleControl
546
- label={__("Is Center", "itmar-block-packages")}
538
+ label={__("Is Center", "block-collections")}
547
539
  checked={sel_pos.posValue?.isVertCenter}
548
540
  onChange={(newValue) => {
549
541
  const newValObj = {
@@ -557,7 +549,7 @@ export default function BlockPlace(props) {
557
549
  </PanelBody>
558
550
 
559
551
  <PanelBody
560
- title={__("Horizon", "itmar-block-packages")}
552
+ title={__("Horizon", "block-collections")}
561
553
  initialOpen={true}
562
554
  >
563
555
  {!sel_pos.posValue?.isHorCenter && (
@@ -591,7 +583,7 @@ export default function BlockPlace(props) {
591
583
  )}
592
584
  {!isParallax && (
593
585
  <ToggleControl
594
- label={__("Is Center", "itmar-block-packages")}
586
+ label={__("Is Center", "block-collections")}
595
587
  checked={sel_pos.posValue?.isHorCenter}
596
588
  onChange={(newValue) => {
597
589
  const newValObj = {
@@ -620,14 +612,14 @@ export function BlockWidth(props) {
620
612
  // 翻訳が必要な文字列を直接指定
621
613
  const blockMaxWidthMobile = __(
622
614
  "Block Max Width(Mobile)",
623
- "itmar-block-packages"
615
+ "block-collections"
624
616
  );
625
- const blockWidthMobile = __("Block Width(Mobile)", "itmar-block-packages");
617
+ const blockWidthMobile = __("Block Width(Mobile)", "block-collections");
626
618
  const blockMaxWidthDesktop = __(
627
619
  "Block Max Width(DeskTop)",
628
- "itmar-block-packages"
620
+ "block-collections"
629
621
  );
630
- const blockWidthDesktop = __("Block Width(DeskTop)", "itmar-block-packages");
622
+ const blockWidthDesktop = __("Block Width(DeskTop)", "block-collections");
631
623
 
632
624
  // ラベル
633
625
  const widthLabel = isMobile ? blockWidthMobile : blockWidthDesktop;
@@ -663,7 +655,7 @@ export function BlockWidth(props) {
663
655
  isPressed={sel_pos.width_val === "wideSize"}
664
656
  onClick={() => props.onWidthChange("width_val", "wideSize")}
665
657
  icon={stretchWide}
666
- label={__("Wide Size", "itmar-block-packages")}
658
+ label={__("Wide Size", "block-collections")}
667
659
  />
668
660
  )}
669
661
  </ToolbarItem>
@@ -674,7 +666,7 @@ export function BlockWidth(props) {
674
666
  isPressed={sel_pos.width_val === "contentSize"}
675
667
  onClick={() => props.onWidthChange("width_val", "contentSize")}
676
668
  icon={positionCenter}
677
- label={__("Content Size", "itmar-block-packages")}
669
+ label={__("Content Size", "block-collections")}
678
670
  />
679
671
  )}
680
672
  </ToolbarItem>
@@ -728,7 +720,7 @@ export function BlockWidth(props) {
728
720
  isPressed={sel_pos.max_width === "wideSize"}
729
721
  onClick={() => props.onWidthChange("max_width", "wideSize")}
730
722
  icon={stretchWide}
731
- label={__("Wide Size", "itmar-block-packages")}
723
+ label={__("Wide Size", "block-collections")}
732
724
  />
733
725
  )}
734
726
  </ToolbarItem>
@@ -739,7 +731,7 @@ export function BlockWidth(props) {
739
731
  isPressed={sel_pos.max_width === "contentSize"}
740
732
  onClick={() => props.onWidthChange("max_width", "contentSize")}
741
733
  icon={positionCenter}
742
- label={__("Content Size", "itmar-block-packages")}
734
+ label={__("Content Size", "block-collections")}
743
735
  />
744
736
  )}
745
737
  </ToolbarItem>
@@ -778,9 +770,9 @@ export function BlockHeight(props) {
778
770
  return (
779
771
  <>
780
772
  {isMobile ? (
781
- <p>{__("Block Height(Mobile)", "itmar-block-packages")}</p>
773
+ <p>{__("Block Height(Mobile)", "block-collections")}</p>
782
774
  ) : (
783
- <p>{__("Block Height(DeskTop)", "itmar-block-packages")}</p>
775
+ <p>{__("Block Height(DeskTop)", "block-collections")}</p>
784
776
  )}
785
777
  <ToolbarGroup>
786
778
  <ToolbarItem>
package/src/DateElm.js CHANGED
@@ -88,14 +88,14 @@ export const PeriodCtrl = ({
88
88
  }) => {
89
89
  return (
90
90
  <PanelBody
91
- title={__("Period Setting", "itmar-block-packages")}
91
+ title={__("Period Setting", "block-collections")}
92
92
  initialOpen={true}
93
93
  className="form_setteing_ctrl"
94
94
  >
95
- <label>{__("Start of period", "itmar-block-packages")}</label>
95
+ <label>{__("Start of period", "block-collections")}</label>
96
96
  <PanelRow className="itmar_date_span">
97
97
  <NumberControl
98
- label={__("Year", "itmar-block-packages")}
98
+ label={__("Year", "block-collections")}
99
99
  labelPosition="side"
100
100
  max={endYear}
101
101
  min={startYear}
@@ -112,7 +112,7 @@ export const PeriodCtrl = ({
112
112
  />
113
113
  {isMonth && (
114
114
  <NumberControl
115
- label={__("Month", "itmar-block-packages")}
115
+ label={__("Month", "block-collections")}
116
116
  labelPosition="side"
117
117
  max={12}
118
118
  min={1}
@@ -129,10 +129,10 @@ export const PeriodCtrl = ({
129
129
  />
130
130
  )}
131
131
  </PanelRow>
132
- <label>{__("End of period", "itmar-block-packages")}</label>
132
+ <label>{__("End of period", "block-collections")}</label>
133
133
  <PanelRow className="itmar_date_span">
134
134
  <NumberControl
135
- label={__("Year", "itmar-block-packages")}
135
+ label={__("Year", "block-collections")}
136
136
  labelPosition="side"
137
137
  max={endYear}
138
138
  min={startYear}
@@ -148,7 +148,7 @@ export const PeriodCtrl = ({
148
148
  value={dateSpan.endYear}
149
149
  />
150
150
  <NumberControl
151
- label={__("Month", "itmar-block-packages")}
151
+ label={__("Month", "block-collections")}
152
152
  labelPosition="side"
153
153
  max={12}
154
154
  min={1}
@@ -115,26 +115,26 @@ export default function DraggableBox(props) {
115
115
  return (
116
116
  <>
117
117
  <PanelBody
118
- title={__("Position Setting", "itmar-block-packages")}
118
+ title={__("Position Setting", "block-collections")}
119
119
  initialOpen={true}
120
120
  >
121
121
  <PanelRow className="distance_row">
122
122
  <UnitControl
123
123
  dragDirection="e"
124
124
  onChange={(value) => chagePosition(value, "x")}
125
- label={__("Vertical", "itmar-block-packages")}
125
+ label={__("Vertical", "block-collections")}
126
126
  value={position?.x || 0}
127
127
  />
128
128
  <UnitControl
129
129
  dragDirection="e"
130
130
  onChange={(value) => chagePosition(value, "y")}
131
- label={__("Horizen", "itmar-block-packages")}
131
+ label={__("Horizen", "block-collections")}
132
132
  value={position?.y || 0}
133
133
  />
134
134
  </PanelRow>
135
135
  <PanelRow className="reset_row">
136
136
  <Button variant="secondary" onClick={() => resetPos()}>
137
- {__("Reset", "itmar-block-packages")}
137
+ {__("Reset", "block-collections")}
138
138
  </Button>
139
139
  </PanelRow>
140
140
  </PanelBody>