@rjsf/shadcn 6.6.0 → 6.6.2

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 (134) hide show
  1. package/dist/index.cjs +117 -100
  2. package/dist/index.cjs.map +3 -3
  3. package/dist/rjsf-shadcn.esm.js +105 -124
  4. package/dist/rjsf-shadcn.esm.js.map +3 -3
  5. package/dist/rjsf-shadcn.umd.js +96 -80
  6. package/lib/AddButton/AddButton.d.ts +1 -1
  7. package/lib/AddButton/AddButton.js.map +1 -1
  8. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +1 -1
  9. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +1 -1
  10. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
  11. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -1
  12. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
  13. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  14. package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +1 -1
  15. package/lib/BaseInputTemplate/BaseInputTemplate.js +6 -6
  16. package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
  17. package/lib/CheckboxWidget/CheckboxWidget.d.ts +1 -1
  18. package/lib/CheckboxWidget/CheckboxWidget.js +5 -5
  19. package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
  20. package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -1
  21. package/lib/CheckboxesWidget/CheckboxesWidget.js +4 -4
  22. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
  23. package/lib/DescriptionField/DescriptionField.d.ts +1 -1
  24. package/lib/ErrorList/ErrorList.d.ts +1 -1
  25. package/lib/ErrorList/ErrorList.js +1 -3
  26. package/lib/ErrorList/ErrorList.js.map +1 -1
  27. package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +1 -1
  28. package/lib/FieldErrorTemplate/FieldErrorTemplate.js +1 -3
  29. package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
  30. package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +1 -1
  31. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
  32. package/lib/FieldTemplate/FieldTemplate.d.ts +1 -1
  33. package/lib/FieldTemplate/FieldTemplate.js +1 -1
  34. package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
  35. package/lib/Form/Form.d.ts +3 -3
  36. package/lib/Form/Form.js.map +1 -1
  37. package/lib/GridTemplate/GridTemplate.d.ts +1 -1
  38. package/lib/IconButton/IconButton.d.ts +15 -8
  39. package/lib/IconButton/IconButton.js +14 -6
  40. package/lib/IconButton/IconButton.js.map +1 -1
  41. package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +1 -1
  42. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +1 -1
  43. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +2 -2
  44. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
  45. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +1 -1
  46. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +1 -1
  47. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
  48. package/lib/RadioWidget/RadioWidget.d.ts +1 -1
  49. package/lib/RadioWidget/RadioWidget.js +6 -6
  50. package/lib/RadioWidget/RadioWidget.js.map +1 -1
  51. package/lib/RangeWidget/RangeWidget.d.ts +2 -2
  52. package/lib/RangeWidget/RangeWidget.js +2 -2
  53. package/lib/RangeWidget/RangeWidget.js.map +1 -1
  54. package/lib/SelectWidget/SelectWidget.d.ts +1 -1
  55. package/lib/SelectWidget/SelectWidget.js +8 -8
  56. package/lib/SelectWidget/SelectWidget.js.map +1 -1
  57. package/lib/SubmitButton/SubmitButton.d.ts +1 -1
  58. package/lib/SubmitButton/SubmitButton.js.map +1 -1
  59. package/lib/Templates/Templates.d.ts +1 -1
  60. package/lib/TextareaWidget/TextareaWidget.d.ts +1 -1
  61. package/lib/TextareaWidget/TextareaWidget.js +4 -4
  62. package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
  63. package/lib/Theme/Theme.d.ts +2 -2
  64. package/lib/TitleField/TitleField.d.ts +1 -1
  65. package/lib/TitleField/TitleField.js.map +1 -1
  66. package/lib/Widgets/Widgets.d.ts +1 -1
  67. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -1
  68. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +1 -1
  69. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -1
  70. package/lib/components/ui/alert.d.ts +1 -1
  71. package/lib/components/ui/badge.d.ts +1 -1
  72. package/lib/components/ui/button.d.ts +1 -1
  73. package/lib/components/ui/checkbox.d.ts +1 -1
  74. package/lib/components/ui/command.d.ts +1 -1
  75. package/lib/components/ui/command.js +1 -3
  76. package/lib/components/ui/command.js.map +1 -1
  77. package/lib/components/ui/dialog.d.ts +1 -1
  78. package/lib/components/ui/fancy-multi-select.d.ts +3 -3
  79. package/lib/components/ui/fancy-multi-select.js +2 -2
  80. package/lib/components/ui/fancy-multi-select.js.map +1 -1
  81. package/lib/components/ui/fancy-select.d.ts +3 -3
  82. package/lib/components/ui/fancy-select.js +1 -1
  83. package/lib/components/ui/fancy-select.js.map +1 -1
  84. package/lib/components/ui/input.d.ts +1 -1
  85. package/lib/components/ui/label.d.ts +1 -1
  86. package/lib/components/ui/radio-group.d.ts +1 -1
  87. package/lib/components/ui/separator.d.ts +1 -1
  88. package/lib/components/ui/slider.d.ts +1 -1
  89. package/lib/components/ui/slider.js +10 -2
  90. package/lib/components/ui/slider.js.map +1 -1
  91. package/lib/components/ui/textarea.d.ts +1 -1
  92. package/lib/tsconfig.tsbuildinfo +1 -1
  93. package/package.json +8 -9
  94. package/src/AddButton/AddButton.tsx +2 -1
  95. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +2 -8
  96. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +2 -9
  97. package/src/BaseInputTemplate/BaseInputTemplate.tsx +13 -19
  98. package/src/CheckboxWidget/CheckboxWidget.tsx +8 -17
  99. package/src/CheckboxesWidget/CheckboxesWidget.tsx +7 -10
  100. package/src/DescriptionField/DescriptionField.tsx +1 -1
  101. package/src/ErrorList/ErrorList.tsx +6 -4
  102. package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +8 -8
  103. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +2 -1
  104. package/src/FieldTemplate/FieldTemplate.tsx +2 -8
  105. package/src/Form/Form.tsx +4 -3
  106. package/src/GridTemplate/GridTemplate.tsx +1 -1
  107. package/src/IconButton/IconButton.tsx +19 -9
  108. package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +1 -1
  109. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +4 -14
  110. package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +3 -2
  111. package/src/RadioWidget/RadioWidget.tsx +10 -13
  112. package/src/RangeWidget/RangeWidget.tsx +5 -4
  113. package/src/SelectWidget/SelectWidget.tsx +11 -14
  114. package/src/SubmitButton/SubmitButton.tsx +2 -1
  115. package/src/Templates/Templates.ts +1 -1
  116. package/src/TextareaWidget/TextareaWidget.tsx +10 -9
  117. package/src/Theme/Theme.tsx +2 -2
  118. package/src/TitleField/TitleField.tsx +2 -1
  119. package/src/Widgets/Widgets.ts +1 -1
  120. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +2 -9
  121. package/src/components/ui/alert.tsx +1 -1
  122. package/src/components/ui/badge.tsx +1 -1
  123. package/src/components/ui/button.tsx +1 -1
  124. package/src/components/ui/checkbox.tsx +1 -1
  125. package/src/components/ui/command.tsx +13 -14
  126. package/src/components/ui/dialog.tsx +1 -1
  127. package/src/components/ui/fancy-multi-select.tsx +5 -13
  128. package/src/components/ui/fancy-select.tsx +7 -3
  129. package/src/components/ui/input.tsx +1 -1
  130. package/src/components/ui/label.tsx +1 -1
  131. package/src/components/ui/radio-group.tsx +1 -1
  132. package/src/components/ui/separator.tsx +1 -1
  133. package/src/components/ui/slider.tsx +12 -6
  134. package/src/components/ui/textarea.tsx +1 -1
