@sonardigital/carbon-ui 1.2.25 → 1.2.26

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": "@sonardigital/carbon-ui",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -1,9 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { NumberField as BaseNumberField } from '@base-ui/react/number-field';
3
- import IconButton from '@mui/material/IconButton';
4
- import InputAdornment from '@mui/material/InputAdornment';
5
- import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
6
- import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
7
3
  import { TextField } from '@mui/material';
8
4
  import { BaseUIEvent } from '@base-ui/react/types';
9
5
 
@@ -67,65 +63,6 @@ export function NumberInput({
67
63
  }}
68
64
  onKeyDown={props.onKeyDown}
69
65
  onFocus={props.onFocus}
70
- InputProps={{
71
- inputProps: {
72
- sx: {
73
- height: 19,
74
- fontWeight: 400,
75
- },
76
- },
77
- endAdornment: (
78
- <InputAdornment
79
- position="end"
80
- sx={{
81
- flexDirection: 'column',
82
- maxHeight: 'unset',
83
- alignSelf: 'stretch',
84
- borderLeft: '1px solid',
85
- borderColor: 'divider',
86
- '& button': {
87
- py: 0,
88
- flex: 1,
89
- borderRadius: 0.5,
90
- },
91
- }}
92
- >
93
- <BaseNumberField.Increment
94
- render={
95
- <IconButton
96
- aria-label="Increase"
97
- onClick={() =>
98
- // @ts-ignore
99
- props?.onChange?.(props.value ?? 0)
100
- }
101
- />
102
- }
103
- >
104
- <KeyboardArrowUpIcon
105
- fontSize={size}
106
- sx={{ transform: 'translateY(2px)' }}
107
- />
108
- </BaseNumberField.Increment>
109
-
110
- <BaseNumberField.Decrement
111
- render={
112
- <IconButton
113
- aria-label="Decrease"
114
- onClick={() =>
115
- // @ts-ignore
116
- props?.onChange?.(state.value ?? 0)
117
- }
118
- />
119
- }
120
- >
121
- <KeyboardArrowDownIcon
122
- fontSize={size}
123
- sx={{ transform: 'translateY(-2px)' }}
124
- />
125
- </BaseNumberField.Decrement>
126
- </InputAdornment>
127
- ),
128
- }}
129
66
  sx={{ width: '100%' }}
130
67
  />
131
68
  )}