@axinom/mosaic-ui 0.50.0 → 0.51.0-rc.1
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/Explorer/Explorer.d.ts +1 -1
- package/dist/components/Explorer/Explorer.d.ts.map +1 -1
- package/dist/components/FormElements/MaskedSingleLineText/MaskedSingleLineTextField.d.ts +2 -2
- package/dist/components/FormElements/SingleLineText/SingleLineText.d.ts +4 -0
- package/dist/components/FormElements/SingleLineText/SingleLineText.d.ts.map +1 -1
- package/dist/components/FormElements/index.d.ts +2 -1
- package/dist/components/FormElements/index.d.ts.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Explorer/Explorer.tsx +2 -1
- package/src/components/FormElements/MaskedSingleLineText/MaskedSingleLineTextField.tsx +2 -2
- package/src/components/FormElements/SingleLineText/SingleLineText.scss +4 -0
- package/src/components/FormElements/SingleLineText/SingleLineText.tsx +7 -0
- package/src/components/FormElements/index.ts +5 -1
- package/src/components/List/ListRow/ListRow.tsx +1 -1
- package/src/styles/variables.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0-rc.1",
|
|
4
4
|
"description": "UI components for building Axinom Mosaic applications",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build-storybook": "storybook build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@axinom/mosaic-core": "^0.4.
|
|
35
|
+
"@axinom/mosaic-core": "^0.4.24-rc.1",
|
|
36
36
|
"@faker-js/faker": "^7.4.0",
|
|
37
37
|
"@popperjs/core": "^2.11.8",
|
|
38
38
|
"clsx": "^1.1.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "5110af3a26f1b510fc54435238d12baaf630c086"
|
|
109
109
|
}
|
|
@@ -7,14 +7,15 @@ import {
|
|
|
7
7
|
useEffect,
|
|
8
8
|
useState,
|
|
9
9
|
} from 'react';
|
|
10
|
-
import { ActionData, IconName } from '..';
|
|
11
10
|
import { noop } from '../../helpers/utils';
|
|
12
11
|
import { showNotification } from '../../initialize';
|
|
13
12
|
import { Data } from '../../types/data';
|
|
14
13
|
import { ErrorTypeToStationError } from '../../utils/ErrorTypeToStationError';
|
|
15
14
|
import { isContextAction } from '../Actions/Action/Action';
|
|
15
|
+
import { ActionData } from '../Actions/Actions.models';
|
|
16
16
|
import { Filters } from '../Filters/Filters';
|
|
17
17
|
import { FilterType, FilterValues } from '../Filters/Filters.model';
|
|
18
|
+
import { IconName } from '../Icons/Icons.models';
|
|
18
19
|
import {
|
|
19
20
|
Column,
|
|
20
21
|
ItemSelectEventArgs,
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
* name="title"
|
|
14
14
|
* label="Title"
|
|
15
15
|
* as={MaskedSingleLineTextField}
|
|
16
|
-
mask={'00:00:00.000'}
|
|
17
|
-
placeholderChar={'0'}
|
|
16
|
+
mask={'00:00:00.000'}
|
|
17
|
+
placeholderChar={'0'} />
|
|
18
18
|
*/
|
|
19
19
|
export const MaskedSingleLineTextField: React.FC<
|
|
20
20
|
Omit<MaskedSingleLineTextProps, 'error' | 'onChange'>
|
|
@@ -28,6 +28,11 @@ export interface SingleLineTextProps extends BaseFormControl, BaseInputEvents {
|
|
|
28
28
|
autoComplete?: 'on' | 'off';
|
|
29
29
|
|
|
30
30
|
innerRef?: React.RefObject<HTMLInputElement>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Additional props to be passed to the input element.
|
|
34
|
+
*/
|
|
35
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
/**
|
|
@@ -51,6 +56,7 @@ export const SingleLineText: React.FC<SingleLineTextProps> = ({
|
|
|
51
56
|
onBlur,
|
|
52
57
|
onFocus,
|
|
53
58
|
className = '',
|
|
59
|
+
inputProps,
|
|
54
60
|
...rest
|
|
55
61
|
}) => {
|
|
56
62
|
const errorMsg: string | undefined = error;
|
|
@@ -100,6 +106,7 @@ export const SingleLineText: React.FC<SingleLineTextProps> = ({
|
|
|
100
106
|
dataTestFieldType="SingleLineText"
|
|
101
107
|
>
|
|
102
108
|
<input
|
|
109
|
+
{...inputProps}
|
|
103
110
|
className={clsx({ [classes.hasError]: errorMsg !== undefined })}
|
|
104
111
|
id={id}
|
|
105
112
|
name={name}
|
|
@@ -29,7 +29,11 @@ export {
|
|
|
29
29
|
export { FormikDebug } from './FormikDebug/FormikDebug';
|
|
30
30
|
export { GenericField, GenericFieldProps } from './GenericField/GenericField';
|
|
31
31
|
export { LinkField, LinkFieldProps } from './Link/LinkField';
|
|
32
|
-
export {
|
|
32
|
+
export {
|
|
33
|
+
MaskedSingleLineText,
|
|
34
|
+
MaskedSingleLineTextProps,
|
|
35
|
+
} from './MaskedSingleLineText/MaskedSingleLineText';
|
|
36
|
+
export { MaskedSingleLineTextField } from './MaskedSingleLineText/MaskedSingleLineTextField';
|
|
33
37
|
export { Radio, RadioProps } from './Radio/Radio';
|
|
34
38
|
export { RadioField } from './Radio/RadioField';
|
|
35
39
|
export { ReadOnlyField, ReadOnlyFieldProps } from './ReadOnly/ReadOnlyField';
|
|
@@ -177,7 +177,7 @@ export const ListRow = <T extends Data>({
|
|
|
177
177
|
horizontalTextAlign = 'left',
|
|
178
178
|
verticalTextAlign = 'center',
|
|
179
179
|
textWrap = false,
|
|
180
|
-
rowHeight = textWrap ?
|
|
180
|
+
rowHeight = textWrap ? 'auto' : '50px',
|
|
181
181
|
data,
|
|
182
182
|
itemSelected = false,
|
|
183
183
|
isTrigger = false,
|
|
@@ -163,6 +163,7 @@ $page-header-actions-background-color: $page-header-background-color;
|
|
|
163
163
|
$width-big: 650px;
|
|
164
164
|
$width-small: 320px;
|
|
165
165
|
$input-color: $dark-gray;
|
|
166
|
+
$input-placeholder-color: $gray;
|
|
166
167
|
$input-hover-color: $blue;
|
|
167
168
|
$input-label-color: $dark-blue;
|
|
168
169
|
$input-border-color: $light-gray;
|