@rjsf/semantic-ui 5.24.10 → 6.0.0-beta.1

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 (58) hide show
  1. package/dist/index.js +96 -123
  2. package/dist/index.js.map +4 -4
  3. package/dist/semantic-ui.esm.js +90 -113
  4. package/dist/semantic-ui.esm.js.map +4 -4
  5. package/dist/semantic-ui.umd.js +33 -64
  6. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +3 -3
  7. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +5 -5
  8. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
  9. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -1
  10. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +3 -3
  11. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  12. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
  13. package/lib/DescriptionField/DescriptionField.js.map +1 -1
  14. package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
  15. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
  16. package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
  17. package/lib/GridTemplate/GridTemplate.d.ts +7 -0
  18. package/lib/GridTemplate/GridTemplate.js +15 -0
  19. package/lib/GridTemplate/GridTemplate.js.map +1 -0
  20. package/lib/GridTemplate/index.d.ts +2 -0
  21. package/lib/GridTemplate/index.js +3 -0
  22. package/lib/GridTemplate/index.js.map +1 -0
  23. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +2 -2
  24. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  25. package/lib/SelectWidget/SelectWidget.js.map +1 -1
  26. package/lib/SubmitButton/SubmitButton.js.map +1 -1
  27. package/lib/Templates/Templates.js +2 -0
  28. package/lib/Templates/Templates.js.map +1 -1
  29. package/lib/TitleField/TitleField.js.map +1 -1
  30. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +2 -2
  31. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  32. package/lib/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +41 -34
  34. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +15 -62
  35. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +16 -8
  36. package/src/BaseInputTemplate/BaseInputTemplate.tsx +1 -1
  37. package/src/CheckboxWidget/CheckboxWidget.tsx +2 -2
  38. package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
  39. package/src/DescriptionField/DescriptionField.tsx +1 -1
  40. package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +1 -1
  41. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +1 -1
  42. package/src/FieldTemplate/FieldTemplate.tsx +2 -2
  43. package/src/GridTemplate/GridTemplate.tsx +15 -0
  44. package/src/GridTemplate/index.ts +2 -0
  45. package/src/IconButton/IconButton.tsx +5 -5
  46. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +5 -2
  47. package/src/RadioWidget/RadioWidget.tsx +1 -1
  48. package/src/RangeWidget/RangeWidget.tsx +1 -1
  49. package/src/SelectWidget/SelectWidget.tsx +3 -3
  50. package/src/SemanticUIForm/SemanticUIForm.ts +1 -1
  51. package/src/SubmitButton/SubmitButton.tsx +1 -1
  52. package/src/Templates/Templates.ts +3 -1
  53. package/src/TextareaWidget/TextareaWidget.tsx +1 -1
  54. package/src/Theme/Theme.ts +1 -1
  55. package/src/Widgets/Widgets.tsx +1 -1
  56. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +4 -2
  57. package/src/util.tsx +3 -3
  58. package/LICENSE.md +0 -201
package/dist/index.js CHANGED
@@ -28,25 +28,25 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  Form: () => SemanticUIForm_default,
34
34
  Templates: () => Templates_default,
35
35
  Theme: () => Theme_default,
36
36
  Widgets: () => Widgets_default,
37
- default: () => src_default,
37
+ default: () => index_default,
38
38
  generateForm: () => generateForm,
39
39
  generateTemplates: () => generateTemplates,
40
40
  generateTheme: () => generateTheme,
41
41
  generateWidgets: () => generateWidgets
42
42
  });
43
- module.exports = __toCommonJS(src_exports);
43
+ module.exports = __toCommonJS(index_exports);
44
44
 
45
45
  // src/SemanticUIForm/SemanticUIForm.ts
46
46
  var import_core = require("@rjsf/core");
47
47
 
48
48
  // src/Theme/Theme.ts
49
- var import_semantic_ui_react19 = require("semantic-ui-react");
49
+ var import_semantic_ui_react20 = require("semantic-ui-react");
50
50
 
51
51
  // src/AddButton/AddButton.tsx
52
52
  var import_semantic_ui_react = require("semantic-ui-react");
@@ -125,69 +125,17 @@ var gridStyle = (vertical) => ({
125
125
  gridTemplateColumns: `1fr ${vertical ? 65 : 150}px`
126
126
  });
