@smart-factor/gem-ui-components 0.0.44 → 0.0.46

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.
@@ -1,9 +1,6 @@
1
1
  import { TextFieldProps } from '@mui/material';
2
- import { SelectInputProps } from '@mui/material/Select/SelectInput';
3
2
 
4
- export type SimpleInputProps<T extends SelectInputProps['value']> = {
5
- value: T;
6
- onChange(newValue: T): void;
3
+ export type SimpleInputProps = {
7
4
  errorMessage?: string | null;
8
5
  } & TextFieldProps;
9
- export declare const SimpleInput: <T extends unknown>({ id, value, label, onChange, type, sx, errorMessage, disabled, }: SimpleInputProps<T>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SimpleInput: ({ sx, errorMessage, ...props }: SimpleInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,5 +3,5 @@ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: Meta<typeof SimpleInput>;
5
5
  export default meta;
6
- type Story = StoryObj<SimpleInputProps<string>>;
6
+ type Story = StoryObj<SimpleInputProps>;
7
7
  export declare const Docs: Story;
package/dist/main.js CHANGED
@@ -31297,27 +31297,17 @@ const mM = A(yr)`
31297
31297
  )
31298
31298
  }
31299
31299
  ), pI = ({
31300
- id: e,
31301
- value: t,
31302
- label: o,
31303
- onChange: n,
31304
- type: a,
31305
- sx: i,
31306
- errorMessage: l,
31307
- disabled: s
31300
+ sx: e,
31301
+ errorMessage: t,
31302
+ ...o
31308
31303
  }) => /* @__PURE__ */ g(yr, { variant: "standard", children: /* @__PURE__ */ g(
31309
31304
  jd,
31310
31305
  {
31311
- id: e,
31312
31306
  variant: "standard",
31313
- type: a,
31314
- value: t,
31315
- sx: i,
31316
- disabled: s,
31317
- onChange: (c) => n(c.target.value),
31318
- label: o,
31319
- error: !!l,
31320
- helperText: l
31307
+ sx: e,
31308
+ error: !!t,
31309
+ helperText: t,
31310
+ ...o
31321
31311
  }
31322
31312
  ) }), fI = ({
31323
31313
  id: e,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-factor/gem-ui-components",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "private": false,
5
5
  "description": "Gem UI Components",
6
6
  "type": "module",