@epam/ai-dial-sidebar 1.1.0-dev.30 → 1.1.0-dev.307

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.
@@ -6,8 +6,6 @@ export interface SidebarPanelColors {
6
6
  background?: string;
7
7
  /** Divider border color on the inner edge. */
8
8
  border?: string;
9
- /** Border color on the outer (inline-end) edge. Defaults to `border`. */
10
- borderInlineEnd?: string;
11
9
  /** Header text color. */
12
10
  text?: string;
13
11
  /** Resize handle color (icon and background). */
@@ -15,22 +13,14 @@ export interface SidebarPanelColors {
15
13
  }
16
14
  /** Typography overrides for the `SidebarPanel` component. */
17
15
  export interface SidebarPanelTypography {
18
- /**
19
- * A Tailwind font utility class applied to the panel root.
20
- * When provided, individual `fontFamily` / `fontSize` vars are skipped.
21
- */
16
+ /** CSS class applied to the panel root, inherited by all panel content. */
22
17
  fontClassName?: string;
23
- /** Font family applied to the panel root via CSS custom property. */
24
- fontFamily?: string;
25
18
  }
26
19
  /** Localised accessible labels for the `SidebarPanel` component. */
27
20
  export interface SidebarPanelLabels {
28
- /** Accessible label for the panel region. Caller supplies the localised string. */
21
+ /** Accessible label for the panel region. */
29
22
  ariaLabel: string;
30
- /**
31
- * Accessible label and tooltip for the built-in close button.
32
- * Required when `onClose` is provided.
33
- */
23
+ /** Accessible label and tooltip for the close button. Required when `onClose` is provided. */
34
24
  closeLabel?: string;
35
25
  }
36
26
  /** Combined style overrides (colors and typography) for the `SidebarPanel` component. */
@@ -39,10 +29,7 @@ export interface SidebarPanelStyles {
39
29
  colors?: SidebarPanelColors;
40
30
  /** Typography overrides applied via CSS custom properties. */
41
31
  typography?: SidebarPanelTypography;
42
- /**
43
- * CSS class applied to the title element.
44
- * Defaults to `'dial-body-semi-bold-text'`.
45
- */
32
+ /** CSS class applied to the header title element. Defaults to `'dial-h1-text'`. */
46
33
  titleClassName?: string;
47
34
  /** Extra class name(s) merged onto the scrollable body `<div>`. */
48
35
  bodyClassName?: string;
@@ -55,36 +42,17 @@ export interface SidebarPanelStyles {
55
42
  }
56
43
  /** Props accepted by the `SidebarPanel` component. */
57
44
  export interface SidebarPanelProps {
58
- /**
59
- * Whether the panel is currently open.
60
- * When provided, the wrapper adds a slide-in width animation and
61
- * `aria-hidden` is set on the panel when closed.
62
- */
45
+ /** Whether the panel is open; drives the slide-in animation and sets `aria-hidden` when closed. */
63
46
  isOpen: boolean;
64
- /**
65
- * Which edge the panel anchors to.
66
- * Controls the divider side (`border-s` vs `border-e`) and
67
- * the close-button placement (outer edge of the panel).
68
- * `leftActions` / `rightActions` are header-bar positions and are
69
- * independent of this prop.
70
- */
47
+ /** Edge the panel anchors to; drives the divider side and close-button placement. */
71
48
  orientation: SidebarOrientation;
72
- /**
73
- * Title text rendered in the header bar between the action groups.
74
- * Truncated with an ellipsis when the panel is too narrow.
75
- */
49
+ /** Title rendered in the header bar between the start and end action slots. */
76
50
  title?: ReactNode;
77
51
  /** Rendered in the left group of the 48 px header bar. */
78
52
  leftActions?: ReactNode;
79
- /**
80
- * Rendered in the right group of the 48 px header bar, immediately
81
- * before the built-in close button when `orientation === SidebarOrientation.Right`.
82
- */
53
+ /** Content for the end (right) slot of the header bar. */
83
54
  rightActions?: ReactNode;
84
- /**
85
- * Called when the user activates the built-in close button.
86
- * When omitted the close button is not rendered.
87
- */
55
+ /** Called when the user closes the panel; omit to hide the close button. */
88
56
  onClose?: () => void;
89
57
  /** Localised accessible labels for the panel region and close button. */
90
58
  labels: SidebarPanelLabels;
@@ -92,11 +60,7 @@ export interface SidebarPanelProps {
92
60
  children: ReactNode;
93
61
  /** Style overrides for colors, typography, and element class names. */
94
62
  styles?: SidebarPanelStyles;
95
- /**
96
- * Enables drag-to-resize on the panel edge opposite to `orientation`.
97
- * When false (default) the panel renders at a width determined by `className`.
98
- * Automatically disabled when `isOpen` is false.
99
- */
63
+ /** Enables drag-to-resize on the panel edge opposite to `orientation`. Defaults to `false`. */
100
64
  resizable?: boolean;
101
65
  /** Initial panel width in px used when `resizable` is true. Defaults to `360`. */
102
66
  defaultWidth?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"panel-props.d.ts","sourceRoot":"","sources":["../../src/models/panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,oEAAoE;AACpE,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yFAAyF;AACzF,MAAM,WAAW,kBAAkB;IACjC,wDAAwD;IACxD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oEAAoE;IACpE,OAAO,CAAC,EAA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,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-sidebar",
3
3
  "description": "Resizable sidebar panel shell with header, search, and empty state components",
4
- "version": "1.1.0-dev.30",
4
+ "version": "1.1.0-dev.307",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,11 +17,10 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.1.0-dev.30",
21
- "@epam/ai-dial-kit": "1.1.0-dev.30",
22
- "@epam/ai-dial-ui-kit": "0.12.0-dev.36",
20
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.307",
23
21
  "@tabler/icons-react": "^3.44.0",
24
- "react": "^19.0.0"
22
+ "react": "^19.0.0",
23
+ "@epam/ai-dial-ui-kit": "*"
25
24
  },
26
25
  "repository": {
27
26
  "type": "git",
@@ -1,44 +0,0 @@
1
- import { FC } from 'react';
2
- /** All user-visible strings in {@link SearchInputProps}. */
3
- export interface SearchInputLabels {
4
- /** Placeholder text (e.g. `"Search chat…"`). */
5
- placeholder: string;
6
- /** Accessible label for the clear-search button. */
7
- clearLabel: string;
8
- /** Accessible label for the search input. Defaults to `placeholder` when omitted. */
9
- ariaLabel?: string;
10
- }
11
- /** CSS custom-property overrides for the `SearchInput` component. */
12
- export interface SearchInputColors {
13
- /** Search icon color. */
14
- icon?: string;
15
- }
16
- /** Combined style overrides (colors and class names) for the `SearchInput` component. */
17
- export interface SearchInputStyles {
18
- /** Color overrides applied as CSS custom properties. */
19
- colors?: SearchInputColors;
20
- /** CSS class applied to the search icon. Defaults to the module's `.icon` class (`--text-secondary`). */
21
- iconClassName?: string;
22
- /** CSS class applied to the outer wrapper, merged over the default `'px-2 py-1'`. Override to change the pill's horizontal inset. */
23
- wrapperClassName?: string;
24
- /** CSS class applied to the search row, merged after its own border/radius defaults. Use an important-modifier class (e.g. `'!rounded-lg'`) to override the default pill shape. */
25
- rowClassName?: string;
26
- }
27
- /** Props for `SearchInput`. */
28
- export interface SearchInputProps {
29
- /** Current search query value. */
30
- value: string;
31
- /** Called whenever the query changes. */
32
- onChange: (value: string) => void;
33
- /** User-visible strings. */
34
- labels: SearchInputLabels;
35
- /** Style overrides for colors and element class names. */
36
- styles?: SearchInputStyles;
37
- }
38
- /**
39
- * Minimal search input with icon positioned to align with sibling action buttons.
40
- * Reuses the shared {@link SearchBar} default colors (border, hover/focus, icon
41
- * and text colors) and only adjusts shape (pill) and background for the sidebar.
42
- */
43
- export declare const SearchInput: FC<SearchInputProps>;
44
- //# sourceMappingURL=SearchInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAiB,MAAM,OAAO,CAAC;AAG/C,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yFAAyF;AACzF,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,yGAAyG;IACzG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qIAAqI;IACrI,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mLAAmL;IACnL,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4BAA4B;IAC5B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,0DAA0D;IAC1D,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA4C5C,CAAC"}