@arc-ui/components 11.23.0 → 11.24.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/dist/Calendar/Calendar.cjs.js +1 -1
- package/dist/Calendar/Calendar.esm.js +1 -1
- package/dist/DatePicker/DatePicker.cjs.js +2 -2
- package/dist/DatePicker/DatePicker.esm.js +2 -2
- package/dist/TextArea/TextArea.cjs.js +3 -3
- package/dist/TextArea/TextArea.esm.js +3 -3
- package/dist/TextInput/TextInput.cjs.js +1 -1
- package/dist/TextInput/TextInput.esm.js +1 -1
- package/dist/_shared/cjs/{Calendar-6ea75d05.js → Calendar-b022545c.js} +2 -2
- package/dist/_shared/cjs/{TextInput-8912dd41.js → TextInput-8d139489.js} +2 -2
- package/dist/_shared/esm/{Calendar-fafaca6b.js → Calendar-ea232839.js} +2 -2
- package/dist/_shared/esm/{TextInput-5ffa05da.js → TextInput-c0388103.js} +2 -2
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components/TextArea/TextArea.d.ts +5 -0
- package/dist/types/components/TextInput/TextInput.d.ts +5 -0
- package/dist/types/types/auto-complete-types.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
|
+
import { AutoCompleteTypes } from "../../types/auto-complete-types";
|
|
3
4
|
type EventType = React.ChangeEvent<HTMLTextAreaElement>;
|
|
4
5
|
/** Use `TextArea` to allow custom user text entry via keyboard, for long-form and multi-line descriptions */
|
|
5
6
|
export declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -63,5 +64,9 @@ export interface TextAreaProps extends Omit<FormControlProps, "children" | "elem
|
|
|
63
64
|
* Sets the width of the TextArea.
|
|
64
65
|
*/
|
|
65
66
|
width?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Sets autoComplete value for TextArea.
|
|
69
|
+
*/
|
|
70
|
+
autoComplete?: AutoCompleteTypes;
|
|
66
71
|
}
|
|
67
72
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FormControlProps } from "../FormControl/FormControl";
|
|
3
3
|
import { ArcIcon } from "../../types/arc-icon";
|
|
4
|
+
import { AutoCompleteTypes } from "../../types/auto-complete-types";
|
|
4
5
|
type EventType = React.ChangeEvent<HTMLInputElement>;
|
|
5
6
|
/**
|
|
6
7
|
* Use `TextInput` to allow users to enter short form text.
|
|
@@ -106,6 +107,10 @@ export interface TextInputComponentProps extends Omit<FormControlProps, "childre
|
|
|
106
107
|
* Sets the width of the TextInput.
|
|
107
108
|
*/
|
|
108
109
|
width?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Sets autoComplete value for TextInput.
|
|
112
|
+
*/
|
|
113
|
+
autoComplete?: AutoCompleteTypes;
|
|
109
114
|
}
|
|
110
115
|
export type TextInputProps = Omit<TextInputComponentProps, "placeholder">;
|
|
111
116
|
export type TextInputWithPlaceholderProps = TextInputComponentProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AutoCompleteTypes = "on" | "off" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "country" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "email" | "impp" | "url" | "photo" | "organization-unit";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arc-ui/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.24.0",
|
|
4
4
|
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
5
|
"author": "BT Enterprise Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"storybook:build": "storybook build --quiet",
|
|
13
13
|
"storybook:quiet": "pnpm run storybook --quiet",
|
|
14
14
|
"coverage:summary": "pnpm dlx nyc report --reporter=text-summary",
|
|
15
|
-
"coverage:files": "pnpm dlx nyc report --reporter=text",
|
|
16
|
-
"coverage:check": "pnpm dlx nyc report --check-coverage --lines 85 --functions 85 --branches 85 --statements 85",
|
|
15
|
+
"coverage:files": "pnpm dlx nyc@15.0.0 report --reporter=text",
|
|
16
|
+
"coverage:check": "pnpm dlx nyc@15.0.0 report --check-coverage --lines 85 --functions 85 --branches 85 --statements 85",
|
|
17
17
|
"test:components": "cypress open --component",
|
|
18
18
|
"test:components:ci": "cypress run --component --browser chrome",
|
|
19
19
|
"test:components:pipeline": "pnpm run test:components:ci && pnpm run coverage:check",
|