@uniformdev/design-system 19.23.1-alpha.12 → 19.24.0
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/dist/esm/index.js +13 -37
- package/dist/index.d.ts +5 -14
- package/dist/index.js +12 -35
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -11152,13 +11152,11 @@ import { css as css20 } from "@emotion/react";
|
|
|
11152
11152
|
var MenuGroupContainer = css20`
|
|
11153
11153
|
display: flex;
|
|
11154
11154
|
flex-direction: column;
|
|
11155
|
-
margin-top: var(--spacing-sm);
|
|
11156
11155
|
`;
|
|
11157
11156
|
var MenuTitle = css20`
|
|
11158
11157
|
color: var(--gray-400);
|
|
11159
11158
|
font-size: var(--fs-xs);
|
|
11160
11159
|
font-weight: var(--fw-bold);
|
|
11161
|
-
padding: var(--spacing-xs) var(--spacing-sm);
|
|
11162
11160
|
text-transform: uppercase;
|
|
11163
11161
|
`;
|
|
11164
11162
|
|
|
@@ -11173,12 +11171,7 @@ var MenuGroup = ({ title, children }) => {
|
|
|
11173
11171
|
|
|
11174
11172
|
// src/components/Menu/MenuItem.styles.ts
|
|
11175
11173
|
import { css as css21 } from "@emotion/react";
|
|
11176
|
-
var
|
|
11177
|
-
box-shadow: none;
|
|
11178
|
-
background: var(--gray-200);
|
|
11179
|
-
outline: none;
|
|
11180
|
-
`;
|
|
11181
|
-
var menuItem = (textTheme, forceActive) => css21`
|
|
11174
|
+
var menuItem = (textTheme) => css21`
|
|
11182
11175
|
align-items: center;
|
|
11183
11176
|
border: none;
|
|
11184
11177
|
border-radius: var(--rounded-base);
|
|
@@ -11189,10 +11182,9 @@ var menuItem = (textTheme, forceActive) => css21`
|
|
|
11189
11182
|
font-weight: var(--fw-regular);
|
|
11190
11183
|
flex-grow: 1;
|
|
11191
11184
|
gap: var(--spacing-xs);
|
|
11192
|
-
|
|
11185
|
+
line-height: 1.5;
|
|
11193
11186
|
white-space: nowrap;
|
|
11194
11187
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11195
|
-
${forceActive ? activeMenuItem : ""}
|
|
11196
11188
|
|
|
11197
11189
|
&:disabled {
|
|
11198
11190
|
color: var(--gray-300);
|
|
@@ -11200,7 +11192,9 @@ var menuItem = (textTheme, forceActive) => css21`
|
|
|
11200
11192
|
|
|
11201
11193
|
&:hover,
|
|
11202
11194
|
&:focus {
|
|
11203
|
-
|
|
11195
|
+
box-shadow: none;
|
|
11196
|
+
background: var(--gray-200);
|
|
11197
|
+
outline: none;
|
|
11204
11198
|
}
|
|
11205
11199
|
`;
|
|
11206
11200
|
var menuItemWithIcon = css21`
|
|
@@ -11329,15 +11323,14 @@ import * as React8 from "react";
|
|
|
11329
11323
|
import { MenuItem as BaseMenuItem } from "reakit";
|
|
11330
11324
|
import { jsx as jsx24, jsxs as jsxs13 } from "@emotion/react/jsx-runtime";
|
|
11331
11325
|
var MenuItem = React8.forwardRef(
|
|
11332
|
-
({ children, className, hideMenuOnClick = true, icon, textColor = "base",
|
|
11326
|
+
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
11333
11327
|
const menuState = useMenuContext();
|
|
11334
11328
|
const resolveProps = (originalProps) => {
|
|
11335
11329
|
const resolvedProps2 = { ...originalProps };
|
|
11336
11330
|
if (resolvedProps2.onClick) {
|
|
11337
11331
|
const origOnClick = resolvedProps2.onClick;
|
|
11338
11332
|
resolvedProps2.onClick = (e) => {
|
|
11339
|
-
|
|
11340
|
-
(_a = menuState == null ? void 0 : menuState.hide) == null ? void 0 : _a.call(menuState);
|
|
11333
|
+
menuState.hide();
|
|
11341
11334
|
origOnClick(e);
|
|
11342
11335
|
};
|
|
11343
11336
|
}
|
|
@@ -11353,7 +11346,7 @@ var MenuItem = React8.forwardRef(
|
|
|
11353
11346
|
"data-test-id": "button-menu",
|
|
11354
11347
|
...menuState,
|
|
11355
11348
|
...resolvedProps,
|
|
11356
|
-
css: [menuItem(textColor
|
|
11349
|
+
css: [menuItem(textColor), typeof className === "object" ? className : void 0],
|
|
11357
11350
|
className: typeof className === "string" ? className : void 0,
|
|
11358
11351
|
children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
|
|
11359
11352
|
}
|
|
@@ -12856,8 +12849,10 @@ var DrawerInner = ({
|
|
|
12856
12849
|
},
|
|
12857
12850
|
onFirstRender: () => {
|
|
12858
12851
|
setTimeout(() => {
|
|
12859
|
-
var _a;
|
|
12860
|
-
(_a =
|
|
12852
|
+
var _a, _b;
|
|
12853
|
+
if (ref && "current" in ref && !((_a = ref.current) == null ? void 0 : _a.contains(document.activeElement))) {
|
|
12854
|
+
(_b = closeButtonRef.current) == null ? void 0 : _b.focus({ preventScroll: true });
|
|
12855
|
+
}
|
|
12861
12856
|
}, 0);
|
|
12862
12857
|
}
|
|
12863
12858
|
});
|
|
@@ -16093,9 +16088,7 @@ var Popover = css72`
|
|
|
16093
16088
|
|
|
16094
16089
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
16095
16090
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
16096
|
-
import {
|
|
16097
|
-
$isElementNode
|
|
16098
|
-
} from "lexical";
|
|
16091
|
+
import { $isElementNode } from "lexical";
|
|
16099
16092
|
var getElementNodesInSelection = (selection) => {
|
|
16100
16093
|
const nodesInSelection = selection.getNodes();
|
|
16101
16094
|
if (nodesInSelection.length === 0) {
|
|
@@ -16127,22 +16120,6 @@ var getSelectedNode = (selection) => {
|
|
|
16127
16120
|
return $isAtNodeEnd(anchor) ? anchorNode : focusNode;
|
|
16128
16121
|
}
|
|
16129
16122
|
};
|
|
16130
|
-
var richTextIsValueConsideredEmpty = (value) => {
|
|
16131
|
-
if (!value) {
|
|
16132
|
-
return true;
|
|
16133
|
-
}
|
|
16134
|
-
if (value.root.children.length === 0) {
|
|
16135
|
-
return true;
|
|
16136
|
-
}
|
|
16137
|
-
if (value.root.children.length > 1) {
|
|
16138
|
-
return false;
|
|
16139
|
-
}
|
|
16140
|
-
const child = value.root.children[0];
|
|
16141
|
-
if (child.type !== "paragraph") {
|
|
16142
|
-
return false;
|
|
16143
|
-
}
|
|
16144
|
-
return child.children.length === 0;
|
|
16145
|
-
};
|
|
16146
16123
|
|
|
16147
16124
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16148
16125
|
import { Fragment as Fragment13, jsx as jsx90, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
@@ -18218,7 +18195,6 @@ export {
|
|
|
18218
18195
|
replaceUnderscoreInString,
|
|
18219
18196
|
richTextBuiltInElements,
|
|
18220
18197
|
richTextBuiltInFormats,
|
|
18221
|
-
richTextIsValueConsideredEmpty,
|
|
18222
18198
|
ripple,
|
|
18223
18199
|
scrollbarStyles,
|
|
18224
18200
|
settings,
|
package/dist/index.d.ts
CHANGED
|
@@ -20392,14 +20392,14 @@ type ChipSizeProp = 'xs' | 'sm' | 'md';
|
|
|
20392
20392
|
type ChipThemeProps = 'accent-light' | 'accent-dark' | 'accent-alt-light' | 'accent-alt-dark' | 'neutral-light' | 'neutral-dark';
|
|
20393
20393
|
type ChipProps = {
|
|
20394
20394
|
icon?: IconType$1;
|
|
20395
|
-
text:
|
|
20395
|
+
text: string;
|
|
20396
20396
|
/** sets the size of the chip
|
|
20397
20397
|
* @default 'sm'
|
|
20398
20398
|
*/
|
|
20399
20399
|
theme?: ChipThemeProps;
|
|
20400
|
-
chipAction?: React.ReactNode;
|
|
20400
|
+
chipAction?: React$1.ReactNode;
|
|
20401
20401
|
size?: ChipSizeProp;
|
|
20402
|
-
} & React.HTMLAttributes<HTMLSpanElement>;
|
|
20402
|
+
} & React$1.HTMLAttributes<HTMLSpanElement>;
|
|
20403
20403
|
/**
|
|
20404
20404
|
* @description Chips are used in a variety of ways
|
|
20405
20405
|
* To represent tokens, where the value of the chip will be replaced with something dynamically.
|
|
@@ -21237,7 +21237,7 @@ interface MenuProps extends MenuHTMLProps {
|
|
|
21237
21237
|
disableAutoSeparatorManagement?: boolean;
|
|
21238
21238
|
}
|
|
21239
21239
|
declare const MenuContext: React$1.Context<MenuStateReturn>;
|
|
21240
|
-
declare const useMenuContext: () => MenuStateReturn
|
|
21240
|
+
declare const useMenuContext: () => MenuStateReturn;
|
|
21241
21241
|
/**
|
|
21242
21242
|
* Component used for creating clickable menus
|
|
21243
21243
|
* @example
|
|
@@ -21250,9 +21250,7 @@ declare const useMenuContext: () => MenuStateReturn | undefined;
|
|
|
21250
21250
|
declare const Menu: ({ menuLabel, menuTrigger, placement, menuItemsContainerCssClasses, children, forceVisible, disableAutoSeparatorManagement, }: MenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21251
21251
|
|
|
21252
21252
|
type MenuGroupProps = {
|
|
21253
|
-
/** Title for the menu group */
|
|
21254
21253
|
title: string;
|
|
21255
|
-
/** Menu items to render in the group */
|
|
21256
21254
|
children: ReactNode;
|
|
21257
21255
|
};
|
|
21258
21256
|
declare const MenuGroup: ({ title, children }: MenuGroupProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
@@ -21271,11 +21269,6 @@ type MenuItemProps = MenuItemHTMLProps & {
|
|
|
21271
21269
|
* @default 'base'
|
|
21272
21270
|
*/
|
|
21273
21271
|
textColor?: MenuItemTextThemeProps;
|
|
21274
|
-
/**
|
|
21275
|
-
* Overrides the focus styles and forces this menu item to have highlighted/selected styles
|
|
21276
|
-
* Normally automatically managed.
|
|
21277
|
-
*/
|
|
21278
|
-
active?: boolean;
|
|
21279
21272
|
};
|
|
21280
21273
|
type ChildFunction = (menuItemProps: MenuItemHTMLProps) => React$1.ReactElement | null;
|
|
21281
21274
|
/**
|
|
@@ -21558,8 +21551,6 @@ type LinkNodePluginProps = {
|
|
|
21558
21551
|
}) => Promise<void>;
|
|
21559
21552
|
};
|
|
21560
21553
|
|
|
21561
|
-
declare const richTextIsValueConsideredEmpty: (value: RichTextParamValue) => boolean;
|
|
21562
|
-
|
|
21563
21554
|
type RichTextProps = {
|
|
21564
21555
|
config?: RichTextParamConfiguration;
|
|
21565
21556
|
onChange?: (value: SerializedEditorState) => void;
|
|
@@ -22186,4 +22177,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
22186
22177
|
};
|
|
22187
22178
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22188
22179
|
|
|
22189
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InfoMessage, InfoMessageProps, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, JsonEditor, JsonEditorProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuGroup, MenuGroupProps, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextInnerProps, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, Popover, PopoverProps, ProgressList, ProgressListItem, ProgressListItemProps, ProgressListProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, RichTextParamValue, ScrollableItemProps, ScrollableList, ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, SuccessMessage, SuccessMessageProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, Tile, TileContainer, TileContainerProps, TileProps, TileText, TileTitleProps, Tooltip, TooltipProps, TwoColumnLayout, TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, UniformLogoProps, UseShortcutOptions, VerticalRhythm, WarningMessage, WarningMessageProps, accessibleHidden, borderTopIcon, breakpoints, button, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString,
|
|
22180
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InfoMessage, InfoMessageProps, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, JsonEditor, JsonEditorProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuGroup, MenuGroupProps, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextInnerProps, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, Popover, PopoverProps, ProgressList, ProgressListItem, ProgressListItemProps, ProgressListProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, RichTextParamValue, ScrollableItemProps, ScrollableList, ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, SuccessMessage, SuccessMessageProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, Tile, TileContainer, TileContainerProps, TileProps, TileText, TileTitleProps, Tooltip, TooltipProps, TwoColumnLayout, TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, UniformLogoProps, UseShortcutOptions, VerticalRhythm, WarningMessage, WarningMessageProps, accessibleHidden, borderTopIcon, breakpoints, button, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawerRenderer, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|
package/dist/index.js
CHANGED
|
@@ -202,7 +202,6 @@ __export(src_exports, {
|
|
|
202
202
|
replaceUnderscoreInString: () => replaceUnderscoreInString,
|
|
203
203
|
richTextBuiltInElements: () => richTextBuiltInElements,
|
|
204
204
|
richTextBuiltInFormats: () => richTextBuiltInFormats,
|
|
205
|
-
richTextIsValueConsideredEmpty: () => richTextIsValueConsideredEmpty,
|
|
206
205
|
ripple: () => ripple,
|
|
207
206
|
scrollbarStyles: () => scrollbarStyles,
|
|
208
207
|
settings: () => settings,
|
|
@@ -11378,13 +11377,11 @@ var import_react27 = require("@emotion/react");
|
|
|
11378
11377
|
var MenuGroupContainer = import_react27.css`
|
|
11379
11378
|
display: flex;
|
|
11380
11379
|
flex-direction: column;
|
|
11381
|
-
margin-top: var(--spacing-sm);
|
|
11382
11380
|
`;
|
|
11383
11381
|
var MenuTitle = import_react27.css`
|
|
11384
11382
|
color: var(--gray-400);
|
|
11385
11383
|
font-size: var(--fs-xs);
|
|
11386
11384
|
font-weight: var(--fw-bold);
|
|
11387
|
-
padding: var(--spacing-xs) var(--spacing-sm);
|
|
11388
11385
|
text-transform: uppercase;
|
|
11389
11386
|
`;
|
|
11390
11387
|
|
|
@@ -11399,12 +11396,7 @@ var MenuGroup = ({ title, children }) => {
|
|
|
11399
11396
|
|
|
11400
11397
|
// src/components/Menu/MenuItem.styles.ts
|
|
11401
11398
|
var import_react28 = require("@emotion/react");
|
|
11402
|
-
var
|
|
11403
|
-
box-shadow: none;
|
|
11404
|
-
background: var(--gray-200);
|
|
11405
|
-
outline: none;
|
|
11406
|
-
`;
|
|
11407
|
-
var menuItem = (textTheme, forceActive) => import_react28.css`
|
|
11399
|
+
var menuItem = (textTheme) => import_react28.css`
|
|
11408
11400
|
align-items: center;
|
|
11409
11401
|
border: none;
|
|
11410
11402
|
border-radius: var(--rounded-base);
|
|
@@ -11415,10 +11407,9 @@ var menuItem = (textTheme, forceActive) => import_react28.css`
|
|
|
11415
11407
|
font-weight: var(--fw-regular);
|
|
11416
11408
|
flex-grow: 1;
|
|
11417
11409
|
gap: var(--spacing-xs);
|
|
11418
|
-
|
|
11410
|
+
line-height: 1.5;
|
|
11419
11411
|
white-space: nowrap;
|
|
11420
11412
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
11421
|
-
${forceActive ? activeMenuItem : ""}
|
|
11422
11413
|
|
|
11423
11414
|
&:disabled {
|
|
11424
11415
|
color: var(--gray-300);
|
|
@@ -11426,7 +11417,9 @@ var menuItem = (textTheme, forceActive) => import_react28.css`
|
|
|
11426
11417
|
|
|
11427
11418
|
&:hover,
|
|
11428
11419
|
&:focus {
|
|
11429
|
-
|
|
11420
|
+
box-shadow: none;
|
|
11421
|
+
background: var(--gray-200);
|
|
11422
|
+
outline: none;
|
|
11430
11423
|
}
|
|
11431
11424
|
`;
|
|
11432
11425
|
var menuItemWithIcon = import_react28.css`
|
|
@@ -11555,15 +11548,14 @@ var React8 = __toESM(require("react"));
|
|
|
11555
11548
|
var import_reakit = require("reakit");
|
|
11556
11549
|
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
11557
11550
|
var MenuItem = React8.forwardRef(
|
|
11558
|
-
({ children, className, hideMenuOnClick = true, icon, textColor = "base",
|
|
11551
|
+
({ children, className, hideMenuOnClick = true, icon, textColor = "base", ...props }, ref) => {
|
|
11559
11552
|
const menuState = useMenuContext();
|
|
11560
11553
|
const resolveProps = (originalProps) => {
|
|
11561
11554
|
const resolvedProps2 = { ...originalProps };
|
|
11562
11555
|
if (resolvedProps2.onClick) {
|
|
11563
11556
|
const origOnClick = resolvedProps2.onClick;
|
|
11564
11557
|
resolvedProps2.onClick = (e) => {
|
|
11565
|
-
|
|
11566
|
-
(_a = menuState == null ? void 0 : menuState.hide) == null ? void 0 : _a.call(menuState);
|
|
11558
|
+
menuState.hide();
|
|
11567
11559
|
origOnClick(e);
|
|
11568
11560
|
};
|
|
11569
11561
|
}
|
|
@@ -11579,7 +11571,7 @@ var MenuItem = React8.forwardRef(
|
|
|
11579
11571
|
"data-test-id": "button-menu",
|
|
11580
11572
|
...menuState,
|
|
11581
11573
|
...resolvedProps,
|
|
11582
|
-
css: [menuItem(textColor
|
|
11574
|
+
css: [menuItem(textColor), typeof className === "object" ? className : void 0],
|
|
11583
11575
|
className: typeof className === "string" ? className : void 0,
|
|
11584
11576
|
children: icon ? renderWithIcon(resolvedChildren, icon) : resolvedChildren
|
|
11585
11577
|
}
|
|
@@ -13082,8 +13074,10 @@ var DrawerInner = ({
|
|
|
13082
13074
|
},
|
|
13083
13075
|
onFirstRender: () => {
|
|
13084
13076
|
setTimeout(() => {
|
|
13085
|
-
var _a;
|
|
13086
|
-
(_a =
|
|
13077
|
+
var _a, _b;
|
|
13078
|
+
if (ref && "current" in ref && !((_a = ref.current) == null ? void 0 : _a.contains(document.activeElement))) {
|
|
13079
|
+
(_b = closeButtonRef.current) == null ? void 0 : _b.focus({ preventScroll: true });
|
|
13080
|
+
}
|
|
13087
13081
|
}, 0);
|
|
13088
13082
|
}
|
|
13089
13083
|
});
|
|
@@ -16328,22 +16322,6 @@ var getSelectedNode = (selection) => {
|
|
|
16328
16322
|
return (0, import_selection.$isAtNodeEnd)(anchor) ? anchorNode : focusNode;
|
|
16329
16323
|
}
|
|
16330
16324
|
};
|
|
16331
|
-
var richTextIsValueConsideredEmpty = (value) => {
|
|
16332
|
-
if (!value) {
|
|
16333
|
-
return true;
|
|
16334
|
-
}
|
|
16335
|
-
if (value.root.children.length === 0) {
|
|
16336
|
-
return true;
|
|
16337
|
-
}
|
|
16338
|
-
if (value.root.children.length > 1) {
|
|
16339
|
-
return false;
|
|
16340
|
-
}
|
|
16341
|
-
const child = value.root.children[0];
|
|
16342
|
-
if (child.type !== "paragraph") {
|
|
16343
|
-
return false;
|
|
16344
|
-
}
|
|
16345
|
-
return child.children.length === 0;
|
|
16346
|
-
};
|
|
16347
16325
|
|
|
16348
16326
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16349
16327
|
var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
|
|
@@ -18382,7 +18360,6 @@ var StatusBullet = ({
|
|
|
18382
18360
|
replaceUnderscoreInString,
|
|
18383
18361
|
richTextBuiltInElements,
|
|
18384
18362
|
richTextBuiltInFormats,
|
|
18385
|
-
richTextIsValueConsideredEmpty,
|
|
18386
18363
|
ripple,
|
|
18387
18364
|
scrollbarStyles,
|
|
18388
18365
|
settings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.24.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@storybook/client-api": "6.5.16",
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
25
|
"@types/react": "18.2.7",
|
|
26
|
-
"@uniformdev/canvas": "^19.
|
|
27
|
-
"@uniformdev/richtext": "^19.
|
|
26
|
+
"@uniformdev/canvas": "^19.24.0",
|
|
27
|
+
"@uniformdev/richtext": "^19.24.0",
|
|
28
28
|
"autoprefixer": "10.4.14",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.24",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "ca1c309ce7eed5bffa76130e2baa0f03b08377ac"
|
|
71
71
|
}
|