@axinom/mosaic-ui 0.51.0-rc.0 → 0.51.0-rc.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-ui",
3
- "version": "0.51.0-rc.0",
3
+ "version": "0.51.0-rc.10",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -21,7 +21,7 @@
21
21
  "clean": "rimraf ./dist",
22
22
  "build": "yarn clean && cross-env NODE_ENV=production rollup -c",
23
23
  "build:ci": "yarn workspaces focus && yarn build",
24
- "dev": "cross-env NODE_ENV=production rollup -c -w",
24
+ "dev": "rollup -c -w",
25
25
  "test": "jest --silent",
26
26
  "test:watch": "jest --watch",
27
27
  "test:coverage": "jest --coverage",
@@ -32,7 +32,7 @@
32
32
  "build-storybook": "storybook build"
33
33
  },
34
34
  "dependencies": {
35
- "@axinom/mosaic-core": "^0.4.24-rc.0",
35
+ "@axinom/mosaic-core": "^0.4.24-rc.10",
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": "a99c608834292804eb1d93b7bbcea6624e55c6a0"
108
+ "gitHead": "53f2fcee53ecd1f887c10bdaa1e7084f1820f6dc"
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,
@@ -73,7 +73,7 @@ $input-inactive: 1px solid var(--input-border-color, $input-border-color);
73
73
  font-size: var(--filter-font-size, $filter-font-size);
74
74
  display: grid;
75
75
  grid-template-columns: auto auto;
76
- grid-template-rows: 50px;
76
+ grid-template-rows: auto;
77
77
  place-content: space-between;
78
78
  place-items: center;
79
79
 
@@ -92,6 +92,7 @@ $input-inactive: 1px solid var(--input-border-color, $input-border-color);
92
92
 
93
93
  span {
94
94
  padding-left: 30px;
95
+ padding-bottom: 10px;
95
96
  }
96
97
  }
97
98
  }
@@ -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'>
@@ -18,6 +18,10 @@
18
18
  border: 1px solid
19
19
  var(--input-invalid-border-color, $input-invalid-border-color);
20
20
  }
21
+
22
+ &::placeholder {
23
+ color: var(--input-placeholder-color, $input-placeholder-color);
24
+ }
21
25
  }
22
26
 
23
27
  input:disabled {
@@ -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 { MaskedSingleLineText } from './MaskedSingleLineText/MaskedSingleLineText';
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';
@@ -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;