@xqmsg/ui-core 0.19.5 → 0.19.7
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/components/icons/index.d.ts +2 -1
- package/dist/components/icons/vault/index.d.ts +8 -0
- package/dist/theme/components/form-error.d.ts +0 -1
- package/dist/theme/components/form-label.d.ts +0 -1
- package/dist/theme/components/form.d.ts +0 -1
- package/dist/ui-core.cjs.development.js +24 -9
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +25 -11
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/icons/index.tsx +2 -0
- package/src/components/icons/vault/index.tsx +14 -0
- package/src/components/icons/vault/vault.png +0 -0
- package/src/components/input/index.tsx +1 -1
- package/src/theme/components/form-error.ts +2 -2
- package/src/theme/components/form-label.ts +2 -2
- package/src/theme/components/form.ts +2 -2
- package/src/theme/components/table.ts +1 -1
- package/src/theme/foundations/colors.ts +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.19.
|
|
2
|
+
"version": "0.19.7",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@babel/core": "^7.18.13",
|
|
54
54
|
"@babel/preset-env": "^7.19.0",
|
|
55
55
|
"@babel/preset-react": "^7.18.6",
|
|
56
|
-
"@rollup/plugin-image": "^3.0.
|
|
56
|
+
"@rollup/plugin-image": "^3.0.2",
|
|
57
57
|
"@rollup/plugin-url": "^8.0.1",
|
|
58
58
|
"@size-limit/preset-small-lib": "^8.0.1",
|
|
59
59
|
"@storybook/addon-essentials": "^6.5.10",
|
|
@@ -29,6 +29,7 @@ import { TableOutline } from './table/outline';
|
|
|
29
29
|
import { Trash } from './trash';
|
|
30
30
|
import { Warning } from './warning';
|
|
31
31
|
import { Services } from './services';
|
|
32
|
+
import { Vault } from './vault';
|
|
32
33
|
|
|
33
34
|
export {
|
|
34
35
|
Checkmark,
|
|
@@ -61,5 +62,6 @@ export {
|
|
|
61
62
|
TableFill,
|
|
62
63
|
TableOutline,
|
|
63
64
|
Trash,
|
|
65
|
+
Vault,
|
|
64
66
|
Warning,
|
|
65
67
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image } from '@chakra-ui/react';
|
|
3
|
+
import path from './vault.png';
|
|
4
|
+
|
|
5
|
+
export interface VaultProps {
|
|
6
|
+
boxSize: number | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A functional React component utilized to render the `Vault` icon component
|
|
11
|
+
*/
|
|
12
|
+
export const Vault: React.FC<VaultProps> = ({ boxSize }) => {
|
|
13
|
+
return <Image src={path} boxSize={boxSize} />;
|
|
14
|
+
};
|
|
Binary file
|
|
@@ -246,7 +246,7 @@ export function Input<T extends FieldValues>({
|
|
|
246
246
|
id={name}
|
|
247
247
|
isInvalid={isInvalid}
|
|
248
248
|
position="relative"
|
|
249
|
-
py={label || helperText || isInvalid ?
|
|
249
|
+
py={label || helperText || isInvalid ? 5 : 0}
|
|
250
250
|
>
|
|
251
251
|
{label && inputType !== 'checkbox' && (
|
|
252
252
|
<Label
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import colors from '../foundations/colors';
|
|
2
2
|
|
|
3
3
|
const baseStyle = {
|
|
4
|
-
fontSize: '
|
|
4
|
+
fontSize: '11px',
|
|
5
5
|
position: 'absolute',
|
|
6
6
|
top: 0,
|
|
7
7
|
display: 'flex',
|
|
8
8
|
ml: 1,
|
|
9
|
-
mb: 1,
|
|
9
|
+
// mb: 1,
|
|
10
10
|
color: colors.label.primary.light,
|
|
11
11
|
opacity: 1,
|
|
12
12
|
};
|