@@ -1,4 +1,4 @@
1
- import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
3
3
  *
4
4
  * @param props - The `ErrorListProps` for this component
@@ -8,8 +8,6 @@ import { Alert, AlertDescription, AlertTitle } from '../components/ui/alert.js';
8
8
  */
9
9
  export default function ErrorList({ errors, registry, }) {
10
10
  const { translateString } = registry;
11
- return (_jsxs(Alert, { variant: 'destructive', className: 'mb-2', children: [_jsx(AlertCircle, { className: 'h-4 w-4' }), _jsx(AlertTitle, { children: translateString(TranslatableString.ErrorsLabel) }), _jsx(AlertDescription, { className: 'flex flex-col gap-1', children: errors.map((error, i) => {
12
- return _jsxs("span", { children: ["\u2022 ", error.stack] }, i);
13
- }) })] }));
11
+ return (_jsxs(Alert, { variant: 'destructive', className: 'mb-2', children: [_jsx(AlertCircle, { className: 'h-4 w-4' }), _jsx(AlertTitle, { children: translateString(TranslatableString.ErrorsLabel) }), _jsx(AlertDescription, { className: 'flex flex-col gap-1', children: errors.map((error, i) => (_jsxs("span", { children: ["\u2022 ", error.stack] }, i))) })] }));
14
12
  }
15
13
  //# sourceMappingURL=ErrorList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorList.js","sourceRoot":"","sources":["../../src/ErrorList/ErrorList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAChH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E,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,GAAc,EAC1E,KAAC,gBAAgB,IAAC,SAAS,EAAC,qBAAqB,YAC9C,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAS,EAAE,EAAE,CAAC,CAEhC,sCAAwB,KAAK,CAAC,KAAK,KAAxB,CAAC,CAA+B,CAC5C,CAAC,GACe,IACb,CACT,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `FieldErrorTemplate` component renders the errors local to the particular field
3
3
  *
4
4
  * @param props - The `FieldErrorProps` for the errors being rendered
@@ -10,8 +10,6 @@ export default function FieldErrorTemplate(props) {
10
10
  return null;
11
11
  }
12
12
  const id = errorId(fieldPathId);
13
- return (_jsx("div", { className: 'flex flex-col gap-1', id: id, children: errors.map((error, i) => {
14
- return (_jsx("span", { className: 'text-xs font-medium text-destructive mb-1', children: error }, i));
15
- }) }));
13
+ return (_jsx("div", { className: 'flex flex-col gap-1', id: id, children: errors.map((error, i) => (_jsx("span", { className: 'text-xs font-medium text-destructive mb-1', children: error }, i))) }));
16
14
  }
17
15
  //# sourceMappingURL=FieldErrorTemplate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAA+B;IAC/B,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC3C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEhC,OAAO,CACL,cAAK,SAAS,EAAC,qBAAqB,EAAC,EAAE,EAAE,EAAE,YACxC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAS,EAAE,EAAE;YAC/B,OAAO,CACL,eAAM,SAAS,EAAE,2CAA2C,YACzD,KAAK,IAD2D,CAAC,CAE7D,CACR,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAA+B;IAC/B,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC3C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEhC,OAAO,CACL,cAAK,SAAS,EAAC,qBAAqB,EAAC,EAAE,EAAE,EAAE,YACxC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAS,EAAE,EAAE,CAAC,CAEhC,eAAM,SAAS,EAAC,2CAA2C,YACxD,KAAK,IADyD,CAAC,CAE3D,CACR,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `FieldHelpTemplate` component renders any help desired for a field
