@uniformdev/design-system 20.63.0 → 20.63.1-alpha.12
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 +61 -21
- package/dist/index.d.mts +38 -7
- package/dist/index.d.ts +38 -7
- package/dist/index.js +79 -21
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -657,7 +657,7 @@ var breakpoints = {
|
|
|
657
657
|
"2xl": 1536
|
|
658
658
|
};
|
|
659
659
|
var useBreakpoint = createBreakpoint(breakpoints);
|
|
660
|
-
var mq = (size) => `@media (
|
|
660
|
+
var mq = (size, bound = "min") => `@media (${bound}-width: ${breakpoints[size]}px)`;
|
|
661
661
|
var supports = (cssProp) => `@supports (${cssProp})`;
|
|
662
662
|
var cq = (size) => `@container (min-width: ${size})`;
|
|
663
663
|
var prefersReducedMotion = (cssProp) => `@media (prefers-reduced-motion: ${cssProp})`;
|
|
@@ -2204,7 +2204,7 @@ from {
|
|
|
2204
2204
|
transform: translateX(100%);
|
|
2205
2205
|
}
|
|
2206
2206
|
to {
|
|
2207
|
-
transform:
|
|
2207
|
+
transform: translateX(0);
|
|
2208
2208
|
}
|
|
2209
2209
|
`;
|
|
2210
2210
|
var spin = keyframes`
|
|
@@ -3720,11 +3720,19 @@ import { CgProfile } from "@react-icons/all-files/cg/CgProfile";
|
|
|
3720
3720
|
|
|
3721
3721
|
// src/components/Avatar/Avatar.styles.ts
|
|
3722
3722
|
import { css as css19 } from "@emotion/react";
|
|
3723
|
+
var AVATAR_SIZE_2XS = "1rem";
|
|
3724
|
+
var AVATAR_SIZE_XS = "1.5rem";
|
|
3725
|
+
var AVATAR_SIZE_SM = "2rem";
|
|
3726
|
+
var AVATAR_SIZE_MD = "2.5rem";
|
|
3727
|
+
var AVATAR_SIZE_LG = "3rem";
|
|
3728
|
+
var AVATAR_SIZE_XL = "4rem";
|
|
3729
|
+
var AVATAR_SIZE_2XL = "5rem";
|
|
3730
|
+
var AVATAR_SIZE_3XL = "6rem";
|
|
3723
3731
|
var avatarStyles = css19`
|
|
3724
3732
|
display: flex;
|
|
3725
3733
|
justify-content: center;
|
|
3726
3734
|
align-items: center;
|
|
3727
|
-
width:
|
|
3735
|
+
width: ${AVATAR_SIZE_MD};
|
|
3728
3736
|
aspect-ratio: 1;
|
|
3729
3737
|
border-radius: var(--rounded-full);
|
|
3730
3738
|
border: 1px solid var(--gray-300);
|
|
@@ -3740,25 +3748,28 @@ var avatarImageStyles = css19`
|
|
|
3740
3748
|
object-fit: cover;
|
|
3741
3749
|
`;
|
|
3742
3750
|
var avatarSize2xsStyles = css19`
|
|
3743
|
-
width:
|
|
3751
|
+
width: ${AVATAR_SIZE_2XS};
|
|
3744
3752
|
`;
|
|
3745
3753
|
var avatarSizeXsStyles = css19`
|
|
3746
|
-
width:
|
|
3754
|
+
width: ${AVATAR_SIZE_XS};
|
|
3747
3755
|
`;
|
|
3748
3756
|
var avatarSizeSmStyles = css19`
|
|
3749
|
-
width:
|
|
3757
|
+
width: ${AVATAR_SIZE_SM};
|
|
3750
3758
|
`;
|
|
3751
3759
|
var avatarSizeMdStyles = css19`
|
|
3752
|
-
width:
|
|
3760
|
+
width: ${AVATAR_SIZE_MD};
|
|
3753
3761
|
`;
|
|
3754
3762
|
var avatarSizeLgStyles = css19`
|
|
3755
|
-
width:
|
|
3763
|
+
width: ${AVATAR_SIZE_LG};
|
|
3756
3764
|
`;
|
|
3757
3765
|
var avatarSizeXlStyles = css19`
|
|
3758
|
-
width:
|
|
3766
|
+
width: ${AVATAR_SIZE_XL};
|
|
3759
3767
|
`;
|
|
3760
3768
|
var avatarSize2xlStyles = css19`
|
|
3761
|
-
width:
|
|
3769
|
+
width: ${AVATAR_SIZE_2XL};
|
|
3770
|
+
`;
|
|
3771
|
+
var avatarSize3xlStyles = css19`
|
|
3772
|
+
width: ${AVATAR_SIZE_3XL};
|
|
3762
3773
|
`;
|
|
3763
3774
|
|
|
3764
3775
|
// src/components/Avatar/Avatar.tsx
|
|
@@ -3770,7 +3781,8 @@ var avatarSizeStylesMap = {
|
|
|
3770
3781
|
md: avatarSizeMdStyles,
|
|
3771
3782
|
lg: avatarSizeLgStyles,
|
|
3772
3783
|
xl: avatarSizeXlStyles,
|
|
3773
|
-
"2xl": avatarSize2xlStyles
|
|
3784
|
+
"2xl": avatarSize2xlStyles,
|
|
3785
|
+
"3xl": avatarSize3xlStyles
|
|
3774
3786
|
};
|
|
3775
3787
|
var Avatar = ({
|
|
3776
3788
|
src,
|
|
@@ -7670,8 +7682,12 @@ var ChipThemeNeutralLight = css48`
|
|
|
7670
7682
|
background: var(--gray-100);
|
|
7671
7683
|
color: var(--typography-base);
|
|
7672
7684
|
:where([role='button']) {
|
|
7673
|
-
&:
|
|
7685
|
+
&:hover,
|
|
7674
7686
|
&:focus {
|
|
7687
|
+
background: var(--gray-200);
|
|
7688
|
+
}
|
|
7689
|
+
|
|
7690
|
+
&:active {
|
|
7675
7691
|
background: var(--gray-400);
|
|
7676
7692
|
}
|
|
7677
7693
|
}
|
|
@@ -7826,7 +7842,7 @@ import { forwardRef as forwardRef17 } from "react";
|
|
|
7826
7842
|
// src/components/Chip/FilterChip.styles.ts
|
|
7827
7843
|
import { css as css49 } from "@emotion/react";
|
|
7828
7844
|
var paddingSize = {
|
|
7829
|
-
xs: "var(--spacing-2xs) var(--spacing-
|
|
7845
|
+
xs: "var(--spacing-2xs) var(--spacing-xs)",
|
|
7830
7846
|
sm: "var(--spacing-xs) var(--spacing-base)",
|
|
7831
7847
|
md: "var(--spacing-sm) var(--spacing-base)",
|
|
7832
7848
|
lg: "var(--spacing-sm) var(--spacing-md)"
|
|
@@ -8018,8 +8034,8 @@ var counterContainer = (bgColor, hasIcon) => css51`
|
|
|
8018
8034
|
display: inline-flex;
|
|
8019
8035
|
font-weight: var(--fw-regular);
|
|
8020
8036
|
justify-content: center;
|
|
8021
|
-
padding: ${hasIcon ? "0 var(--spacing-sm)" : "var(--spacing-sm)"};
|
|
8022
|
-
width: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
8037
|
+
padding: ${hasIcon ? "0 var(--spacing-sm)" : "0 var(--spacing-sm)"};
|
|
8038
|
+
min-width: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
8023
8039
|
height: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
8024
8040
|
cursor: default;
|
|
8025
8041
|
`;
|
|
@@ -10656,7 +10672,8 @@ var KeyValueInput = ({
|
|
|
10656
10672
|
errors,
|
|
10657
10673
|
onFocusChange,
|
|
10658
10674
|
showIconColumn = false,
|
|
10659
|
-
renderIconSelector
|
|
10675
|
+
renderIconSelector,
|
|
10676
|
+
independentKeyValue = false
|
|
10660
10677
|
}) => {
|
|
10661
10678
|
const [isDragging, setIsDragging] = useState16(false);
|
|
10662
10679
|
const [indexToFocus, setIndexToFocus] = useState16(null);
|
|
@@ -10737,7 +10754,10 @@ var KeyValueInput = ({
|
|
|
10737
10754
|
newItems.push({ key, value: val });
|
|
10738
10755
|
} else {
|
|
10739
10756
|
const trimmedLine = line.trim();
|
|
10740
|
-
newItems.push({
|
|
10757
|
+
newItems.push({
|
|
10758
|
+
key: trimmedLine,
|
|
10759
|
+
value: independentKeyValue ? "" : trimmedLine
|
|
10760
|
+
});
|
|
10741
10761
|
}
|
|
10742
10762
|
});
|
|
10743
10763
|
const newValue = [...value];
|
|
@@ -10745,7 +10765,7 @@ var KeyValueInput = ({
|
|
|
10745
10765
|
onChange(newValue);
|
|
10746
10766
|
setIndexToFocus(rowIndex + newItems.length - 1);
|
|
10747
10767
|
},
|
|
10748
|
-
[onChange, value]
|
|
10768
|
+
[onChange, value, independentKeyValue]
|
|
10749
10769
|
);
|
|
10750
10770
|
const handleDragEnd = useCallback8(
|
|
10751
10771
|
(e) => {
|
|
@@ -10875,7 +10895,8 @@ var KeyValueInput = ({
|
|
|
10875
10895
|
const newSet = new Set(current);
|
|
10876
10896
|
newSet.add(value2);
|
|
10877
10897
|
return newSet;
|
|
10878
|
-
})
|
|
10898
|
+
}),
|
|
10899
|
+
independentKeyValue
|
|
10879
10900
|
},
|
|
10880
10901
|
isDragging ? id : index
|
|
10881
10902
|
)) })
|
|
@@ -10911,7 +10932,8 @@ var KeyValueInputItem = ({
|
|
|
10911
10932
|
showIconColumn = false,
|
|
10912
10933
|
renderIconSelector,
|
|
10913
10934
|
blockAutoGenerateValue,
|
|
10914
|
-
onBlurValue
|
|
10935
|
+
onBlurValue,
|
|
10936
|
+
independentKeyValue
|
|
10915
10937
|
}) => {
|
|
10916
10938
|
const { attributes, listeners, setNodeRef, transform, transition, setActivatorNodeRef, isSorting } = useSortable({
|
|
10917
10939
|
id,
|
|
@@ -10974,7 +10996,7 @@ var KeyValueInputItem = ({
|
|
|
10974
10996
|
showLabel: false,
|
|
10975
10997
|
disabled: disabled2,
|
|
10976
10998
|
onChange: (e) => {
|
|
10977
|
-
const hasStoredValue = value.value !== value.key || blockAutoGenerateValue;
|
|
10999
|
+
const hasStoredValue = independentKeyValue || value.value !== value.key || blockAutoGenerateValue;
|
|
10978
11000
|
onChange == null ? void 0 : onChange({
|
|
10979
11001
|
key: e.currentTarget.value,
|
|
10980
11002
|
value: hasStoredValue ? value.value : e.currentTarget.value,
|
|
@@ -20217,6 +20239,14 @@ var StatusBullet = ({
|
|
|
20217
20239
|
return /* @__PURE__ */ jsx162(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx162("div", { children: /* @__PURE__ */ jsx162(StatusComponent, {}) }) });
|
|
20218
20240
|
};
|
|
20219
20241
|
export {
|
|
20242
|
+
AVATAR_SIZE_2XL,
|
|
20243
|
+
AVATAR_SIZE_2XS,
|
|
20244
|
+
AVATAR_SIZE_3XL,
|
|
20245
|
+
AVATAR_SIZE_LG,
|
|
20246
|
+
AVATAR_SIZE_MD,
|
|
20247
|
+
AVATAR_SIZE_SM,
|
|
20248
|
+
AVATAR_SIZE_XL,
|
|
20249
|
+
AVATAR_SIZE_XS,
|
|
20220
20250
|
AddButton,
|
|
20221
20251
|
AddListButton,
|
|
20222
20252
|
AsideAndSectionLayout,
|
|
@@ -20421,6 +20451,16 @@ export {
|
|
|
20421
20451
|
accessibleHidden,
|
|
20422
20452
|
actionBarVisibilityStyles,
|
|
20423
20453
|
addPathSegmentToPathname,
|
|
20454
|
+
avatarImageStyles,
|
|
20455
|
+
avatarSize2xlStyles,
|
|
20456
|
+
avatarSize2xsStyles,
|
|
20457
|
+
avatarSize3xlStyles,
|
|
20458
|
+
avatarSizeLgStyles,
|
|
20459
|
+
avatarSizeMdStyles,
|
|
20460
|
+
avatarSizeSmStyles,
|
|
20461
|
+
avatarSizeXlStyles,
|
|
20462
|
+
avatarSizeXsStyles,
|
|
20463
|
+
avatarStyles,
|
|
20424
20464
|
borderTopIcon,
|
|
20425
20465
|
breakpoints,
|
|
20426
20466
|
button,
|
package/dist/index.d.mts
CHANGED
|
@@ -16,11 +16,11 @@ import { JsonSchema7Type } from 'zod-to-json-schema';
|
|
|
16
16
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
17
17
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
18
18
|
export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
|
|
19
|
-
import {
|
|
19
|
+
import { ElementNode, NodeKey, Spread, SerializedElementNode, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
|
|
20
|
+
export { Id as ToastId, toast } from 'react-toastify';
|
|
20
21
|
import * as _uniformdev_richtext from '@uniformdev/richtext';
|
|
21
22
|
import { RichTextBuiltInElement } from '@uniformdev/richtext';
|
|
22
23
|
export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
|
|
23
|
-
export { Id as ToastId, toast } from 'react-toastify';
|
|
24
24
|
|
|
25
25
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
26
26
|
type ThemeProps = {
|
|
@@ -55,10 +55,12 @@ declare const useBreakpoint: () => BreakpointSize;
|
|
|
55
55
|
* Media Query Helper Function
|
|
56
56
|
* @function
|
|
57
57
|
* @param {string} size - The responsive breakpoint value
|
|
58
|
-
* @
|
|
58
|
+
* @param {'min' | 'max'} [bound='min'] - Whether to use min-width or max-width
|
|
59
|
+
* @returns {string} - compiled media query e.g. @media (min-width: 640px)
|
|
59
60
|
* @example `${mq('md')} { background: red; }`
|
|
61
|
+
* @example `${mq('lg', 'max')} { overflow: hidden; }`
|
|
60
62
|
*/
|
|
61
|
-
declare const mq: (size: BreakpointSize) => string;
|
|
63
|
+
declare const mq: (size: BreakpointSize, bound?: "min" | "max") => string;
|
|
62
64
|
/**
|
|
63
65
|
* Media Query Helper Function
|
|
64
66
|
* @function
|
|
@@ -342,7 +344,7 @@ type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
342
344
|
*/
|
|
343
345
|
declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, variant, theme, ...buttonProps }: AddListButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
344
346
|
|
|
345
|
-
type AvatarSizeProp = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
347
|
+
type AvatarSizeProp = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
346
348
|
type AvatarProps = {
|
|
347
349
|
/**
|
|
348
350
|
* The src of the avatar.
|
|
@@ -367,6 +369,27 @@ type AvatarProps = {
|
|
|
367
369
|
*/
|
|
368
370
|
declare const Avatar: ({ src, label, children, size, as, labelWithoutPortal, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
369
371
|
|
|
372
|
+
/** Canonical width tokens for each `Avatar` `size` (single source of truth for rem values). */
|
|
373
|
+
declare const AVATAR_SIZE_2XS = "1rem";
|
|
374
|
+
declare const AVATAR_SIZE_XS = "1.5rem";
|
|
375
|
+
declare const AVATAR_SIZE_SM = "2rem";
|
|
376
|
+
declare const AVATAR_SIZE_MD = "2.5rem";
|
|
377
|
+
declare const AVATAR_SIZE_LG = "3rem";
|
|
378
|
+
declare const AVATAR_SIZE_XL = "4rem";
|
|
379
|
+
declare const AVATAR_SIZE_2XL = "5rem";
|
|
380
|
+
/** Largest step (6rem ≈ 96px when root font size is 16px). */
|
|
381
|
+
declare const AVATAR_SIZE_3XL = "6rem";
|
|
382
|
+
declare const avatarStyles: _emotion_react.SerializedStyles;
|
|
383
|
+
declare const avatarImageStyles: _emotion_react.SerializedStyles;
|
|
384
|
+
declare const avatarSize2xsStyles: _emotion_react.SerializedStyles;
|
|
385
|
+
declare const avatarSizeXsStyles: _emotion_react.SerializedStyles;
|
|
386
|
+
declare const avatarSizeSmStyles: _emotion_react.SerializedStyles;
|
|
387
|
+
declare const avatarSizeMdStyles: _emotion_react.SerializedStyles;
|
|
388
|
+
declare const avatarSizeLgStyles: _emotion_react.SerializedStyles;
|
|
389
|
+
declare const avatarSizeXlStyles: _emotion_react.SerializedStyles;
|
|
390
|
+
declare const avatarSize2xlStyles: _emotion_react.SerializedStyles;
|
|
391
|
+
declare const avatarSize3xlStyles: _emotion_react.SerializedStyles;
|
|
392
|
+
|
|
370
393
|
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
371
394
|
/**
|
|
372
395
|
* The maximum number of avatars to show. This must be 2 or more.
|
|
@@ -2763,6 +2786,14 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2763
2786
|
onChange: (icon: string) => void;
|
|
2764
2787
|
disabled?: boolean;
|
|
2765
2788
|
}) => ReactNode;
|
|
2789
|
+
/**
|
|
2790
|
+
* When true, keys and values are treated as fully independent: typing a key
|
|
2791
|
+
* does not autofill the value, and multi-line paste lines without a comma
|
|
2792
|
+
* are imported as keys with empty values rather than mirroring key into value.
|
|
2793
|
+
* Use for inputs where the value has no logical relation to the key
|
|
2794
|
+
* (e.g. HTTP header name/value pairs).
|
|
2795
|
+
*/
|
|
2796
|
+
independentKeyValue?: boolean;
|
|
2766
2797
|
};
|
|
2767
2798
|
/**
|
|
2768
2799
|
* A component to render a sortable key-value input
|
|
@@ -2771,7 +2802,7 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2771
2802
|
* return <KeyValueInput value={value} onChange={setValue} />
|
|
2772
2803
|
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
2773
2804
|
*/
|
|
2774
|
-
declare const KeyValueInput: <TValue extends string = string>({ value, onChange, label, newItemDefault, keyLabel, valueLabel, iconLabel, keyInfoPopover, valueInfoPopover, iconInfoPopover, disabled, errors, onFocusChange, showIconColumn, renderIconSelector, }: KeyValueInputProps<TValue>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2805
|
+
declare const KeyValueInput: <TValue extends string = string>({ value, onChange, label, newItemDefault, keyLabel, valueLabel, iconLabel, keyInfoPopover, valueInfoPopover, iconInfoPopover, disabled, errors, onFocusChange, showIconColumn, renderIconSelector, independentKeyValue, }: KeyValueInputProps<TValue>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2775
2806
|
|
|
2776
2807
|
interface DropdownStyleMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2777
2808
|
children: React.ReactNode;
|
|
@@ -5438,4 +5469,4 @@ declare const StatusBullet: ({ status, hideText, size, message, compact, ...prop
|
|
|
5438
5469
|
|
|
5439
5470
|
declare const actionBarVisibilityStyles: _emotion_react.SerializedStyles;
|
|
5440
5471
|
|
|
5441
|
-
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AsideAndSectionLayout, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarCellCss, type CalendarProps, type CalendarStyles, 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, FilterChip, FlexiCard, FlexiCardTitle, type GroupedOption, 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, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelOption, type LabelProps, LabelsQuickFilter, type LabelsQuickFilterItem, type LabelsQuickFilterProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, LinkButton, type LinkButtonProps, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkTile, type LinkTileWithRefProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuSelect, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, ModalPortalContext, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, ObjectListSubText, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterActionButton, type ParameterActionButtonProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLabels, ParameterLabelsInner, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterNumberSlider, ParameterNumberSliderInner, type ParameterNumberSliderProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterSelectSlider, ParameterSelectSliderInner, type ParameterSelectSliderProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, PopoverBody, type PopoverBodyProps, type PopoverProps, type PopoverStore, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, QuickFilter, type QuickFilterSelectedItem, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, ResponsiveTableContainer, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, Slider, SliderLabels, type SliderLabelsProps, type SliderOption, type SliderProps, Spinner, StackedModal, type StackedModalProps, StackedModalStep, type StackedModalStepProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, type StepTransitionState, SuccessMessage, type SuccessMessageProps, Swatch, SwatchComboBox, SwatchComboBoxLabelStyles, SwatchLabel, type SwatchLabelProps, SwatchLabelRemoveButton, SwatchLabelTooltip, type SwatchProps, type SwatchSize, type SwatchVariant, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonGroupProps, 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, type TickMark, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, actionBarVisibilityStyles, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonDisabled, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, chatIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, debounce, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getButtonSize, getButtonStyles, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, mq, numberInput, prefersReducedMotion, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInRtl, slideInTtb, spin, structurePanelIcon, supports, swatchColors, swatchVariant, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, uniformStatusDraftIcon, uniformStatusModifiedIcon, uniformStatusPublishedIcon, uniformUsageStatusIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useImageLoadFallback, useIsSubmenuTriggerMode, useModalPortalContainer, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, useStackedModal, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
|
5472
|
+
export { AVATAR_SIZE_2XL, AVATAR_SIZE_2XS, AVATAR_SIZE_3XL, AVATAR_SIZE_LG, AVATAR_SIZE_MD, AVATAR_SIZE_SM, AVATAR_SIZE_XL, AVATAR_SIZE_XS, type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AsideAndSectionLayout, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarCellCss, type CalendarProps, type CalendarStyles, 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, FilterChip, FlexiCard, FlexiCardTitle, type GroupedOption, 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, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelOption, type LabelProps, LabelsQuickFilter, type LabelsQuickFilterItem, type LabelsQuickFilterProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, LinkButton, type LinkButtonProps, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkTile, type LinkTileWithRefProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuSelect, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, ModalPortalContext, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, ObjectListSubText, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterActionButton, type ParameterActionButtonProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLabels, ParameterLabelsInner, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterNumberSlider, ParameterNumberSliderInner, type ParameterNumberSliderProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterSelectSlider, ParameterSelectSliderInner, type ParameterSelectSliderProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, PopoverBody, type PopoverBodyProps, type PopoverProps, type PopoverStore, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, QuickFilter, type QuickFilterSelectedItem, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, ResponsiveTableContainer, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, Slider, SliderLabels, type SliderLabelsProps, type SliderOption, type SliderProps, Spinner, StackedModal, type StackedModalProps, StackedModalStep, type StackedModalStepProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, type StepTransitionState, SuccessMessage, type SuccessMessageProps, Swatch, SwatchComboBox, SwatchComboBoxLabelStyles, SwatchLabel, type SwatchLabelProps, SwatchLabelRemoveButton, SwatchLabelTooltip, type SwatchProps, type SwatchSize, type SwatchVariant, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonGroupProps, 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, type TickMark, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, actionBarVisibilityStyles, addPathSegmentToPathname, avatarImageStyles, avatarSize2xlStyles, avatarSize2xsStyles, avatarSize3xlStyles, avatarSizeLgStyles, avatarSizeMdStyles, avatarSizeSmStyles, avatarSizeXlStyles, avatarSizeXsStyles, avatarStyles, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonDisabled, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, chatIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, debounce, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getButtonSize, getButtonStyles, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, mq, numberInput, prefersReducedMotion, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInRtl, slideInTtb, spin, structurePanelIcon, supports, swatchColors, swatchVariant, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, uniformStatusDraftIcon, uniformStatusModifiedIcon, uniformStatusPublishedIcon, uniformUsageStatusIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useImageLoadFallback, useIsSubmenuTriggerMode, useModalPortalContainer, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, useStackedModal, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,11 +16,11 @@ import { JsonSchema7Type } from 'zod-to-json-schema';
|
|
|
16
16
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
17
17
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
18
18
|
export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
|
|
19
|
-
import {
|
|
19
|
+
import { ElementNode, NodeKey, Spread, SerializedElementNode, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
|
|
20
|
+
export { Id as ToastId, toast } from 'react-toastify';
|
|
20
21
|
import * as _uniformdev_richtext from '@uniformdev/richtext';
|
|
21
22
|
import { RichTextBuiltInElement } from '@uniformdev/richtext';
|
|
22
23
|
export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
|
|
23
|
-
export { Id as ToastId, toast } from 'react-toastify';
|
|
24
24
|
|
|
25
25
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
26
26
|
type ThemeProps = {
|
|
@@ -55,10 +55,12 @@ declare const useBreakpoint: () => BreakpointSize;
|
|
|
55
55
|
* Media Query Helper Function
|
|
56
56
|
* @function
|
|
57
57
|
* @param {string} size - The responsive breakpoint value
|
|
58
|
-
* @
|
|
58
|
+
* @param {'min' | 'max'} [bound='min'] - Whether to use min-width or max-width
|
|
59
|
+
* @returns {string} - compiled media query e.g. @media (min-width: 640px)
|
|
59
60
|
* @example `${mq('md')} { background: red; }`
|
|
61
|
+
* @example `${mq('lg', 'max')} { overflow: hidden; }`
|
|
60
62
|
*/
|
|
61
|
-
declare const mq: (size: BreakpointSize) => string;
|
|
63
|
+
declare const mq: (size: BreakpointSize, bound?: "min" | "max") => string;
|
|
62
64
|
/**
|
|
63
65
|
* Media Query Helper Function
|
|
64
66
|
* @function
|
|
@@ -342,7 +344,7 @@ type AddListButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
342
344
|
*/
|
|
343
345
|
declare const AddListButton: ({ buttonText, onButtonClick, disabled, icon, variant, theme, ...buttonProps }: AddListButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
344
346
|
|
|
345
|
-
type AvatarSizeProp = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
347
|
+
type AvatarSizeProp = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
346
348
|
type AvatarProps = {
|
|
347
349
|
/**
|
|
348
350
|
* The src of the avatar.
|
|
@@ -367,6 +369,27 @@ type AvatarProps = {
|
|
|
367
369
|
*/
|
|
368
370
|
declare const Avatar: ({ src, label, children, size, as, labelWithoutPortal, ...props }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
369
371
|
|
|
372
|
+
/** Canonical width tokens for each `Avatar` `size` (single source of truth for rem values). */
|
|
373
|
+
declare const AVATAR_SIZE_2XS = "1rem";
|
|
374
|
+
declare const AVATAR_SIZE_XS = "1.5rem";
|
|
375
|
+
declare const AVATAR_SIZE_SM = "2rem";
|
|
376
|
+
declare const AVATAR_SIZE_MD = "2.5rem";
|
|
377
|
+
declare const AVATAR_SIZE_LG = "3rem";
|
|
378
|
+
declare const AVATAR_SIZE_XL = "4rem";
|
|
379
|
+
declare const AVATAR_SIZE_2XL = "5rem";
|
|
380
|
+
/** Largest step (6rem ≈ 96px when root font size is 16px). */
|
|
381
|
+
declare const AVATAR_SIZE_3XL = "6rem";
|
|
382
|
+
declare const avatarStyles: _emotion_react.SerializedStyles;
|
|
383
|
+
declare const avatarImageStyles: _emotion_react.SerializedStyles;
|
|
384
|
+
declare const avatarSize2xsStyles: _emotion_react.SerializedStyles;
|
|
385
|
+
declare const avatarSizeXsStyles: _emotion_react.SerializedStyles;
|
|
386
|
+
declare const avatarSizeSmStyles: _emotion_react.SerializedStyles;
|
|
387
|
+
declare const avatarSizeMdStyles: _emotion_react.SerializedStyles;
|
|
388
|
+
declare const avatarSizeLgStyles: _emotion_react.SerializedStyles;
|
|
389
|
+
declare const avatarSizeXlStyles: _emotion_react.SerializedStyles;
|
|
390
|
+
declare const avatarSize2xlStyles: _emotion_react.SerializedStyles;
|
|
391
|
+
declare const avatarSize3xlStyles: _emotion_react.SerializedStyles;
|
|
392
|
+
|
|
370
393
|
interface AvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
371
394
|
/**
|
|
372
395
|
* The maximum number of avatars to show. This must be 2 or more.
|
|
@@ -2763,6 +2786,14 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2763
2786
|
onChange: (icon: string) => void;
|
|
2764
2787
|
disabled?: boolean;
|
|
2765
2788
|
}) => ReactNode;
|
|
2789
|
+
/**
|
|
2790
|
+
* When true, keys and values are treated as fully independent: typing a key
|
|
2791
|
+
* does not autofill the value, and multi-line paste lines without a comma
|
|
2792
|
+
* are imported as keys with empty values rather than mirroring key into value.
|
|
2793
|
+
* Use for inputs where the value has no logical relation to the key
|
|
2794
|
+
* (e.g. HTTP header name/value pairs).
|
|
2795
|
+
*/
|
|
2796
|
+
independentKeyValue?: boolean;
|
|
2766
2797
|
};
|
|
2767
2798
|
/**
|
|
2768
2799
|
* A component to render a sortable key-value input
|
|
@@ -2771,7 +2802,7 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2771
2802
|
* return <KeyValueInput value={value} onChange={setValue} />
|
|
2772
2803
|
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
2773
2804
|
*/
|
|
2774
|
-
declare const KeyValueInput: <TValue extends string = string>({ value, onChange, label, newItemDefault, keyLabel, valueLabel, iconLabel, keyInfoPopover, valueInfoPopover, iconInfoPopover, disabled, errors, onFocusChange, showIconColumn, renderIconSelector, }: KeyValueInputProps<TValue>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2805
|
+
declare const KeyValueInput: <TValue extends string = string>({ value, onChange, label, newItemDefault, keyLabel, valueLabel, iconLabel, keyInfoPopover, valueInfoPopover, iconInfoPopover, disabled, errors, onFocusChange, showIconColumn, renderIconSelector, independentKeyValue, }: KeyValueInputProps<TValue>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2775
2806
|
|
|
2776
2807
|
interface DropdownStyleMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2777
2808
|
children: React.ReactNode;
|
|
@@ -5438,4 +5469,4 @@ declare const StatusBullet: ({ status, hideText, size, message, compact, ...prop
|
|
|
5438
5469
|
|
|
5439
5470
|
declare const actionBarVisibilityStyles: _emotion_react.SerializedStyles;
|
|
5440
5471
|
|
|
5441
|
-
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AsideAndSectionLayout, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarCellCss, type CalendarProps, type CalendarStyles, 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, FilterChip, FlexiCard, FlexiCardTitle, type GroupedOption, 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, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelOption, type LabelProps, LabelsQuickFilter, type LabelsQuickFilterItem, type LabelsQuickFilterProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, LinkButton, type LinkButtonProps, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkTile, type LinkTileWithRefProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuSelect, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, ModalPortalContext, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, ObjectListSubText, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterActionButton, type ParameterActionButtonProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLabels, ParameterLabelsInner, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterNumberSlider, ParameterNumberSliderInner, type ParameterNumberSliderProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterSelectSlider, ParameterSelectSliderInner, type ParameterSelectSliderProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, PopoverBody, type PopoverBodyProps, type PopoverProps, type PopoverStore, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, QuickFilter, type QuickFilterSelectedItem, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, ResponsiveTableContainer, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, Slider, SliderLabels, type SliderLabelsProps, type SliderOption, type SliderProps, Spinner, StackedModal, type StackedModalProps, StackedModalStep, type StackedModalStepProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, type StepTransitionState, SuccessMessage, type SuccessMessageProps, Swatch, SwatchComboBox, SwatchComboBoxLabelStyles, SwatchLabel, type SwatchLabelProps, SwatchLabelRemoveButton, SwatchLabelTooltip, type SwatchProps, type SwatchSize, type SwatchVariant, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonGroupProps, 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, type TickMark, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, actionBarVisibilityStyles, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonDisabled, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, chatIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, debounce, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getButtonSize, getButtonStyles, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, mq, numberInput, prefersReducedMotion, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInRtl, slideInTtb, spin, structurePanelIcon, supports, swatchColors, swatchVariant, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, uniformStatusDraftIcon, uniformStatusModifiedIcon, uniformStatusPublishedIcon, uniformUsageStatusIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useImageLoadFallback, useIsSubmenuTriggerMode, useModalPortalContainer, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, useStackedModal, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
|
5472
|
+
export { AVATAR_SIZE_2XL, AVATAR_SIZE_2XS, AVATAR_SIZE_3XL, AVATAR_SIZE_LG, AVATAR_SIZE_MD, AVATAR_SIZE_SM, AVATAR_SIZE_XL, AVATAR_SIZE_XS, type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AsideAndSectionLayout, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarCellCss, type CalendarProps, type CalendarStyles, 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, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, FilterChip, FlexiCard, FlexiCardTitle, type GroupedOption, 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, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelOption, type LabelProps, LabelsQuickFilter, type LabelsQuickFilterItem, type LabelsQuickFilterProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, LinkButton, type LinkButtonProps, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkTile, type LinkTileWithRefProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuSelect, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, ModalPortalContext, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, ObjectListSubText, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterActionButton, type ParameterActionButtonProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLabels, ParameterLabelsInner, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterNumberSlider, ParameterNumberSliderInner, type ParameterNumberSliderProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterSelectSlider, ParameterSelectSliderInner, type ParameterSelectSliderProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, PopoverBody, type PopoverBodyProps, type PopoverProps, type PopoverStore, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, QuickFilter, type QuickFilterSelectedItem, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, ResponsiveTableContainer, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, Slider, SliderLabels, type SliderLabelsProps, type SliderOption, type SliderProps, Spinner, StackedModal, type StackedModalProps, StackedModalStep, type StackedModalStepProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, type StepTransitionState, SuccessMessage, type SuccessMessageProps, Swatch, SwatchComboBox, SwatchComboBoxLabelStyles, SwatchLabel, type SwatchLabelProps, SwatchLabelRemoveButton, SwatchLabelTooltip, type SwatchProps, type SwatchSize, type SwatchVariant, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonGroupProps, 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, type TickMark, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, actionBarVisibilityStyles, addPathSegmentToPathname, avatarImageStyles, avatarSize2xlStyles, avatarSize2xsStyles, avatarSize3xlStyles, avatarSizeLgStyles, avatarSizeMdStyles, avatarSizeSmStyles, avatarSizeXlStyles, avatarSizeXsStyles, avatarStyles, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonDisabled, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, chatIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, debounce, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getButtonSize, getButtonStyles, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, mq, numberInput, prefersReducedMotion, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInRtl, slideInTtb, spin, structurePanelIcon, supports, swatchColors, swatchVariant, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, uniformStatusDraftIcon, uniformStatusModifiedIcon, uniformStatusPublishedIcon, uniformUsageStatusIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useImageLoadFallback, useIsSubmenuTriggerMode, useModalPortalContainer, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, useStackedModal, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
package/dist/index.js
CHANGED
|
@@ -1360,6 +1360,14 @@ var init_importedIcons = __esm({
|
|
|
1360
1360
|
// src/index.ts
|
|
1361
1361
|
var src_exports = {};
|
|
1362
1362
|
__export(src_exports, {
|
|
1363
|
+
AVATAR_SIZE_2XL: () => AVATAR_SIZE_2XL,
|
|
1364
|
+
AVATAR_SIZE_2XS: () => AVATAR_SIZE_2XS,
|
|
1365
|
+
AVATAR_SIZE_3XL: () => AVATAR_SIZE_3XL,
|
|
1366
|
+
AVATAR_SIZE_LG: () => AVATAR_SIZE_LG,
|
|
1367
|
+
AVATAR_SIZE_MD: () => AVATAR_SIZE_MD,
|
|
1368
|
+
AVATAR_SIZE_SM: () => AVATAR_SIZE_SM,
|
|
1369
|
+
AVATAR_SIZE_XL: () => AVATAR_SIZE_XL,
|
|
1370
|
+
AVATAR_SIZE_XS: () => AVATAR_SIZE_XS,
|
|
1363
1371
|
AddButton: () => AddButton,
|
|
1364
1372
|
AddListButton: () => AddListButton,
|
|
1365
1373
|
AsideAndSectionLayout: () => AsideAndSectionLayout,
|
|
@@ -1564,6 +1572,16 @@ __export(src_exports, {
|
|
|
1564
1572
|
accessibleHidden: () => accessibleHidden,
|
|
1565
1573
|
actionBarVisibilityStyles: () => actionBarVisibilityStyles,
|
|
1566
1574
|
addPathSegmentToPathname: () => addPathSegmentToPathname,
|
|
1575
|
+
avatarImageStyles: () => avatarImageStyles,
|
|
1576
|
+
avatarSize2xlStyles: () => avatarSize2xlStyles,
|
|
1577
|
+
avatarSize2xsStyles: () => avatarSize2xsStyles,
|
|
1578
|
+
avatarSize3xlStyles: () => avatarSize3xlStyles,
|
|
1579
|
+
avatarSizeLgStyles: () => avatarSizeLgStyles,
|
|
1580
|
+
avatarSizeMdStyles: () => avatarSizeMdStyles,
|
|
1581
|
+
avatarSizeSmStyles: () => avatarSizeSmStyles,
|
|
1582
|
+
avatarSizeXlStyles: () => avatarSizeXlStyles,
|
|
1583
|
+
avatarSizeXsStyles: () => avatarSizeXsStyles,
|
|
1584
|
+
avatarStyles: () => avatarStyles,
|
|
1567
1585
|
borderTopIcon: () => borderTopIcon,
|
|
1568
1586
|
breakpoints: () => breakpoints,
|
|
1569
1587
|
button: () => button,
|
|
@@ -2354,7 +2372,7 @@ var breakpoints = {
|
|
|
2354
2372
|
"2xl": 1536
|
|
2355
2373
|
};
|
|
2356
2374
|
var useBreakpoint = (0, import_react_use.createBreakpoint)(breakpoints);
|
|
2357
|
-
var mq = (size) => `@media (
|
|
2375
|
+
var mq = (size, bound = "min") => `@media (${bound}-width: ${breakpoints[size]}px)`;
|
|
2358
2376
|
var supports = (cssProp) => `@supports (${cssProp})`;
|
|
2359
2377
|
var cq = (size) => `@container (min-width: ${size})`;
|
|
2360
2378
|
var prefersReducedMotion = (cssProp) => `@media (prefers-reduced-motion: ${cssProp})`;
|
|
@@ -3945,7 +3963,7 @@ from {
|
|
|
3945
3963
|
transform: translateX(100%);
|
|
3946
3964
|
}
|
|
3947
3965
|
to {
|
|
3948
|
-
transform:
|
|
3966
|
+
transform: translateX(0);
|
|
3949
3967
|
}
|
|
3950
3968
|
`;
|
|
3951
3969
|
var spin = import_react21.keyframes`
|
|
@@ -5474,11 +5492,19 @@ var import_CgProfile2 = require("@react-icons/all-files/cg/CgProfile");
|
|
|
5474
5492
|
// src/components/Avatar/Avatar.styles.ts
|
|
5475
5493
|
init_emotion_jsx_shim();
|
|
5476
5494
|
var import_react27 = require("@emotion/react");
|
|
5495
|
+
var AVATAR_SIZE_2XS = "1rem";
|
|
5496
|
+
var AVATAR_SIZE_XS = "1.5rem";
|
|
5497
|
+
var AVATAR_SIZE_SM = "2rem";
|
|
5498
|
+
var AVATAR_SIZE_MD = "2.5rem";
|
|
5499
|
+
var AVATAR_SIZE_LG = "3rem";
|
|
5500
|
+
var AVATAR_SIZE_XL = "4rem";
|
|
5501
|
+
var AVATAR_SIZE_2XL = "5rem";
|
|
5502
|
+
var AVATAR_SIZE_3XL = "6rem";
|
|
5477
5503
|
var avatarStyles = import_react27.css`
|
|
5478
5504
|
display: flex;
|
|
5479
5505
|
justify-content: center;
|
|
5480
5506
|
align-items: center;
|
|
5481
|
-
width:
|
|
5507
|
+
width: ${AVATAR_SIZE_MD};
|
|
5482
5508
|
aspect-ratio: 1;
|
|
5483
5509
|
border-radius: var(--rounded-full);
|
|
5484
5510
|
border: 1px solid var(--gray-300);
|
|
@@ -5494,25 +5520,28 @@ var avatarImageStyles = import_react27.css`
|
|
|
5494
5520
|
object-fit: cover;
|
|
5495
5521
|
`;
|
|
5496
5522
|
var avatarSize2xsStyles = import_react27.css`
|
|
5497
|
-
width:
|
|
5523
|
+
width: ${AVATAR_SIZE_2XS};
|
|
5498
5524
|
`;
|
|
5499
5525
|
var avatarSizeXsStyles = import_react27.css`
|
|
5500
|
-
width:
|
|
5526
|
+
width: ${AVATAR_SIZE_XS};
|
|
5501
5527
|
`;
|
|
5502
5528
|
var avatarSizeSmStyles = import_react27.css`
|
|
5503
|
-
width:
|
|
5529
|
+
width: ${AVATAR_SIZE_SM};
|
|
5504
5530
|
`;
|
|
5505
5531
|
var avatarSizeMdStyles = import_react27.css`
|
|
5506
|
-
width:
|
|
5532
|
+
width: ${AVATAR_SIZE_MD};
|
|
5507
5533
|
`;
|
|
5508
5534
|
var avatarSizeLgStyles = import_react27.css`
|
|
5509
|
-
width:
|
|
5535
|
+
width: ${AVATAR_SIZE_LG};
|
|
5510
5536
|
`;
|
|
5511
5537
|
var avatarSizeXlStyles = import_react27.css`
|
|
5512
|
-
width:
|
|
5538
|
+
width: ${AVATAR_SIZE_XL};
|
|
5513
5539
|
`;
|
|
5514
5540
|
var avatarSize2xlStyles = import_react27.css`
|
|
5515
|
-
width:
|
|
5541
|
+
width: ${AVATAR_SIZE_2XL};
|
|
5542
|
+
`;
|
|
5543
|
+
var avatarSize3xlStyles = import_react27.css`
|
|
5544
|
+
width: ${AVATAR_SIZE_3XL};
|
|
5516
5545
|
`;
|
|
5517
5546
|
|
|
5518
5547
|
// src/components/Avatar/Avatar.tsx
|
|
@@ -5524,7 +5553,8 @@ var avatarSizeStylesMap = {
|
|
|
5524
5553
|
md: avatarSizeMdStyles,
|
|
5525
5554
|
lg: avatarSizeLgStyles,
|
|
5526
5555
|
xl: avatarSizeXlStyles,
|
|
5527
|
-
"2xl": avatarSize2xlStyles
|
|
5556
|
+
"2xl": avatarSize2xlStyles,
|
|
5557
|
+
"3xl": avatarSize3xlStyles
|
|
5528
5558
|
};
|
|
5529
5559
|
var Avatar = ({
|
|
5530
5560
|
src,
|
|
@@ -9506,8 +9536,12 @@ var ChipThemeNeutralLight = import_react73.css`
|
|
|
9506
9536
|
background: var(--gray-100);
|
|
9507
9537
|
color: var(--typography-base);
|
|
9508
9538
|
:where([role='button']) {
|
|
9509
|
-
&:
|
|
9539
|
+
&:hover,
|
|
9510
9540
|
&:focus {
|
|
9541
|
+
background: var(--gray-200);
|
|
9542
|
+
}
|
|
9543
|
+
|
|
9544
|
+
&:active {
|
|
9511
9545
|
background: var(--gray-400);
|
|
9512
9546
|
}
|
|
9513
9547
|
}
|
|
@@ -9664,7 +9698,7 @@ var import_react75 = require("react");
|
|
|
9664
9698
|
init_emotion_jsx_shim();
|
|
9665
9699
|
var import_react74 = require("@emotion/react");
|
|
9666
9700
|
var paddingSize = {
|
|
9667
|
-
xs: "var(--spacing-2xs) var(--spacing-
|
|
9701
|
+
xs: "var(--spacing-2xs) var(--spacing-xs)",
|
|
9668
9702
|
sm: "var(--spacing-xs) var(--spacing-base)",
|
|
9669
9703
|
md: "var(--spacing-sm) var(--spacing-base)",
|
|
9670
9704
|
lg: "var(--spacing-sm) var(--spacing-md)"
|
|
@@ -9864,8 +9898,8 @@ var counterContainer = (bgColor, hasIcon) => import_react77.css`
|
|
|
9864
9898
|
display: inline-flex;
|
|
9865
9899
|
font-weight: var(--fw-regular);
|
|
9866
9900
|
justify-content: center;
|
|
9867
|
-
padding: ${hasIcon ? "0 var(--spacing-sm)" : "var(--spacing-sm)"};
|
|
9868
|
-
width: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
9901
|
+
padding: ${hasIcon ? "0 var(--spacing-sm)" : "0 var(--spacing-sm)"};
|
|
9902
|
+
min-width: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
9869
9903
|
height: ${hasIcon ? "auto" : "var(--spacing-base)"};
|
|
9870
9904
|
cursor: default;
|
|
9871
9905
|
`;
|
|
@@ -12561,7 +12595,8 @@ var KeyValueInput = ({
|
|
|
12561
12595
|
errors,
|
|
12562
12596
|
onFocusChange,
|
|
12563
12597
|
showIconColumn = false,
|
|
12564
|
-
renderIconSelector
|
|
12598
|
+
renderIconSelector,
|
|
12599
|
+
independentKeyValue = false
|
|
12565
12600
|
}) => {
|
|
12566
12601
|
const [isDragging, setIsDragging] = (0, import_react113.useState)(false);
|
|
12567
12602
|
const [indexToFocus, setIndexToFocus] = (0, import_react113.useState)(null);
|
|
@@ -12642,7 +12677,10 @@ var KeyValueInput = ({
|
|
|
12642
12677
|
newItems.push({ key, value: val });
|
|
12643
12678
|
} else {
|
|
12644
12679
|
const trimmedLine = line.trim();
|
|
12645
|
-
newItems.push({
|
|
12680
|
+
newItems.push({
|
|
12681
|
+
key: trimmedLine,
|
|
12682
|
+
value: independentKeyValue ? "" : trimmedLine
|
|
12683
|
+
});
|
|
12646
12684
|
}
|
|
12647
12685
|
});
|
|
12648
12686
|
const newValue = [...value];
|
|
@@ -12650,7 +12688,7 @@ var KeyValueInput = ({
|
|
|
12650
12688
|
onChange(newValue);
|
|
12651
12689
|
setIndexToFocus(rowIndex + newItems.length - 1);
|
|
12652
12690
|
},
|
|
12653
|
-
[onChange, value]
|
|
12691
|
+
[onChange, value, independentKeyValue]
|
|
12654
12692
|
);
|
|
12655
12693
|
const handleDragEnd = (0, import_react113.useCallback)(
|
|
12656
12694
|
(e) => {
|
|
@@ -12780,7 +12818,8 @@ var KeyValueInput = ({
|
|
|
12780
12818
|
const newSet = new Set(current);
|
|
12781
12819
|
newSet.add(value2);
|
|
12782
12820
|
return newSet;
|
|
12783
|
-
})
|
|
12821
|
+
}),
|
|
12822
|
+
independentKeyValue
|
|
12784
12823
|
},
|
|
12785
12824
|
isDragging ? id : index
|
|
12786
12825
|
)) })
|
|
@@ -12816,7 +12855,8 @@ var KeyValueInputItem = ({
|
|
|
12816
12855
|
showIconColumn = false,
|
|
12817
12856
|
renderIconSelector,
|
|
12818
12857
|
blockAutoGenerateValue,
|
|
12819
|
-
onBlurValue
|
|
12858
|
+
onBlurValue,
|
|
12859
|
+
independentKeyValue
|
|
12820
12860
|
}) => {
|
|
12821
12861
|
const { attributes, listeners, setNodeRef, transform, transition, setActivatorNodeRef, isSorting } = (0, import_sortable.useSortable)({
|
|
12822
12862
|
id,
|
|
@@ -12879,7 +12919,7 @@ var KeyValueInputItem = ({
|
|
|
12879
12919
|
showLabel: false,
|
|
12880
12920
|
disabled: disabled2,
|
|
12881
12921
|
onChange: (e) => {
|
|
12882
|
-
const hasStoredValue = value.value !== value.key || blockAutoGenerateValue;
|
|
12922
|
+
const hasStoredValue = independentKeyValue || value.value !== value.key || blockAutoGenerateValue;
|
|
12883
12923
|
onChange == null ? void 0 : onChange({
|
|
12884
12924
|
key: e.currentTarget.value,
|
|
12885
12925
|
value: hasStoredValue ? value.value : e.currentTarget.value,
|
|
@@ -22195,6 +22235,14 @@ var StatusBullet = ({
|
|
|
22195
22235
|
};
|
|
22196
22236
|
// Annotate the CommonJS export names for ESM import in node:
|
|
22197
22237
|
0 && (module.exports = {
|
|
22238
|
+
AVATAR_SIZE_2XL,
|
|
22239
|
+
AVATAR_SIZE_2XS,
|
|
22240
|
+
AVATAR_SIZE_3XL,
|
|
22241
|
+
AVATAR_SIZE_LG,
|
|
22242
|
+
AVATAR_SIZE_MD,
|
|
22243
|
+
AVATAR_SIZE_SM,
|
|
22244
|
+
AVATAR_SIZE_XL,
|
|
22245
|
+
AVATAR_SIZE_XS,
|
|
22198
22246
|
AddButton,
|
|
22199
22247
|
AddListButton,
|
|
22200
22248
|
AsideAndSectionLayout,
|
|
@@ -22399,6 +22447,16 @@ var StatusBullet = ({
|
|
|
22399
22447
|
accessibleHidden,
|
|
22400
22448
|
actionBarVisibilityStyles,
|
|
22401
22449
|
addPathSegmentToPathname,
|
|
22450
|
+
avatarImageStyles,
|
|
22451
|
+
avatarSize2xlStyles,
|
|
22452
|
+
avatarSize2xsStyles,
|
|
22453
|
+
avatarSize3xlStyles,
|
|
22454
|
+
avatarSizeLgStyles,
|
|
22455
|
+
avatarSizeMdStyles,
|
|
22456
|
+
avatarSizeSmStyles,
|
|
22457
|
+
avatarSizeXlStyles,
|
|
22458
|
+
avatarSizeXsStyles,
|
|
22459
|
+
avatarStyles,
|
|
22402
22460
|
borderTopIcon,
|
|
22403
22461
|
breakpoints,
|
|
22404
22462
|
button,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.63.
|
|
3
|
+
"version": "20.63.1-alpha.12+914935b899",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@emotion/jest": "11.13.0",
|
|
33
|
-
"@storybook/react-vite": "10.
|
|
33
|
+
"@storybook/react-vite": "10.2.10",
|
|
34
34
|
"@types/react": "19.2.2",
|
|
35
35
|
"@types/react-dom": "19.2.2",
|
|
36
|
-
"@uniformdev/canvas": "^20.63.
|
|
37
|
-
"@uniformdev/richtext": "^20.63.
|
|
36
|
+
"@uniformdev/canvas": "^20.63.1-alpha.12+914935b899",
|
|
37
|
+
"@uniformdev/richtext": "^20.63.1-alpha.12+914935b899",
|
|
38
38
|
"autoprefixer": "10.4.21",
|
|
39
39
|
"hygen": "6.2.11",
|
|
40
40
|
"jsdom": "29.0.2",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tsup": "8.3.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@base-ui/react": "
|
|
48
|
+
"@base-ui/react": "1.4.1",
|
|
49
49
|
"@dnd-kit/core": "^6.3.1",
|
|
50
50
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
51
51
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
|
|
67
67
|
"fast-equals": "^5.3.2",
|
|
68
68
|
"lexical": "0.39.0",
|
|
69
|
-
"monaco-editor": "0.
|
|
69
|
+
"monaco-editor": "0.55.1",
|
|
70
70
|
"react-aria-components": "^1.16.0",
|
|
71
71
|
"react-hotkeys-hook": "5.2.1",
|
|
72
72
|
"react-paginate": "8.3.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "914935b89907018dde56a2c49b72e6899d9fb0e2"
|
|
89
89
|
}
|