127
127
  function ArrayFieldItemTemplate(props) {
128
- const {
129
- children,
130
- disabled,
131
- hasToolbar,
132
- hasCopy,
133
- hasMoveDown,
134
- hasMoveUp,
135
- hasRemove,
136
- index,
137
- onCopyIndexClick,
138
- onDropIndexClick,
139
- onReorderClick,
140
- readonly,
141
- uiSchema,
142
- registry
143
- } = props;
144
- const { CopyButton: CopyButton2, MoveDownButton: MoveDownButton2, MoveUpButton: MoveUpButton2, RemoveButton: RemoveButton2 } = registry.templates.ButtonTemplates;
128
+ const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
145
129
  const uiOptions = (0, import_utils3.getUiOptions)(uiSchema);
130
+ const ArrayFieldItemButtonsTemplate = (0, import_utils3.getTemplate)(
131
+ "ArrayFieldItemButtonsTemplate",
132
+ registry,
133
+ uiOptions
134
+ );
146
135
  const { horizontalButtons = true, wrapItem = false } = uiOptions.semantic;
147
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "array-item", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MaybeWrap, { wrap: wrapItem, component: import_semantic_ui_react2.Segment, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_semantic_ui_react2.Grid, { style: { ...gridStyle(!horizontalButtons), alignItems: "center" }, children: [
136
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "rjsf-array-item", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(MaybeWrap, { wrap: wrapItem, component: import_semantic_ui_react2.Segment, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_semantic_ui_react2.Grid, { style: { ...gridStyle(!horizontalButtons), alignItems: "center" }, children: [
148
137
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_semantic_ui_react2.Grid.Column, { width: 16, verticalAlign: "middle", children }),
149
- hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_semantic_ui_react2.Grid.Column, { children: (hasMoveUp || hasMoveDown || hasRemove) && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_semantic_ui_react2.Button.Group, { size: "mini", vertical: !horizontalButtons, children: [
150
- (hasMoveUp || hasMoveDown) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
151
- MoveUpButton2,
152
- {
153
- className: "array-item-move-up",
154
- disabled: disabled || readonly || !hasMoveUp,
155
- onClick: onReorderClick(index, index - 1),
156
- uiSchema,
157
- registry
158
- }
159
- ),
160
- (hasMoveUp || hasMoveDown) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
161
- MoveDownButton2,
162
- {
163
- className: "array-item-move-down",
164
- disabled: disabled || readonly || !hasMoveDown,
165
- onClick: onReorderClick(index, index + 1),
166
- uiSchema,
167
- registry
168
- }
169
- ),
170
- hasCopy && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
171
- CopyButton2,
172
- {
173
- className: "array-item-copy",
174
- disabled: disabled || readonly,
175
- onClick: onCopyIndexClick(index),
176
- uiSchema,
177
- registry
178
- }
179
- ),
180
- hasRemove && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
181
- RemoveButton2,
182
- {
183
- className: "array-item-remove",
184
- disabled: disabled || readonly,
185
- onClick: onDropIndexClick(index),
186
- uiSchema,
187
- registry
188
- }
189
- )
190
- ] }) })
138
+ hasToolbar && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_semantic_ui_react2.Grid.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_semantic_ui_react2.Button.Group, { size: "mini", vertical: !horizontalButtons, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ArrayFieldItemButtonsTemplate, { ...buttonsProps }) }) })
191
139
  ] }) }) });
192
140
  }
193
141
 
@@ -279,7 +227,17 @@ function ArrayFieldTemplate(props) {
279
227
  position: "relative",
280
228
  textAlign: "right"
281
229
  },
282
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(AddButton2, { onClick: onAddClick, disabled: disabled || readonly, uiSchema, registry })
230
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
231
+ AddButton2,
232
+ {
233
+ id: (0, import_utils4.buttonId)(idSchema, "add"),
234
+ className: "rjsf-array-item-add",
235
+ onClick: onAddClick,
236
+ disabled: disabled || readonly,
237
+ uiSchema,
238
+ registry
239
+ }
240
+ )
283
241
  }
284
242
  )
285
243
  ] }, `array-item-list-${idSchema.$id}`)
@@ -510,10 +468,21 @@ function FieldTemplate(props) {
510
468
  );
511
469
  }
512
470
 
513
- // src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
471
+ // src/GridTemplate/GridTemplate.tsx
514
472
  var import_semantic_ui_react9 = require("semantic-ui-react");
