@getsoren/design-system 4.85.1 → 4.87.0

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,5 +1,5 @@
1
1
  import { SxProps, Theme } from '@mui/material';
2
- import { PropsWithChildren } from 'react';
2
+ import { PropsWithChildren, ReactNode } from 'react';
3
3
  import { InvalidColor } from '../../../utils/getInvalidColor';
4
4
  export interface TextFieldGroupProps extends PropsWithChildren {
5
5
  /** `row` puts two short fields side by side */
@@ -8,6 +8,16 @@ export interface TextFieldGroupProps extends PropsWithChildren {
8
8
  error?: boolean;
9
9
  /** Palette of the invalid frame */
10
10
  errorColor?: InvalidColor;
11
+ /**
12
+ * `segmented`: the fields sit on a grey track, the focused one lifted in white (a period picked end by end).
13
+ * Give each field `slotProps.inputLabel.shrink`: an empty field's label otherwise drops to the middle of the track.
14
+ */
15
+ variant?: "outlined" | "segmented";
16
+ /** Between two fields of the `segmented` variant, such as an arrow from a start to an end */
17
+ separator?: ReactNode;
18
+ /**
19
+ * Additional styling for the group
20
+ */
11
21
  sx?: SxProps<Theme>;
12
22
  }
13
23
  /**
@@ -15,5 +25,5 @@ export interface TextFieldGroupProps extends PropsWithChildren {
15
25
  * the last one. The fields lose their own border, and the focused one draws its ring over the frame.
16
26
  * Every child is a field (or a wrapper holding one, such as an Autocomplete): a helper text goes under the group.
17
27
  */
18
- declare const TextFieldGroup: ({ children, direction, error, errorColor, sx }: TextFieldGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
28
+ declare const TextFieldGroup: ({ children, error, errorColor, separator, sx, direction, variant, }: TextFieldGroupProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
29
  export default TextFieldGroup;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.85.1",
5
+ "version": "4.87.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",