@epam/ai-dial-ui-kit 0.15.0-dev.13 → 0.15.0-dev.15

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 (45) hide show
  1. package/README.md +33 -0
  2. package/dist/CHANGELOG.md +6 -0
  3. package/dist/DateCellRenderer-Cci6cUvX.cjs +1 -0
  4. package/dist/{DateCellRenderer-S5QJV-Wp.cjs → DateCellRenderer-Cm09x2e4.cjs} +2 -2
  5. package/dist/IconButton-CVttu-k-.cjs +1 -0
  6. package/dist/{JsonEditor-qv1Z0dLX.cjs → JsonEditor-BDe6elKO.cjs} +1 -1
  7. package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-C7BONfsl.cjs} +1 -1
  8. package/dist/{MarkdownEditor-jQ8nDJfx.cjs → MarkdownEditor-FVzYMdkC.cjs} +1 -1
  9. package/dist/{MarkdownEditorContainer-Bzcnoemw.cjs → MarkdownEditorContainer-BA94ffC4.cjs} +1 -1
  10. package/dist/{Switch-CUKClcEz.cjs → Switch-CfxMs3AZ.cjs} +1 -1
  11. package/dist/components/Dropdown/constants.js +5 -5
  12. package/dist/components/New/Calendar/constants.js +5 -5
  13. package/dist/components/New/Dropdown/Dropdown.js +94 -93
  14. package/dist/components/New/Dropdown/constants.js +3 -3
  15. package/dist/components/New/InteractiveTooltip/constants.js +2 -2
  16. package/dist/components/New/Notification/Notification.js +37 -35
  17. package/dist/components/New/Popup/constants.js +3 -3
  18. package/dist/components/New/Tooltip/constants.js +1 -1
  19. package/dist/components/Popup/constants.js +8 -8
  20. package/dist/components/Tooltip/TooltipContent.js +11 -11
  21. package/dist/components-manifest.json +16 -4
  22. package/dist/dial-ui-kit.cjs +2 -2
  23. package/dist/editors.cjs +1 -1
  24. package/dist/file-manager.cjs +1 -1
  25. package/dist/grid.cjs +1 -1
  26. package/dist/index.css +1 -1
  27. package/dist/lazy-BEsZqouS.cjs +1 -0
  28. package/dist/merge-classes-BEJXjzkx.cjs +1 -0
  29. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
  30. package/dist/src/components/New/Calendar/constants.d.ts +1 -1
  31. package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
  32. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
  33. package/dist/src/components/New/Notification/Notification.d.ts +18 -0
  34. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  35. package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
  36. package/dist/src/components/Popup/constants.d.ts +1 -1
  37. package/dist/use-file-manager-tabs-Atz7tLcd.cjs +3 -0
  38. package/dist/utils/merge-classes.js +12 -5
  39. package/dist/utils/sub-menu-floating.js +11 -11
  40. package/package.json +1 -1
  41. package/dist/DateCellRenderer-Ba9tlNbk.cjs +0 -1
  42. package/dist/IconButton-DWqoaBWf.cjs +0 -1
  43. package/dist/lazy-tfN4sKhq.cjs +0 -1
  44. package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
  45. package/dist/use-file-manager-tabs-Ff6KIQOF.cjs +0 -3
@@ -4,7 +4,7 @@ export declare const calendarModeDefaultPlaceholder: Record<CalendarMode, string
4
4
  export declare const calendarFieldBaseClassName = "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-raised px-4 py-3 dial-small-text text-primary outline-none transition-colors hover:border-accent-alpha focus-within:border-accent-focus";
5
5
  export declare const calendarFieldDisabledClassName = "!cursor-not-allowed !border-transparent bg-layer-sunken text-control-disable-primary hover:!border-transparent";
6
6
  export declare const calendarFieldInvalidClassName = "!border-error";
7
- export declare const calendarPopoverClassName = "z-[53] flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-2 py-4 shadow-md";
7
+ export declare const calendarPopoverClassName = "z-floating flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-2 py-4 shadow-md";
8
8
  export declare const calendarDayButtonBaseClassName = "flex size-10 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus";
