@uniformdev/design-system 18.35.1-alpha.27 → 18.38.2-alpha.6
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 +85 -74
- package/dist/index.d.ts +15 -3
- package/dist/index.js +85 -74
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -11258,8 +11258,8 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11258
11258
|
children: /* @__PURE__ */ jsxs15("div", { css: calloutInner, children: [
|
|
11259
11259
|
compact ? null : /* @__PURE__ */ jsx27("div", { css: calloutIconWrap, children: /* @__PURE__ */ jsx27(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11260
11260
|
/* @__PURE__ */ jsxs15("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11261
|
-
title ? /* @__PURE__ */ jsx27("div", { css: [calloutTitle], children: title }) : null,
|
|
11262
|
-
children ? /* @__PURE__ */ jsx27("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11261
|
+
title ? /* @__PURE__ */ jsx27("div", { css: [calloutTitle], "data-test-id": "callout-title", children: title }) : null,
|
|
11262
|
+
children ? /* @__PURE__ */ jsx27("div", { css: [calloutTypeData.descriptionColor], "data-test-id": "callout-description", children }) : null
|
|
11263
11263
|
] })
|
|
11264
11264
|
] })
|
|
11265
11265
|
}
|
|
@@ -11388,40 +11388,9 @@ var CardContainer2 = ({
|
|
|
11388
11388
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11389
11389
|
import { CgMoreAlt as CgMoreAlt2 } from "react-icons/cg";
|
|
11390
11390
|
|
|
11391
|
-
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11392
|
-
import { css as css27 } from "@emotion/react";
|
|
11393
|
-
var LoadingCardSkeleton = css27`
|
|
11394
|
-
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11395
|
-
color: var(--gray-400);
|
|
11396
|
-
border-radius: var(--rounded-base);
|
|
11397
|
-
padding: var(--spacing-md);
|
|
11398
|
-
min-height: 160px;
|
|
11399
|
-
position: relative;
|
|
11400
|
-
`;
|
|
11401
|
-
var LoadingText = css27`
|
|
11402
|
-
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11403
|
-
border-radius: var(--rounded-base);
|
|
11404
|
-
background: var(--gray-300);
|
|
11405
|
-
display: block;
|
|
11406
|
-
`;
|
|
11407
|
-
var LoadingTitle = css27`
|
|
11408
|
-
width: clamp(200px, 100vw, 60%);
|
|
11409
|
-
height: var(--spacing-md);
|
|
11410
|
-
`;
|
|
11411
|
-
var LoadingTimeStamp = css27`
|
|
11412
|
-
width: clamp(200px, 100vw, 30%);
|
|
11413
|
-
height: var(--spacing-sm);
|
|
11414
|
-
`;
|
|
11415
|
-
var LoadingMenuIcon = css27`
|
|
11416
|
-
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11417
|
-
position: absolute;
|
|
11418
|
-
top: var(--spacing-md);
|
|
11419
|
-
right: var(--spacing-md);
|
|
11420
|
-
`;
|
|
11421
|
-
|
|
11422
11391
|
// src/components/Layout/styles/Container.styles.ts
|
|
11423
|
-
import { css as
|
|
11424
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
11392
|
+
import { css as css27 } from "@emotion/react";
|
|
11393
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => css27`
|
|
11425
11394
|
background: var(--${backgroundColor});
|
|
11426
11395
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
11427
11396
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -11459,11 +11428,11 @@ var Container2 = ({
|
|
|
11459
11428
|
};
|
|
11460
11429
|
|
|
11461
11430
|
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
11462
|
-
import { css as
|
|
11463
|
-
var TwoColumnLayoutContainer = (bgColor) =>
|
|
11431
|
+
import { css as css28 } from "@emotion/react";
|
|
11432
|
+
var TwoColumnLayoutContainer = (bgColor) => css28`
|
|
11464
11433
|
background: ${bgColor};
|
|
11465
11434
|
`;
|
|
11466
|
-
var TwoColumnLayoutInner = (invertLayout) =>
|
|
11435
|
+
var TwoColumnLayoutInner = (invertLayout) => css28`
|
|
11467
11436
|
display: grid;
|
|
11468
11437
|
max-width: var(--site-width);
|
|
11469
11438
|
margin-inline: auto;
|
|
@@ -11479,8 +11448,8 @@ var TwoColumnLayoutInner = (invertLayout) => css29`
|
|
|
11479
11448
|
}`}
|
|
11480
11449
|
}
|
|
11481
11450
|
`;
|
|
11482
|
-
var TwoColumnLayoutMain =
|
|
11483
|
-
var TwoColumnLayoutSupporting =
|
|
11451
|
+
var TwoColumnLayoutMain = css28``;
|
|
11452
|
+
var TwoColumnLayoutSupporting = css28`
|
|
11484
11453
|
display: flex;
|
|
11485
11454
|
flex-direction: column;
|
|
11486
11455
|
`;
|
|
@@ -11500,8 +11469,8 @@ var TwoColumnLayout = ({
|
|
|
11500
11469
|
};
|
|
11501
11470
|
|
|
11502
11471
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
11503
|
-
import { css as
|
|
11504
|
-
var VerticalRhythmContainer = (size) =>
|
|
11472
|
+
import { css as css29 } from "@emotion/react";
|
|
11473
|
+
var VerticalRhythmContainer = (size) => css29`
|
|
11505
11474
|
display: flex;
|
|
11506
11475
|
flex-direction: column;
|
|
11507
11476
|
gap: var(--spacing-${size});
|
|
@@ -11514,6 +11483,37 @@ var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
|
11514
11483
|
return /* @__PURE__ */ jsx32(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
11515
11484
|
};
|
|
11516
11485
|
|
|
11486
|
+
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11487
|
+
import { css as css30 } from "@emotion/react";
|
|
11488
|
+
var LoadingCardSkeleton = css30`
|
|
11489
|
+
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11490
|
+
color: var(--gray-400);
|
|
11491
|
+
border-radius: var(--rounded-base);
|
|
11492
|
+
padding: var(--spacing-md);
|
|
11493
|
+
min-height: 160px;
|
|
11494
|
+
position: relative;
|
|
11495
|
+
`;
|
|
11496
|
+
var LoadingText = css30`
|
|
11497
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11498
|
+
border-radius: var(--rounded-base);
|
|
11499
|
+
background: var(--gray-300);
|
|
11500
|
+
display: block;
|
|
11501
|
+
`;
|
|
11502
|
+
var LoadingTitle = css30`
|
|
11503
|
+
width: clamp(200px, 100vw, 60%);
|
|
11504
|
+
height: var(--spacing-md);
|
|
11505
|
+
`;
|
|
11506
|
+
var LoadingTimeStamp = css30`
|
|
11507
|
+
width: clamp(200px, 100vw, 30%);
|
|
11508
|
+
height: var(--spacing-sm);
|
|
11509
|
+
`;
|
|
11510
|
+
var LoadingMenuIcon = css30`
|
|
11511
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11512
|
+
position: absolute;
|
|
11513
|
+
top: var(--spacing-md);
|
|
11514
|
+
right: var(--spacing-md);
|
|
11515
|
+
`;
|
|
11516
|
+
|
|
11517
11517
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11518
11518
|
import { jsx as jsx33, jsxs as jsxs18 } from "@emotion/react/jsx-runtime";
|
|
11519
11519
|
var LoadingCardSkeleton2 = () => {
|
|
@@ -11526,10 +11526,11 @@ var LoadingCardSkeleton2 = () => {
|
|
|
11526
11526
|
|
|
11527
11527
|
// src/components/Counter/Counter.styles.ts
|
|
11528
11528
|
import { css as css31 } from "@emotion/react";
|
|
11529
|
-
var counterContainer = css31`
|
|
11529
|
+
var counterContainer = (bgColor) => css31`
|
|
11530
11530
|
align-items: center;
|
|
11531
11531
|
border-radius: var(--rounded-full);
|
|
11532
11532
|
border: 1px solid var(--gray-300);
|
|
11533
|
+
background: ${bgColor};
|
|
11533
11534
|
color: var(--brand-secondary-1);
|
|
11534
11535
|
display: inline-flex;
|
|
11535
11536
|
font-size: var(--fs-xxs);
|
|
@@ -11559,7 +11560,7 @@ var counterIcon = css31`
|
|
|
11559
11560
|
|
|
11560
11561
|
// src/components/Counter/Counter.tsx
|
|
11561
11562
|
import { jsx as jsx34, jsxs as jsxs19 } from "@emotion/react/jsx-runtime";
|
|
11562
|
-
var Counter = ({ count }) => {
|
|
11563
|
+
var Counter = ({ count, bgColor = "transparent" }) => {
|
|
11563
11564
|
if (typeof count === "undefined") {
|
|
11564
11565
|
return null;
|
|
11565
11566
|
}
|
|
@@ -11568,7 +11569,7 @@ var Counter = ({ count }) => {
|
|
|
11568
11569
|
/* @__PURE__ */ jsx34(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11569
11570
|
] }) : count;
|
|
11570
11571
|
const formatCount = count === 0 ? /* @__PURE__ */ jsx34("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11571
|
-
return /* @__PURE__ */ jsx34("div", { css: counterContainer, children: formatCount });
|
|
11572
|
+
return /* @__PURE__ */ jsx34("div", { css: counterContainer(bgColor), children: formatCount });
|
|
11572
11573
|
};
|
|
11573
11574
|
|
|
11574
11575
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
@@ -12605,7 +12606,7 @@ var InputKeywordSearch = ({
|
|
|
12605
12606
|
placeholder,
|
|
12606
12607
|
showLabel: false,
|
|
12607
12608
|
value,
|
|
12608
|
-
icon: value ? /* @__PURE__ */ jsx50("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ jsx50(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx50(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12609
|
+
icon: value ? /* @__PURE__ */ jsx50("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ jsx50(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ jsx50(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12609
12610
|
onChange: handleSearchTextChanged,
|
|
12610
12611
|
onKeyPress: preventSubmitOnField,
|
|
12611
12612
|
disabled,
|
|
@@ -13952,7 +13953,7 @@ var input2 = css60`
|
|
|
13952
13953
|
padding: var(--spacing-sm);
|
|
13953
13954
|
width: 100%;
|
|
13954
13955
|
position: relative;
|
|
13955
|
-
white-space:
|
|
13956
|
+
white-space: normal;
|
|
13956
13957
|
transition-property: background, border-color, color, box-shadow, border-radius;
|
|
13957
13958
|
transition-duration: var(--duration-fast);
|
|
13958
13959
|
transition-timing-function: var(--timing-ease-out);
|
|
@@ -14149,12 +14150,20 @@ var linkParameterBtn = css60`
|
|
|
14149
14150
|
font-weight: var(--fw-regular);
|
|
14150
14151
|
font-size: var(--fs-sm);
|
|
14151
14152
|
line-height: 1;
|
|
14153
|
+
`;
|
|
14154
|
+
var linkParameterControls = css60`
|
|
14152
14155
|
position: absolute;
|
|
14153
|
-
inset: 0
|
|
14156
|
+
inset: 0 0 0 auto;
|
|
14154
14157
|
padding: 0 var(--spacing-base);
|
|
14158
|
+
display: flex;
|
|
14159
|
+
flex-direction: row;
|
|
14160
|
+
justify-content: center;
|
|
14161
|
+
gap: var(--spacing-base);
|
|
14155
14162
|
`;
|
|
14156
|
-
var linkParameterInput = css60`
|
|
14157
|
-
padding-right: calc(
|
|
14163
|
+
var linkParameterInput = (withExternalLinkIcon) => css60`
|
|
14164
|
+
padding-right: calc(
|
|
14165
|
+
${withExternalLinkIcon ? "var(--spacing-2xl)" : "var(--spacing-xl)"} + var(--spacing-base)
|
|
14166
|
+
);
|
|
14158
14167
|
`;
|
|
14159
14168
|
var linkParameterIcon = css60`
|
|
14160
14169
|
align-items: center;
|
|
@@ -14572,7 +14581,7 @@ var ParameterInputInner = forwardRef10(
|
|
|
14572
14581
|
import { forwardRef as forwardRef11 } from "react";
|
|
14573
14582
|
import { jsx as jsx83, jsxs as jsxs55 } from "@emotion/react/jsx-runtime";
|
|
14574
14583
|
var ParameterLink = forwardRef11(
|
|
14575
|
-
({ buttonText = "Select
|
|
14584
|
+
({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14576
14585
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14577
14586
|
return /* @__PURE__ */ jsx83(
|
|
14578
14587
|
ParameterShell,
|
|
@@ -14602,7 +14611,7 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14602
14611
|
"input",
|
|
14603
14612
|
{
|
|
14604
14613
|
type: "text",
|
|
14605
|
-
css: [input2, linkParameterInput],
|
|
14614
|
+
css: [input2, linkParameterInput(!!externalLink)],
|
|
14606
14615
|
readOnly: Boolean(props.value),
|
|
14607
14616
|
id,
|
|
14608
14617
|
ref,
|
|
@@ -14610,28 +14619,30 @@ var ParameterLinkInner = forwardRef11(
|
|
|
14610
14619
|
...props
|
|
14611
14620
|
}
|
|
14612
14621
|
),
|
|
14613
|
-
/* @__PURE__ */
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14622
|
+
/* @__PURE__ */ jsxs55("div", { css: linkParameterControls, children: [
|
|
14623
|
+
/* @__PURE__ */ jsx83(
|
|
14624
|
+
"button",
|
|
14625
|
+
{
|
|
14626
|
+
type: "button",
|
|
14627
|
+
css: linkParameterBtn,
|
|
14628
|
+
disabled,
|
|
14629
|
+
onClick: onConnectLink,
|
|
14630
|
+
title: "edit current selection",
|
|
14631
|
+
children: "edit"
|
|
14632
|
+
}
|
|
14633
|
+
),
|
|
14634
|
+
externalLink ? /* @__PURE__ */ jsx83(
|
|
14635
|
+
"a",
|
|
14636
|
+
{
|
|
14637
|
+
href: externalLink,
|
|
14638
|
+
css: linkParameterIcon,
|
|
14639
|
+
title: "Open link in new tab",
|
|
14640
|
+
target: "_blank",
|
|
14641
|
+
rel: "noopener noreferrer",
|
|
14642
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14643
|
+
}
|
|
14644
|
+
) : null
|
|
14645
|
+
] })
|
|
14635
14646
|
] });
|
|
14636
14647
|
}
|
|
14637
14648
|
);
|
package/dist/index.d.ts
CHANGED
|
@@ -20249,6 +20249,8 @@ type ButtonProps = ButtonProps$1 & {
|
|
|
20249
20249
|
* @default "md"
|
|
20250
20250
|
* @deprecated size might no longer be used as we are trying to consolidate button designs */
|
|
20251
20251
|
size?: ButtonSizeProps;
|
|
20252
|
+
/** @deprecated rounded is no longer used */
|
|
20253
|
+
rounded?: boolean;
|
|
20252
20254
|
};
|
|
20253
20255
|
/**
|
|
20254
20256
|
* Uniform Button Component
|
|
@@ -20377,9 +20379,13 @@ declare const LoadingCardSkeleton: () => _emotion_react_types_jsx_namespace.Emot
|
|
|
20377
20379
|
type CounterProps = {
|
|
20378
20380
|
/** sets the count value, a 0 will show a dot instead of a number. Undefined will cause the counter to disappear. */
|
|
20379
20381
|
count: number | undefined;
|
|
20382
|
+
/** sets the background color
|
|
20383
|
+
* @default 'transparent'
|
|
20384
|
+
*/
|
|
20385
|
+
bgColor?: 'var(--white)' | 'var(--gray-50)' | 'transparent';
|
|
20380
20386
|
};
|
|
20381
20387
|
/** @example <Counter count={1} /> */
|
|
20382
|
-
declare const Counter: ({ count }: CounterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
20388
|
+
declare const Counter: ({ count, bgColor }: CounterProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
20383
20389
|
|
|
20384
20390
|
type TextAlignProps = 'left' | 'right' | 'center';
|
|
20385
20391
|
type BoxHeightProps = 'auto' | 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -21298,7 +21304,7 @@ type ParameterLabelProps = HTMLAttributes<HTMLLabelElement> & {
|
|
|
21298
21304
|
/** @example <ParameterLabel id="my-label">my label</ParameterLabel> */
|
|
21299
21305
|
declare const ParameterLabel: ({ id, asSpan, children, ...props }: ParameterLabelProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21300
21306
|
|
|
21301
|
-
type ParameterLinkProps =
|
|
21307
|
+
type ParameterLinkProps = CommonParameterInputProps & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
21302
21308
|
/** (optional) sets the button text when value is empty
|
|
21303
21309
|
* @default 'Configure link'
|
|
21304
21310
|
*/
|
|
@@ -21310,7 +21316,13 @@ type ParameterLinkProps = Omit<CommonParameterInputProps, 'menuItems' | 'labelLe
|
|
|
21310
21316
|
externalLink?: string;
|
|
21311
21317
|
};
|
|
21312
21318
|
/** @example <ParameterLink label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|
|
21313
|
-
declare const ParameterLink: React$1.ForwardRefExoticComponent<
|
|
21319
|
+
declare const ParameterLink: React$1.ForwardRefExoticComponent<CommonParameterProps & {
|
|
21320
|
+
caption?: string | undefined;
|
|
21321
|
+
menuItems?: React$1.ReactNode;
|
|
21322
|
+
errorTestId?: string | undefined;
|
|
21323
|
+
captionTestId?: string | undefined;
|
|
21324
|
+
title?: string | undefined;
|
|
21325
|
+
} & React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
21314
21326
|
/** (optional) sets the button text when value is empty
|
|
21315
21327
|
* @default 'Configure link'
|
|
21316
21328
|
*/
|
package/dist/index.js
CHANGED
|
@@ -11464,8 +11464,8 @@ var Callout = ({ type = "info", compact = false, title, children, className }) =
|
|
|
11464
11464
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { css: calloutInner, children: [
|
|
11465
11465
|
compact ? null : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: calloutIconWrap, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon2, { css: [calloutIcon, calloutTypeData.iconColor] }) }),
|
|
11466
11466
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { css: [calloutBody, compact ? calloutBodyCompact : void 0], children: [
|
|
11467
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: [calloutTitle], children: title }) : null,
|
|
11468
|
-
children ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: [calloutTypeData.descriptionColor], children }) : null
|
|
11467
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: [calloutTitle], "data-test-id": "callout-title", children: title }) : null,
|
|
11468
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { css: [calloutTypeData.descriptionColor], "data-test-id": "callout-description", children }) : null
|
|
11469
11469
|
] })
|
|
11470
11470
|
] })
|
|
11471
11471
|
}
|
|
@@ -11594,40 +11594,9 @@ var CardContainer2 = ({
|
|
|
11594
11594
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11595
11595
|
var import_cg8 = require("react-icons/cg");
|
|
11596
11596
|
|
|
11597
|
-
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11598
|
-
var import_react34 = require("@emotion/react");
|
|
11599
|
-
var LoadingCardSkeleton = import_react34.css`
|
|
11600
|
-
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11601
|
-
color: var(--gray-400);
|
|
11602
|
-
border-radius: var(--rounded-base);
|
|
11603
|
-
padding: var(--spacing-md);
|
|
11604
|
-
min-height: 160px;
|
|
11605
|
-
position: relative;
|
|
11606
|
-
`;
|
|
11607
|
-
var LoadingText = import_react34.css`
|
|
11608
|
-
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11609
|
-
border-radius: var(--rounded-base);
|
|
11610
|
-
background: var(--gray-300);
|
|
11611
|
-
display: block;
|
|
11612
|
-
`;
|
|
11613
|
-
var LoadingTitle = import_react34.css`
|
|
11614
|
-
width: clamp(200px, 100vw, 60%);
|
|
11615
|
-
height: var(--spacing-md);
|
|
11616
|
-
`;
|
|
11617
|
-
var LoadingTimeStamp = import_react34.css`
|
|
11618
|
-
width: clamp(200px, 100vw, 30%);
|
|
11619
|
-
height: var(--spacing-sm);
|
|
11620
|
-
`;
|
|
11621
|
-
var LoadingMenuIcon = import_react34.css`
|
|
11622
|
-
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11623
|
-
position: absolute;
|
|
11624
|
-
top: var(--spacing-md);
|
|
11625
|
-
right: var(--spacing-md);
|
|
11626
|
-
`;
|
|
11627
|
-
|
|
11628
11597
|
// src/components/Layout/styles/Container.styles.ts
|
|
11629
|
-
var
|
|
11630
|
-
var Container = ({ backgroundColor, border, rounded, padding, margin }) =>
|
|
11598
|
+
var import_react34 = require("@emotion/react");
|
|
11599
|
+
var Container = ({ backgroundColor, border, rounded, padding, margin }) => import_react34.css`
|
|
11631
11600
|
background: var(--${backgroundColor});
|
|
11632
11601
|
${border ? "border: 1px solid var(--gray-300)" : void 0};
|
|
11633
11602
|
${rounded ? `border-radius: var(--${rounded})` : void 0};
|
|
@@ -11665,11 +11634,11 @@ var Container2 = ({
|
|
|
11665
11634
|
};
|
|
11666
11635
|
|
|
11667
11636
|
// src/components/Layout/styles/TwoColumnLayout.styles.ts
|
|
11668
|
-
var
|
|
11669
|
-
var TwoColumnLayoutContainer = (bgColor) =>
|
|
11637
|
+
var import_react35 = require("@emotion/react");
|
|
11638
|
+
var TwoColumnLayoutContainer = (bgColor) => import_react35.css`
|
|
11670
11639
|
background: ${bgColor};
|
|
11671
11640
|
`;
|
|
11672
|
-
var TwoColumnLayoutInner = (invertLayout) =>
|
|
11641
|
+
var TwoColumnLayoutInner = (invertLayout) => import_react35.css`
|
|
11673
11642
|
display: grid;
|
|
11674
11643
|
max-width: var(--site-width);
|
|
11675
11644
|
margin-inline: auto;
|
|
@@ -11685,8 +11654,8 @@ var TwoColumnLayoutInner = (invertLayout) => import_react36.css`
|
|
|
11685
11654
|
}`}
|
|
11686
11655
|
}
|
|
11687
11656
|
`;
|
|
11688
|
-
var TwoColumnLayoutMain =
|
|
11689
|
-
var TwoColumnLayoutSupporting =
|
|
11657
|
+
var TwoColumnLayoutMain = import_react35.css``;
|
|
11658
|
+
var TwoColumnLayoutSupporting = import_react35.css`
|
|
11690
11659
|
display: flex;
|
|
11691
11660
|
flex-direction: column;
|
|
11692
11661
|
`;
|
|
@@ -11706,8 +11675,8 @@ var TwoColumnLayout = ({
|
|
|
11706
11675
|
};
|
|
11707
11676
|
|
|
11708
11677
|
// src/components/Layout/styles/VerticalRhythm.styles.ts
|
|
11709
|
-
var
|
|
11710
|
-
var VerticalRhythmContainer = (size) =>
|
|
11678
|
+
var import_react36 = require("@emotion/react");
|
|
11679
|
+
var VerticalRhythmContainer = (size) => import_react36.css`
|
|
11711
11680
|
display: flex;
|
|
11712
11681
|
flex-direction: column;
|
|
11713
11682
|
gap: var(--spacing-${size});
|
|
@@ -11720,6 +11689,37 @@ var VerticalRhythm = ({ tag = "div", gap = "base", children, ...props }) => {
|
|
|
11720
11689
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Tag, { css: VerticalRhythmContainer(gap), ...props, children });
|
|
11721
11690
|
};
|
|
11722
11691
|
|
|
11692
|
+
// src/components/Card/LoadingCardSkeleton.styles.ts
|
|
11693
|
+
var import_react37 = require("@emotion/react");
|
|
11694
|
+
var LoadingCardSkeleton = import_react37.css`
|
|
11695
|
+
animation: ${skeletonLoading} 1s linear infinite alternate;
|
|
11696
|
+
color: var(--gray-400);
|
|
11697
|
+
border-radius: var(--rounded-base);
|
|
11698
|
+
padding: var(--spacing-md);
|
|
11699
|
+
min-height: 160px;
|
|
11700
|
+
position: relative;
|
|
11701
|
+
`;
|
|
11702
|
+
var LoadingText = import_react37.css`
|
|
11703
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11704
|
+
border-radius: var(--rounded-base);
|
|
11705
|
+
background: var(--gray-300);
|
|
11706
|
+
display: block;
|
|
11707
|
+
`;
|
|
11708
|
+
var LoadingTitle = import_react37.css`
|
|
11709
|
+
width: clamp(200px, 100vw, 60%);
|
|
11710
|
+
height: var(--spacing-md);
|
|
11711
|
+
`;
|
|
11712
|
+
var LoadingTimeStamp = import_react37.css`
|
|
11713
|
+
width: clamp(200px, 100vw, 30%);
|
|
11714
|
+
height: var(--spacing-sm);
|
|
11715
|
+
`;
|
|
11716
|
+
var LoadingMenuIcon = import_react37.css`
|
|
11717
|
+
animation: ${fadeIn} 1s linear infinite alternate;
|
|
11718
|
+
position: absolute;
|
|
11719
|
+
top: var(--spacing-md);
|
|
11720
|
+
right: var(--spacing-md);
|
|
11721
|
+
`;
|
|
11722
|
+
|
|
11723
11723
|
// src/components/Card/LoadingCardSkeleton.tsx
|
|
11724
11724
|
var import_jsx_runtime32 = require("@emotion/react/jsx-runtime");
|
|
11725
11725
|
var LoadingCardSkeleton2 = () => {
|
|
@@ -11732,10 +11732,11 @@ var LoadingCardSkeleton2 = () => {
|
|
|
11732
11732
|
|
|
11733
11733
|
// src/components/Counter/Counter.styles.ts
|
|
11734
11734
|
var import_react38 = require("@emotion/react");
|
|
11735
|
-
var counterContainer = import_react38.css`
|
|
11735
|
+
var counterContainer = (bgColor) => import_react38.css`
|
|
11736
11736
|
align-items: center;
|
|
11737
11737
|
border-radius: var(--rounded-full);
|
|
11738
11738
|
border: 1px solid var(--gray-300);
|
|
11739
|
+
background: ${bgColor};
|
|
11739
11740
|
color: var(--brand-secondary-1);
|
|
11740
11741
|
display: inline-flex;
|
|
11741
11742
|
font-size: var(--fs-xxs);
|
|
@@ -11765,7 +11766,7 @@ var counterIcon = import_react38.css`
|
|
|
11765
11766
|
|
|
11766
11767
|
// src/components/Counter/Counter.tsx
|
|
11767
11768
|
var import_jsx_runtime33 = require("@emotion/react/jsx-runtime");
|
|
11768
|
-
var Counter = ({ count }) => {
|
|
11769
|
+
var Counter = ({ count, bgColor = "transparent" }) => {
|
|
11769
11770
|
if (typeof count === "undefined") {
|
|
11770
11771
|
return null;
|
|
11771
11772
|
}
|
|
@@ -11774,7 +11775,7 @@ var Counter = ({ count }) => {
|
|
|
11774
11775
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { icon: "math-plus", iconColor: "currentColor", size: "0.5rem", css: counterIcon })
|
|
11775
11776
|
] }) : count;
|
|
11776
11777
|
const formatCount = count === 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { css: counterZeroValue, title: `${count}` }) : isTripleDigits;
|
|
11777
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { css: counterContainer, children: formatCount });
|
|
11778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { css: counterContainer(bgColor), children: formatCount });
|
|
11778
11779
|
};
|
|
11779
11780
|
|
|
11780
11781
|
// src/components/DashedBox/DashedBox.styles.ts
|
|
@@ -12811,7 +12812,7 @@ var InputKeywordSearch = ({
|
|
|
12811
12812
|
placeholder,
|
|
12812
12813
|
showLabel: false,
|
|
12813
12814
|
value,
|
|
12814
|
-
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12815
|
+
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("button", { css: inputSearchCloseBtn, onClick: onClear, type: "button", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "close", iconColor: "red", size: "1rem" }) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: "search", iconColor: "gray", size: "1rem" }),
|
|
12815
12816
|
onChange: handleSearchTextChanged,
|
|
12816
12817
|
onKeyPress: preventSubmitOnField,
|
|
12817
12818
|
disabled,
|
|
@@ -14153,7 +14154,7 @@ var input2 = import_react77.css`
|
|
|
14153
14154
|
padding: var(--spacing-sm);
|
|
14154
14155
|
width: 100%;
|
|
14155
14156
|
position: relative;
|
|
14156
|
-
white-space:
|
|
14157
|
+
white-space: normal;
|
|
14157
14158
|
transition-property: background, border-color, color, box-shadow, border-radius;
|
|
14158
14159
|
transition-duration: var(--duration-fast);
|
|
14159
14160
|
transition-timing-function: var(--timing-ease-out);
|
|
@@ -14350,12 +14351,20 @@ var linkParameterBtn = import_react77.css`
|
|
|
14350
14351
|
font-weight: var(--fw-regular);
|
|
14351
14352
|
font-size: var(--fs-sm);
|
|
14352
14353
|
line-height: 1;
|
|
14354
|
+
`;
|
|
14355
|
+
var linkParameterControls = import_react77.css`
|
|
14353
14356
|
position: absolute;
|
|
14354
|
-
inset: 0
|
|
14357
|
+
inset: 0 0 0 auto;
|
|
14355
14358
|
padding: 0 var(--spacing-base);
|
|
14359
|
+
display: flex;
|
|
14360
|
+
flex-direction: row;
|
|
14361
|
+
justify-content: center;
|
|
14362
|
+
gap: var(--spacing-base);
|
|
14356
14363
|
`;
|
|
14357
|
-
var linkParameterInput = import_react77.css`
|
|
14358
|
-
padding-right: calc(
|
|
14364
|
+
var linkParameterInput = (withExternalLinkIcon) => import_react77.css`
|
|
14365
|
+
padding-right: calc(
|
|
14366
|
+
${withExternalLinkIcon ? "var(--spacing-2xl)" : "var(--spacing-xl)"} + var(--spacing-base)
|
|
14367
|
+
);
|
|
14359
14368
|
`;
|
|
14360
14369
|
var linkParameterIcon = import_react77.css`
|
|
14361
14370
|
align-items: center;
|
|
@@ -14773,7 +14782,7 @@ var ParameterInputInner = (0, import_react85.forwardRef)(
|
|
|
14773
14782
|
var import_react86 = require("react");
|
|
14774
14783
|
var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
|
|
14775
14784
|
var ParameterLink = (0, import_react86.forwardRef)(
|
|
14776
|
-
({ buttonText = "Select
|
|
14785
|
+
({ buttonText = "Select link", disabled, onConnectLink, externalLink, ...props }, ref) => {
|
|
14777
14786
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
14778
14787
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
14779
14788
|
ParameterShell,
|
|
@@ -14803,7 +14812,7 @@ var ParameterLinkInner = (0, import_react86.forwardRef)(
|
|
|
14803
14812
|
"input",
|
|
14804
14813
|
{
|
|
14805
14814
|
type: "text",
|
|
14806
|
-
css: [input2, linkParameterInput],
|
|
14815
|
+
css: [input2, linkParameterInput(!!externalLink)],
|
|
14807
14816
|
readOnly: Boolean(props.value),
|
|
14808
14817
|
id,
|
|
14809
14818
|
ref,
|
|
@@ -14811,28 +14820,30 @@ var ParameterLinkInner = (0, import_react86.forwardRef)(
|
|
|
14811
14820
|
...props
|
|
14812
14821
|
}
|
|
14813
14822
|
),
|
|
14814
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.
|
|
14815
|
-
|
|
14816
|
-
|
|
14817
|
-
|
|
14818
|
-
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14823
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { css: linkParameterControls, children: [
|
|
14824
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
14825
|
+
"button",
|
|
14826
|
+
{
|
|
14827
|
+
type: "button",
|
|
14828
|
+
css: linkParameterBtn,
|
|
14829
|
+
disabled,
|
|
14830
|
+
onClick: onConnectLink,
|
|
14831
|
+
title: "edit current selection",
|
|
14832
|
+
children: "edit"
|
|
14833
|
+
}
|
|
14834
|
+
),
|
|
14835
|
+
externalLink ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
14836
|
+
"a",
|
|
14837
|
+
{
|
|
14838
|
+
href: externalLink,
|
|
14839
|
+
css: linkParameterIcon,
|
|
14840
|
+
title: "Open link in new tab",
|
|
14841
|
+
target: "_blank",
|
|
14842
|
+
rel: "noopener noreferrer",
|
|
14843
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Icon, { icon: "arrows-expand-up-right", iconColor: "currentColor", size: "1rem" })
|
|
14844
|
+
}
|
|
14845
|
+
) : null
|
|
14846
|
+
] })
|
|
14836
14847
|
] });
|
|
14837
14848
|
}
|
|
14838
14849
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.38.2-alpha.6+d4938f167",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@storybook/addon-docs": "6.5.16",
|
|
23
23
|
"@storybook/client-api": "6.5.16",
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
|
-
"@types/react": "18.0.
|
|
25
|
+
"@types/react": "18.0.35",
|
|
26
26
|
"autoprefixer": "10.4.14",
|
|
27
27
|
"hygen": "6.2.11",
|
|
28
28
|
"postcss": "8.4.21",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"lottie-react": "^2.3.1",
|
|
37
37
|
"monaco-editor": "0.37.1",
|
|
38
38
|
"param-case": "3.0.4",
|
|
39
|
-
"react-hotkeys-hook": "4.
|
|
39
|
+
"react-hotkeys-hook": "4.4.0",
|
|
40
40
|
"react-icons": "4.8.0",
|
|
41
41
|
"react-paginate": "8.1.5",
|
|
42
42
|
"react-select": "5.7.2",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d4938f167d196bbd523e6cdd031f56fab4ceebf6"
|
|
58
58
|
}
|