@uniformdev/design-system 19.58.2-alpha.0 → 19.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +220 -201
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +201 -182
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1595,7 +1595,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
1595
1595
|
{
|
|
1596
1596
|
dangerouslySetInnerHTML: {
|
|
1597
1597
|
__html: `
|
|
1598
|
-
:root {
|
|
1598
|
+
:root, :host {
|
|
1599
1599
|
--brand-primary-1: #438fd5; /* bright blue */
|
|
1600
1600
|
--brand-primary-2: #f4220b; /* red */
|
|
1601
1601
|
--brand-primary-3: #83c6e1; /* slate blue */
|
|
@@ -1702,10 +1702,11 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
1702
1702
|
--prose: 65ch;
|
|
1703
1703
|
|
|
1704
1704
|
/* brand shadow styles */
|
|
1705
|
-
--shadow-sm: rgba(
|
|
1706
|
-
--shadow-base: rgba(
|
|
1707
|
-
rgba(
|
|
1708
|
-
--shadow-md: 0px 4px 4px rgba(
|
|
1705
|
+
--shadow-sm: rgba(31, 43, 52, 0.05) 0px 0px 0px 1px;
|
|
1706
|
+
--shadow-base: rgba(31, 43, 52, 0.25) 0 2px 5px -1px,
|
|
1707
|
+
rgba(31, 43, 52, 0.3) 0px 1px 3px -1px;
|
|
1708
|
+
--shadow-md: 0px 4px 4px rgba(31, 43, 52, 0.25), 0 2px 4px -2px rgba(31, 43, 52, 0.1);
|
|
1709
|
+
--shadow-xl: 0px 0px 24px rgba(31, 43, 52, 0.3);
|
|
1709
1710
|
|
|
1710
1711
|
/* rounder corners */
|
|
1711
1712
|
--rounded-sm: 0.125rem; /* 2px */
|
|
@@ -1770,8 +1771,7 @@ var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
|
1770
1771
|
{
|
|
1771
1772
|
dangerouslySetInnerHTML: {
|
|
1772
1773
|
__html: `
|
|
1773
|
-
html,
|
|
1774
|
-
body {
|
|
1774
|
+
html, body, :host {
|
|
1775
1775
|
color: var(--brand-secondary-1);
|
|
1776
1776
|
font-family: var(--ff-base);
|
|
1777
1777
|
scroll-behavior: smooth;
|
|
@@ -12630,14 +12630,31 @@ var TooltipArrowStyles = import_react24.css`
|
|
|
12630
12630
|
|
|
12631
12631
|
// src/components/Tooltip/Tooltip.tsx
|
|
12632
12632
|
var import_jsx_runtime16 = require("@emotion/react/jsx-runtime");
|
|
12633
|
-
function Tooltip({
|
|
12633
|
+
function Tooltip({
|
|
12634
|
+
children,
|
|
12635
|
+
title: title2,
|
|
12636
|
+
placement = "bottom",
|
|
12637
|
+
visible,
|
|
12638
|
+
withoutPortal = false,
|
|
12639
|
+
...props
|
|
12640
|
+
}) {
|
|
12634
12641
|
const tooltip = (0, import_Tooltip.useTooltipState)({ placement });
|
|
12635
12642
|
return !title2 ? children : /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
|
|
12636
12643
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Tooltip.TooltipReference, { ...tooltip, ...children.props, children: (referenceProps) => import_react25.default.cloneElement(children, referenceProps) }),
|
|
12637
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12644
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
12645
|
+
import_Tooltip.Tooltip,
|
|
12646
|
+
{
|
|
12647
|
+
...tooltip,
|
|
12648
|
+
...props,
|
|
12649
|
+
unstable_portal: !withoutPortal,
|
|
12650
|
+
css: TooltipContainer,
|
|
12651
|
+
visible: visible != null ? visible : tooltip.visible,
|
|
12652
|
+
children: [
|
|
12653
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_Tooltip.TooltipArrow, { ...tooltip, css: TooltipArrowStyles }),
|
|
12654
|
+
title2
|
|
12655
|
+
]
|
|
12656
|
+
}
|
|
12657
|
+
)
|
|
12641
12658
|
] });
|
|
12642
12659
|
}
|
|
12643
12660
|
|
|
@@ -13093,6 +13110,45 @@ var Button = React6.forwardRef(
|
|
|
13093
13110
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
13094
13111
|
init_emotion_jsx_shim();
|
|
13095
13112
|
var import_CgChevronDown2 = require("@react-icons/all-files/cg/CgChevronDown");
|
|
13113
|
+
var import_CgMathPlus3 = require("@react-icons/all-files/cg/CgMathPlus");
|
|
13114
|
+
|
|
13115
|
+
// src/components/Layout/HorizontalRhythm.tsx
|
|
13116
|
+
init_emotion_jsx_shim();
|
|
13117
|
+
|
|
13118
|
+
// src/components/Layout/styles/HorizontalRhythm.styles.ts
|
|
13119
|
+
init_emotion_jsx_shim();
|
|
13120
|
+
var import_react31 = require("@emotion/react");
|
|
13121
|
+
var HorizontalRhythmContainer = (size) => import_react31.css`
|
|
13122
|
+
display: flex;
|
|
13123
|
+
gap: var(--spacing-${size});
|
|
13124
|
+
`;
|
|
13125
|
+
|
|
13126
|
+
// src/components/Layout/HorizontalRhythm.tsx
|
|
13127
|
+
var import_jsx_runtime23 = require("@emotion/react/jsx-runtime");
|
|
13128
|
+
var HorizontalRhythm = ({
|
|
13129
|
+
align,
|
|
13130
|
+
justify,
|
|
13131
|
+
tag = "div",
|
|
13132
|
+
gap = "base",
|
|
13133
|
+
children,
|
|
13134
|
+
...props
|
|
13135
|
+
}) => {
|
|
13136
|
+
const Tag = tag;
|
|
13137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
13138
|
+
Tag,
|
|
13139
|
+
{
|
|
13140
|
+
css: [
|
|
13141
|
+
HorizontalRhythmContainer(gap),
|
|
13142
|
+
{
|
|
13143
|
+
justifyContent: justify,
|
|
13144
|
+
alignItems: align
|
|
13145
|
+
}
|
|
13146
|
+
],
|
|
13147
|
+
...props,
|
|
13148
|
+
children
|
|
13149
|
+
}
|
|
13150
|
+
);
|
|
13151
|
+
};
|
|
13096
13152
|
|
|
13097
13153
|
// src/components/Menu/Menu.tsx
|
|
13098
13154
|
init_emotion_jsx_shim();
|
|
@@ -13102,20 +13158,20 @@ var import_Portal = require("reakit/Portal");
|
|
|
13102
13158
|
|
|
13103
13159
|
// src/components/Menu/filterMenuSeparators.ts
|
|
13104
13160
|
init_emotion_jsx_shim();
|
|
13105
|
-
var
|
|
13161
|
+
var import_react34 = __toESM(require("react"));
|
|
13106
13162
|
|
|
13107
13163
|
// src/components/Menu/MenuGroup.tsx
|
|
13108
13164
|
init_emotion_jsx_shim();
|
|
13109
13165
|
|
|
13110
13166
|
// src/components/Menu/MenuGroup.styles.ts
|
|
13111
13167
|
init_emotion_jsx_shim();
|
|
13112
|
-
var
|
|
13113
|
-
var MenuGroupContainer = (hasTitle) =>
|
|
13168
|
+
var import_react32 = require("@emotion/react");
|
|
13169
|
+
var MenuGroupContainer = (hasTitle) => import_react32.css`
|
|
13114
13170
|
display: flex;
|
|
13115
13171
|
flex-direction: column;
|
|
13116
13172
|
${hasTitle ? "margin-top: var(--spacing-sm);" : ""}
|
|
13117
13173
|
`;
|
|
13118
|
-
var MenuTitle =
|
|
13174
|
+
var MenuTitle = import_react32.css`
|
|
13119
13175
|
color: var(--gray-400);
|
|
13120
13176
|
font-size: var(--fs-xs);
|
|
13121
13177
|
font-weight: var(--fw-bold);
|
|
@@ -13124,10 +13180,10 @@ var MenuTitle = import_react31.css`
|
|
|
13124
13180
|
`;
|
|
13125
13181
|
|
|
13126
13182
|
// src/components/Menu/MenuGroup.tsx
|
|
13127
|
-
var
|
|
13183
|
+
var import_jsx_runtime24 = require("@emotion/react/jsx-runtime");
|
|
13128
13184
|
var MenuGroup = ({ title: title2, children }) => {
|
|
13129
|
-
return /* @__PURE__ */ (0,
|
|
13130
|
-
title2 ? /* @__PURE__ */ (0,
|
|
13185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { css: MenuGroupContainer(!!title2), "data-testid": "menu-group", children: [
|
|
13186
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { css: MenuTitle, children: title2 }) : null,
|
|
13131
13187
|
children
|
|
13132
13188
|
] });
|
|
13133
13189
|
};
|
|
@@ -13137,13 +13193,13 @@ init_emotion_jsx_shim();
|
|
|
13137
13193
|
|
|
13138
13194
|
// src/components/Menu/MenuItem.styles.ts
|
|
13139
13195
|
init_emotion_jsx_shim();
|
|
13140
|
-
var
|
|
13141
|
-
var activeMenuItem =
|
|
13196
|
+
var import_react33 = require("@emotion/react");
|
|
13197
|
+
var activeMenuItem = import_react33.css`
|
|
13142
13198
|
box-shadow: none;
|
|
13143
13199
|
background: var(--gray-200);
|
|
13144
13200
|
outline: none;
|
|
13145
13201
|
`;
|
|
13146
|
-
var menuItem = (textTheme, forceActive) =>
|
|
13202
|
+
var menuItem = (textTheme, forceActive) => import_react33.css`
|
|
13147
13203
|
align-items: center;
|
|
13148
13204
|
border: none;
|
|
13149
13205
|
border-radius: var(--rounded-base);
|
|
@@ -13168,7 +13224,7 @@ var menuItem = (textTheme, forceActive) => import_react32.css`
|
|
|
13168
13224
|
${typeof forceActive === "undefined" ? activeMenuItem : ""}
|
|
13169
13225
|
}
|
|
13170
13226
|
`;
|
|
13171
|
-
var menuItemWithIcon =
|
|
13227
|
+
var menuItemWithIcon = import_react33.css`
|
|
13172
13228
|
align-items: center;
|
|
13173
13229
|
display: flex;
|
|
13174
13230
|
justify-content: space-between;
|
|
@@ -13180,15 +13236,15 @@ var menuItemWithIcon = import_react32.css`
|
|
|
13180
13236
|
height: var(--spacing-base);
|
|
13181
13237
|
}
|
|
13182
13238
|
`;
|
|
13183
|
-
var menuItemSeparator =
|
|
13239
|
+
var menuItemSeparator = import_react33.css`
|
|
13184
13240
|
border-top: 1px solid var(--gray-300);
|
|
13185
13241
|
width: 100%;
|
|
13186
13242
|
margin-block: var(--spacing-sm);
|
|
13187
13243
|
`;
|
|
13188
13244
|
|
|
13189
13245
|
// src/components/Menu/MenuItemSeparator.tsx
|
|
13190
|
-
var
|
|
13191
|
-
var MenuItemSeparator = () => /* @__PURE__ */ (0,
|
|
13246
|
+
var import_jsx_runtime25 = require("@emotion/react/jsx-runtime");
|
|
13247
|
+
var MenuItemSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("hr", { css: menuItemSeparator, "data-testid": "menu-separator" });
|
|
13192
13248
|
|
|
13193
13249
|
// src/components/Menu/filterMenuSeparators.ts
|
|
13194
13250
|
function filterMenuSeparators(children, context) {
|
|
@@ -13229,16 +13285,16 @@ function filterMenuSeparators(children, context) {
|
|
|
13229
13285
|
return filteredList;
|
|
13230
13286
|
}
|
|
13231
13287
|
function isSubgroup(child) {
|
|
13232
|
-
return (0,
|
|
13288
|
+
return (0, import_react34.isValidElement)(child) && (child.type === import_react34.default.Fragment || child.type === MenuGroup);
|
|
13233
13289
|
}
|
|
13234
13290
|
function isMenuSeparator(child) {
|
|
13235
|
-
return (0,
|
|
13291
|
+
return (0, import_react34.isValidElement)(child) && child.type === MenuItemSeparator;
|
|
13236
13292
|
}
|
|
13237
13293
|
|
|
13238
13294
|
// src/components/Menu/Menu.styles.ts
|
|
13239
13295
|
init_emotion_jsx_shim();
|
|
13240
|
-
var
|
|
13241
|
-
var menu =
|
|
13296
|
+
var import_react35 = require("@emotion/react");
|
|
13297
|
+
var menu = import_react35.css`
|
|
13242
13298
|
box-shadow: var(--shadow-base);
|
|
13243
13299
|
border-radius: var(--rounded-base);
|
|
13244
13300
|
background: var(--gray-50);
|
|
@@ -13267,7 +13323,7 @@ var menu = import_react34.css`
|
|
|
13267
13323
|
`;
|
|
13268
13324
|
|
|
13269
13325
|
// src/components/Menu/Menu.tsx
|
|
13270
|
-
var
|
|
13326
|
+
var import_jsx_runtime26 = require("@emotion/react/jsx-runtime");
|
|
13271
13327
|
var MenuContext = React8.createContext({});
|
|
13272
13328
|
var useMenuContext = () => {
|
|
13273
13329
|
return React8.useContext(MenuContext);
|
|
@@ -13295,9 +13351,9 @@ var Menu = ({
|
|
|
13295
13351
|
}
|
|
13296
13352
|
}, [menuState.visible, setIsRendered]);
|
|
13297
13353
|
const Wrapper = withoutPortal ? React8.Fragment : import_Portal.Portal;
|
|
13298
|
-
return /* @__PURE__ */ (0,
|
|
13299
|
-
/* @__PURE__ */ (0,
|
|
13300
|
-
/* @__PURE__ */ (0,
|
|
13354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(MenuContext.Provider, { value: menuState, children: [
|
|
13355
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_Menu.MenuButton, { ...menuState, ref: menuTrigger.ref, ...menuTrigger.props, children: (triggerProps) => React8.cloneElement(menuTrigger, triggerProps) }),
|
|
13356
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
13301
13357
|
import_Menu.Menu,
|
|
13302
13358
|
{
|
|
13303
13359
|
...menuState,
|
|
@@ -13321,7 +13377,7 @@ var Menu = ({
|
|
|
13321
13377
|
init_emotion_jsx_shim();
|
|
13322
13378
|
var React9 = __toESM(require("react"));
|
|
13323
13379
|
var import_reakit = require("reakit");
|
|
13324
|
-
var
|
|
13380
|
+
var import_jsx_runtime27 = require("@emotion/react/jsx-runtime");
|
|
13325
13381
|
var MenuItem = React9.forwardRef(
|
|
13326
13382
|
({ children, className, hideMenuOnClick = true, icon, textColor = "base", active, ...props }, ref) => {
|
|
13327
13383
|
const menuState = useMenuContext();
|
|
@@ -13339,7 +13395,7 @@ var MenuItem = React9.forwardRef(
|
|
|
13339
13395
|
};
|
|
13340
13396
|
const resolvedProps = hideMenuOnClick ? resolveProps(props) : props;
|
|
13341
13397
|
const resolvedChildren = typeof children === "function" ? children(resolvedProps) : children;
|
|
13342
|
-
return /* @__PURE__ */ (0,
|
|
13398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
13343
13399
|
import_reakit.MenuItem,
|
|
13344
13400
|
{
|
|
13345
13401
|
ref,
|
|
@@ -13355,7 +13411,7 @@ var MenuItem = React9.forwardRef(
|
|
|
13355
13411
|
}
|
|
13356
13412
|
);
|
|
13357
13413
|
function renderWithIcon(children, icon) {
|
|
13358
|
-
return /* @__PURE__ */ (0,
|
|
13414
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { css: menuItemWithIcon, children: [
|
|
13359
13415
|
icon,
|
|
13360
13416
|
" ",
|
|
13361
13417
|
children
|
|
@@ -13364,8 +13420,8 @@ function renderWithIcon(children, icon) {
|
|
|
13364
13420
|
|
|
13365
13421
|
// src/components/ButtonWithMenu/ButtonWithMenu.styles.ts
|
|
13366
13422
|
init_emotion_jsx_shim();
|
|
13367
|
-
var
|
|
13368
|
-
var buttonSizeBase =
|
|
13423
|
+
var import_react36 = require("@emotion/react");
|
|
13424
|
+
var buttonSizeBase = import_react36.css`
|
|
13369
13425
|
--icon-padding: var(--spacing-xs);
|
|
13370
13426
|
--svg-size: 1rem;
|
|
13371
13427
|
--line-offset: -5px;
|
|
@@ -13375,7 +13431,7 @@ var buttonSizeBase = import_react35.css`
|
|
|
13375
13431
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
13376
13432
|
}
|
|
13377
13433
|
`;
|
|
13378
|
-
var buttonSizeSmall =
|
|
13434
|
+
var buttonSizeSmall = import_react36.css`
|
|
13379
13435
|
--icon-padding: var(--spacing-xs);
|
|
13380
13436
|
--svg-size: 0.85rem;
|
|
13381
13437
|
--line-offset: -1px;
|
|
@@ -13385,10 +13441,10 @@ var buttonSizeSmall = import_react35.css`
|
|
|
13385
13441
|
padding: var(--spacing-xs) var(--spacing-base);
|
|
13386
13442
|
}
|
|
13387
13443
|
`;
|
|
13388
|
-
var buttonSizeLarge =
|
|
13444
|
+
var buttonSizeLarge = import_react36.css`
|
|
13389
13445
|
--icon-padding: var(--spacing-sm);
|
|
13390
13446
|
--svg-size: 1.5rem;
|
|
13391
|
-
--line-offset: -
|
|
13447
|
+
--line-offset: -1px;
|
|
13392
13448
|
font-size: var(--fs-sm);
|
|
13393
13449
|
line-height: 1.25;
|
|
13394
13450
|
|
|
@@ -13396,7 +13452,7 @@ var buttonSizeLarge = import_react35.css`
|
|
|
13396
13452
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
13397
13453
|
}
|
|
13398
13454
|
`;
|
|
13399
|
-
var ButtonWithMenuContainer =
|
|
13455
|
+
var ButtonWithMenuContainer = import_react36.css`
|
|
13400
13456
|
align-items: center;
|
|
13401
13457
|
border: 1px solid transparent;
|
|
13402
13458
|
border-radius: var(--rounded-sm);
|
|
@@ -13425,7 +13481,7 @@ var ButtonWithMenuContainer = import_react35.css`
|
|
|
13425
13481
|
height: var(--svg-size);
|
|
13426
13482
|
}
|
|
13427
13483
|
`;
|
|
13428
|
-
var ButtonWithMenuBtn =
|
|
13484
|
+
var ButtonWithMenuBtn = import_react36.css`
|
|
13429
13485
|
align-items: center;
|
|
13430
13486
|
border: 1px solid transparent;
|
|
13431
13487
|
background: transparent;
|
|
@@ -13447,7 +13503,7 @@ var ButtonWithMenuBtn = import_react35.css`
|
|
|
13447
13503
|
pointer-events: none;
|
|
13448
13504
|
}
|
|
13449
13505
|
`;
|
|
13450
|
-
var ButtonWithMenuIcon =
|
|
13506
|
+
var ButtonWithMenuIcon = import_react36.css`
|
|
13451
13507
|
padding: var(--icon-padding);
|
|
13452
13508
|
position: relative;
|
|
13453
13509
|
|
|
@@ -13460,15 +13516,15 @@ var ButtonWithMenuIcon = import_react35.css`
|
|
|
13460
13516
|
position: absolute;
|
|
13461
13517
|
}
|
|
13462
13518
|
`;
|
|
13463
|
-
var buttonPrimary2 =
|
|
13519
|
+
var buttonPrimary2 = import_react36.css`
|
|
13464
13520
|
background: var(--brand-secondary-1);
|
|
13465
13521
|
color: var(--white);
|
|
13466
13522
|
`;
|
|
13467
|
-
var buttonPrimaryDisabled =
|
|
13523
|
+
var buttonPrimaryDisabled = import_react36.css`
|
|
13468
13524
|
background: var(--gray-300);
|
|
13469
13525
|
color: var(--white);
|
|
13470
13526
|
`;
|
|
13471
|
-
var buttonSecondary2 =
|
|
13527
|
+
var buttonSecondary2 = import_react36.css`
|
|
13472
13528
|
background: var(--primary-action-default);
|
|
13473
13529
|
color: var(--white);
|
|
13474
13530
|
|
|
@@ -13476,17 +13532,17 @@ var buttonSecondary2 = import_react35.css`
|
|
|
13476
13532
|
background: var(--primary-action-hover);
|
|
13477
13533
|
}
|
|
13478
13534
|
`;
|
|
13479
|
-
var buttonSecondaryDisabled =
|
|
13535
|
+
var buttonSecondaryDisabled = import_react36.css`
|
|
13480
13536
|
${buttonPrimaryDisabled}
|
|
13481
13537
|
`;
|
|
13482
|
-
var buttonUnimportant2 =
|
|
13538
|
+
var buttonUnimportant2 = import_react36.css`
|
|
13483
13539
|
background: var(--brand-secondary-2);
|
|
13484
13540
|
color: var(--brand-secondary-1);
|
|
13485
13541
|
`;
|
|
13486
|
-
var buttonUnimportantDisabled =
|
|
13542
|
+
var buttonUnimportantDisabled = import_react36.css`
|
|
13487
13543
|
${buttonPrimaryDisabled}
|
|
13488
13544
|
`;
|
|
13489
|
-
var buttonGhost2 =
|
|
13545
|
+
var buttonGhost2 = import_react36.css`
|
|
13490
13546
|
background: transparent;
|
|
13491
13547
|
color: var(--brand-secondary-3);
|
|
13492
13548
|
|
|
@@ -13494,11 +13550,11 @@ var buttonGhost2 = import_react35.css`
|
|
|
13494
13550
|
border-color: var(--brand-secondary-3);
|
|
13495
13551
|
}
|
|
13496
13552
|
`;
|
|
13497
|
-
var buttonGhostDisabled =
|
|
13553
|
+
var buttonGhostDisabled = import_react36.css`
|
|
13498
13554
|
border-color: var(--gray-400);
|
|
13499
13555
|
color: var(--gray-400);
|
|
13500
13556
|
`;
|
|
13501
|
-
var buttonSecondaryOutline =
|
|
13557
|
+
var buttonSecondaryOutline = import_react36.css`
|
|
13502
13558
|
background: var(--white);
|
|
13503
13559
|
color: var(--primary-action-default);
|
|
13504
13560
|
border-color: var(--primary-action-default);
|
|
@@ -13508,17 +13564,20 @@ var buttonSecondaryOutline = import_react35.css`
|
|
|
13508
13564
|
border-color: var(--primary-action-hover);
|
|
13509
13565
|
}
|
|
13510
13566
|
`;
|
|
13511
|
-
var buttonSecondaryOutlineDisabled =
|
|
13567
|
+
var buttonSecondaryOutlineDisabled = import_react36.css`
|
|
13512
13568
|
background: var(--white);
|
|
13513
13569
|
color: var(--gray-400);
|
|
13514
13570
|
border-color: var(--gray-400);
|
|
13515
13571
|
`;
|
|
13516
|
-
var buttonWithMenuIconOffset =
|
|
13572
|
+
var buttonWithMenuIconOffset = import_react36.css`
|
|
13517
13573
|
margin-left: -10px;
|
|
13518
13574
|
`;
|
|
13575
|
+
var wholeButtonWithMenuIconOffset = import_react36.css`
|
|
13576
|
+
margin: 3px -10px 0 3px;
|
|
13577
|
+
`;
|
|
13519
13578
|
|
|
13520
13579
|
// src/components/ButtonWithMenu/ButtonWithMenu.tsx
|
|
13521
|
-
var
|
|
13580
|
+
var import_jsx_runtime28 = require("@emotion/react/jsx-runtime");
|
|
13522
13581
|
var ButtonWithMenu = ({
|
|
13523
13582
|
onButtonClick,
|
|
13524
13583
|
buttonType = "secondary",
|
|
@@ -13549,7 +13608,12 @@ var ButtonWithMenu = ({
|
|
|
13549
13608
|
sm: buttonSizeSmall,
|
|
13550
13609
|
lg: buttonSizeLarge
|
|
13551
13610
|
};
|
|
13552
|
-
|
|
13611
|
+
const clickableButton = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon: import_CgChevronDown2.CgChevronDown, iconColor: "currentColor" }) });
|
|
13612
|
+
const dropdownButton = /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(HorizontalRhythm, { justify: "center", children: [
|
|
13613
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon: import_CgMathPlus3.CgMathPlus, iconColor: "currentColor", css: wholeButtonWithMenuIconOffset }),
|
|
13614
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { css: { marginRight: "var(--spacing-xs)", fontSize: "var(--fs-sm)" }, children: buttonText })
|
|
13615
|
+
] }) });
|
|
13616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
13553
13617
|
"div",
|
|
13554
13618
|
{
|
|
13555
13619
|
css: [
|
|
@@ -13558,8 +13622,8 @@ var ButtonWithMenu = ({
|
|
|
13558
13622
|
disabled ? buttonDisabledTheme[buttonType] : buttonTheme[buttonType]
|
|
13559
13623
|
],
|
|
13560
13624
|
"data-testid": "multioptions-button",
|
|
13561
|
-
children: [
|
|
13562
|
-
/* @__PURE__ */ (0,
|
|
13625
|
+
children: onButtonClick ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
13626
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
13563
13627
|
"button",
|
|
13564
13628
|
{
|
|
13565
13629
|
type: "button",
|
|
@@ -13569,40 +13633,32 @@ var ButtonWithMenu = ({
|
|
|
13569
13633
|
"data-testid": "multioptions-button-main",
|
|
13570
13634
|
...buttonProps,
|
|
13571
13635
|
children: [
|
|
13572
|
-
icon ? /* @__PURE__ */ (0,
|
|
13636
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { icon, iconColor: "currentColor", css: buttonWithMenuIconOffset }) : null,
|
|
13573
13637
|
buttonText
|
|
13574
13638
|
]
|
|
13575
13639
|
}
|
|
13576
13640
|
),
|
|
13577
|
-
/* @__PURE__ */ (0,
|
|
13578
|
-
|
|
13579
|
-
{
|
|
13580
|
-
menuLabel: "buttonMenu",
|
|
13581
|
-
placement,
|
|
13582
|
-
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { css: ButtonWithMenuIcon, "data-testid": "multioptions-button-call-menu", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon, { icon: import_CgChevronDown2.CgChevronDown, iconColor: "currentColor" }) }),
|
|
13583
|
-
children
|
|
13584
|
-
}
|
|
13585
|
-
)
|
|
13586
|
-
]
|
|
13641
|
+
disabled ? clickableButton : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: clickableButton, children })
|
|
13642
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children: disabled ? dropdownButton : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Menu, { menuLabel: "buttonMenu", placement, menuTrigger: dropdownButton, children }) })
|
|
13587
13643
|
}
|
|
13588
13644
|
);
|
|
13589
13645
|
};
|
|
13590
13646
|
|
|
13591
13647
|
// src/components/Callout/Callout.tsx
|
|
13592
13648
|
init_emotion_jsx_shim();
|
|
13593
|
-
var
|
|
13649
|
+
var import_react38 = require("@emotion/react");
|
|
13594
13650
|
|
|
13595
13651
|
// src/components/Callout/Callout.styles.ts
|
|
13596
13652
|
init_emotion_jsx_shim();
|
|
13597
|
-
var
|
|
13598
|
-
var calloutContainer =
|
|
13653
|
+
var import_react37 = require("@emotion/react");
|
|
13654
|
+
var calloutContainer = import_react37.css`
|
|
13599
13655
|
${functionalColors}
|
|
13600
13656
|
|
|
13601
13657
|
font-size: var(--fs-sm);
|
|
13602
13658
|
border-radius: var(--rounded-base);
|
|
13603
13659
|
padding: var(--spacing-base);
|
|
13604
13660
|
`;
|
|
13605
|
-
var calloutContainerCompact =
|
|
13661
|
+
var calloutContainerCompact = import_react37.css`
|
|
13606
13662
|
font-size: var(--fs-xs);
|
|
13607
13663
|
padding: var(--spacing-sm);
|
|
13608
13664
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -13614,34 +13670,34 @@ var calloutContainerCompact = import_react36.css`
|
|
|
13614
13670
|
--note-desc: var(--brand-secondary-1);
|
|
13615
13671
|
--success-desc: var(--brand-secondary-1);
|
|
13616
13672
|
`;
|
|
13617
|
-
var calloutInner =
|
|
13673
|
+
var calloutInner = import_react37.css`
|
|
13618
13674
|
display: flex;
|
|
13619
13675
|
gap: var(--spacing-sm);
|
|
13620
13676
|
`;
|
|
13621
|
-
var calloutBody =
|
|
13677
|
+
var calloutBody = import_react37.css`
|
|
13622
13678
|
display: flex;
|
|
13623
13679
|
flex-direction: column;
|
|
13624
13680
|
gap: var(--spacing-base);
|
|
13625
13681
|
flex: 1;
|
|
13626
13682
|
`;
|
|
13627
|
-
var calloutBodyCompact =
|
|
13683
|
+
var calloutBodyCompact = import_react37.css`
|
|
13628
13684
|
gap: var(--spacing-xs);
|
|
13629
13685
|
`;
|
|
13630
|
-
var calloutIconWrap =
|
|
13686
|
+
var calloutIconWrap = import_react37.css`
|
|
13631
13687
|
flex-shrink: 0;
|
|
13632
13688
|
`;
|
|
13633
|
-
var calloutTitle =
|
|
13689
|
+
var calloutTitle = import_react37.css`
|
|
13634
13690
|
font-weight: var(--fw-bold);
|
|
13635
13691
|
`;
|
|
13636
|
-
var calloutIcon =
|
|
13692
|
+
var calloutIcon = import_react37.css`
|
|
13637
13693
|
width: 1.25rem;
|
|
13638
13694
|
height: 1.25rem;
|
|
13639
13695
|
`;
|
|
13640
13696
|
|
|
13641
13697
|
// src/components/Callout/CalloutIcons.tsx
|
|
13642
13698
|
init_emotion_jsx_shim();
|
|
13643
|
-
var
|
|
13644
|
-
var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
13699
|
+
var import_jsx_runtime29 = require("@emotion/react/jsx-runtime");
|
|
13700
|
+
var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13645
13701
|
"svg",
|
|
13646
13702
|
{
|
|
13647
13703
|
role: "img",
|
|
@@ -13652,7 +13708,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
|
13652
13708
|
viewBox: "0 0 14 16",
|
|
13653
13709
|
fill: "currentColor",
|
|
13654
13710
|
...props,
|
|
13655
|
-
children: /* @__PURE__ */ (0,
|
|
13711
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13656
13712
|
"path",
|
|
13657
13713
|
{
|
|
13658
13714
|
fillRule: "evenodd",
|
|
@@ -13661,7 +13717,7 @@ var InfoIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
|
13661
13717
|
)
|
|
13662
13718
|
}
|
|
13663
13719
|
);
|
|
13664
|
-
var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
13720
|
+
var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13665
13721
|
"svg",
|
|
13666
13722
|
{
|
|
13667
13723
|
role: "img",
|
|
@@ -13672,7 +13728,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)
|
|
|
13672
13728
|
viewBox: "0 0 12 16",
|
|
13673
13729
|
fill: "currentColor",
|
|
13674
13730
|
...props,
|
|
13675
|
-
children: /* @__PURE__ */ (0,
|
|
13731
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13676
13732
|
"path",
|
|
13677
13733
|
{
|
|
13678
13734
|
fillRule: "evenodd",
|
|
@@ -13681,7 +13737,7 @@ var DangerIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)
|
|
|
13681
13737
|
)
|
|
13682
13738
|
}
|
|
13683
13739
|
);
|
|
13684
|
-
var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
13740
|
+
var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13685
13741
|
"svg",
|
|
13686
13742
|
{
|
|
13687
13743
|
role: "img",
|
|
@@ -13692,7 +13748,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
|
13692
13748
|
viewBox: "0 0 14 16",
|
|
13693
13749
|
fill: "currentColor",
|
|
13694
13750
|
...props,
|
|
13695
|
-
children: /* @__PURE__ */ (0,
|
|
13751
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13696
13752
|
"path",
|
|
13697
13753
|
{
|
|
13698
13754
|
fillRule: "evenodd",
|
|
@@ -13701,7 +13757,7 @@ var NoteIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
|
13701
13757
|
)
|
|
13702
13758
|
}
|
|
13703
13759
|
);
|
|
13704
|
-
var TipIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
13760
|
+
var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13705
13761
|
"svg",
|
|
13706
13762
|
{
|
|
13707
13763
|
role: "img",
|
|
@@ -13712,7 +13768,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
|
13712
13768
|
viewBox: "0 0 12 16",
|
|
13713
13769
|
fill: "currentColor",
|
|
13714
13770
|
...props,
|
|
13715
|
-
children: /* @__PURE__ */ (0,
|
|
13771
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13716
13772
|
"path",
|
|
13717
13773
|
{
|
|
13718
13774
|
fillRule: "evenodd",
|
|
@@ -13721,7 +13777,7 @@ var TipIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
|
13721
13777
|
)
|
|
13722
13778
|
}
|
|
13723
13779
|
);
|
|
13724
|
-
var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
13780
|
+
var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13725
13781
|
"svg",
|
|
13726
13782
|
{
|
|
13727
13783
|
role: "img",
|
|
@@ -13732,7 +13788,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx
|
|
|
13732
13788
|
viewBox: "0 0 16 16",
|
|
13733
13789
|
fill: "currentColor",
|
|
13734
13790
|
...props,
|
|
13735
|
-
children: /* @__PURE__ */ (0,
|
|
13791
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13736
13792
|
"path",
|
|
13737
13793
|
{
|
|
13738
13794
|
fillRule: "evenodd",
|
|
@@ -13741,7 +13797,7 @@ var CautionIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx
|
|
|
13741
13797
|
)
|
|
13742
13798
|
}
|
|
13743
13799
|
);
|
|
13744
|
-
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
13800
|
+
var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13745
13801
|
"svg",
|
|
13746
13802
|
{
|
|
13747
13803
|
role: "img",
|
|
@@ -13752,7 +13808,7 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx
|
|
|
13752
13808
|
fill: "currentColor",
|
|
13753
13809
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13754
13810
|
...props,
|
|
13755
|
-
children: /* @__PURE__ */ (0,
|
|
13811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
13756
13812
|
"path",
|
|
13757
13813
|
{
|
|
13758
13814
|
fillRule: "evenodd",
|
|
@@ -13764,95 +13820,95 @@ var SuccessIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx
|
|
|
13764
13820
|
);
|
|
13765
13821
|
|
|
13766
13822
|
// src/components/Callout/Callout.tsx
|
|
13767
|
-
var
|
|
13823
|
+
var import_jsx_runtime30 = require("@emotion/react/jsx-runtime");
|
|
13768
13824
|
var calloutTypeDataMap = {
|
|
13769
13825
|
caution: {
|
|
13770
13826
|
icon: CautionIcon,
|
|
13771
|
-
descriptionColor:
|
|
13827
|
+
descriptionColor: import_react38.css`
|
|
13772
13828
|
color: var(--caution-desc);
|
|
13773
13829
|
`,
|
|
13774
|
-
iconColor:
|
|
13830
|
+
iconColor: import_react38.css`
|
|
13775
13831
|
color: var(--caution-icon);
|
|
13776
13832
|
`,
|
|
13777
|
-
containerStyles:
|
|
13833
|
+
containerStyles: import_react38.css`
|
|
13778
13834
|
color: var(--caution-title);
|
|
13779
13835
|
background-color: var(--caution-container);
|
|
13780
13836
|
`
|
|
13781
13837
|
},
|
|
13782
13838
|
danger: {
|
|
13783
13839
|
icon: DangerIcon,
|
|
13784
|
-
descriptionColor:
|
|
13840
|
+
descriptionColor: import_react38.css`
|
|
13785
13841
|
color: var(--danger-desc);
|
|
13786
13842
|
`,
|
|
13787
|
-
iconColor:
|
|
13843
|
+
iconColor: import_react38.css`
|
|
13788
13844
|
color: var(--danger-icon);
|
|
13789
13845
|
`,
|
|
13790
|
-
containerStyles:
|
|
13846
|
+
containerStyles: import_react38.css`
|
|
13791
13847
|
color: var(--danger-title);
|
|
13792
13848
|
background-color: var(--danger-container);
|
|
13793
13849
|
`
|
|
13794
13850
|
},
|
|
13795
13851
|
error: {
|
|
13796
13852
|
icon: CautionIcon,
|
|
13797
|
-
descriptionColor:
|
|
13853
|
+
descriptionColor: import_react38.css`
|
|
13798
13854
|
color: var(--danger-desc);
|
|
13799
13855
|
`,
|
|
13800
|
-
iconColor:
|
|
13856
|
+
iconColor: import_react38.css`
|
|
13801
13857
|
color: var(--danger-icon);
|
|
13802
13858
|
`,
|
|
13803
|
-
containerStyles:
|
|
13859
|
+
containerStyles: import_react38.css`
|
|
13804
13860
|
color: var(--danger-title);
|
|
13805
13861
|
background-color: var(--danger-container);
|
|
13806
13862
|
`
|
|
13807
13863
|
},
|
|
13808
13864
|
info: {
|
|
13809
13865
|
icon: InfoIcon,
|
|
13810
|
-
descriptionColor:
|
|
13866
|
+
descriptionColor: import_react38.css`
|
|
13811
13867
|
color: var(--info-desc);
|
|
13812
13868
|
`,
|
|
13813
|
-
iconColor:
|
|
13869
|
+
iconColor: import_react38.css`
|
|
13814
13870
|
color: var(--info-icon);
|
|
13815
13871
|
`,
|
|
13816
|
-
containerStyles:
|
|
13872
|
+
containerStyles: import_react38.css`
|
|
13817
13873
|
color: var(--info-title);
|
|
13818
13874
|
background-color: var(--info-container);
|
|
13819
13875
|
`
|
|
13820
13876
|
},
|
|
13821
13877
|
note: {
|
|
13822
13878
|
icon: NoteIcon,
|
|
13823
|
-
descriptionColor:
|
|
13879
|
+
descriptionColor: import_react38.css`
|
|
13824
13880
|
color: var(--note-desc);
|
|
13825
13881
|
`,
|
|
13826
|
-
iconColor:
|
|
13882
|
+
iconColor: import_react38.css`
|
|
13827
13883
|
color: var(--note-icon);
|
|
13828
13884
|
`,
|
|
13829
|
-
containerStyles:
|
|
13885
|
+
containerStyles: import_react38.css`
|
|
13830
13886
|
color: var(--note-title);
|
|
13831
13887
|
background-color: var(--note-container);
|
|
13832
13888
|
`
|
|
13833
13889
|
},
|
|
13834
13890
|
success: {
|
|
13835
13891
|
icon: SuccessIcon,
|
|
13836
|
-
descriptionColor:
|
|
13892
|
+
descriptionColor: import_react38.css`
|
|
13837
13893
|
color: var(--success-desc);
|
|
13838
13894
|
`,
|
|
13839
|
-
iconColor:
|
|
13895
|
+
iconColor: import_react38.css`
|
|
13840
13896
|
color: var(--success-icon);
|
|
13841
13897
|
`,
|
|
13842
|
-
containerStyles:
|
|
13898
|
+
containerStyles: import_react38.css`
|
|
13843
13899
|
color: var(--success-title);
|
|
13844
13900
|
background-color: var(--success-container);
|
|
13845
13901
|
`
|
|
13846
13902
|
},
|
|
13847
13903
|
tip: {
|
|
13848
13904
|
icon: TipIcon,
|
|
13849
|
-
descriptionColor:
|
|
13905
|
+
descriptionColor: import_react38.css`
|
|
13850
13906
|
color: var(--success-desc);
|
|
13851
13907
|
`,
|
|
13852
|
-
iconColor:
|
|
13908
|
+
iconColor: import_react38.css`
|
|
13853
13909
|
color: var(--success-icon);
|
|
13854
13910
|
`,
|
|
13855
|
-
containerStyles:
|
|
13911
|
+
containerStyles: import_react38.css`
|
|
13856
13912
|
color: var(--success-title);
|
|
13857
13913
|
background-color: var(--success-container);
|
|
13858
13914
|
`
|
|
@@ -13871,7 +13927,7 @@ var Callout = ({
|
|
|
13871
13927
|
return null;
|
|
13872
13928
|
}
|
|
13873
13929
|
const Icon2 = calloutTypeData.icon;
|
|
13874
|
-
return /* @__PURE__ */ (0,
|
|
13930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
13875
13931
|
"div",
|
|
13876
13932
|
{
|
|
13877
13933
|
"data-testid": testId ? testId : "sdk-ui-callout",
|
|
@@ -13882,11 +13938,11 @@ var Callout = ({
|
|
|
13882
13938
|
typeof className === "object" ? className : ""
|
|
13883
13939
|
],
|
|
13884
13940
|
className: `${typeof className === "string" ? className : ""}`,
|
|
13885
|
-
children: /* @__PURE__ */ (0,
|
|
13886
|
-
compact ? null : /* @__PURE__ */ (0,
|
|
13887
|
-
/* @__PURE__ */ (0,
|
|
13888
|
-
title2 ? /* @__PURE__ */ (0,
|
|
13889
|
-
children ? /* @__PURE__ */ (0,
|
|
13941
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { css: calloutInner, children: [
|
|
13942
|
+
compact ? null : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { css: calloutIconWrap, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
13943
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
13944
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { css: [calloutTitle], "data-testid": "callout-title", children: title2 }) : null,
|
|
13945
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { css: [calloutTypeData.descriptionColor], "data-testid": "callout-description", children }) : null
|
|
13890
13946
|
] })
|
|
13891
13947
|
] })
|
|
13892
13948
|
}
|
|
@@ -13899,8 +13955,8 @@ var import_CgMoreAlt2 = require("@react-icons/all-files/cg/CgMoreAlt");
|
|
|
13899
13955
|
|
|
13900
13956
|
// src/components/Card/Card.styles.ts
|
|
13901
13957
|
init_emotion_jsx_shim();
|
|
13902
|
-
var
|
|
13903
|
-
var CardContainer =
|
|
13958
|
+
var import_react39 = require("@emotion/react");
|
|
13959
|
+
var CardContainer = import_react39.css`
|
|
13904
13960
|
background: var(--white);
|
|
13905
13961
|
border: 1px solid var(--gray-300);
|
|
13906
13962
|
border-radius: var(--rounded-base);
|
|
@@ -13913,7 +13969,7 @@ var CardContainer = import_react38.css`
|
|
|
13913
13969
|
background: var(--gray-50);
|
|
13914
13970
|
}
|
|
13915
13971
|
`;
|
|
13916
|
-
var CardTitle = (marginBottom) =>
|
|
13972
|
+
var CardTitle = (marginBottom) => import_react39.css`
|
|
13917
13973
|
display: flex;
|
|
13918
13974
|
margin: ${marginBottom ? "0 0 var(--spacing-base)" : "0"};
|
|
13919
13975
|
padding-right: var(--spacing-lg);
|
|
@@ -13921,7 +13977,7 @@ var CardTitle = (marginBottom) => import_react38.css`
|
|
|
13921
13977
|
gap: var(--spacing-xs);
|
|
13922
13978
|
font-weight: var(--fw-regular);
|
|
13923
13979
|
`;
|
|
13924
|
-
var CardMenu =
|
|
13980
|
+
var CardMenu = import_react39.css`
|
|
13925
13981
|
align-items: center;
|
|
13926
13982
|
background: transparent;
|
|
13927
13983
|
color: var(--gray-300);
|
|
@@ -13942,7 +13998,7 @@ var CardMenu = import_react38.css`
|
|
|
13942
13998
|
`;
|
|
13943
13999
|
|
|
13944
14000
|
// src/components/Card/Card.tsx
|
|
13945
|
-
var
|
|
14001
|
+
var import_jsx_runtime31 = require("@emotion/react/jsx-runtime");
|
|
13946
14002
|
var Card = ({
|
|
13947
14003
|
title: title2,
|
|
13948
14004
|
menuItems,
|
|
@@ -13953,13 +14009,13 @@ var Card = ({
|
|
|
13953
14009
|
menuButtonTestId,
|
|
13954
14010
|
...props
|
|
13955
14011
|
}) => {
|
|
13956
|
-
return /* @__PURE__ */ (0,
|
|
13957
|
-
title2 ? /* @__PURE__ */ (0,
|
|
13958
|
-
menuItems ? /* @__PURE__ */ (0,
|
|
14012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Tag, { css: CardContainer, ...props, children: [
|
|
14013
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CardTitle2, { title: title2, titleWithMarginBottom }) : null,
|
|
14014
|
+
menuItems ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
13959
14015
|
Menu,
|
|
13960
14016
|
{
|
|
13961
14017
|
menuLabel: "More options",
|
|
13962
|
-
menuTrigger: /* @__PURE__ */ (0,
|
|
14018
|
+
menuTrigger: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
13963
14019
|
"button",
|
|
13964
14020
|
{
|
|
13965
14021
|
"aria-label": "More options",
|
|
@@ -13967,7 +14023,7 @@ var Card = ({
|
|
|
13967
14023
|
disabled,
|
|
13968
14024
|
css: CardMenu,
|
|
13969
14025
|
"data-testid": menuButtonTestId != null ? menuButtonTestId : "list-card-menu",
|
|
13970
|
-
children: /* @__PURE__ */ (0,
|
|
14026
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { icon: import_CgMoreAlt2.CgMoreAlt, iconColor: "currentColor", size: 32 })
|
|
13971
14027
|
}
|
|
13972
14028
|
),
|
|
13973
14029
|
children: menuItems
|
|
@@ -13978,7 +14034,7 @@ var Card = ({
|
|
|
13978
14034
|
};
|
|
13979
14035
|
var CardTitle2 = ({ title: title2, titleWithMarginBottom, children }) => {
|
|
13980
14036
|
const normalizeTitle = replaceUnderscoreInString(title2);
|
|
13981
|
-
return /* @__PURE__ */ (0,
|
|
14037
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Heading, { level: 3, css: CardTitle(titleWithMarginBottom), children: [
|
|
13982
14038
|
normalizeTitle,
|
|
13983
14039
|
children
|
|
13984
14040
|
] });
|
|
@@ -13989,12 +14045,12 @@ init_emotion_jsx_shim();
|
|
|
13989
14045
|
|
|
13990
14046
|
// src/components/Card/CardContainer.styles.ts
|
|
13991
14047
|
init_emotion_jsx_shim();
|
|
13992
|
-
var
|
|
13993
|
-
var CardContainerWrapper = (bgColor) =>
|
|
14048
|
+
var import_react40 = require("@emotion/react");
|
|
14049
|
+
var CardContainerWrapper = (bgColor) => import_react40.css`
|
|
13994
14050
|
background: ${bgColor === "gray" ? `var(--gray-50)` : `var(--white)`};
|
|
13995
14051
|
container-type: inline-size;
|
|
13996
14052
|
`;
|
|
13997
|
-
var CardContainerInner = ({ padding, withLastColumn }) =>
|
|
14053
|
+
var CardContainerInner = ({ padding, withLastColumn }) => import_react40.css`
|
|
13998
14054
|
display: grid;
|
|
13999
14055
|
gap: var(--spacing-lg);
|
|
14000
14056
|
max-width: var(--site-width);
|
|
@@ -14008,7 +14064,7 @@ var CardContainerInner = ({ padding, withLastColumn }) => import_react39.css`
|
|
|
14008
14064
|
`;
|
|
14009
14065
|
|
|
14010
14066
|
// src/components/Card/CardContainer.tsx
|
|
14011
|
-
var
|
|
14067
|
+
var import_jsx_runtime32 = require("@emotion/react/jsx-runtime");
|
|
14012
14068
|
var CardContainer2 = ({
|
|
14013
14069
|
bgColor = "white",
|
|
14014
14070
|
padding = true,
|
|
@@ -14016,7 +14072,7 @@ var CardContainer2 = ({
|
|
|
14016
14072
|
children,
|
|
14017
14073
|
...props
|
|
14018
14074
|
}) => {
|
|
14019
|
-
return /* @__PURE__ */ (0,
|
|
14075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { css: CardContainerWrapper(bgColor), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { css: CardContainerInner({ padding, withLastColumn }), children }) });
|
|
14020
14076
|
};
|
|
14021
14077
|
|
|
14022
14078
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
@@ -14028,8 +14084,8 @@ init_emotion_jsx_shim();
|
|
|
14028
14084
|
|
|
14029
14085
|
// src/components/Layout/styles/Container.styles.ts
|
|
14030
14086
|
init_emotion_jsx_shim();
|
|
14031
|
-
var
|
|
14032
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
14087
|
+
var import_react41 = require("@emotion/react");
|
|
14088
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => import_react41.css`
|
|
14033
14089
|
background: var(--${backgroundColor});
|
|
14034
14090
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
14035
14091
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -14038,7 +14094,7 @@ var Container = ({ backgroundColor, border, rounded, padding, margin }) => impor
|
|
|
14038
14094
|
`;
|
|
14039
14095
|
|
|
14040
14096
|
// src/components/Layout/Container.tsx
|
|
14041
|
-
var
|
|
14097
|
+
var import_jsx_runtime33 = require("@emotion/react/jsx-runtime");
|
|
14042
14098
|
var Container2 = ({
|
|
14043
14099
|
tag = "div",
|
|
14044
14100
|
backgroundColor = "white",
|
|
@@ -14050,7 +14106,7 @@ var Container2 = ({
|
|
|
14050
14106
|
...props
|
|
14051
14107
|
}) => {
|
|
14052
14108
|
const Tag = tag;
|
|
14053
|
-
return /* @__PURE__ */ (0,
|
|
14109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14054
14110
|
Tag,
|
|
14055
14111
|
{
|
|
14056
14112
|
css: Container({
|
|
@@ -14066,44 +14122,6 @@ var Container2 = ({
|
|
|
14066
14122
|
);
|
|
14067
14123
|
};
|
|
14068
14124
|
|
|
14069
|
-
// src/components/Layout/HorizontalRhythm.tsx
|
|
14070
|
-
init_emotion_jsx_shim();
|
|
14071
|
-
|
|
14072
|
-
// src/components/Layout/styles/HorizontalRhythm.styles.ts
|
|
14073
|
-
init_emotion_jsx_shim();
|
|
14074
|
-
var import_react41 = require("@emotion/react");
|
|
14075
|
-
var HorizontalRhythmContainer = (size) => import_react41.css`
|
|
14076
|
-
display: flex;
|
|
14077
|
-
gap: var(--spacing-${size});
|
|
14078
|
-
`;
|
|
14079
|
-
|
|
14080
|
-
// src/components/Layout/HorizontalRhythm.tsx
|
|
14081
|
-
var import_jsx_runtime33 = require("@emotion/react/jsx-runtime");
|
|
14082
|
-
var HorizontalRhythm = ({
|
|
14083
|
-
align,
|
|
14084
|
-
justify,
|
|
14085
|
-
tag = "div",
|
|
14086
|
-
gap = "base",
|
|
14087
|
-
children,
|
|
14088
|
-
...props
|
|
14089
|
-
}) => {
|
|
14090
|
-
const Tag = tag;
|
|
14091
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
14092
|
-
Tag,
|
|
14093
|
-
{
|
|
14094
|
-
css: [
|
|
14095
|
-
HorizontalRhythmContainer(gap),
|
|
14096
|
-
{
|
|
14097
|
-
justifyContent: justify,
|
|
14098
|
-
alignItems: align
|
|
14099
|
-
}
|
|
14100
|
-
],
|
|
14101
|
-
...props,
|
|
14102
|
-
children
|
|
14103
|
-
}
|
|
14104
|
-
);
|
|
14105
|
-
};
|
|
14106
|
-
|
|
14107
14125
|
// src/components/Layout/TwoColumnLayout.tsx
|
|
14108
14126
|
init_emotion_jsx_shim();
|
|
14109
14127
|
|
|
@@ -18002,6 +18020,7 @@ init_emotion_jsx_shim();
|
|
|
18002
18020
|
var import_react99 = require("@emotion/react");
|
|
18003
18021
|
var inputContainer2 = import_react99.css`
|
|
18004
18022
|
position: relative;
|
|
18023
|
+
scroll-margin: var(--spacing-2xl);
|
|
18005
18024
|
|
|
18006
18025
|
&:hover,
|
|
18007
18026
|
&:focus,
|
|
@@ -18575,7 +18594,7 @@ var ParameterShell = ({
|
|
|
18575
18594
|
const [manualErrorMessage, setManualErrorMessage] = (0, import_react108.useState)(void 0);
|
|
18576
18595
|
const setErrorMessage = (message) => setManualErrorMessage(message);
|
|
18577
18596
|
const errorMessaging = errorMessage || manualErrorMessage;
|
|
18578
|
-
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { css: inputContainer2, ...props, children: [
|
|
18597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { css: inputContainer2, ...props, id, children: [
|
|
18579
18598
|
hiddenLabel || title2 ? null : /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(ParameterLabel, { id, css: labelText2, children: [
|
|
18580
18599
|
labelLeadingIcon != null ? labelLeadingIcon : null,
|
|
18581
18600
|
label,
|
|
@@ -20192,7 +20211,7 @@ var ParameterRichText = ({
|
|
|
20192
20211
|
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
20193
20212
|
ParameterShell,
|
|
20194
20213
|
{
|
|
20195
|
-
"data-testid": "parameter-
|
|
20214
|
+
"data-testid": "parameter-richtext",
|
|
20196
20215
|
label,
|
|
20197
20216
|
hiddenLabel,
|
|
20198
20217
|
labelLeadingIcon,
|