@times-design-system/components-wordpress 1.8.0 → 1.8.1-alpha.3
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/README.md +44 -0
- package/dist/blocks/ad-container/block.json +3 -1
- package/dist/blocks/button/block.json +5 -6
- package/dist/blocks/button/edit.js +15 -21
- package/dist/blocks/button/render.php +43 -46
- package/dist/blocks/button/save.js +13 -19
- package/dist/blocks/button/style.css +8 -25
- package/dist/blocks/chip/block.json +7 -3
- package/dist/blocks/chip/render.php +1 -1
- package/dist/blocks/chip/style.css +3 -3
- package/dist/blocks/dialog-box/block.json +2 -1
- package/dist/blocks/divider/block.json +3 -1
- package/dist/blocks/flag/block.json +7 -3
- package/dist/blocks/flag/style.css +19 -22
- package/dist/blocks/icon/block.json +3 -2
- package/dist/blocks/icon/render.php +1 -1
- package/dist/blocks/icon-button/block.json +5 -2
- package/dist/blocks/icon-button/render.php +3 -2
- package/dist/blocks/icon-button/style.css +9 -8
- package/dist/blocks/input/block.json +3 -1
- package/dist/blocks/input/style.css +31 -17
- package/dist/blocks/input-helper-message/block.json +2 -1
- package/dist/blocks/link/block.json +7 -3
- package/dist/blocks/link/style.css +123 -21
- package/dist/blocks/tab/block.json +2 -1
- package/dist/blocks/tab/style.css +146 -17
- package/dist/blocks/tab-group/block.json +2 -1
- package/dist/blocks/text/block.json +3 -1
- package/dist/blocks/toast/block.json +3 -1
- package/dist/blocks/toast/style.css +32 -31
- package/dist/blocks/utils/render-icon.php +39 -0
- package/dist/blocks/utils/sanitize-data-attributes.php +37 -0
- package/dist/icon-data.json +3895 -1952
- package/dist/index.cjs +997 -278
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +998 -279
- package/dist/index.js.map +1 -1
- package/dist/plugin.php +162 -12
- package/dist/utils/render-icon.php +32 -6
- package/package.json +9 -6
- package/plugin.php +162 -12
- package/dist/blocks/button/style-editor.css +0 -15
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { registerBlockType } from '@wordpress/blocks';
|
|
2
|
-
import {
|
|
2
|
+
import { InspectorControls, useBlockProps, RichText } from '@wordpress/block-editor';
|
|
3
3
|
import { PanelBody, TextControl, SelectControl, ToggleControl, NumberControl } from '@wordpress/components';
|
|
4
4
|
|
|
5
5
|
function _defineProperty(e, r, t) {
|
|
@@ -104,9 +104,6 @@ function Edit(_ref) {
|
|
|
104
104
|
ariaLabel = attributes.ariaLabel,
|
|
105
105
|
classes = attributes.classes;
|
|
106
106
|
attributes.dataAttributes;
|
|
107
|
-
var blockProps = useBlockProps({
|
|
108
|
-
className: 'tds-button-wrapper'
|
|
109
|
-
});
|
|
110
107
|
var buttonClass = buildButtonClass({
|
|
111
108
|
intent: intent,
|
|
112
109
|
size: size,
|
|
@@ -114,7 +111,7 @@ function Edit(_ref) {
|
|
|
114
111
|
disabled: disabled
|
|
115
112
|
});
|
|
116
113
|
var Element = href ? 'a' : 'button';
|
|
117
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
114
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Element, {
|
|
118
115
|
className: buttonClass,
|
|
119
116
|
disabled: !href && disabled,
|
|
120
117
|
href: href,
|
|
@@ -126,7 +123,7 @@ function Edit(_ref) {
|
|
|
126
123
|
className: "tds-button__label-container"
|
|
127
124
|
}, /*#__PURE__*/React.createElement("span", {
|
|
128
125
|
className: "tds-button__label"
|
|
129
|
-
}, label)))
|
|
126
|
+
}, label))), /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
|
|
130
127
|
title: "Button Settings"
|
|
131
128
|
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
132
129
|
label: "Label",
|
|
@@ -167,6 +164,9 @@ function Edit(_ref) {
|
|
|
167
164
|
}, {
|
|
168
165
|
label: 'Large',
|
|
169
166
|
value: 'large'
|
|
167
|
+
}, {
|
|
168
|
+
label: 'XLarge',
|
|
169
|
+
value: 'xlarge'
|
|
170
170
|
}],
|
|
171
171
|
onChange: function onChange(value) {
|
|
172
172
|
return setAttributes({
|
|
@@ -341,9 +341,6 @@ function Save(_ref) {
|
|
|
341
341
|
attributes.iconLeft;
|
|
342
342
|
attributes.iconRight;
|
|
343
343
|
var ariaLabel = attributes.ariaLabel;
|
|
344
|
-
var blockProps = useBlockProps.save({
|
|
345
|
-
className: 'tds-button-wrapper'
|
|
346
|
-
});
|
|
347
344
|
var buttonClass = buildButtonClass({
|
|
348
345
|
intent: intent,
|
|
349
346
|
size: size,
|
|
@@ -352,7 +349,7 @@ function Save(_ref) {
|
|
|
352
349
|
disabled: disabled
|
|
353
350
|
});
|
|
354
351
|
var Element = href ? 'a' : 'button';
|
|
355
|
-
return /*#__PURE__*/React.createElement(
|
|
352
|
+
return /*#__PURE__*/React.createElement(Element, {
|
|
356
353
|
className: buttonClass,
|
|
357
354
|
disabled: !href && disabled,
|
|
358
355
|
href: href,
|
|
@@ -364,17 +361,17 @@ function Save(_ref) {
|
|
|
364
361
|
className: "tds-button__label-container"
|
|
365
362
|
}, /*#__PURE__*/React.createElement("span", {
|
|
366
363
|
className: "tds-button__label"
|
|
367
|
-
}, label)))
|
|
364
|
+
}, label)));
|
|
368
365
|
}
|
|
369
366
|
|
|
370
|
-
var $schema$
|
|
371
|
-
var apiVersion$
|
|
372
|
-
var name$
|
|
373
|
-
var title$
|
|
374
|
-
var category$
|
|
375
|
-
var description$
|
|
376
|
-
var icon$
|
|
377
|
-
var supports$
|
|
367
|
+
var $schema$e = "https://schemas.wp.org/trunk/block.json";
|
|
368
|
+
var apiVersion$e = 3;
|
|
369
|
+
var name$e = "tds/button";
|
|
370
|
+
var title$e = "Button";
|
|
371
|
+
var category$e = "common";
|
|
372
|
+
var description$e = "A customizable button component for user interactions";
|
|
373
|
+
var icon$e = "admin-generic";
|
|
374
|
+
var supports$e = {
|
|
378
375
|
html: false,
|
|
379
376
|
spacing: {
|
|
380
377
|
margin: true,
|
|
@@ -383,9 +380,9 @@ var supports$9 = {
|
|
|
383
380
|
align: true,
|
|
384
381
|
customClassName: true
|
|
385
382
|
};
|
|
386
|
-
var textdomain = "times-design-system";
|
|
387
|
-
var render$
|
|
388
|
-
var attributes$
|
|
383
|
+
var textdomain$5 = "times-design-system";
|
|
384
|
+
var render$e = "file:./render.php";
|
|
385
|
+
var attributes$e = {
|
|
389
386
|
label: {
|
|
390
387
|
type: "string",
|
|
391
388
|
"default": "Button label",
|
|
@@ -406,7 +403,8 @@ var attributes$9 = {
|
|
|
406
403
|
"enum": [
|
|
407
404
|
"small",
|
|
408
405
|
"medium",
|
|
409
|
-
"large"
|
|
406
|
+
"large",
|
|
407
|
+
"xlarge"
|
|
410
408
|
],
|
|
411
409
|
"default": "large",
|
|
412
410
|
description: "Controls the overall dimensions of the button"
|
|
@@ -465,11 +463,11 @@ var attributes$9 = {
|
|
|
465
463
|
},
|
|
466
464
|
iconLeft: {
|
|
467
465
|
type: "string",
|
|
468
|
-
description: "Icon
|
|
466
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_circle', 'outlined_circle')"
|
|
469
467
|
},
|
|
470
468
|
iconRight: {
|
|
471
469
|
type: "string",
|
|
472
|
-
description: "Icon
|
|
470
|
+
description: "Icon on the right with variant prefix (e.g., 'filled_circle', 'outlined_circle')"
|
|
473
471
|
},
|
|
474
472
|
ariaLabel: {
|
|
475
473
|
type: "string",
|
|
@@ -487,24 +485,22 @@ var attributes$9 = {
|
|
|
487
485
|
description: "Custom data-* attributes for extensibility (allowlisted server-side)"
|
|
488
486
|
}
|
|
489
487
|
};
|
|
490
|
-
var editorScript = "
|
|
491
|
-
var
|
|
492
|
-
var style = "file:./style.css";
|
|
488
|
+
var editorScript$e = "times-design-system";
|
|
489
|
+
var script$e = "times-design-system";
|
|
493
490
|
var metadata$9 = {
|
|
494
|
-
$schema: $schema$
|
|
495
|
-
apiVersion: apiVersion$
|
|
496
|
-
name: name$
|
|
497
|
-
title: title$
|
|
498
|
-
category: category$
|
|
499
|
-
description: description$
|
|
500
|
-
icon: icon$
|
|
501
|
-
supports: supports$
|
|
502
|
-
textdomain: textdomain,
|
|
503
|
-
render: render$
|
|
504
|
-
attributes: attributes$
|
|
505
|
-
editorScript: editorScript,
|
|
506
|
-
|
|
507
|
-
style: style
|
|
491
|
+
$schema: $schema$e,
|
|
492
|
+
apiVersion: apiVersion$e,
|
|
493
|
+
name: name$e,
|
|
494
|
+
title: title$e,
|
|
495
|
+
category: category$e,
|
|
496
|
+
description: description$e,
|
|
497
|
+
icon: icon$e,
|
|
498
|
+
supports: supports$e,
|
|
499
|
+
textdomain: textdomain$5,
|
|
500
|
+
render: render$e,
|
|
501
|
+
attributes: attributes$e,
|
|
502
|
+
editorScript: editorScript$e,
|
|
503
|
+
script: script$e
|
|
508
504
|
};
|
|
509
505
|
|
|
510
506
|
registerBlockType(metadata$9.name, _objectSpread2(_objectSpread2({}, metadata$9), {}, {
|
|
@@ -512,14 +508,14 @@ registerBlockType(metadata$9.name, _objectSpread2(_objectSpread2({}, metadata$9)
|
|
|
512
508
|
save: Save
|
|
513
509
|
}));
|
|
514
510
|
|
|
515
|
-
var $schema$
|
|
516
|
-
var apiVersion$
|
|
517
|
-
var name$
|
|
518
|
-
var title$
|
|
519
|
-
var category$
|
|
520
|
-
var description$
|
|
521
|
-
var icon$
|
|
522
|
-
var supports$
|
|
511
|
+
var $schema$d = "https://schemas.wp.org/trunk/block.json";
|
|
512
|
+
var apiVersion$d = 3;
|
|
513
|
+
var name$d = "tds/divider";
|
|
514
|
+
var title$d = "Divider";
|
|
515
|
+
var category$d = "common";
|
|
516
|
+
var description$d = "A horizontal line divider component";
|
|
517
|
+
var icon$d = "minus";
|
|
518
|
+
var supports$d = {
|
|
523
519
|
html: false,
|
|
524
520
|
spacing: {
|
|
525
521
|
margin: true
|
|
@@ -529,8 +525,8 @@ var supports$8 = {
|
|
|
529
525
|
"full"
|
|
530
526
|
]
|
|
531
527
|
};
|
|
532
|
-
var render$
|
|
533
|
-
var attributes$
|
|
528
|
+
var render$d = "file:./render.php";
|
|
529
|
+
var attributes$d = {
|
|
534
530
|
isDashed: {
|
|
535
531
|
type: "boolean",
|
|
536
532
|
"default": false
|
|
@@ -557,21 +553,25 @@ var attributes$8 = {
|
|
|
557
553
|
};
|
|
558
554
|
var example$8 = {
|
|
559
555
|
};
|
|
556
|
+
var script$d = "times-design-system";
|
|
557
|
+
var editorScript$d = "times-design-system";
|
|
560
558
|
var metadata$8 = {
|
|
561
|
-
$schema: $schema$
|
|
562
|
-
apiVersion: apiVersion$
|
|
563
|
-
name: name$
|
|
564
|
-
title: title$
|
|
565
|
-
category: category$
|
|
566
|
-
description: description$
|
|
567
|
-
icon: icon$
|
|
568
|
-
supports: supports$
|
|
569
|
-
render: render$
|
|
570
|
-
attributes: attributes$
|
|
571
|
-
example: example$8
|
|
559
|
+
$schema: $schema$d,
|
|
560
|
+
apiVersion: apiVersion$d,
|
|
561
|
+
name: name$d,
|
|
562
|
+
title: title$d,
|
|
563
|
+
category: category$d,
|
|
564
|
+
description: description$d,
|
|
565
|
+
icon: icon$d,
|
|
566
|
+
supports: supports$d,
|
|
567
|
+
render: render$d,
|
|
568
|
+
attributes: attributes$d,
|
|
569
|
+
example: example$8,
|
|
570
|
+
script: script$d,
|
|
571
|
+
editorScript: editorScript$d
|
|
572
572
|
};
|
|
573
573
|
|
|
574
|
-
var edit$
|
|
574
|
+
var edit$d = function edit(_ref) {
|
|
575
575
|
var attributes = _ref.attributes,
|
|
576
576
|
setAttributes = _ref.setAttributes;
|
|
577
577
|
var isDashed = attributes.isDashed,
|
|
@@ -637,7 +637,7 @@ var edit$8 = function edit(_ref) {
|
|
|
637
637
|
})));
|
|
638
638
|
};
|
|
639
639
|
|
|
640
|
-
var save$
|
|
640
|
+
var save$d = function save(_ref) {
|
|
641
641
|
var attributes = _ref.attributes;
|
|
642
642
|
var isDashed = attributes.isDashed,
|
|
643
643
|
isVertical = attributes.isVertical,
|
|
@@ -656,26 +656,26 @@ var save$8 = function save(_ref) {
|
|
|
656
656
|
};
|
|
657
657
|
|
|
658
658
|
registerBlockType(metadata$8.name, _objectSpread2(_objectSpread2({}, metadata$8), {}, {
|
|
659
|
-
edit: edit$
|
|
660
|
-
save: save$
|
|
659
|
+
edit: edit$d,
|
|
660
|
+
save: save$d
|
|
661
661
|
}));
|
|
662
662
|
|
|
663
|
-
var $schema$
|
|
664
|
-
var apiVersion$
|
|
665
|
-
var name$
|
|
666
|
-
var title$
|
|
667
|
-
var category$
|
|
668
|
-
var description$
|
|
669
|
-
var icon$
|
|
670
|
-
var supports$
|
|
663
|
+
var $schema$c = "https://schemas.wp.org/trunk/block.json";
|
|
664
|
+
var apiVersion$c = 3;
|
|
665
|
+
var name$c = "tds/text";
|
|
666
|
+
var title$c = "Text";
|
|
667
|
+
var category$c = "common";
|
|
668
|
+
var description$c = "Typography component for displaying text with style variants";
|
|
669
|
+
var icon$c = "editor-paragraph";
|
|
670
|
+
var supports$c = {
|
|
671
671
|
html: false,
|
|
672
672
|
spacing: {
|
|
673
673
|
margin: true,
|
|
674
674
|
padding: false
|
|
675
675
|
}
|
|
676
676
|
};
|
|
677
|
-
var render$
|
|
678
|
-
var attributes$
|
|
677
|
+
var render$c = "file:./render.php";
|
|
678
|
+
var attributes$c = {
|
|
679
679
|
as: {
|
|
680
680
|
type: "string",
|
|
681
681
|
"default": "p",
|
|
@@ -711,21 +711,25 @@ var attributes$7 = {
|
|
|
711
711
|
};
|
|
712
712
|
var example$7 = {
|
|
713
713
|
};
|
|
714
|
+
var script$c = "times-design-system";
|
|
715
|
+
var editorScript$c = "times-design-system";
|
|
714
716
|
var metadata$7 = {
|
|
715
|
-
$schema: $schema$
|
|
716
|
-
apiVersion: apiVersion$
|
|
717
|
-
name: name$
|
|
718
|
-
title: title$
|
|
719
|
-
category: category$
|
|
720
|
-
description: description$
|
|
721
|
-
icon: icon$
|
|
722
|
-
supports: supports$
|
|
723
|
-
render: render$
|
|
724
|
-
attributes: attributes$
|
|
725
|
-
example: example$7
|
|
717
|
+
$schema: $schema$c,
|
|
718
|
+
apiVersion: apiVersion$c,
|
|
719
|
+
name: name$c,
|
|
720
|
+
title: title$c,
|
|
721
|
+
category: category$c,
|
|
722
|
+
description: description$c,
|
|
723
|
+
icon: icon$c,
|
|
724
|
+
supports: supports$c,
|
|
725
|
+
render: render$c,
|
|
726
|
+
attributes: attributes$c,
|
|
727
|
+
example: example$7,
|
|
728
|
+
script: script$c,
|
|
729
|
+
editorScript: editorScript$c
|
|
726
730
|
};
|
|
727
731
|
|
|
728
|
-
var edit$
|
|
732
|
+
var edit$c = function edit(_ref) {
|
|
729
733
|
var attributes = _ref.attributes,
|
|
730
734
|
setAttributes = _ref.setAttributes;
|
|
731
735
|
var as = attributes.as,
|
|
@@ -817,7 +821,7 @@ var edit$7 = function edit(_ref) {
|
|
|
817
821
|
})));
|
|
818
822
|
};
|
|
819
823
|
|
|
820
|
-
var save$
|
|
824
|
+
var save$c = function save(_ref) {
|
|
821
825
|
var attributes = _ref.attributes;
|
|
822
826
|
var as = attributes.as,
|
|
823
827
|
typographyStyle = attributes.typographyStyle,
|
|
@@ -832,25 +836,25 @@ var save$7 = function save(_ref) {
|
|
|
832
836
|
};
|
|
833
837
|
|
|
834
838
|
registerBlockType(metadata$7.name, _objectSpread2(_objectSpread2({}, metadata$7), {}, {
|
|
835
|
-
edit: edit$
|
|
836
|
-
save: save$
|
|
839
|
+
edit: edit$c,
|
|
840
|
+
save: save$c
|
|
837
841
|
}));
|
|
838
842
|
|
|
839
|
-
var $schema$
|
|
840
|
-
var apiVersion$
|
|
841
|
-
var name$
|
|
842
|
-
var title$
|
|
843
|
-
var category$
|
|
844
|
-
var description$
|
|
845
|
-
var icon$
|
|
846
|
-
var supports$
|
|
843
|
+
var $schema$b = "https://schemas.wp.org/trunk/block.json";
|
|
844
|
+
var apiVersion$b = 3;
|
|
845
|
+
var name$b = "tds/input";
|
|
846
|
+
var title$b = "Input";
|
|
847
|
+
var category$b = "common";
|
|
848
|
+
var description$b = "Form input field component";
|
|
849
|
+
var icon$b = "text";
|
|
850
|
+
var supports$b = {
|
|
847
851
|
html: false,
|
|
848
852
|
spacing: {
|
|
849
853
|
margin: true
|
|
850
854
|
}
|
|
851
855
|
};
|
|
852
|
-
var render$
|
|
853
|
-
var attributes$
|
|
856
|
+
var render$b = "file:./render.php";
|
|
857
|
+
var attributes$b = {
|
|
854
858
|
label: {
|
|
855
859
|
type: "string",
|
|
856
860
|
"default": ""
|
|
@@ -901,21 +905,25 @@ var attributes$6 = {
|
|
|
901
905
|
};
|
|
902
906
|
var example$6 = {
|
|
903
907
|
};
|
|
908
|
+
var script$b = "times-design-system";
|
|
909
|
+
var editorScript$b = "times-design-system";
|
|
904
910
|
var metadata$6 = {
|
|
905
|
-
$schema: $schema$
|
|
906
|
-
apiVersion: apiVersion$
|
|
907
|
-
name: name$
|
|
908
|
-
title: title$
|
|
909
|
-
category: category$
|
|
910
|
-
description: description$
|
|
911
|
-
icon: icon$
|
|
912
|
-
supports: supports$
|
|
913
|
-
render: render$
|
|
914
|
-
attributes: attributes$
|
|
915
|
-
example: example$6
|
|
911
|
+
$schema: $schema$b,
|
|
912
|
+
apiVersion: apiVersion$b,
|
|
913
|
+
name: name$b,
|
|
914
|
+
title: title$b,
|
|
915
|
+
category: category$b,
|
|
916
|
+
description: description$b,
|
|
917
|
+
icon: icon$b,
|
|
918
|
+
supports: supports$b,
|
|
919
|
+
render: render$b,
|
|
920
|
+
attributes: attributes$b,
|
|
921
|
+
example: example$6,
|
|
922
|
+
script: script$b,
|
|
923
|
+
editorScript: editorScript$b
|
|
916
924
|
};
|
|
917
925
|
|
|
918
|
-
var edit$
|
|
926
|
+
var edit$b = function edit(_ref) {
|
|
919
927
|
var attributes = _ref.attributes,
|
|
920
928
|
setAttributes = _ref.setAttributes;
|
|
921
929
|
var label = attributes.label,
|
|
@@ -1037,7 +1045,7 @@ var edit$6 = function edit(_ref) {
|
|
|
1037
1045
|
})));
|
|
1038
1046
|
};
|
|
1039
1047
|
|
|
1040
|
-
var save$
|
|
1048
|
+
var save$b = function save(_ref) {
|
|
1041
1049
|
var attributes = _ref.attributes;
|
|
1042
1050
|
var label = attributes.label,
|
|
1043
1051
|
placeholder = attributes.placeholder,
|
|
@@ -1062,28 +1070,29 @@ var save$6 = function save(_ref) {
|
|
|
1062
1070
|
};
|
|
1063
1071
|
|
|
1064
1072
|
registerBlockType(metadata$6.name, _objectSpread2(_objectSpread2({}, metadata$6), {}, {
|
|
1065
|
-
edit: edit$
|
|
1066
|
-
save: save$
|
|
1073
|
+
edit: edit$b,
|
|
1074
|
+
save: save$b
|
|
1067
1075
|
}));
|
|
1068
1076
|
|
|
1069
|
-
var $schema$
|
|
1070
|
-
var apiVersion$
|
|
1071
|
-
var name$
|
|
1072
|
-
var title$
|
|
1073
|
-
var category$
|
|
1074
|
-
var description$
|
|
1075
|
-
var icon$
|
|
1076
|
-
var supports$
|
|
1077
|
+
var $schema$a = "https://schemas.wp.org/trunk/block.json";
|
|
1078
|
+
var apiVersion$a = 3;
|
|
1079
|
+
var name$a = "tds/icon-button";
|
|
1080
|
+
var title$a = "Icon Button";
|
|
1081
|
+
var category$a = "common";
|
|
1082
|
+
var description$a = "Button component displaying only an icon";
|
|
1083
|
+
var icon$a = "button";
|
|
1084
|
+
var supports$a = {
|
|
1077
1085
|
html: false,
|
|
1078
1086
|
spacing: {
|
|
1079
1087
|
margin: true
|
|
1080
1088
|
}
|
|
1081
1089
|
};
|
|
1082
|
-
var render$
|
|
1083
|
-
var attributes$
|
|
1090
|
+
var render$a = "file:./render.php";
|
|
1091
|
+
var attributes$a = {
|
|
1084
1092
|
iconName: {
|
|
1085
1093
|
type: "string",
|
|
1086
|
-
"default": ""
|
|
1094
|
+
"default": "",
|
|
1095
|
+
description: "Icon name with variant prefix (e.g., 'filled_accessibility', 'outlined_accessibility')"
|
|
1087
1096
|
},
|
|
1088
1097
|
iconSize: {
|
|
1089
1098
|
type: "string",
|
|
@@ -1144,21 +1153,25 @@ var attributes$5 = {
|
|
|
1144
1153
|
};
|
|
1145
1154
|
var example$5 = {
|
|
1146
1155
|
};
|
|
1156
|
+
var script$a = "times-design-system";
|
|
1157
|
+
var editorScript$a = "times-design-system";
|
|
1147
1158
|
var metadata$5 = {
|
|
1148
|
-
$schema: $schema$
|
|
1149
|
-
apiVersion: apiVersion$
|
|
1150
|
-
name: name$
|
|
1151
|
-
title: title$
|
|
1152
|
-
category: category$
|
|
1153
|
-
description: description$
|
|
1154
|
-
icon: icon$
|
|
1155
|
-
supports: supports$
|
|
1156
|
-
render: render$
|
|
1157
|
-
attributes: attributes$
|
|
1158
|
-
example: example$5
|
|
1159
|
+
$schema: $schema$a,
|
|
1160
|
+
apiVersion: apiVersion$a,
|
|
1161
|
+
name: name$a,
|
|
1162
|
+
title: title$a,
|
|
1163
|
+
category: category$a,
|
|
1164
|
+
description: description$a,
|
|
1165
|
+
icon: icon$a,
|
|
1166
|
+
supports: supports$a,
|
|
1167
|
+
render: render$a,
|
|
1168
|
+
attributes: attributes$a,
|
|
1169
|
+
example: example$5,
|
|
1170
|
+
script: script$a,
|
|
1171
|
+
editorScript: editorScript$a
|
|
1159
1172
|
};
|
|
1160
1173
|
|
|
1161
|
-
var edit$
|
|
1174
|
+
var edit$a = function edit(_ref) {
|
|
1162
1175
|
var attributes = _ref.attributes,
|
|
1163
1176
|
setAttributes = _ref.setAttributes;
|
|
1164
1177
|
var iconName = attributes.iconName,
|
|
@@ -1280,7 +1293,7 @@ var edit$5 = function edit(_ref) {
|
|
|
1280
1293
|
}, iconName)));
|
|
1281
1294
|
};
|
|
1282
1295
|
|
|
1283
|
-
var save$
|
|
1296
|
+
var save$a = function save(_ref) {
|
|
1284
1297
|
var attributes = _ref.attributes;
|
|
1285
1298
|
var iconName = attributes.iconName,
|
|
1286
1299
|
round = attributes.round,
|
|
@@ -1307,25 +1320,25 @@ var save$5 = function save(_ref) {
|
|
|
1307
1320
|
};
|
|
1308
1321
|
|
|
1309
1322
|
registerBlockType(metadata$5.name, _objectSpread2(_objectSpread2({}, metadata$5), {}, {
|
|
1310
|
-
edit: edit$
|
|
1311
|
-
save: save$
|
|
1323
|
+
edit: edit$a,
|
|
1324
|
+
save: save$a
|
|
1312
1325
|
}));
|
|
1313
1326
|
|
|
1314
|
-
var $schema$
|
|
1315
|
-
var apiVersion$
|
|
1316
|
-
var name$
|
|
1317
|
-
var title$
|
|
1318
|
-
var category$
|
|
1319
|
-
var description$
|
|
1320
|
-
var icon$
|
|
1321
|
-
var supports$
|
|
1327
|
+
var $schema$9 = "https://schemas.wp.org/trunk/block.json";
|
|
1328
|
+
var apiVersion$9 = 3;
|
|
1329
|
+
var name$9 = "tds/chip";
|
|
1330
|
+
var title$9 = "Chip";
|
|
1331
|
+
var category$9 = "common";
|
|
1332
|
+
var description$9 = "Small component for displaying labels, tags, or filter options";
|
|
1333
|
+
var icon$9 = "tag";
|
|
1334
|
+
var supports$9 = {
|
|
1322
1335
|
html: false,
|
|
1323
1336
|
spacing: {
|
|
1324
1337
|
margin: true
|
|
1325
1338
|
}
|
|
1326
1339
|
};
|
|
1327
|
-
var render$
|
|
1328
|
-
var attributes$
|
|
1340
|
+
var render$9 = "file:./render.php";
|
|
1341
|
+
var attributes$9 = {
|
|
1329
1342
|
content: {
|
|
1330
1343
|
type: "string",
|
|
1331
1344
|
"default": ""
|
|
@@ -1356,11 +1369,13 @@ var attributes$4 = {
|
|
|
1356
1369
|
},
|
|
1357
1370
|
iconLeft: {
|
|
1358
1371
|
type: "string",
|
|
1359
|
-
"default": ""
|
|
1372
|
+
"default": "",
|
|
1373
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_circle')"
|
|
1360
1374
|
},
|
|
1361
1375
|
iconRight: {
|
|
1362
1376
|
type: "string",
|
|
1363
|
-
"default": ""
|
|
1377
|
+
"default": "",
|
|
1378
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_circle')"
|
|
1364
1379
|
},
|
|
1365
1380
|
ariaLabel: {
|
|
1366
1381
|
type: "string",
|
|
@@ -1380,21 +1395,25 @@ var attributes$4 = {
|
|
|
1380
1395
|
};
|
|
1381
1396
|
var example$4 = {
|
|
1382
1397
|
};
|
|
1398
|
+
var script$9 = "times-design-system";
|
|
1399
|
+
var editorScript$9 = "times-design-system";
|
|
1383
1400
|
var metadata$4 = {
|
|
1384
|
-
$schema: $schema$
|
|
1385
|
-
apiVersion: apiVersion$
|
|
1386
|
-
name: name$
|
|
1387
|
-
title: title$
|
|
1388
|
-
category: category$
|
|
1389
|
-
description: description$
|
|
1390
|
-
icon: icon$
|
|
1391
|
-
supports: supports$
|
|
1392
|
-
render: render$
|
|
1393
|
-
attributes: attributes$
|
|
1394
|
-
example: example$4
|
|
1401
|
+
$schema: $schema$9,
|
|
1402
|
+
apiVersion: apiVersion$9,
|
|
1403
|
+
name: name$9,
|
|
1404
|
+
title: title$9,
|
|
1405
|
+
category: category$9,
|
|
1406
|
+
description: description$9,
|
|
1407
|
+
icon: icon$9,
|
|
1408
|
+
supports: supports$9,
|
|
1409
|
+
render: render$9,
|
|
1410
|
+
attributes: attributes$9,
|
|
1411
|
+
example: example$4,
|
|
1412
|
+
script: script$9,
|
|
1413
|
+
editorScript: editorScript$9
|
|
1395
1414
|
};
|
|
1396
1415
|
|
|
1397
|
-
var edit$
|
|
1416
|
+
var edit$9 = function edit(_ref) {
|
|
1398
1417
|
var attributes = _ref.attributes,
|
|
1399
1418
|
setAttributes = _ref.setAttributes;
|
|
1400
1419
|
var content = attributes.content,
|
|
@@ -1526,7 +1545,7 @@ var edit$4 = function edit(_ref) {
|
|
|
1526
1545
|
}, iconRight)));
|
|
1527
1546
|
};
|
|
1528
1547
|
|
|
1529
|
-
var save$
|
|
1548
|
+
var save$9 = function save(_ref) {
|
|
1530
1549
|
var attributes = _ref.attributes;
|
|
1531
1550
|
var content = attributes.content,
|
|
1532
1551
|
intent = attributes.intent,
|
|
@@ -1561,25 +1580,25 @@ var save$4 = function save(_ref) {
|
|
|
1561
1580
|
};
|
|
1562
1581
|
|
|
1563
1582
|
registerBlockType(metadata$4.name, _objectSpread2(_objectSpread2({}, metadata$4), {}, {
|
|
1564
|
-
edit: edit$
|
|
1565
|
-
save: save$
|
|
1583
|
+
edit: edit$9,
|
|
1584
|
+
save: save$9
|
|
1566
1585
|
}));
|
|
1567
1586
|
|
|
1568
|
-
var $schema$
|
|
1569
|
-
var apiVersion$
|
|
1570
|
-
var name$
|
|
1571
|
-
var title$
|
|
1572
|
-
var category$
|
|
1573
|
-
var description$
|
|
1574
|
-
var icon$
|
|
1575
|
-
var supports$
|
|
1587
|
+
var $schema$8 = "https://schemas.wp.org/trunk/block.json";
|
|
1588
|
+
var apiVersion$8 = 3;
|
|
1589
|
+
var name$8 = "tds/flag";
|
|
1590
|
+
var title$8 = "Flag";
|
|
1591
|
+
var category$8 = "common";
|
|
1592
|
+
var description$8 = "Badge or status indicator component";
|
|
1593
|
+
var icon$8 = "flag";
|
|
1594
|
+
var supports$8 = {
|
|
1576
1595
|
html: false,
|
|
1577
1596
|
spacing: {
|
|
1578
1597
|
margin: true
|
|
1579
1598
|
}
|
|
1580
1599
|
};
|
|
1581
|
-
var render$
|
|
1582
|
-
var attributes$
|
|
1600
|
+
var render$8 = "file:./render.php";
|
|
1601
|
+
var attributes$8 = {
|
|
1583
1602
|
label: {
|
|
1584
1603
|
type: "string",
|
|
1585
1604
|
"default": ""
|
|
@@ -1609,11 +1628,13 @@ var attributes$3 = {
|
|
|
1609
1628
|
},
|
|
1610
1629
|
iconLeft: {
|
|
1611
1630
|
type: "string",
|
|
1612
|
-
"default": ""
|
|
1631
|
+
"default": "",
|
|
1632
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_check')"
|
|
1613
1633
|
},
|
|
1614
1634
|
iconRight: {
|
|
1615
1635
|
type: "string",
|
|
1616
|
-
"default": ""
|
|
1636
|
+
"default": "",
|
|
1637
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_check')"
|
|
1617
1638
|
},
|
|
1618
1639
|
ariaLabel: {
|
|
1619
1640
|
type: "string",
|
|
@@ -1633,21 +1654,25 @@ var attributes$3 = {
|
|
|
1633
1654
|
};
|
|
1634
1655
|
var example$3 = {
|
|
1635
1656
|
};
|
|
1657
|
+
var script$8 = "times-design-system";
|
|
1658
|
+
var editorScript$8 = "times-design-system";
|
|
1636
1659
|
var metadata$3 = {
|
|
1637
|
-
$schema: $schema$
|
|
1638
|
-
apiVersion: apiVersion$
|
|
1639
|
-
name: name$
|
|
1640
|
-
title: title$
|
|
1641
|
-
category: category$
|
|
1642
|
-
description: description$
|
|
1643
|
-
icon: icon$
|
|
1644
|
-
supports: supports$
|
|
1645
|
-
render: render$
|
|
1646
|
-
attributes: attributes$
|
|
1647
|
-
example: example$3
|
|
1660
|
+
$schema: $schema$8,
|
|
1661
|
+
apiVersion: apiVersion$8,
|
|
1662
|
+
name: name$8,
|
|
1663
|
+
title: title$8,
|
|
1664
|
+
category: category$8,
|
|
1665
|
+
description: description$8,
|
|
1666
|
+
icon: icon$8,
|
|
1667
|
+
supports: supports$8,
|
|
1668
|
+
render: render$8,
|
|
1669
|
+
attributes: attributes$8,
|
|
1670
|
+
example: example$3,
|
|
1671
|
+
script: script$8,
|
|
1672
|
+
editorScript: editorScript$8
|
|
1648
1673
|
};
|
|
1649
1674
|
|
|
1650
|
-
var edit$
|
|
1675
|
+
var edit$8 = function edit(_ref) {
|
|
1651
1676
|
var attributes = _ref.attributes,
|
|
1652
1677
|
setAttributes = _ref.setAttributes;
|
|
1653
1678
|
var label = attributes.label,
|
|
@@ -1779,7 +1804,7 @@ var edit$3 = function edit(_ref) {
|
|
|
1779
1804
|
}, iconRight)));
|
|
1780
1805
|
};
|
|
1781
1806
|
|
|
1782
|
-
var save$
|
|
1807
|
+
var save$8 = function save(_ref) {
|
|
1783
1808
|
var attributes = _ref.attributes;
|
|
1784
1809
|
var label = attributes.label,
|
|
1785
1810
|
content = attributes.content,
|
|
@@ -1811,25 +1836,25 @@ var save$3 = function save(_ref) {
|
|
|
1811
1836
|
};
|
|
1812
1837
|
|
|
1813
1838
|
registerBlockType(metadata$3.name, _objectSpread2(_objectSpread2({}, metadata$3), {}, {
|
|
1814
|
-
edit: edit$
|
|
1815
|
-
save: save$
|
|
1839
|
+
edit: edit$8,
|
|
1840
|
+
save: save$8
|
|
1816
1841
|
}));
|
|
1817
1842
|
|
|
1818
|
-
var $schema$
|
|
1819
|
-
var apiVersion$
|
|
1820
|
-
var name$
|
|
1821
|
-
var title$
|
|
1822
|
-
var category$
|
|
1823
|
-
var description$
|
|
1824
|
-
var icon$
|
|
1825
|
-
var supports$
|
|
1843
|
+
var $schema$7 = "https://schemas.wp.org/trunk/block.json";
|
|
1844
|
+
var apiVersion$7 = 3;
|
|
1845
|
+
var name$7 = "tds/toast";
|
|
1846
|
+
var title$7 = "Toast";
|
|
1847
|
+
var category$7 = "common";
|
|
1848
|
+
var description$7 = "Notification toast component";
|
|
1849
|
+
var icon$7 = "bell";
|
|
1850
|
+
var supports$7 = {
|
|
1826
1851
|
html: false,
|
|
1827
1852
|
spacing: {
|
|
1828
1853
|
margin: true
|
|
1829
1854
|
}
|
|
1830
1855
|
};
|
|
1831
|
-
var render$
|
|
1832
|
-
var attributes$
|
|
1856
|
+
var render$7 = "file:./render.php";
|
|
1857
|
+
var attributes$7 = {
|
|
1833
1858
|
label: {
|
|
1834
1859
|
type: "string",
|
|
1835
1860
|
"default": ""
|
|
@@ -1870,21 +1895,25 @@ var attributes$2 = {
|
|
|
1870
1895
|
};
|
|
1871
1896
|
var example$2 = {
|
|
1872
1897
|
};
|
|
1898
|
+
var script$7 = "times-design-system";
|
|
1899
|
+
var editorScript$7 = "times-design-system";
|
|
1873
1900
|
var metadata$2 = {
|
|
1874
|
-
$schema: $schema$
|
|
1875
|
-
apiVersion: apiVersion$
|
|
1876
|
-
name: name$
|
|
1877
|
-
title: title$
|
|
1878
|
-
category: category$
|
|
1879
|
-
description: description$
|
|
1880
|
-
icon: icon$
|
|
1881
|
-
supports: supports$
|
|
1882
|
-
render: render$
|
|
1883
|
-
attributes: attributes$
|
|
1884
|
-
example: example$2
|
|
1901
|
+
$schema: $schema$7,
|
|
1902
|
+
apiVersion: apiVersion$7,
|
|
1903
|
+
name: name$7,
|
|
1904
|
+
title: title$7,
|
|
1905
|
+
category: category$7,
|
|
1906
|
+
description: description$7,
|
|
1907
|
+
icon: icon$7,
|
|
1908
|
+
supports: supports$7,
|
|
1909
|
+
render: render$7,
|
|
1910
|
+
attributes: attributes$7,
|
|
1911
|
+
example: example$2,
|
|
1912
|
+
script: script$7,
|
|
1913
|
+
editorScript: editorScript$7
|
|
1885
1914
|
};
|
|
1886
1915
|
|
|
1887
|
-
var edit$
|
|
1916
|
+
var edit$7 = function edit(_ref) {
|
|
1888
1917
|
var attributes = _ref.attributes,
|
|
1889
1918
|
setAttributes = _ref.setAttributes;
|
|
1890
1919
|
var label = attributes.label,
|
|
@@ -1996,7 +2025,7 @@ var edit$2 = function edit(_ref) {
|
|
|
1996
2025
|
}, linkLabel)));
|
|
1997
2026
|
};
|
|
1998
2027
|
|
|
1999
|
-
var save$
|
|
2028
|
+
var save$7 = function save(_ref) {
|
|
2000
2029
|
var attributes = _ref.attributes;
|
|
2001
2030
|
var label = attributes.label,
|
|
2002
2031
|
intent = attributes.intent,
|
|
@@ -2025,25 +2054,25 @@ var save$2 = function save(_ref) {
|
|
|
2025
2054
|
};
|
|
2026
2055
|
|
|
2027
2056
|
registerBlockType(metadata$2.name, _objectSpread2(_objectSpread2({}, metadata$2), {}, {
|
|
2028
|
-
edit: edit$
|
|
2029
|
-
save: save$
|
|
2057
|
+
edit: edit$7,
|
|
2058
|
+
save: save$7
|
|
2030
2059
|
}));
|
|
2031
2060
|
|
|
2032
|
-
var $schema$
|
|
2033
|
-
var apiVersion$
|
|
2034
|
-
var name$
|
|
2035
|
-
var title$
|
|
2036
|
-
var category$
|
|
2037
|
-
var description$
|
|
2038
|
-
var icon$
|
|
2039
|
-
var supports$
|
|
2061
|
+
var $schema$6 = "https://schemas.wp.org/trunk/block.json";
|
|
2062
|
+
var apiVersion$6 = 3;
|
|
2063
|
+
var name$6 = "tds/link";
|
|
2064
|
+
var title$6 = "Link";
|
|
2065
|
+
var category$6 = "common";
|
|
2066
|
+
var description$6 = "Styled link component with variants and states";
|
|
2067
|
+
var icon$6 = "link";
|
|
2068
|
+
var supports$6 = {
|
|
2040
2069
|
html: false,
|
|
2041
2070
|
spacing: {
|
|
2042
2071
|
margin: true
|
|
2043
2072
|
}
|
|
2044
2073
|
};
|
|
2045
|
-
var render$
|
|
2046
|
-
var attributes$
|
|
2074
|
+
var render$6 = "file:./render.php";
|
|
2075
|
+
var attributes$6 = {
|
|
2047
2076
|
href: {
|
|
2048
2077
|
type: "string",
|
|
2049
2078
|
"default": ""
|
|
@@ -2080,11 +2109,13 @@ var attributes$1 = {
|
|
|
2080
2109
|
},
|
|
2081
2110
|
iconLeft: {
|
|
2082
2111
|
type: "string",
|
|
2083
|
-
"default": ""
|
|
2112
|
+
"default": "",
|
|
2113
|
+
description: "Icon on the left with variant prefix (e.g., 'filled_external-link')"
|
|
2084
2114
|
},
|
|
2085
2115
|
iconRight: {
|
|
2086
2116
|
type: "string",
|
|
2087
|
-
"default": ""
|
|
2117
|
+
"default": "",
|
|
2118
|
+
description: "Icon on the right with variant prefix (e.g., 'outlined_external-link')"
|
|
2088
2119
|
},
|
|
2089
2120
|
inline: {
|
|
2090
2121
|
type: "boolean",
|
|
@@ -2122,26 +2153,30 @@ var attributes$1 = {
|
|
|
2122
2153
|
};
|
|
2123
2154
|
var example$1 = {
|
|
2124
2155
|
};
|
|
2156
|
+
var script$6 = "times-design-system";
|
|
2157
|
+
var editorScript$6 = "times-design-system";
|
|
2125
2158
|
var metadata$1 = {
|
|
2126
|
-
$schema: $schema$
|
|
2127
|
-
apiVersion: apiVersion$
|
|
2128
|
-
name: name$
|
|
2129
|
-
title: title$
|
|
2130
|
-
category: category$
|
|
2131
|
-
description: description$
|
|
2132
|
-
icon: icon$
|
|
2133
|
-
supports: supports$
|
|
2134
|
-
render: render$
|
|
2135
|
-
attributes: attributes$
|
|
2136
|
-
example: example$1
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
var
|
|
2143
|
-
|
|
2144
|
-
|
|
2159
|
+
$schema: $schema$6,
|
|
2160
|
+
apiVersion: apiVersion$6,
|
|
2161
|
+
name: name$6,
|
|
2162
|
+
title: title$6,
|
|
2163
|
+
category: category$6,
|
|
2164
|
+
description: description$6,
|
|
2165
|
+
icon: icon$6,
|
|
2166
|
+
supports: supports$6,
|
|
2167
|
+
render: render$6,
|
|
2168
|
+
attributes: attributes$6,
|
|
2169
|
+
example: example$1,
|
|
2170
|
+
script: script$6,
|
|
2171
|
+
editorScript: editorScript$6
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2174
|
+
var edit$6 = function edit(_ref) {
|
|
2175
|
+
var attributes = _ref.attributes,
|
|
2176
|
+
setAttributes = _ref.setAttributes;
|
|
2177
|
+
var href = attributes.href,
|
|
2178
|
+
content = attributes.content,
|
|
2179
|
+
intent = attributes.intent,
|
|
2145
2180
|
sentiment = attributes.sentiment,
|
|
2146
2181
|
size = attributes.size,
|
|
2147
2182
|
iconLeft = attributes.iconLeft,
|
|
@@ -2325,7 +2360,7 @@ var edit$1 = function edit(_ref) {
|
|
|
2325
2360
|
}, iconRight)));
|
|
2326
2361
|
};
|
|
2327
2362
|
|
|
2328
|
-
var save$
|
|
2363
|
+
var save$6 = function save(_ref) {
|
|
2329
2364
|
var attributes = _ref.attributes;
|
|
2330
2365
|
var href = attributes.href,
|
|
2331
2366
|
content = attributes.content,
|
|
@@ -2366,26 +2401,26 @@ var save$1 = function save(_ref) {
|
|
|
2366
2401
|
};
|
|
2367
2402
|
|
|
2368
2403
|
registerBlockType(metadata$1.name, _objectSpread2(_objectSpread2({}, metadata$1), {}, {
|
|
2369
|
-
edit: edit$
|
|
2370
|
-
save: save$
|
|
2404
|
+
edit: edit$6,
|
|
2405
|
+
save: save$6
|
|
2371
2406
|
}));
|
|
2372
2407
|
|
|
2373
|
-
var $schema = "https://schemas.wp.org/trunk/block.json";
|
|
2374
|
-
var apiVersion = 3;
|
|
2375
|
-
var name = "tds/ad-container";
|
|
2376
|
-
var title = "Ad Container";
|
|
2377
|
-
var category = "common";
|
|
2378
|
-
var description = "Advertising container placeholder";
|
|
2379
|
-
var icon = "image";
|
|
2380
|
-
var supports = {
|
|
2408
|
+
var $schema$5 = "https://schemas.wp.org/trunk/block.json";
|
|
2409
|
+
var apiVersion$5 = 3;
|
|
2410
|
+
var name$5 = "tds/ad-container";
|
|
2411
|
+
var title$5 = "Ad Container";
|
|
2412
|
+
var category$5 = "common";
|
|
2413
|
+
var description$5 = "Advertising container placeholder";
|
|
2414
|
+
var icon$5 = "image";
|
|
2415
|
+
var supports$5 = {
|
|
2381
2416
|
html: false,
|
|
2382
2417
|
spacing: {
|
|
2383
2418
|
margin: true,
|
|
2384
2419
|
padding: true
|
|
2385
2420
|
}
|
|
2386
2421
|
};
|
|
2387
|
-
var render = "file:./render.php";
|
|
2388
|
-
var attributes = {
|
|
2422
|
+
var render$5 = "file:./render.php";
|
|
2423
|
+
var attributes$5 = {
|
|
2389
2424
|
type: {
|
|
2390
2425
|
type: "string",
|
|
2391
2426
|
"default": "inline",
|
|
@@ -2412,21 +2447,25 @@ var attributes = {
|
|
|
2412
2447
|
};
|
|
2413
2448
|
var example = {
|
|
2414
2449
|
};
|
|
2450
|
+
var script$5 = "times-design-system";
|
|
2451
|
+
var editorScript$5 = "times-design-system";
|
|
2415
2452
|
var metadata = {
|
|
2416
|
-
$schema: $schema,
|
|
2417
|
-
apiVersion: apiVersion,
|
|
2418
|
-
name: name,
|
|
2419
|
-
title: title,
|
|
2420
|
-
category: category,
|
|
2421
|
-
description: description,
|
|
2422
|
-
icon: icon,
|
|
2423
|
-
supports: supports,
|
|
2424
|
-
render: render,
|
|
2425
|
-
attributes: attributes,
|
|
2426
|
-
example: example
|
|
2453
|
+
$schema: $schema$5,
|
|
2454
|
+
apiVersion: apiVersion$5,
|
|
2455
|
+
name: name$5,
|
|
2456
|
+
title: title$5,
|
|
2457
|
+
category: category$5,
|
|
2458
|
+
description: description$5,
|
|
2459
|
+
icon: icon$5,
|
|
2460
|
+
supports: supports$5,
|
|
2461
|
+
render: render$5,
|
|
2462
|
+
attributes: attributes$5,
|
|
2463
|
+
example: example,
|
|
2464
|
+
script: script$5,
|
|
2465
|
+
editorScript: editorScript$5
|
|
2427
2466
|
};
|
|
2428
2467
|
|
|
2429
|
-
var edit = function edit(_ref) {
|
|
2468
|
+
var edit$5 = function edit(_ref) {
|
|
2430
2469
|
var attributes = _ref.attributes,
|
|
2431
2470
|
setAttributes = _ref.setAttributes;
|
|
2432
2471
|
var type = attributes.type,
|
|
@@ -2487,7 +2526,7 @@ var edit = function edit(_ref) {
|
|
|
2487
2526
|
}, /*#__PURE__*/React.createElement("p", null, "Ad Slot: ", slotID || '(not configured)'))));
|
|
2488
2527
|
};
|
|
2489
2528
|
|
|
2490
|
-
var save = function save(_ref) {
|
|
2529
|
+
var save$5 = function save(_ref) {
|
|
2491
2530
|
var attributes = _ref.attributes;
|
|
2492
2531
|
var type = attributes.type,
|
|
2493
2532
|
slotID = attributes.slotID;
|
|
@@ -2499,7 +2538,687 @@ var save = function save(_ref) {
|
|
|
2499
2538
|
};
|
|
2500
2539
|
|
|
2501
2540
|
registerBlockType(metadata.name, _objectSpread2(_objectSpread2({}, metadata), {}, {
|
|
2541
|
+
edit: edit$5,
|
|
2542
|
+
save: save$5
|
|
2543
|
+
}));
|
|
2544
|
+
|
|
2545
|
+
/**
|
|
2546
|
+
* Block Editor Component: Tab
|
|
2547
|
+
*
|
|
2548
|
+
* Renders the editor UI for the Tab block in Gutenberg.
|
|
2549
|
+
* Reference: packages/components-react/src/Tab/
|
|
2550
|
+
*/
|
|
2551
|
+
|
|
2552
|
+
function edit$4(props) {
|
|
2553
|
+
var attributes = props.attributes,
|
|
2554
|
+
setAttributes = props.setAttributes;
|
|
2555
|
+
attributes.content;
|
|
2556
|
+
var classes = attributes.classes;
|
|
2557
|
+
attributes.dataAttributes;
|
|
2558
|
+
var blockProps = useBlockProps();
|
|
2559
|
+
|
|
2560
|
+
// TODO: Implement editor UI based on component props
|
|
2561
|
+
// - Add inspector controls for attributes
|
|
2562
|
+
// - Render preview of component in editor
|
|
2563
|
+
// - Handle attribute changes via setAttributes()
|
|
2564
|
+
|
|
2565
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
|
|
2566
|
+
title: "Tab Settings",
|
|
2567
|
+
initialOpen: true
|
|
2568
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2569
|
+
label: "Content",
|
|
2570
|
+
value: attributes.content || '',
|
|
2571
|
+
onChange: function onChange(content) {
|
|
2572
|
+
return setAttributes({
|
|
2573
|
+
content: content
|
|
2574
|
+
});
|
|
2575
|
+
},
|
|
2576
|
+
placeholder: "Enter content..."
|
|
2577
|
+
})), /*#__PURE__*/React.createElement(PanelBody, {
|
|
2578
|
+
title: "Extensibility",
|
|
2579
|
+
initialOpen: false
|
|
2580
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2581
|
+
label: "Custom Classes",
|
|
2582
|
+
value: classes || '',
|
|
2583
|
+
onChange: function onChange(val) {
|
|
2584
|
+
return setAttributes({
|
|
2585
|
+
classes: val
|
|
2586
|
+
});
|
|
2587
|
+
},
|
|
2588
|
+
placeholder: "class-name-1 class-name-2",
|
|
2589
|
+
help: "Space-separated CSS classes added to the tab element"
|
|
2590
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
2591
|
+
style: {
|
|
2592
|
+
fontSize: '12px',
|
|
2593
|
+
color: '#666',
|
|
2594
|
+
marginTop: '8px'
|
|
2595
|
+
}
|
|
2596
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Data Attributes:"), " Custom data-* attributes are typically set via block templates or PHP filters for analytics, testing, and custom hooks. See the block documentation for examples."))), /*#__PURE__*/React.createElement("div", blockProps, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCDD Tab block editor"), /*#__PURE__*/React.createElement("p", {
|
|
2597
|
+
style: {
|
|
2598
|
+
fontSize: '12px',
|
|
2599
|
+
color: '#666'
|
|
2600
|
+
}
|
|
2601
|
+
}, "TODO: Render the Tab component here with current attributes")));
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* Block Save Component: Tab
|
|
2606
|
+
*
|
|
2607
|
+
* Renders the static output saved to the database.
|
|
2608
|
+
* Reference: packages/components-react/src/Tab/
|
|
2609
|
+
*/
|
|
2610
|
+
|
|
2611
|
+
function save$4(props) {
|
|
2612
|
+
var attributes = props.attributes;
|
|
2613
|
+
var blockProps = useBlockProps.save();
|
|
2614
|
+
|
|
2615
|
+
// TODO: Render the actual Tab component with attributes
|
|
2616
|
+
// This output is saved to the database and displayed on the frontend
|
|
2617
|
+
|
|
2618
|
+
return /*#__PURE__*/React.createElement("div", blockProps, attributes.content && /*#__PURE__*/React.createElement("p", null, attributes.content));
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
var $schema$4 = "https://schemas.wp.org/trunk/block.json";
|
|
2622
|
+
var apiVersion$4 = 3;
|
|
2623
|
+
var name$4 = "tds/tab";
|
|
2624
|
+
var title$4 = "Times Design System - Tab";
|
|
2625
|
+
var category$4 = "common";
|
|
2626
|
+
var description$4 = "WordPress block for Times Design System Tab component";
|
|
2627
|
+
var icon$4 = "block-default";
|
|
2628
|
+
var supports$4 = {
|
|
2629
|
+
html: false,
|
|
2630
|
+
multiple: true,
|
|
2631
|
+
reusable: true,
|
|
2632
|
+
customClassName: true
|
|
2633
|
+
};
|
|
2634
|
+
var textdomain$4 = "times-blocks";
|
|
2635
|
+
var attributes$4 = {
|
|
2636
|
+
content: {
|
|
2637
|
+
type: "string",
|
|
2638
|
+
"default": ""
|
|
2639
|
+
},
|
|
2640
|
+
classes: {
|
|
2641
|
+
type: "string",
|
|
2642
|
+
"default": "",
|
|
2643
|
+
description: "Additional CSS classes applied to the rendered tab element"
|
|
2644
|
+
},
|
|
2645
|
+
dataAttributes: {
|
|
2646
|
+
type: "object",
|
|
2647
|
+
"default": {
|
|
2648
|
+
},
|
|
2649
|
+
description: "Custom data-* attributes for extensibility (allowlisted server-side)"
|
|
2650
|
+
}
|
|
2651
|
+
};
|
|
2652
|
+
var render$4 = "file:./render.php";
|
|
2653
|
+
var editorScript$4 = "times-design-system";
|
|
2654
|
+
var script$4 = "times-design-system";
|
|
2655
|
+
var blockConfig$4 = {
|
|
2656
|
+
$schema: $schema$4,
|
|
2657
|
+
apiVersion: apiVersion$4,
|
|
2658
|
+
name: name$4,
|
|
2659
|
+
title: title$4,
|
|
2660
|
+
category: category$4,
|
|
2661
|
+
description: description$4,
|
|
2662
|
+
icon: icon$4,
|
|
2663
|
+
supports: supports$4,
|
|
2664
|
+
textdomain: textdomain$4,
|
|
2665
|
+
attributes: attributes$4,
|
|
2666
|
+
render: render$4,
|
|
2667
|
+
editorScript: editorScript$4,
|
|
2668
|
+
script: script$4
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
registerBlockType(blockConfig$4.name, _objectSpread2(_objectSpread2({}, blockConfig$4), {}, {
|
|
2672
|
+
edit: edit$4,
|
|
2673
|
+
save: save$4
|
|
2674
|
+
}));
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* Block Editor Component: TabGroup
|
|
2678
|
+
*
|
|
2679
|
+
* Renders the editor UI for the TabGroup block in Gutenberg.
|
|
2680
|
+
* Reference: packages/components-react/src/TabGroup/
|
|
2681
|
+
*/
|
|
2682
|
+
|
|
2683
|
+
function edit$3(props) {
|
|
2684
|
+
var attributes = props.attributes,
|
|
2685
|
+
setAttributes = props.setAttributes;
|
|
2686
|
+
attributes.content;
|
|
2687
|
+
var classes = attributes.classes;
|
|
2688
|
+
attributes.dataAttributes;
|
|
2689
|
+
var blockProps = useBlockProps();
|
|
2690
|
+
|
|
2691
|
+
// TODO: Implement editor UI based on component props
|
|
2692
|
+
// - Add inspector controls for attributes
|
|
2693
|
+
// - Render preview of component in editor
|
|
2694
|
+
// - Handle attribute changes via setAttributes()
|
|
2695
|
+
|
|
2696
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
|
|
2697
|
+
title: "TabGroup Settings",
|
|
2698
|
+
initialOpen: true
|
|
2699
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2700
|
+
label: "Content",
|
|
2701
|
+
value: attributes.content || '',
|
|
2702
|
+
onChange: function onChange(content) {
|
|
2703
|
+
return setAttributes({
|
|
2704
|
+
content: content
|
|
2705
|
+
});
|
|
2706
|
+
},
|
|
2707
|
+
placeholder: "Enter content..."
|
|
2708
|
+
})), /*#__PURE__*/React.createElement(PanelBody, {
|
|
2709
|
+
title: "Extensibility",
|
|
2710
|
+
initialOpen: false
|
|
2711
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2712
|
+
label: "Custom Classes",
|
|
2713
|
+
value: classes || '',
|
|
2714
|
+
onChange: function onChange(val) {
|
|
2715
|
+
return setAttributes({
|
|
2716
|
+
classes: val
|
|
2717
|
+
});
|
|
2718
|
+
},
|
|
2719
|
+
placeholder: "class-name-1 class-name-2",
|
|
2720
|
+
help: "Space-separated CSS classes added to the tab-group element"
|
|
2721
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
2722
|
+
style: {
|
|
2723
|
+
fontSize: '12px',
|
|
2724
|
+
color: '#666',
|
|
2725
|
+
marginTop: '8px'
|
|
2726
|
+
}
|
|
2727
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Data Attributes:"), " Custom data-* attributes are typically set via block templates or PHP filters for analytics, testing, and custom hooks. See the block documentation for examples."))), /*#__PURE__*/React.createElement("div", blockProps, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCDD TabGroup block editor"), /*#__PURE__*/React.createElement("p", {
|
|
2728
|
+
style: {
|
|
2729
|
+
fontSize: '12px',
|
|
2730
|
+
color: '#666'
|
|
2731
|
+
}
|
|
2732
|
+
}, "TODO: Render the TabGroup component here with current attributes")));
|
|
2733
|
+
}
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* Block Save Component: TabGroup
|
|
2737
|
+
*
|
|
2738
|
+
* Renders the static output saved to the database.
|
|
2739
|
+
* Reference: packages/components-react/src/TabGroup/
|
|
2740
|
+
*/
|
|
2741
|
+
|
|
2742
|
+
function save$3(props) {
|
|
2743
|
+
var attributes = props.attributes;
|
|
2744
|
+
var blockProps = useBlockProps.save();
|
|
2745
|
+
|
|
2746
|
+
// TODO: Render the actual TabGroup component with attributes
|
|
2747
|
+
// This output is saved to the database and displayed on the frontend
|
|
2748
|
+
|
|
2749
|
+
return /*#__PURE__*/React.createElement("div", blockProps, attributes.content && /*#__PURE__*/React.createElement("p", null, attributes.content));
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
var $schema$3 = "https://schemas.wp.org/trunk/block.json";
|
|
2753
|
+
var apiVersion$3 = 3;
|
|
2754
|
+
var name$3 = "tds/tab-group";
|
|
2755
|
+
var title$3 = "Times Design System - TabGroup";
|
|
2756
|
+
var category$3 = "common";
|
|
2757
|
+
var description$3 = "WordPress block for Times Design System TabGroup component";
|
|
2758
|
+
var icon$3 = "block-default";
|
|
2759
|
+
var supports$3 = {
|
|
2760
|
+
html: false,
|
|
2761
|
+
multiple: true,
|
|
2762
|
+
reusable: true,
|
|
2763
|
+
customClassName: true
|
|
2764
|
+
};
|
|
2765
|
+
var textdomain$3 = "times-blocks";
|
|
2766
|
+
var attributes$3 = {
|
|
2767
|
+
content: {
|
|
2768
|
+
type: "string",
|
|
2769
|
+
"default": ""
|
|
2770
|
+
},
|
|
2771
|
+
classes: {
|
|
2772
|
+
type: "string",
|
|
2773
|
+
"default": "",
|
|
2774
|
+
description: "Additional CSS classes applied to the rendered tab group element"
|
|
2775
|
+
},
|
|
2776
|
+
dataAttributes: {
|
|
2777
|
+
type: "object",
|
|
2778
|
+
"default": {
|
|
2779
|
+
},
|
|
2780
|
+
description: "Custom data-* attributes for extensibility (allowlisted server-side)"
|
|
2781
|
+
}
|
|
2782
|
+
};
|
|
2783
|
+
var render$3 = "file:./render.php";
|
|
2784
|
+
var editorScript$3 = "times-design-system";
|
|
2785
|
+
var script$3 = "times-design-system";
|
|
2786
|
+
var blockConfig$3 = {
|
|
2787
|
+
$schema: $schema$3,
|
|
2788
|
+
apiVersion: apiVersion$3,
|
|
2789
|
+
name: name$3,
|
|
2790
|
+
title: title$3,
|
|
2791
|
+
category: category$3,
|
|
2792
|
+
description: description$3,
|
|
2793
|
+
icon: icon$3,
|
|
2794
|
+
supports: supports$3,
|
|
2795
|
+
textdomain: textdomain$3,
|
|
2796
|
+
attributes: attributes$3,
|
|
2797
|
+
render: render$3,
|
|
2798
|
+
editorScript: editorScript$3,
|
|
2799
|
+
script: script$3
|
|
2800
|
+
};
|
|
2801
|
+
|
|
2802
|
+
registerBlockType(blockConfig$3.name, _objectSpread2(_objectSpread2({}, blockConfig$3), {}, {
|
|
2803
|
+
edit: edit$3,
|
|
2804
|
+
save: save$3
|
|
2805
|
+
}));
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
* Block Editor Component: DialogBox
|
|
2809
|
+
*
|
|
2810
|
+
* Renders the editor UI for the DialogBox block in Gutenberg.
|
|
2811
|
+
* Reference: packages/components-react/src/DialogBox/
|
|
2812
|
+
*/
|
|
2813
|
+
|
|
2814
|
+
function edit$2(props) {
|
|
2815
|
+
var attributes = props.attributes,
|
|
2816
|
+
setAttributes = props.setAttributes;
|
|
2817
|
+
attributes.content;
|
|
2818
|
+
var classes = attributes.classes;
|
|
2819
|
+
attributes.dataAttributes;
|
|
2820
|
+
var blockProps = useBlockProps();
|
|
2821
|
+
|
|
2822
|
+
// TODO: Implement editor UI based on component props
|
|
2823
|
+
// - Add inspector controls for attributes
|
|
2824
|
+
// - Render preview of component in editor
|
|
2825
|
+
// - Handle attribute changes via setAttributes()
|
|
2826
|
+
|
|
2827
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
|
|
2828
|
+
title: "DialogBox Settings",
|
|
2829
|
+
initialOpen: true
|
|
2830
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2831
|
+
label: "Content",
|
|
2832
|
+
value: attributes.content || '',
|
|
2833
|
+
onChange: function onChange(content) {
|
|
2834
|
+
return setAttributes({
|
|
2835
|
+
content: content
|
|
2836
|
+
});
|
|
2837
|
+
},
|
|
2838
|
+
placeholder: "Enter content..."
|
|
2839
|
+
})), /*#__PURE__*/React.createElement(PanelBody, {
|
|
2840
|
+
title: "Extensibility",
|
|
2841
|
+
initialOpen: false
|
|
2842
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2843
|
+
label: "Custom Classes",
|
|
2844
|
+
value: classes || '',
|
|
2845
|
+
onChange: function onChange(val) {
|
|
2846
|
+
return setAttributes({
|
|
2847
|
+
classes: val
|
|
2848
|
+
});
|
|
2849
|
+
},
|
|
2850
|
+
placeholder: "class-name-1 class-name-2",
|
|
2851
|
+
help: "Space-separated CSS classes added to the dialog-box element"
|
|
2852
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
2853
|
+
style: {
|
|
2854
|
+
fontSize: '12px',
|
|
2855
|
+
color: '#666',
|
|
2856
|
+
marginTop: '8px'
|
|
2857
|
+
}
|
|
2858
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Data Attributes:"), " Custom data-* attributes are typically set via block templates or PHP filters for analytics, testing, and custom hooks. See the block documentation for examples."))), /*#__PURE__*/React.createElement("div", blockProps, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCDD DialogBox block editor"), /*#__PURE__*/React.createElement("p", {
|
|
2859
|
+
style: {
|
|
2860
|
+
fontSize: '12px',
|
|
2861
|
+
color: '#666'
|
|
2862
|
+
}
|
|
2863
|
+
}, "TODO: Render the DialogBox component here with current attributes")));
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
/**
|
|
2867
|
+
* Block Save Component: DialogBox
|
|
2868
|
+
*
|
|
2869
|
+
* Renders the static output saved to the database.
|
|
2870
|
+
* Reference: packages/components-react/src/DialogBox/
|
|
2871
|
+
*/
|
|
2872
|
+
|
|
2873
|
+
function save$2(props) {
|
|
2874
|
+
var attributes = props.attributes;
|
|
2875
|
+
var blockProps = useBlockProps.save();
|
|
2876
|
+
|
|
2877
|
+
// TODO: Render the actual DialogBox component with attributes
|
|
2878
|
+
// This output is saved to the database and displayed on the frontend
|
|
2879
|
+
|
|
2880
|
+
return /*#__PURE__*/React.createElement("div", blockProps, attributes.content && /*#__PURE__*/React.createElement("p", null, attributes.content));
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
var $schema$2 = "https://schemas.wp.org/trunk/block.json";
|
|
2884
|
+
var apiVersion$2 = 3;
|
|
2885
|
+
var name$2 = "tds/dialog-box";
|
|
2886
|
+
var title$2 = "Times Design System - DialogBox";
|
|
2887
|
+
var category$2 = "common";
|
|
2888
|
+
var description$2 = "WordPress block for Times Design System DialogBox component";
|
|
2889
|
+
var icon$2 = "block-default";
|
|
2890
|
+
var supports$2 = {
|
|
2891
|
+
html: false,
|
|
2892
|
+
multiple: true,
|
|
2893
|
+
reusable: true,
|
|
2894
|
+
customClassName: true
|
|
2895
|
+
};
|
|
2896
|
+
var textdomain$2 = "times-blocks";
|
|
2897
|
+
var attributes$2 = {
|
|
2898
|
+
content: {
|
|
2899
|
+
type: "string",
|
|
2900
|
+
"default": ""
|
|
2901
|
+
},
|
|
2902
|
+
classes: {
|
|
2903
|
+
type: "string",
|
|
2904
|
+
"default": "",
|
|
2905
|
+
description: "Additional CSS classes applied to the rendered dialog element"
|
|
2906
|
+
},
|
|
2907
|
+
dataAttributes: {
|
|
2908
|
+
type: "object",
|
|
2909
|
+
"default": {
|
|
2910
|
+
},
|
|
2911
|
+
description: "Custom data-* attributes for extensibility (allowlisted server-side)"
|
|
2912
|
+
}
|
|
2913
|
+
};
|
|
2914
|
+
var render$2 = "file:./render.php";
|
|
2915
|
+
var editorScript$2 = "times-design-system";
|
|
2916
|
+
var script$2 = "times-design-system";
|
|
2917
|
+
var blockConfig$2 = {
|
|
2918
|
+
$schema: $schema$2,
|
|
2919
|
+
apiVersion: apiVersion$2,
|
|
2920
|
+
name: name$2,
|
|
2921
|
+
title: title$2,
|
|
2922
|
+
category: category$2,
|
|
2923
|
+
description: description$2,
|
|
2924
|
+
icon: icon$2,
|
|
2925
|
+
supports: supports$2,
|
|
2926
|
+
textdomain: textdomain$2,
|
|
2927
|
+
attributes: attributes$2,
|
|
2928
|
+
render: render$2,
|
|
2929
|
+
editorScript: editorScript$2,
|
|
2930
|
+
script: script$2
|
|
2931
|
+
};
|
|
2932
|
+
|
|
2933
|
+
registerBlockType(blockConfig$2.name, _objectSpread2(_objectSpread2({}, blockConfig$2), {}, {
|
|
2934
|
+
edit: edit$2,
|
|
2935
|
+
save: save$2
|
|
2936
|
+
}));
|
|
2937
|
+
|
|
2938
|
+
/**
|
|
2939
|
+
* Block Editor Component: InputHelperMessage
|
|
2940
|
+
*
|
|
2941
|
+
* Renders the editor UI for the InputHelperMessage block in Gutenberg.
|
|
2942
|
+
* Reference: packages/components-react/src/InputHelperMessage/
|
|
2943
|
+
*/
|
|
2944
|
+
|
|
2945
|
+
function edit$1(props) {
|
|
2946
|
+
var attributes = props.attributes,
|
|
2947
|
+
setAttributes = props.setAttributes;
|
|
2948
|
+
attributes.content;
|
|
2949
|
+
var classes = attributes.classes;
|
|
2950
|
+
attributes.dataAttributes;
|
|
2951
|
+
var blockProps = useBlockProps();
|
|
2952
|
+
|
|
2953
|
+
// TODO: Implement editor UI based on component props
|
|
2954
|
+
// - Add inspector controls for attributes
|
|
2955
|
+
// - Render preview of component in editor
|
|
2956
|
+
// - Handle attribute changes via setAttributes()
|
|
2957
|
+
|
|
2958
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
|
|
2959
|
+
title: "InputHelperMessage Settings",
|
|
2960
|
+
initialOpen: true
|
|
2961
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2962
|
+
label: "Content",
|
|
2963
|
+
value: attributes.content || '',
|
|
2964
|
+
onChange: function onChange(content) {
|
|
2965
|
+
return setAttributes({
|
|
2966
|
+
content: content
|
|
2967
|
+
});
|
|
2968
|
+
},
|
|
2969
|
+
placeholder: "Enter content..."
|
|
2970
|
+
})), /*#__PURE__*/React.createElement(PanelBody, {
|
|
2971
|
+
title: "Extensibility",
|
|
2972
|
+
initialOpen: false
|
|
2973
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
2974
|
+
label: "Custom Classes",
|
|
2975
|
+
value: classes || '',
|
|
2976
|
+
onChange: function onChange(val) {
|
|
2977
|
+
return setAttributes({
|
|
2978
|
+
classes: val
|
|
2979
|
+
});
|
|
2980
|
+
},
|
|
2981
|
+
placeholder: "class-name-1 class-name-2",
|
|
2982
|
+
help: "Space-separated CSS classes added to the input-helper-message element"
|
|
2983
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
2984
|
+
style: {
|
|
2985
|
+
fontSize: '12px',
|
|
2986
|
+
color: '#666',
|
|
2987
|
+
marginTop: '8px'
|
|
2988
|
+
}
|
|
2989
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Data Attributes:"), " Custom data-* attributes are typically set via block templates or PHP filters for analytics, testing, and custom hooks. See the block documentation for examples."))), /*#__PURE__*/React.createElement("div", blockProps, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCDD InputHelperMessage block editor"), /*#__PURE__*/React.createElement("p", {
|
|
2990
|
+
style: {
|
|
2991
|
+
fontSize: '12px',
|
|
2992
|
+
color: '#666'
|
|
2993
|
+
}
|
|
2994
|
+
}, "TODO: Render the InputHelperMessage component here with current attributes")));
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2997
|
+
/**
|
|
2998
|
+
* Block Save Component: InputHelperMessage
|
|
2999
|
+
*
|
|
3000
|
+
* Renders the static output saved to the database.
|
|
3001
|
+
* Reference: packages/components-react/src/InputHelperMessage/
|
|
3002
|
+
*/
|
|
3003
|
+
|
|
3004
|
+
function save$1(props) {
|
|
3005
|
+
var attributes = props.attributes;
|
|
3006
|
+
var blockProps = useBlockProps.save();
|
|
3007
|
+
|
|
3008
|
+
// TODO: Render the actual InputHelperMessage component with attributes
|
|
3009
|
+
// This output is saved to the database and displayed on the frontend
|
|
3010
|
+
|
|
3011
|
+
return /*#__PURE__*/React.createElement("div", blockProps, attributes.content && /*#__PURE__*/React.createElement("p", null, attributes.content));
|
|
3012
|
+
}
|
|
3013
|
+
|
|
3014
|
+
var $schema$1 = "https://schemas.wp.org/trunk/block.json";
|
|
3015
|
+
var apiVersion$1 = 3;
|
|
3016
|
+
var name$1 = "tds/input-helper-message";
|
|
3017
|
+
var title$1 = "Times Design System - InputHelperMessage";
|
|
3018
|
+
var category$1 = "common";
|
|
3019
|
+
var description$1 = "WordPress block for Times Design System InputHelperMessage component";
|
|
3020
|
+
var icon$1 = "block-default";
|
|
3021
|
+
var supports$1 = {
|
|
3022
|
+
html: false,
|
|
3023
|
+
multiple: true,
|
|
3024
|
+
reusable: true,
|
|
3025
|
+
customClassName: true
|
|
3026
|
+
};
|
|
3027
|
+
var textdomain$1 = "times-blocks";
|
|
3028
|
+
var attributes$1 = {
|
|
3029
|
+
content: {
|
|
3030
|
+
type: "string",
|
|
3031
|
+
"default": ""
|
|
3032
|
+
},
|
|
3033
|
+
classes: {
|
|
3034
|
+
type: "string",
|
|
3035
|
+
"default": "",
|
|
3036
|
+
description: "Additional CSS classes applied to the rendered message element"
|
|
3037
|
+
},
|
|
3038
|
+
dataAttributes: {
|
|
3039
|
+
type: "object",
|
|
3040
|
+
"default": {
|
|
3041
|
+
},
|
|
3042
|
+
description: "Custom data-* attributes for extensibility (allowlisted server-side)"
|
|
3043
|
+
}
|
|
3044
|
+
};
|
|
3045
|
+
var render$1 = "file:./render.php";
|
|
3046
|
+
var editorScript$1 = "times-design-system";
|
|
3047
|
+
var script$1 = "times-design-system";
|
|
3048
|
+
var blockConfig$1 = {
|
|
3049
|
+
$schema: $schema$1,
|
|
3050
|
+
apiVersion: apiVersion$1,
|
|
3051
|
+
name: name$1,
|
|
3052
|
+
title: title$1,
|
|
3053
|
+
category: category$1,
|
|
3054
|
+
description: description$1,
|
|
3055
|
+
icon: icon$1,
|
|
3056
|
+
supports: supports$1,
|
|
3057
|
+
textdomain: textdomain$1,
|
|
3058
|
+
attributes: attributes$1,
|
|
3059
|
+
render: render$1,
|
|
3060
|
+
editorScript: editorScript$1,
|
|
3061
|
+
script: script$1
|
|
3062
|
+
};
|
|
3063
|
+
|
|
3064
|
+
registerBlockType(blockConfig$1.name, _objectSpread2(_objectSpread2({}, blockConfig$1), {}, {
|
|
3065
|
+
edit: edit$1,
|
|
3066
|
+
save: save$1
|
|
3067
|
+
}));
|
|
3068
|
+
|
|
3069
|
+
/**
|
|
3070
|
+
* Block Editor Component: Icon
|
|
3071
|
+
*
|
|
3072
|
+
* Renders the editor UI for the Icon block in Gutenberg.
|
|
3073
|
+
* Reference: packages/components-react/src/Icon/
|
|
3074
|
+
*/
|
|
3075
|
+
|
|
3076
|
+
function edit(props) {
|
|
3077
|
+
var attributes = props.attributes,
|
|
3078
|
+
setAttributes = props.setAttributes;
|
|
3079
|
+
attributes.content;
|
|
3080
|
+
var classes = attributes.classes;
|
|
3081
|
+
attributes.dataAttributes;
|
|
3082
|
+
var blockProps = useBlockProps();
|
|
3083
|
+
|
|
3084
|
+
// TODO: Implement editor UI based on component props
|
|
3085
|
+
// - Add inspector controls for attributes
|
|
3086
|
+
// - Render preview of component in editor
|
|
3087
|
+
// - Handle attribute changes via setAttributes()
|
|
3088
|
+
|
|
3089
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
|
|
3090
|
+
title: "Icon Settings",
|
|
3091
|
+
initialOpen: true
|
|
3092
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
3093
|
+
label: "Content",
|
|
3094
|
+
value: attributes.content || '',
|
|
3095
|
+
onChange: function onChange(content) {
|
|
3096
|
+
return setAttributes({
|
|
3097
|
+
content: content
|
|
3098
|
+
});
|
|
3099
|
+
},
|
|
3100
|
+
placeholder: "Enter content..."
|
|
3101
|
+
})), /*#__PURE__*/React.createElement(PanelBody, {
|
|
3102
|
+
title: "Extensibility",
|
|
3103
|
+
initialOpen: false
|
|
3104
|
+
}, /*#__PURE__*/React.createElement(TextControl, {
|
|
3105
|
+
label: "Custom Classes",
|
|
3106
|
+
value: classes || '',
|
|
3107
|
+
onChange: function onChange(val) {
|
|
3108
|
+
return setAttributes({
|
|
3109
|
+
classes: val
|
|
3110
|
+
});
|
|
3111
|
+
},
|
|
3112
|
+
placeholder: "class-name-1 class-name-2",
|
|
3113
|
+
help: "Space-separated CSS classes added to the icon element"
|
|
3114
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
3115
|
+
style: {
|
|
3116
|
+
fontSize: '12px',
|
|
3117
|
+
color: '#666',
|
|
3118
|
+
marginTop: '8px'
|
|
3119
|
+
}
|
|
3120
|
+
}, /*#__PURE__*/React.createElement("strong", null, "Data Attributes:"), " Custom data-* attributes are typically set via block templates or PHP filters for analytics, testing, and custom hooks. See the block documentation for examples."))), /*#__PURE__*/React.createElement("div", blockProps, /*#__PURE__*/React.createElement("p", null, "\uD83D\uDCDD Icon block editor"), /*#__PURE__*/React.createElement("p", {
|
|
3121
|
+
style: {
|
|
3122
|
+
fontSize: '12px',
|
|
3123
|
+
color: '#666'
|
|
3124
|
+
}
|
|
3125
|
+
}, "TODO: Render the Icon component here with current attributes")));
|
|
3126
|
+
}
|
|
3127
|
+
|
|
3128
|
+
/**
|
|
3129
|
+
* Block Save Component: Icon
|
|
3130
|
+
*
|
|
3131
|
+
* Renders the static output saved to the database.
|
|
3132
|
+
* Reference: packages/components-react/src/Icon/
|
|
3133
|
+
*/
|
|
3134
|
+
|
|
3135
|
+
function save(props) {
|
|
3136
|
+
var attributes = props.attributes;
|
|
3137
|
+
var blockProps = useBlockProps.save();
|
|
3138
|
+
|
|
3139
|
+
// TODO: Render the actual Icon component with attributes
|
|
3140
|
+
// This output is saved to the database and displayed on the frontend
|
|
3141
|
+
|
|
3142
|
+
return /*#__PURE__*/React.createElement("div", blockProps, attributes.content && /*#__PURE__*/React.createElement("p", null, attributes.content));
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
var $schema = "https://schemas.wp.org/trunk/block.json";
|
|
3146
|
+
var apiVersion = 3;
|
|
3147
|
+
var name = "tds/icon";
|
|
3148
|
+
var title = "Times Design System - Icon";
|
|
3149
|
+
var category = "common";
|
|
3150
|
+
var description = "WordPress block for Times Design System Icon component";
|
|
3151
|
+
var icon = "block-default";
|
|
3152
|
+
var supports = {
|
|
3153
|
+
html: false,
|
|
3154
|
+
multiple: true,
|
|
3155
|
+
reusable: true,
|
|
3156
|
+
customClassName: true
|
|
3157
|
+
};
|
|
3158
|
+
var textdomain = "times-blocks";
|
|
3159
|
+
var attributes = {
|
|
3160
|
+
iconName: {
|
|
3161
|
+
type: "string",
|
|
3162
|
+
"default": "",
|
|
3163
|
+
description: "The name of the icon to display (e.g., 'filled_circle', 'outlined_check')"
|
|
3164
|
+
},
|
|
3165
|
+
size: {
|
|
3166
|
+
type: "string",
|
|
3167
|
+
"enum": [
|
|
3168
|
+
"2xsmall",
|
|
3169
|
+
"xsmall",
|
|
3170
|
+
"small",
|
|
3171
|
+
"medium",
|
|
3172
|
+
"large",
|
|
3173
|
+
"xlarge",
|
|
3174
|
+
"2xlarge"
|
|
3175
|
+
],
|
|
3176
|
+
"default": "medium",
|
|
3177
|
+
description: "Size of the icon"
|
|
3178
|
+
},
|
|
3179
|
+
classes: {
|
|
3180
|
+
type: "string",
|
|
3181
|
+
"default": "",
|
|
3182
|
+
description: "Additional CSS classes applied to the rendered icon element"
|
|
3183
|
+
},
|
|
3184
|
+
dataAttributes: {
|
|
3185
|
+
type: "object",
|
|
3186
|
+
"default": {
|
|
3187
|
+
},
|
|
3188
|
+
description: "Custom data-* attributes for extensibility (allowlisted server-side)"
|
|
3189
|
+
}
|
|
3190
|
+
};
|
|
3191
|
+
var render = "file:./render.php";
|
|
3192
|
+
var editorScript = "times-design-system";
|
|
3193
|
+
var script = "times-design-system";
|
|
3194
|
+
var blockConfig = {
|
|
3195
|
+
$schema: $schema,
|
|
3196
|
+
apiVersion: apiVersion,
|
|
3197
|
+
name: name,
|
|
3198
|
+
title: title,
|
|
3199
|
+
category: category,
|
|
3200
|
+
description: description,
|
|
3201
|
+
icon: icon,
|
|
3202
|
+
supports: supports,
|
|
3203
|
+
textdomain: textdomain,
|
|
3204
|
+
attributes: attributes,
|
|
3205
|
+
render: render,
|
|
3206
|
+
editorScript: editorScript,
|
|
3207
|
+
script: script
|
|
3208
|
+
};
|
|
3209
|
+
|
|
3210
|
+
registerBlockType(blockConfig.name, _objectSpread2(_objectSpread2({}, blockConfig), {}, {
|
|
2502
3211
|
edit: edit,
|
|
2503
3212
|
save: save
|
|
2504
3213
|
}));
|
|
3214
|
+
|
|
3215
|
+
/**
|
|
3216
|
+
* WordPress Blocks Entry Point
|
|
3217
|
+
* Registers all Times Design System blocks with Gutenberg
|
|
3218
|
+
* Imports block styles to be bundled by rollup-plugin-postcss
|
|
3219
|
+
*/
|
|
3220
|
+
|
|
3221
|
+
// Debug: Log that entry point is loading
|
|
3222
|
+
console.log('[TDS] WordPress Blocks entry point loading...');
|
|
3223
|
+
console.log('[TDS] All blocks imported and registered');
|
|
2505
3224
|
//# sourceMappingURL=index.js.map
|