3
3
  *
4
4
  * @param props - The `FieldHelpProps` to be rendered
@@ -1 +1 @@
1
- {"version":3,"file":"FieldHelpTemplate.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAiE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEpG,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAA8B;IAC9B,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACnE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAC7F,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,YAEvB,KAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC3D,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"FieldHelpTemplate.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAA8B;IAC9B,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACnE,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAC7F,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,YAEvB,KAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC3D,CACR,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
3
3
  * content, (label, description, children, errors and help) inside a `WrapIfAdditional` component.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getTemplate, getUiOptions, } from '@rjsf/utils';
2
+ import { getTemplate, getUiOptions } from '@rjsf/utils';
3
3
  import { cn } from '../lib/utils.js';
4
4
  /** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
5
5
  * content, (label, description, children, errors and help) inside a `WrapIfAdditional` component.
@@ -1 +1 @@
1
- {"version":3,"file":"FieldTemplate.js","sourceRoot":"","sources":["../../src/FieldTemplate/FieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAInC,EACA,EAAE,EACF,QAAQ,EACR,YAAY,EACZ,SAAS,GAAG,EAAE,EACd,MAAM,EACN,IAAI,EACJ,WAAW,EACX,cAAc,EACd,UAAU,EACV,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM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AE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,YAElB,eAAK,SAAS,EAAC,qBAAqB,aACjC,YAAY,IAAI,CAAC,UAAU,IAAI,CAC9B,iBACE,SAAS,EAAE,EAAE,CACX,4FAA4F,EAC5F,EAAE,mBAAmB,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAC9C,EACD,OAAO,EAAE,EAAE,aAEV,KAAK,EACL,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAChB,CACT,EACA,QAAQ,EACR,YAAY,IAAI,cAAc,IAAI,CAAC,UAAU,IAAI,CAChD,eACE,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,EAAE,mBAAmB,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,YAExG,WAAW,GACP,CACR,EACA,MAAM,EACN,IAAI,IACD,GACmB,CAC5B,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
- import { ComponentType } from 'react';
2
- import { FormProps } from '@rjsf/core';
3
- import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ComponentType } from 'react';
2
+ import type { FormProps } from '@rjsf/core';
3
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
4
4
  export declare function generateForm<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ComponentType<FormProps<T, S, F>>;
5
5
  declare const _default: ComponentType<FormProps<any, RJSFSchema, any>>;
6
6
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sourceRoot":"","sources":["../../src/Form/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,SAAS,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,YAAY;IAK1B,OAAO,SAAS,CAAU,aAAa,EAAW,CAAC,CAAC;AACtD,CAAC;AAED,eAAe,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"Form.js","sourceRoot":"","sources":["../../src/Form/Form.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,YAAY;IAK1B,OAAO,SAAS,CAAU,aAAa,EAAW,CAAC,CAAC;AACtD,CAAC;AAED,eAAe,YAAY,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { GridTemplateProps } from '@rjsf/utils';
1
+ import type { GridTemplateProps } from '@rjsf/utils';
2
2
  /** Renders a `GridTemplate` for mui, which is expecting the column sizing information coming in via the
3
3
  * extra props provided by the caller, which are spread directly on the `Grid2`.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  import type { VariantProps } from 'class-variance-authority';
3
- import { buttonVariants } from '../components/ui/button.js';
3
+ import type { buttonVariants } from '../components/ui/button.js';
4
4
  export type ShadIconButtonProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = IconButtonProps<T, S, F> & VariantProps<typeof buttonVariants>;
5
5
  /** Base button component that renders a Shadcn button with an icon for RJSF form actions.
6
6
  * This component serves as the foundation for other specialized buttons used in array operations.
@@ -9,28 +9,33 @@ export type ShadIconButtonProps<T = any, S extends StrictRJSFSchema = RJSFSchema
9
9
  *
10
10
  * @param props - The combined props from RJSF IconButtonProps and Shadcn ButtonProps, including icon and event handlers
11
11
  */
12
- export default function IconButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
12
+ declare function IconButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
13
+ declare const IconButton: typeof IconButtonFn;
14
+ export default IconButton;
13
15
  /** Renders a copy button for RJSF array fields that allows users to duplicate array items.
14
16
  * The button includes a copy icon and uses the RJSF translation system for the tooltip text.
15
17
  * This is used within ArrayField to provide item duplication functionality.
16
18
  *
17
19
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
18
20
  */
19
- export declare function CopyButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
21
+ declare function CopyButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
22
+ export declare const CopyButton: typeof CopyButtonFn;
20
23
  /** Renders a move down button for RJSF array fields that allows reordering of array items.
21
24
  * The button includes a chevron-down icon and uses the RJSF translation system for the tooltip text.
22
25
  * This is used within ArrayField to allow moving items to a lower index in the array.
23
26
  *
24
27
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
25
28
  */
26
- export declare function MoveDownButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
29
+ declare function MoveDownButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
30
+ export declare const MoveDownButton: typeof MoveDownButtonFn;
27
31
  /** Renders a move up button for RJSF array fields that allows reordering of array items.
28
32
  * The button includes a chevron-up icon and uses the RJSF translation system for the tooltip text.
29
33
  * This is used within ArrayField to allow moving items to a higher index in the array.
30
34
  *
31
35
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
32
36
  */
