@useloops/design-system 1.4.747 → 1.4.748

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 (71) hide show
  1. package/dist/BrandCore.d.ts +1 -1
  2. package/dist/BrandCore.js +1 -1
  3. package/dist/Platform/AiCard.d.ts +1 -0
  4. package/dist/Platform/AiCard.js +1 -0
  5. package/dist/Platform/AiInsight.d.ts +1 -0
  6. package/dist/Platform/AiInsight.js +1 -0
  7. package/dist/Platform/AiSummary.d.ts +1 -0
  8. package/dist/Platform/AiSummary.js +1 -0
  9. package/dist/Platform/{AIWrittenByLockUp.d.ts → AiWrittenByLockUp.d.ts} +1 -1
  10. package/dist/Platform/AiWrittenByLockUp.js +1 -0
  11. package/dist/Platform.d.ts +4 -4
  12. package/dist/Platform.js +1 -1
  13. package/dist/esm/BrandCore.js +1 -1
  14. package/dist/esm/Platform/AiCard.js +1 -0
  15. package/dist/esm/Platform/AiInsight.js +1 -0
  16. package/dist/esm/Platform/AiSummary.js +1 -0
  17. package/dist/esm/Platform/AiWrittenByLockUp.js +1 -0
  18. package/dist/esm/Platform.js +1 -1
  19. package/dist/esm/index.js +1 -1
  20. package/dist/esm/systems/BrandCore/gradients.js +1 -1
  21. package/dist/esm/systems/BrandCore/primitiveVariables.js +1 -1
  22. package/dist/esm/systems/Platform/AiCard/AiCard.js +1 -0
  23. package/dist/esm/systems/Platform/AiCard/_partials/AiSkeletonText.js +4 -0
  24. package/dist/esm/systems/Platform/{AIInsight/AIInsight.js → AiInsight/AiInsight.js} +1 -1
  25. package/dist/esm/systems/Platform/AiSummary/AiSummary.js +1 -0
  26. package/dist/esm/systems/Platform/AiWrittenByLockUp/AiWrittenByLockUp.js +1 -0
  27. package/dist/esm/systems/Platform/LinkExpired/LinkExpired.js +1 -1
  28. package/dist/esm/systems/Platform/MFACodeVerify/MFACodeVerify.js +1 -1
  29. package/dist/esm/systems/WebCore/LoopsAiButton/LoopsAiButton.js +1 -1
  30. package/dist/index.d.ts +5 -5
  31. package/dist/index.js +1 -1
  32. package/dist/systems/BrandCore/gradients.d.ts +8 -1
  33. package/dist/systems/BrandCore/gradients.js +1 -1
  34. package/dist/systems/BrandCore/primitiveVariables.d.ts +2 -0
  35. package/dist/systems/BrandCore/primitiveVariables.js +1 -1
  36. package/dist/systems/Platform/AiCard/AiCard.d.ts +53 -0
  37. package/dist/systems/Platform/AiCard/AiCard.js +1 -0
  38. package/dist/systems/Platform/AiCard/_partials/AiSkeletonText.d.ts +9 -0
  39. package/dist/systems/Platform/AiCard/_partials/AiSkeletonText.js +4 -0
  40. package/dist/systems/Platform/AiInsight/AiInsight.d.ts +18 -0
  41. package/dist/systems/Platform/{AIInsight/AIInsight.js → AiInsight/AiInsight.js} +1 -1
  42. package/dist/systems/Platform/{AISummary/AISummary.d.ts → AiSummary/AiSummary.d.ts} +5 -4
  43. package/dist/systems/Platform/AiSummary/AiSummary.js +1 -0
  44. package/dist/systems/Platform/{AIWrittenByLockUp → AiWrittenByLockUp}/AiWrittenByLockUp.js +1 -1
  45. package/dist/systems/Platform/LinkExpired/LinkExpired.js +1 -1
  46. package/dist/systems/Platform/MFACodeVerify/MFACodeVerify.js +1 -1
  47. package/dist/systems/Platform/SliderGraph/_partials/StyledComponents.d.ts +8 -8
  48. package/dist/systems/WebCore/InputFieldBase/InputFieldBase.d.ts +1 -1
  49. package/dist/systems/WebCore/LoopsAiButton/LoopsAiButton.js +1 -1
  50. package/dist/theme/theme.hooks.d.ts +1 -1
  51. package/dist/theme/types.d.ts +2 -0
  52. package/package.json +1 -1
  53. package/dist/Platform/AIInsight.d.ts +0 -1
  54. package/dist/Platform/AIInsight.js +0 -1
  55. package/dist/Platform/AISummary.d.ts +0 -1
  56. package/dist/Platform/AISummary.js +0 -1
  57. package/dist/Platform/AIWrittenByLockUp.js +0 -1
  58. package/dist/Platform/AiContentContainer.d.ts +0 -1
  59. package/dist/Platform/AiContentContainer.js +0 -1
  60. package/dist/esm/Platform/AIInsight.js +0 -1
  61. package/dist/esm/Platform/AISummary.js +0 -1
  62. package/dist/esm/Platform/AIWrittenByLockUp.js +0 -1
  63. package/dist/esm/Platform/AiContentContainer.js +0 -1
  64. package/dist/esm/systems/Platform/AISummary/AISummary.js +0 -1
  65. package/dist/esm/systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js +0 -1
  66. package/dist/esm/systems/Platform/AiContentContainer/AiContentContainer.js +0 -1
  67. package/dist/systems/Platform/AIInsight/AIInsight.d.ts +0 -17
  68. package/dist/systems/Platform/AISummary/AISummary.js +0 -1
  69. package/dist/systems/Platform/AiContentContainer/AiContentContainer.d.ts +0 -23
  70. package/dist/systems/Platform/AiContentContainer/AiContentContainer.js +0 -1
  71. /package/dist/systems/Platform/{AIWrittenByLockUp → AiWrittenByLockUp}/AiWrittenByLockUp.d.ts +0 -0
