@rjsf/fluentui-rc 6.0.0-beta.10 → 6.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.umd.js CHANGED
@@ -357,6 +357,19 @@
357
357
  }
358
358
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style, ...rest, children });
359
359
  }
360
+ var useStyles7 = reactComponents.makeStyles({
361
+ root: {
362
+ "> div": { marginBottom: "4px" }
363
+ }
364
+ });
365
+ function MultiSchemaFieldTemplate(props) {
366
+ const { selector, optionSchemaField } = props;
367
+ const styles = useStyles7();
368
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.root, children: [
369
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children: selector }),
370
+ optionSchemaField
371
+ ] });
372
+ }
360
373
  function ObjectFieldTemplate(props) {
361
374
  const {
362
375
  description,
@@ -426,20 +439,20 @@
426
439
  ] })
427
440
  ] });
428
441
  }
429
- var useStyles7 = reactComponents.makeStyles({
442
+ var useStyles8 = reactComponents.makeStyles({
430
443
  buttonRow: {
431
444
  marginTop: reactComponents.tokens.spacingVerticalL
432
445
  }
433
446
  });
434
447
  function SubmitButton({ uiSchema }) {
435
- const classes = useStyles7();
448
+ const classes = useStyles8();
436
449
  const { submitText, norender, props: submitButtonProps } = utils.getSubmitButtonOptions(uiSchema);
437
450
  if (norender) {
438
451
  return null;
439
452
  }
440
453
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes.buttonRow, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Button, { appearance: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
441
454
  }
442
- var useStyles8 = reactComponents.makeStyles({
455
+ var useStyles9 = reactComponents.makeStyles({
443
456
  root: {
444
457
  marginTop: "8px",
445
458
  marginBottom: "8px"
@@ -449,13 +462,13 @@
449
462
  id,
450
463
  title
451
464
  }) {
452
- const classes = useStyles8();
465
+ const classes = useStyles9();
453
466
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { id, className: classes.root, children: [
454
467
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Text, { as: "h5", size: 600, children: title }),
455
468
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {})
456
469
  ] });
457
470
  }
458
- var useStyles9 = reactComponents.makeStyles({
471
+ var useStyles10 = reactComponents.makeStyles({
459
472
  input: {
460
473
  width: "100%"
461
474
  },
@@ -480,7 +493,7 @@
480
493
  registry
481
494
  } = props;
482
495
  const { templates, translateString } = registry;
483
- const classes = useStyles9();
496
+ const classes = useStyles10();
484
497
  const { RemoveButton: RemoveButton2 } = templates.ButtonTemplates;
485
498
  const keyLabel = translateString(utils.TranslatableString.KeyLabel, [label]);
486
499
  const additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
@@ -547,6 +560,7 @@
547
560
  FieldHelpTemplate,
548
561
  FieldTemplate,
549
562
  GridTemplate,
563
+ MultiSchemaFieldTemplate,
550
564
  ObjectFieldTemplate,
551
565
  TitleFieldTemplate: TitleField,
552
566
  WrapIfAdditionalTemplate
@@ -812,7 +826,7 @@
812
826
  );
813
827
  }
814
828
  var SelectWidget_default = SelectWidget;
815
- var useStyles10 = reactComponents.makeStyles({
829
+ var useStyles11 = reactComponents.makeStyles({
816
830
  label: {
817
831
  paddingTop: "2px",
818
832
  paddingBottom: "2px",
@@ -837,7 +851,7 @@
837
851
  options,
838
852
  schema
839
853
  } = props;
840
- const classes = useStyles10();
854
+ const classes = useStyles11();
841
855
  const _onChange = ({ target: { value: value2 } }) => onChange(value2 === "" ? options.emptyValue : value2);
842
856
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
843
857
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
package/dist/index.esm.js CHANGED
@@ -426,6 +426,23 @@ function GridTemplate(props) {
426
426
  return /* @__PURE__ */ jsx11("div", { style, ...rest, children });
427
427
  }
428
428
 
429
+ // src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx
430
+ import { makeStyles as makeStyles7 } from "@fluentui/react-components";
431
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
432
+ var useStyles7 = makeStyles7({
433
+ root: {
434
+ "> div": { marginBottom: "4px" }
435
+ }
436
+ });
437
+ function MultiSchemaFieldTemplate(props) {
438
+ const { selector, optionSchemaField } = props;
439
+ const styles = useStyles7();
440
+ return /* @__PURE__ */ jsxs6("div", { className: styles.root, children: [
441
+ /* @__PURE__ */ jsx12("div", { children: selector }),
442
+ optionSchemaField
443
+ ] });
444
+ }
445
+
429
446
  // src/ObjectFieldTemplate/ObjectFieldTemplate.tsx
430
447
  import { Flex as Flex3 } from "@fluentui/react-migration-v0-v9";
431
448
  import {
@@ -436,7 +453,7 @@ import {
436
453
  titleId,
437
454
  buttonId as buttonId2
438
455
  } from "@rjsf/utils";
439
- import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
456
+ import { Fragment as Fragment3, jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
440
457
  function ObjectFieldTemplate(props) {
441
458
  const {
442
459
  description,
@@ -462,8 +479,8 @@ function ObjectFieldTemplate(props) {
462
479
  const {
463
480
  ButtonTemplates: { AddButton: AddButton2 }
464
481
  } = registry.templates;
465
- return /* @__PURE__ */ jsxs6(Fragment3, { children: [
466
- title && /* @__PURE__ */ jsx12(
482
+ return /* @__PURE__ */ jsxs7(Fragment3, { children: [
483
+ title && /* @__PURE__ */ jsx13(
467
484
  TitleFieldTemplate,
468
485
  {
469
486
  id: titleId(idSchema),
@@ -474,7 +491,7 @@ function ObjectFieldTemplate(props) {
474
491
  registry
475
492
  }
476
493
  ),
477
- description && /* @__PURE__ */ jsx12(
494
+ description && /* @__PURE__ */ jsx13(
478
495
  DescriptionFieldTemplate,
479
496
  {
480
497
  id: descriptionId(idSchema),
@@ -484,15 +501,15 @@ function ObjectFieldTemplate(props) {
484
501
  registry
485
502
  }
486
503
  ),
487
- /* @__PURE__ */ jsxs6(Flex3, { fill: true, column: true, gap: "gap.medium", children: [
504
+ /* @__PURE__ */ jsxs7(Flex3, { fill: true, column: true, gap: "gap.medium", children: [
488
505
  properties.map(
489
506
  (element, index) => (
490
507
  // Remove the <Grid> if the inner element is hidden as the <Grid>
491
508
  // itself would otherwise still take up space.
492
- element.hidden ? element.content : /* @__PURE__ */ jsx12(Flex3, { column: true, fill: true, style: { marginBottom: "10px" }, children: element.content }, index)
509
+ element.hidden ? element.content : /* @__PURE__ */ jsx13(Flex3, { column: true, fill: true, style: { marginBottom: "10px" }, children: element.content }, index)
493
510
  )
494
511
  ),
495
- canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx12(Flex3, { hAlign: "end", children: /* @__PURE__ */ jsx12(
512
+ canExpand(schema, uiSchema, formData) && /* @__PURE__ */ jsx13(Flex3, { hAlign: "end", children: /* @__PURE__ */ jsx13(
496
513
  AddButton2,
497
514
  {
498
515
  id: buttonId2(idSchema, "add"),
@@ -509,26 +526,26 @@ function ObjectFieldTemplate(props) {
509
526
 
510
527
  // src/SubmitButton/SubmitButton.tsx
511
528
  import { getSubmitButtonOptions } from "@rjsf/utils";
512
- import { Button as Button3, makeStyles as makeStyles7, tokens as tokens4 } from "@fluentui/react-components";
513
- import { jsx as jsx13 } from "react/jsx-runtime";
514
- var useStyles7 = makeStyles7({
529
+ import { Button as Button3, makeStyles as makeStyles8, tokens as tokens4 } from "@fluentui/react-components";
530
+ import { jsx as jsx14 } from "react/jsx-runtime";
531
+ var useStyles8 = makeStyles8({
515
532
  buttonRow: {
516
533
  marginTop: tokens4.spacingVerticalL
517
534
  }
518
535
  });
519
536
  function SubmitButton({ uiSchema }) {
520
- const classes = useStyles7();
537
+ const classes = useStyles8();
521
538
  const { submitText, norender, props: submitButtonProps } = getSubmitButtonOptions(uiSchema);
522
539
  if (norender) {
523
540
  return null;
524
541
  }
525
- return /* @__PURE__ */ jsx13("div", { className: classes.buttonRow, children: /* @__PURE__ */ jsx13(Button3, { appearance: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
542
+ return /* @__PURE__ */ jsx14("div", { className: classes.buttonRow, children: /* @__PURE__ */ jsx14(Button3, { appearance: "primary", type: "submit", ...submitButtonProps, children: submitText }) });
526
543
  }
527
544
 
528
545
  // src/TitleField/TitleField.tsx
529
- import { Text as Text4, Divider, makeStyles as makeStyles8 } from "@fluentui/react-components";
530
- import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
531
- var useStyles8 = makeStyles8({
546
+ import { Text as Text4, Divider, makeStyles as makeStyles9 } from "@fluentui/react-components";
547
+ import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
548
+ var useStyles9 = makeStyles9({
532
549
  root: {
533
550
  marginTop: "8px",
534
551
  marginBottom: "8px"
@@ -538,10 +555,10 @@ function TitleField({
538
555
  id,
539
556
  title
540
557
  }) {
541
- const classes = useStyles8();
542
- return /* @__PURE__ */ jsxs7("div", { id, className: classes.root, children: [
543
- /* @__PURE__ */ jsx14(Text4, { as: "h5", size: 600, children: title }),
544
- /* @__PURE__ */ jsx14(Divider, {})
558
+ const classes = useStyles9();
559
+ return /* @__PURE__ */ jsxs8("div", { id, className: classes.root, children: [
560
+ /* @__PURE__ */ jsx15(Text4, { as: "h5", size: 600, children: title }),
561
+ /* @__PURE__ */ jsx15(Divider, {})
545
562
  ] });
546
563
  }
547
564
 
@@ -551,10 +568,10 @@ import {
551
568
  buttonId as buttonId3,
552
569
  TranslatableString as TranslatableString4
553
570
  } from "@rjsf/utils";
554
- import { Field as Field2, Input as Input2, makeStyles as makeStyles9 } from "@fluentui/react-components";
571
+ import { Field as Field2, Input as Input2, makeStyles as makeStyles10 } from "@fluentui/react-components";
555
572
  import { Flex as Flex4 } from "@fluentui/react-migration-v0-v9";
556
- import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
557
- var useStyles9 = makeStyles9({
573
+ import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
574
+ var useStyles10 = makeStyles10({
558
575
  input: {
559
576
  width: "100%"
560
577
  },
@@ -579,7 +596,7 @@ function WrapIfAdditionalTemplate(props) {
579
596
  registry
580
597
  } = props;
581
598
  const { templates, translateString } = registry;
582
- const classes = useStyles9();
599
+ const classes = useStyles10();
583
600
  const { RemoveButton: RemoveButton2 } = templates.ButtonTemplates;
584
601
  const keyLabel = translateString(TranslatableString4.KeyLabel, [label]);
585
602
  const additional = ADDITIONAL_PROPERTY_FLAG in schema;
@@ -590,11 +607,11 @@ function WrapIfAdditionalTemplate(props) {
590
607
  fontWeight: "bold"
591
608
  };
592
609
  if (!additional) {
593
- return /* @__PURE__ */ jsx15("div", { className: classNames, style, children });
610
+ return /* @__PURE__ */ jsx16("div", { className: classNames, style, children });
594
611
  }
595
612
  const handleBlur = ({ target }) => onKeyChange(target.value);
596
- return /* @__PURE__ */ jsxs8(Flex4, { gap: "gap.medium", vAlign: "center", className: classNames, style, children: [
597
- /* @__PURE__ */ jsx15("div", { children: /* @__PURE__ */ jsx15(Field2, { label: keyLabel, required, children: /* @__PURE__ */ jsx15(
613
+ return /* @__PURE__ */ jsxs9(Flex4, { gap: "gap.medium", vAlign: "center", className: classNames, style, children: [
614
+ /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsx16(Field2, { label: keyLabel, required, children: /* @__PURE__ */ jsx16(
598
615
  Input2,
599
616
  {
600
617
  required,
@@ -609,8 +626,8 @@ function WrapIfAdditionalTemplate(props) {
609
626
  }
610
627
  }
611
628
  ) }) }),
612
- /* @__PURE__ */ jsx15("div", { children }),
613
- /* @__PURE__ */ jsx15("div", { children: /* @__PURE__ */ jsx15(
629
+ /* @__PURE__ */ jsx16("div", { children }),
630
+ /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsx16(
614
631
  RemoveButton2,
615
632
  {
616
633
  id: buttonId3(id, "remove"),
@@ -646,6 +663,7 @@ function generateTemplates() {
646
663
  FieldHelpTemplate,
647
664
  FieldTemplate,
648
665
  GridTemplate,
666
+ MultiSchemaFieldTemplate,
649
667
  ObjectFieldTemplate,
650
668
  TitleFieldTemplate: TitleField,
651
669
  WrapIfAdditionalTemplate
@@ -661,7 +679,7 @@ import {
661
679
  schemaRequiresTrueValue
662
680
  } from "@rjsf/utils";
663
681
  import { Checkbox } from "@fluentui/react-components";
664
- import { Fragment as Fragment4, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
682
+ import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
665
683
  function CheckboxWidget(props) {
666
684
  const {
667
685
  schema,
@@ -689,8 +707,8 @@ function CheckboxWidget(props) {
689
707
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
690
708
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
691
709
  const description = options.description ?? schema.description;
692
- return /* @__PURE__ */ jsxs9(Fragment4, { children: [
693
- !hideLabel && description && /* @__PURE__ */ jsx16(
710
+ return /* @__PURE__ */ jsxs10(Fragment4, { children: [
711
+ !hideLabel && description && /* @__PURE__ */ jsx17(
694
712
  DescriptionFieldTemplate,
695
713
  {
696
714
  id: descriptionId2(id),
@@ -700,7 +718,7 @@ function CheckboxWidget(props) {
700
718
  registry
701
719
  }
702
720
  ),
703
- /* @__PURE__ */ jsx16(
721
+ /* @__PURE__ */ jsx17(
704
722
  Checkbox,
705
723
  {
706
724
  id,
@@ -731,7 +749,7 @@ import {
731
749
  } from "@rjsf/utils";
732
750
  import { Label as Label2, Checkbox as Checkbox2 } from "@fluentui/react-components";
733
751
  import { Flex as Flex5 } from "@fluentui/react-migration-v0-v9";
734
- import { Fragment as Fragment5, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
752
+ import { Fragment as Fragment5, jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
735
753
  function CheckboxesWidget({
736
754
  label,
737
755
  hideLabel,
@@ -757,15 +775,15 @@ function CheckboxesWidget({
757
775
  };
758
776
  const _onBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
759
777
  const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex(target && target.value, enumOptions, emptyValue));
760
- return /* @__PURE__ */ jsxs10(Fragment5, { children: [
778
+ return /* @__PURE__ */ jsxs11(Fragment5, { children: [
761
779
  labelValue2(
762
- /* @__PURE__ */ jsx17(Label2, { required, htmlFor: id, children: label || void 0 }),
780
+ /* @__PURE__ */ jsx18(Label2, { required, htmlFor: id, children: label || void 0 }),
763
781
  hideLabel
764
782
  ),
765
- /* @__PURE__ */ jsx17(Flex5, { column: !inline, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
783
+ /* @__PURE__ */ jsx18(Flex5, { column: !inline, children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
766
784
  const checked = enumOptionsIsSelected(option.value, checkboxesValues);
767
785
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
768
- return /* @__PURE__ */ jsx17(
786
+ return /* @__PURE__ */ jsx18(
769
787
  Checkbox2,
770
788
  {
771
789
  id: optionId(id, index),
@@ -794,7 +812,7 @@ import {
794
812
  optionId as optionId2
795
813
  } from "@rjsf/utils";
796
814
  import { Label as Label3, Radio, RadioGroup } from "@fluentui/react-components";
797
- import { Fragment as Fragment6, jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
815
+ import { Fragment as Fragment6, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
798
816
  function RadioWidget({
799
817
  id,
800
818
  options,
@@ -813,12 +831,12 @@ function RadioWidget({
813
831
  const _onBlur = ({ target }) => onBlur(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue));
814
832
  const _onFocus = ({ target }) => onFocus(id, enumOptionsValueForIndex2(target && target.value, enumOptions, emptyValue));
815
833
  const selectedIndex = enumOptionsIndexForValue(value, enumOptions) ?? void 0;
816
- return /* @__PURE__ */ jsxs11(Fragment6, { children: [
834
+ return /* @__PURE__ */ jsxs12(Fragment6, { children: [
817
835
  labelValue3(
818
- /* @__PURE__ */ jsx18(Label3, { required, htmlFor: id, children: label || void 0 }),
836
+ /* @__PURE__ */ jsx19(Label3, { required, htmlFor: id, children: label || void 0 }),
819
837
  hideLabel
820
838
  ),
821
- /* @__PURE__ */ jsx18(
839
+ /* @__PURE__ */ jsx19(
822
840
  RadioGroup,
823
841
  {
824
842
  id,
@@ -831,7 +849,7 @@ function RadioWidget({
831
849
  "aria-describedby": ariaDescribedByIds4(id),
832
850
  children: Array.isArray(enumOptions) && enumOptions.map((option, index) => {
833
851
  const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
834
- return /* @__PURE__ */ jsx18(
852
+ return /* @__PURE__ */ jsx19(
835
853
  Radio,
836
854
  {
837
855
  id: optionId2(id, index),
@@ -854,7 +872,7 @@ import {
854
872
  rangeSpec
855
873
  } from "@rjsf/utils";
856
874
  import { Label as Label4, Slider } from "@fluentui/react-components";
857
- import { Fragment as Fragment7, jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
875
+ import { Fragment as Fragment7, jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
858
876
  function RangeWidget(props) {
859
877
  const { value, readonly, disabled, onBlur, onFocus, options, schema, onChange, required, label, hideLabel, id } = props;
860
878
  const sliderProps = { value, label, id, name: id, ...rangeSpec(schema) };
@@ -863,12 +881,12 @@ function RangeWidget(props) {
863
881
  };
864
882
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
865
883
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
866
- return /* @__PURE__ */ jsxs12(Fragment7, { children: [
884
+ return /* @__PURE__ */ jsxs13(Fragment7, { children: [
867
885
  labelValue4(
868
- /* @__PURE__ */ jsx19(Label4, { required, htmlFor: id, children: label || void 0 }),
886
+ /* @__PURE__ */ jsx20(Label4, { required, htmlFor: id, children: label || void 0 }),
869
887
  hideLabel
870
888
  ),
871
- /* @__PURE__ */ jsx19(
889
+ /* @__PURE__ */ jsx20(
872
890
  Slider,
873
891
  {
874
892
  disabled: disabled || readonly,
@@ -890,7 +908,7 @@ import {
890
908
  labelValue as labelValue5
891
909
  } from "@rjsf/utils";
892
910
  import { Dropdown, Field as Field3, Option } from "@fluentui/react-components";
893
- import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
911
+ import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
894
912
  function getValue(data, multiple) {
895
913
  if (multiple) {
896
914
  return data.selectedOptions;
@@ -931,13 +949,13 @@ function SelectWidget({
931
949
  return onChange(enumOptionsValueForIndex3(newValue, enumOptions, optEmptyVal));
932
950
  };
933
951
  const showPlaceholderOption = !multiple && schema.default === void 0;
934
- return /* @__PURE__ */ jsx20(
952
+ return /* @__PURE__ */ jsx21(
935
953
  Field3,
936
954
  {
937
955
  label: labelValue5(label, hideLabel),
938
956
  validationState: rawErrors.length ? "error" : void 0,
939
957
  required,
940
- children: /* @__PURE__ */ jsxs13(
958
+ children: /* @__PURE__ */ jsxs14(
941
959
  Dropdown,
942
960
  {
943
961
  id,
@@ -953,10 +971,10 @@ function SelectWidget({
953
971
  selectedOptions: selectedIndexesAsArray,
954
972
  "aria-describedby": ariaDescribedByIds6(id),
955
973
  children: [
956
- showPlaceholderOption && /* @__PURE__ */ jsx20(Option, { value: "", children: placeholder || "" }),
974
+ showPlaceholderOption && /* @__PURE__ */ jsx21(Option, { value: "", children: placeholder || "" }),
957
975
  Array.isArray(enumOptions) && enumOptions.map(({ value: value2, label: label2 }, i) => {
958
976
  const disabled2 = enumDisabled && enumDisabled.indexOf(value2) !== -1;
959
- return /* @__PURE__ */ jsx20(Option, { value: String(i), disabled: disabled2, children: label2 }, i);
977
+ return /* @__PURE__ */ jsx21(Option, { value: String(i), disabled: disabled2, children: label2 }, i);
960
978
  })
961
979
  ]
962
980
  }
@@ -967,13 +985,13 @@ function SelectWidget({
967
985
  var SelectWidget_default = SelectWidget;
968
986
 
969
987
  // src/TextareaWidget/TextareaWidget.tsx
970
- import { Label as Label5, Textarea, makeStyles as makeStyles10 } from "@fluentui/react-components";
988
+ import { Label as Label5, Textarea, makeStyles as makeStyles11 } from "@fluentui/react-components";
971
989
  import {
972
990
  ariaDescribedByIds as ariaDescribedByIds7,
973
991
  labelValue as labelValue6
974
992
  } from "@rjsf/utils";
975
- import { Fragment as Fragment8, jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
976
- var useStyles10 = makeStyles10({
993
+ import { Fragment as Fragment8, jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
994
+ var useStyles11 = makeStyles11({
977
995
  label: {
978
996
  paddingTop: "2px",
979
997
  paddingBottom: "2px",
@@ -998,7 +1016,7 @@ function TextareaWidget(props) {
998
1016
  options,
999
1017
  schema
1000
1018
  } = props;
1001
- const classes = useStyles10();
1019
+ const classes = useStyles11();
1002
1020
  const _onChange = ({ target: { value: value2 } }) => onChange(value2 === "" ? options.emptyValue : value2);
1003
1021
  const _onBlur = ({ target }) => onBlur(id, target && target.value);
1004
1022
  const _onFocus = ({ target }) => onFocus(id, target && target.value);
@@ -1006,12 +1024,12 @@ function TextareaWidget(props) {
1006
1024
  if (typeof options.rows === "string" || typeof options.rows === "number") {
1007
1025
  rows = options.rows;
1008
1026
  }
1009
- return /* @__PURE__ */ jsxs14(Fragment8, { children: [
1027
+ return /* @__PURE__ */ jsxs15(Fragment8, { children: [
1010
1028
  labelValue6(
1011
- /* @__PURE__ */ jsx21(Label5, { htmlFor: id, required, disabled, className: classes.label, children: label }),
1029
+ /* @__PURE__ */ jsx22(Label5, { htmlFor: id, required, disabled, className: classes.label, children: label }),
1012
1030
  hideLabel
1013
1031
  ),
1014
- /* @__PURE__ */ jsx21(
1032
+ /* @__PURE__ */ jsx22(
1015
1033
  Textarea,
1016
1034
  {
1017
1035
  id,
@@ -1062,14 +1080,14 @@ var FluentForm_default = generateForm();
1062
1080
  // src/FluentUIRCFrameProvider.tsx
1063
1081
  import { FluentProvider, RendererProvider, createDOMRenderer, teamsLightTheme } from "@fluentui/react-components";
1064
1082
  import { useMemo } from "react";
1065
- import { jsx as jsx22 } from "react/jsx-runtime";
1083
+ import { jsx as jsx23 } from "react/jsx-runtime";
1066
1084
  var FluentWrapper = (props) => {
1067
1085
  const { children, targetDocument } = props;
1068
1086
  const renderer = useMemo(() => createDOMRenderer(targetDocument), [targetDocument]);
1069
- return /* @__PURE__ */ jsx22(RendererProvider, { renderer, targetDocument, children: /* @__PURE__ */ jsx22(FluentProvider, { targetDocument, theme: teamsLightTheme, children }) });
1087
+ return /* @__PURE__ */ jsx23(RendererProvider, { renderer, targetDocument, children: /* @__PURE__ */ jsx23(FluentProvider, { targetDocument, theme: teamsLightTheme, children }) });
1070
1088
  };
1071
1089
  var __createFluentUIRCFrameProvider = (props) => ({ document }) => {
1072
- return /* @__PURE__ */ jsx22(FluentWrapper, { targetDocument: document, children: props.children });
1090
+ return /* @__PURE__ */ jsx23(FluentWrapper, { targetDocument: document, children: props.children });
1073
1091
  };
1074
1092
 
1075
1093
  // src/index.ts