@uniformdev/design-system 18.22.0 → 18.23.1-alpha.34

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/index.js CHANGED
@@ -109,6 +109,7 @@ __export(src_exports, {
109
109
  ParameterTextareaInner: () => ParameterTextareaInner,
110
110
  ParameterToggle: () => ParameterToggle,
111
111
  ParameterToggleInner: () => ParameterToggleInner,
112
+ Popover: () => Popover2,
112
113
  ResolveIcon: () => ResolveIcon,
113
114
  ScrollableList: () => ScrollableList,
114
115
  ScrollableListInputItem: () => ScrollableListInputItem,
@@ -8388,19 +8389,19 @@ var UniformBadge = ({
8388
8389
  css: [SVG, theme === "dark" ? SVGDark : SVGLight],
8389
8390
  ...props,
8390
8391
  children: [
8391
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#83C6E1" }),
8392
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M28.998 0 0 16.744V50.23l28.998-16.744 29.004-16.743L28.998 0Z", fill: "#7BB3FF" }),
8392
8393
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8393
8394
  "path",
8394
8395
  {
8395
8396
  d: "M28.998 66.974V33.487L0 50.231v33.487l28.998 16.744 29.004-16.744V50.23L28.998 66.974Z",
8396
- fill: "#438FD5"
8397
+ fill: "#498DFF"
8397
8398
  }
8398
8399
  ),
8399
8400
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
8400
8401
  "path",
8401
8402
  {
8402
8403
  d: "M58.002 16.744 28.998 33.487l29.004 16.744v33.487L87 66.975V33.487L58.002 16.744Z",
8403
- fill: "#F4220B"
8404
+ fill: "#E61408"
8404
8405
  }
8405
8406
  )
8406
8407
  ]
@@ -8425,15 +8426,15 @@ var UniformLogo = ({
8425
8426
  css: [SVG, theme === "dark" ? SVGDark : SVGLight],
8426
8427
  ...props,
8427
8428
  children: [
8428
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#83C6E1" }),
8429
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M11.249 0 0 6.495v12.99l11.249-6.495L22.5 6.495 11.25 0Z", fill: "#7BB3FF" }),
8429
8430
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8430
8431
  "path",
8431
8432
  {
8432
8433
  d: "M11.249 25.98V12.99L0 19.486v12.99l11.249 6.495L22.5 32.476v-12.99L11.25 25.98Z",
8433
- fill: "#438FD5"
8434
+ fill: "#498DFF"
8434
8435
  }
8435
8436
  ),
8436
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z", fill: "#F4220B" }),
8437
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "m22.5 6.495-11.25 6.496 11.25 6.495v12.99l11.25-6.495V12.99L22.5 6.495Z", fill: "#E61408" }),
8437
8438
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
8438
8439
  "path",
8439
8440
  {
@@ -9278,7 +9279,7 @@ var summary = import_react33.css`
9278
9279
  display: grid;
9279
9280
  grid-template-columns: 1.25rem 1fr;
9280
9281
  gap: var(--spacing-sm);
9281
- padding: var(--spacing-sm);
9282
+ padding: var(--spacing-sm) 0;
9282
9283
 
9283
9284
  // hides the native arrow icon
9284
9285
  list-style: none;
@@ -11362,6 +11363,11 @@ var inputIconBtn = import_react66.css`
11362
11363
  background: var(--brand-secondary-3);
11363
11364
  color: var(--white);
11364
11365
  }
11366
+
11367
+ &[aria-disabled='true'] {
11368
+ background: none;
11369
+ color: currentColor;
11370
+ }
11365
11371
  `;
11366
11372
 
11367
11373
  // src/components/ParameterInputs/ConnectToDataElementButton.tsx
@@ -11375,17 +11381,27 @@ var ConnectToDataElementButton = ({
11375
11381
  ...props
11376
11382
  }) => {
11377
11383
  const title = isLocked ? "Read-only pattern parameter" : isBound ? "Connected to external content. Click to edit" : "Click to connect to external content";
11378
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("button", { css: inputIconBtn, type: "button", "aria-pressed": isBound, ...props, disabled: isLocked, children: [
11379
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
11380
- Icon,
11381
- {
11382
- icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
11383
- iconColor: iconColor ? iconColor : "currentColor",
11384
- size: "1rem"
11385
- }
11386
- ),
11387
- children
11388
- ] }) });
11384
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Tooltip, { title, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
11385
+ "button",
11386
+ {
11387
+ css: inputIconBtn,
11388
+ type: "button",
11389
+ "aria-pressed": isBound,
11390
+ "aria-disabled": isLocked,
11391
+ ...props,
11392
+ children: [
11393
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
11394
+ Icon,
11395
+ {
11396
+ icon: isLocked ? "lock" : icon ? icon : "arrows-expand-down-right",
11397
+ iconColor: iconColor ? iconColor : "currentColor",
11398
+ size: "1rem"
11399
+ }
11400
+ ),
11401
+ children
11402
+ ]
11403
+ }
11404
+ ) });
11389
11405
  };
11390
11406
 
11391
11407
  // src/components/ParameterInputs/hooks/ParameterShellContext.tsx
@@ -11597,11 +11613,11 @@ var imageWrapper = import_react68.css`
11597
11613
  `;
11598
11614
  var img = import_react68.css`
11599
11615
  animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
11600
- aspect-ratio: 1 / 1;
11616
+ object-fit: contain;
11601
11617
  max-width: 100%;
11602
11618
  height: auto;
11603
11619
  opacity: var(--opacity-0);
11604
- margin-top: var(--spacing-sm);
11620
+ margin: var(--spacing-sm) auto 0;
11605
11621
  `;
11606
11622
  var dataConnectButton = import_react68.css`
11607
11623
  align-items: center;
@@ -11719,7 +11735,7 @@ var ParameterDrawerHeaderTitle = import_react69.css`
11719
11735
  text-overflow: ellipsis;
11720
11736
  white-space: nowrap;
11721
11737
  overflow: hidden;
11722
- max-width: 16ch;
11738
+ max-width: 22ch;
11723
11739
  `;
11724
11740
 
11725
11741
  // src/components/ParameterInputs/ParameterDrawerHeader.tsx
@@ -11754,6 +11770,7 @@ var fieldsetLegend2 = import_react70.css`
11754
11770
  display: block;
11755
11771
  font-weight: var(--fw-medium);
11756
11772
  margin-bottom: var(--spacing-sm);
11773
+ width: 100%;
11757
11774
  `;
11758
11775
 
11759
11776
  // src/components/ParameterInputs/ParameterGroup.tsx
@@ -11847,7 +11864,8 @@ var extractParameterProps = (props) => {
11847
11864
  menuItems,
11848
11865
  onManuallySetErrorMessage,
11849
11866
  title,
11850
- hasOverridingParams,
11867
+ hasOverriddenValue,
11868
+ onResetOverriddenValue,
11851
11869
  ...innerProps
11852
11870
  } = props;
11853
11871
  return {
@@ -11863,7 +11881,8 @@ var extractParameterProps = (props) => {
11863
11881
  menuItems,
11864
11882
  onManuallySetErrorMessage,
11865
11883
  title,
11866
- hasOverridingParams
11884
+ hasOverriddenValue,
11885
+ onResetOverriddenValue
11867
11886
  },
11868
11887
  innerProps
11869
11888
  };
@@ -11878,7 +11897,8 @@ var ParameterShell = ({
11878
11897
  errorTestId,
11879
11898
  captionTestId,
11880
11899
  menuItems,
11881
- hasOverridingParams,
11900
+ hasOverriddenValue,
11901
+ onResetOverriddenValue,
11882
11902
  title,
11883
11903
  children,
11884
11904
  ...props
@@ -11907,10 +11927,10 @@ var ParameterShell = ({
11907
11927
  errorMessage: errorMessaging,
11908
11928
  onManuallySetErrorMessage: (message) => setErrorMessage(message)
11909
11929
  },
11910
- children: children ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { css: emptyParameterShell, children: [
11930
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(ParameterShellPlaceholder, { children: [
11911
11931
  children,
11912
- hasOverridingParams ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ParameterOverrideMarker, {}) : null
11913
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ParameterShellPlaceholder, { hasOverridingParams: true })
11932
+ hasOverriddenValue && onResetOverriddenValue ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ParameterOverrideMarker, { onClick: onResetOverriddenValue }) : null
11933
+ ] })
11914
11934
  }
11915
11935
  )
11916
11936
  ] }),