@@ -5,40 +5,40 @@ import * as _mui_system from '@mui/system';
5
5
  import * as _mui_material from '@mui/material';
6
6
  import { SliderGraphBarProps, CommonComponentProps } from '../types.js';
7
7
 
8
- declare const SliderGraphWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
8
+ declare const SliderGraphWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
9
9
  component?: React.ElementType | undefined;
10
10
  } & {
11
11
  maxHeight: number;
12
12
  } & {
13
13
  responsive?: boolean;
14
14
  }, {}, {}>;
15
- declare const VeticalBarWrapper: _emotion_styled.StyledComponent<_mui_material.ListItemButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, keyof _mui_material.ListItemButtonOwnProps> & Omit<_mui_material.ButtonBaseOwnProps, "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | keyof _mui_material.ListItemButtonOwnProps> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "alignItems" | "className" | "style" | "classes" | "children" | "sx" | "autoFocus" | "tabIndex" | "disableGutters" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | "selected" | "dense" | "divider"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
15
+ declare const VeticalBarWrapper: _emotion_styled.StyledComponent<_mui_material.ListItemButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, keyof _mui_material.ListItemButtonOwnProps> & Omit<_mui_material.ButtonBaseOwnProps, "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | keyof _mui_material.ListItemButtonOwnProps> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "sx" | "alignItems" | "disabled" | "style" | "children" | "autoFocus" | "className" | "tabIndex" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | "dense" | "disableGutters" | "divider" | "selected"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
16
16
  component?: React.ElementType | undefined;
17
17
  } & {
18
18
  maxHeight: number;
19
19
  } & {
20
20
  responsive?: boolean;
21
21
  }, {}, {}>;
22
- declare const SliderGraphBarWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
22
+ declare const SliderGraphBarWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
23
23
  component?: React.ElementType | undefined;
24
24
  } & {
25
25
  maxHeight: number;
26
26
  } & {
27
27
  responsive?: boolean;
28
28
  }, {}, {}>;
29
- declare const VerticalBarValue: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
29
+ declare const VerticalBarValue: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
30
30
  component?: React.ElementType | undefined;
31
31
  }, {}, {}>;
32
- declare const VerticalBar: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
32
+ declare const VerticalBar: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
33
33
  component?: React.ElementType | undefined;
34
34
  } & CommonComponentProps & {
35
35
  value: number;
36
36
  checked: boolean;
37
37
  }, {}, {}>;
38
- declare const VerticalBarActions: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
38
+ declare const VerticalBarActions: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
39
39
  component?: React.ElementType | undefined;
40
40
  }, {}, {}>;
41
- declare const VerticalBarLabel: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
41
+ declare const VerticalBarLabel: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
42
42
  component?: React.ElementType | undefined;
43
43
  }, {}, {}>;
44
44
  declare const AxisSegmentWrapper: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
@@ -46,7 +46,7 @@ declare const AxisSegmentWrapper: _emotion_styled.StyledComponent<_mui_material.
46
46
  } & {
47
47
  maxHeight: number;
48
48
  } & Partial<SliderGraphBarProps>, {}, {}>;
49
- declare const AxisSegment: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & {
49
+ declare const AxisSegment: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
50
50
  component?: React.ElementType | undefined;
51
51
  } & {
52
52
  showGraphLines?: boolean;
@@ -6,7 +6,7 @@ import { TextFieldProps } from '@mui/material';
6
6
  type InputFieldBaseProps = TextFieldProps;
7
7
  declare const InputFieldBase: _emotion_styled.StyledComponent<{
8
8
  variant?: _mui_material.TextFieldVariants | undefined;
9
- } & Omit<_mui_material.OutlinedTextFieldProps | _mui_material.FilledTextFieldProps | _mui_material.StandardTextFieldProps, "variant"> & (_mui_system.MUIStyledCommonProps<_mui_material.Theme> & InputFieldBaseProps), {}, {}>;
9
+ } & Omit<_mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps | _mui_material.StandardTextFieldProps, "variant"> & (_mui_system.MUIStyledCommonProps<_mui_material.Theme> & InputFieldBaseProps), {}, {}>;
10
10
 
11
11
  export { InputFieldBase as default };
12
12
  export type { InputFieldBaseProps };
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("@mui/material"),i=require("../../BrandCore/Icon/Icon.js"),o=require("../Button/Button.js");const a=t.styled(o)(({disabled:e,theme:t})=>({background:`linear-gradient(-18deg, ${t.custom.palette.purple[600]} 0%, ${t.custom.palette.blue[400]} 100%)`,color:t.custom.palette.text.lockedWhite,minWidth:0,opacity:e?.5:1,padding:t.spacing(t.custom.padding.sm)}));module.exports=({text:t,disabled:o,loading:r,slotProps:n,onClick:s})=>e.jsx(a,{variation:"primary",sizing:"md",startIcon:e.jsx(i.default,{name:"ai"}),disabled:o,loading:r,onClick:s,...n?.button,children:t||"Loops AI"});
1
+ "use strict";var i=require("react/jsx-runtime"),o=require("@mui/material"),t=require("../../BrandCore/gradients.js"),a=require("../../BrandCore/Icon/Icon.js"),d=require("../Button/Button.js");const e=o.styled(d)(({disabled:i,theme:o})=>({border:"1px solid transparent",borderRadius:o.custom.radius.round,background:`${t.aiButtonSurface(o)} padding-box, ${t.aiButtonStroke(o)} border-box`,boxShadow:o.custom.elevation.aiButtonGlow,fontWeight:500,minWidth:0,opacity:i?.5:1,padding:o.spacing(o.custom.padding.sm),"& .MuiBox-root":{paddingLeft:o.spacing(o.custom.padding.xs),paddingRight:o.spacing(o.custom.padding.xs)}}));module.exports=({text:o,disabled:t,loading:d,slotProps:n,onClick:r})=>i.jsx(e,{variation:"subtle",sizing:"md",startIcon:i.jsx(a.default,{name:"ai"}),disabled:t,loading:d,onClick:r,...n?.button,children:o||"Loops AI"});
@@ -4,7 +4,7 @@ import { PaletteMode, Direction } from '@mui/material';
4
4
  import { ScreenSize, CustomTheme } from './types.js';
