@epam/ai-dial-sidebar 1.0.0-dev.471 → 1.0.0-dev.475

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,6 +6,12 @@ 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
+ /** Header text color. */
12
+ text?: string;
13
+ /** Resize handle color (icon and background). */
14
+ resizeHandler?: string;
9
15
  }
10
16
  /** Typography overrides for the `SidebarPanel` component. */
11
17
  export interface SidebarPanelTypography {
@@ -17,6 +23,16 @@ export interface SidebarPanelTypography {
17
23
  /** Font family applied to the panel root via CSS custom property. */
18
24
  fontFamily?: string;
19
25
  }
26
+ /** Localised accessible labels for the `SidebarPanel` component. */
27
+ export interface SidebarPanelLabels {
28
+ /** Accessible label for the panel region. Caller supplies the localised string. */
29
+ ariaLabel: string;
30
+ /**
31
+ * Accessible label and tooltip for the built-in close button.
32
+ * Required when `onClose` is provided.
33
+ */
34
+ closeLabel?: string;
35
+ }
20
36
  /** Combined style overrides (colors and typography) for the `SidebarPanel` component. */
21
37
  export interface SidebarPanelStyles {
22
38
  /** Color overrides applied as CSS custom properties. */
@@ -30,6 +46,10 @@ export interface SidebarPanelStyles {
30
46
  titleClassName?: string;
31
47
  /** Extra class name(s) merged onto the scrollable body `<div>`. */
32
48
  bodyClassName?: string;
49
+ /** Extra class name(s) merged onto the panel width wrapper `<div>`. */
50
+ className?: string;
51
+ /** CSS class applied to the header element. */
52
+ headerClassName?: string;
33
53
  /** CSS custom properties applied to the panel `<aside>` element. */
34
54
  cssVars?: CSSProperties;
35
55
  }
@@ -43,7 +63,7 @@ export interface SidebarPanelProps {
43
63
  isOpen: boolean;
44
64
  /**
45
65
  * Which edge the panel anchors to.
46
- * Controls the divider side (`border-l` vs `border-r`) and
66
+ * Controls the divider side (`border-s` vs `border-e`) and
47
67
  * the close-button placement (outer edge of the panel).
48
68
  * `leftActions` / `rightActions` are header-bar positions and are
49
69
  * independent of this prop.
@@ -66,19 +86,10 @@ export interface SidebarPanelProps {
66
86
  * When omitted the close button is not rendered.
67
87
  */
68
88
  onClose?: () => void;
69
- /** Accessible label for the panel region. Caller supplies the localised string. */
70
- ariaLabel: string;
71
- /**
72
- * Accessible label and tooltip for the built-in close button.
73
- * Required when `onClose` is provided.
74
- */
75
- closeLabel?: string;
89
+ /** Localised accessible labels for the panel region and close button. */
90
+ labels: SidebarPanelLabels;
76
91
  /** Body content rendered below the header bar in the scrollable region. */
77
92
  children: ReactNode;
78
- /** Extra class name(s) merged onto the panel width wrapper `<div>`. */
79
- className?: string;
80
- /** CSS class applied to the header element. */
81
- headerClassName?: string;
82
93
  /** Style overrides for colors, typography, and element class names. */
83
94
  styles?: SidebarPanelStyles;
84
95
  /**
@@ -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;CACjB;AAED,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,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,cAA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AAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,yEAAyE;IACzE,MAAM,EAAE,kBAAkB,CAAC;IAC3B,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,uEAAuE;IACvE,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,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.0.0-dev.471",
4
+ "version": "1.0.0-dev.475",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,8 +17,8 @@
17
17
  }
18
18
  },
19
19
  "peerDependencies": {
20
- "@epam/ai-dial-chat-shared": "1.0.0-dev.471",
21
- "@epam/ai-dial-kit": "1.0.0-dev.471",
20
+ "@epam/ai-dial-chat-shared": "1.0.0-dev.475",
21
+ "@epam/ai-dial-kit": "1.0.0-dev.475",
22
22
  "@epam/ai-dial-ui-kit": "0.12.0-dev.28",
23
23
  "@tabler/icons-react": "^3.44.0",
24
24
  "react": "^19.0.0"