@@ -11918,13 +11938,10 @@ var ParameterShell = ({
11918
11938
  errorMessaging ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ErrorMessage, { message: errorMessaging, testId: errorTestId }) : null
11919
11939
  ] });
11920
11940
  };
11921
- var ParameterShellPlaceholder = ({ hasOverridingParams }) => {
11922
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { role: "note", css: emptyParameterShell, children: [
11923
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { css: emptyParameterShellText, children: "Use component swap to replace with a parameter slot component" }),
11924
- hasOverridingParams ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ParameterOverrideMarker, {}) : null
11925
- ] });
11941
+ var ParameterShellPlaceholder = ({ children }) => {
11942
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { css: emptyParameterShell, children });
11926
11943
  };
11927
- var ParameterOverrideMarker = () => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { role: "presentation", css: overrideMarker }) });
11944
+ var ParameterOverrideMarker = (props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Tooltip, { title: "The default value has been overridden", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("button", { type: "button", css: overrideMarker, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { hidden: true, children: "reset overridden value to default" }) }) });
11928
11945
 
11929
11946
  // src/components/ParameterInputs/ParameterImage.tsx
11930
11947
  var import_jsx_runtime71 = require("@emotion/react/jsx-runtime");
@@ -11964,29 +11981,25 @@ var BrokenImage = ({ ...props }) => {
11964
11981
  };
