@epam/ai-dial-ui-kit 0.16.0-dev.5 → 0.16.0-dev.7
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 +1 -1
- package/dist/CHANGELOG.md +10 -2
- package/dist/DateCellRenderer-BZvKj3rU.cjs +1 -0
- package/dist/{DateCellRenderer-ElULb0hY.cjs → DateCellRenderer-CbInykpW.cjs} +2 -2
- package/dist/{IconButton-DHOFapLo.cjs → IconButton-B1Hx0Y3y.cjs} +1 -1
- package/dist/{MarkdownEditorContainer-B5aHwoYF.cjs → MarkdownEditorContainer-DLPODjar.cjs} +1 -1
- package/dist/{Switch-DE6MrcqJ.cjs → Switch-DAaAOaIu.cjs} +1 -1
- package/dist/_virtual/index2.js +2 -5
- package/dist/_virtual/index3.js +5 -2
- package/dist/components/Analytics/Bar/Bar.js +7 -7
- package/dist/components/Analytics/BarGroup/BarGroup.js +18 -18
- package/dist/components/Analytics/Histogram/Histogram.js +10 -10
- package/dist/components/Checkbox/Checkbox.js +9 -9
- package/dist/components/Dropdown/constants.js +2 -2
- package/dist/components/DropdownIcon/DropdownIcon.js +5 -5
- package/dist/components/Grid/Grid.js +11 -11
- package/dist/components/IconButton/IconButton.js +7 -7
- package/dist/components/InputPopup/InputPopup.js +8 -8
- package/dist/components/LoadFileArea/EmptyFileArea.js +28 -28
- package/dist/components/Loader/Loader.js +8 -8
- package/dist/components/New/Avatar/Avatar.js +18 -17
- package/dist/components/New/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/New/Breadcrumbs/constants.js +1 -1
- package/dist/components/New/Calendar/constants.js +4 -4
- package/dist/components/New/Dropdown/constants.js +1 -1
- package/dist/components/New/MenuItem/MenuItem.js +17 -17
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +1 -1
- package/dist/components/New/SideDrawer/SideDrawer.js +1 -1
- package/dist/components/Search/Search.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/constants.js +6 -6
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Steps/Step.js +9 -9
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components-manifest.json +66 -4
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +96 -94
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +2 -6
- package/dist/migration-guides/0.16.0/tailwind-v4-stylesheet.md +98 -0
- package/dist/migration-guides/README.md +1 -0
- package/dist/node_modules/mime-types/index.js +1 -1
- package/dist/node_modules/react-dnd/dist/hooks/useCollector.js +1 -1
- package/dist/src/components/ButtonDropdown/constants.d.ts +2 -2
- package/dist/src/components/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/FileManager/FileManagerTooltip.d.ts +1 -1
- package/dist/src/components/FileManager/hooks/use-tree-additional-buttons.d.ts +1 -1
- package/dist/src/components/Grid/Grid.d.ts +1 -1
- package/dist/src/components/JsonEditor/lazy.d.ts +1 -1
- package/dist/src/components/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/Avatar/Avatar.d.ts +9 -3
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +2 -2
- package/dist/src/components/New/ButtonDropdown/constants.d.ts +1 -1
- package/dist/src/components/New/Calendar/constants.d.ts +5 -5
- package/dist/src/components/New/Dropdown/constants.d.ts +1 -1
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +1 -1
- package/dist/src/components/New/Grid/Grid.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionCell.d.ts +1 -1
- package/dist/src/components/New/Grid/components/SelectionHeader.d.ts +1 -1
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +1 -1
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +1 -1
- package/dist/src/components/New/MenuItem/constants.d.ts +1 -1
- package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/New/Select/constants.d.ts +4 -4
- package/dist/src/components/New/Tooltip/constants.d.ts +2 -2
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/src/components/Select/constants.d.ts +3 -3
- package/dist/src/index.d.ts +3 -2
- package/dist/src/subpaths/editors.d.ts +1 -1
- package/dist/src/types/avatar.d.ts +9 -0
- package/dist/src/utils/avatar.d.ts +2 -1
- package/dist/src/utils/sub-menu-floating.d.ts +1 -1
- package/dist/types/avatar.js +3 -2
- package/dist/use-file-manager-tabs-aymbCxrD.cjs +3 -0
- package/dist/utils/avatar.js +41 -18
- package/dist/utils/sub-menu-floating.js +8 -8
- package/package.json +9 -7
- package/dist/DateCellRenderer-C7yExfh5.cjs +0 -1
- package/dist/use-file-manager-tabs-Bgh8mfOJ.cjs +0 -3
|
@@ -117,4 +117,4 @@ export interface DialGridProps<T extends object = Record<string, unknown>> {
|
|
|
117
117
|
* @param [selectionMode] - Could be GridSelectionMode.MULTIPLE or GridSelectionMode.SINGLE to enable selection column
|
|
118
118
|
* @param [allowDisabledContextMenu] - Enables context menu actions even if row itself is disabled for selection
|
|
119
119
|
*/
|
|
120
|
-
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, }: DialGridProps<T>) => import(
|
|
120
|
+
export declare const DialGrid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, }: DialGridProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
* Vite/Rolldown versions - see `openspec/changes/isolate-heavy-feature-modules`
|
|
12
12
|
* Section 9's `diagnosis-baseline.txt` for the measured reproduction).
|
|
13
13
|
*/
|
|
14
|
-
export declare const LazyDialJsonEditor: () => Promise<typeof import(
|
|
14
|
+
export declare const LazyDialJsonEditor: () => Promise<typeof import('./JsonEditor')>;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* re-export this same binding instead of each declaring their own copy -
|
|
5
5
|
* see `src/components/JsonEditor/lazy.ts`'s comment for why.
|
|
6
6
|
*/
|
|
7
|
-
export declare const LazyDialMarkdownEditor: () => Promise<typeof import(
|
|
7
|
+
export declare const LazyDialMarkdownEditor: () => Promise<typeof import('./MarkdownEditor')>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC, SyntheticEvent } from 'react';
|
|
2
2
|
import { AvatarShape } from '../../../types/avatar';
|
|
3
|
+
import { AvatarColorClasses } from '../../../utils/avatar';
|
|
3
4
|
/** Props for `Avatar`. */
|
|
4
5
|
export interface AvatarProps {
|
|
5
6
|
/** Display name the initials and the colour are derived from. */
|
|
@@ -14,6 +15,8 @@ export interface AvatarProps {
|
|
|
14
15
|
size?: number;
|
|
15
16
|
/** Outline of the avatar. */
|
|
16
17
|
shape?: AvatarShape;
|
|
18
|
+
/** Explicit colour pair overriding the deterministic pick from `name`. */
|
|
19
|
+
color?: AvatarColorClasses;
|
|
17
20
|
/** Additional CSS classes for the avatar. */
|
|
18
21
|
className?: string;
|
|
19
22
|
/** Type-scale class for the initials. When set, it replaces the font size derived from `size`. */
|
|
@@ -28,9 +31,11 @@ export interface AvatarProps {
|
|
|
28
31
|
* Design system 2.0
|
|
29
32
|
*
|
|
30
33
|
* The same name always gets the same colour, drawn from the theme's visual
|
|
31
|
-
* tokens, so a list of avatars stays stable between renders and sessions
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
+
* tokens, so a list of avatars stays stable between renders and sessions; pass
|
|
35
|
+
* `color` to pin one entry of `AVATAR_PALETTE` instead, so every avatar of a
|
|
36
|
+
* kind shares one colour regardless of name or locale. An image that is
|
|
37
|
+
* missing or fails to load falls back to the initials; a new `src` tries the
|
|
38
|
+
* image again.
|
|
34
39
|
*
|
|
35
40
|
* An avatar with an `alt` is a `role="img"` named by it, whether it shows the
|
|
36
41
|
* image or the initials. Without one it is decorative and hidden from
|
|
@@ -48,6 +53,7 @@ export interface AvatarProps {
|
|
|
48
53
|
* @param [alt=''] - Accessible name; empty makes the avatar decorative
|
|
49
54
|
* @param [size=32] - Width and height in px
|
|
50
55
|
* @param [shape=AvatarShape.Circle] - Outline of the avatar
|
|
56
|
+
* @param [color] - Explicit colour pair overriding the deterministic pick from `name`
|
|
51
57
|
* @param [className] - Additional CSS classes for the avatar
|
|
52
58
|
* @param [textClassName] - Type-scale class for the initials, replacing the size-derived font size
|
|
53
59
|
* @param [onImageError] - Called when the image fails to load
|
|
@@ -29,7 +29,7 @@ export declare const currentSizeClassName: Record<BreadcrumbsSize, string>;
|
|
|
29
29
|
*/
|
|
30
30
|
export declare const segmentWidthClassName: Record<'first' | 'middle' | 'last', string>;
|
|
31
31
|
/** The box that draws a segment, around its icon and its label. */
|
|
32
|
-
export declare const segmentClassName = "flex min-w-0 flex-1 items-center gap-1 rounded-
|
|
32
|
+
export declare const segmentClassName = "flex min-w-0 flex-1 items-center gap-1 rounded-xs transition-colors";
|
|
33
33
|
/**
|
|
34
34
|
* A segment the user can follow. Secondary until hovered, then accent — the
|
|
35
35
|
* same pairing the kit's other inline links use.
|
|
@@ -49,7 +49,7 @@ export declare const separatorClassName = "inline-flex flex-none items-center le
|
|
|
49
49
|
* glyph to the 24×24 of WCAG 2.5.8; the enhanced 44×44 target would overhang
|
|
50
50
|
* the segments on either side of it (see the README exception table).
|
|
51
51
|
*/
|
|
52
|
-
export declare const overflowButtonClassName = "dial-kit-minimum-target flex shrink-0 items-center rounded-
|
|
52
|
+
export declare const overflowButtonClassName = "dial-kit-minimum-target flex shrink-0 items-center rounded-xs text-secondary transition-colors hover:text-accent focus-visible:outline focus-visible:outline-offset-2 focus-visible:outline-focus";
|
|
53
53
|
/**
|
|
54
54
|
* Smallest trail the collapse can produce: the root, the ellipsis and the
|
|
55
55
|
* current page. Below that there is nothing left to hide behind the ellipsis.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getButtonChevron: (isOpen: boolean) => import(
|
|
1
|
+
export declare const getButtonChevron: (isOpen: boolean) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CalendarMode } from '../../../types/calendar';
|
|
2
2
|
export declare const DEFAULT_CALENDAR_LOCALE = "en-GB";
|
|
3
3
|
export declare const calendarModeDefaultPlaceholder: Record<CalendarMode, string>;
|
|
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-
|
|
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-hidden 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
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
|
-
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-
|
|
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-hidden 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";
|
|
11
11
|
export declare const calendarDayOutsideClassName = "text-control-disable-primary";
|
|
12
12
|
export declare const calendarFieldIconClassName = "text-secondary";
|
|
13
|
-
export declare const calendarIcon: import(
|
|
13
|
+
export declare const calendarIcon: import('react/jsx-runtime').JSX.Element;
|
|
14
14
|
export declare const calendarNavIcons: {
|
|
15
|
-
prev: import(
|
|
16
|
-
next: import(
|
|
15
|
+
prev: import('react/jsx-runtime').JSX.Element;
|
|
16
|
+
next: import('react/jsx-runtime').JSX.Element;
|
|
17
17
|
};
|
|
@@ -12,4 +12,4 @@ export declare const dropdownItemListClassName: string;
|
|
|
12
12
|
export declare const dropdownItemBaseClassName: string;
|
|
13
13
|
export declare const dropdownDividerClassName = "my-1 border-t border-tertiary";
|
|
14
14
|
export declare const dropdownGap = 4;
|
|
15
|
-
export declare const submenuCaretIcon: import(
|
|
15
|
+
export declare const submenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -66,4 +66,4 @@ export interface FilterChipsProps<T extends string = string> {
|
|
|
66
66
|
* @param [aria-label] - Names the row as a whole
|
|
67
67
|
* @param [aria-labelledby] - Names the row from an existing element, e.g. a visible heading
|
|
68
68
|
*/
|
|
69
|
-
export declare const FilterChips: <T extends string = string>({ items, value, onChange, stretch, className, chipClassName, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: FilterChipsProps<T>) => import(
|
|
69
|
+
export declare const FilterChips: <T extends string = string>({ items, value, onChange, stretch, className, chipClassName, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, }: FilterChipsProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -132,4 +132,4 @@ export interface GridProps<T extends object = Record<string, unknown>> {
|
|
|
132
132
|
* @param [selectAllLabel='Select all rows'] - Accessible name of the select-all control.
|
|
133
133
|
* @param [colorScheme='light'] - AG Grid color scheme. `dark` paints native controls dark.
|
|
134
134
|
*/
|
|
135
|
-
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, colorScheme, }: GridProps<T>) => import(
|
|
135
|
+
export declare const Grid: <T extends object>({ columnDefs, rowData, additionalGridOptions, getContextMenuItems, className, ariaLabel, wrapCustomCellRenderers, disabledRowIds, selectedRowIds, onSelectionChange, onGridApiChange, getRowId, alternateOddRowColors, filterPlaceholder, emptyStateIcon, emptyStateTitle, emptyStateDescription, loading, wrapperBorder, withoutHeaderBorders, allowDisabledContextMenu, selectionMode, selectRowLabel, selectAllLabel, colorScheme, }: GridProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -18,4 +18,4 @@ export interface SelectionCellProps<T> {
|
|
|
18
18
|
* `rowSelected` event, so a selection made anywhere — another cell, the header,
|
|
19
19
|
* or the `selectedRowIds` prop — is reflected here without refreshing the cell.
|
|
20
20
|
*/
|
|
21
|
-
export declare const SelectionCell: <T>({ params, mode, label, radioName, rowId, disabled, }: SelectionCellProps<T>) => import(
|
|
21
|
+
export declare const SelectionCell: <T>({ params, mode, label, radioName, rowId, disabled, }: SelectionCellProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,4 +11,4 @@ export interface SelectionHeaderProps<T> extends IHeaderParams<T> {
|
|
|
11
11
|
* rows put it in the `mixed` state, and disabled rows are excluded from the
|
|
12
12
|
* count so a grid whose selectable rows are all selected still reads as full.
|
|
13
13
|
*/
|
|
14
|
-
export declare const SelectionHeader: <T>({ api, label, }: SelectionHeaderProps<T>) => import(
|
|
14
|
+
export declare const SelectionHeader: <T>({ api, label, }: SelectionHeaderProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -11,7 +11,7 @@ export declare const INTERACTIVE_TOOLTIP_GAP = 8;
|
|
|
11
11
|
export declare const INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY = 400;
|
|
12
12
|
/**
|
|
13
13
|
* The panel sits one step of the overlay ladder (`z-interactive-tooltip`, see
|
|
14
|
-
*
|
|
14
|
+
* `--z-index-*` in `src/styles/theme.scss`) above the surface it is anchored to — a
|
|
15
15
|
* dropdown or select overlay, both `z-floating` — since it can be opened from
|
|
16
16
|
* a row inside one of them.
|
|
17
17
|
*
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* re-export this same binding instead of each declaring their own copy -
|
|
5
5
|
* see `src/components/JsonEditor/lazy.ts`'s comment for why.
|
|
6
6
|
*/
|
|
7
|
-
export declare const LazyMarkdownEditor: () => Promise<typeof import(
|
|
7
|
+
export declare const LazyMarkdownEditor: () => Promise<typeof import('./MarkdownEditor')>;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Marks the chosen row in a `MenuItemMark.Check` list. Decorative: the row's
|
|
3
3
|
* `aria-checked`/`aria-selected` already carries the state.
|
|
4
4
|
*/
|
|
5
|
-
export declare const menuItemCheckIcon: import(
|
|
5
|
+
export declare const menuItemCheckIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -51,4 +51,4 @@ export interface SegmentedControlProps<T extends string> {
|
|
|
51
51
|
* @param [segmentClassName] - Additional classes for every segment
|
|
52
52
|
* @param [aria-label] - Names the group as a whole
|
|
53
53
|
*/
|
|
54
|
-
export declare const SegmentedControl: <T extends string>({ items, value, onChange, disabled, className, segmentClassName: segmentClassNameProp, "aria-label": ariaLabel, }: SegmentedControlProps<T>) => import(
|
|
54
|
+
export declare const SegmentedControl: <T extends string>({ items, value, onChange, disabled, className, segmentClassName: segmentClassNameProp, "aria-label": ariaLabel, }: SegmentedControlProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -27,7 +27,7 @@ export declare const selectOptionsScrollClassName: string;
|
|
|
27
27
|
export declare const selectSubMenuGap = 4;
|
|
28
28
|
export declare const selectSubMenuClassName: string;
|
|
29
29
|
/** Marks an option that opens a nested list. Matches the dropdown's caret. */
|
|
30
|
-
export declare const selectSubMenuCaretIcon: import(
|
|
30
|
+
export declare const selectSubMenuCaretIcon: import('react/jsx-runtime').JSX.Element;
|
|
31
31
|
/** Classes for the chevron rendered as the field's trailing icon. */
|
|
32
32
|
export declare const selectFieldIconClassName = "text-secondary transition-transform";
|
|
33
33
|
/**
|
|
@@ -35,6 +35,6 @@ export declare const selectFieldIconClassName = "text-secondary transition-trans
|
|
|
35
35
|
* short enough to scan at a glance does not need to be filtered.
|
|
36
36
|
*/
|
|
37
37
|
export declare const selectSearchThreshold = 8;
|
|
38
|
-
export declare const selectSearchIcon: import(
|
|
39
|
-
export declare const selectCloseIcon: import(
|
|
40
|
-
export declare const selectEmptyStateIcon: import(
|
|
38
|
+
export declare const selectSearchIcon: import('react/jsx-runtime').JSX.Element;
|
|
39
|
+
export declare const selectCloseIcon: import('react/jsx-runtime').JSX.Element;
|
|
40
|
+
export declare const selectEmptyStateIcon: import('react/jsx-runtime').JSX.Element;
|
|
@@ -19,8 +19,8 @@ export declare const HOVER_OPEN_DELAY = 500;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const arrowClassName = "fill-control-inverted";
|
|
21
21
|
/**
|
|
22
|
-
* Tooltips sit at the top of the overlay ladder (`z-tooltip`, see
|
|
23
|
-
* `
|
|
22
|
+
* Tooltips sit at the top of the overlay ladder (`z-tooltip`, see `--z-index-*` in
|
|
23
|
+
* `src/styles/theme.scss`) — above popups (`z-popup`), dropdowns and the calendar
|
|
24
24
|
* (`z-floating`) and interactive tooltips — since they can be triggered by a
|
|
25
25
|
* control inside any of them.
|
|
26
26
|
*
|
|
@@ -37,4 +37,4 @@ export interface DialSegmentedControlProps<T extends string> {
|
|
|
37
37
|
* @param [className] - Additional classes applied to the container.
|
|
38
38
|
* @param [ariaLabel] - Accessible label for the control (applied to the `tablist`).
|
|
39
39
|
*/
|
|
40
|
-
export declare const DialSegmentedControl: <T extends string>({ options, value, onChange, disabled, className, ariaLabel, }: DialSegmentedControlProps<T>) => import(
|
|
40
|
+
export declare const DialSegmentedControl: <T extends string>({ options, value, onChange, disabled, className, ariaLabel, }: DialSegmentedControlProps<T>) => import('react/jsx-runtime').JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const selectTriggerBaseClassName = "dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer";
|
|
2
2
|
export declare const selectOverlayBaseClassName = "w-full rounded flex flex-col";
|
|
3
|
-
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-
|
|
3
|
+
export declare const selectOptionBaseClassName = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-hidden";
|
|
4
4
|
export declare const selectOptionSelectedClassName = "bg-accent-primary-alpha";
|
|
5
|
-
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary
|
|
5
|
+
export declare const selectOptionSingleSelectedClassName = "bg-accent-primary-alpha border-l border-accent-primary";
|
|
6
6
|
export declare const selectOptionDisabledClassName = "opacity-75";
|
|
7
7
|
export declare const dropdownMenuMaxHeight = 352;
|
|
8
8
|
export declare const selectSubMenuGap = 4;
|
|
9
|
-
export declare const selectChevronIcon: import(
|
|
9
|
+
export declare const selectChevronIcon: import('react/jsx-runtime').JSX.Element;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -249,8 +249,9 @@ export type { BadgeProps } from './components/New/Badge/Badge';
|
|
|
249
249
|
export { BadgeColor, BadgeVariant } from './types/badge';
|
|
250
250
|
export { Avatar } from './components/New/Avatar/Avatar';
|
|
251
251
|
export type { AvatarProps } from './components/New/Avatar/Avatar';
|
|
252
|
-
export { AvatarShape } from './types/avatar';
|
|
253
|
-
export { extractInitials } from './utils/avatar';
|
|
252
|
+
export { AvatarColor, AvatarShape } from './types/avatar';
|
|
253
|
+
export { AVATAR_PALETTE, extractInitials } from './utils/avatar';
|
|
254
|
+
export type { AvatarColorClasses } from './utils/avatar';
|
|
254
255
|
export { EntityIdentity } from './components/New/EntityIdentity/EntityIdentity';
|
|
255
256
|
export type { EntityIdentityProps, EntityIdentityItem, EntityIdentityLabels, } from './components/New/EntityIdentity/EntityIdentity';
|
|
256
257
|
export { EntityType } from './types/entity-type';
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
export { LazyDialJsonEditor } from '../components/JsonEditor/lazy';
|
|
17
17
|
export { LazyDialMarkdownEditor } from '../components/MarkdownEditor/lazy';
|
|
18
18
|
export { LazyMarkdownEditor } from '../components/New/MarkdownEditor/lazy';
|
|
19
|
-
export declare const LazyDialMarkdownEditorContainer: () => Promise<typeof import(
|
|
19
|
+
export declare const LazyDialMarkdownEditorContainer: () => Promise<typeof import('../components/MarkdownEditor/MarkdownEditorContainer')>;
|
|
20
20
|
export { EditorThemes } from '../types/editor';
|
|
21
21
|
export type { MarkdownEditorProps } from '../components/New/MarkdownEditor/MarkdownEditor';
|
|
22
22
|
export type { DialMarkdownEditorContainerProps } from '../components/MarkdownEditor/MarkdownEditorContainer';
|
|
@@ -5,3 +5,12 @@ export declare enum AvatarShape {
|
|
|
5
5
|
/** A rounded square — the avatar of an application, model or other entity. */
|
|
6
6
|
Square = "square"
|
|
7
7
|
}
|
|
8
|
+
export declare enum AvatarColor {
|
|
9
|
+
Green1 = "green-1",
|
|
10
|
+
Violet2 = "violet-2",
|
|
11
|
+
Brown = "brown",
|
|
12
|
+
Red = "red",
|
|
13
|
+
Green2 = "green-2",
|
|
14
|
+
Blue = "blue",
|
|
15
|
+
Violet1 = "violet-1"
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AvatarColor } from '../types/avatar';
|
|
1
2
|
/** A background and text colour pair for an initials avatar, as Tailwind classes. */
|
|
2
3
|
export interface AvatarColorClasses {
|
|
3
4
|
/** Background class, bound to a `--bg-visual-*` token. */
|
|
@@ -5,7 +6,7 @@ export interface AvatarColorClasses {
|
|
|
5
6
|
/** Text class, bound to the matching `--text-visual-*` token. */
|
|
6
7
|
foreground: string;
|
|
7
8
|
}
|
|
8
|
-
export declare const AVATAR_PALETTE:
|
|
9
|
+
export declare const AVATAR_PALETTE: Record<AvatarColor, AvatarColorClasses>;
|
|
9
10
|
/** Returns the palette entry for a name; the same name always gets the same colours. */
|
|
10
11
|
export declare const pickAvatarColor: (name: string) => AvatarColorClasses;
|
|
11
12
|
/** Returns 1–2 uppercase initials derived from a display name, or `'?'` when it has no letters. */
|
|
@@ -64,5 +64,5 @@ interface SubMenuPanelProps {
|
|
|
64
64
|
* Shared floating panel wrapper (FloatingPortal → FloatingFocusManager → container div).
|
|
65
65
|
* Used by DropdownSubMenuItem and SelectSubMenuItem.
|
|
66
66
|
*/
|
|
67
|
-
export declare const SubMenuPanel: ({ refs, floatingStyles, context, getFloatingProps, role, surfaceClassName, className, children, }: SubMenuPanelProps) => import(
|
|
67
|
+
export declare const SubMenuPanel: ({ refs, floatingStyles, context, getFloatingProps, role, surfaceClassName, className, children, }: SubMenuPanelProps) => import('react/jsx-runtime').JSX.Element;
|
|
68
68
|
export {};
|
package/dist/types/avatar.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var
|
|
1
|
+
var n = /* @__PURE__ */ ((e) => (e.Circle = "circle", e.Square = "square", e))(n || {}), i = /* @__PURE__ */ ((e) => (e.Green1 = "green-1", e.Violet2 = "violet-2", e.Brown = "brown", e.Red = "red", e.Green2 = "green-2", e.Blue = "blue", e.Violet1 = "violet-1", e))(i || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
i as AvatarColor,
|
|
4
|
+
n as AvatarShape
|
|
4
5
|
};
|