@epam/ai-dial-ui-kit 0.15.0-dev.13 → 0.15.0-dev.14
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 +33 -0
- package/dist/CHANGELOG.md +4 -0
- package/dist/DateCellRenderer-Cci6cUvX.cjs +1 -0
- package/dist/{DateCellRenderer-S5QJV-Wp.cjs → DateCellRenderer-Cm09x2e4.cjs} +2 -2
- package/dist/IconButton-CVttu-k-.cjs +1 -0
- package/dist/{JsonEditor-qv1Z0dLX.cjs → JsonEditor-BDe6elKO.cjs} +1 -1
- package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-C7BONfsl.cjs} +1 -1
- package/dist/{MarkdownEditor-jQ8nDJfx.cjs → MarkdownEditor-FVzYMdkC.cjs} +1 -1
- package/dist/{MarkdownEditorContainer-Bzcnoemw.cjs → MarkdownEditorContainer-BA94ffC4.cjs} +1 -1
- package/dist/{Switch-CUKClcEz.cjs → Switch-CfxMs3AZ.cjs} +1 -1
- package/dist/components/Dropdown/constants.js +5 -5
- package/dist/components/New/Calendar/constants.js +5 -5
- package/dist/components/New/Dropdown/Dropdown.js +94 -93
- package/dist/components/New/Dropdown/constants.js +3 -3
- package/dist/components/New/InteractiveTooltip/constants.js +2 -2
- package/dist/components/New/Popup/constants.js +3 -3
- package/dist/components/New/Tooltip/constants.js +1 -1
- package/dist/components/Popup/constants.js +8 -8
- package/dist/components/Tooltip/TooltipContent.js +11 -11
- package/dist/components-manifest.json +9 -3
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/lazy-BEsZqouS.cjs +1 -0
- package/dist/merge-classes-BEJXjzkx.cjs +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
- package/dist/src/components/New/Calendar/constants.d.ts +1 -1
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
- package/dist/src/components/Popup/constants.d.ts +1 -1
- package/dist/use-file-manager-tabs-Atz7tLcd.cjs +3 -0
- package/dist/utils/merge-classes.js +12 -5
- package/dist/utils/sub-menu-floating.js +11 -11
- package/package.json +1 -1
- package/dist/DateCellRenderer-Ba9tlNbk.cjs +0 -1
- package/dist/IconButton-DWqoaBWf.cjs +0 -1
- package/dist/lazy-tfN4sKhq.cjs +0 -1
- package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
- 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-
|
|
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
|
|
14
|
-
*
|
|
15
|
-
*
|
|
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-
|
|
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PopupSize } from '../../../types/popup';
|
|
2
|
-
export declare const popupOverlayBaseClassName = "z-
|
|
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
|
|
23
|
-
*
|
|
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-
|
|
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-
|
|
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>;
|