33
- export declare function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
37
+ declare function MoveUpButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
38
+ export declare const MoveUpButton: typeof MoveUpButtonFn;
34
39
  /** Renders a remove button for RJSF array fields that allows deletion of array items.
35
40
  * The button includes a trash icon and uses the RJSF translation system for the tooltip text.
36
41
  * It has special styling with destructive colors to indicate its dangerous action.
@@ -38,5 +43,7 @@ export declare function MoveUpButton<T = any, S extends StrictRJSFSchema = RJSFS
38
43
  *
39
44
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
40
45
  */
41
- export declare function RemoveButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
42
- export declare function ClearButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
46
+ declare function RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
47
+ export declare const RemoveButton: typeof RemoveButtonFn;
48
+ declare function ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ShadIconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
49
+ export declare const ClearButton: typeof ClearButtonFn;
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { memo } from 'react';
2
3
  import { TranslatableString } from '@rjsf/utils';
3
4
  import { ChevronDown, ChevronUp, Copy, Trash2, X } from 'lucide-react';
4
5
  import { Button } from '../components/ui/button.js';
@@ -9,40 +10,45 @@ import { Button } from '../components/ui/button.js';
9
10
  *
10
11
  * @param props - The combined props from RJSF IconButtonProps and Shadcn ButtonProps, including icon and event handlers
11
12
  */
