@getsoren/design-system 4.87.0 → 4.89.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.
Files changed (47) hide show
  1. package/dist/main.cjs +75 -73
  2. package/dist/main.js +12063 -11341
  3. package/dist/node_modules/@mui/material/esm/useMediaQuery/index.d.ts +7 -0
  4. package/dist/src/components/DataDisplay/AiAssistant/AiAssistant.d.ts +14 -10
  5. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantAvatar.d.ts +4 -0
  6. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantConfirmationCard.d.ts +1 -1
  7. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantEmptyState.d.ts +2 -2
  8. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantFab.d.ts +3 -6
  9. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantHeader.d.ts +2 -2
  10. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantMark.d.ts +4 -0
  11. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantNudge.d.ts +1 -1
  12. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantPanel.d.ts +4 -7
  13. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantReplyActions.d.ts +4 -0
  14. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantShape.d.ts +3 -0
  15. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantSuggestion.d.ts +4 -0
  16. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantThinking.d.ts +7 -0
  17. package/dist/src/components/DataDisplay/AiAssistant/constants.d.ts +23 -0
  18. package/dist/src/components/DataDisplay/AiAssistant/types.d.ts +102 -29
  19. package/dist/src/components/DataDisplay/AiAssistant/utils/docked.d.ts +24 -0
  20. package/dist/src/components/DataDisplay/AiAssistant/utils/gradient.d.ts +8 -11
  21. package/dist/src/components/DataDisplay/Chat/components/ChatMessageBubble.d.ts +1 -1
  22. package/dist/src/components/DataDisplay/Chat/components/ChatMessageInput.d.ts +1 -1
  23. package/dist/src/components/DataDisplay/Chat/types.d.ts +8 -0
  24. package/dist/src/components/DataDisplay/EventFlag/EventFlag.d.ts +7 -0
  25. package/dist/src/components/DataDisplay/Icons/CloseLineIcon.d.ts +8 -0
  26. package/dist/src/components/DataDisplay/Icons/CollapseIcon.d.ts +8 -0
  27. package/dist/src/components/DataDisplay/Icons/CopyIcon.d.ts +8 -0
  28. package/dist/src/components/DataDisplay/Icons/MicIcon.d.ts +3 -2
  29. package/dist/src/components/DataDisplay/Icons/NewChatIcon.d.ts +8 -0
  30. package/dist/src/components/DataDisplay/Icons/ThumbDownIcon.d.ts +10 -0
  31. package/dist/src/components/DataDisplay/Icons/ThumbUpIcon.d.ts +10 -0
  32. package/dist/src/components/Inputs/Counter/Counter.d.ts +1 -1
  33. package/dist/src/components/Inputs/PillGroup/PillGroup.d.ts +1 -1
  34. package/dist/src/components/Inputs/TextFieldGroup/TextFieldGroup.d.ts +1 -1
  35. package/dist/src/components/Layout/Backoffice/Backoffice.d.ts +3 -1
  36. package/dist/src/components/Layout/CollapsingHeader/CollapsingHeader.d.ts +1 -1
  37. package/dist/src/components/Layout/CollapsingHeader/types.d.ts +2 -0
  38. package/dist/src/components/Navigation/NavigationMenu/NavigationMenu.d.ts +5 -1
  39. package/dist/src/config/theme.d.ts +1 -0
  40. package/dist/src/constants/appBar.d.ts +2 -0
  41. package/dist/src/main.d.ts +6 -2
  42. package/dist/src/utils/colors.d.ts +14 -0
  43. package/package.json +1 -1
  44. package/dist/src/components/DataDisplay/AiAssistant/components/AiAssistantThinkingOrb.d.ts +0 -9
  45. package/dist/src/components/DataDisplay/Icons/AiSparkIcon.d.ts +0 -7
  46. package/dist/src/utils/getInvalidColor.d.ts +0 -5
  47. package/dist/src/utils/getOutlineColor.d.ts +0 -4
@@ -7,7 +7,9 @@
7
7
  export * from '@mui/material';
8
8
  export * from '@mui/material/transitions';
9
9
  export { default as AiAssistant } from './components/DataDisplay/AiAssistant/AiAssistant';
10
+ export { AI_ASSISTANT_DOCKED_SPACE } from './components/DataDisplay/AiAssistant/constants';
10
11
  export * from './components/DataDisplay/AiAssistant/types';
12
+ export { getAiAssistantNeighbourSx } from './components/DataDisplay/AiAssistant/utils/docked';
11
13
  export * from './components/DataDisplay/ArticleImage/ArticleImage';
12
14
  export { default as ArticleImage } from './components/DataDisplay/ArticleImage/ArticleImage';
13
15
  export type { AvatarProps } from './components/DataDisplay/Avatar/Avatar';
@@ -28,9 +30,10 @@ export { default as ChatVoiceRecorder } from './components/DataDisplay/Chat/comp
28
30
  export * from './components/DataDisplay/Chat/types';
