@evoke-platform/ui-components 1.8.0-testing.2 → 1.8.0-testing.4

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.
@@ -4,7 +4,8 @@ import UIThemeProvider from '../../../theme';
4
4
  import FieldError from '../FieldError';
5
5
  import Typography from '../Typography';
6
6
  const TextField = (props) => {
7
- const { id, variant, label, labelPlacement, readOnly, required, error, instructionText, errorMessage } = props;
7
+ const { labelPlacement, readOnly, instructionText, errorMessage, ...muiProps } = props;
8
+ const { id, variant, label, required, error } = muiProps;
8
9
  const readOnlyStyles = {
9
10
  '.MuiOutlinedInput-root': {
10
11
  paddingRight: '5px',
@@ -28,7 +29,7 @@ const TextField = (props) => {
28
29
  readOnly: readOnly,
29
30
  'aria-readonly': !!readOnly,
30
31
  'data-testid': 'label-outside',
31
- }, ...props, label: null, sx: readOnly
32
+ }, ...muiProps, label: null, sx: readOnly
32
33
  ? { ...readOnlyStyles, ...props.sx }
33
34
  : {
34
35
  '& fieldset': { borderRadius: '8px' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/ui-components",
3
- "version": "1.8.0-testing.2",
3
+ "version": "1.8.0-testing.4",
4
4
  "description": "",
5
5
  "main": "dist/published/index.js",
6
6
  "module": "dist/published/index.js",
@@ -21,9 +21,9 @@
21
21
  "test": "vitest",
22
22
  "test:ui": "vitest --ui",
23
23
  "copy-styles": "copyfiles -u 1 src/styles/*.css dist/published/",
24
- "build": "mkdirp -rf ./dist && tsc && npm run copy-styles",
24
+ "build": "rm -rf ./dist && tsc && npm run copy-styles",
25
25
  "build:cjs": "tsc --module CommonJS --outDir dist/cjs",
26
- "prepublish": "mkdirp -rf ./dist && tsc && npm run copy-styles",
26
+ "prepublish": "rm -rf ./dist && tsc && npm run copy-styles",
27
27
  "storybook": "start-storybook -p 6006",
28
28
  "build-storybook": "build-storybook",
29
29
  "lint": "npm run prettier:check && npm run eslint",
@@ -90,7 +90,7 @@
90
90
  "yalc": "^1.0.0-pre.53"
91
91
  },
92
92
  "peerDependencies": {
93
- "@evoke-platform/context": "^1.4.0-dev.5",
93
+ "@evoke-platform/context": "^1.3.2-testing.0",
94
94
  "react": "^18.1.0",
95
95
  "react-dom": "^18.1.0"
96
96
  },