@trackunit/react-form-components 2.6.74 → 2.6.75-alpha-55a192f4ee4.0
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/migrations/entry.js.map +1 -0
- package/migrations/utils/jsx-utils.js.map +1 -0
- package/migrations/v2-0-0/actionbutton-add-title.js.map +1 -0
- package/package.json +8 -8
- package/src/components/BaseInput/components/AddonRenderer.d.ts +1 -1
- package/src/components/BaseInput/components/GenericActionsRenderer.d.ts +1 -1
- package/src/components/BaseInput/components/LockReasonRenderer.d.ts +1 -1
- package/src/components/BaseInput/components/PrefixRenderer.d.ts +1 -1
- package/src/components/BaseInput/components/SuffixRenderer.d.ts +1 -1
- package/src/components/Checkbox/CheckIcon.d.ts +1 -1
- package/src/components/Checkbox/IndeterminateIcon.d.ts +1 -1
- package/src/components/CheckboxField/CheckboxField.d.ts +1 -1
- package/src/components/ColorField/ColorField.d.ts +1 -1
- package/src/components/DropZone/DropZoneDefaultLabel.d.ts +1 -1
- package/src/components/EmailField/EmailField.d.ts +1 -1
- package/src/components/NumberField/NumberBaseInput/NumberBaseInput.d.ts +1 -1
- package/src/components/NumberField/NumberField.d.ts +1 -1
- package/src/components/OptionCard/OptionCard.d.ts +1 -1
- package/src/components/PasswordField/PasswordBaseInput/PasswordBaseInput.d.ts +1 -1
- package/src/components/PasswordField/PasswordField.d.ts +1 -1
- package/src/components/PhoneField/PhoneField.d.ts +1 -1
- package/src/components/PhoneFieldWithController/PhoneFieldWithController.d.ts +1 -1
- package/src/components/Schedule/Schedule.d.ts +1 -1
- package/src/components/TextAreaField/TextArea/TextAreaBaseInput.d.ts +1 -1
- package/src/components/TextAreaField/TextAreaField.d.ts +1 -1
- package/src/components/TextField/TextBaseInput/TextBaseInput.d.ts +1 -1
- package/src/components/TextField/TextField.d.ts +1 -1
- package/src/components/TextField/TextLengthIndicator.d.ts +1 -1
- package/src/components/TimeRange/TimeRange.d.ts +1 -1
- package/src/components/TimeRangeField/TimeRangeField.d.ts +1 -1
- package/src/components/UploadField/UploadField.d.ts +1 -1
- package/src/components/UploadInput/UploadInput.d.ts +1 -1
- package/src/components/UrlField/UrlField.d.ts +1 -1
- package/src/translation.d.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/form-components/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["// Migration entry point for @nx/js:tsc build target.\n// Migrations are registered in ../migrations.json and resolved by NX at runtime.\nexport {};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-utils.js","sourceRoot":"","sources":["../../../../../../libs/react/form-components/migrations/utils/jsx-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAqE;AACrE,+CAAiC;AAEjC,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU,CAAC;AACjD,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;AAEvD,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAW,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACpG,MAAM,QAAQ,GAAG,CAAC,QAAgB,EAAW,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AAElG,MAAM,kBAAkB,GAAG,CAAC,QAAgB,EAAW,EAAE,CACvD,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;AAE9E,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAW,EAAE,CAChD,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAA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AC,IAAI,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;AACtF,CAAC,CAAC;AARW,QAAA,6BAA6B,iCAQxC","sourcesContent":["import { logger, type Tree, visitNotIgnoredFiles } from \"@nx/devkit\";\nimport * as ts from \"typescript\";\n\nconst TSX_EXTENSIONS = [\".tsx\", \".jsx\"] as const;\nconst TS_EXTENSIONS = [\".ts\", \".tsx\", \".jsx\"] as const;\n\nconst isTsxFile = (filePath: string): boolean => TSX_EXTENSIONS.some(ext => filePath.endsWith(ext));\nconst isTsFile = (filePath: string): boolean => TS_EXTENSIONS.some(ext => filePath.endsWith(ext));\n\nconst isUnderNodeModules = (filePath: string): boolean =>\n filePath.includes(\"/node_modules/\") || filePath.startsWith(\"node_modules/\");\n\nconst isUnderDist = (filePath: string): boolean =>\n filePath.includes(\"/dist/\") || filePath.startsWith(\"dist/\") || filePath.includes(\"/.nx/\");\n\n/**\n * Visits every `.tsx`/`.jsx` file under the workspace root and invokes the\n * callback with the file path and its current contents. Files that don't\n * include the marker substring are skipped, which makes large workspaces\n * cheap to scan.\n */\nexport const visitTsxFiles = (\n tree: Tree,\n marker: string,\n callback: (filePath: string, content: string) => string | null | undefined\n): number => {\n let touched = 0;\n visitNotIgnoredFiles(tree, \"/\", filePath => {\n if (!isTsxFile(filePath)) return;\n if (isUnderNodeModules(filePath) || isUnderDist(filePath)) return;\n const content = tree.read(filePath, \"utf-8\");\n if (content === null) return;\n if (!content.includes(marker)) return;\n const updated = callback(filePath, content);\n if (updated !== null && updated !== undefined && updated !== content) {\n tree.write(filePath, updated);\n touched += 1;\n }\n });\n return touched;\n};\n\n/**\n * Same as {@link visitTsxFiles} but also includes plain `.ts` files. Use this\n * when the codemod also rewrites non-JSX files such as helpers or hooks.\n */\nexport const visitTsFiles = (\n tree: Tree,\n marker: string,\n callback: (filePath: string, content: string) => string | null | undefined\n): number => {\n let touched = 0;\n visitNotIgnoredFiles(tree, \"/\", filePath => {\n if (!isTsFile(filePath)) return;\n if (isUnderNodeModules(filePath) || isUnderDist(filePath)) return;\n const content = tree.read(filePath, \"utf-8\");\n if (content === null) return;\n if (!content.includes(marker)) return;\n const updated = callback(filePath, content);\n if (updated !== null && updated !== undefined && updated !== content) {\n tree.write(filePath, updated);\n touched += 1;\n }\n });\n return touched;\n};\n\n/**\n * Mapping of imported component aliases to their original names for a given\n * package. For `import { IconButton as Btn } from \"@trackunit/react-components\"`\n * this returns `{ Btn: \"IconButton\" }`.\n *\n * Returns `null` when the file imports nothing from the package, which lets\n * callers short-circuit before parsing JSX.\n */\nexport const getImportedAliases = (sourceFile: ts.SourceFile, packageName: string): Record<string, string> | null => {\n const result: Record<string, string> = {};\n let found = false;\n\n for (const stmt of sourceFile.statements) {\n if (!ts.isImportDeclaration(stmt)) continue;\n const moduleSpecifier = stmt.moduleSpecifier;\n if (!ts.isStringLiteral(moduleSpecifier)) continue;\n if (moduleSpecifier.text !== packageName) continue;\n\n const namedBindings = stmt.importClause?.namedBindings;\n if (namedBindings === undefined || !ts.isNamedImports(namedBindings)) continue;\n\n for (const element of namedBindings.elements) {\n const localName = element.name.text;\n const importedName = element.propertyName?.text ?? localName;\n result[localName] = importedName;\n found = true;\n }\n }\n\n return found ? result : null;\n};\n\n/**\n * Returns the local alias used in this file for `originalName` when imported\n * from `packageName`, or `null` if the component is not imported.\n */\nexport const getLocalAliasFor = (\n sourceFile: ts.SourceFile,\n packageName: string,\n originalName: string\n): string | null => {\n const aliases = getImportedAliases(sourceFile, packageName);\n if (aliases === null) return null;\n for (const [local, original] of Object.entries(aliases)) {\n if (original === originalName) return local;\n }\n return null;\n};\n\nexport type JsxElementMatch = {\n /** The opening JSX element (the one carrying the attributes). */\n openingElement: ts.JsxOpeningElement | ts.JsxSelfClosingElement;\n /** The full element including children, or the self-closing element. */\n element: ts.JsxElement | ts.JsxSelfClosingElement;\n};\n\n/**\n * Finds every JSX element whose tag name resolves to one of `tagNames`\n * (typically the local aliases returned by {@link getImportedAliases}).\n *\n * The result intentionally includes both opening and full elements so callers\n * can manipulate attributes (via `openingElement`) or wrap/replace the whole\n * element (via `element`).\n */\nexport const findJsxElements = (\n sourceFile: ts.SourceFile,\n tagNames: ReadonlyArray<string>\n): ReadonlyArray<JsxElementMatch> => {\n const matches: Array<JsxElementMatch> = [];\n const tagSet = new Set(tagNames);\n\n const visit = (node: ts.Node): void => {\n if (ts.isJsxSelfClosingElement(node)) {\n if (ts.isIdentifier(node.tagName) && tagSet.has(node.tagName.text)) {\n matches.push({ openingElement: node, element: node });\n }\n } else if (ts.isJsxElement(node)) {\n const opening = node.openingElement;\n if (ts.isIdentifier(opening.tagName) && tagSet.has(opening.tagName.text)) {\n matches.push({ openingElement: opening, element: node });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return matches;\n};\n\n/**\n * Looks up a named JSX attribute on the opening element. Returns `null` when\n * the attribute is missing or part of a spread attribute (which we cannot\n * statically inspect).\n */\nexport const findJsxAttribute = (\n openingElement: ts.JsxOpeningElement | ts.JsxSelfClosingElement,\n attributeName: string\n): ts.JsxAttribute | null => {\n for (const attr of openingElement.attributes.properties) {\n if (!ts.isJsxAttribute(attr)) continue;\n if (!ts.isIdentifier(attr.name)) continue;\n if (attr.name.text === attributeName) return attr;\n }\n return null;\n};\n\n/**\n * `true` when the element forwards a spread expression such as `{...rest}`,\n * which means we can't be sure which attributes are actually set.\n */\nexport const hasSpreadAttribute = (openingElement: ts.JsxOpeningElement | ts.JsxSelfClosingElement): boolean => {\n return openingElement.attributes.properties.some(prop => ts.isJsxSpreadAttribute(prop));\n};\n\n/**\n * Parses the file as TSX so JSX is recognised. We do not need a full program\n * here; tsquery's `ast` helper produces a script-kind source file which loses\n * JSX context, so we go through `createSourceFile` directly.\n */\nexport const parseTsx = (content: string, fileName = \"file.tsx\"): ts.SourceFile =>\n ts.createSourceFile(fileName, content, ts.ScriptTarget.Latest, true, ts.ScriptKind.TSX);\n\n/**\n * Helper for codemods to log a one-line summary at the end of a run. Migration\n * runners aggregate logs per migration, so this keeps output focused.\n */\nexport const logSummary = (migrationName: string, touched: number, manualReviewNeeded?: number): void => {\n if (touched === 0) {\n logger.info(` ${migrationName}: no files changed`);\n return;\n }\n const reviewSuffix =\n manualReviewNeeded !== undefined && manualReviewNeeded > 0\n ? ` (${manualReviewNeeded} location(s) need manual review)`\n : \"\";\n logger.info(` ${migrationName}: updated ${touched} file(s)${reviewSuffix}`);\n};\n\n/**\n * Inserts an attribute string immediately after the tag name (so the new\n * attribute appears first). Returns the resulting source content.\n *\n * The added attribute is rendered verbatim, so callers are responsible for\n * including the leading space (e.g. ` title=\"Close\"`).\n */\nexport const insertAttributeIntoOpeningTag = (\n content: string,\n openingElement: ts.JsxOpeningElement | ts.JsxSelfClosingElement,\n attributeText: string\n): string => {\n const tagName = openingElement.tagName;\n const insertPos = tagName.getEnd();\n return `${content.slice(0, insertPos)} ${attributeText}${content.slice(insertPos)}`;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionbutton-add-title.js","sourceRoot":"","sources":["../../../../../../libs/react/form-components/migrations/v2-0-0/actionbutton-add-title.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA+C;AAC/C,+CAAiC;AACjC,kDAQ4B;AAE5B,MAAM,YAAY,GAAG,kCAAkC,CAAC;AACxD,MAAM,cAAc,GAAG,cAAc,CAAC;AAEtC,MAAM,oBAAoB,GAA2B;IACnD,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,YAAY;IACnB,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,WAAW;CACzB,CAAC;AAEF,MAAM,aAAa,GAAG,QAAQ,CAAC;AAE/B,MAAM,mBAAmB,GAAG,CAAC,QAAgC,EAAU,EAAE;IACvE,IAAI,QAAQ,KAAK,IAAI;QAAE,OAAO,aAAa,CAAC;IAC5C,MAAM,WAAW,GAAG,QA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ript\";\nimport {\n findJsxAttribute,\n findJsxElements,\n getImportedAliases,\n hasSpreadAttribute,\n logSummary,\n parseTsx,\n visitTsxFiles,\n} from \"../utils/jsx-utils\";\n\nconst PACKAGE_NAME = \"@trackunit/react-form-components\";\nconst COMPONENT_NAME = \"ActionButton\";\n\nconst ACTION_TYPE_TO_TITLE: Record<string, string> = {\n COPY: \"Copy value\",\n EDIT: \"Edit value\",\n EMAIL: \"Send email\",\n PHONE_NUMBER: \"Call number\",\n WEB_ADDRESS: \"Open link\",\n};\n\nconst DEFAULT_TITLE = \"Action\";\n\nconst resolveTitleForType = (typeAttr: ts.JsxAttribute | null): string => {\n if (typeAttr === null) return DEFAULT_TITLE;\n const initializer = typeAttr.initializer;\n if (initializer === undefined) return DEFAULT_TITLE;\n if (ts.isStringLiteral(initializer)) {\n return ACTION_TYPE_TO_TITLE[initializer.text] ?? DEFAULT_TITLE;\n }\n return DEFAULT_TITLE;\n};\n\nconst transformActionButtonUsage = (filePath: string, content: string): string | null => {\n const sourceFile = parseTsx(content, filePath);\n\n const aliases = getImportedAliases(sourceFile, PACKAGE_NAME);\n if (aliases === null) return null;\n\n const localAlias = Object.entries(aliases).find(([, name]) => name === COMPONENT_NAME)?.[0];\n if (localAlias === undefined) return null;\n\n const matches = findJsxElements(sourceFile, [localAlias]);\n if (matches.length === 0) return null;\n\n type Edit = { offset: number; text: string };\n const edits: Array<Edit> = [];\n\n for (const { openingElement } of matches) {\n if (hasSpreadAttribute(openingElement)) continue;\n if (findJsxAttribute(openingElement, \"title\") !== null) continue;\n\n const typeAttr = findJsxAttribute(openingElement, \"type\");\n const title = resolveTitleForType(typeAttr);\n edits.push({\n offset: openingElement.tagName.getEnd(),\n text: ` title=\"${title}\"`,\n });\n }\n\n if (edits.length === 0) return null;\n\n edits.sort((a, b) => (a.offset === b.offset ? 0 : b.offset - a.offset));\n\n let updated = content;\n for (const { offset, text } of edits) {\n updated = updated.slice(0, offset) + text + updated.slice(offset);\n }\n return updated;\n};\n\n/**\n * Adds the now-required `title` prop to `<ActionButton>` usages that don't\n * already provide one. The default value is derived from the `type` prop when\n * possible (e.g. `COPY` → \"Copy value\"); consumers should replace the\n * placeholders with their own localized strings.\n */\nexport const actionButtonAddTitle = (tree: Tree): void => {\n const touched = visitTsxFiles(tree, \"ActionButton\", transformActionButtonUsage);\n logSummary(\"actionbutton-add-title\", touched);\n if (touched > 0) {\n logger.info(` Replace placeholder ActionButton titles with your own localized strings.`);\n }\n};\n\nexport default actionButtonAddTitle;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-form-components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.75-alpha-55a192f4ee4.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"migrations": "./migrations.json",
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"react-calendar": "^6.0.0",
|
|
12
12
|
"react-select": "^5.10.2",
|
|
13
|
-
"@trackunit/date-and-time-utils": "1.14.
|
|
13
|
+
"@trackunit/date-and-time-utils": "1.14.46-alpha-55a192f4ee4.0",
|
|
14
14
|
"usehooks-ts": "^3.1.0",
|
|
15
15
|
"libphonenumber-js": "^1.13.11",
|
|
16
16
|
"zod": "^3.25.76",
|
|
17
17
|
"tailwind-merge": "^2.0.0",
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "2.0.
|
|
19
|
-
"@trackunit/react-components": "2.13.
|
|
20
|
-
"@trackunit/ui-icons": "1.14.
|
|
21
|
-
"@trackunit/shared-utils": "1.16.
|
|
22
|
-
"@trackunit/ui-design-tokens": "1.15.
|
|
23
|
-
"@trackunit/i18n-library-translation": "2.4.
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "2.0.15-alpha-55a192f4ee4.0",
|
|
19
|
+
"@trackunit/react-components": "2.13.27-alpha-55a192f4ee4.0",
|
|
20
|
+
"@trackunit/ui-icons": "1.14.44-alpha-55a192f4ee4.0",
|
|
21
|
+
"@trackunit/shared-utils": "1.16.50-alpha-55a192f4ee4.0",
|
|
22
|
+
"@trackunit/ui-design-tokens": "1.15.35-alpha-55a192f4ee4.0",
|
|
23
|
+
"@trackunit/i18n-library-translation": "2.4.65-alpha-55a192f4ee4.0",
|
|
24
24
|
"string-ts": "^2.0.0",
|
|
25
25
|
"es-toolkit": "^1.39.10"
|
|
26
26
|
},
|
|
@@ -12,5 +12,5 @@ type AddonRendererProps = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Renders the addon element if provided
|
|
14
14
|
*/
|
|
15
|
-
export declare const AddonRenderer: ({ addon, "data-testid": dataTestId, className, fieldSize, position, }: AddonRendererProps) => import("react").JSX.Element | null;
|
|
15
|
+
export declare const AddonRenderer: ({ addon, "data-testid": dataTestId, className, fieldSize, position, }: AddonRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
16
16
|
export {};
|
|
@@ -11,5 +11,5 @@ type GenericActionsRendererProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare const GenericActionsRenderer: ({ genericAction, disabled, fieldSize, innerRef, tooltipLabel, }: GenericActionsRendererProps) => import("react").JSX.Element | null;
|
|
14
|
+
export declare const GenericActionsRenderer: ({ genericAction, disabled, fieldSize, innerRef, tooltipLabel, }: GenericActionsRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
15
15
|
export {};
|
|
@@ -2,4 +2,4 @@ import { LockedForReasons } from "../InputLockReasonTooltip";
|
|
|
2
2
|
export declare const LockReasonRenderer: ({ lockReason, "data-testid": dataTestId, }: {
|
|
3
3
|
lockReason?: LockedForReasons | boolean;
|
|
4
4
|
"data-testid"?: string;
|
|
5
|
-
}) => import("react").JSX.Element | null;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -9,5 +9,5 @@ type PrefixRendererProps = Refable<HTMLDivElement> & {
|
|
|
9
9
|
/**
|
|
10
10
|
* Renders the prefix element or falls back to a default prefix for certain types.
|
|
11
11
|
*/
|
|
12
|
-
export declare const PrefixRenderer: ({ prefix, type, "data-testid": dataTestId, disabled, ref }: PrefixRendererProps) => import("react").JSX.Element | null;
|
|
12
|
+
export declare const PrefixRenderer: ({ prefix, type, "data-testid": dataTestId, disabled, ref }: PrefixRendererProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -6,5 +6,5 @@ type CheckIconProps = CommonProps;
|
|
|
6
6
|
* @param {CheckIconProps} props - The props for the CheckIcon component
|
|
7
7
|
* @returns {ReactElement} CheckIcon component
|
|
8
8
|
*/
|
|
9
|
-
export declare const CheckIcon: ({ className, "data-testid": dataTestId }: CheckIconProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const CheckIcon: ({ className, "data-testid": dataTestId }: CheckIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -40,7 +40,7 @@ export interface CheckboxFieldProps extends CheckboxProps, FormGroupExposedProps
|
|
|
40
40
|
* @param {CheckboxFieldProps} props - The props for the CheckboxField component
|
|
41
41
|
*/
|
|
42
42
|
export declare const CheckboxField: {
|
|
43
|
-
({ label, id, tip, helpText, helpAddon, isInvalid, className, checked, "data-testid": dataTestId, checkboxLabel, onChange, ref, disabled, readOnly, required, ...rest }: CheckboxFieldProps): import("react").JSX.Element;
|
|
43
|
+
({ label, id, tip, helpText, helpAddon, isInvalid, className, checked, "data-testid": dataTestId, checkboxLabel, onChange, ref, disabled, readOnly, required, ...rest }: CheckboxFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
44
44
|
displayName: string;
|
|
45
45
|
};
|
|
46
46
|
export {};
|
|
@@ -54,7 +54,7 @@ export interface ColorFieldProps extends FormGroupExposedProps, ColorFieldBaseIn
|
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
56
|
export declare const ColorField: {
|
|
57
|
-
({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value: propValue, onChange, isInvalid, onBlur, fieldSize, style, disabled, readOnly, isWarning, inputClassName, ref, required, ...inputProps }: ColorFieldProps): import("react").JSX.Element;
|
|
57
|
+
({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value: propValue, onChange, isInvalid, onBlur, fieldSize, style, disabled, readOnly, isWarning, inputClassName, ref, required, ...inputProps }: ColorFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
58
58
|
displayName: string;
|
|
59
59
|
};
|
|
60
60
|
export {};
|
|
@@ -57,7 +57,7 @@ export interface EmailFieldProps extends FormGroupExposedProps, BaseInputProps {
|
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
59
|
export declare const EmailField: {
|
|
60
|
-
({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value, onChange, onBlur, isInvalid, ref, required, ...rest }: EmailFieldProps): import("react").JSX.Element;
|
|
60
|
+
({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, value, onChange, onBlur, isInvalid, ref, required, ...rest }: EmailFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|
|
63
63
|
export {};
|
|
@@ -5,4 +5,4 @@ export type NumberBaseInputProps = Omit<BaseInputProps, "type">;
|
|
|
5
5
|
*
|
|
6
6
|
* NOTE: If shown with a label, please use the `NumberField` component instead.
|
|
7
7
|
*/
|
|
8
|
-
export declare const NumberBaseInput: ({ ref, ...rest }: NumberBaseInputProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const NumberBaseInput: ({ ref, ...rest }: NumberBaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -59,7 +59,7 @@ export interface NumberFieldProps extends NumberBaseInputProps, FormGroupExposed
|
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
61
|
export declare const NumberField: {
|
|
62
|
-
({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, isWarning, maxLength, className, value, "data-testid": dataTestId, defaultValue, onBlur, onChange, ref, required, ...rest }: NumberFieldProps): import("react").JSX.Element;
|
|
62
|
+
({ label, id, tip, helpText, errorMessage, helpAddon, isInvalid, isWarning, maxLength, className, value, "data-testid": dataTestId, defaultValue, onBlur, onChange, ref, required, ...rest }: NumberFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
displayName: string;
|
|
64
64
|
};
|
|
65
65
|
export {};
|
|
@@ -42,7 +42,7 @@ interface CustomImage {
|
|
|
42
42
|
* A card version of a radio button that includes an icon, headings and a description.
|
|
43
43
|
*/
|
|
44
44
|
export declare const OptionCard: {
|
|
45
|
-
({ icon, heading, subheading, description, disabled, id, value, className, contentClassName, "data-testid": dataTestId, customImage, layout, ref, tagProps, ...rest }: OptionCardProps): import("react").JSX.Element;
|
|
45
|
+
({ icon, heading, subheading, description, disabled, id, value, className, contentClassName, "data-testid": dataTestId, customImage, layout, ref, tagProps, ...rest }: OptionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
displayName: string;
|
|
47
47
|
};
|
|
48
48
|
export {};
|
|
@@ -8,5 +8,5 @@ export interface PasswordBaseInputProps extends BaseInputExposedProps {
|
|
|
8
8
|
*
|
|
9
9
|
* NOTE: If shown with a label, please use the `PasswordField` component instead.
|
|
10
10
|
*/
|
|
11
|
-
export declare const PasswordBaseInput: ({ ref, fieldSize, ...rest }: PasswordBaseInputProps) => import("react").JSX.Element;
|
|
11
|
+
export declare const PasswordBaseInput: ({ ref, fieldSize, ...rest }: PasswordBaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -64,7 +64,7 @@ export interface PasswordFieldProps extends Omit<PasswordBaseInputProps, "obfusc
|
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
66
|
export declare const PasswordField: {
|
|
67
|
-
({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, required, ...rest }: PasswordFieldProps): import("react").JSX.Element;
|
|
67
|
+
({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, required, ...rest }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
68
68
|
displayName: string;
|
|
69
69
|
};
|
|
70
70
|
export {};
|
|
@@ -56,7 +56,7 @@ export interface PhoneFieldProps extends FormGroupExposedProps, PhoneBaseInputPr
|
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
58
|
export declare const PhoneField: {
|
|
59
|
-
({ label, id, tip, helpText, isInvalid, errorMessage, value, helpAddon, className, defaultValue, "data-testid": dataTestId, name, onBlur, ref, required, ...rest }: PhoneFieldProps): import("react").JSX.Element;
|
|
59
|
+
({ label, id, tip, helpText, isInvalid, errorMessage, value, helpAddon, className, defaultValue, "data-testid": dataTestId, name, onBlur, ref, required, ...rest }: PhoneFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
60
60
|
displayName: string;
|
|
61
61
|
};
|
|
62
62
|
export {};
|
|
@@ -44,6 +44,6 @@ export interface PhoneFieldWithControllerProps extends PhoneFieldProps {
|
|
|
44
44
|
* @param {PhoneFieldWithControllerProps} props - The props for the PhoneFieldWithController component
|
|
45
45
|
*/
|
|
46
46
|
export declare const PhoneFieldWithController: {
|
|
47
|
-
({ control, controllerProps, name, value, ref, ...rest }: PhoneFieldWithControllerProps): import("react").JSX.Element;
|
|
47
|
+
({ control, controllerProps, name, value, ref, ...rest }: PhoneFieldWithControllerProps): import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
displayName: string;
|
|
49
49
|
};
|
|
@@ -72,4 +72,4 @@ export interface ScheduleProps extends CommonProps, Refable<HTMLDivElement>, Sty
|
|
|
72
72
|
* @param {ScheduleProps} props - The props for the Schedule component
|
|
73
73
|
* @returns {ReactElement} Schedule component
|
|
74
74
|
*/
|
|
75
|
-
export declare const Schedule: ({ className, "data-testid": dataTestId, schedule, onChange, invalidKeys, style, ref, }: ScheduleProps) => import("react").JSX.Element;
|
|
75
|
+
export declare const Schedule: ({ className, "data-testid": dataTestId, schedule, onChange, invalidKeys, style, ref, }: ScheduleProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,5 +26,5 @@ export interface TextAreaBaseInputProps extends FilteredInputProps, CommonProps,
|
|
|
26
26
|
* The TextArea is a base component, and should not be used very often.
|
|
27
27
|
* For most cases the TextAreaField is the correct component.
|
|
28
28
|
*/
|
|
29
|
-
export declare const TextAreaBaseInput: ({ id, name, value, rows, disabled, placeholder, readOnly, tabIndex, onChange, onFocus, onBlur, maxLength, resize, defaultValue, required, "data-testid": dataTestId, isInvalid, className, ref, ...rest }: TextAreaBaseInputProps) => import("react").JSX.Element;
|
|
29
|
+
export declare const TextAreaBaseInput: ({ id, name, value, rows, disabled, placeholder, readOnly, tabIndex, onChange, onFocus, onBlur, maxLength, resize, defaultValue, required, "data-testid": dataTestId, isInvalid, className, ref, ...rest }: TextAreaBaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -66,7 +66,7 @@ export interface TextAreaFieldProps extends TextAreaBaseInputProps, FormGroupExp
|
|
|
66
66
|
* @returns {ReactElement} TextAreaField component
|
|
67
67
|
*/
|
|
68
68
|
export declare const TextAreaField: {
|
|
69
|
-
({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, disabled, readOnly, required, ...rest }: TextAreaFieldProps): import("react").JSX.Element;
|
|
69
|
+
({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, ref, disabled, readOnly, required, ...rest }: TextAreaFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
70
70
|
displayName: string;
|
|
71
71
|
};
|
|
72
72
|
export {};
|
|
@@ -5,4 +5,4 @@ export type TextBaseInputProps = Omit<BaseInputProps, "type">;
|
|
|
5
5
|
*
|
|
6
6
|
* NOTE: If shown with a label, please use the `TextField` component instead.
|
|
7
7
|
*/
|
|
8
|
-
export declare const TextBaseInput: ({ ref, ...rest }: TextBaseInputProps) => import("react").JSX.Element;
|
|
8
|
+
export declare const TextBaseInput: ({ ref, ...rest }: TextBaseInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -71,7 +71,7 @@ export interface TextFieldProps extends TextBaseInputProps, FormGroupExposedProp
|
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
73
|
export declare const TextField: {
|
|
74
|
-
({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, isWarning, ref, required, ...rest }: TextFieldProps): import("react").JSX.Element;
|
|
74
|
+
({ id, label, tip, helpText, helpAddon, errorMessage, isInvalid, maxLength, onChange, className, value, "data-testid": dataTestId, isWarning, ref, required, ...rest }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
75
75
|
displayName: string;
|
|
76
76
|
};
|
|
77
77
|
export {};
|
|
@@ -15,4 +15,4 @@ export interface TextLengthIndicatorProps {
|
|
|
15
15
|
* @param {TextLengthIndicatorProps} props - The props for the TextLengthIndicator component
|
|
16
16
|
* @returns {ReactElement} TextLengthIndicator component
|
|
17
17
|
*/
|
|
18
|
-
export declare const TextLengthIndicator: ({ length, maxLength }: TextLengthIndicatorProps) => import("react").JSX.Element;
|
|
18
|
+
export declare const TextLengthIndicator: ({ length, maxLength }: TextLengthIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -67,5 +67,5 @@ export interface TimeRangeProps extends CommonProps, Refable<HTMLDivElement>, St
|
|
|
67
67
|
* @param {TimeRangeProps} props - The props for the TimeRange component
|
|
68
68
|
* @returns {ReactElement} TimeRange component
|
|
69
69
|
*/
|
|
70
|
-
export declare const TimeRange: ({ id, className, "data-testid": dataTestId, children, range, onChange, disabled, isInvalid, style, ref, }: TimeRangeProps) => import("react").JSX.Element;
|
|
70
|
+
export declare const TimeRange: ({ id, className, "data-testid": dataTestId, children, range, onChange, disabled, isInvalid, style, ref, }: TimeRangeProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
71
|
export declare const DEFAULT_TIME = "12:00";
|
|
@@ -47,5 +47,5 @@ export interface TimeRangeFieldProps extends TimeRangeProps, FormGroupExposedPro
|
|
|
47
47
|
* @param {TimeRangeFieldProps} props - The props for the TimeRangeField component
|
|
48
48
|
* @returns {ReactElement} TimeRangeField component
|
|
49
49
|
*/
|
|
50
|
-
export declare const TimeRangeField: ({ className, "data-testid": dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, style, ref, ...rest }: TimeRangeFieldProps) => import("react").JSX.Element;
|
|
50
|
+
export declare const TimeRangeField: ({ className, "data-testid": dataTestId, onChange, isInvalid, errorMessage, label, tip, children, helpText, id, style, ref, ...rest }: TimeRangeFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
export {};
|
|
@@ -57,7 +57,7 @@ export interface UploadFieldProps extends UploadInputProps, FormGroupExposedProp
|
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
59
|
export declare const UploadField: {
|
|
60
|
-
({ label, id, tip, helpText, errorMessage, isInvalid, className, value, "data-testid": dataTestId, ref, disabled, required, ...rest }: UploadFieldProps): import("react").JSX.Element;
|
|
60
|
+
({ label, id, tip, helpText, errorMessage, isInvalid, className, value, "data-testid": dataTestId, ref, disabled, required, ...rest }: UploadFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|
|
63
63
|
export {};
|
|
@@ -50,7 +50,7 @@ export interface UploadInputProps extends BaseInputExposedProps, CommonProps {
|
|
|
50
50
|
* @param {UploadInputProps} props - The props for the UploadInput component
|
|
51
51
|
*/
|
|
52
52
|
export declare const UploadInput: {
|
|
53
|
-
({ disabled, acceptedTypes, nonInteractive, uploadLabel, multipleFiles, ref, ...rest }: UploadInputProps): import("react").JSX.Element;
|
|
53
|
+
({ disabled, acceptedTypes, nonInteractive, uploadLabel, multipleFiles, ref, ...rest }: UploadInputProps): import("react/jsx-runtime").JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
export {};
|
|
@@ -57,7 +57,7 @@ export interface UrlFieldProps extends FormGroupExposedProps, UrlBaseInputProps
|
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
59
|
export declare const UrlField: {
|
|
60
|
-
({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, isInvalid, value, onBlur, ref, required, ...rest }: UrlFieldProps): import("react").JSX.Element;
|
|
60
|
+
({ label, id, tip, helpText, errorMessage, helpAddon, className, defaultValue, "data-testid": dataTestId, isInvalid, value, onBlur, ref, required, ...rest }: UrlFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
61
61
|
displayName: string;
|
|
62
62
|
};
|
|
63
63
|
export {};
|
package/src/translation.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type TranslationFunction = TransForLibs<TranslationKeys>;
|
|
|
26
26
|
/**
|
|
27
27
|
* Trans for this specific library.
|
|
28
28
|
*/
|
|
29
|
-
export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react").JSX.Element;
|
|
29
|
+
export declare const Trans: (props: NamespaceTransProps<TranslationKeys>) => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* Registers the translations for this library
|
|
32
32
|
*/
|