@axdspub/axiom-ui-forms 0.3.2 → 0.3.3-experimental.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/library/esm/_virtual/index10.js +2 -2
- package/library/esm/_virtual/index12.js +2 -2
- package/library/esm/_virtual/index13.js +2 -2
- package/library/esm/_virtual/index14.js +2 -2
- package/library/esm/_virtual/index15.js +2 -2
- package/library/esm/_virtual/index4.js +2 -2
- package/library/esm/_virtual/index5.js +2 -2
- package/library/esm/_virtual/index8.js +2 -2
- package/library/esm/_virtual/index8.js.map +1 -1
- package/library/esm/_virtual/index9.js +2 -2
- package/library/esm/node_modules/ajv/dist/compile/codegen/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/compile/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/compile/validate/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/core/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/format/index.js +1 -1
- package/library/esm/node_modules/ajv/dist/vocabularies/validation/index.js +1 -1
- package/library/esm/node_modules/fast-uri/index.js +1 -1
- package/library/esm/node_modules/json-schema-traverse/index.js +1 -1
- package/library/esm/node_modules/style-to-object/cjs/index.js +1 -1
- package/library/esm/src/Form/Creator/FormContextProvider.js +2 -2
- package/library/esm/src/Form/Creator/FormContextProvider.js.map +1 -1
- package/library/esm/src/Form/Creator/NavElement.js +1 -1
- package/library/esm/src/Form/Creator/Page.js +1 -1
- package/library/esm/src/Form/Creator/Wizard.js +1 -1
- package/package.json +2 -2
- package/library/esm/_virtual/index16.js +0 -4
- package/library/esm/_virtual/index16.js.map +0 -1
- package/library/esm/_virtual/index17.js +0 -4
- package/library/esm/_virtual/index17.js.map +0 -1
- package/library/esm/node_modules/react-router/dist/development/chunk-NL6KNZEE.js +0 -1731
- package/library/esm/node_modules/react-router/dist/development/chunk-NL6KNZEE.js.map +0 -1
- package/library/esm/node_modules/react-router/node_modules/cookie/dist/index.js +0 -250
- package/library/esm/node_modules/react-router/node_modules/cookie/dist/index.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index8.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as compile } from '../../../../_virtual/
|
1
|
+
import { __exports as compile } from '../../../../_virtual/index8.js';
|
2
2
|
import { __require as requireCodegen } from './codegen/index.js';
|
3
3
|
import { __require as requireValidation_error } from '../runtime/validation_error.js';
|
4
4
|
import { __require as requireNames } from './names.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as validate } from '../../../../../_virtual/
|
1
|
+
import { __exports as validate } from '../../../../../_virtual/index5.js';
|
2
2
|
import { __require as requireBoolSchema } from './boolSchema.js';
|
3
3
|
import { __require as requireDataType } from './dataType.js';
|
4
4
|
import { __require as requireApplicability } from './applicability.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { __exports as validation } from '../../../../../_virtual/
|
1
|
+
import { __exports as validation } from '../../../../../_virtual/index9.js';
|
2
2
|
import { __require as requireLimitNumber } from './limitNumber.js';
|
3
3
|
import { __require as requireMultipleOf } from './multipleOf.js';
|
4
4
|
import { __require as requireLimitLength } from './limitLength.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import '../../../node_modules/tslib/tslib.es6.js';
|
2
|
-
import
|
2
|
+
import { createContext, useContext } from 'react';
|
3
3
|
|
4
4
|
var FormContext = createContext({
|
5
5
|
form: { id: '', label: '' },
|
@@ -7,7 +7,7 @@ var FormContext = createContext({
|
|
7
7
|
setFormValues: function (v) { }
|
8
8
|
});
|
9
9
|
var useFormContext = function () {
|
10
|
-
var ctx =
|
10
|
+
var ctx = useContext(FormContext);
|
11
11
|
if (!ctx)
|
12
12
|
throw new Error('useFormSectionContext must be used within FormSectionContextProvider');
|
13
13
|
return ctx;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormContextProvider.js","sources":["../../../../../src/Form/Creator/FormContextProvider.tsx"],"sourcesContent":["import { type IFieldInputProps, type IForm, type IFormValues } from '@/Form/Creator/FormCreatorTypes'\r\nimport { type JSONSchema6 } from 'json-schema'\r\nimport React, { createContext, type ReactElement, type PropsWithChildren } from 'react'\r\n\r\nexport interface IFormContextValue {\r\n form: IForm\r\n formValues: IFormValues\r\n setFormValues: (v: IFormValues) => void\r\n inputOverrides?: Record<string, React.FC<IFieldInputProps>>\r\n urlNavigable?: boolean\r\n schema?: JSONSchema6\r\n}\r\n\r\nexport const FormContext = createContext<IFormContextValue>({\r\n form: { id: '', label: '' },\r\n formValues: {},\r\n setFormValues: (v) => {}\r\n})\r\n\r\nexport const FormContextProvider = ({ children, ...props }: IFormContextValue & PropsWithChildren): ReactElement => {\r\n return (\r\n <FormContext.Provider value={{ ...props }}>\r\n {children}\r\n </FormContext.Provider>\r\n )\r\n}\r\n\r\nexport const useFormContext = (): IFormContextValue => {\r\n const ctx =
|
1
|
+
{"version":3,"file":"FormContextProvider.js","sources":["../../../../../src/Form/Creator/FormContextProvider.tsx"],"sourcesContent":["import { type IFieldInputProps, type IForm, type IFormValues } from '@/Form/Creator/FormCreatorTypes'\r\nimport { type JSONSchema6 } from 'json-schema'\r\nimport React, { createContext, type ReactElement, type PropsWithChildren, useContext } from 'react'\r\n\r\nexport interface IFormContextValue {\r\n form: IForm\r\n formValues: IFormValues\r\n setFormValues: (v: IFormValues) => void\r\n inputOverrides?: Record<string, React.FC<IFieldInputProps>>\r\n urlNavigable?: boolean\r\n schema?: JSONSchema6\r\n}\r\n\r\nexport const FormContext = createContext<IFormContextValue>({\r\n form: { id: '', label: '' },\r\n formValues: {},\r\n setFormValues: (v) => {}\r\n})\r\n\r\nexport const FormContextProvider = ({ children, ...props }: IFormContextValue & PropsWithChildren): ReactElement => {\r\n return (\r\n <FormContext.Provider value={{ ...props }}>\r\n {children}\r\n </FormContext.Provider>\r\n )\r\n}\r\n\r\nexport const useFormContext = (): IFormContextValue => {\r\n const ctx = useContext(FormContext)\r\n if (!ctx) throw new Error('useFormSectionContext must be used within FormSectionContextProvider')\r\n return ctx\r\n}\r\n"],"names":[],"mappings":";;;AAaO,IAAM,WAAW,GAAG,aAAa,CAAoB;IAC1D,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;AAC3B,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,aAAa,EAAE,UAAC,CAAC,EAAA;AAClB,CAAA;AAUY,IAAA,cAAc,GAAG,YAAA;AAC5B,IAAA,IAAM,GAAG,GAAG,UAAU,CAAC,WAAW,CAAC;AACnC,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC;AACjG,IAAA,OAAO,GAAG;AACZ;;;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { utils as index$1, Button } from '../../../node_modules/@axdspub/axiom-ui-utilities/library/index.js';
|
2
2
|
import React__default from 'react';
|
3
|
-
import { Link } from '
|
3
|
+
import { Link } from 'react-router-dom';
|
4
4
|
|
5
5
|
var NavElement = function (_a) {
|
6
6
|
var className = _a.className, children = _a.children, path = _a.path, id = _a.id, _b = _a.navigable, navigable = _b === void 0 ? true : _b, onClick = _a.onClick;
|
@@ -5,11 +5,11 @@ import NavElement from './NavElement.js';
|
|
5
5
|
import { calculateSectionStatus } from '../../utils/validators.js';
|
6
6
|
import { InfoCircledIcon, Cross2Icon, DropdownMenuIcon } from '../../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js';
|
7
7
|
import React__default, { useState, useEffect } from 'react';
|
8
|
+
import { useParams } from 'react-router-dom';
|
8
9
|
import { useFormContext } from './FormContextProvider.js';
|
9
10
|
import InlineMarkdown from '../Components/InlineMarkdown.js';
|
10
11
|
import layoutAtom from '../../utils/responsive/layoutState.js';
|
11
12
|
import { Button } from '../../../node_modules/@axdspub/axiom-ui-utilities/library/index.js';
|
12
|
-
import { useParams } from '../../../node_modules/react-router/dist/development/chunk-NL6KNZEE.js';
|
13
13
|
import { useAtom } from '../../../node_modules/jotai/esm/react.js';
|
14
14
|
|
15
15
|
var PageNav = function (_a) {
|
@@ -4,12 +4,12 @@ import { ActivePage } from './Page.js';
|
|
4
4
|
import { utils as index$1, SelectInput as Select } from '../../../node_modules/@axdspub/axiom-ui-utilities/library/index.js';
|
5
5
|
import { CaretLeftIcon, CaretRightIcon } from '../../../node_modules/@radix-ui/react-icons/dist/react-icons.esm.js';
|
6
6
|
import React__default from 'react';
|
7
|
+
import { useParams } from 'react-router-dom';
|
7
8
|
import NavElement from './NavElement.js';
|
8
9
|
import { FormSectionContextProvider, useFormSectionContext } from './FormSectionContextProvider.js';
|
9
10
|
import { useFormContext } from './FormContextProvider.js';
|
10
11
|
import layoutAtom from '../../utils/responsive/layoutState.js';
|
11
12
|
import { useAtomValue } from '../../../node_modules/jotai/esm/react.js';
|
12
|
-
import { useParams } from '../../../node_modules/react-router/dist/development/chunk-NL6KNZEE.js';
|
13
13
|
|
14
14
|
var sortByOrder = function (a, b) {
|
15
15
|
var _a, _b;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@axdspub/axiom-ui-forms",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.3-experimental.1",
|
4
4
|
"private": false,
|
5
5
|
"type": "module",
|
6
6
|
"description": "Axiom UI Forms",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"peerDependencies": {
|
14
14
|
"react": "^18.0.0",
|
15
15
|
"react-dom": "^18.0.0",
|
16
|
-
"react-
|
16
|
+
"react-router-dom": "^7.0.0"
|
17
17
|
},
|
18
18
|
"dependencies": {
|
19
19
|
"@axdspub/axiom-maps": "^0.4.9",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index17.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|