@aws-amplify/ui-react 3.0.3 → 3.2.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/esm/primitives/Link/Link.js +1 -1
- package/dist/esm/primitives/SliderField/SliderField.js +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.js +1 -1
- package/dist/styles.css +73 -62
- package/dist/types/PrimitiveCatalog.d.ts +2 -0
- package/dist/types/components/Authenticator/Authenticator.d.ts +10 -3
- 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/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/link.d.ts +4 -0
- package/dist/types/primitives/types/sliderField.d.ts +6 -0
- package/dist/types/types/catalog.d.ts +3 -7
- package/package.json +10 -13
- package/dist/esm/primitives-catalog.js +0 -27124
|
@@ -13,6 +13,10 @@ export interface LinkOptions {
|
|
|
13
13
|
*/
|
|
14
14
|
isExternal?: boolean;
|
|
15
15
|
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
* The Link component's to prop will soon be deprecated.
|
|
18
|
+
* Please see the Amplify UI documentation for using the Link component with routing libraries:
|
|
19
|
+
* https://ui.docs.amplify.aws/react/components/link#routing-libraries
|
|
16
20
|
* @description
|
|
17
21
|
* A string representation of the URL path
|
|
18
22
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Property } from 'csstype';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { StyleToken } from './style';
|
|
3
4
|
import { TextInputFieldProps } from './textField';
|
|
4
5
|
import { ViewProps } from './view';
|
|
@@ -60,6 +61,11 @@ export interface SliderFieldProps extends TextInputFieldProps, ViewProps {
|
|
|
60
61
|
* Sets the SliderField’s initial value on render
|
|
61
62
|
*/
|
|
62
63
|
defaultValue?: number;
|
|
64
|
+
/**
|
|
65
|
+
* @description
|
|
66
|
+
* Use to format how the value gets rendered
|
|
67
|
+
*/
|
|
68
|
+
formatValue?: (value: number) => React.ReactNode;
|
|
63
69
|
/**
|
|
64
70
|
* @description
|
|
65
71
|
* Handles changes to the current value when using the SliderField as a controlled component
|
|
@@ -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.2.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.3",
|
|
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
|
}
|