@rjsf/semantic-ui 6.5.3 → 6.6.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.
- package/dist/index.cjs +158 -158
- package/dist/index.cjs.map +4 -4
- package/dist/semantic-ui.esm.js +157 -157
- package/dist/semantic-ui.esm.js.map +4 -4
- package/dist/semantic-ui.umd.js +109 -109
- package/lib/AddButton/AddButton.js +1 -1
- package/lib/AddButton/AddButton.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.js +2 -2
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.js.map +1 -1
- package/lib/ErrorList/ErrorList.js +1 -1
- package/lib/ErrorList/ErrorList.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/GridTemplate/GridTemplate.js.map +1 -1
- package/lib/IconButton/IconButton.d.ts +1 -1
- package/lib/IconButton/IconButton.js +1 -1
- package/lib/IconButton/IconButton.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.js +1 -1
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.js +1 -1
- package/lib/SubmitButton/SubmitButton.js.map +1 -1
- package/lib/Templates/Templates.js +1 -1
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
- package/lib/Theme/Theme.d.ts +1 -1
- package/lib/Widgets/Widgets.js +1 -1
- package/lib/Widgets/Widgets.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/AddButton/AddButton.tsx +1 -1
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +4 -3
- package/src/CheckboxWidget/CheckboxWidget.tsx +1 -0
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +2 -1
- package/src/DescriptionField/DescriptionField.tsx +1 -1
- package/src/ErrorList/ErrorList.tsx +1 -1
- package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +1 -1
- package/src/FieldTemplate/FieldTemplate.tsx +1 -0
- package/src/GridTemplate/GridTemplate.tsx +1 -1
- package/src/IconButton/IconButton.tsx +1 -1
- package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +1 -1
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +1 -1
- package/src/RadioWidget/RadioWidget.tsx +1 -0
- package/src/RangeWidget/RangeWidget.tsx +2 -1
- package/src/SelectWidget/SelectWidget.tsx +1 -0
- package/src/SubmitButton/SubmitButton.tsx +1 -1
- package/src/Templates/Templates.ts +1 -1
- package/src/TextareaWidget/TextareaWidget.tsx +1 -0
- package/src/Theme/Theme.ts +1 -1
- package/src/Widgets/Widgets.tsx +1 -1
- package/src/tsconfig.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/semantic-ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -48,31 +48,31 @@
|
|
|
48
48
|
"build:esm": "esbuild ./src/index.ts --bundle --outfile=dist/semantic-ui.esm.js --sourcemap --packages=external --format=esm",
|
|
49
49
|
"build:umd": "rollup dist/semantic-ui.esm.js --format=umd --file=dist/semantic-ui.umd.js --name=@rjsf/semantic-ui",
|
|
50
50
|
"build": "npm run build:ts && npm run build:cjs && npm run build:esm && npm run build:umd",
|
|
51
|
-
"cs-check": "
|
|
52
|
-
"cs-format": "
|
|
53
|
-
"lint": "
|
|
51
|
+
"cs-check": "oxfmt --check \"{src,test}/**/*.{ts,tsx}\"",
|
|
52
|
+
"cs-format": "oxfmt \"{src,test}/**/*.{ts,tsx}\"",
|
|
53
|
+
"lint": "oxlint src test",
|
|
54
54
|
"precommit": "lint-staged",
|
|
55
|
-
"test": "
|
|
56
|
-
"test:update": "
|
|
55
|
+
"test": "vitest run",
|
|
56
|
+
"test:update": "vitest run --update-snapshots"
|
|
57
57
|
},
|
|
58
58
|
"lint-staged": {
|
|
59
59
|
"{src,test}/**/*.ts(x)": [
|
|
60
|
-
"
|
|
60
|
+
"oxlint --fix",
|
|
61
|
+
"oxfmt"
|
|
61
62
|
]
|
|
62
63
|
},
|
|
63
64
|
"peerDependencies": {
|
|
64
|
-
"@rjsf/core": "^6.
|
|
65
|
-
"@rjsf/utils": "^6.
|
|
65
|
+
"@rjsf/core": "^6.6.x",
|
|
66
|
+
"@rjsf/utils": "^6.6.x",
|
|
66
67
|
"react": ">=18",
|
|
67
68
|
"semantic-ui-react": "^2.1.3"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@rjsf/core": "6.
|
|
71
|
-
"@rjsf/snapshot-tests": "6.
|
|
72
|
-
"@rjsf/utils": "6.
|
|
73
|
-
"@rjsf/validator-ajv8": "6.
|
|
71
|
+
"@rjsf/core": "6.6.1",
|
|
72
|
+
"@rjsf/snapshot-tests": "6.6.1",
|
|
73
|
+
"@rjsf/utils": "6.6.1",
|
|
74
|
+
"@rjsf/validator-ajv8": "6.6.1",
|
|
74
75
|
"atob": "^2.1.2",
|
|
75
|
-
"eslint": "^8.57.1",
|
|
76
76
|
"semantic-ui-react": "^2.1.5"
|
|
77
77
|
},
|
|
78
78
|
"publishConfig": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button, Icon, ButtonProps } from 'semantic-ui-react';
|
|
2
1
|
import { FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { Button, Icon, ButtonProps } from 'semantic-ui-react';
|
|
3
3
|
|
|
4
4
|
import { SemanticIconButtonProps } from '../IconButton';
|
|
5
5
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, MouseEvent, useCallback } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { getSemanticProps } from '../util';
|
|
2
|
+
import { SchemaExamples } from '@rjsf/core';
|
|
4
3
|
import {
|
|
5
4
|
ariaDescribedByIds,
|
|
6
5
|
BaseInputTemplateProps,
|
|
@@ -11,7 +10,9 @@ import {
|
|
|
11
10
|
RJSFSchema,
|
|
12
11
|
StrictRJSFSchema,
|
|
13
12
|
} from '@rjsf/utils';
|
|
14
|
-
import {
|
|
13
|
+
import { Form } from 'semantic-ui-react';
|
|
14
|
+
|
|
15
|
+
import { getSemanticProps } from '../util';
|
|
15
16
|
|
|
16
17
|
/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
|
|
17
18
|
* It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
-
import { Form } from 'semantic-ui-react';
|
|
3
2
|
import {
|
|
4
3
|
ariaDescribedByIds,
|
|
5
4
|
enumOptionsDeselectValue,
|
|
@@ -13,6 +12,8 @@ import {
|
|
|
13
12
|
StrictRJSFSchema,
|
|
14
13
|
WidgetProps,
|
|
15
14
|
} from '@rjsf/utils';
|
|
15
|
+
import { Form } from 'semantic-ui-react';
|
|
16
|
+
|
|
16
17
|
import { getSemanticProps } from '../util';
|
|
17
18
|
|
|
18
19
|
/** The `CheckboxesWidget` is a widget for rendering checkbox groups.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
1
|
import { RichDescription } from '@rjsf/core';
|
|
2
|
+
import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
3
3
|
|
|
4
4
|
/** The `DescriptionField` is the template to use to render the description of a field
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Message } from 'semantic-ui-react';
|
|
2
1
|
import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { Message } from 'semantic-ui-react';
|
|
3
3
|
|
|
4
4
|
/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';
|
|
2
1
|
import { RichHelp } from '@rjsf/core';
|
|
2
|
+
import { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema, helpId } from '@rjsf/utils';
|
|
3
3
|
import { Message } from 'semantic-ui-react';
|
|
4
4
|
|
|
5
5
|
/** The `FieldHelpTemplate` component renders any help desired for a field
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
getUiOptions,
|
|
8
8
|
} from '@rjsf/utils';
|
|
9
9
|
import { Form } from 'semantic-ui-react';
|
|
10
|
+
|
|
10
11
|
import { getSemanticProps, MaybeWrap } from '../util';
|
|
11
12
|
|
|
12
13
|
/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Grid } from 'semantic-ui-react';
|
|
2
1
|
import { GridTemplateProps } from '@rjsf/utils';
|
|
2
|
+
import { Grid } from 'semantic-ui-react';
|
|
3
3
|
|
|
4
4
|
/** Renders a `GridTemplate` for semantic-ui, which is expecting the column sizing information coming in via the
|
|
5
5
|
* extra props provided by the caller, which are spread directly on the `Flex`.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button, ButtonProps } from 'semantic-ui-react';
|
|
2
1
|
import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema, TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { Button, ButtonProps } from 'semantic-ui-react';
|
|
3
3
|
|
|
4
4
|
export type SemanticIconButtonProps<
|
|
5
5
|
T = any,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Grid } from 'semantic-ui-react';
|
|
2
1
|
import {
|
|
3
2
|
FormContextType,
|
|
4
3
|
ObjectFieldTemplateProps,
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
11
10
|
titleId,
|
|
12
11
|
buttonId,
|
|
13
12
|
} from '@rjsf/utils';
|
|
13
|
+
import { Grid } from 'semantic-ui-react';
|
|
14
14
|
|
|
15
15
|
/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the
|
|
16
16
|
* title and description if available. If the object is expandable, then an `AddButton` is also rendered after all
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
import { RemoveButton } from '../IconButton';
|
|
4
3
|
import AddButton from '../AddButton';
|
|
4
|
+
import { RemoveButton } from '../IconButton';
|
|
5
5
|
|
|
6
6
|
/** The OptionalDataControlsTemplate renders one of three different states. If
|
|
7
7
|
* there is an `onAddClick()` function, it renders the "Add" button. If there is
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
|
-
import { Input } from 'semantic-ui-react';
|
|
3
2
|
import { ariaDescribedByIds, FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps, rangeSpec } from '@rjsf/utils';
|
|
3
|
+
import { Input } from 'semantic-ui-react';
|
|
4
|
+
|
|
4
5
|
import { getSemanticProps } from '../util';
|
|
5
6
|
|
|
6
7
|
/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Button } from 'semantic-ui-react';
|
|
2
1
|
import { getSubmitButtonOptions, FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';
|
|
2
|
+
import { Button } from 'semantic-ui-react';
|
|
3
3
|
|
|
4
4
|
/** The `SubmitButton` renders a button that represent the `Submit` action on a form
|
|
5
5
|
*/
|
|
@@ -6,11 +6,11 @@ import ArrayFieldTemplate from '../ArrayFieldTemplate';
|
|
|
6
6
|
import BaseInputTemplate from '../BaseInputTemplate';
|
|
7
7
|
import DescriptionField from '../DescriptionField';
|
|
8
8
|
import ErrorList from '../ErrorList';
|
|
9
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';
|
|
10
9
|
import FieldErrorTemplate from '../FieldErrorTemplate';
|
|
11
10
|
import FieldHelpTemplate from '../FieldHelpTemplate';
|
|
12
11
|
import FieldTemplate from '../FieldTemplate';
|
|
13
12
|
import GridTemplate from '../GridTemplate';
|
|
13
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';
|
|
14
14
|
import MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';
|
|
15
15
|
import ObjectFieldTemplate from '../ObjectFieldTemplate';
|
|
16
16
|
import OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';
|
package/src/Theme/Theme.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
1
|
import { ThemeProps } from '@rjsf/core';
|
|
2
|
+
import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
3
3
|
import { Form as SuiForm } from 'semantic-ui-react';
|
|
4
4
|
|
|
5
5
|
import { generateTemplates } from '../Templates';
|
package/src/Widgets/Widgets.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';
|
|
4
3
|
import CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';
|
|
4
|
+
import CheckboxWidget from '../CheckboxWidget/CheckboxWidget';
|
|
5
5
|
import RadioWidget from '../RadioWidget/RadioWidget';
|
|
6
6
|
import RangeWidget from '../RangeWidget/RangeWidget';
|
|
7
7
|
import SelectWidget from '../SelectWidget/SelectWidget';
|
package/src/tsconfig.json
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
"compilerOptions": {
|
|
7
7
|
"rootDir": "./",
|
|
8
8
|
"outDir": "../lib",
|
|
9
|
-
"baseUrl": "../",
|
|
10
9
|
"jsx": "react-jsx",
|
|
11
10
|
// There are type errors in semantic-ui-react type definitions because of which skipLibCheck had to be added
|
|
12
11
|
// semantic-ui-react/dist/commonjs/generic.d.ts(73,73): error TS2344: Type 'TProps' does not satisfy the constraint 'Record<string, any>'.
|