@uniformdev/design-system 19.80.0 → 19.80.1-alpha.149
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 +48 -35
- package/dist/index.d.mts +21 -18
- package/dist/index.d.ts +21 -18
- package/dist/index.js +55 -43
- package/package.json +8 -8
package/dist/esm/index.js
CHANGED
|
@@ -13746,7 +13746,7 @@ var CaptionText = (dynamicSize) => css45`
|
|
|
13746
13746
|
color: var(--gray-500);
|
|
13747
13747
|
display: block;
|
|
13748
13748
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
13749
|
-
margin: var(--spacing-
|
|
13749
|
+
margin-block: var(--spacing-2xs) 1px;
|
|
13750
13750
|
max-width: var(--prose);
|
|
13751
13751
|
`;
|
|
13752
13752
|
|
|
@@ -16144,7 +16144,7 @@ var MediaCard = ({
|
|
|
16144
16144
|
e.stopPropagation();
|
|
16145
16145
|
}, []);
|
|
16146
16146
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
16147
|
-
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, "data-
|
|
16147
|
+
return /* @__PURE__ */ jsxs58(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
16148
16148
|
/* @__PURE__ */ jsx88("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
16149
16149
|
/* @__PURE__ */ jsx88("div", { css: contentWrapper, children: /* @__PURE__ */ jsxs58(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
16150
16150
|
/* @__PURE__ */ jsxs58(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
@@ -16182,7 +16182,7 @@ var MediaCard = ({
|
|
|
16182
16182
|
type: "button",
|
|
16183
16183
|
"aria-label": "More options",
|
|
16184
16184
|
css: menuButton,
|
|
16185
|
-
"data-
|
|
16185
|
+
"data-testid": "button-more",
|
|
16186
16186
|
children: /* @__PURE__ */ jsx88(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
16187
16187
|
}
|
|
16188
16188
|
),
|
|
@@ -17287,7 +17287,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17287
17287
|
"data-af": "true",
|
|
17288
17288
|
onBlur,
|
|
17289
17289
|
onChange: onNameChange,
|
|
17290
|
-
caption: nameCaption,
|
|
17290
|
+
caption: !nameIdError ? nameCaption : void 0,
|
|
17291
17291
|
placeholder: namePlaceholderText,
|
|
17292
17292
|
readOnly,
|
|
17293
17293
|
errorMessage: nameIdError,
|
|
@@ -17306,7 +17306,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17306
17306
|
autoComplete: "off",
|
|
17307
17307
|
onBlur,
|
|
17308
17308
|
onChange: onPublicIdChange,
|
|
17309
|
-
caption: publicIdCaption,
|
|
17309
|
+
caption: !publicIdError ? publicIdCaption : void 0,
|
|
17310
17310
|
placeholder: publicIdPlaceholderText,
|
|
17311
17311
|
errorMessage: publicIdError,
|
|
17312
17312
|
menuItems: /* @__PURE__ */ jsx102(
|
|
@@ -19622,13 +19622,14 @@ var TableCellData = React24.forwardRef(
|
|
|
19622
19622
|
);
|
|
19623
19623
|
|
|
19624
19624
|
// src/components/Tabs/Tabs.tsx
|
|
19625
|
-
import { createContext as createContext5, useContext as useContext6, useEffect as useEffect16, useMemo as useMemo6 } from "react";
|
|
19626
19625
|
import {
|
|
19627
|
-
Tab as
|
|
19628
|
-
TabList as
|
|
19629
|
-
TabPanel as
|
|
19630
|
-
|
|
19631
|
-
|
|
19626
|
+
Tab as AriakitTab,
|
|
19627
|
+
TabList as AriakitTabList,
|
|
19628
|
+
TabPanel as AriakitTabPanel,
|
|
19629
|
+
TabProvider as AriakitTabProvider,
|
|
19630
|
+
useTabStore as useAriakitTabStore
|
|
19631
|
+
} from "@ariakit/react";
|
|
19632
|
+
import { useCallback as useCallback8, useEffect as useEffect16, useMemo as useMemo6 } from "react";
|
|
19632
19633
|
|
|
19633
19634
|
// src/components/Tabs/Tabs.styles.ts
|
|
19634
19635
|
import { css as css94 } from "@emotion/react";
|
|
@@ -19657,48 +19658,60 @@ var tabButtonGroupStyles = css94`
|
|
|
19657
19658
|
|
|
19658
19659
|
// src/components/Tabs/Tabs.tsx
|
|
19659
19660
|
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19660
|
-
var CurrentTabContext = createContext5(null);
|
|
19661
19661
|
var useCurrentTab = () => {
|
|
19662
|
-
const context =
|
|
19662
|
+
const context = useAriakitTabStore();
|
|
19663
19663
|
if (!context) {
|
|
19664
19664
|
throw new Error("This component can only be used inside <Tabs>");
|
|
19665
19665
|
}
|
|
19666
19666
|
return context;
|
|
19667
19667
|
};
|
|
19668
|
-
var Tabs = ({
|
|
19668
|
+
var Tabs = ({
|
|
19669
|
+
children,
|
|
19670
|
+
onSelectedIdChange,
|
|
19671
|
+
useHashForState,
|
|
19672
|
+
selectedId,
|
|
19673
|
+
manual,
|
|
19674
|
+
...props
|
|
19675
|
+
}) => {
|
|
19669
19676
|
const selected = useMemo6(() => {
|
|
19670
19677
|
if (selectedId)
|
|
19671
19678
|
return selectedId;
|
|
19672
19679
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
19673
19680
|
}, [selectedId, useHashForState]);
|
|
19674
|
-
const tab =
|
|
19675
|
-
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19681
|
+
const tab = useAriakitTabStore({ ...props, selectOnMove: !manual, selectedId: selected });
|
|
19682
|
+
const onTabSelect = useCallback8(
|
|
19683
|
+
(value) => {
|
|
19684
|
+
const selectedValueWithoutNull = value != null ? value : void 0;
|
|
19685
|
+
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
19686
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
19687
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
19688
|
+
window.history.replaceState(null, "", hashValue);
|
|
19689
|
+
}
|
|
19690
|
+
},
|
|
19691
|
+
[onSelectedIdChange, useHashForState]
|
|
19692
|
+
);
|
|
19684
19693
|
useEffect16(() => {
|
|
19685
|
-
if (selected && selected !== tab.
|
|
19694
|
+
if (selected && selected !== tab.getState().activeId) {
|
|
19686
19695
|
tab.setSelectedId(selected);
|
|
19687
19696
|
}
|
|
19688
|
-
}, [selected]);
|
|
19689
|
-
return /* @__PURE__ */ jsx116(
|
|
19697
|
+
}, [selected, tab]);
|
|
19698
|
+
return /* @__PURE__ */ jsx116(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
19690
19699
|
};
|
|
19691
19700
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19692
|
-
|
|
19693
|
-
return /* @__PURE__ */ jsx116(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19701
|
+
return /* @__PURE__ */ jsx116(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
19694
19702
|
};
|
|
19695
|
-
var TabButton = ({
|
|
19696
|
-
|
|
19697
|
-
|
|
19703
|
+
var TabButton = ({
|
|
19704
|
+
children,
|
|
19705
|
+
id,
|
|
19706
|
+
...props
|
|
19707
|
+
}) => {
|
|
19708
|
+
return /* @__PURE__ */ jsx116(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
19698
19709
|
};
|
|
19699
|
-
var TabContent = ({
|
|
19700
|
-
|
|
19701
|
-
|
|
19710
|
+
var TabContent = ({
|
|
19711
|
+
children,
|
|
19712
|
+
...props
|
|
19713
|
+
}) => {
|
|
19714
|
+
return /* @__PURE__ */ jsx116(AriakitTabPanel, { ...props, children });
|
|
19702
19715
|
};
|
|
19703
19716
|
|
|
19704
19717
|
// src/components/Validation/StatusBullet.styles.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -14,14 +14,14 @@ import * as _react_icons_all_files from '@react-icons/all-files';
|
|
|
14
14
|
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
15
15
|
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
16
16
|
import { JsonSchema7Type } from 'zod-to-json-schema/src/parseDef';
|
|
17
|
-
import
|
|
17
|
+
import * as _ariakit_react from '@ariakit/react';
|
|
18
|
+
import { MenuProps as MenuProps$2, MenuStoreProps, MenuItemProps as MenuItemProps$1, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
18
19
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
19
20
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
20
21
|
export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
|
|
21
22
|
import { Spread, SerializedElementNode, ElementNode, NodeKey, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
|
|
22
23
|
import { PopoverProps as PopoverProps$1, PopoverInitialState } from 'reakit/Popover';
|
|
23
24
|
import * as react_hotkeys_hook_dist_types from 'react-hotkeys-hook/dist/types';
|
|
24
|
-
import { TabState, TabListProps, TabProps, TabPanelProps } from 'reakit/Tab';
|
|
25
25
|
import { TooltipOptions, TooltipInitialState } from 'reakit/Tooltip';
|
|
26
26
|
export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
|
|
27
27
|
|
|
@@ -22908,27 +22908,30 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedH
|
|
|
22908
22908
|
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22909
22909
|
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22910
22910
|
|
|
22911
|
-
declare const useCurrentTab: () =>
|
|
22912
|
-
|
|
22911
|
+
declare const useCurrentTab: () => _ariakit_react.TabStore;
|
|
22912
|
+
type TabsProps<TTabName extends string = string> = {
|
|
22913
22913
|
children: React__default.ReactNode;
|
|
22914
|
-
selectedId?:
|
|
22914
|
+
selectedId?: TTabName;
|
|
22915
22915
|
manual?: boolean;
|
|
22916
|
-
orientation?:
|
|
22917
|
-
onSelectedIdChange?: (tabName:
|
|
22916
|
+
orientation?: TabStoreState['orientation'];
|
|
22917
|
+
onSelectedIdChange?: (tabName: TTabName | undefined) => void;
|
|
22918
|
+
/**
|
|
22919
|
+
* @deprecated you can control the route state on the application level.
|
|
22920
|
+
*/
|
|
22918
22921
|
useHashForState?: boolean;
|
|
22919
|
-
}
|
|
22920
|
-
declare const Tabs: ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22922
|
+
};
|
|
22923
|
+
declare const Tabs: <TTabName extends string = string>({ children, onSelectedIdChange, useHashForState, selectedId, manual, ...props }: TabsProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22921
22924
|
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22922
|
-
|
|
22923
|
-
id:
|
|
22925
|
+
type TabButtonProps<TTabName extends string = string> = Partial<TabProps> & {
|
|
22926
|
+
id: TTabName;
|
|
22924
22927
|
children: React__default.ReactNode;
|
|
22925
|
-
}
|
|
22926
|
-
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22927
|
-
|
|
22928
|
-
|
|
22928
|
+
};
|
|
22929
|
+
declare const TabButton: <TTabName extends string = string>({ children, id, ...props }: TabButtonProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22930
|
+
type TabContentProps<TTabName extends string = string> = Partial<TabPanelProps> & {
|
|
22931
|
+
tabId?: TTabName;
|
|
22929
22932
|
children: React__default.ReactNode;
|
|
22930
|
-
}
|
|
22931
|
-
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22933
|
+
};
|
|
22934
|
+
declare const TabContent: <TTabName extends string = string>({ children, ...props }: TabContentProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22932
22935
|
|
|
22933
22936
|
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
22934
22937
|
/** (optional) sets the title value
|
|
@@ -23231,4 +23234,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23231
23234
|
};
|
|
23232
23235
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23233
23236
|
|
|
23234
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps$1 as ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ChipTheme, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, DashedBoxProps, DescriptionList, DescriptionListProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContent, DrawerContentProps, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, DrawersRegistryRecord, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, IconButtonProps, IconColor, IconName, IconProps, IconType, IconsProvider, Image, ImageBroken, ImageProps, 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, LabelLeadingIcon, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, MediaCard, MediaCardProps, Menu, MenuGroup, MenuGroupProps, MenuItem, MenuItemInner, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, Modal, ModalProps, MultilineChip, MultilineChipProps, PageHeaderSection, PageHeaderSectionProps, Pagination, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, 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, ProgressBar, ProgressBarProps, ProgressList, ProgressListItem, ProgressListItemProps, ProgressListProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, RhythmProps, RichTextParamValue, RichTextToolbarIcon, ScrollableItemProps, ScrollableList, ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, SuccessMessage, SuccessMessageProps, Switch, SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TakeoverDrawerRenderer, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, Tile, TileContainer, TileContainerProps, TileProps, TileText, TileTitleProps, Tooltip, TooltipProps, TwoColumnLayout, TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, UniformLogoProps, UseShortcutOptions, VerticalRhythm, WarningMessage, WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|
|
23237
|
+
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|
package/dist/index.d.ts
CHANGED
|
@@ -14,14 +14,14 @@ import * as _react_icons_all_files from '@react-icons/all-files';
|
|
|
14
14
|
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
15
15
|
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
16
16
|
import { JsonSchema7Type } from 'zod-to-json-schema/src/parseDef';
|
|
17
|
-
import
|
|
17
|
+
import * as _ariakit_react from '@ariakit/react';
|
|
18
|
+
import { MenuProps as MenuProps$2, MenuStoreProps, MenuItemProps as MenuItemProps$1, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
18
19
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
19
20
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
20
21
|
export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
|
|
21
22
|
import { Spread, SerializedElementNode, ElementNode, NodeKey, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
|
|
22
23
|
import { PopoverProps as PopoverProps$1, PopoverInitialState } from 'reakit/Popover';
|
|
23
24
|
import * as react_hotkeys_hook_dist_types from 'react-hotkeys-hook/dist/types';
|
|
24
|
-
import { TabState, TabListProps, TabProps, TabPanelProps } from 'reakit/Tab';
|
|
25
25
|
import { TooltipOptions, TooltipInitialState } from 'reakit/Tooltip';
|
|
26
26
|
export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
|
|
27
27
|
|
|
@@ -22908,27 +22908,30 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedH
|
|
|
22908
22908
|
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22909
22909
|
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22910
22910
|
|
|
22911
|
-
declare const useCurrentTab: () =>
|
|
22912
|
-
|
|
22911
|
+
declare const useCurrentTab: () => _ariakit_react.TabStore;
|
|
22912
|
+
type TabsProps<TTabName extends string = string> = {
|
|
22913
22913
|
children: React__default.ReactNode;
|
|
22914
|
-
selectedId?:
|
|
22914
|
+
selectedId?: TTabName;
|
|
22915
22915
|
manual?: boolean;
|
|
22916
|
-
orientation?:
|
|
22917
|
-
onSelectedIdChange?: (tabName:
|
|
22916
|
+
orientation?: TabStoreState['orientation'];
|
|
22917
|
+
onSelectedIdChange?: (tabName: TTabName | undefined) => void;
|
|
22918
|
+
/**
|
|
22919
|
+
* @deprecated you can control the route state on the application level.
|
|
22920
|
+
*/
|
|
22918
22921
|
useHashForState?: boolean;
|
|
22919
|
-
}
|
|
22920
|
-
declare const Tabs: ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22922
|
+
};
|
|
22923
|
+
declare const Tabs: <TTabName extends string = string>({ children, onSelectedIdChange, useHashForState, selectedId, manual, ...props }: TabsProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22921
22924
|
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22922
|
-
|
|
22923
|
-
id:
|
|
22925
|
+
type TabButtonProps<TTabName extends string = string> = Partial<TabProps> & {
|
|
22926
|
+
id: TTabName;
|
|
22924
22927
|
children: React__default.ReactNode;
|
|
22925
|
-
}
|
|
22926
|
-
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22927
|
-
|
|
22928
|
-
|
|
22928
|
+
};
|
|
22929
|
+
declare const TabButton: <TTabName extends string = string>({ children, id, ...props }: TabButtonProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22930
|
+
type TabContentProps<TTabName extends string = string> = Partial<TabPanelProps> & {
|
|
22931
|
+
tabId?: TTabName;
|
|
22929
22932
|
children: React__default.ReactNode;
|
|
22930
|
-
}
|
|
22931
|
-
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22933
|
+
};
|
|
22934
|
+
declare const TabContent: <TTabName extends string = string>({ children, ...props }: TabContentProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22932
22935
|
|
|
22933
22936
|
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
22934
22937
|
/** (optional) sets the title value
|
|
@@ -23231,4 +23234,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23231
23234
|
};
|
|
23232
23235
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23233
23236
|
|
|
23234
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps$1 as ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ChipTheme, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, DashedBoxProps, DescriptionList, DescriptionListProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContent, DrawerContentProps, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, DrawersRegistryRecord, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, IconButtonProps, IconColor, IconName, IconProps, IconType, IconsProvider, Image, ImageBroken, ImageProps, 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, LabelLeadingIcon, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, MediaCard, MediaCardProps, Menu, MenuGroup, MenuGroupProps, MenuItem, MenuItemInner, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, Modal, ModalProps, MultilineChip, MultilineChipProps, PageHeaderSection, PageHeaderSectionProps, Pagination, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, 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, ProgressBar, ProgressBarProps, ProgressList, ProgressListItem, ProgressListItemProps, ProgressListProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, RhythmProps, RichTextParamValue, RichTextToolbarIcon, ScrollableItemProps, ScrollableList, ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, SuccessMessage, SuccessMessageProps, Switch, SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TakeoverDrawerRenderer, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, Tile, TileContainer, TileContainerProps, TileProps, TileText, TileTitleProps, Tooltip, TooltipProps, TwoColumnLayout, TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, UniformLogoProps, UseShortcutOptions, VerticalRhythm, WarningMessage, WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|
|
23237
|
+
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, type ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, Fieldset, type FieldsetProps, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|
package/dist/index.js
CHANGED
|
@@ -15458,7 +15458,7 @@ var CaptionText = (dynamicSize) => import_react62.css`
|
|
|
15458
15458
|
color: var(--gray-500);
|
|
15459
15459
|
display: block;
|
|
15460
15460
|
font-size: ${dynamicSize ? "clamp(var(--fs-xs), 87.5%,var(--fs-sm))" : "var(--fs-sm)"};
|
|
15461
|
-
margin: var(--spacing-
|
|
15461
|
+
margin-block: var(--spacing-2xs) 1px;
|
|
15462
15462
|
max-width: var(--prose);
|
|
15463
15463
|
`;
|
|
15464
15464
|
|
|
@@ -17936,7 +17936,7 @@ var MediaCard = ({
|
|
|
17936
17936
|
e.stopPropagation();
|
|
17937
17937
|
}, []);
|
|
17938
17938
|
const hasMenuItems = Array.isArray(menuItems) ? menuItems.length > 0 : Boolean(menuItems);
|
|
17939
|
-
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Card, { css: cardBase, ...cardProps, onClick, "data-
|
|
17939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Card, { css: cardBase, ...cardProps, onClick, "data-testid": "card-item", children: [
|
|
17940
17940
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("button", { tabIndex: -1, css: coverWrapper, children: cover }),
|
|
17941
17941
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { css: contentWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(HorizontalRhythm, { gap: "sm", justify: "space-between", align: "center", css: { width: "100%" }, children: [
|
|
17942
17942
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(VerticalRhythm, { gap: "0", align: "flex-start", css: { flex: 1, minWidth: 0 }, children: [
|
|
@@ -17974,7 +17974,7 @@ var MediaCard = ({
|
|
|
17974
17974
|
type: "button",
|
|
17975
17975
|
"aria-label": "More options",
|
|
17976
17976
|
css: menuButton,
|
|
17977
|
-
"data-
|
|
17977
|
+
"data-testid": "button-more",
|
|
17978
17978
|
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Icon, { icon: "more-alt", iconColor: "gray", size: 16 })
|
|
17979
17979
|
}
|
|
17980
17980
|
),
|
|
@@ -19108,7 +19108,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19108
19108
|
"data-af": "true",
|
|
19109
19109
|
onBlur,
|
|
19110
19110
|
onChange: onNameChange,
|
|
19111
|
-
caption: nameCaption,
|
|
19111
|
+
caption: !nameIdError ? nameCaption : void 0,
|
|
19112
19112
|
placeholder: namePlaceholderText,
|
|
19113
19113
|
readOnly,
|
|
19114
19114
|
errorMessage: nameIdError,
|
|
@@ -19127,7 +19127,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19127
19127
|
autoComplete: "off",
|
|
19128
19128
|
onBlur,
|
|
19129
19129
|
onChange: onPublicIdChange,
|
|
19130
|
-
caption: publicIdCaption,
|
|
19130
|
+
caption: !publicIdError ? publicIdCaption : void 0,
|
|
19131
19131
|
placeholder: publicIdPlaceholderText,
|
|
19132
19132
|
errorMessage: publicIdError,
|
|
19133
19133
|
menuItems: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
@@ -21435,8 +21435,8 @@ var TableCellData = React24.forwardRef(
|
|
|
21435
21435
|
|
|
21436
21436
|
// src/components/Tabs/Tabs.tsx
|
|
21437
21437
|
init_emotion_jsx_shim();
|
|
21438
|
-
var import_react137 = require("react");
|
|
21439
|
-
var
|
|
21438
|
+
var import_react137 = require("@ariakit/react");
|
|
21439
|
+
var import_react138 = require("react");
|
|
21440
21440
|
|
|
21441
21441
|
// src/components/Tabs/Tabs.styles.ts
|
|
21442
21442
|
init_emotion_jsx_shim();
|
|
@@ -21466,48 +21466,60 @@ var tabButtonGroupStyles = import_react136.css`
|
|
|
21466
21466
|
|
|
21467
21467
|
// src/components/Tabs/Tabs.tsx
|
|
21468
21468
|
var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
|
|
21469
|
-
var CurrentTabContext = (0, import_react137.createContext)(null);
|
|
21470
21469
|
var useCurrentTab = () => {
|
|
21471
|
-
const context = (0, import_react137.
|
|
21470
|
+
const context = (0, import_react137.useTabStore)();
|
|
21472
21471
|
if (!context) {
|
|
21473
21472
|
throw new Error("This component can only be used inside <Tabs>");
|
|
21474
21473
|
}
|
|
21475
21474
|
return context;
|
|
21476
21475
|
};
|
|
21477
|
-
var Tabs = ({
|
|
21478
|
-
|
|
21476
|
+
var Tabs = ({
|
|
21477
|
+
children,
|
|
21478
|
+
onSelectedIdChange,
|
|
21479
|
+
useHashForState,
|
|
21480
|
+
selectedId,
|
|
21481
|
+
manual,
|
|
21482
|
+
...props
|
|
21483
|
+
}) => {
|
|
21484
|
+
const selected = (0, import_react138.useMemo)(() => {
|
|
21479
21485
|
if (selectedId)
|
|
21480
21486
|
return selectedId;
|
|
21481
21487
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
21482
21488
|
}, [selectedId, useHashForState]);
|
|
21483
|
-
const tab = (0,
|
|
21484
|
-
(0,
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
|
|
21494
|
-
|
|
21489
|
+
const tab = (0, import_react137.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
|
|
21490
|
+
const onTabSelect = (0, import_react138.useCallback)(
|
|
21491
|
+
(value) => {
|
|
21492
|
+
const selectedValueWithoutNull = value != null ? value : void 0;
|
|
21493
|
+
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
21494
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
21495
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
21496
|
+
window.history.replaceState(null, "", hashValue);
|
|
21497
|
+
}
|
|
21498
|
+
},
|
|
21499
|
+
[onSelectedIdChange, useHashForState]
|
|
21500
|
+
);
|
|
21501
|
+
(0, import_react138.useEffect)(() => {
|
|
21502
|
+
if (selected && selected !== tab.getState().activeId) {
|
|
21495
21503
|
tab.setSelectedId(selected);
|
|
21496
21504
|
}
|
|
21497
|
-
}, [selected]);
|
|
21498
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
21505
|
+
}, [selected, tab]);
|
|
21506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
21499
21507
|
};
|
|
21500
21508
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
21501
|
-
|
|
21502
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
21509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.TabList, { ...props, css: tabButtonGroupStyles, children });
|
|
21503
21510
|
};
|
|
21504
|
-
var TabButton = ({
|
|
21505
|
-
|
|
21506
|
-
|
|
21511
|
+
var TabButton = ({
|
|
21512
|
+
children,
|
|
21513
|
+
id,
|
|
21514
|
+
...props
|
|
21515
|
+
}) => {
|
|
21516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
21507
21517
|
};
|
|
21508
|
-
var TabContent = ({
|
|
21509
|
-
|
|
21510
|
-
|
|
21518
|
+
var TabContent = ({
|
|
21519
|
+
children,
|
|
21520
|
+
...props
|
|
21521
|
+
}) => {
|
|
21522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.TabPanel, { ...props, children });
|
|
21511
21523
|
};
|
|
21512
21524
|
|
|
21513
21525
|
// src/components/Validation/StatusBullet.tsx
|
|
@@ -21515,8 +21527,8 @@ init_emotion_jsx_shim();
|
|
|
21515
21527
|
|
|
21516
21528
|
// src/components/Validation/StatusBullet.styles.ts
|
|
21517
21529
|
init_emotion_jsx_shim();
|
|
21518
|
-
var
|
|
21519
|
-
var StatusBulletContainer =
|
|
21530
|
+
var import_react139 = require("@emotion/react");
|
|
21531
|
+
var StatusBulletContainer = import_react139.css`
|
|
21520
21532
|
align-items: center;
|
|
21521
21533
|
align-self: center;
|
|
21522
21534
|
color: var(--gray-500);
|
|
@@ -21533,33 +21545,33 @@ var StatusBulletContainer = import_react138.css`
|
|
|
21533
21545
|
display: block;
|
|
21534
21546
|
}
|
|
21535
21547
|
`;
|
|
21536
|
-
var StatusBulletBase =
|
|
21548
|
+
var StatusBulletBase = import_react139.css`
|
|
21537
21549
|
font-size: var(--fs-sm);
|
|
21538
21550
|
&:before {
|
|
21539
21551
|
width: var(--fs-xs);
|
|
21540
21552
|
height: var(--fs-xs);
|
|
21541
21553
|
}
|
|
21542
21554
|
`;
|
|
21543
|
-
var StatusBulletSmall =
|
|
21555
|
+
var StatusBulletSmall = import_react139.css`
|
|
21544
21556
|
font-size: var(--fs-xs);
|
|
21545
21557
|
&:before {
|
|
21546
21558
|
width: var(--fs-xxs);
|
|
21547
21559
|
height: var(--fs-xxs);
|
|
21548
21560
|
}
|
|
21549
21561
|
`;
|
|
21550
|
-
var StatusDraft =
|
|
21562
|
+
var StatusDraft = import_react139.css`
|
|
21551
21563
|
&:before {
|
|
21552
21564
|
background: var(--white);
|
|
21553
21565
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
21554
21566
|
}
|
|
21555
21567
|
`;
|
|
21556
|
-
var StatusModified =
|
|
21568
|
+
var StatusModified = import_react139.css`
|
|
21557
21569
|
&:before {
|
|
21558
21570
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
21559
21571
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
21560
21572
|
}
|
|
21561
21573
|
`;
|
|
21562
|
-
var StatusError =
|
|
21574
|
+
var StatusError = import_react139.css`
|
|
21563
21575
|
color: var(--error);
|
|
21564
21576
|
&:before {
|
|
21565
21577
|
/* TODO: replace this with an svg icon */
|
|
@@ -21572,17 +21584,17 @@ var StatusError = import_react138.css`
|
|
|
21572
21584
|
);
|
|
21573
21585
|
}
|
|
21574
21586
|
`;
|
|
21575
|
-
var StatusPublished =
|
|
21587
|
+
var StatusPublished = import_react139.css`
|
|
21576
21588
|
&:before {
|
|
21577
21589
|
background: var(--primary-action-default);
|
|
21578
21590
|
}
|
|
21579
21591
|
`;
|
|
21580
|
-
var StatusOrphan =
|
|
21592
|
+
var StatusOrphan = import_react139.css`
|
|
21581
21593
|
&:before {
|
|
21582
21594
|
background: var(--brand-secondary-5);
|
|
21583
21595
|
}
|
|
21584
21596
|
`;
|
|
21585
|
-
var StatusUnknown =
|
|
21597
|
+
var StatusUnknown = import_react139.css`
|
|
21586
21598
|
&:before {
|
|
21587
21599
|
background: var(--brand-secondary-1);
|
|
21588
21600
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.80.
|
|
3
|
+
"version": "19.80.1-alpha.149+7f4e45fecc",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@emotion/jest": "11.11.0",
|
|
22
22
|
"@storybook/client-api": "6.5.16",
|
|
23
23
|
"@storybook/react": "6.5.16",
|
|
24
|
-
"@types/react": "18.2.
|
|
25
|
-
"@types/react-dom": "18.2.
|
|
26
|
-
"@uniformdev/canvas": "^19.80.
|
|
27
|
-
"@uniformdev/richtext": "^19.80.
|
|
24
|
+
"@types/react": "18.2.40",
|
|
25
|
+
"@types/react-dom": "18.2.17",
|
|
26
|
+
"@uniformdev/canvas": "^19.80.1-alpha.149+7f4e45fecc",
|
|
27
|
+
"@uniformdev/richtext": "^19.80.1-alpha.149+7f4e45fecc",
|
|
28
28
|
"autoprefixer": "10.4.16",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.31",
|
|
31
31
|
"react": "18.2.0",
|
|
32
32
|
"react-dom": "18.2.0",
|
|
33
|
-
"tsup": "
|
|
33
|
+
"tsup": "8.0.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@ariakit/react": "^0.3.5",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"react-hotkeys-hook": "4.4.1",
|
|
54
54
|
"react-paginate": "8.2.0",
|
|
55
55
|
"react-select": "5.7.7",
|
|
56
|
-
"react-use": "17.4.
|
|
56
|
+
"react-use": "17.4.2",
|
|
57
57
|
"reakit": "1.3.11",
|
|
58
58
|
"zod-to-json-schema": "3.21.4"
|
|
59
59
|
},
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7f4e45fecc013dc224fbd0a2975f6d208382b05e"
|
|
71
71
|
}
|