@rustic-ai/ui-components 0.0.3 → 0.0.5

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.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  The UI Components for Rustic AI is a comprehensive collection of reusable components designed specifically to empower developers in constructing interactive multimodal chat interfaces. With a focus on versatility and ease of integration, our library offers a wide range of components tailored to accommodate various chat functionalities. Whether you're building a chatbot, virtual assistant, or communication platform, Rustic UI Components provides the building blocks necessary to create engaging and dynamic user experiences.
4
4
 
5
+ Additionally, our Rustic UI Component Library is available on Figma, enabling you to delve into the intricacies of our designs. Explore the [Figma file](https://www.figma.com/community/file/1340378790384732080) to gain insights into our innovative approach to UI design.
6
+
5
7
  To learn more about Rustic AI, visit our [website](https://rustic.ai).
6
8
 
7
9
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
@@ -44,7 +44,7 @@ export interface RechartsTimeSeriesProps {
44
44
  width?: number;
45
45
  /** Chart type toggle will be hidden if the value is true. */
46
46
  disableChartTypeToggle?: boolean;
47
- /** Define the default chart type: 'line', 'bar', or 'area'. */
47
+ /** Define the default chart type: `line`, `bar`, or `area`. */
48
48
  defaultChartType?: TimeSeriesType;
49
49
  /** Pass a function to format y-axis label. Make sure to use tooltipFormatter and yAxisTickFormatter together so that the numbers are uniform. */
50
50
  yAxisTickFormatter?: (value: number) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"codeSnippet.d.ts","sourceRoot":"","sources":["../../../src/components/codeSnippet/codeSnippet.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA;AAU1B,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,0LAA0L;IAC1L,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAyC1D"}
1
+ {"version":3,"file":"codeSnippet.d.ts","sourceRoot":"","sources":["../../../src/components/codeSnippet/codeSnippet.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA;AAU1B,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,0LAA0L;IAC1L,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA2D1D"}
@@ -10,4 +10,9 @@ export declare enum TimeFormat {
10
10
  export declare function formatTimestamp(timestampInMillis: number, format: TimeFormat): string;
11
11
  export declare function calculateTimeDiffInDays(startTimestampInMillis: number, endTimestampInMillis: number): number;
12
12
  export declare function formatTimestampLabel(timestampInMillis: number, timeDiffInDays: number): string;
13
+ export declare function getSizeStyles(maybeWidth: number | undefined, maybeHeight: number | undefined): {
14
+ width?: number;
15
+ height?: number;
16
+ className?: string;
17
+ };
13
18
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/components/helper.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIlE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAYxD;AAED,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAqBlE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,MAEnD,CAAA;AAED,oBAAY,UAAU;IACpB,IAAI,IAAA;IACJ,UAAU,IAAA;CACX;AAED,wBAAgB,eAAe,CAC7B,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,UAAU,GACjB,MAAM,CAsBR;AAED,wBAAgB,uBAAuB,CACrC,sBAAsB,EAAE,MAAM,EAC9B,oBAAoB,EAAE,MAAM,GAC3B,MAAM,CASR;AAED,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,UAOvB"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/components/helper.ts"],"names":[],"mappings":"AAGA,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIlE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAYxD;AAED,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAqBlE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM9D;AAED,eAAO,MAAM,qBAAqB,QAAS,MAAM,KAAG,MAEnD,CAAA;AAED,oBAAY,UAAU;IACpB,IAAI,IAAA;IACJ,UAAU,IAAA;CACX;AAED,wBAAgB,eAAe,CAC7B,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,UAAU,GACjB,MAAM,CAsBR;AAED,wBAAgB,uBAAuB,CACrC,sBAAsB,EAAE,MAAM,EAC9B,oBAAoB,EAAE,MAAM,GAC3B,MAAM,CASR;AAED,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,UAOvB;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAqBzD"}
@@ -1,4 +1,5 @@
1
1
  import './image.css';
2
+ import '../../index.css';
2
3
  export interface ImageProps {
3
4
  /** Path to the image source. */
4
5
  url: string;
@@ -8,6 +9,8 @@ export interface ImageProps {
8
9
  height?: number;
9
10
  /** Alternative text for the image used for assistive technology. */
10
11
  alt?: string;
12
+ /** Description of the image. */
13
+ description?: string;
11
14
  }
12
15
  declare function Image(props: ImageProps): import("react/jsx-runtime").JSX.Element;
13
16
  declare namespace Image {
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAOpB,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED,iBAAwB,KAAK,CAAC,KAAK,EAAE,UAAU,2CA8C9C;kBA9CuB,KAAK;;;;;eAAL,KAAK"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AACpB,OAAO,iBAAiB,CAAA;AASxB,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oEAAoE;IACpE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,iBAAwB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAgC9C;kBAhCuB,KAAK;;;;;eAAL,KAAK"}
@@ -8,6 +8,7 @@ import Image from './image/image';
8
8
  import OpenLayersMap from './map/openLayersMap';
9
9
  import MarkedMarkdown from './markdown/markedMarkdown';
10
10
  import MarkedStreamingMarkdown from './markdown/markedStreamingMarkdown';
11
+ import PopoverMenu from './menu/popoverMenu';
11
12
  import MessageCanvas from './messageCanvas/messageCanvas';
12
13
  import MessageSpace from './messageSpace/messageSpace';
13
14
  import NavBar from './navBar/navBar';
@@ -18,6 +19,6 @@ import Text from './text/text';
18
19
  import TextInput from './textInput/textInput';
19
20
  import Timestamp from './timestamp/timestamp';
20
21
  import YoutubeVideo from './video/youtubeVideo';
21
- export { CodeSnippet, ElementRenderer, FCCalendar, Image, MarkedMarkdown, MarkedStreamingMarkdown, MessageCanvas, MessageSpace, NavBar, OpenLayersMap, ParticipantsContainer, RechartsTimeSeries, rusticDarkTheme, rusticLightTheme, rusticTheme, StreamingText, Table, Text, TextInput, Timestamp, YoutubeVideo, };
22
+ export { CodeSnippet, ElementRenderer, FCCalendar, Image, MarkedMarkdown, MarkedStreamingMarkdown, MessageCanvas, MessageSpace, NavBar, OpenLayersMap, ParticipantsContainer, PopoverMenu, RechartsTimeSeries, rusticDarkTheme, rusticLightTheme, rusticTheme, StreamingText, Table, Text, TextInput, Timestamp, YoutubeVideo, };
22
23
  export * from './types';
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,UAAU,MAAM,uBAAuB,CAAA;AAC9C,OAAO,kBAAkB,MAAM,4BAA4B,CAAA;AAC3D,OAAO,WAAW,MAAM,2BAA2B,CAAA;AACnD,OAAO,eAAe,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,uBAAuB,MAAM,oCAAoC,CAAA;AACxE,OAAO,aAAa,MAAM,+BAA+B,CAAA;AACzD,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAChD,OAAO,IAAI,MAAM,aAAa,CAAA;AAC9B,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,YAAY,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EACL,WAAW,EACX,eAAe,EACf,UAAU,EACV,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,YAAY,GACb,CAAA;AAED,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAClE,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,UAAU,MAAM,uBAAuB,CAAA;AAC9C,OAAO,kBAAkB,MAAM,4BAA4B,CAAA;AAC3D,OAAO,WAAW,MAAM,2BAA2B,CAAA;AACnD,OAAO,eAAe,MAAM,mCAAmC,CAAA;AAC/D,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,cAAc,MAAM,2BAA2B,CAAA;AACtD,OAAO,uBAAuB,MAAM,oCAAoC,CAAA;AACxE,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAC5C,OAAO,aAAa,MAAM,+BAA+B,CAAA;AACzD,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,aAAa,MAAM,sBAAsB,CAAA;AAChD,OAAO,IAAI,MAAM,aAAa,CAAA;AAC9B,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,YAAY,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EACL,WAAW,EACX,eAAe,EACf,UAAU,EACV,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,YAAY,EACZ,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,KAAK,EACL,IAAI,EACJ,SAAS,EACT,SAAS,EACT,YAAY,GACb,CAAA;AAED,cAAc,SAAS,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import 'ol/ol.css';
2
+ import './openLayersMap.css';
2
3
  export interface OpenLayersMapProps {
3
4
  /** Longitude in decimal degrees. */
4
5
  longitude: number;
@@ -6,20 +7,11 @@ export interface OpenLayersMapProps {
6
7
  latitude: number;
7
8
  /** Zoom level. It is recommended that this unit stays below 20 for useful results. */
8
9
  zoom?: number;
9
- /** Width rendered in pixels. */
10
- width?: number;
11
- /** Height rendered in pixels. */
12
- height?: number;
13
- /** Size of the location marker rendered in rems. */
14
- markerSize?: number;
15
10
  }
16
11
  declare function OpenLayersMap(props: OpenLayersMapProps): import("react/jsx-runtime").JSX.Element;
17
12
  declare namespace OpenLayersMap {
18
13
  var defaultProps: {
19
14
  zoom: number;
20
- width: number;
21
- height: number;
22
- markerSize: number;
23
15
  };
24
16
  }
25
17
  export default OpenLayersMap;
@@ -1 +1 @@
1
- {"version":3,"file":"openLayersMap.d.ts","sourceRoot":"","sources":["../../../src/components/map/openLayersMap.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAA;AAclB,MAAM,WAAW,kBAAkB;IACjC,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,iBAAwB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAuE9D;kBAvEuB,aAAa;;;;;;;;eAAb,aAAa"}
1
+ {"version":3,"file":"openLayersMap.d.ts","sourceRoot":"","sources":["../../../src/components/map/openLayersMap.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAA;AAClB,OAAO,qBAAqB,CAAA;AAc5B,MAAM,WAAW,kBAAkB;IACjC,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAA;IAChB,sFAAsF;IACtF,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,iBAAwB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAwE9D;kBAxEuB,aAAa;;;;;eAAb,aAAa"}
@@ -0,0 +1,20 @@
1
+ import './popoverMenu.css';
2
+ import type { ReactNode } from 'react';
3
+ import React from 'react';
4
+ export interface PopoverMenuItem {
5
+ label: string;
6
+ onClick: (event?: React.MouseEvent<HTMLElement>) => void;
7
+ startDecorator?: ReactNode;
8
+ endDecorator?: ReactNode;
9
+ }
10
+ export interface PopoverMenuProps {
11
+ menuItems: PopoverMenuItem[];
12
+ /** Aria-label to describe the button for assistive technology. */
13
+ ariaLabel: string;
14
+ /** Provide your own customized icon. */
15
+ icon?: ReactNode;
16
+ /** Text to display on the button. */
17
+ buttonText?: string;
18
+ }
19
+ export default function PopoverMenu(props: PopoverMenuProps): import("react/jsx-runtime").JSX.Element;
20
+ //# sourceMappingURL=popoverMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popoverMenu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/popoverMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAA;AAa1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAA2B,MAAM,OAAO,CAAA;AAE/C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAA;IACxD,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,YAAY,CAAC,EAAE,SAAS,CAAA;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,eAAe,EAAE,CAAA;IAC5B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAA;IACjB,wCAAwC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CA6G1D"}
@@ -2,12 +2,14 @@ import './messageCanvas.css';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { ThreadableMessage } from '../types';
4
4
  export interface MessageCanvasProps {
5
+ /** Profile icon to be shown before sender's name. */
6
+ getProfileComponent?: (message: ThreadableMessage) => ReactNode;
5
7
  /** Message information to be displayed. Please see the `MessageSpace` docs for more information about the `ThreadableMessage` interface. */
6
8
  message: ThreadableMessage;
7
9
  /** React component to be displayed in the message canvas. */
8
10
  children: ReactNode;
9
- /** Interactions with the message. For example, this could be a list of buttons for different actions (e.g. copy, delete, save, etc.) */
10
- messageInteractions?: (message: ThreadableMessage) => ReactNode;
11
+ /** Message actions. For example, this could be a list of buttons for different actions (e.g. copy, delete, save, etc.) */
12
+ getActionsComponent?: (message: ThreadableMessage) => ReactNode;
11
13
  }
12
14
  export default function MessageCanvas(props: MessageCanvasProps): import("react/jsx-runtime").JSX.Element;
13
15
  //# sourceMappingURL=messageCanvas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messageCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/messageCanvas/messageCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAK5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,kBAAkB;IACjC,4IAA4I;IAC5I,OAAO,EAAE,iBAAiB,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,wIAAwI;IACxI,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,CAAA;CAChE;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAoB9D"}
1
+ {"version":3,"file":"messageCanvas.d.ts","sourceRoot":"","sources":["../../../src/components/messageCanvas/messageCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAK5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,CAAA;IAC/D,4IAA4I;IAC5I,OAAO,EAAE,iBAAiB,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,EAAE,SAAS,CAAA;IACnB,0HAA0H;IAC1H,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,SAAS,CAAA;CAChE;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAoC9D"}
@@ -4,7 +4,7 @@ import type { ComponentMap, ThreadableMessage } from '../types';
4
4
  export interface MessageSpaceProps {
5
5
  supportedElements: ComponentMap;
6
6
  messages?: ThreadableMessage[];
7
- messageInteractions?: (message: ThreadableMessage) => ReactNode;
7
+ getActionsComponent?: (message: ThreadableMessage) => ReactNode;
8
8
  }
9
9
  declare const MessageSpace: (props: MessageSpaceProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default MessageSpace;
@@ -1,4 +1,8 @@
1
1
  import './table.css';
2
+ export interface TableHeader {
3
+ dataKey: string;
4
+ label?: string;
5
+ }
2
6
  export type TableProps = {
3
7
  /** Data to be displayed in the table. */
4
8
  data: Array<Record<string, string | number>>;
@@ -6,8 +10,7 @@ export type TableProps = {
6
10
  title?: string;
7
11
  /** Description of the table. */
8
12
  description?: string;
9
- /** Use this prop to set customized headers. If none is provided, headers will be taken from the keys of the data objects from the `data` prop array. */
10
- headers?: string[];
13
+ headers?: TableHeader[];
11
14
  };
12
15
  export default function Table(props: TableProps): import("react/jsx-runtime").JSX.Element;
13
16
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAcpB,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,wJAAwJ;IACxJ,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAyD9C"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAcpB,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAA;IAC5C,kGAAkG;IAClG,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAA;CACxB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,KAAK,EAAE,UAAU,2CAwD9C"}
@@ -1,19 +1,17 @@
1
- import './youtubeVideo.css';
1
+ import '../../index.css';
2
2
  export interface YoutubeVideoProps {
3
- /** The string after "?v=" parameter of YoutTube URLs. */
3
+ /** The string after "?v=" parameter of YouTube URLs. */
4
4
  youtubeVideoId: string;
5
+ /** Width rendered in pixels. If neither width nor height are provided, the video will be set to be contained in the parent container. */
6
+ width?: number;
5
7
  /** Height rendered in pixels. */
6
8
  height?: number;
7
- /** Width rendered in pixels. */
8
- width?: number;
9
9
  /** Title of the video used for assistive technology. */
10
10
  title?: string;
11
11
  }
12
12
  declare function YoutubeVideo(props: YoutubeVideoProps): import("react/jsx-runtime").JSX.Element;
13
13
  declare namespace YoutubeVideo {
14
14
  var defaultProps: {
15
- height: number;
16
- width: number;
17
15
  title: string;
18
16
  };
19
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"youtubeVideo.d.ts","sourceRoot":"","sources":["../../../src/components/video/youtubeVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAA;AAQ3B,MAAM,WAAW,iBAAiB;IAChC,yDAAyD;IACzD,cAAc,EAAE,MAAM,CAAA;IACtB,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,iBAAwB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CA4B5D;kBA5BuB,YAAY;;;;;;;eAAZ,YAAY"}
1
+ {"version":3,"file":"youtubeVideo.d.ts","sourceRoot":"","sources":["../../../src/components/video/youtubeVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAA;AAOxB,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,cAAc,EAAE,MAAM,CAAA;IACtB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,iBAAwB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAa5D;kBAbuB,YAAY;;;;;eAAZ,YAAY"}
package/dist/index.css CHANGED
@@ -73,15 +73,92 @@
73
73
  padding: 24px;
74
74
  overflow-x: auto;
75
75
  }
76
- .rustic-image-responsive {
76
+ figcaption {
77
+ word-wrap: break-word;
78
+ margin-top: 16px;
79
+ }
80
+
81
+ figure {
82
+ margin-inline: 0;
83
+ margin-block: 0;
84
+ }
85
+ body {
86
+ margin: 0;
87
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
88
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
89
+ sans-serif;
90
+ -webkit-font-smoothing: antialiased;
91
+ -moz-osx-font-smoothing: grayscale;
92
+ }
93
+
94
+ code {
95
+ font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
96
+ monospace;
97
+ }
98
+
99
+ .rustic-fit-container {
77
100
  object-fit: contain;
78
101
  width: 100%;
79
102
  height: 100%;
80
103
  }
81
- .rustic-message-canvas-card {
104
+ .rustic-open-layers-map-canvas {
105
+ height: 200px;
106
+ width: 100%;
107
+ }
108
+
109
+ .rustic-open-layers-map-marker {
110
+ font-size: 40px;
111
+ }
112
+ .rustic-popover-menu ul {
113
+ padding: 0;
114
+ min-width: 240px;
115
+ }
116
+
117
+ .rustic-popover-menu li {
118
+ padding-block: 8px;
119
+ }
120
+
121
+ .rustic-popover-menu-button {
122
+ text-transform: none;
123
+ }
124
+
125
+ .rustic-popover-menu-item-icon {
126
+ display: flex;
127
+ }
128
+
129
+ .rustic-popover-menu-item-start-icon {
130
+ margin-right: 8px;
131
+ }
132
+
133
+ .rustic-message-canvas {
134
+ display: flex;
135
+ flex-direction: column;
136
+ gap: 4px;
137
+ }
138
+
139
+ .rustic-message-canvas .rustic-message-actions-container {
82
140
  padding: 16px;
83
141
  }
84
142
 
143
+ .rustic-message-canvas .rustic-sender-info {
144
+ display: flex;
145
+ gap: 8px;
146
+ }
147
+
148
+ .rustic-message-canvas .rustic-message-footer {
149
+ opacity: 0;
150
+ display: flex;
151
+ align-items: center;
152
+ }
153
+
154
+ .rustic-message-canvas:hover .rustic-message-footer {
155
+ opacity: 1;
156
+ }
157
+
158
+ .rustic-message-canvas .rustic-timestamp {
159
+ margin-left: auto;
160
+ }
161
+
85
162
  .rustic-messages-space {
86
163
  overflow-y: scroll;
87
164
  display: flex;
@@ -121,7 +198,6 @@
121
198
 
122
199
  .rustic-participant-list-item {
123
200
  justify-content: space-between;
124
- gap: 16px;
125
201
  display: flex;
126
202
  align-items: center;
127
203
  gap: 8px;
@@ -155,22 +231,7 @@
155
231
  overflow-wrap: break-word;
156
232
  }
157
233
 
158
- .rustic-textfield {
234
+ .rustic-text-input {
159
235
  border-radius: 16px;
160
236
  }
161
237
 
162
- .rustic-youtube-video {
163
- display: flex;
164
- position: relative;
165
- }
166
-
167
- .rustic-youtube-video-loading-container {
168
- position: absolute;
169
- z-index: 10;
170
- display: flex;
171
- justify-content: center;
172
- align-items: center;
173
- width: 100%;
174
- height: 100%;
175
- }
176
-