@uniformdev/design-system 19.79.0 → 19.79.1-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +71 -43
- package/dist/index.d.mts +25 -39
- package/dist/index.d.ts +25 -39
- package/dist/index.js +78 -51
- package/package.json +9 -9
package/dist/esm/index.js
CHANGED
|
@@ -91,7 +91,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
91
91
|
|
|
92
92
|
/* off brand */
|
|
93
93
|
--input-border: rgba(31, 43, 52, 0.5);
|
|
94
|
-
--ring: 0 0 0 0 var(--white), 0 0 0
|
|
94
|
+
--ring: 0 0 0 0 var(--white), 0 0 0 2px var(--brand-primary-3);
|
|
95
95
|
--ring-inset: inset 0 0 0 0 var(--white), inset 0 0 0 3px var(--brand-primary-3);
|
|
96
96
|
|
|
97
97
|
/* site settings */
|
|
@@ -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
|
|
|
@@ -13999,7 +13999,7 @@ var WarningIcon = css50`
|
|
|
13999
13999
|
// src/components/Input/WarningMessage.tsx
|
|
14000
14000
|
import { jsx as jsx55, jsxs as jsxs33 } from "@emotion/react/jsx-runtime";
|
|
14001
14001
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
14002
|
-
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
14002
|
+
return message ? /* @__PURE__ */ jsxs33("span", { role: "status", css: WarningText, "data-testid": testId != null ? testId : "message-text", ...props, children: [
|
|
14003
14003
|
/* @__PURE__ */ jsx55("span", { children: /* @__PURE__ */ jsx55(Icon, { css: WarningIcon, icon: MdWarning2, size: "1rem", iconColor: "currentColor" }) }),
|
|
14004
14004
|
message
|
|
14005
14005
|
] }) : null;
|
|
@@ -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
|
),
|
|
@@ -16286,6 +16286,12 @@ var Modal = React19.forwardRef(
|
|
|
16286
16286
|
});
|
|
16287
16287
|
useEffect10(() => {
|
|
16288
16288
|
var _a;
|
|
16289
|
+
if (!document.contains(dialogRef.current)) {
|
|
16290
|
+
console.warn(
|
|
16291
|
+
"The Modal component could not be rendered because it's not attached to the current Document."
|
|
16292
|
+
);
|
|
16293
|
+
return;
|
|
16294
|
+
}
|
|
16289
16295
|
(_a = dialogRef.current) == null ? void 0 : _a.showModal();
|
|
16290
16296
|
return () => {
|
|
16291
16297
|
var _a2;
|
|
@@ -16310,6 +16316,9 @@ var Modal = React19.forwardRef(
|
|
|
16310
16316
|
style: { width, height: height === "auto" ? "min-content" : height },
|
|
16311
16317
|
"data-testid": "side-dialog",
|
|
16312
16318
|
onClick: onRequestClose,
|
|
16319
|
+
onCancel: (e) => {
|
|
16320
|
+
e.preventDefault();
|
|
16321
|
+
},
|
|
16313
16322
|
...modalProps,
|
|
16314
16323
|
children: /* @__PURE__ */ jsxs59("div", { css: modalInnerStyles, onClick: (e) => e.stopPropagation(), children: [
|
|
16315
16324
|
/* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
|
|
@@ -16657,6 +16666,11 @@ var inputMenu = css76`
|
|
|
16657
16666
|
position: absolute;
|
|
16658
16667
|
top: calc(var(--spacing-md) * -1.2);
|
|
16659
16668
|
right: 0;
|
|
16669
|
+
`;
|
|
16670
|
+
var inputActionItems = css76`
|
|
16671
|
+
display: flex;
|
|
16672
|
+
`;
|
|
16673
|
+
var inputMenuHover = css76`
|
|
16660
16674
|
opacity: var(--opacity-50);
|
|
16661
16675
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
16662
16676
|
|
|
@@ -16952,7 +16966,7 @@ var ParameterMenuButton = forwardRef12(
|
|
|
16952
16966
|
"button",
|
|
16953
16967
|
{
|
|
16954
16968
|
className: "parameter-menu",
|
|
16955
|
-
css: inputMenu,
|
|
16969
|
+
css: [inputMenu, inputMenuHover],
|
|
16956
16970
|
type: "button",
|
|
16957
16971
|
"aria-label": `${label} options`,
|
|
16958
16972
|
ref,
|
|
@@ -17074,9 +17088,7 @@ var ParameterShell = ({
|
|
|
17074
17088
|
{
|
|
17075
17089
|
css: [
|
|
17076
17090
|
inputMenu,
|
|
17077
|
-
|
|
17078
|
-
opacity: var(--opacity-100);
|
|
17079
|
-
`,
|
|
17091
|
+
inputActionItems,
|
|
17080
17092
|
menuItems ? css81`
|
|
17081
17093
|
right: var(--spacing-md);
|
|
17082
17094
|
` : void 0
|
|
@@ -17281,7 +17293,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17281
17293
|
"data-af": "true",
|
|
17282
17294
|
onBlur,
|
|
17283
17295
|
onChange: onNameChange,
|
|
17284
|
-
caption: nameCaption,
|
|
17296
|
+
caption: !nameIdError ? nameCaption : void 0,
|
|
17285
17297
|
placeholder: namePlaceholderText,
|
|
17286
17298
|
readOnly,
|
|
17287
17299
|
errorMessage: nameIdError,
|
|
@@ -17300,7 +17312,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
17300
17312
|
autoComplete: "off",
|
|
17301
17313
|
onBlur,
|
|
17302
17314
|
onChange: onPublicIdChange,
|
|
17303
|
-
caption: publicIdCaption,
|
|
17315
|
+
caption: !publicIdError ? publicIdCaption : void 0,
|
|
17304
17316
|
placeholder: publicIdPlaceholderText,
|
|
17305
17317
|
errorMessage: publicIdError,
|
|
17306
17318
|
menuItems: /* @__PURE__ */ jsx102(
|
|
@@ -18895,7 +18907,7 @@ var RichText = ({
|
|
|
18895
18907
|
return () => {
|
|
18896
18908
|
removeUpdateListener();
|
|
18897
18909
|
};
|
|
18898
|
-
}, []);
|
|
18910
|
+
}, [editor, onChange]);
|
|
18899
18911
|
return /* @__PURE__ */ jsxs71(Fragment18, { children: [
|
|
18900
18912
|
readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
|
|
18901
18913
|
/* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
@@ -19351,7 +19363,7 @@ var SegmentedControl = ({
|
|
|
19351
19363
|
return map[size];
|
|
19352
19364
|
}, [size]);
|
|
19353
19365
|
const isIconOnly = useMemo5(() => {
|
|
19354
|
-
return options.every((option) => option.icon && !option.label);
|
|
19366
|
+
return options.every((option) => option && option.icon && !option.label);
|
|
19355
19367
|
}, [options]);
|
|
19356
19368
|
return /* @__PURE__ */ jsx112(
|
|
19357
19369
|
"div",
|
|
@@ -19359,6 +19371,9 @@ var SegmentedControl = ({
|
|
|
19359
19371
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
19360
19372
|
...props,
|
|
19361
19373
|
children: options.map((option, index) => {
|
|
19374
|
+
if (!option) {
|
|
19375
|
+
return null;
|
|
19376
|
+
}
|
|
19362
19377
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
19363
19378
|
const isDisabled = disabled2 || option.disabled;
|
|
19364
19379
|
return /* @__PURE__ */ jsx112(
|
|
@@ -19616,13 +19631,14 @@ var TableCellData = React24.forwardRef(
|
|
|
19616
19631
|
);
|
|
19617
19632
|
|
|
19618
19633
|
// src/components/Tabs/Tabs.tsx
|
|
19619
|
-
import { createContext as createContext5, useContext as useContext6, useEffect as useEffect16, useMemo as useMemo6 } from "react";
|
|
19620
19634
|
import {
|
|
19621
|
-
Tab as
|
|
19622
|
-
TabList as
|
|
19623
|
-
TabPanel as
|
|
19624
|
-
|
|
19625
|
-
|
|
19635
|
+
Tab as AriakitTab,
|
|
19636
|
+
TabList as AriakitTabList,
|
|
19637
|
+
TabPanel as AriakitTabPanel,
|
|
19638
|
+
TabProvider as AriakitTabProvider,
|
|
19639
|
+
useTabStore as useAriakitTabStore
|
|
19640
|
+
} from "@ariakit/react";
|
|
19641
|
+
import { useCallback as useCallback8, useEffect as useEffect16, useMemo as useMemo6 } from "react";
|
|
19626
19642
|
|
|
19627
19643
|
// src/components/Tabs/Tabs.styles.ts
|
|
19628
19644
|
import { css as css94 } from "@emotion/react";
|
|
@@ -19651,48 +19667,60 @@ var tabButtonGroupStyles = css94`
|
|
|
19651
19667
|
|
|
19652
19668
|
// src/components/Tabs/Tabs.tsx
|
|
19653
19669
|
import { jsx as jsx116 } from "@emotion/react/jsx-runtime";
|
|
19654
|
-
var CurrentTabContext = createContext5(null);
|
|
19655
19670
|
var useCurrentTab = () => {
|
|
19656
|
-
const context =
|
|
19671
|
+
const context = useAriakitTabStore();
|
|
19657
19672
|
if (!context) {
|
|
19658
19673
|
throw new Error("This component can only be used inside <Tabs>");
|
|
19659
19674
|
}
|
|
19660
19675
|
return context;
|
|
19661
19676
|
};
|
|
19662
|
-
var Tabs = ({
|
|
19677
|
+
var Tabs = ({
|
|
19678
|
+
children,
|
|
19679
|
+
onSelectedIdChange,
|
|
19680
|
+
useHashForState,
|
|
19681
|
+
selectedId,
|
|
19682
|
+
manual,
|
|
19683
|
+
...props
|
|
19684
|
+
}) => {
|
|
19663
19685
|
const selected = useMemo6(() => {
|
|
19664
19686
|
if (selectedId)
|
|
19665
19687
|
return selectedId;
|
|
19666
19688
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
19667
19689
|
}, [selectedId, useHashForState]);
|
|
19668
|
-
const tab =
|
|
19669
|
-
|
|
19670
|
-
|
|
19671
|
-
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
|
|
19677
|
-
|
|
19690
|
+
const tab = useAriakitTabStore({ ...props, selectOnMove: !manual, selectedId: selected });
|
|
19691
|
+
const onTabSelect = useCallback8(
|
|
19692
|
+
(value) => {
|
|
19693
|
+
const selectedValueWithoutNull = value != null ? value : void 0;
|
|
19694
|
+
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
19695
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
19696
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
19697
|
+
window.history.replaceState(null, "", hashValue);
|
|
19698
|
+
}
|
|
19699
|
+
},
|
|
19700
|
+
[onSelectedIdChange, useHashForState]
|
|
19701
|
+
);
|
|
19678
19702
|
useEffect16(() => {
|
|
19679
|
-
if (selected && selected !== tab.
|
|
19703
|
+
if (selected && selected !== tab.getState().activeId) {
|
|
19680
19704
|
tab.setSelectedId(selected);
|
|
19681
19705
|
}
|
|
19682
|
-
}, [selected]);
|
|
19683
|
-
return /* @__PURE__ */ jsx116(
|
|
19706
|
+
}, [selected, tab]);
|
|
19707
|
+
return /* @__PURE__ */ jsx116(AriakitTabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
19684
19708
|
};
|
|
19685
19709
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
19686
|
-
|
|
19687
|
-
return /* @__PURE__ */ jsx116(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
19710
|
+
return /* @__PURE__ */ jsx116(AriakitTabList, { ...props, css: tabButtonGroupStyles, children });
|
|
19688
19711
|
};
|
|
19689
|
-
var TabButton = ({
|
|
19690
|
-
|
|
19691
|
-
|
|
19712
|
+
var TabButton = ({
|
|
19713
|
+
children,
|
|
19714
|
+
id,
|
|
19715
|
+
...props
|
|
19716
|
+
}) => {
|
|
19717
|
+
return /* @__PURE__ */ jsx116(AriakitTab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
19692
19718
|
};
|
|
19693
|
-
var TabContent = ({
|
|
19694
|
-
|
|
19695
|
-
|
|
19719
|
+
var TabContent = ({
|
|
19720
|
+
children,
|
|
19721
|
+
...props
|
|
19722
|
+
}) => {
|
|
19723
|
+
return /* @__PURE__ */ jsx116(AriakitTabPanel, { ...props, children });
|
|
19696
19724
|
};
|
|
19697
19725
|
|
|
19698
19726
|
// 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
|
|
|
@@ -74,7 +74,7 @@ declare const supports: (cssProp: string) => string;
|
|
|
74
74
|
* @function
|
|
75
75
|
* @param {string} size - The responsive breakpoint value
|
|
76
76
|
* @returns {string} - compiled container query e.g. @container (min-width: 640px)
|
|
77
|
-
* @example `${cq('300px
|
|
77
|
+
* @example `${cq('300px')} { background: red; }`
|
|
78
78
|
*/
|
|
79
79
|
declare const cq: (size: string) => string;
|
|
80
80
|
|
|
@@ -22243,29 +22243,12 @@ type ModalProps = {
|
|
|
22243
22243
|
withoutContentPadding?: boolean;
|
|
22244
22244
|
/** Places buttons at the bottom of the modal */
|
|
22245
22245
|
buttonGroup?: ReactNode;
|
|
22246
|
-
} & React__default.
|
|
22246
|
+
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22247
22247
|
/**
|
|
22248
22248
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
22249
22249
|
* @example <Modal>Hello World</Modal>
|
|
22250
22250
|
*/
|
|
22251
|
-
declare const Modal: React__default.ForwardRefExoticComponent<
|
|
22252
|
-
header?: React__default.ReactNode;
|
|
22253
|
-
children?: React__default.ReactNode;
|
|
22254
|
-
/** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
|
|
22255
|
-
onRequestClose: () => void;
|
|
22256
|
-
/** A valid CSS width */
|
|
22257
|
-
width?: string | undefined;
|
|
22258
|
-
/** A valid CSS height */
|
|
22259
|
-
height?: string | undefined;
|
|
22260
|
-
/** The classname to set on the wrapper of the modal.
|
|
22261
|
-
* @deprecated the dialog is not rendered inside a wrapper anymore.
|
|
22262
|
-
*/
|
|
22263
|
-
wrapperClassName?: string | undefined;
|
|
22264
|
-
/** Removes the default padding on the content wrapper */
|
|
22265
|
-
withoutContentPadding?: boolean | undefined;
|
|
22266
|
-
/** Places buttons at the bottom of the modal */
|
|
22267
|
-
buttonGroup?: ReactNode;
|
|
22268
|
-
} & React__default.HTMLAttributes<HTMLDialogElement> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22251
|
+
declare const Modal: React__default.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22269
22252
|
|
|
22270
22253
|
declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
22271
22254
|
limit: number;
|
|
@@ -22793,7 +22776,7 @@ type SegmentedControlProps<TValue extends string = string> = Omit<React__default
|
|
|
22793
22776
|
/** A unique name for the component, used to group the options */
|
|
22794
22777
|
name: string;
|
|
22795
22778
|
/** The options to show */
|
|
22796
|
-
options: SegmentedControlOption<TValue>
|
|
22779
|
+
options: Array<SegmentedControlOption<TValue> | undefined>;
|
|
22797
22780
|
/** The value of the option to be selected */
|
|
22798
22781
|
value?: TValue;
|
|
22799
22782
|
/** Called when the user selects a different option */
|
|
@@ -22925,27 +22908,30 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedH
|
|
|
22925
22908
|
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22926
22909
|
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22927
22910
|
|
|
22928
|
-
declare const useCurrentTab: () =>
|
|
22929
|
-
|
|
22911
|
+
declare const useCurrentTab: () => _ariakit_react.TabStore;
|
|
22912
|
+
type TabsProps<TTabName extends string = string> = {
|
|
22930
22913
|
children: React__default.ReactNode;
|
|
22931
|
-
selectedId?:
|
|
22914
|
+
selectedId?: TTabName;
|
|
22932
22915
|
manual?: boolean;
|
|
22933
|
-
orientation?:
|
|
22934
|
-
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
|
+
*/
|
|
22935
22921
|
useHashForState?: boolean;
|
|
22936
|
-
}
|
|
22937
|
-
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;
|
|
22938
22924
|
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22939
|
-
|
|
22940
|
-
id:
|
|
22925
|
+
type TabButtonProps<TTabName extends string = string> = Partial<TabProps> & {
|
|
22926
|
+
id: TTabName;
|
|
22941
22927
|
children: React__default.ReactNode;
|
|
22942
|
-
}
|
|
22943
|
-
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22944
|
-
|
|
22945
|
-
|
|
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;
|
|
22946
22932
|
children: React__default.ReactNode;
|
|
22947
|
-
}
|
|
22948
|
-
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;
|
|
22949
22935
|
|
|
22950
22936
|
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
22951
22937
|
/** (optional) sets the title value
|
|
@@ -23248,4 +23234,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23248
23234
|
};
|
|
23249
23235
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23250
23236
|
|
|
23251
|
-
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
|
|
|
@@ -74,7 +74,7 @@ declare const supports: (cssProp: string) => string;
|
|
|
74
74
|
* @function
|
|
75
75
|
* @param {string} size - The responsive breakpoint value
|
|
76
76
|
* @returns {string} - compiled container query e.g. @container (min-width: 640px)
|
|
77
|
-
* @example `${cq('300px
|
|
77
|
+
* @example `${cq('300px')} { background: red; }`
|
|
78
78
|
*/
|
|
79
79
|
declare const cq: (size: string) => string;
|
|
80
80
|
|
|
@@ -22243,29 +22243,12 @@ type ModalProps = {
|
|
|
22243
22243
|
withoutContentPadding?: boolean;
|
|
22244
22244
|
/** Places buttons at the bottom of the modal */
|
|
22245
22245
|
buttonGroup?: ReactNode;
|
|
22246
|
-
} & React__default.
|
|
22246
|
+
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22247
22247
|
/**
|
|
22248
22248
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
22249
22249
|
* @example <Modal>Hello World</Modal>
|
|
22250
22250
|
*/
|
|
22251
|
-
declare const Modal: React__default.ForwardRefExoticComponent<
|
|
22252
|
-
header?: React__default.ReactNode;
|
|
22253
|
-
children?: React__default.ReactNode;
|
|
22254
|
-
/** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
|
|
22255
|
-
onRequestClose: () => void;
|
|
22256
|
-
/** A valid CSS width */
|
|
22257
|
-
width?: string | undefined;
|
|
22258
|
-
/** A valid CSS height */
|
|
22259
|
-
height?: string | undefined;
|
|
22260
|
-
/** The classname to set on the wrapper of the modal.
|
|
22261
|
-
* @deprecated the dialog is not rendered inside a wrapper anymore.
|
|
22262
|
-
*/
|
|
22263
|
-
wrapperClassName?: string | undefined;
|
|
22264
|
-
/** Removes the default padding on the content wrapper */
|
|
22265
|
-
withoutContentPadding?: boolean | undefined;
|
|
22266
|
-
/** Places buttons at the bottom of the modal */
|
|
22267
|
-
buttonGroup?: ReactNode;
|
|
22268
|
-
} & React__default.HTMLAttributes<HTMLDialogElement> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22251
|
+
declare const Modal: React__default.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22269
22252
|
|
|
22270
22253
|
declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
22271
22254
|
limit: number;
|
|
@@ -22793,7 +22776,7 @@ type SegmentedControlProps<TValue extends string = string> = Omit<React__default
|
|
|
22793
22776
|
/** A unique name for the component, used to group the options */
|
|
22794
22777
|
name: string;
|
|
22795
22778
|
/** The options to show */
|
|
22796
|
-
options: SegmentedControlOption<TValue>
|
|
22779
|
+
options: Array<SegmentedControlOption<TValue> | undefined>;
|
|
22797
22780
|
/** The value of the option to be selected */
|
|
22798
22781
|
value?: TValue;
|
|
22799
22782
|
/** Called when the user selects a different option */
|
|
@@ -22925,27 +22908,30 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedH
|
|
|
22925
22908
|
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22926
22909
|
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22927
22910
|
|
|
22928
|
-
declare const useCurrentTab: () =>
|
|
22929
|
-
|
|
22911
|
+
declare const useCurrentTab: () => _ariakit_react.TabStore;
|
|
22912
|
+
type TabsProps<TTabName extends string = string> = {
|
|
22930
22913
|
children: React__default.ReactNode;
|
|
22931
|
-
selectedId?:
|
|
22914
|
+
selectedId?: TTabName;
|
|
22932
22915
|
manual?: boolean;
|
|
22933
|
-
orientation?:
|
|
22934
|
-
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
|
+
*/
|
|
22935
22921
|
useHashForState?: boolean;
|
|
22936
|
-
}
|
|
22937
|
-
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;
|
|
22938
22924
|
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22939
|
-
|
|
22940
|
-
id:
|
|
22925
|
+
type TabButtonProps<TTabName extends string = string> = Partial<TabProps> & {
|
|
22926
|
+
id: TTabName;
|
|
22941
22927
|
children: React__default.ReactNode;
|
|
22942
|
-
}
|
|
22943
|
-
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22944
|
-
|
|
22945
|
-
|
|
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;
|
|
22946
22932
|
children: React__default.ReactNode;
|
|
22947
|
-
}
|
|
22948
|
-
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;
|
|
22949
22935
|
|
|
22950
22936
|
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
22951
22937
|
/** (optional) sets the title value
|
|
@@ -23248,4 +23234,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23248
23234
|
};
|
|
23249
23235
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23250
23236
|
|
|
23251
|
-
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
|
@@ -1661,7 +1661,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
1661
1661
|
|
|
1662
1662
|
/* off brand */
|
|
1663
1663
|
--input-border: rgba(31, 43, 52, 0.5);
|
|
1664
|
-
--ring: 0 0 0 0 var(--white), 0 0 0
|
|
1664
|
+
--ring: 0 0 0 0 var(--white), 0 0 0 2px var(--brand-primary-3);
|
|
1665
1665
|
--ring-inset: inset 0 0 0 0 var(--white), inset 0 0 0 3px var(--brand-primary-3);
|
|
1666
1666
|
|
|
1667
1667
|
/* site settings */
|
|
@@ -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
|
|
|
@@ -15723,7 +15723,7 @@ var WarningIcon = import_react68.css`
|
|
|
15723
15723
|
// src/components/Input/WarningMessage.tsx
|
|
15724
15724
|
var import_jsx_runtime55 = require("@emotion/react/jsx-runtime");
|
|
15725
15725
|
var WarningMessage = ({ message, testId, ...props }) => {
|
|
15726
|
-
return message ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { role: "status", css: WarningText, "data-testid": testId, ...props, children: [
|
|
15726
|
+
return message ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { role: "status", css: WarningText, "data-testid": testId != null ? testId : "message-text", ...props, children: [
|
|
15727
15727
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { css: WarningIcon, icon: import_MdWarning2.MdWarning, size: "1rem", iconColor: "currentColor" }) }),
|
|
15728
15728
|
message
|
|
15729
15729
|
] }) : null;
|
|
@@ -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
|
),
|
|
@@ -18080,6 +18080,12 @@ var Modal = import_react99.default.forwardRef(
|
|
|
18080
18080
|
});
|
|
18081
18081
|
(0, import_react99.useEffect)(() => {
|
|
18082
18082
|
var _a;
|
|
18083
|
+
if (!document.contains(dialogRef.current)) {
|
|
18084
|
+
console.warn(
|
|
18085
|
+
"The Modal component could not be rendered because it's not attached to the current Document."
|
|
18086
|
+
);
|
|
18087
|
+
return;
|
|
18088
|
+
}
|
|
18083
18089
|
(_a = dialogRef.current) == null ? void 0 : _a.showModal();
|
|
18084
18090
|
return () => {
|
|
18085
18091
|
var _a2;
|
|
@@ -18104,6 +18110,9 @@ var Modal = import_react99.default.forwardRef(
|
|
|
18104
18110
|
style: { width, height: height === "auto" ? "min-content" : height },
|
|
18105
18111
|
"data-testid": "side-dialog",
|
|
18106
18112
|
onClick: onRequestClose,
|
|
18113
|
+
onCancel: (e) => {
|
|
18114
|
+
e.preventDefault();
|
|
18115
|
+
},
|
|
18107
18116
|
...modalProps,
|
|
18108
18117
|
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: modalInnerStyles, onClick: (e) => e.stopPropagation(), children: [
|
|
18109
18118
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: modalHeaderStyles, children: [
|
|
@@ -18462,6 +18471,11 @@ var inputMenu = import_react102.css`
|
|
|
18462
18471
|
position: absolute;
|
|
18463
18472
|
top: calc(var(--spacing-md) * -1.2);
|
|
18464
18473
|
right: 0;
|
|
18474
|
+
`;
|
|
18475
|
+
var inputActionItems = import_react102.css`
|
|
18476
|
+
display: flex;
|
|
18477
|
+
`;
|
|
18478
|
+
var inputMenuHover = import_react102.css`
|
|
18465
18479
|
opacity: var(--opacity-50);
|
|
18466
18480
|
transition: background-color var(--duration-fast) var(--timing-ease-out);
|
|
18467
18481
|
|
|
@@ -18769,7 +18783,7 @@ var ParameterMenuButton = (0, import_react108.forwardRef)(
|
|
|
18769
18783
|
"button",
|
|
18770
18784
|
{
|
|
18771
18785
|
className: "parameter-menu",
|
|
18772
|
-
css: inputMenu,
|
|
18786
|
+
css: [inputMenu, inputMenuHover],
|
|
18773
18787
|
type: "button",
|
|
18774
18788
|
"aria-label": `${label} options`,
|
|
18775
18789
|
ref,
|
|
@@ -18892,9 +18906,7 @@ var ParameterShell = ({
|
|
|
18892
18906
|
{
|
|
18893
18907
|
css: [
|
|
18894
18908
|
inputMenu,
|
|
18895
|
-
|
|
18896
|
-
opacity: var(--opacity-100);
|
|
18897
|
-
`,
|
|
18909
|
+
inputActionItems,
|
|
18898
18910
|
menuItems ? import_react110.css`
|
|
18899
18911
|
right: var(--spacing-md);
|
|
18900
18912
|
` : void 0
|
|
@@ -19102,7 +19114,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19102
19114
|
"data-af": "true",
|
|
19103
19115
|
onBlur,
|
|
19104
19116
|
onChange: onNameChange,
|
|
19105
|
-
caption: nameCaption,
|
|
19117
|
+
caption: !nameIdError ? nameCaption : void 0,
|
|
19106
19118
|
placeholder: namePlaceholderText,
|
|
19107
19119
|
readOnly,
|
|
19108
19120
|
errorMessage: nameIdError,
|
|
@@ -19121,7 +19133,7 @@ var ParameterNameAndPublicIdInput = ({
|
|
|
19121
19133
|
autoComplete: "off",
|
|
19122
19134
|
onBlur,
|
|
19123
19135
|
onChange: onPublicIdChange,
|
|
19124
|
-
caption: publicIdCaption,
|
|
19136
|
+
caption: !publicIdError ? publicIdCaption : void 0,
|
|
19125
19137
|
placeholder: publicIdPlaceholderText,
|
|
19126
19138
|
errorMessage: publicIdError,
|
|
19127
19139
|
menuItems: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
@@ -20688,7 +20700,7 @@ var RichText = ({
|
|
|
20688
20700
|
return () => {
|
|
20689
20701
|
removeUpdateListener();
|
|
20690
20702
|
};
|
|
20691
|
-
}, []);
|
|
20703
|
+
}, [editor, onChange]);
|
|
20692
20704
|
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
|
|
20693
20705
|
readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbar_default, { config, customControls }),
|
|
20694
20706
|
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
|
|
@@ -21155,7 +21167,7 @@ var SegmentedControl = ({
|
|
|
21155
21167
|
return map[size];
|
|
21156
21168
|
}, [size]);
|
|
21157
21169
|
const isIconOnly = (0, import_react132.useMemo)(() => {
|
|
21158
|
-
return options.every((option) => option.icon && !option.label);
|
|
21170
|
+
return options.every((option) => option && option.icon && !option.label);
|
|
21159
21171
|
}, [options]);
|
|
21160
21172
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
21161
21173
|
"div",
|
|
@@ -21163,6 +21175,9 @@ var SegmentedControl = ({
|
|
|
21163
21175
|
css: [segmentedControlStyles, orientation === "vertical" ? segmentedControlVerticalStyles : void 0],
|
|
21164
21176
|
...props,
|
|
21165
21177
|
children: options.map((option, index) => {
|
|
21178
|
+
if (!option) {
|
|
21179
|
+
return null;
|
|
21180
|
+
}
|
|
21166
21181
|
const text = option.label ? option.label : option.icon ? null : String(option.value);
|
|
21167
21182
|
const isDisabled = disabled2 || option.disabled;
|
|
21168
21183
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
@@ -21429,8 +21444,8 @@ var TableCellData = React24.forwardRef(
|
|
|
21429
21444
|
|
|
21430
21445
|
// src/components/Tabs/Tabs.tsx
|
|
21431
21446
|
init_emotion_jsx_shim();
|
|
21432
|
-
var import_react137 = require("react");
|
|
21433
|
-
var
|
|
21447
|
+
var import_react137 = require("@ariakit/react");
|
|
21448
|
+
var import_react138 = require("react");
|
|
21434
21449
|
|
|
21435
21450
|
// src/components/Tabs/Tabs.styles.ts
|
|
21436
21451
|
init_emotion_jsx_shim();
|
|
@@ -21460,48 +21475,60 @@ var tabButtonGroupStyles = import_react136.css`
|
|
|
21460
21475
|
|
|
21461
21476
|
// src/components/Tabs/Tabs.tsx
|
|
21462
21477
|
var import_jsx_runtime116 = require("@emotion/react/jsx-runtime");
|
|
21463
|
-
var CurrentTabContext = (0, import_react137.createContext)(null);
|
|
21464
21478
|
var useCurrentTab = () => {
|
|
21465
|
-
const context = (0, import_react137.
|
|
21479
|
+
const context = (0, import_react137.useTabStore)();
|
|
21466
21480
|
if (!context) {
|
|
21467
21481
|
throw new Error("This component can only be used inside <Tabs>");
|
|
21468
21482
|
}
|
|
21469
21483
|
return context;
|
|
21470
21484
|
};
|
|
21471
|
-
var Tabs = ({
|
|
21472
|
-
|
|
21485
|
+
var Tabs = ({
|
|
21486
|
+
children,
|
|
21487
|
+
onSelectedIdChange,
|
|
21488
|
+
useHashForState,
|
|
21489
|
+
selectedId,
|
|
21490
|
+
manual,
|
|
21491
|
+
...props
|
|
21492
|
+
}) => {
|
|
21493
|
+
const selected = (0, import_react138.useMemo)(() => {
|
|
21473
21494
|
if (selectedId)
|
|
21474
21495
|
return selectedId;
|
|
21475
21496
|
return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
|
|
21476
21497
|
}, [selectedId, useHashForState]);
|
|
21477
|
-
const tab = (0,
|
|
21478
|
-
(0,
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
21498
|
+
const tab = (0, import_react137.useTabStore)({ ...props, selectOnMove: !manual, selectedId: selected });
|
|
21499
|
+
const onTabSelect = (0, import_react138.useCallback)(
|
|
21500
|
+
(value) => {
|
|
21501
|
+
const selectedValueWithoutNull = value != null ? value : void 0;
|
|
21502
|
+
onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
|
|
21503
|
+
if (useHashForState && typeof window !== "undefined" && window.history) {
|
|
21504
|
+
const hashValue = selectedValueWithoutNull ? `#${selectedValueWithoutNull}` : "";
|
|
21505
|
+
window.history.replaceState(null, "", hashValue);
|
|
21506
|
+
}
|
|
21507
|
+
},
|
|
21508
|
+
[onSelectedIdChange, useHashForState]
|
|
21509
|
+
);
|
|
21510
|
+
(0, import_react138.useEffect)(() => {
|
|
21511
|
+
if (selected && selected !== tab.getState().activeId) {
|
|
21489
21512
|
tab.setSelectedId(selected);
|
|
21490
21513
|
}
|
|
21491
|
-
}, [selected]);
|
|
21492
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
21514
|
+
}, [selected, tab]);
|
|
21515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.TabProvider, { store: tab, setSelectedId: onTabSelect, children });
|
|
21493
21516
|
};
|
|
21494
21517
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
21495
|
-
|
|
21496
|
-
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
21518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.TabList, { ...props, css: tabButtonGroupStyles, children });
|
|
21497
21519
|
};
|
|
21498
|
-
var TabButton = ({
|
|
21499
|
-
|
|
21500
|
-
|
|
21520
|
+
var TabButton = ({
|
|
21521
|
+
children,
|
|
21522
|
+
id,
|
|
21523
|
+
...props
|
|
21524
|
+
}) => {
|
|
21525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.Tab, { type: "button", id, ...props, css: tabButtonStyles, children });
|
|
21501
21526
|
};
|
|
21502
|
-
var TabContent = ({
|
|
21503
|
-
|
|
21504
|
-
|
|
21527
|
+
var TabContent = ({
|
|
21528
|
+
children,
|
|
21529
|
+
...props
|
|
21530
|
+
}) => {
|
|
21531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_react137.TabPanel, { ...props, children });
|
|
21505
21532
|
};
|
|
21506
21533
|
|
|
21507
21534
|
// src/components/Validation/StatusBullet.tsx
|
|
@@ -21509,8 +21536,8 @@ init_emotion_jsx_shim();
|
|
|
21509
21536
|
|
|
21510
21537
|
// src/components/Validation/StatusBullet.styles.ts
|
|
21511
21538
|
init_emotion_jsx_shim();
|
|
21512
|
-
var
|
|
21513
|
-
var StatusBulletContainer =
|
|
21539
|
+
var import_react139 = require("@emotion/react");
|
|
21540
|
+
var StatusBulletContainer = import_react139.css`
|
|
21514
21541
|
align-items: center;
|
|
21515
21542
|
align-self: center;
|
|
21516
21543
|
color: var(--gray-500);
|
|
@@ -21527,33 +21554,33 @@ var StatusBulletContainer = import_react138.css`
|
|
|
21527
21554
|
display: block;
|
|
21528
21555
|
}
|
|
21529
21556
|
`;
|
|
21530
|
-
var StatusBulletBase =
|
|
21557
|
+
var StatusBulletBase = import_react139.css`
|
|
21531
21558
|
font-size: var(--fs-sm);
|
|
21532
21559
|
&:before {
|
|
21533
21560
|
width: var(--fs-xs);
|
|
21534
21561
|
height: var(--fs-xs);
|
|
21535
21562
|
}
|
|
21536
21563
|
`;
|
|
21537
|
-
var StatusBulletSmall =
|
|
21564
|
+
var StatusBulletSmall = import_react139.css`
|
|
21538
21565
|
font-size: var(--fs-xs);
|
|
21539
21566
|
&:before {
|
|
21540
21567
|
width: var(--fs-xxs);
|
|
21541
21568
|
height: var(--fs-xxs);
|
|
21542
21569
|
}
|
|
21543
21570
|
`;
|
|
21544
|
-
var StatusDraft =
|
|
21571
|
+
var StatusDraft = import_react139.css`
|
|
21545
21572
|
&:before {
|
|
21546
21573
|
background: var(--white);
|
|
21547
21574
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
21548
21575
|
}
|
|
21549
21576
|
`;
|
|
21550
|
-
var StatusModified =
|
|
21577
|
+
var StatusModified = import_react139.css`
|
|
21551
21578
|
&:before {
|
|
21552
21579
|
background: linear-gradient(to right, var(--white) 50%, var(--primary-action-default) 50% 100%);
|
|
21553
21580
|
box-shadow: inset 0 0 0 0.125rem var(--primary-action-default);
|
|
21554
21581
|
}
|
|
21555
21582
|
`;
|
|
21556
|
-
var StatusError =
|
|
21583
|
+
var StatusError = import_react139.css`
|
|
21557
21584
|
color: var(--error);
|
|
21558
21585
|
&:before {
|
|
21559
21586
|
/* TODO: replace this with an svg icon */
|
|
@@ -21566,17 +21593,17 @@ var StatusError = import_react138.css`
|
|
|
21566
21593
|
);
|
|
21567
21594
|
}
|
|
21568
21595
|
`;
|
|
21569
|
-
var StatusPublished =
|
|
21596
|
+
var StatusPublished = import_react139.css`
|
|
21570
21597
|
&:before {
|
|
21571
21598
|
background: var(--primary-action-default);
|
|
21572
21599
|
}
|
|
21573
21600
|
`;
|
|
21574
|
-
var StatusOrphan =
|
|
21601
|
+
var StatusOrphan = import_react139.css`
|
|
21575
21602
|
&:before {
|
|
21576
21603
|
background: var(--brand-secondary-5);
|
|
21577
21604
|
}
|
|
21578
21605
|
`;
|
|
21579
|
-
var StatusUnknown =
|
|
21606
|
+
var StatusUnknown = import_react139.css`
|
|
21580
21607
|
&:before {
|
|
21581
21608
|
background: var(--brand-secondary-1);
|
|
21582
21609
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.79.
|
|
3
|
+
"version": "19.79.1-alpha.7+bd4b0c6f4",
|
|
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.79.
|
|
27
|
-
"@uniformdev/richtext": "^19.79.
|
|
24
|
+
"@types/react": "18.2.40",
|
|
25
|
+
"@types/react-dom": "18.2.17",
|
|
26
|
+
"@uniformdev/canvas": "^19.79.1-alpha.7+bd4b0c6f4",
|
|
27
|
+
"@uniformdev/richtext": "^19.79.1-alpha.7+bd4b0c6f4",
|
|
28
28
|
"autoprefixer": "10.4.16",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
|
-
"postcss": "8.4.
|
|
30
|
+
"postcss": "8.4.32",
|
|
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": "bd4b0c6f4a67549f8eb7e127a85927c798e7eed0"
|
|
71
71
|
}
|