11965
11982
  var ParameterImageInner = (0, import_react75.forwardRef)(
11966
11983
  ({ ...props }, ref) => {
11984
+ const { value } = props;
11967
11985
  const { id, label, hiddenLabel, errorMessage, onManuallySetErrorMessage } = useParameterShell();
11968
- const [imageSrc, setImageSrc] = (0, import_react75.useState)();
11969
11986
  const [loading, setLoading] = (0, import_react75.useState)(false);
11970
- const deferredValue = (0, import_react75.useDeferredValue)(imageSrc);
11987
+ const deferredValue = (0, import_react75.useDeferredValue)(value);
11971
11988
  const errorText = "The text you provided is not a valid URL";
11972
- const updateImageSrc = (0, import_react75.useCallback)(
11973
- (e) => {
11974
- let message = void 0;
11975
- try {
11976
- if (e.currentTarget.value !== "") {
11977
- new URL(e.currentTarget.value);
11978
- setImageSrc(e.currentTarget.value);
11979
- }
11980
- message = void 0;
11981
- } catch (e2) {
11982
- message = errorText;
11983
- }
11984
- if (onManuallySetErrorMessage) {
11985
- onManuallySetErrorMessage(message);
11989
+ const updateImageSrc = (0, import_react75.useCallback)(() => {
11990
+ let message = void 0;
11991
+ try {
11992
+ if (value !== "") {
11993
+ new URL(value);
11986
11994
  }
11987
- },
11988
- [onManuallySetErrorMessage]
11989
- );
11995
+ message = void 0;
11996
+ } catch (e) {
11997
+ message = errorText;
11998
+ }
11999
+ if (onManuallySetErrorMessage) {
12000
+ onManuallySetErrorMessage(message);
12001
+ }
12002
+ }, [onManuallySetErrorMessage, value]);
11990
12003
  const handleLoadEvent = () => {
11991
12004
  if (deferredValue) {
11992
12005
  setLoading(true);
@@ -12001,6 +12014,9 @@ var ParameterImageInner = (0, import_react75.forwardRef)(
12001
12014
  onManuallySetErrorMessage(errorText);
12002
12015
  }
12003
12016
  };
12017
+ (0, import_react75.useEffect)(() => {
12018
+ updateImageSrc();
12019
+ }, [value]);
12004
12020
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
12005
12021
  /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
12006
12022
  "input",
@@ -12011,7 +12027,6 @@ var ParameterImageInner = (0, import_react75.forwardRef)(
12011
12027
  ref,
12012
12028
  "aria-label": hiddenLabel ? label : void 0,
12013
12029
  autoComplete: "off",
12014
- onChange: (e) => updateImageSrc(e),
12015
12030
  ...props
12016
12031
  }
12017
12032
  ),
@@ -12023,8 +12038,6 @@ var ParameterImageInner = (0, import_react75.forwardRef)(
12023
12038
  css: img,
12024
12039
  onLoad: handleLoadEvent,
12025
12040
  onError: handleErrorEvent,
12026
- width: 214,
12027
- height: 214,
12028
12041
  loading: "lazy"
12029
12042
  }
12030
12043
  ) : null,
@@ -12325,19 +12338,61 @@ var ParameterToggleInner = (0, import_react81.forwardRef)(
12325
12338
  }
12326
12339
  );
12327
12340
 
12328
- // src/components/Skeleton/Skeleton.styles.ts
12341
+ // src/components/Popover/Popover.tsx
12342
+ var import_Popover = require("reakit/Popover");
12343
+ var import_Portal2 = require("reakit/Portal");
12344
+
12345
+ // src/components/Popover/Popover.styles.ts
12329
12346
  var import_react82 = require("@emotion/react");
12330
- var lightFadingOut = import_react82.keyframes`
12347
+ var PopoverBtn = import_react82.css`
12348
+ border: none;
12349
+ background: none;
12350
+ padding: 0;
12351
+ `;
12352
+ var Popover = import_react82.css`
12353
+ border-left: var(--spacing-xs) solid var(--brand-secondary-3);
12354
+ border-radius: var(--rounded-base);
12355
+ box-shadow: var(--shadow-base);
12356
+ background: var(--white);
12357
+ display: grid;
12358
+ gap: var(--spacing-sm);
12359
+ padding: var(--spacing-sm);
12360
+ font-size: var(--fs-sm);
12361
+ max-width: 220px;
12362
+ `;
12363
+
12364
+ // src/components/Popover/Popover.tsx
12365
+ var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
12366
+ var Popover2 = ({
12367
+ iconColor = "green",
12368
+ buttonText,
12369
+ ariaLabel,
12370
+ placement = "bottom",
12371
+ children
12372
+ }) => {
12373
+ const popover = (0, import_Popover.usePopoverState)({ placement });
12374
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
12375
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_Popover.PopoverDisclosure, { ...popover, css: PopoverBtn, title: buttonText, children: [
12376
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Icon, { icon: "info", iconColor, size: "1rem" }),
12377
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { hidden: true, children: buttonText })
12378
+ ] }),
12379
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_Portal2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_Popover.Popover, { css: Popover, ...popover, "aria-label": ariaLabel, children }) })
12380
+ ] });
12381
+ };
12382
+
12383
+ // src/components/Skeleton/Skeleton.styles.ts
12384
+ var import_react83 = require("@emotion/react");
12385
+ var lightFadingOut = import_react83.keyframes`
12331
12386
  from { opacity: 0.1; }
12332
12387
  to { opacity: 0.025; }
12333
12388
  `;
12334
- var skeletonStyles = import_react82.css`
12389
+ var skeletonStyles = import_react83.css`
12335
12390
  animation: ${lightFadingOut} 1s ease-out infinite alternate;
12336
12391
  background-color: var(--gray-900);
12337
12392
  `;
12338
12393
 
12339
12394
  // src/components/Skeleton/Skeleton.tsx
12340
- var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
12395
+ var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
12341
12396
  var Skeleton = ({
12342
12397
  width = "100%",
12343
12398
  height = "1.25rem",
@@ -12345,7 +12400,7 @@ var Skeleton = ({
12345
12400
  circle = false,
12346
12401
  children,
12347
12402
  ...otherProps
12348
- }) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
12403
+ }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
12349
12404
  "div",
12350
12405
  {
12351
12406
  css: [
@@ -12368,8 +12423,8 @@ var Skeleton = ({
12368
12423
  var React15 = __toESM(require("react"));
12369
12424
 
12370
12425
  // src/components/Switch/Switch.styles.ts
12371
- var import_react83 = require("@emotion/react");
12372
- var SwitchInputContainer = import_react83.css`
12426
+ var import_react84 = require("@emotion/react");
12427
+ var SwitchInputContainer = import_react84.css`
12373
12428
  cursor: pointer;
12374
12429
  display: inline-block;
12375
12430
  position: relative;
@@ -12378,7 +12433,7 @@ var SwitchInputContainer = import_react83.css`
12378
12433
  vertical-align: middle;
12379
12434
  user-select: none;
12380
12435
  `;
12381
- var SwitchInput = import_react83.css`
12436
+ var SwitchInput = import_react84.css`
12382
12437
  appearance: none;
12383
12438
  border-radius: var(--rounded-full);
12384
12439
  background-color: var(--white);
@@ -12416,7 +12471,7 @@ var SwitchInput = import_react83.css`
12416
12471
  cursor: not-allowed;
12417
12472
  }
12418
12473
  `;
12419
- var SwitchInputDisabled = import_react83.css`
12474
+ var SwitchInputDisabled = import_react84.css`
12420
12475
  opacity: var(--opacity-50);
12421
12476
  cursor: not-allowed;
12422
12477
 
@@ -12424,7 +12479,7 @@ var SwitchInputDisabled = import_react83.css`
12424
12479
  cursor: not-allowed;
12425
12480
  }
12426
12481
  `;
12427
- var SwitchInputLabel = import_react83.css`
12482
+ var SwitchInputLabel = import_react84.css`
12428
12483
  align-items: center;
12429
12484
  color: var(--brand-secondary-1);
12430
12485
  display: inline-flex;
@@ -12446,26 +12501,26 @@ var SwitchInputLabel = import_react83.css`
12446
12501
  top: 0;
12447
12502
  }
12448
12503
  `;
12449
- var SwitchText = import_react83.css`
12504
+ var SwitchText = import_react84.css`
12450
12505
  color: var(--gray-500);
12451
12506
  font-size: var(--fs-sm);
12452
12507
  padding-inline: var(--spacing-2xl) 0;
12453
12508
  `;
12454
12509
 
12455
12510
  // src/components/Switch/Switch.tsx
12456
- var import_jsx_runtime80 = require("@emotion/react/jsx-runtime");
12511
+ var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
12457
12512
  var Switch = React15.forwardRef(
12458
12513
  ({ label, infoText, toggleText, children, ...inputProps }, ref) => {
12459
12514
  let additionalText = infoText;
12460
12515
  if (infoText && toggleText) {
12461
12516
  additionalText = inputProps.checked ? toggleText : infoText;
12462
12517
  }
12463
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
12464
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
12465
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
12466
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { css: SwitchInputLabel, children: label })
12518
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
12519
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
12520
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
12521
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { css: SwitchInputLabel, children: label })
12467
12522
  ] }),
12468
- additionalText ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { css: SwitchText, children: additionalText }) : null,
12523
+ additionalText ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { css: SwitchText, children: additionalText }) : null,
12469
12524
  children
12470
12525
  ] });
12471
12526
  }
@@ -12475,74 +12530,74 @@ var Switch = React15.forwardRef(
12475
12530
  var React16 = __toESM(require("react"));
12476
12531
 
12477
12532
  // src/components/Table/Table.styles.ts
12478
- var import_react84 = require("@emotion/react");
12479
- var table = import_react84.css`
12533
+ var import_react85 = require("@emotion/react");
12534
+ var table = import_react85.css`
12480
12535
  border-bottom: 1px solid var(--gray-400);
12481
12536
  border-collapse: collapse;
12482
12537
  min-width: 100%;
12483
12538
  table-layout: auto;
12484
12539
  `;
12485
- var tableHead = import_react84.css`
12540
+ var tableHead = import_react85.css`
12486
12541
  background: var(--gray-100);
12487
12542
  color: var(--brand-secondary-1);
12488
12543
  text-align: left;
12489
12544
  `;
12490
- var tableRow = import_react84.css`
12545
+ var tableRow = import_react85.css`
12491
12546
  border-bottom: 1px solid var(--gray-200);
12492
12547
  `;
12493
- var tableCellHead = import_react84.css`
12548
+ var tableCellHead = import_react85.css`
12494
12549
  font-size: var(--fs-sm);
12495
12550
  padding: var(--spacing-base) var(--spacing-md);
12496
12551
  text-transform: uppercase;
12497
12552
  font-weight: var(--fw-bold);
12498
12553
  `;
12499
- var tableCellData = import_react84.css`
12554
+ var tableCellData = import_react85.css`
12500
12555
  padding: var(--spacing-base) var(--spacing-md);
12501
12556
  `;
12502
12557
 
12503
12558
  // src/components/Table/Table.tsx
12504
- var import_jsx_runtime81 = require("@emotion/react/jsx-runtime");
12559
+ var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
12505
12560
  var Table = React16.forwardRef(({ children, ...otherProps }, ref) => {
12506
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("table", { ref, css: table, ...otherProps, children });
12561
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("table", { ref, css: table, ...otherProps, children });
12507
12562
  });
12508
12563
  var TableHead = React16.forwardRef(
12509
12564
  ({ children, ...otherProps }, ref) => {
12510
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
12565
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
12511
12566
  }
12512
12567
  );
12513
12568
  var TableBody = React16.forwardRef(
12514
12569
  ({ children, ...otherProps }, ref) => {
12515
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tbody", { ref, ...otherProps, children });
12570
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tbody", { ref, ...otherProps, children });
12516
12571
  }
12517
12572
  );
12518
12573
  var TableFoot = React16.forwardRef(
12519
12574
  ({ children, ...otherProps }, ref) => {
12520
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tfoot", { ref, ...otherProps, children });
12575
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tfoot", { ref, ...otherProps, children });
12521
12576
  }
12522
12577
  );
12523
12578
  var TableRow = React16.forwardRef(
12524
12579
  ({ children, ...otherProps }, ref) => {
12525
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
12580
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
12526
12581
  }
12527
12582
  );
12528
12583
  var TableCellHead = React16.forwardRef(
12529
12584
  ({ children, ...otherProps }, ref) => {
12530
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
12585
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
12531
12586
  }
12532
12587
  );
12533
12588
  var TableCellData = React16.forwardRef(
12534
12589
  ({ children, ...otherProps }, ref) => {
12535
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
12590
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
12536
12591
  }
12537
12592
  );
12538
12593
 
12539
12594
  // src/components/Tabs/Tabs.tsx
12540
- var import_react86 = require("react");
12595
+ var import_react87 = require("react");
12541
12596
  var import_Tab = require("reakit/Tab");
12542
12597
 
12543
12598
  // src/components/Tabs/Tabs.styles.ts
12544
- var import_react85 = require("@emotion/react");
12545
- var tabButtonStyles = import_react85.css`
12599
+ var import_react86 = require("@emotion/react");
12600
+ var tabButtonStyles = import_react86.css`
12546
12601
  align-items: center;
12547
12602
  border: 0;
12548
12603
  height: 2.5rem;
@@ -12559,30 +12614,30 @@ var tabButtonStyles = import_react85.css`
12559
12614
  -webkit-text-stroke-width: thin;
12560
12615
  }
12561
12616
  `;
12562
- var tabButtonGroupStyles = import_react85.css`
12617
+ var tabButtonGroupStyles = import_react86.css`
12563
12618
  display: flex;
12564
12619
  gap: var(--spacing-base);
12565
12620
  border-bottom: 1px solid var(--gray-300);
12566
12621
  `;
12567
12622
 
12568
12623
  // src/components/Tabs/Tabs.tsx
12569
- var import_jsx_runtime82 = require("@emotion/react/jsx-runtime");
12570
- var CurrentTabContext = (0, import_react86.createContext)(null);
12624
+ var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
12625
+ var CurrentTabContext = (0, import_react87.createContext)(null);
12571
12626
  var useCurrentTab = () => {
12572
- const context = (0, import_react86.useContext)(CurrentTabContext);
12627
+ const context = (0, import_react87.useContext)(CurrentTabContext);
12573
12628
  if (!context) {
12574
12629
  throw new Error("This component can only be used inside <Tabs>");
12575
12630
  }
12576
12631
  return context;
12577
12632
  };
12578
12633
  var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }) => {
12579
- const selected = (0, import_react86.useMemo)(() => {
12634
+ const selected = (0, import_react87.useMemo)(() => {
12580
12635
  if (selectedId)
12581
12636
  return selectedId;
12582
12637
  return useHashForState && typeof window !== "undefined" && window.location.hash ? window.location.hash.substring(1) : void 0;
12583
12638
  }, [selectedId, useHashForState]);
12584
12639
  const tab = (0, import_Tab.useTabState)({ ...props, selectedId: selected });
12585
- (0, import_react86.useEffect)(() => {
12640
+ (0, import_react87.useEffect)(() => {
12586
12641
  var _a;
12587
12642
  const selectedValueWithoutNull = (_a = tab.selectedId) != null ? _a : void 0;
12588
12643
  onSelectedIdChange == null ? void 0 : onSelectedIdChange(selectedValueWithoutNull);
@@ -12590,29 +12645,29 @@ var Tabs = ({ children, onSelectedIdChange, useHashForState, selectedId, ...prop
12590
12645
  window.location.hash = selectedValueWithoutNull != null ? selectedValueWithoutNull : "";
12591
12646
  }
12592
12647
  }, [tab.selectedId, onSelectedIdChange, useHashForState]);
12593
- (0, import_react86.useEffect)(() => {
12648
+ (0, import_react87.useEffect)(() => {
12594
12649
  if (selected && selected !== tab.selectedId) {
12595
12650
  tab.setSelectedId(selected);
12596
12651
  }
12597
12652
  }, [selected]);
12598
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(CurrentTabContext.Provider, { value: tab, children });
12653
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(CurrentTabContext.Provider, { value: tab, children });
12599
12654
  };
12600
12655
  var TabButtonGroup = ({ children, ...props }) => {
12601
12656
  const currentTab = useCurrentTab();
12602
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
12657
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
12603
12658
  };
12604
12659
  var TabButton = ({ children, id, ...props }) => {
12605
12660
  const currentTab = useCurrentTab();
12606
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
12661
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
12607
12662
  };
12608
12663
  var TabContent = ({ children, ...props }) => {
12609
12664
  const currentTab = useCurrentTab();
12610
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
12665
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
12611
12666
  };
12612
12667
 
12613
12668
  // src/components/Validation/StatusBullet.styles.ts
12614
- var import_react87 = require("@emotion/react");
12615
- var StatusBulletContainer = import_react87.css`
12669
+ var import_react88 = require("@emotion/react");
12670
+ var StatusBulletContainer = import_react88.css`
12616
12671
  align-items: center;
12617
12672
  align-self: center;
12618
12673
  color: var(--gray-500);
@@ -12632,19 +12687,19 @@ var StatusBulletContainer = import_react87.css`
12632
12687
  height: var(--fs-xs);
12633
12688
  }
12634
12689
  `;
12635
- var StatusDraft = import_react87.css`
12690
+ var StatusDraft = import_react88.css`
12636
12691
  &:before {
12637
12692
  background: var(--white);
12638
12693
  box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
12639
12694
  }
12640
12695
  `;
12641
- var StatusModified = import_react87.css`
12696
+ var StatusModified = import_react88.css`
12642
12697
  &:before {
12643
12698
  background: linear-gradient(to right, var(--white) 50%, var(--brand-primary-1) 50% 100%);
12644
12699
  box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
12645
12700
  }
12646
12701
  `;
12647
- var StatusError = import_react87.css`
12702
+ var StatusError = import_react88.css`
12648
12703
  color: var(--error);
12649
12704
  &:before {
12650
12705
  background: var(--error);
@@ -12660,19 +12715,19 @@ var StatusError = import_react87.css`
12660
12715
  rotate: -45deg;
12661
12716
  }
12662
12717
  `;
12663
- var StatusPublished = import_react87.css`
12718
+ var StatusPublished = import_react88.css`
12664
12719
  &:before {
12665
12720
  background: var(--brand-secondary-3);
12666
12721
  }
12667
12722
  `;
12668
- var StatusOrphan = import_react87.css`
12723
+ var StatusOrphan = import_react88.css`
12669
12724
  &:before {
12670
12725
  background: var(--brand-secondary-5);
12671
12726
  }
12672
12727
  `;
12673
12728
 
12674
12729
  // src/components/Validation/StatusBullet.tsx
12675
- var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
12730
+ var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
12676
12731
  var StatusBullet = ({ status, hideText = false, message, ...props }) => {
12677
12732
  const currentStateStyles = {
12678
12733
  Error: StatusError,
@@ -12682,7 +12737,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
12682
12737
  Published: StatusPublished,
12683
12738
  Draft: StatusDraft
12684
12739
  };
12685
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
12740
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
12686
12741
  "span",
12687
12742
  {
12688
12743
  css: [StatusBulletContainer, currentStateStyles[status]],
@@ -12773,6 +12828,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
12773
12828
  ParameterTextareaInner,
12774
12829
  ParameterToggle,
12775
12830
  ParameterToggleInner,
12831
+ Popover,
12776
12832
  ResolveIcon,
12777
12833
  ScrollableList,
12778
12834
  ScrollableListInputItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "18.22.0",
3
+ "version": "18.23.1-alpha.34+8eddcae60",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "55125ebbd2e43c65946984dbd1cea417e089f75d"
54
+ "gitHead": "8eddcae607f5c8b7ef9f7752bc11e186eee4305b"
55
55
  }