12
- export default function IconButton(props) {
13
+ function IconButtonFn(props) {
13
14
  const { icon, iconType, className, uiSchema, registry, ...otherProps } = props;
14
15
  return (_jsx(Button, { size: 'icon', variant: 'outline', className: className, ...otherProps, type: 'button', children: icon }));
15
16
  }
17
+ const IconButton = memo(IconButtonFn);
18
+ export default IconButton;
16
19
  /** Renders a copy button for RJSF array fields that allows users to duplicate array items.
17
20
  * The button includes a copy icon and uses the RJSF translation system for the tooltip text.
18
21
  * This is used within ArrayField to provide item duplication functionality.
19
22
  *
20
23
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
21
24
  */
22
- export function CopyButton(props) {
25
+ function CopyButtonFn(props) {
23
26
  const { registry: { translateString }, } = props;
24
27
  return (_jsx(IconButton, { title: translateString(TranslatableString.CopyButton), ...props, icon: _jsx(Copy, { className: 'h-4 w-4' }) }));
25
28
  }
29
+ export const CopyButton = memo(CopyButtonFn);
26
30
  /** Renders a move down button for RJSF array fields that allows reordering of array items.
27
31
  * The button includes a chevron-down icon and uses the RJSF translation system for the tooltip text.
28
32
  * This is used within ArrayField to allow moving items to a lower index in the array.
29
33
  *
30
34
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
31
35
  */
32
- export function MoveDownButton(props) {
36
+ function MoveDownButtonFn(props) {
33
37
  const { registry: { translateString }, } = props;
34
38
  return (_jsx(IconButton, { title: translateString(TranslatableString.MoveDownButton), ...props, icon: _jsx(ChevronDown, { className: 'h-4 w-4' }) }));
35
39
  }
40
+ export const MoveDownButton = memo(MoveDownButtonFn);
36
41
  /** Renders a move up button for RJSF array fields that allows reordering of array items.
37
42
  * The button includes a chevron-up icon and uses the RJSF translation system for the tooltip text.
38
43
  * This is used within ArrayField to allow moving items to a higher index in the array.
39
44
  *
40
45
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
41
46
  */
42
- export function MoveUpButton(props) {
47
+ function MoveUpButtonFn(props) {
43
48
  const { registry: { translateString }, } = props;
44
49
  return (_jsx(IconButton, { title: translateString(TranslatableString.MoveUpButton), ...props, icon: _jsx(ChevronUp, { className: 'h-4 w-4' }) }));
45
50
  }
51
+ export const MoveUpButton = memo(MoveUpButtonFn);
46
52
  /** Renders a remove button for RJSF array fields that allows deletion of array items.
47
53
  * The button includes a trash icon and uses the RJSF translation system for the tooltip text.
48
54
  * It has special styling with destructive colors to indicate its dangerous action.
@@ -50,12 +56,14 @@ export function MoveUpButton(props) {
50
56
  *
51
57
  * @param props - The RJSF icon button properties, including registry for translations and event handlers
52
58
  */
53
- export function RemoveButton(props) {
59
+ function RemoveButtonFn(props) {
54
60
  const { registry: { translateString }, } = props;
55
61
  return (_jsx(IconButton, { title: translateString(TranslatableString.RemoveButton), ...props, className: 'border-destructive', icon: _jsx(Trash2, { className: 'h-4 w-4 stroke-destructive' }) }));
56
62
  }
57
- export function ClearButton(props) {
63
+ export const RemoveButton = memo(RemoveButtonFn);
64
+ function ClearButtonFn(props) {
58
65
  const { registry: { translateString }, } = props;
59
66
  return _jsx(IconButton, { title: translateString(TranslatableString.ClearButton), ...props, icon: _jsx(X, {}) });
60
67
  }
68
+ export const ClearButton = memo(ClearButtonFn);
61
69
  //# sourceMappingURL=IconButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../src/IconButton/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjH,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAkB,MAAM,yBAAyB,CAAC;AAQjE;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,KAAmC;IAEnC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,K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E,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,UAAU,IACT,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,KACnD,KAAK,EACT,SAAS,EAAC,oBAAoB,EAC9B,IAAI,EAAE,KAAC,MAAM,IAAC,SAAS,EAAC,4BAA4B,GAAG,GACvD,CACH,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAA0B,CAAC;AAE1E,SAAS,aAAa,CACpB,KAAmC;IAEnC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,KAAC,UAAU,IAAC,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,KAAM,KAAK,EAAE,IAAI,EAAE,KAAC,CAAC,KAAG,GAAI,CAAC;AACxG,CAAC;AACD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAyB,CAAC"}
@@ -1,2 +1,2 @@
1
- import { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  export default function MultiSchemaFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { FormContextType, ObjectFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FormContextType, ObjectFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
3
3
  * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
4
4
  * the properties.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { buttonId, canExpand, descriptionId, getTemplate, getUiOptions, titleId, } from '@rjsf/utils';
2
+ import { buttonId, canExpand, descriptionId, getTemplate, getUiOptions, titleId } from '@rjsf/utils';
3
3
  /** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
4
4
  * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
5
5
  * the properties.
@@ -13,6 +13,6 @@ export default function ObjectFieldTemplate({ description, title, properties, re
13
13
  const showOptionalDataControlInTitle = !readonly && !disabled;
14
14
  // Button templates are not overridden in the uiSchema
15
15
  const { ButtonTemplates: { AddButton }, } = registry.templates;
16
- return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(fieldPathId), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(fieldPathId), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs("div", { className: 'flex flex-col gap-2', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, properties.map((element, index) => (_jsx("div", { className: `${element.hidden ? 'hidden' : ''} flex`, children: _jsx("div", { className: 'w-full', children: element.content }) }, index))), canExpand(schema, uiSchema, formData) ? (_jsx("div", { className: 'mt-2 flex justify-end', children: _jsx(AddButton, { id: buttonId(fieldPathId, 'add'), onClick: onAddProperty, disabled: disabled || readonly, className: 'rjsf-object-property-expand', uiSchema: uiSchema, registry: registry }) })) : null] })] }));
16
+ return (_jsxs(_Fragment, { children: [title && (_jsx(TitleFieldTemplate, { id: titleId(fieldPathId), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(fieldPathId), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs("div", { className: 'flex flex-col gap-2', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, properties.map((element) => (_jsx("div", { className: `${element.hidden ? 'hidden' : ''} flex`, children: _jsx("div", { className: 'w-full', children: element.content }) }, element.name))), canExpand(schema, uiSchema, formData) ? (_jsx("div", { className: 'mt-2 flex justify-end', children: _jsx(AddButton, { id: buttonId(fieldPathId, 'add'), onClick: onAddProperty, disabled: disabled || readonly, className: 'rjsf-object-property-expand', uiSchema: uiSchema, registry: registry }) })) : null] })] }));
17
17
  }
18
18
  //# sourceMappingURL=ObjectFieldTemplate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectFieldTemplate.js","sourceRoot":"","sources":["../../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EAEb,WAAW,EACX,YAAY,EAIZ,OAAO,GACR,MAAM,aAAa,CAAC;AAErB;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAIzC,EACA,WAAW,EACX,KAAK,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,GAC0B;IAClC,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,kBAAkB,GAAG,WAAW,CAAgC,oBAAoB,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IACjH,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,8BAA8B,GAAG,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC;IAC9D,sDAAsD;IACtD,MAAM,EACJ,eAAe,EAAE,EAAE,SAAS,EAAE,GAC/B,GAAG,QAAQ,CAAC,SAAS,CAAC;IACvB,OAAO,CACL,8BACG,K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9B,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,CACH,EACD,eAAK,SAAS,EAAC,qBAAqB,aACjC,CAAC,8BAA8B,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,EACjE,UAAU,CAAC,GAAG,CAAC,CAAC,OAAY,EAAE,EAAE,CAAC,CAChC,cAAwB,SAAS,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,YACzE,cAAK,SAAS,EAAC,QAAQ,YAAE,OAAO,CAAC,OAAO,GAAO,IADvC,OAAO,CAAC,IAAI,CAEhB,CACP,CAAC,EACD,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CACvC,cAAK,SAAS,EAAC,uBAAuB,YACpC,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,EAChC,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,SAAS,EAAC,6BAA6B,EACvC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IACL,CACJ,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  /** The OptionalDataControlsTemplate renders one of three different states. If
3
3
  * there is an `onAddClick()` function, it renders the "Add" button. If there is
4
4
  * an `onRemoveClick()` function, it renders the "Remove" button. Otherwise it
@@ -14,7 +14,7 @@ export default function OptionalDataControlsTemplate(props) {
14
14
  if (onAddClick) {
15
15
  return (_jsx(IconButton, { id: id, registry: registry, className: 'rjsf-add-optional-data', onClick: onAddClick, title: label, icon: _jsx(PlusCircle, {}), size: 'xs' }));
16
16
  }
17
- else if (onRemoveClick) {
17
+ if (onRemoveClick) {
18
18
  return (_jsx(RemoveButton, { id: id, registry: registry, className: 'rjsf-remove-optional-data', onClick: onRemoveClick, title: label, size: 'xs' }));
19
19
  }
20
20
  return _jsx("em", { id: id, children: label });
@@ -1 +1 @@
1
- {"version":3,"file":"OptionalDataControlsTemplate.js","sourceRoot":"","sources":["../../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,UAAU,EAAE,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAIlD,KAAiD;IACjD,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACjE,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL,KAAC,UAAU,IACT,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,wBAAwB,EAClC,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAC,UAAU,KAAG,EACpB,IAAI,EAAC,IAAI,GACT,CACH,CAAC;IACJ,CAAC;SAAM,IAAI,aAAa,EAAE,CAAC;QACzB,OAAO,CACL,KAAC,YAAY,IACX,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,IAAI,GACT,CACH,CAAC;IACJ,CAAC;IACD,OAAO,aAAI,EAAE,EAAE,EAAE,YAAG,KAAK,GAAM,CAAC;AAClC,CAAC"}
1
+ {"version":3,"file":"OptionalDataControlsTemplate.js","sourceRoot":"","sources":["../../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,UAAU,EAAE,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAIlD,KAAiD;IACjD,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACjE,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,CACL,KAAC,UAAU,IACT,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,wBAAwB,EAClC,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,KAAC,UAAU,KAAG,EACpB,IAAI,EAAC,IAAI,GACT,CACH,CAAC;IACJ,CAAC;IACD,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,CACL,KAAC,YAAY,IACX,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,IAAI,GACT,CACH,CAAC;IACJ,CAAC;IACD,OAAO,aAAI,EAAE,EAAE,EAAE,YAAG,KAAK,GAAM,CAAC;AAClC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
2
  /** The `RadioWidget` is a widget for rendering a radio group.
3
3
  * It is typically used with a string property constrained with enum options.
4
4
  *
@@ -11,15 +11,15 @@ import { cn } from '../lib/utils.js';
11
11
  export default function RadioWidget({ id, options, value, required, disabled, readonly, onChange, onBlur, onFocus, className, }) {
12
12
  const { enumOptions, enumDisabled, emptyValue } = options;
13
13
  const optionValueFormat = getOptionValueFormat(options);
14
- const _onChange = (value) => onChange(enumOptionValueDecoder(value, enumOptions, optionValueFormat, emptyValue));
15
- const _onBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
16
- const _onFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
14
+ const handleChange = (enumValue) => onChange(enumOptionValueDecoder(enumValue, enumOptions, optionValueFormat, emptyValue));
15
+ const handleBlur = ({ target }) => onBlur(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
16
+ const handleFocus = ({ target }) => onFocus(id, enumOptionValueDecoder(target && target.value, enumOptions, optionValueFormat, emptyValue));
17
17
  const inline = Boolean(options && options.inline);
18
18
  return (_jsx("div", { className: 'mb-0', children: _jsx(RadioGroup, { defaultValue: value === null || value === void 0 ? void 0 : value.toString(), required: required, disabled: disabled || readonly, onValueChange: (e) => {
19
- _onChange(e);
20
- }, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id), orientation: inline ? 'horizontal' : 'vertical', className: cn('flex flex-wrap', { 'flex-col': !inline }, className), children: Array.isArray(enumOptions) &&
19
+ handleChange(e);
20
+ }, onBlur: handleBlur, onFocus: handleFocus, "aria-describedby": ariaDescribedByIds(id), orientation: inline ? 'horizontal' : 'vertical', className: cn('flex flex-wrap', { 'flex-col': !inline }, className), children: Array.isArray(enumOptions) &&
21
21
  enumOptions.map((option, index) => {
22
- const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
22
+ const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);
23
23
  const checked = enumOptionsIsSelected(option.value, value);
24
24
  return (_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(RadioGroupItem, { checked: checked, value: enumOptionValueEncoder(option.value, index, optionValueFormat), id: optionId(id, index), disabled: itemDisabled }), _jsx(Label, { className: 'leading-tight', htmlFor: optionId(id, index), children: option.label })] }, optionId(id, index)));
25
25
  }) }) }));
@@ -1 +1 @@
1
- {"version":3,"file":"RadioWidget.js","sourceRoot":"","sources":["../../src/RadioWidget/RadioWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EAEpB,QAAQ,GAIT,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAoF,EACrH,EAAE,EACF,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,SAAS,GACY;IACrB,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC1D,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAExD,MAAM,SAAS,GAAG,CAAC,KAAa,EAAE,EAAE,CAClC,QAAQ,CAAC,sBAAsB,CAAI,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IACzF,MAAM,OAAO,GAAG,CAAC,EAAE,MAAM,EAAgC,EAAE,EAAE,CAC3D,MAAM,CAAC,EAAE,EAAE,sBAAsB,CAAI,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IAC5G,MAAM,QAAQ,GAAG,CAAC,EAAE,MAAM,EAAgC,E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M,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;oBAC9D,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACtC,KAAC,cAAc,IACb,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,sBAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,EACrE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,EACvB,QAAQ,EAAE,YAAY,GACtB,EACF,KAAC,KAAK,IAAC,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,YAC1D,MAAM,CAAC,KAAK,GACP,KAToC,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAU3D,CACP,CAAC;gBACJ,CAAC,CAAC,GACO,GACT,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
2
  /**
3
3
  * A range widget component that renders a slider for number input
4
4
  * @param {object} props - The widget properties
@@ -12,4 +12,4 @@ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjs
12
12
  * @param {string} props.id - The unique identifier for the widget
13
13
  * @returns {JSX.Element} The rendered range widget
14
14
  */
15
- export default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ value, readonly, disabled, options, schema, onChange, label, id, }: WidgetProps<T, S, F>): JSX.Element;
15
+ export default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ value, readonly, disabled, options, schema, onChange, label, id, }: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -31,9 +31,9 @@ const allowedProps = [
31
31
  * @returns {JSX.Element} The rendered range widget
32
32
  */
33
33
  export default function RangeWidget({ value, readonly, disabled, options, schema, onChange, label, id, }) {
34
- const _onChange = (value) => onChange(value[0]);
34
+ const handleChange = (newValue) => onChange(newValue[0]);
35
35
  const sliderProps = { value, label, id, ...rangeSpec(schema) };
36
36
  const uiProps = { id, ..._pick(options.props || {}, allowedProps) };
37
- return (_jsxs(_Fragment, { children: [_jsx(Slider, { disabled: disabled || readonly, min: sliderProps.min, max: sliderProps.max, step: sliderProps.step, value: [value], onValueChange: _onChange, ...uiProps, "aria-describedby": ariaDescribedByIds(id) }), value] }));
37
+ return (_jsxs(_Fragment, { children: [_jsx(Slider, { disabled: disabled || readonly, min: sliderProps.min, max: sliderProps.max, step: sliderProps.step, value: [value], onValueChange: handleChange, ...uiProps, "aria-describedby": ariaDescribedByIds(id) }), value] }));
38
38
  }
39
39
  //# sourceMappingURL=RangeWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RangeWidget.js","sourceRoot":"","sources":["../../src/RangeWidget/RangeWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAmB,SAAS,EAA6C,MAAM,aAAa,CAAC;AACxH,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,YAAY,GAAG;IACnB,MAAM;IACN,KAAK;IACL,KAAK;IACL,MAAM;IACN,aAAa;IACb,UAAU;IACV,cAAc;IACd,OAAO;IACP,eAAe;IACf,WAAW;IACX,KAAK;IACL,UAAU;IACV,uBAAuB;CACxB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAoF,EACrH,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,KAAK,EACL,EAAE,GACmB;IACrB,MAAM,SAAS,GAAG,CAAC,KAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE1D,MAAM,WAAW,GAAG,EAAE,KA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,WAAW,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,SAAS,CAAI,MAAM,CAAC,EAAE,CAAC;IAClE,MAAM,OAAO,GAAG,EAAE,EAAE,EAAE,GAAG,KAAK,CAAE,OAAO,CAAC,KAAgB,IAAI,EAAE,EAAE,YAAY,CAAC,EAAE,CAAC;IAChF,OAAO,CACL,8BACE,KAAC,MAAM,IACL,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,GAAG,EAAE,WAAW,CAAC,GAAG,EACpB,GAAG,EAAE,WAAW,CAAC,GAAG,EACpB,IAAI,EAAE,WAAW,CAAC,IAAI,EACtB,KAAK,EAAE,CAAC,KAAe,CAAC,EACxB,aAAa,EAAE,YAAY,KACvB,OAAO,sBACO,kBAAkB,CAAC,EAAE,CAAC,GACxC,EACD,KAAK,IACL,CACJ,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
2
  /** The `SelectWidget` is a widget for rendering dropdowns.
3
3
  * It is typically used with string properties constrained with enum options.
4
4
  *
@@ -11,23 +11,23 @@ import { cn } from '../lib/utils.js';
11
11
  export default function SelectWidget({ id, options, required, disabled, readonly, value, multiple, autofocus, onChange, onBlur, onFocus, placeholder, rawErrors = [], className, }) {
12
12
  const { enumOptions, enumDisabled, emptyValue: optEmptyValue } = options;
13
13
  const optionValueFormat = getOptionValueFormat(options);
14
- const _onFancyFocus = () => {
14
+ const handleFancyFocus = () => {
15
15
  onFocus(id, enumOptionValueDecoder(value, enumOptions, optionValueFormat, optEmptyValue));
16
16
  };
17
- const _onFancyBlur = () => {
17
+ const handleFancyBlur = () => {
18
18
  onBlur(id, enumOptionValueDecoder(value, enumOptions, optionValueFormat, optEmptyValue));
19
19
  };
20
- const items = enumOptions === null || enumOptions === void 0 ? void 0 : enumOptions.map(({ value, label }, index) => ({
21
- value: multiple ? value : enumOptionValueEncoder(value, index, optionValueFormat),
22
- label: label,
20
+ const items = enumOptions === null || enumOptions === void 0 ? void 0 : enumOptions.map(({ value: enumValue, label: enumLabel }, index) => ({
21
+ value: multiple ? enumValue : enumOptionValueEncoder(enumValue, index, optionValueFormat),
22
+ label: enumLabel,
23
23
  index,
24
- disabled: Array.isArray(enumDisabled) && enumDisabled.includes(value),
24
+ disabled: Array.isArray(enumDisabled) && enumDisabled.includes(enumValue),
25
25
  }));
26
26
  const cnClassName = cn({ 'border-destructive': rawErrors.length > 0 }, className);
27
27
  return (_jsx("div", { className: 'p-0.5', children: !multiple ? (_jsx(FancySelect, { items: items, selected: enumOptionSelectedValue(value, enumOptions, false, optionValueFormat, ''), onValueChange: (selectedValue) => {
28
28
  onChange(enumOptionValueDecoder(selectedValue, enumOptions, optionValueFormat, optEmptyValue));
29
- }, autoFocus: autofocus, disabled: disabled || readonly, required: required, placeholder: placeholder, className: cnClassName, onFocus: _onFancyFocus, onBlur: _onFancyBlur, ariaDescribedby: ariaDescribedByIds(id) })) : (_jsx(FancyMultiSelect, { id: id, autoFocus: autofocus, disabled: disabled || readonly, multiple: true, className: cnClassName, items: items, selected: value, onValueChange: (values) => {
29
+ }, autoFocus: autofocus, disabled: disabled || readonly, required: required, placeholder: placeholder, className: cnClassName, onFocus: handleFancyFocus, onBlur: handleFancyBlur, ariaDescribedby: ariaDescribedByIds(id) })) : (_jsx(FancyMultiSelect, { id: id, autoFocus: autofocus, disabled: disabled || readonly, multiple: true, className: cnClassName, items: items, selected: value, onValueChange: (values) => {
30
30
  onChange(enumOptionValueDecoder(values.map(String), enumOptions, optionValueFormat, optEmptyValue));
31
- }, onFocus: _onFancyFocus, onBlur: _onFancyBlur })) }));
31
+ }, onFocus: handleFancyFocus, onBlur: handleFancyBlur })) }));
32
32
  }
33
33
  //# sourceMappingURL=SelectWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectWidget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EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,QAAQ,QACR,SAAS,EAAE,WAAW,EACtB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE;gBACxB,QAAQ,CAAC,sBAAsB,CAAI,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;YACzG,CAAC,EACD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,eAAe,GACvB,CACH,GACG,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';
2
2
  /** The `SubmitButton` renders a button that represent the `Submit` action on a form
3
3
  */
4
4
  export default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: SubmitButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -1 +1 @@
1
- {"version":3,"file":"SubmitButton.js","sourceRoot":"","sources":["../../src/SubmitButton/SubmitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,sBAAsB,EAAmD,MAAM,aAAa,CAAC;AAEvH,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;GACG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,KAAiC;IAEjC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,sBAAsB,CAAU,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3G,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,wBACE,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,KAAK,iBAAiB,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,SAAS,CAAC,YAC7F,UAAU,GACJ,GACL,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"SubmitButton.js","sourceRoot":"","sources":["../../src/SubmitButton/SubmitButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;GACG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,KAAiC;IAEjC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG,sBAAsB,CAAU,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3G,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,wBACE,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,KAAK,iBAAiB,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,SAAS,CAAC,YAC7F,UAAU,GACJ,GACL,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';
2
2
  export declare function generateTemplates<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): Partial<TemplatesType<T, S, F>>;
3
3
  declare const _default: Partial<TemplatesType<any, RJSFSchema, any>>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
2
  type CustomWidgetProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> = WidgetProps<T, S, F> & {
3
3
  options: any;
4
4
  };
@@ -6,9 +6,9 @@ import { Textarea } from '../components/ui/textarea.js';
6
6
  * @param props - The `WidgetProps` for this component
7
7
  */
8
8
  export default function TextareaWidget({ id, htmlName, placeholder, value, required, disabled, autofocus, readonly, onBlur, onFocus, onChange, options, className, }) {
9
- const _onChange = ({ target: { value } }) => onChange(value === '' ? options.emptyValue : value);
10
- const _onBlur = ({ target }) => onBlur(id, target && target.value);
11
- const _onFocus = ({ target }) => onFocus(id, target && target.value);
12
- return (_jsx("div", { className: 'flex p-0.5', children: _jsx(Textarea, { id: id, name: htmlName || id, placeholder: placeholder, disabled: disabled, readOnly: readonly, value: value !== null && value !== void 0 ? value : '', required: required, autoFocus: autofocus, rows: options.rows || 5, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id), className: className }) }));
9
+ const handleChange = ({ target: { value: newValue } }) => onChange(newValue === '' ? options.emptyValue : newValue);
10
+ const handleBlur = ({ target }) => onBlur(id, target && target.value);
11
+ const handleFocus = ({ target }) => onFocus(id, target && target.value);
12
+ return (_jsx("div", { className: 'flex p-0.5', children: _jsx(Textarea, { id: id, name: htmlName || id, placeholder: placeholder, disabled: disabled, readOnly: readonly, value: value !== null && value !== void 0 ? value : '', required: required, autoFocus: autofocus, rows: options.rows || 5, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, "aria-describedby": ariaDescribedByIds(id), className: className }) }));
13
13
  }
14
14
  //# sourceMappingURL=TextareaWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextareaWidget.js","sourceRoot":"","sources":["../../src/TextareaWidget/TextareaWidget.tsx"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AQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,CAAC,EACvB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,sBACF,kBAAkB,CAAC,EAAE,CAAC,EACxC,SAAS,EAAE,SAAS,GACpB,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ThemeProps } from '@rjsf/core';
2
- import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { ThemeProps } from '@rjsf/core';
2
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
3
3
  export declare function generateTheme<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ThemeProps<T, S, F>;
4
4
  declare const _default: ThemeProps<any, RJSFSchema, any>;
5
5
  export default _default;
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, TitleFieldProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, TitleFieldProps } from '@rjsf/utils';
2
2
  /** The `TitleField` is the template to use to render the title of a field
3
3
  *
4
4
  * @param props - The `TitleFieldProps` for this component
@@ -1 +1 @@
1
- {"version":3,"file":"TitleField.js","sourceRoot":"","sources":["../../src/TitleField/TitleField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,YAAY,EAAiD,MAAM,aAAa,CAAC;AAE3G,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAoF,EACpH,EAAE,EACF,KAAK,EACL,QAAQ,EACR,mBAAmB,GACM;IACzB,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,IAAI,OAAO,GAAG,uBAAK,SAAS,CAAC,KAAK,IAAI,KAAK,GAAM,CAAC;IAClD,IAAI,m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AAC,MAAM,GAAG,IACrE,CACP,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
1
+ import type { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
2
  export declare function generateWidgets<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): RegistryWidgetsType<T, S, F>;
3
3
  declare const _default: RegistryWidgetsType<any, RJSFSchema, any>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTemplateProps } from '@rjsf/utils';
1
+ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTemplateProps } from '@rjsf/utils';
2
2
  /** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are
3
3
  * part of an `additionalProperties` part of a schema.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { ADDITIONAL_PROPERTY_FLAG, buttonId, TranslatableString, } from '@rjsf/utils';
2
+ import { ADDITIONAL_PROPERTY_FLAG, buttonId, TranslatableString } from '@rjsf/utils';
3
3
  import { Input } from '../components/ui/input.js';
4
4
  import { Separator } from '../components/ui/separator.js';
5
5
  /** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are