9
9
  export declare const calendarDaySelectedClassName = "bg-control-accent text-control-permanent";
10
10
  export declare const calendarDayTodayClassName = "text-accent dial-small-semi-text";
@@ -1,5 +1,5 @@
1
1
  import { Placement } from '@floating-ui/react';
2
- import { FC, MouseEvent, ReactNode, RefObject } from 'react';
2
+ import { CSSProperties, FC, MouseEvent, ReactNode, RefObject } from 'react';
3
3
  import { DropdownTrigger } from '../../../types/dropdown';
4
4
  import { DropdownItem } from '../../../models/dropdown';
5
5
  export interface DropdownProps {
@@ -25,6 +25,13 @@ export interface DropdownProps {
25
25
  overlayContentClassName?: string;
26
26
  separatorClassName?: string;
27
27
  listClassName?: string;
28
+ /**
29
+ * Inline style for the floating overlay. The overlay renders in a portal, so
30
+ * this is the only way to hand it CSS custom properties from a caller's own
31
+ * scope — e.g. theme variables that its rows and header read. Positioning
32
+ * stays the dropdown's own: `floatingStyles` is applied on top of it.
33
+ */
34
+ listStyle?: CSSProperties;
28
35
  outsidePressIgnoreRef?: RefObject<HTMLElement | null>;
29
36
  outsideClosable?: boolean;
30
37
  anchorToMouse?: boolean;
@@ -97,6 +104,7 @@ export interface DropdownProps {
97
104
  * @param [overlayContentClassName] - Additional CSS classes applied to the overlay content
98
105
  * @param [separatorClassName] - Additional CSS classes applied to the separators between items
99
106
  * @param [listClassName] - Additional CSS classes applied to the floating overlay
107
+ * @param [listStyle] - Inline style applied to the floating overlay, under the dropdown's own positioning styles
100
108
  * @param [outsidePressIgnoreRef] - Ref to an element that should not trigger outside press behavior
101
109
  * @param [outsideClosable=true] - Whether clicks outside the overlay should close it
102
110
  * @param [anchorToMouse=false] - Whether to anchor the dropdown to the mouse position
@@ -10,9 +10,10 @@ export declare const INTERACTIVE_TOOLTIP_GAP = 8;
10
10
  */
11
11
  export declare const INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY = 400;
12
12
  /**
13
- * The panel sits above the surface it is anchored to — a dropdown or select
14
- * overlay, both `z-[53]` — since it can be opened from a row inside one of
15
- * them.
13
+ * The panel sits one step of the overlay ladder (`z-interactive-tooltip`, see
14
+ * `zIndex` in `tailwind.config.js`) above the surface it is anchored to — a
15
+ * dropdown or select overlay, both `z-floating` — since it can be opened from
16
+ * a row inside one of them.
16
17
  *
17
18
  * By style this is a neutral floating panel rather than the coloured
18
19
  * `Notification` banner: it shares the raised-card shape a dropdown or the
@@ -23,4 +24,4 @@ export declare const INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY = 400;
23
24
  * Padding and width are the panel's own, sized for a block of copy and
24
25
  * controls rather than a menu row.
25
26
  */
26
- export declare const interactiveTooltipClassName = "z-[54] max-w-[320px] rounded-xl bg-layer-0 p-4 dial-small-text text-primary shadow-md";
27
+ export declare const interactiveTooltipClassName = "z-interactive-tooltip max-w-[320px] rounded-xl bg-layer-0 p-4 dial-small-text text-primary shadow-md";
@@ -5,6 +5,7 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
5
5
  type?: NotificationType;
6
6
  title?: ReactNode;
7
7
  message: ReactNode;
8
+ action?: ReactNode;
8
9
  closable?: boolean;
9
10
  iconSize?: number;
10
11
  iconStroke?: number;
@@ -57,12 +58,29 @@ export interface NotificationProps extends Omit<HTMLAttributes<HTMLDivElement>,
57
58
  * title="Title"
58
59
  * message="Description text example"
59
60
  * />
61
+ *
62
+ * <Notification
63
+ * variant={NotificationVariant.Error}
64
+ * type={NotificationType.SectionMessage}
65
+ * title="Couldn't finish this response"
66
+ * message="Something went wrong. Try again in a moment."
67
+ * action={
68
+ * <Button
69
+ * variant={ButtonVariant.Neutral}
70
+ * appearance={ButtonAppearance.Outlined}
71
+ * size={ElementSize.Small}
72
+ * label="Try again"
73
+ * onClick={handleRetry}
74
+ * />
75
+ * }
76
+ * />
60
77
  * ```
61
78
  *
62
79
  * @param [variant=NotificationVariant.Info] - Defines the visual style and icon of the alert
63
80
  * @param [type=NotificationType.Toast] - Defines the type of notification, either a toast or a section message
64
81
  * @param [title] - Optional heading displayed above the message in semibold
65
82
  * @param message - Message text to display inside the alert
83
+ * @param [action] - Optional control (typically a small `Button`) rendered at the inline end, after the text and before the close button; the caller supplies its accessible name
66
84
  * @param [className] - Additional CSS classes applied to the alert container
67
85
  * @param [textClassName] - Additional CSS classes applied to the message text
68
86
  * @param [closable=false] - Whether the alert has a close button
@@ -1,5 +1,5 @@
1
1
  import { PopupSize } from '../../../types/popup';
2
- export declare const popupOverlayBaseClassName = "z-[52] flex items-center justify-center bg-backdrop md:p-4 gap-5 p-6";
2
+ export declare const popupOverlayBaseClassName = "z-popup flex items-center justify-center bg-backdrop md:p-4 gap-5 p-6";
3
3
  export declare const popupBaseClassName = "relative flex w-full max-h-full flex-col rounded-xl bg-layer-raised md:h-auto";
4
4
  export declare const popupHeaderClassName = "flex flex-row items-center justify-between px-6 py-4";
5
5
  export declare const popupTitleClassName = "flex-1 min-w-0 mr-3 truncate dial-h1-text text-primary";
@@ -19,8 +19,10 @@ export declare const HOVER_OPEN_DELAY = 500;
19
19
  */
20
20
  export declare const arrowClassName = "fill-control-inverted";
21
21
  /**
22
- * Tooltips sit above popups, dropdowns and the calendar (all `z-[53]`), since
23
- * they can be triggered by a control inside one of them.
22
+ * Tooltips sit at the top of the overlay ladder (`z-tooltip`, see `zIndex` in
23
+ * `tailwind.config.js`) — above popups (`z-popup`), dropdowns and the calendar
24
+ * (`z-floating`) and interactive tooltips — since they can be triggered by a
25
+ * control inside any of them.
24
26
  *
25
27
  * `max-w-[376px]` is the cap the design puts on a tooltip: at `dial-small-text`
26
28
  * that is around 60 characters a line, past which a line stops being
@@ -36,4 +38,4 @@ export declare const arrowClassName = "fill-control-inverted";
36
38
  * nothing to see around a 7px triangle that the box's own shadow does not
37
39
  * already carry.
38
40
  */
39
- export declare const tooltipClassName = "z-[55] max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs";
41
+ export declare const tooltipClassName = "z-tooltip max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs";
@@ -1,5 +1,5 @@
1
1
  import { PopupSize } from '../../types/popup';
2
- export declare const overlayBaseClassName = "z-[52] flex items-center justify-center bg-blackout md:p-4";
2
+ export declare const overlayBaseClassName = "z-popup flex items-center justify-center bg-blackout md:p-4";
3
3
  export declare const popupDividerClassName = "divide-tertiary divide-y";
4
4
  export declare const popupHeaderClassName = "flex flex-row justify-between py-4 px-6 items-center";
5
5
  export declare const popupSizeClassMap: Record<PopupSize, string>;