515
- var import_utils11 = require("@rjsf/utils");
516
473
  var import_jsx_runtime12 = require("react/jsx-runtime");
474
+ function GridTemplate(props) {
475
+ const { children, column, ...rest } = props;
476
+ if (column) {
477
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_semantic_ui_react9.Grid.Column, { ...rest, children });
478
+ }
479
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_semantic_ui_react9.Grid, { ...rest, children });
480
+ }
481
+
482
+ // src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
483
+ var import_semantic_ui_react10 = require("semantic-ui-react");
484
+ var import_utils11 = require("@rjsf/utils");
485
+ var import_jsx_runtime13 = require("react/jsx-runtime");
517
486
  function ObjectFieldTemplate(props) {
518
487
  const {
519
488
  description,
@@ -539,8 +508,8 @@ function ObjectFieldTemplate(props) {
539
508
  const {
540
509
  ButtonTemplates: { AddButton: AddButton2 }
541
510
  } = registry.templates;
542
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
543
- title && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
511
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
512
+ title && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
544
513
  TitleFieldTemplate,
545
514
  {
546
515
  id: (0, import_utils11.titleId)(idSchema),
@@ -551,7 +520,7 @@ function ObjectFieldTemplate(props) {
551
520
  registry
552
521
  }
553
522
  ),
554
- description && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
523
+ description && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
555
524
  DescriptionFieldTemplate,
556
525
  {
557
526
  id: (0, import_utils11.descriptionId)(idSchema),
@@ -562,7 +531,7 @@ function ObjectFieldTemplate(props) {
562
531
  }
563
532
  ),
564
533
  properties.map((prop) => prop.content),
565
- (0, import_utils11.canExpand)(schema, uiSchema, formData) && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_semantic_ui_react9.Grid.Column, { width: 16, verticalAlign: "middle", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_semantic_ui_react9.Grid.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
534
+ (0, import_utils11.canExpand)(schema, uiSchema, formData) && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_semantic_ui_react10.Grid.Column, { width: 16, verticalAlign: "middle", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_semantic_ui_react10.Grid.Row, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
566
535
  "div",
567
536
  {
568
537
  style: {
@@ -570,9 +539,11 @@ function ObjectFieldTemplate(props) {
570
539
  position: "relative",
571
540
  textAlign: "right"
572
541
  },
573
- children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
542
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
574
543
  AddButton2,
575
544
  {
545
+ id: (0, import_utils11.buttonId)(idSchema, "add"),
546
+ className: "rjsf-object-property-expand",
576
547
  onClick: onAddClick(schema),
577
548
  disabled: disabled || readonly,
578
549
  uiSchema,
@@ -585,20 +556,20 @@ function ObjectFieldTemplate(props) {
585
556
  }
586
557
 
587
558
  // src/SubmitButton/SubmitButton.tsx
588
- var import_semantic_ui_react10 = require("semantic-ui-react");
559
+ var import_semantic_ui_react11 = require("semantic-ui-react");
589
560
  var import_utils12 = require("@rjsf/utils");
590
- var import_jsx_runtime13 = require("react/jsx-runtime");
561
+ var import_jsx_runtime14 = require("react/jsx-runtime");
591
562
  function SubmitButton({ uiSchema }) {
592
563
  const { submitText, norender, props: submitButtonProps = {} } = (0, import_utils12.getSubmitButtonOptions)(uiSchema);
593
564
  if (norender) {
594
565
  return null;
595
566
  }
596
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_semantic_ui_react10.Button, { type: "submit", primary: true, ...submitButtonProps, children: submitText });
567
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_semantic_ui_react11.Button, { type: "submit", primary: true, ...submitButtonProps, children: submitText });
597
568
  }
598
569
 
599
570
  // src/TitleField/TitleField.tsx
600
- var import_semantic_ui_react11 = require("semantic-ui-react");
601
- var import_jsx_runtime14 = require("react/jsx-runtime");
571
+ var import_semantic_ui_react12 = require("semantic-ui-react");
572
+ var import_jsx_runtime15 = require("react/jsx-runtime");
602
573
  var DEFAULT_OPTIONS2 = {
603
574
  inverted: false,
604
575
  dividing: true
@@ -615,13 +586,13 @@ function TitleField({
615
586
  if (!title) {
616
587
  return null;
617
588
  }
618
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_semantic_ui_react11.Header, { id, ...semanticProps, as: "h5", children: title });
589
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_semantic_ui_react12.Header, { id, ...semanticProps, as: "h5", children: title });
619
590
  }
620
591
 
621
592
  // src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
622
593
  var import_utils13 = require("@rjsf/utils");
623
- var import_semantic_ui_react12 = require("semantic-ui-react");
624
- var import_jsx_runtime15 = require("react/jsx-runtime");
594
+ var import_semantic_ui_react13 = require("semantic-ui-react");
595
+ var import_jsx_runtime16 = require("react/jsx-runtime");
625
596
  function WrapIfAdditionalTemplate(props) {
626
597
  const {
627
598
  children,
@@ -644,12 +615,12 @@ function WrapIfAdditionalTemplate(props) {
644
615
  const { readonlyAsDisabled = true, wrapperStyle } = registry.formContext;
645
616
  const additional = import_utils13.ADDITIONAL_PROPERTY_FLAG in schema;
646
617
  if (!additional) {
647
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: classNames, style, children });
618
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: classNames, style, children });
648
619
  }
649
620
  const handleBlur = ({ target }) => onKeyChange(target.value);
650
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: classNames, style, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_semantic_ui_react12.Grid, { columns: "equal", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_semantic_ui_react12.Grid.Row, { children: [
651
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_semantic_ui_react12.Grid.Column, { className: "form-additional", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_semantic_ui_react12.Form.Group, { widths: "equal", grouped: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
652
- import_semantic_ui_react12.Form.Input,
621
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: classNames, style, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_semantic_ui_react13.Grid, { columns: "equal", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_semantic_ui_react13.Grid.Row, { children: [
622
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_semantic_ui_react13.Grid.Column, { className: "form-additional", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_semantic_ui_react13.Form.Group, { widths: "equal", grouped: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
623
+ import_semantic_ui_react13.Form.Input,
653
624
  {
654
625
  className: "form-group",
655
626
  hasFeedback: true,
@@ -666,12 +637,13 @@ function WrapIfAdditionalTemplate(props) {
666
637
  type: "text"
667
638
  }
668
639
  ) }) }),
669
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_semantic_ui_react12.Grid.Column, { className: "form-additional", verticalAlign: "middle", children }),
670
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_semantic_ui_react12.Grid.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
640
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_semantic_ui_react13.Grid.Column, { className: "form-additional", verticalAlign: "middle", children }),
641
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_semantic_ui_react13.Grid.Column, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
671
642
  RemoveButton2,
672
643
  {
644
+ id: (0, import_utils13.buttonId)(id, "remove"),
673
645
  iconType: "mini",
674
- className: "array-item-remove",
646
+ className: "rjsf-object-property-remove",
675
647
  disabled: disabled || readonly,
676
648
  onClick: onDropPropertyClick(label),
677
649
  uiSchema,
@@ -700,6 +672,7 @@ function generateTemplates() {
700
672
  FieldErrorTemplate,
701
673
  FieldHelpTemplate,
702
674
  FieldTemplate,
675
+ GridTemplate,
703
676
  ObjectFieldTemplate,
704
677
  TitleFieldTemplate: TitleField,
705
678
  WrapIfAdditionalTemplate
@@ -709,8 +682,8 @@ var Templates_default = generateTemplates();
709
682
 
710
683
  // src/CheckboxWidget/CheckboxWidget.tsx
711
684
  var import_utils14 = require("@rjsf/utils");
712
- var import_semantic_ui_react13 = require("semantic-ui-react");
713
- var import_jsx_runtime16 = require("react/jsx-runtime");
685
+ var import_semantic_ui_react14 = require("semantic-ui-react");
686
+ var import_jsx_runtime17 = require("react/jsx-runtime");
714
687
  function CheckboxWidget(props) {
715
688
  const {
716
689
  id,
@@ -749,8 +722,8 @@ function CheckboxWidget(props) {
749
722
  const _onFocus = () => onFocus && onFocus(id, value);
750
723
  const checked = value == "true" || value == true;
751
724
  const description = options.description ?? schema.description;
752
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
753
- !hideLabel && !!description && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
725
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
726
+ !hideLabel && !!description && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
754
727
  DescriptionFieldTemplate,
755
728
  {
756
729
  id: (0, import_utils14.descriptionId)(id),
@@ -760,8 +733,8 @@ function CheckboxWidget(props) {
760
733
  registry
761
734
  }
762
735
  ),
763
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
764
- import_semantic_ui_react13.Form.Checkbox,
736
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
737
+ import_semantic_ui_react14.Form.Checkbox,
765
738
  {
766
739
  id,
767
740
  name: id,
@@ -782,9 +755,9 @@ function CheckboxWidget(props) {
782
755
  }
783
756
 
784
757
  // src/CheckboxesWidget/CheckboxesWidget.tsx
785
- var import_semantic_ui_react14 = require("semantic-ui-react");
758
+ var import_semantic_ui_react15 = require("semantic-ui-react");
786
759
  var import_utils15 = require("@rjsf/utils");
787
- var import_jsx_runtime17 = require("react/jsx-runtime");
760
+ var import_jsx_runtime18 = require("react/jsx-runtime");
788
761
  function CheckboxesWidget(props) {
789
762
  const {
790
763
  id,
@@ -825,13 +798,13 @@ function CheckboxesWidget(props) {
825
798
  const _onBlur = () => onBlur(id, value);
826
799
  const _onFocus = () => onFocus(id, value);
827
800
  const inlineOption = inline ? { inline: true } : { grouped: true };
828
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
829
- !hideLabel && !!label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(TitleFieldTemplate, { id: (0, import_utils15.titleId)(id), title: label, schema, uiSchema, registry }),
830
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_semantic_ui_react14.Form.Group, { id, name: id, ...inlineOption, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
801
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
802
+ !hideLabel && !!label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(TitleFieldTemplate, { id: (0, import_utils15.titleId)(id), title: label, schema, uiSchema, registry }),
803
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_semantic_ui_react15.Form.Group, { id, name: id, ...inlineOption, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
831
804
  const checked = (0, import_utils15.enumOptionsIsSelected)(option.value, checkboxesValues);
832
805
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
833
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
834
- import_semantic_ui_react14.Form.Checkbox,
806
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
807
+ import_semantic_ui_react15.Form.Checkbox,
835
808
  {
836
809
  id: (0, import_utils15.optionId)(id, index),
837
810
  name: id,
@@ -854,8 +827,8 @@ function CheckboxesWidget(props) {
854
827
 
855
828
  // src/RadioWidget/RadioWidget.tsx
856
829
  var import_utils16 = require("@rjsf/utils");
857
- var import_semantic_ui_react15 = require("semantic-ui-react");
858
- var import_jsx_runtime18 = require("react/jsx-runtime");
830
+ var import_semantic_ui_react16 = require("semantic-ui-react");
831
+ var import_jsx_runtime19 = require("react/jsx-runtime");
859
832
  var import_react = require("react");
860
833
  function RadioWidget(props) {
861
834
  const {
@@ -884,14 +857,14 @@ function RadioWidget(props) {
884
857
  const _onBlur = () => onBlur(id, value);
885
858
  const _onFocus = () => onFocus(id, value);
886
859
  const inlineOption = options.inline ? { inline: true } : { grouped: true };
887
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_semantic_ui_react15.Form.Group, { ...inlineOption, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
860
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_semantic_ui_react16.Form.Group, { ...inlineOption, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
888
861
  const checked = (0, import_utils16.enumOptionsIsSelected)(option.value, value);
889
862
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
890
863
  return /* @__PURE__ */ (0, import_react.createElement)(
891
- import_semantic_ui_react15.Form.Field,
864
+ import_semantic_ui_react16.Form.Field,
892
865
  {
893
866
  required,
894
- control: import_semantic_ui_react15.Radio,
867
+ control: import_semantic_ui_react16.Radio,
895
868
  id: (0, import_utils16.optionId)(id, index),
896
869
  name: id,
897
870
  ...semanticProps,
@@ -911,9 +884,9 @@ function RadioWidget(props) {
911
884
  }
912
885
 
913
886
  // src/RangeWidget/RangeWidget.tsx
914
- var import_semantic_ui_react16 = require("semantic-ui-react");
887
+ var import_semantic_ui_react17 = require("semantic-ui-react");
915
888
  var import_utils17 = require("@rjsf/utils");
916
- var import_jsx_runtime19 = require("react/jsx-runtime");
889
+ var import_jsx_runtime20 = require("react/jsx-runtime");
917
890
  function RangeWidget(props) {
918
891
  const {
919
892
  id,
@@ -941,9 +914,9 @@ function RangeWidget(props) {
941
914
  const _onChange = ({ target: { value: value2 } }) => onChange && onChange(value2 === "" ? options.emptyValue : value2);
942
915
  const _onBlur = () => onBlur && onBlur(id, value);
943
916
  const _onFocus = () => onFocus && onFocus(id, value);
944
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
945
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
946
- import_semantic_ui_react16.Input,
917
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
918
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
919
+ import_semantic_ui_react17.Input,
947
920
  {
948
921
  id,
949
922
  name: id,
@@ -961,15 +934,15 @@ function RangeWidget(props) {
961
934
  },
962
935
  id
963
936
  ),
964
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: value })
937
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: value })
965
938
  ] });
966
939
  }
967
940
 
968
941
  // src/SelectWidget/SelectWidget.tsx
969
942
  var import_utils18 = require("@rjsf/utils");
970
- var import_map = __toESM(require("lodash/map"));
971
- var import_semantic_ui_react17 = require("semantic-ui-react");
972
- var import_jsx_runtime20 = require("react/jsx-runtime");
943
+ var import_map = __toESM(require("lodash/map"), 1);
944
+ var import_semantic_ui_react18 = require("semantic-ui-react");
945
+ var import_jsx_runtime21 = require("react/jsx-runtime");
973
946
  function createDefaultValueOptionsForDropDown(enumOptions, enumDisabled, showPlaceholderOption, placeholder) {
974
947
  const disabledOptions = enumDisabled || [];
975
948
  const options = (0, import_map.default)(enumOptions, ({ label, value }, index) => ({
@@ -1029,8 +1002,8 @@ function SelectWidget(props) {
1029
1002
  const _onBlur = (_, { target }) => onBlur(id, (0, import_utils18.enumOptionsValueForIndex)(target && target.value, enumOptions, optEmptyVal));
1030
1003
  const _onFocus = (_, { target }) => onFocus(id, (0, import_utils18.enumOptionsValueForIndex)(target && target.value, enumOptions, optEmptyVal));
1031
1004
  const selectedIndexes = (0, import_utils18.enumOptionsIndexForValue)(value, enumOptions, multiple);
1032
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1033
- import_semantic_ui_react17.Form.Dropdown,
1005
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1006
+ import_semantic_ui_react18.Form.Dropdown,
1034
1007
  {
1035
1008
  id,
1036
1009
  name: id,
@@ -1056,8 +1029,8 @@ function SelectWidget(props) {
1056
1029
 
1057
1030
  // src/TextareaWidget/TextareaWidget.tsx
1058
1031
  var import_utils19 = require("@rjsf/utils");
1059
- var import_semantic_ui_react18 = require("semantic-ui-react");
1060
- var import_jsx_runtime21 = require("react/jsx-runtime");
1032
+ var import_semantic_ui_react19 = require("semantic-ui-react");
1033
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1061
1034
  function TextareaWidget(props) {
1062
1035
  const {
1063
1036
  id,
@@ -1084,8 +1057,8 @@ function TextareaWidget(props) {
1084
1057
  const _onChange = ({ target: { value: value2 } }) => onChange && onChange(value2 === "" ? options.emptyValue : value2);
1085
1058
  const _onBlur = () => onBlur && onBlur(id, value);
1086
1059
  const _onFocus = () => onFocus && onFocus(id, value);
1087
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1088
- import_semantic_ui_react18.Form.TextArea,
1060
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1061
+ import_semantic_ui_react19.Form.TextArea,
1089
1062
  {
1090
1063
  id,
1091
1064
  name: id,
@@ -1125,7 +1098,7 @@ function generateTheme() {
1125
1098
  return {
1126
1099
  templates: generateTemplates(),
1127
1100
  widgets: generateWidgets(),
1128
- _internalFormWrapper: import_semantic_ui_react19.Form
1101
+ _internalFormWrapper: import_semantic_ui_react20.Form
1129
1102
  };
1130
1103
  }
1131
1104
  var Theme_default = generateTheme();
@@ -1137,5 +1110,5 @@ function generateForm() {
1137
1110
  var SemanticUIForm_default = generateForm();
1138
1111
 
1139
1112
  // src/index.ts
1140
- var src_default = SemanticUIForm_default;
1113
+ var index_default = SemanticUIForm_default;
1141
1114
  //# sourceMappingURL=index.js.map