29
31
  export * from './components/DataDisplay/Chip/Chip';
30
32
  export { default as Chip } from './components/DataDisplay/Chip/Chip';
33
+ export * from './components/DataDisplay/EventFlag/EventFlag';
34
+ export { default as EventFlag } from './components/DataDisplay/EventFlag/EventFlag';
31
35
  export * from './components/DataDisplay/FileViewer/FileViewer';
32
36
  export { default as FileViewer } from './components/DataDisplay/FileViewer/FileViewer';
33
- export { default as AiSparkIcon } from './components/DataDisplay/Icons/AiSparkIcon';
34
37
  export * from './components/DataDisplay/Kanban/Kanban';
35
38
  export { default as Kanban } from './components/DataDisplay/Kanban/Kanban';
36
39
  export * from './components/DataDisplay/ListAvatar/ListAvatar';
@@ -123,6 +126,7 @@ export { default as CardModal } from './components/Surface/CardModal/CardModal';
123
126
  export * from './components/Utils/HasPermission/HasPermission';
124
127
  export { default as HasPermission } from './components/Utils/HasPermission/HasPermission';
125
128
  export { default as theme } from './config/theme';
129
+ export * from './constants/appBar';
126
130
  export * from './context/Permission/PermissionProvider';
127
131
  export { default as PermissionProvider } from './context/Permission/PermissionProvider';
128
132
  export * from './context/Snackbar/SnackbarProvider';
@@ -140,9 +144,9 @@ export { default as useSnackbar } from './hooks/useSnackbar/useSnackbar';
140
144
  export * from './hooks/useTabs/useTabs';
141
145
  export { default as useTabs } from './hooks/useTabs/useTabs';
142
146
  export type { DataAttributes } from './types/dataAttributes';
147
+ export * from './utils/colors';
143
148
  export * from './utils/getBackgroundImageElevation';
144
149
  export { default as getBackgroundImageElevation } from './utils/getBackgroundImageElevation';
145
- export type { InvalidColor } from './utils/getInvalidColor';
146
150
  export { default as isoToEmojiFlag } from './utils/isoToEmojiFlag';
147
151
  export { default as pickDataAttributes } from './utils/pickDataAttributes';
148
152
  export * from './utils/pxToRem';
@@ -0,0 +1,14 @@
1
+ import { Theme } from '@mui/material';
2
+ import { Palette } from '@mui/material/styles';
3
+ export type InvalidColor = "error" | "warning";
4
+ /** Resting border of a control: grey 400 in light mode, the translucent outline of the dark palette otherwise */
5
+ export declare const getOutlineColor: (theme: Theme) => string;
6
+ /**
7
+ * Resting border of a surface read as content rather than as a form control (card, text area): grey 200 in light
8
+ * mode, the same dark outline as a control otherwise
9
+ */
10
+ export declare const getSoftOutlineColor: ({ border, grey, mode }: Palette) => string;
11
+ /** Colour of an invalid control: the error palette, or the softer warning one for an answer still to be given */
12
+ export declare const getInvalidColor: (theme: Theme, color?: InvalidColor) => string;
13
+ /** Grey that sets a surface apart from the paper it sits on (avatar round, own message, filled composer), in both modes. */
14
+ export declare const getSubtleSurfaceColor: ({ grey, mode }: Palette) => 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.87.0",
5
+ "version": "4.89.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",
@@ -1,9 +0,0 @@
1
- import { AiAssistantThinkingOrbProps } from '../types';
2
- /**
3
- * Living mini-orb shown while the assistant thinks — same visual language as the FAB orb: the brand
4
- * orange flowing into black, blob morph, breath and pulsing aura (aura spread scales with size).
5
- * Emotion emits @keyframes globally, hence the size-suffixed aura name (its content differs per
6
- * size — the same name would collide).
7
- */
8
- declare const AiAssistantThinkingOrb: ({ size }: AiAssistantThinkingOrbProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
- export default AiAssistantThinkingOrb;
@@ -1,7 +0,0 @@
1
- import { AiSparkIconProps } from '../AiAssistant/types';
2
- /**
3
- * Four-point spark with concave curved edges — the filled, organic "AI" glyph
4
- * used across the AiAssistant components (FAB, panel header).
5
- */
6
- declare const AiSparkIcon: ({ size, color, variant }: AiSparkIconProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
- export default AiSparkIcon;
@@ -1,5 +0,0 @@
1
- import { Theme } from '@mui/material';
2
- export type InvalidColor = "error" | "warning";
3
- /** Colour of an invalid control: the error palette, or the softer warning one for an answer still to be given */
4
- declare const getInvalidColor: (theme: Theme, color?: InvalidColor) => string;
5
- export default getInvalidColor;
@@ -1,4 +0,0 @@
1
- import { Theme } from '@mui/material';
2
- /** Resting border of a control: grey 400 in light mode, the translucent outline of the dark palette otherwise */
3
- declare const getOutlineColor: (theme: Theme) => string;
4
- export default getOutlineColor;