@getsoren/design-system 4.60.0 → 4.61.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,10 +1,11 @@
1
+ import { ChipProps } from '@mui/material';
1
2
  import { HeaderColumnChip, KanbanCardVariant, KanbanDataItemProps } from '../types';
2
3
  export interface KanbanColumnProps {
3
4
  name: string;
4
5
  label?: string;
5
6
  count?: number;
6
7
  items: KanbanDataItemProps[];
7
- chipColumVariant?: "filled" | "outlined";
8
+ chipColumVariant?: ChipProps["variant"];
8
9
  chipColumDot?: boolean;
9
10
  chipStatus?: string;
10
11
  isLoading?: boolean;
@@ -80,7 +80,7 @@ export interface KanbanProps {
80
80
  /**
81
81
  * Variant for the chip column.
82
82
  */
83
- chipColumVariant?: "filled" | "outlined";
83
+ chipColumVariant?: ChipProps["variant"];
84
84
  /**
85
85
  * If true, the Kanban column will display a dot indicator in the chip.
86
86
  */
@@ -12,7 +12,7 @@ export interface AutocompleteFilterProps<Multiple extends boolean | undefined, D
12
12
  /**
13
13
  * Variant of the Autocomplete
14
14
  */
15
- variant?: "standard" | "chip";
15
+ variant?: "standard" | "chip" | "filled";
16
16
  /**
17
17
  * Width of the Autocomplete
18
18
  */
@@ -31,6 +31,17 @@ export interface AutocompleteFilterProps<Multiple extends boolean | undefined, D
31
31
  * Placeholder
32
32
  */
33
33
  placeholder?: string;
34
+ /**
35
+ * Name of the filtered dimension, kept visible in the summary once a value is selected
36
+ * @default placeholder
37
+ */
38
+ label?: string;
39
+ /**
40
+ * If true, collapses the selection into a summary: one value is spelled out ("Label : value"),
41
+ * several collapse to a count badge, and the label stays visible as placeholder otherwise
42
+ * @default false
43
+ */
44
+ summary?: boolean;
34
45
  /**
35
46
  * If true, the checkbox is disabled
36
47
  * @default false
@@ -0,0 +1,16 @@
1
+ export interface CheckboxIconProps {
2
+ /**
3
+ * Ticked state
4
+ */
5
+ checked?: boolean;
6
+ /**
7
+ * Partially ticked — drawn as a bar rather than a check
8
+ */
9
+ indeterminate?: boolean;
10
+ }
11
+ /**
12
+ * The box a Checkbox draws, replacing MUI's SVG icons: their shape is baked
13
+ * into the SVG path, so it cannot be softened from the theme.
14
+ */
15
+ declare const CheckboxIcon: ({ checked, indeterminate }: CheckboxIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
16
+ export default CheckboxIcon;
@@ -1,9 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { NavigationItem, NavLinkProps } from '..';
1
+ import { NavigationItem } from '..';
3
2
  export interface SideBarMenuProps {
4
- NavLink?: (props: NavLinkProps) => ReactElement | null;
5
- translate?: (str: string) => string;
6
3
  items?: NavigationItem[];
7
4
  }
8
- declare const SideBarMenu: ({ items, ...props }: SideBarMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ declare const SideBarMenu: ({ items }: SideBarMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
6
  export default SideBarMenu;
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  apply: string;
3
+ clear: string;
3
4
  clickToUpload: string;
4
5
  close: string;
5
6
  closed: string;
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  apply: string;
3
+ clear: string;
3
4
  clickToUpload: string;
4
5
  close: string;
5
6
  closed: string;
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.60.0",
5
+ "version": "4.61.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",