@aws-amplify/ui-react 3.0.2 → 3.1.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/{IconWarning-45c2c272.js → IconWarning-227761f5.js} +1 -1
- package/dist/esm/PrimitiveCatalog.js +1 -0
- package/dist/esm/components/Authenticator/Authenticator.js +1 -1
- package/dist/esm/components/Authenticator/Router/Router.js +1 -1
- package/dist/esm/components/Authenticator/hooks/useAuthenticator/index.js +1 -1
- package/dist/esm/internal.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/primitives.json +9 -0
- package/dist/styles.css +73 -62
- package/dist/types/PrimitiveCatalog.d.ts +2 -0
- package/dist/types/components/Authenticator/Authenticator.d.ts +11 -4
- package/dist/types/components/Authenticator/Router/Router.d.ts +1 -4
- package/dist/types/components/Authenticator/Router/types.d.ts +0 -7
- package/dist/types/components/Authenticator/hooks/useAuthenticator/index.d.ts +1 -1
- package/dist/types/components/Authenticator/withAuthenticator.d.ts +1 -1
- package/dist/types/components/Geo/LocationSearch/index.d.ts +1 -1
- package/dist/types/components/Geo/MapView/index.d.ts +1 -1
- package/dist/types/internal.d.ts +1 -0
- package/dist/types/primitives/Alert/Alert.d.ts +1 -1
- package/dist/types/primitives/Badge/Badge.d.ts +1 -1
- package/dist/types/primitives/Button/Button.d.ts +1 -1
- package/dist/types/primitives/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/primitives/Card/Card.d.ts +1 -1
- package/dist/types/primitives/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/primitives/CheckboxField/CheckboxField.d.ts +1 -1
- package/dist/types/primitives/Divider/Divider.d.ts +1 -1
- package/dist/types/primitives/Expander/Expander.d.ts +1 -1
- package/dist/types/primitives/Expander/ExpanderItem.d.ts +1 -1
- package/dist/types/primitives/Field/FieldClearButton.d.ts +1 -1
- package/dist/types/primitives/FieldGroup/FieldGroup.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIcon.d.ts +1 -1
- package/dist/types/primitives/FieldGroupIcon/FieldGroupIconButton.d.ts +1 -1
- package/dist/types/primitives/Flex/Flex.d.ts +1 -1
- package/dist/types/primitives/Grid/Grid.d.ts +1 -1
- package/dist/types/primitives/Heading/Heading.d.ts +1 -1
- package/dist/types/primitives/Icon/Icon.d.ts +1 -1
- package/dist/types/primitives/Image/Image.d.ts +1 -1
- package/dist/types/primitives/Input/Input.d.ts +1 -1
- package/dist/types/primitives/Label/Label.d.ts +1 -1
- package/dist/types/primitives/Link/Link.d.ts +1 -1
- package/dist/types/primitives/Loader/Loader.d.ts +1 -1
- package/dist/types/primitives/Menu/Menu.d.ts +1 -1
- package/dist/types/primitives/Menu/MenuButton.d.ts +1 -1
- package/dist/types/primitives/Pagination/Pagination.d.ts +1 -1
- package/dist/types/primitives/PasswordField/PasswordField.d.ts +1 -1
- package/dist/types/primitives/PasswordField/ShowPasswordButton.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/CountryCodeSelect.d.ts +1 -1
- package/dist/types/primitives/PhoneNumberField/PhoneNumberField.d.ts +1 -1
- package/dist/types/primitives/Placeholder/Placeholder.d.ts +1 -1
- package/dist/types/primitives/Radio/Radio.d.ts +1 -1
- package/dist/types/primitives/RadioGroupField/RadioGroupField.d.ts +1 -1
- package/dist/types/primitives/Rating/Rating.d.ts +1 -1
- package/dist/types/primitives/ScrollView/ScrollView.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchField.d.ts +1 -1
- package/dist/types/primitives/SearchField/SearchFieldButton.d.ts +1 -1
- package/dist/types/primitives/Select/Select.d.ts +1 -1
- package/dist/types/primitives/SelectField/SelectField.d.ts +1 -1
- package/dist/types/primitives/SliderField/SliderField.d.ts +1 -1
- package/dist/types/primitives/StepperField/StepperField.d.ts +1 -1
- package/dist/types/primitives/SwitchField/SwitchField.d.ts +1 -1
- package/dist/types/primitives/Table/Table.d.ts +1 -1
- package/dist/types/primitives/Table/TableBody.d.ts +1 -1
- package/dist/types/primitives/Table/TableCell.d.ts +1 -1
- package/dist/types/primitives/Table/TableFoot.d.ts +1 -1
- package/dist/types/primitives/Table/TableHead.d.ts +1 -1
- package/dist/types/primitives/Table/TableRow.d.ts +1 -1
- package/dist/types/primitives/Tabs/Tabs.d.ts +2 -2
- package/dist/types/primitives/Text/Text.d.ts +1 -1
- package/dist/types/primitives/TextArea/TextArea.d.ts +1 -1
- package/dist/types/primitives/TextAreaField/TextAreaField.d.ts +1 -1
- package/dist/types/primitives/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/types/primitives/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
- package/dist/types/primitives/View/View.d.ts +3 -3
- package/dist/types/primitives/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/types/primitives/shared/utils.d.ts +2 -2
- package/dist/types/primitives/types/input.d.ts +10 -2
- package/dist/types/types/catalog.d.ts +3 -7
- package/package.json +10 -13
- package/dist/esm/primitives-catalog.js +0 -27115
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Sizes } from './base';
|
|
3
3
|
import { FieldVariations } from './field';
|
|
4
4
|
import { ViewProps } from './view';
|
|
5
|
+
export declare type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
5
6
|
export declare type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
6
7
|
export declare type InputSizes = Sizes;
|
|
7
8
|
export interface InputProps extends ViewProps {
|
|
@@ -34,10 +35,17 @@ export interface InputProps extends ViewProps {
|
|
|
34
35
|
hasError?: boolean;
|
|
35
36
|
/**
|
|
36
37
|
* @description
|
|
37
|
-
*
|
|
38
|
+
* Defines what action label (or icon) to present for the enter key on virtual keyboards.
|
|
39
|
+
* @see
|
|
40
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint)
|
|
41
|
+
*/
|
|
42
|
+
enterKeyHint?: EnterKeyHint;
|
|
43
|
+
/**
|
|
44
|
+
* @description
|
|
45
|
+
* Provides hint for virtual keyboard shown
|
|
38
46
|
* @see
|
|
39
47
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode)
|
|
40
|
-
* @default
|
|
48
|
+
* @default "text"
|
|
41
49
|
*/
|
|
42
50
|
inputMode?: InputMode;
|
|
43
51
|
/**
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
Boolean = "boolean",
|
|
3
|
-
String = "string",
|
|
4
|
-
Number = "number",
|
|
5
|
-
Any = "any"
|
|
6
|
-
}
|
|
1
|
+
export declare type PrimitiveCatalogComponentPropertyType = 'boolean' | 'string' | 'number';
|
|
7
2
|
export declare type PrimitiveCatalogComponentProperty = {
|
|
8
3
|
type: PrimitiveCatalogComponentPropertyType;
|
|
4
|
+
priority?: boolean;
|
|
9
5
|
};
|
|
10
6
|
export declare type PrimitiveCatalogComponentProperties = Record<string, PrimitiveCatalogComponentProperty>;
|
|
11
7
|
export declare type PrimitiveCatalogComponent = {
|
|
12
8
|
properties: PrimitiveCatalogComponentProperties;
|
|
13
9
|
};
|
|
14
|
-
export declare type
|
|
10
|
+
export declare type PrimitiveCatalogType = Record<string, PrimitiveCatalogComponent>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
"import": "./dist/esm/internal.js",
|
|
13
13
|
"require": "./dist/internal.js"
|
|
14
14
|
},
|
|
15
|
-
"./internal/primitives-catalog": {
|
|
16
|
-
"import": "./dist/esm/primitives-catalog.js",
|
|
17
|
-
"default": null
|
|
18
|
-
},
|
|
19
15
|
"./legacy": {
|
|
20
16
|
"import": "./dist/esm/legacy.js",
|
|
21
17
|
"require": "./dist/legacy.js"
|
|
@@ -42,9 +38,9 @@
|
|
|
42
38
|
],
|
|
43
39
|
"scripts": {
|
|
44
40
|
"prebuild": "rimraf dist",
|
|
45
|
-
"build": "yarn run build:
|
|
41
|
+
"build": "yarn run build:catalog && yarn run build:ts",
|
|
46
42
|
"build:ts": "rollup --config",
|
|
47
|
-
"build:catalog": "ts
|
|
43
|
+
"build:catalog": "yarn ts scripts/generatePrimitiveCatalog.ts",
|
|
48
44
|
"dev": "tsup --watch",
|
|
49
45
|
"dev:build": "tsup",
|
|
50
46
|
"update:icons": "node scripts/updateIcons.js",
|
|
@@ -56,10 +52,11 @@
|
|
|
56
52
|
"test:watch": "yarn test:unit:watch",
|
|
57
53
|
"test:unit": "jest",
|
|
58
54
|
"test:unit:watch": "jest --watch",
|
|
55
|
+
"ts": "node -r esbuild-register",
|
|
59
56
|
"size": "yarn run size-limit"
|
|
60
57
|
},
|
|
61
58
|
"dependencies": {
|
|
62
|
-
"@aws-amplify/ui": "3.12.
|
|
59
|
+
"@aws-amplify/ui": "3.12.2",
|
|
63
60
|
"@aws-amplify/ui-react-v1": "npm:@aws-amplify/ui-react@1.2.9",
|
|
64
61
|
"@radix-ui/react-accordion": "0.1.6",
|
|
65
62
|
"@radix-ui/react-dropdown-menu": "0.1.6",
|
|
@@ -70,8 +67,8 @@
|
|
|
70
67
|
"deepmerge": "4.2.2",
|
|
71
68
|
"lodash": "4.17.21",
|
|
72
69
|
"mapbox-gl": "1.13.1",
|
|
73
|
-
"maplibre-gl": "1.
|
|
74
|
-
"maplibre-gl-js-amplify": "
|
|
70
|
+
"maplibre-gl": "2.1.9",
|
|
71
|
+
"maplibre-gl-js-amplify": "2.0.2",
|
|
75
72
|
"qrcode": "1.5.0",
|
|
76
73
|
"react-generate-context": "1.0.1",
|
|
77
74
|
"react-map-gl": "7.0.15"
|
|
@@ -101,6 +98,7 @@
|
|
|
101
98
|
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
|
102
99
|
"@typescript-eslint/parser": "^5.20.0",
|
|
103
100
|
"degit": "^2.8.4",
|
|
101
|
+
"esbuild-register": "^3.3.3",
|
|
104
102
|
"eslint": "^8.13.0",
|
|
105
103
|
"eslint-config-prettier": "^8.5.0",
|
|
106
104
|
"eslint-plugin-import": "^2.26.0",
|
|
@@ -120,8 +118,7 @@
|
|
|
120
118
|
"rollup-plugin-terser": "^7.0.2",
|
|
121
119
|
"size-limit": "^7.0.8",
|
|
122
120
|
"ts-jest": "^27.0.3",
|
|
123
|
-
"ts-morph": "^12.0.0"
|
|
124
|
-
"ts-node": "^10.2.1"
|
|
121
|
+
"ts-morph": "^12.0.0"
|
|
125
122
|
},
|
|
126
123
|
"sideEffects": [
|
|
127
124
|
"dist/**/*.css"
|
|
@@ -137,7 +134,7 @@
|
|
|
137
134
|
"name": "Geo",
|
|
138
135
|
"path": "dist/esm/index.js",
|
|
139
136
|
"import": "{ MapView, LocationSearch }",
|
|
140
|
-
"limit": "
|
|
137
|
+
"limit": "330 kB"
|
|
141
138
|
}
|
|
142
139
|
]
|
|
143
140
|
}
|