5
5
 
6
6
  declare const useThemeBuilder: (initialMode?: PaletteMode, initialScreenSize?: ScreenSize, initialDirection?: Direction) => {
7
- breakpoint: "" | "sm" | "lg" | "md" | "xl";
7
+ breakpoint: "" | "sm" | "md" | "lg" | "xl";
8
8
  custom: CustomTheme;
9
9
  gridOverlayVisible: boolean;
10
10
  mode: PaletteMode;
@@ -115,6 +115,8 @@ interface CustomTheme {
115
115
  float: string;
116
116
  overlay: string;
117
117
  aiSummary: string;
118
+ aiThinking: string;
119
+ aiButtonGlow: string;
118
120
  };
119
121
  elevationFilter: {
120
122
  raised: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useloops/design-system",
3
- "version": "1.4.747",
3
+ "version": "1.4.748",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1 +0,0 @@
1
- export { AIInsightProps, default } from '../systems/Platform/AIInsight/AIInsight.js';
@@ -1 +0,0 @@
1
- "use strict";var s=require("../systems/Platform/AIInsight/AIInsight.js");module.exports=s;
@@ -1 +0,0 @@
1
- export { AISummaryProps, default } from '../systems/Platform/AISummary/AISummary.js';
@@ -1 +0,0 @@
1
- "use strict";var r=require("../systems/Platform/AISummary/AISummary.js");module.exports=r;
@@ -1 +0,0 @@
1
- "use strict";var t=require("../systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js");module.exports=t;
@@ -1 +0,0 @@
1
- export { AiContentContainerProps, default } from '../systems/Platform/AiContentContainer/AiContentContainer.js';
@@ -1 +0,0 @@
1
- "use strict";var t=require("../systems/Platform/AiContentContainer/AiContentContainer.js");module.exports=t.default;
@@ -1 +0,0 @@
1
- export{default}from"../systems/Platform/AIInsight/AIInsight.js";
@@ -1 +0,0 @@
1
- export{default}from"../systems/Platform/AISummary/AISummary.js";
@@ -1 +0,0 @@
1
- export{default}from"../systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js";
@@ -1 +0,0 @@
1
- export{default}from"../systems/Platform/AiContentContainer/AiContentContainer.js";
@@ -1 +0,0 @@
1
- import{jsx as e,jsxs as o,Fragment as t}from"react/jsx-runtime";import{useTheme as r,Box as i,Stack as a}from"@mui/material";import{mergeSx as s}from"merge-sx";import{forwardRef as n,useId as p,useState as l,useEffect as m}from"react";import{tone3 as d,tone5 as b}from"../../BrandCore/gradients.js";import c from"../../BrandCore/Icon/Icon.js";import"../../../utils/formValidation/misc.js";import"../../BrandCore/primitiveVariables.js";import"../../WebCore/utils/typography.util.js";import"../../BrandCore/textures.js";import"../../WebCore/AnnualController/AnnualController.js";import"../../WebCore/SelectItem/SelectItem.js";import"../../WebCore/Accordion/Accordion.js";import"../../WebCore/Animations/FadeIn.js";import{Text as u}from"../../WebCore/Text/Text.js";import"@mui/icons-material";import"../../WebCore/AutocompleteBaseField/_partials/AutocompleteListbox.js";import"../../WebCore/AutocompleteBaseField/_partials/StyledPopper.js";import"../../WebCore/AutocompleteBaseField/_partials/StyledAutocompleteField.js";import"../../WebCore/AutocompleteBaseField/_partials/AutocompleteChip.js";import"../../WebCore/AutocompleteBaseField/_partials/StyledAutocompleteInput.js";import"../../WebCore/Badge/Badge.js";import"../../WebCore/Breadcrumb/Breadcrumb.js";import"../../WebCore/Button/Button.js";import"../../WebCore/ButtonBase/ButtonBase.js";import"../../WebCore/ButtonTabGroup/_partials/ActiveIndicator.js";import"../../WebCore/ButtonTabGroup/_partials/ButtonTabsWrapper.js";import"../../WebCore/ButtonTabGroup/_partials/TabButton.js";import"../../WebCore/Checkbox/StyledCheckbox.js";import"../../WebCore/InputFieldBase/InputFieldBase.js";import"../../WebCore/CreatableAutocomplete/CreatableAutocomplete.js";import"../../WebCore/InputLabelBase/StyledInputLabelBase.js";import"../../WebCore/Differential/DifferentialContainer.js";import"../../WebCore/Differential/DifferentialRadio.js";import"../../WebCore/DropdownMenu/StyledMenu.js";import C from"../../WebCore/ExpandableTypographyClamp/ExpandableTypographyClamp.js";import"../../WebCore/FormBuilder/FormBuilder.js";import"../../WebCore/FormGenerator/FormGenerator.js";import"../../WebCore/GridOverlay/GridOverlay.js";import"html-react-parser";import j from"../../WebCore/IconButton/IconButton.js";import"../../WebCore/IconButtonBase/IconButtonBase.js";import"../../WebCore/IconButtonGroup/IconButtonGroup.js";import"../../WebCore/Image/Image.js";import"../../WebCore/KbdGroup/Kbd.js";import"../../WebCore/KbdGroup/KbdGroup.js";import"../../WebCore/KeyValueLabel/KeyValueLabel.js";import"../../WebCore/Label/Label.js";import"../../WebCore/Likert/LikertContainer.js";import"../../WebCore/Likert/LikertLabel.js";import"../../WebCore/Likert/LikertRadio.js";import"../../WebCore/Link/StyledLink.js";import"@lottiefiles/dotlottie-react";import g from"../../WebCore/LoopsAiButton/LoopsAiButton.js";import"markdown-to-jsx";import W from"../../WebCore/Menu/Menu.js";import"../../WebCore/ModalLayout/_partials/ModalActionsWrapper.js";import"../../WebCore/ModalLayout/_partials/ModalContentWrapper.js";import"../../WebCore/Surface/Surface.js";import"../../WebCore/NavigationButton/NavigationButton.js";import"material-ui-popup-state/hooks";import"../../WebCore/Nudge/NudgeButton.js";import"../../WebCore/NumberField/NumberField.js";import"../../BrandCore/colorRamps.js";import"../../BrandCore/semanticColor.js";import"../../BrandCore/types.js";import"../../BrandCore/typography.js";import"../../BrandCore/Sticker/Sticker.js";import B from"../../WebCore/Progress/Progress.js";import"../../WebCore/Pill/StyledPill.js";import"../../WebCore/ProgressBar/ProgressBar.js";import"../../WebCore/Radio/StyledRadio.js";import"../../WebCore/SortableList/components/SortableItem/SortableItem.js";import"../../WebCore/Select/StyledSelect.js";import"../../WebCore/RankItem/_partials/LayoutComponents/LayoutComponents.js";import"../../WebCore/RankItem/_partials/RankItemLabel/RankItemLabel.js";import"../../WebCore/SortableList/SortableList.js";import"../../WebCore/SortableList/components/SortableOverlay/SortableOverlay.js";import"@tiptap/extension-placeholder";import"@tiptap/starter-kit";import"mui-tiptap";import"../../WebCore/RichTextField/StyledRichTextEditor.js";import h from"../../WebCore/Skeleton/Skeleton.js";import"../../WebCore/Slider/StyledSlider.js";import"../../WebCore/StarRating/StarRating.js";import"../../WebCore/Switch/StyledSwitch.js";import"../../WebCore/Textarea/Textarea.js";import"../../WebCore/TrialCard/TrialCardContainers.js";import"../../WebCore/TrialCard/TrialPill.js";import"../../WebCore/UserMenu/UserMenuButton.js";import"../../WebCore/VideoModal/VideoModal.js";import"../../WebCore/TintedSurface/TintedSurface.js";const x=n(({heading:n,body:x,bodyLineClamp:y=6,attribution:S,menuItems:k,onStartChatClick:f,onRetryClick:I,loading:L,loadingMessage:T="",error:A,slotProps:F,sx:R},v)=>{const w=r(),M=`gradient-${p()}`,[G,_]=l(y);return m(()=>{_(y)},[y]),e(i,{ref:v,sx:s({boxShadow:w.custom.elevation.aiSummary,borderRadius:"8px",background:d(w),padding:"1px"},R),children:o(a,{sx:{padding:w.spacing(w.custom.padding.md),gap:w.spacing(w.custom.padding.sm),borderRadius:"7px",background:b(w)},children:[(n?.length||k?.length)&&e(a,{direction:"row",sx:{alignItems:"flex-start",justifyContent:"space-between",gap:w.spacing(w.custom.padding.md)},children:L?T?.length?o(a,{direction:"row",sx:{alignItems:"center",gap:1},children:[e(B,{sizing:"sm",sx:{position:"static",color:w.custom.palette.neutral[400]}}),o(a,{direction:"row",sx:{alignItems:"center",gap:1},children:[e(u,{size:"sm",className:A?"ellipsis-loading":void 0,children:T}),A&&void 0!==I&&e(u,{size:"sm",onClick:I,children:"Refresh",...F?.retry,sx:s({textDecoration:"underline",cursor:"pointer"},F?.retry?.sx)})]})]}):e(h,{...F?.skeleton}):o(t,{children:[e(u,{size:"sm",bold:!0,color:w.custom.palette.text.primary,...F?.heading,children:n}),k?.length&&e(W,{trigger:e(j,{icon:e(c,{name:"more-horizontal",color:w.custom.palette.icon.primary}),sizing:"sm"}),placement:"bottom-end",offset:[0,8],width:165,menuItems:k,...F?.menu})]})}),L&&o(t,{children:[e(h,{...F?.skeleton}),e(h,{...F?.skeleton}),e(h,{...F?.skeleton}),e(h,{...F?.skeleton}),e(h,{...F?.skeleton}),e(h,{...F?.skeleton})]}),!L&&x?.length&&e(C,{size:"sm",color:w.custom.palette.text.primary,clamp:G,slotProps:{gradientBox:{background:w.custom.palette.purple[0]}},onShowMoreClick:()=>{_(void 0)},onShowLessClick:()=>{_(y)},...F?.expandableTypographyClamp,backgroundColorOverride:w.custom.palette.purple[0],children:x}),(S?.length||void 0!==f)&&o(a,{direction:"row",sx:{alignItems:"center",justifyContent:"space-between",pt:w.spacing(w.custom.padding.xs),gap:w.spacing(w.custom.padding.md)},children:[S?.length&&o(a,{direction:"row",sx:{alignItems:"center",gap:w.spacing(w.custom.padding.xs)},children:[e("svg",{style:{width:0,height:0,position:"absolute"},children:e("defs",{children:o("linearGradient",{id:M,gradientTransform:"rotate(-18)",children:[e("stop",{offset:"0%",stopColor:w.custom.palette.purple[600]}),e("stop",{offset:"100%",stopColor:w.custom.palette.blue[400]})]})})}),e(c,{name:"ai",size:20,...F?.attributionIcon,sx:s({"& *":{fill:`url(#${M})`}},F?.attributionIcon?.sx)}),e(u,{size:"xs",bold:!0,...F?.attribution,sx:s({background:d(w),backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},F?.attribution?.sx),children:S})]}),void 0!==f&&e(g,{text:"Start Chat",onClick:f,loading:L,disabled:L,slotProps:{button:{sx:{...F?.startChatButton?.sx}}}})]})]})})});export{x as default};
@@ -1 +0,0 @@
1
- import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useTheme as r,Stack as t}from"@mui/material";import{mergeSx as i}from"merge-sx";import"../../BrandCore/colorRamps.js";import"../../BrandCore/primitiveVariables.js";import"../../BrandCore/semanticColor.js";import{tone3 as a,tone3_lowOpacity_text as p}from"../../BrandCore/gradients.js";import"../../BrandCore/types.js";import"../../BrandCore/typography.js";import s from"../../BrandCore/Icon/Icon.js";import"../../BrandCore/Sticker/Sticker.js";import"../../../utils/formValidation/misc.js";import"../../WebCore/utils/typography.util.js";import"../../BrandCore/textures.js";import"../../WebCore/AnnualController/AnnualController.js";import"../../WebCore/SelectItem/SelectItem.js";import"../../WebCore/Accordion/Accordion.js";import"../../WebCore/Animations/FadeIn.js";import{Text as m}from"../../WebCore/Text/Text.js";import"@mui/icons-material";import"react";import"../../WebCore/AutocompleteBaseField/_partials/AutocompleteListbox.js";import"../../WebCore/AutocompleteBaseField/_partials/StyledPopper.js";import"../../WebCore/AutocompleteBaseField/_partials/StyledAutocompleteField.js";import"../../WebCore/AutocompleteBaseField/_partials/AutocompleteChip.js";import"../../WebCore/AutocompleteBaseField/_partials/StyledAutocompleteInput.js";import"../../WebCore/Badge/Badge.js";import"../../WebCore/Breadcrumb/Breadcrumb.js";import"../../WebCore/Button/Button.js";import"../../WebCore/ButtonBase/ButtonBase.js";import"../../WebCore/ButtonTabGroup/_partials/ActiveIndicator.js";import"../../WebCore/ButtonTabGroup/_partials/ButtonTabsWrapper.js";import"../../WebCore/ButtonTabGroup/_partials/TabButton.js";import"../../WebCore/Checkbox/StyledCheckbox.js";import"../../WebCore/InputFieldBase/InputFieldBase.js";import"../../WebCore/CreatableAutocomplete/CreatableAutocomplete.js";import"../../WebCore/InputLabelBase/StyledInputLabelBase.js";import"../../WebCore/Differential/DifferentialContainer.js";import"../../WebCore/Differential/DifferentialRadio.js";import"../../WebCore/DropdownMenu/StyledMenu.js";import"../../WebCore/ExpandableTypographyClamp/ExpandableTypographyClamp.js";import"../../WebCore/FormBuilder/FormBuilder.js";import"../../WebCore/FormGenerator/FormGenerator.js";import"../../WebCore/GridOverlay/GridOverlay.js";import"html-react-parser";import n from"../../WebCore/IconButton/IconButton.js";import"../../WebCore/IconButtonBase/IconButtonBase.js";import"../../WebCore/IconButtonGroup/IconButtonGroup.js";import"../../WebCore/Image/Image.js";import"../../WebCore/KbdGroup/Kbd.js";import"../../WebCore/KbdGroup/KbdGroup.js";import"../../WebCore/KeyValueLabel/KeyValueLabel.js";import"../../WebCore/Label/Label.js";import"../../WebCore/Likert/LikertContainer.js";import"../../WebCore/Likert/LikertLabel.js";import"../../WebCore/Likert/LikertRadio.js";import"../../WebCore/Link/StyledLink.js";import"@lottiefiles/dotlottie-react";import l from"../../WebCore/LoopsAiButton/LoopsAiButton.js";import"markdown-to-jsx";import"material-ui-popup-state/hooks";import"../../WebCore/Surface/Surface.js";import"../../WebCore/Menu/MenuItem.js";import"../../WebCore/ModalLayout/_partials/ModalActionsWrapper.js";import"../../WebCore/ModalLayout/_partials/ModalContentWrapper.js";import"../../WebCore/NavigationButton/NavigationButton.js";import"../../WebCore/Nudge/NudgeButton.js";import"../../WebCore/NumberField/NumberField.js";import"../../WebCore/Progress/Progress.js";import"../../WebCore/Pill/StyledPill.js";import"../../WebCore/ProgressBar/ProgressBar.js";import"../../WebCore/Radio/StyledRadio.js";import"../../WebCore/SortableList/components/SortableItem/SortableItem.js";import"../../WebCore/Select/StyledSelect.js";import"../../WebCore/RankItem/_partials/LayoutComponents/LayoutComponents.js";import"../../WebCore/RankItem/_partials/RankItemLabel/RankItemLabel.js";import"../../WebCore/SortableList/SortableList.js";import"../../WebCore/SortableList/components/SortableOverlay/SortableOverlay.js";import"@tiptap/extension-placeholder";import"@tiptap/starter-kit";import"mui-tiptap";import"../../WebCore/RichTextField/StyledRichTextEditor.js";import"../../WebCore/Skeleton/Skeleton.js";import"../../WebCore/Slider/StyledSlider.js";import"../../WebCore/StarRating/StarRating.js";import"../../WebCore/Switch/StyledSwitch.js";import"../../WebCore/Textarea/Textarea.js";import"../../WebCore/TrialCard/TrialCardContainers.js";import"../../WebCore/TrialCard/TrialPill.js";import"../../WebCore/UserMenu/UserMenuButton.js";import"../../WebCore/VideoModal/VideoModal.js";import"../../WebCore/TintedSurface/TintedSurface.js";const b=({sx:b,onUpvote:C,onDownvote:d,onCopy:u,aiButtonText:c,onClickAIButton:j})=>{const W=r(),B=i({position:"relative",mt:W.custom.margin.md,gap:W.custom.margin.md,alignItems:"center"},b);return e(t,{direction:"row",sx:B,children:[e(t,{direction:"row",sx:{gap:W.spacing(W.custom.padding.xs)},children:[o(s,{name:"ai",size:20,sx:{color:"transparent",background:a(W),maskImage:"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.75 3c.207 0 .375.168.375.375a3 3 0 003 3 .375.375 0 010 .75 3 3 0 00-3 3 .375.375 0 01-.75 0 3 3 0 00-3-3 .375.375 0 110-.75 3 3 0 003-3c0-.207.168-.375.375-.375zM15.875 7.875a.375.375 0 00-.75 0c0 2.9-2.35 5.25-5.25 5.25a.375.375 0 000 .75c2.9 0 5.25 2.35 5.25 5.25a.375.375 0 00.75 0c0-2.9 2.35-5.25 5.25-5.25a.375.375 0 000-.75 5.25 5.25 0 01-5.25-5.25zM6.125 13.875a.375.375 0 00-.75 0 3 3 0 01-3 3 .375.375 0 000 .75 3 3 0 013 3 .375.375 0 00.75 0 3 3 0 013-3 .375.375 0 000-.75 3 3 0 01-3-3z'/%3E%3C/svg%3E\")",maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center"}}),o(m,{size:"xs",bold:!0,noWrap:!0,sx:{...p(W)},children:"Written by Loops Intelligence"})]}),e(t,{direction:"row",sx:{marginLeft:"auto"},children:[!!C&&o(n,{icon:o(s,{name:"thumb-up"}),sizing:"xs",onClick:C}),!!d&&o(n,{icon:o(s,{name:"thumb-down"}),sizing:"xs",onClick:d}),!!u&&o(n,{icon:o(s,{name:"copy"}),sizing:"xs",onClick:u})]}),c&&o(l,{text:c,onClick:j})]})};export{b as default};
@@ -1 +0,0 @@
1
- import{jsx as o,jsxs as t}from"react/jsx-runtime";import{styled as n,Box as r,useTheme as i,Stack as e}from"@mui/material";import{forwardRef as a}from"react";import{tone3 as d,tone5 as c}from"../../BrandCore/gradients.js";import p from"../AIWrittenByLockUp/AiWrittenByLockUp.js";const m=n(r)(({theme:o})=>({boxShadow:o.custom.elevation.aiSummary,borderRadius:o.spacing(o.custom.radius.md),background:d(o),padding:"1px"})),s=a(({children:n,sx:a,withLockUp:d,aiButtonText:s,onUpvote:u,onDownvote:l,onCopy:x,onClickAIButton:f,slotProps:g},h)=>{const k=i();return o(m,{sx:a,ref:h,children:t(e,{direction:"column",sx:{padding:k.spacing(k.custom.padding.md),borderRadius:"7px",background:c(k)},children:[o(r,{sx:{display:"flex",flex:1},...g?.childrenContainer,children:n}),d&&o(p,{aiButtonText:s,onClickAIButton:f,onUpvote:u,onDownvote:l,onCopy:x,...g?.aiWrittenByLockUp})]})})});export{m as AiContentContainerBox,s as default};
@@ -1,17 +0,0 @@
1
- import { FunctionComponent, ReactElement } from 'react';
2
- import { AiContentContainerProps } from '../AiContentContainer/AiContentContainer.js';
3
-
4
- interface AIInsightProps {
5
- themeDescription: string;
6
- comments: ReactElement[];
7
- slotProps?: {
8
- aiContentContainer: AiContentContainerProps;
9
- };
10
- suggestions?: string[];
11
- activeCommentIndex?: number;
12
- onActiveCommentIndexChange?: (index: number) => void;
13
- }
14
- declare const AIInsight: FunctionComponent<AIInsightProps>;
15
-
16
- export { AIInsight as default };
17
- export type { AIInsightProps };
@@ -1 +0,0 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("@mui/material"),t=require("merge-sx"),o=require("react"),i=require("../../BrandCore/gradients.js"),s=require("../../BrandCore/Icon/Icon.js");require("../../../utils/formValidation/misc.js"),require("../../BrandCore/primitiveVariables.js"),require("../../WebCore/utils/typography.util.js"),require("../../BrandCore/textures.js"),require("../../WebCore/AnnualController/AnnualController.js"),require("../../WebCore/SelectItem/SelectItem.js"),require("../../WebCore/Accordion/Accordion.js"),require("../../WebCore/Animations/FadeIn.js");var a=require("../../WebCore/Text/Text.js");require("@mui/icons-material"),require("../../WebCore/AutocompleteBaseField/_partials/AutocompleteListbox.js"),require("../../WebCore/AutocompleteBaseField/_partials/StyledPopper.js"),require("../../WebCore/AutocompleteBaseField/_partials/StyledAutocompleteField.js"),require("../../WebCore/AutocompleteBaseField/_partials/AutocompleteChip.js"),require("../../WebCore/AutocompleteBaseField/_partials/StyledAutocompleteInput.js"),require("../../WebCore/Badge/Badge.js"),require("../../WebCore/Breadcrumb/Breadcrumb.js"),require("../../WebCore/Button/Button.js"),require("../../WebCore/ButtonBase/ButtonBase.js"),require("../../WebCore/ButtonTabGroup/_partials/ActiveIndicator.js"),require("../../WebCore/ButtonTabGroup/_partials/ButtonTabsWrapper.js"),require("../../WebCore/ButtonTabGroup/_partials/TabButton.js"),require("../../WebCore/Checkbox/StyledCheckbox.js"),require("../../WebCore/InputFieldBase/InputFieldBase.js"),require("../../WebCore/CreatableAutocomplete/CreatableAutocomplete.js"),require("../../WebCore/InputLabelBase/StyledInputLabelBase.js"),require("../../WebCore/Differential/DifferentialContainer.js"),require("../../WebCore/Differential/DifferentialRadio.js"),require("../../WebCore/DropdownMenu/StyledMenu.js");var n=require("../../WebCore/ExpandableTypographyClamp/ExpandableTypographyClamp.js");require("../../WebCore/FormBuilder/FormBuilder.js"),require("../../WebCore/FormGenerator/FormGenerator.js"),require("../../WebCore/GridOverlay/GridOverlay.js"),require("html-react-parser");var u=require("../../WebCore/IconButton/IconButton.js");require("../../WebCore/IconButtonBase/IconButtonBase.js"),require("../../WebCore/IconButtonGroup/IconButtonGroup.js"),require("../../WebCore/Image/Image.js"),require("../../WebCore/KbdGroup/Kbd.js"),require("../../WebCore/KbdGroup/KbdGroup.js"),require("../../WebCore/KeyValueLabel/KeyValueLabel.js"),require("../../WebCore/Label/Label.js"),require("../../WebCore/Likert/LikertContainer.js"),require("../../WebCore/Likert/LikertLabel.js"),require("../../WebCore/Likert/LikertRadio.js"),require("../../WebCore/Link/StyledLink.js"),require("@lottiefiles/dotlottie-react");var l=require("../../WebCore/LoopsAiButton/LoopsAiButton.js");require("markdown-to-jsx");var d=require("../../WebCore/Menu/Menu.js");require("../../WebCore/ModalLayout/_partials/ModalActionsWrapper.js"),require("../../WebCore/ModalLayout/_partials/ModalContentWrapper.js"),require("../../WebCore/Surface/Surface.js"),require("../../WebCore/NavigationButton/NavigationButton.js"),require("material-ui-popup-state/hooks"),require("../../WebCore/Nudge/NudgeButton.js"),require("../../WebCore/NumberField/NumberField.js"),require("../../BrandCore/colorRamps.js"),require("../../BrandCore/semanticColor.js"),require("../../BrandCore/types.js"),require("../../BrandCore/typography.js"),require("../../BrandCore/Sticker/Sticker.js");var p=require("../../WebCore/Progress/Progress.js");require("../../WebCore/Pill/StyledPill.js"),require("../../WebCore/ProgressBar/ProgressBar.js"),require("../../WebCore/Radio/StyledRadio.js"),require("../../WebCore/SortableList/components/SortableItem/SortableItem.js"),require("../../WebCore/Select/StyledSelect.js"),require("../../WebCore/RankItem/_partials/LayoutComponents/LayoutComponents.js"),require("../../WebCore/RankItem/_partials/RankItemLabel/RankItemLabel.js"),require("../../WebCore/SortableList/SortableList.js"),require("../../WebCore/SortableList/components/SortableOverlay/SortableOverlay.js"),require("@tiptap/extension-placeholder"),require("@tiptap/starter-kit"),require("mui-tiptap"),require("../../WebCore/RichTextField/StyledRichTextEditor.js");var c=require("../../WebCore/Skeleton/Skeleton.js");require("../../WebCore/Slider/StyledSlider.js"),require("../../WebCore/StarRating/StarRating.js"),require("../../WebCore/Switch/StyledSwitch.js"),require("../../WebCore/Textarea/Textarea.js"),require("../../WebCore/TrialCard/TrialCardContainers.js"),require("../../WebCore/TrialCard/TrialPill.js"),require("../../WebCore/UserMenu/UserMenuButton.js"),require("../../WebCore/VideoModal/VideoModal.js"),require("../../WebCore/TintedSurface/TintedSurface.js");const b=o.forwardRef(({heading:b,body:C,bodyLineClamp:j=6,attribution:m,menuItems:q,onStartChatClick:x,onRetryClick:g,loading:W,loadingMessage:S="",error:B,slotProps:h,sx:k},y)=>{const f=r.useTheme(),I=`gradient-${o.useId()}`,[L,T]=o.useState(j);return o.useEffect(()=>{T(j)},[j]),e.jsx(r.Box,{ref:y,sx:t.mergeSx({boxShadow:f.custom.elevation.aiSummary,borderRadius:"8px",background:i.tone3(f),padding:"1px"},k),children:e.jsxs(r.Stack,{sx:{padding:f.spacing(f.custom.padding.md),gap:f.spacing(f.custom.padding.sm),borderRadius:"7px",background:i.tone5(f)},children:[(b?.length||q?.length)&&e.jsx(r.Stack,{direction:"row",sx:{alignItems:"flex-start",justifyContent:"space-between",gap:f.spacing(f.custom.padding.md)},children:W?S?.length?e.jsxs(r.Stack,{direction:"row",sx:{alignItems:"center",gap:1},children:[e.jsx(p,{sizing:"sm",sx:{position:"static",color:f.custom.palette.neutral[400]}}),e.jsxs(r.Stack,{direction:"row",sx:{alignItems:"center",gap:1},children:[e.jsx(a.Text,{size:"sm",className:B?"ellipsis-loading":void 0,children:S}),B&&void 0!==g&&e.jsx(a.Text,{size:"sm",onClick:g,children:"Refresh",...h?.retry,sx:t.mergeSx({textDecoration:"underline",cursor:"pointer"},h?.retry?.sx)})]})]}):e.jsx(c,{...h?.skeleton}):e.jsxs(e.Fragment,{children:[e.jsx(a.Text,{size:"sm",bold:!0,color:f.custom.palette.text.primary,...h?.heading,children:b}),q?.length&&e.jsx(d.default,{trigger:e.jsx(u,{icon:e.jsx(s.default,{name:"more-horizontal",color:f.custom.palette.icon.primary}),sizing:"sm"}),placement:"bottom-end",offset:[0,8],width:165,menuItems:q,...h?.menu})]})}),W&&e.jsxs(e.Fragment,{children:[e.jsx(c,{...h?.skeleton}),e.jsx(c,{...h?.skeleton}),e.jsx(c,{...h?.skeleton}),e.jsx(c,{...h?.skeleton}),e.jsx(c,{...h?.skeleton}),e.jsx(c,{...h?.skeleton})]}),!W&&C?.length&&e.jsx(n,{size:"sm",color:f.custom.palette.text.primary,clamp:L,slotProps:{gradientBox:{background:f.custom.palette.purple[0]}},onShowMoreClick:()=>{T(void 0)},onShowLessClick:()=>{T(j)},...h?.expandableTypographyClamp,backgroundColorOverride:f.custom.palette.purple[0],children:C}),(m?.length||void 0!==x)&&e.jsxs(r.Stack,{direction:"row",sx:{alignItems:"center",justifyContent:"space-between",pt:f.spacing(f.custom.padding.xs),gap:f.spacing(f.custom.padding.md)},children:[m?.length&&e.jsxs(r.Stack,{direction:"row",sx:{alignItems:"center",gap:f.spacing(f.custom.padding.xs)},children:[e.jsx("svg",{style:{width:0,height:0,position:"absolute"},children:e.jsx("defs",{children:e.jsxs("linearGradient",{id:I,gradientTransform:"rotate(-18)",children:[e.jsx("stop",{offset:"0%",stopColor:f.custom.palette.purple[600]}),e.jsx("stop",{offset:"100%",stopColor:f.custom.palette.blue[400]})]})})}),e.jsx(s.default,{name:"ai",size:20,...h?.attributionIcon,sx:t.mergeSx({"& *":{fill:`url(#${I})`}},h?.attributionIcon?.sx)}),e.jsx(a.Text,{size:"xs",bold:!0,...h?.attribution,sx:t.mergeSx({background:i.tone3(f),backgroundClip:"text",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"},h?.attribution?.sx),children:m})]}),void 0!==x&&e.jsx(l,{text:"Start Chat",onClick:x,loading:W,disabled:W,slotProps:{button:{sx:{...h?.startChatButton?.sx}}}})]})]})})});module.exports=b;
@@ -1,23 +0,0 @@
1
- import * as react from 'react';
2
- import { PropsWithChildren } from 'react';
3
- import { SxProps, Theme, BoxProps } from '@mui/material';
4
- import { AiWrittenByLockUpProps } from '../AIWrittenByLockUp/AiWrittenByLockUp.js';
5
-
6
- interface AiContentContainerProps extends PropsWithChildren {
7
- sx?: SxProps<Theme>;
8
- withLockUp?: boolean;
9
- aiButtonText?: string;
10
- onUpvote?: () => void;
11
- onDownvote?: () => void;
12
- onCopy?: () => void;
13
- onClickAIButton?: () => void;
14
- ref?: React.Ref<HTMLDivElement>;
15
- slotProps?: {
16
- childrenContainer?: BoxProps;
17
- aiWrittenByLockUp?: AiWrittenByLockUpProps;
18
- };
19
- }
20
- declare const AiContentContainer: react.ForwardRefExoticComponent<Omit<AiContentContainerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
21
-
22
- export { AiContentContainer as default };
23
- export type { AiContentContainerProps };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("@mui/material"),t=require("react"),r=require("../../BrandCore/gradients.js"),n=require("../AIWrittenByLockUp/AiWrittenByLockUp.js");const i=o.styled(o.Box)(({theme:e})=>({boxShadow:e.custom.elevation.aiSummary,borderRadius:e.spacing(e.custom.radius.md),background:r.tone3(e),padding:"1px"})),s=t.forwardRef(({children:t,sx:s,withLockUp:a,aiButtonText:d,onUpvote:c,onDownvote:u,onCopy:x,onClickAIButton:p,slotProps:l},m)=>{const B=o.useTheme();return e.jsx(i,{sx:s,ref:m,children:e.jsxs(o.Stack,{direction:"column",sx:{padding:B.spacing(B.custom.padding.md),borderRadius:"7px",background:r.tone5(B)},children:[e.jsx(o.Box,{sx:{display:"flex",flex:1},...l?.childrenContainer,children:t}),a&&e.jsx(n,{aiButtonText:d,onClickAIButton:p,onUpvote:c,onDownvote:u,onCopy:x,...l?.aiWrittenByLockUp})]})})});exports.AiContentContainerBox=i,exports.default=s;