@times-design-system/components-wordpress 1.8.1-alpha.0 → 1.8.1-alpha.4

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 (42) hide show
  1. package/README.md +41 -0
  2. package/dist/blocks/ad-container/block.json +3 -1
  3. package/dist/blocks/button/block.json +3 -4
  4. package/dist/blocks/button/edit.js +15 -21
  5. package/dist/blocks/button/render.php +40 -43
  6. package/dist/blocks/button/save.js +13 -19
  7. package/dist/blocks/button/style.css +8 -25
  8. package/dist/blocks/chip/block.json +3 -1
  9. package/dist/blocks/chip/render.php +1 -1
  10. package/dist/blocks/chip/style.css +3 -3
  11. package/dist/blocks/dialog-box/block.json +2 -1
  12. package/dist/blocks/divider/block.json +3 -1
  13. package/dist/blocks/flag/block.json +3 -1
  14. package/dist/blocks/flag/style.css +19 -22
  15. package/dist/blocks/icon/block.json +2 -1
  16. package/dist/blocks/icon-button/block.json +3 -1
  17. package/dist/blocks/icon-button/render.php +3 -2
  18. package/dist/blocks/icon-button/style.css +9 -8
  19. package/dist/blocks/input/block.json +3 -1
  20. package/dist/blocks/input/style.css +31 -17
  21. package/dist/blocks/input-helper-message/block.json +2 -1
  22. package/dist/blocks/link/block.json +3 -1
  23. package/dist/blocks/link/style.css +123 -21
  24. package/dist/blocks/tab/block.json +2 -1
  25. package/dist/blocks/tab/style.css +146 -17
  26. package/dist/blocks/tab-group/block.json +2 -1
  27. package/dist/blocks/text/block.json +3 -1
  28. package/dist/blocks/toast/block.json +3 -1
  29. package/dist/blocks/toast/style.css +32 -31
  30. package/dist/blocks/utils/render-icon.php +39 -0
  31. package/dist/blocks/utils/sanitize-data-attributes.php +37 -0
  32. package/dist/icon-data.json +2661 -2661
  33. package/dist/index.cjs +975 -263
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.css +1 -1
  36. package/dist/index.css.map +1 -1
  37. package/dist/index.js +976 -264
  38. package/dist/index.js.map +1 -1
  39. package/dist/plugin.php +162 -12
  40. package/package.json +9 -6
  41. package/plugin.php +162 -12
  42. 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 { useBlockProps, InspectorControls, RichText } from '@wordpress/block-editor';
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("div", blockProps, /*#__PURE__*/React.createElement(Element, {
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)))), /*#__PURE__*/React.createElement(InspectorControls, null, /*#__PURE__*/React.createElement(PanelBody, {
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("div", blockProps, /*#__PURE__*/React.createElement(Element, {
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$9 = "https://schemas.wp.org/trunk/block.json";
371
- var apiVersion$9 = 3;
372
- var name$9 = "tds/button";
373
- var title$9 = "Button";
374
- var category$9 = "common";
375
- var description$9 = "A customizable button component for user interactions";
376
- var icon$9 = "admin-generic";
377
- var supports$9 = {
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$9 = "file:./render.php";
388
- var attributes$9 = {
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"
@@ -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 = "file:./index.js";
491
- var editorStyle = "file:./style-editor.css";
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$9,
495
- apiVersion: apiVersion$9,
496
- name: name$9,
497
- title: title$9,
498
- category: category$9,
499
- description: description$9,
500
- icon: icon$9,
501
- supports: supports$9,
502
- textdomain: textdomain,
503
- render: render$9,
504
- attributes: attributes$9,
505
- editorScript: editorScript,
506
- editorStyle: editorStyle,
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$8 = "https://schemas.wp.org/trunk/block.json";
516
- var apiVersion$8 = 3;
517
- var name$8 = "tds/divider";
518
- var title$8 = "Divider";
519
- var category$8 = "common";
520
- var description$8 = "A horizontal line divider component";
521
- var icon$8 = "minus";
522
- var supports$8 = {
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$8 = "file:./render.php";
533
- var attributes$8 = {
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$8,
562
- apiVersion: apiVersion$8,
563
- name: name$8,
564
- title: title$8,
565
- category: category$8,
566
- description: description$8,
567
- icon: icon$8,
568
- supports: supports$8,
569
- render: render$8,
570
- attributes: attributes$8,
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$8 = function edit(_ref) {
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$8 = function save(_ref) {
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$8,
660
- save: save$8
659
+ edit: edit$d,
660
+ save: save$d
661
661
  }));
662
662
 
663
- var $schema$7 = "https://schemas.wp.org/trunk/block.json";
664
- var apiVersion$7 = 3;
665
- var name$7 = "tds/text";
666
- var title$7 = "Text";
667
- var category$7 = "common";
668
- var description$7 = "Typography component for displaying text with style variants";
669
- var icon$7 = "editor-paragraph";
670
- var supports$7 = {
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$7 = "file:./render.php";
678
- var attributes$7 = {
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$7,
716
- apiVersion: apiVersion$7,
717
- name: name$7,
718
- title: title$7,
719
- category: category$7,
720
- description: description$7,
721
- icon: icon$7,
722
- supports: supports$7,
723
- render: render$7,
724
- attributes: attributes$7,
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$7 = function edit(_ref) {
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$7 = function save(_ref) {
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$7,
836
- save: save$7
839
+ edit: edit$c,
840
+ save: save$c
837
841
  }));
838
842
 
839
- var $schema$6 = "https://schemas.wp.org/trunk/block.json";
840
- var apiVersion$6 = 3;
841
- var name$6 = "tds/input";
842
- var title$6 = "Input";
843
- var category$6 = "common";
844
- var description$6 = "Form input field component";
845
- var icon$6 = "text";
846
- var supports$6 = {
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$6 = "file:./render.php";
853
- var attributes$6 = {
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$6,
906
- apiVersion: apiVersion$6,
907
- name: name$6,
908
- title: title$6,
909
- category: category$6,
910
- description: description$6,
911
- icon: icon$6,
912
- supports: supports$6,
913
- render: render$6,
914
- attributes: attributes$6,
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$6 = function edit(_ref) {
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$6 = function save(_ref) {
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,25 +1070,25 @@ var save$6 = function save(_ref) {
1062
1070
  };
1063
1071
 
1064
1072
  registerBlockType(metadata$6.name, _objectSpread2(_objectSpread2({}, metadata$6), {}, {
1065
- edit: edit$6,
1066
- save: save$6
1073
+ edit: edit$b,
1074
+ save: save$b
1067
1075
  }));
1068
1076
 
1069
- var $schema$5 = "https://schemas.wp.org/trunk/block.json";
1070
- var apiVersion$5 = 3;
1071
- var name$5 = "tds/icon-button";
1072
- var title$5 = "Icon Button";
1073
- var category$5 = "common";
1074
- var description$5 = "Button component displaying only an icon";
1075
- var icon$5 = "button";
1076
- var supports$5 = {
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$5 = "file:./render.php";
1083
- var attributes$5 = {
1090
+ var render$a = "file:./render.php";
1091
+ var attributes$a = {
1084
1092
  iconName: {
1085
1093
  type: "string",
1086
1094
  "default": "",
@@ -1145,21 +1153,25 @@ var attributes$5 = {
1145
1153
  };
1146
1154
  var example$5 = {
1147
1155
  };
1156
+ var script$a = "times-design-system";
1157
+ var editorScript$a = "times-design-system";
1148
1158
  var metadata$5 = {
1149
- $schema: $schema$5,
1150
- apiVersion: apiVersion$5,
1151
- name: name$5,
1152
- title: title$5,
1153
- category: category$5,
1154
- description: description$5,
1155
- icon: icon$5,
1156
- supports: supports$5,
1157
- render: render$5,
1158
- attributes: attributes$5,
1159
- 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
1160
1172
  };
1161
1173
 
1162
- var edit$5 = function edit(_ref) {
1174
+ var edit$a = function edit(_ref) {
1163
1175
  var attributes = _ref.attributes,
1164
1176
  setAttributes = _ref.setAttributes;
1165
1177
  var iconName = attributes.iconName,
@@ -1281,7 +1293,7 @@ var edit$5 = function edit(_ref) {
1281
1293
  }, iconName)));
1282
1294
  };
1283
1295
 
1284
- var save$5 = function save(_ref) {
1296
+ var save$a = function save(_ref) {
1285
1297
  var attributes = _ref.attributes;
1286
1298
  var iconName = attributes.iconName,
1287
1299
  round = attributes.round,
@@ -1308,25 +1320,25 @@ var save$5 = function save(_ref) {
1308
1320
  };
1309
1321
 
1310
1322
  registerBlockType(metadata$5.name, _objectSpread2(_objectSpread2({}, metadata$5), {}, {
1311
- edit: edit$5,
1312
- save: save$5
1323
+ edit: edit$a,
1324
+ save: save$a
1313
1325
  }));
1314
1326
 
1315
- var $schema$4 = "https://schemas.wp.org/trunk/block.json";
1316
- var apiVersion$4 = 3;
1317
- var name$4 = "tds/chip";
1318
- var title$4 = "Chip";
1319
- var category$4 = "common";
1320
- var description$4 = "Small component for displaying labels, tags, or filter options";
1321
- var icon$4 = "tag";
1322
- var supports$4 = {
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 = {
1323
1335
  html: false,
1324
1336
  spacing: {
1325
1337
  margin: true
1326
1338
  }
1327
1339
  };
1328
- var render$4 = "file:./render.php";
1329
- var attributes$4 = {
1340
+ var render$9 = "file:./render.php";
1341
+ var attributes$9 = {
1330
1342
  content: {
1331
1343
  type: "string",
1332
1344
  "default": ""
@@ -1383,21 +1395,25 @@ var attributes$4 = {
1383
1395
  };
1384
1396
  var example$4 = {
1385
1397
  };
1398
+ var script$9 = "times-design-system";
1399
+ var editorScript$9 = "times-design-system";
1386
1400
  var metadata$4 = {
1387
- $schema: $schema$4,
1388
- apiVersion: apiVersion$4,
1389
- name: name$4,
1390
- title: title$4,
1391
- category: category$4,
1392
- description: description$4,
1393
- icon: icon$4,
1394
- supports: supports$4,
1395
- render: render$4,
1396
- attributes: attributes$4,
1397
- 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
1398
1414
  };
1399
1415
 
1400
- var edit$4 = function edit(_ref) {
1416
+ var edit$9 = function edit(_ref) {
1401
1417
  var attributes = _ref.attributes,
1402
1418
  setAttributes = _ref.setAttributes;
1403
1419
  var content = attributes.content,
@@ -1529,7 +1545,7 @@ var edit$4 = function edit(_ref) {
1529
1545
  }, iconRight)));
1530
1546
  };
1531
1547
 
1532
- var save$4 = function save(_ref) {
1548
+ var save$9 = function save(_ref) {
1533
1549
  var attributes = _ref.attributes;
1534
1550
  var content = attributes.content,
1535
1551
  intent = attributes.intent,
@@ -1564,25 +1580,25 @@ var save$4 = function save(_ref) {
1564
1580
  };
1565
1581
 
1566
1582
  registerBlockType(metadata$4.name, _objectSpread2(_objectSpread2({}, metadata$4), {}, {
1567
- edit: edit$4,
1568
- save: save$4
1583
+ edit: edit$9,
1584
+ save: save$9
1569
1585
  }));
1570
1586
 
1571
- var $schema$3 = "https://schemas.wp.org/trunk/block.json";
1572
- var apiVersion$3 = 3;
1573
- var name$3 = "tds/flag";
1574
- var title$3 = "Flag";
1575
- var category$3 = "common";
1576
- var description$3 = "Badge or status indicator component";
1577
- var icon$3 = "flag";
1578
- var supports$3 = {
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 = {
1579
1595
  html: false,
1580
1596
  spacing: {
1581
1597
  margin: true
1582
1598
  }
1583
1599
  };
1584
- var render$3 = "file:./render.php";
1585
- var attributes$3 = {
1600
+ var render$8 = "file:./render.php";
1601
+ var attributes$8 = {
1586
1602
  label: {
1587
1603
  type: "string",
1588
1604
  "default": ""
@@ -1638,21 +1654,25 @@ var attributes$3 = {
1638
1654
  };
1639
1655
  var example$3 = {
1640
1656
  };
1657
+ var script$8 = "times-design-system";
1658
+ var editorScript$8 = "times-design-system";
1641
1659
  var metadata$3 = {
1642
- $schema: $schema$3,
1643
- apiVersion: apiVersion$3,
1644
- name: name$3,
1645
- title: title$3,
1646
- category: category$3,
1647
- description: description$3,
1648
- icon: icon$3,
1649
- supports: supports$3,
1650
- render: render$3,
1651
- attributes: attributes$3,
1652
- 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
1653
1673
  };
1654
1674
 
1655
- var edit$3 = function edit(_ref) {
1675
+ var edit$8 = function edit(_ref) {
1656
1676
  var attributes = _ref.attributes,
1657
1677
  setAttributes = _ref.setAttributes;
1658
1678
  var label = attributes.label,
@@ -1784,7 +1804,7 @@ var edit$3 = function edit(_ref) {
1784
1804
  }, iconRight)));
1785
1805
  };
1786
1806
 
1787
- var save$3 = function save(_ref) {
1807
+ var save$8 = function save(_ref) {
1788
1808
  var attributes = _ref.attributes;
1789
1809
  var label = attributes.label,
1790
1810
  content = attributes.content,
@@ -1816,25 +1836,25 @@ var save$3 = function save(_ref) {
1816
1836
  };
1817
1837
 
1818
1838
  registerBlockType(metadata$3.name, _objectSpread2(_objectSpread2({}, metadata$3), {}, {
1819
- edit: edit$3,
1820
- save: save$3
1839
+ edit: edit$8,
1840
+ save: save$8
1821
1841
  }));
1822
1842
 
1823
- var $schema$2 = "https://schemas.wp.org/trunk/block.json";
1824
- var apiVersion$2 = 3;
1825
- var name$2 = "tds/toast";
1826
- var title$2 = "Toast";
1827
- var category$2 = "common";
1828
- var description$2 = "Notification toast component";
1829
- var icon$2 = "bell";
1830
- var supports$2 = {
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 = {
1831
1851
  html: false,
1832
1852
  spacing: {
1833
1853
  margin: true
1834
1854
  }
1835
1855
  };
1836
- var render$2 = "file:./render.php";
1837
- var attributes$2 = {
1856
+ var render$7 = "file:./render.php";
1857
+ var attributes$7 = {
1838
1858
  label: {
1839
1859
  type: "string",
1840
1860
  "default": ""
@@ -1875,21 +1895,25 @@ var attributes$2 = {
1875
1895
  };
1876
1896
  var example$2 = {
1877
1897
  };
1898
+ var script$7 = "times-design-system";
1899
+ var editorScript$7 = "times-design-system";
1878
1900
  var metadata$2 = {
1879
- $schema: $schema$2,
1880
- apiVersion: apiVersion$2,
1881
- name: name$2,
1882
- title: title$2,
1883
- category: category$2,
1884
- description: description$2,
1885
- icon: icon$2,
1886
- supports: supports$2,
1887
- render: render$2,
1888
- attributes: attributes$2,
1889
- 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
1890
1914
  };
1891
1915
 
1892
- var edit$2 = function edit(_ref) {
1916
+ var edit$7 = function edit(_ref) {
1893
1917
  var attributes = _ref.attributes,
1894
1918
  setAttributes = _ref.setAttributes;
1895
1919
  var label = attributes.label,
@@ -2001,7 +2025,7 @@ var edit$2 = function edit(_ref) {
2001
2025
  }, linkLabel)));
2002
2026
  };
2003
2027
 
2004
- var save$2 = function save(_ref) {
2028
+ var save$7 = function save(_ref) {
2005
2029
  var attributes = _ref.attributes;
2006
2030
  var label = attributes.label,
2007
2031
  intent = attributes.intent,
@@ -2030,25 +2054,25 @@ var save$2 = function save(_ref) {
2030
2054
  };
2031
2055
 
2032
2056
  registerBlockType(metadata$2.name, _objectSpread2(_objectSpread2({}, metadata$2), {}, {
2033
- edit: edit$2,
2034
- save: save$2
2057
+ edit: edit$7,
2058
+ save: save$7
2035
2059
  }));
2036
2060
 
2037
- var $schema$1 = "https://schemas.wp.org/trunk/block.json";
2038
- var apiVersion$1 = 3;
2039
- var name$1 = "tds/link";
2040
- var title$1 = "Link";
2041
- var category$1 = "common";
2042
- var description$1 = "Styled link component with variants and states";
2043
- var icon$1 = "link";
2044
- var supports$1 = {
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 = {
2045
2069
  html: false,
2046
2070
  spacing: {
2047
2071
  margin: true
2048
2072
  }
2049
2073
  };
2050
- var render$1 = "file:./render.php";
2051
- var attributes$1 = {
2074
+ var render$6 = "file:./render.php";
2075
+ var attributes$6 = {
2052
2076
  href: {
2053
2077
  type: "string",
2054
2078
  "default": ""
@@ -2129,21 +2153,25 @@ var attributes$1 = {
2129
2153
  };
2130
2154
  var example$1 = {
2131
2155
  };
2156
+ var script$6 = "times-design-system";
2157
+ var editorScript$6 = "times-design-system";
2132
2158
  var metadata$1 = {
2133
- $schema: $schema$1,
2134
- apiVersion: apiVersion$1,
2135
- name: name$1,
2136
- title: title$1,
2137
- category: category$1,
2138
- description: description$1,
2139
- icon: icon$1,
2140
- supports: supports$1,
2141
- render: render$1,
2142
- attributes: attributes$1,
2143
- example: example$1
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
2144
2172
  };
2145
2173
 
2146
- var edit$1 = function edit(_ref) {
2174
+ var edit$6 = function edit(_ref) {
2147
2175
  var attributes = _ref.attributes,
2148
2176
  setAttributes = _ref.setAttributes;
2149
2177
  var href = attributes.href,
@@ -2332,7 +2360,7 @@ var edit$1 = function edit(_ref) {
2332
2360
  }, iconRight)));
2333
2361
  };
2334
2362
 
2335
- var save$1 = function save(_ref) {
2363
+ var save$6 = function save(_ref) {
2336
2364
  var attributes = _ref.attributes;
2337
2365
  var href = attributes.href,
2338
2366
  content = attributes.content,
@@ -2373,26 +2401,26 @@ var save$1 = function save(_ref) {
2373
2401
  };
2374
2402
 
2375
2403
  registerBlockType(metadata$1.name, _objectSpread2(_objectSpread2({}, metadata$1), {}, {
2376
- edit: edit$1,
2377
- save: save$1
2404
+ edit: edit$6,
2405
+ save: save$6
2378
2406
  }));
2379
2407
 
2380
- var $schema = "https://schemas.wp.org/trunk/block.json";
2381
- var apiVersion = 3;
2382
- var name = "tds/ad-container";
2383
- var title = "Ad Container";
2384
- var category = "common";
2385
- var description = "Advertising container placeholder";
2386
- var icon = "image";
2387
- var supports = {
2388
- html: false,
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 = {
2416
+ html: false,
2389
2417
  spacing: {
2390
2418
  margin: true,
2391
2419
  padding: true
2392
2420
  }
2393
2421
  };
2394
- var render = "file:./render.php";
2395
- var attributes = {
2422
+ var render$5 = "file:./render.php";
2423
+ var attributes$5 = {
2396
2424
  type: {
2397
2425
  type: "string",
2398
2426
  "default": "inline",
@@ -2419,21 +2447,25 @@ var attributes = {
2419
2447
  };
2420
2448
  var example = {
2421
2449
  };
2450
+ var script$5 = "times-design-system";
2451
+ var editorScript$5 = "times-design-system";
2422
2452
  var metadata = {
2423
- $schema: $schema,
2424
- apiVersion: apiVersion,
2425
- name: name,
2426
- title: title,
2427
- category: category,
2428
- description: description,
2429
- icon: icon,
2430
- supports: supports,
2431
- render: render,
2432
- attributes: attributes,
2433
- 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
2434
2466
  };
2435
2467
 
2436
- var edit = function edit(_ref) {
2468
+ var edit$5 = function edit(_ref) {
2437
2469
  var attributes = _ref.attributes,
2438
2470
  setAttributes = _ref.setAttributes;
2439
2471
  var type = attributes.type,
@@ -2494,7 +2526,7 @@ var edit = function edit(_ref) {
2494
2526
  }, /*#__PURE__*/React.createElement("p", null, "Ad Slot: ", slotID || '(not configured)'))));
2495
2527
  };
2496
2528
 
2497
- var save = function save(_ref) {
2529
+ var save$5 = function save(_ref) {
2498
2530
  var attributes = _ref.attributes;
2499
2531
  var type = attributes.type,
2500
2532
  slotID = attributes.slotID;
@@ -2506,7 +2538,687 @@ var save = function save(_ref) {
2506
2538
  };
2507
2539
 
2508
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), {}, {
2509
3211
  edit: edit,
2510
3212
  save: save
2511
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');
2512
3224
  //# sourceMappingURL=index.js.map