@loomhq/lens 12.20.2 → 12.20.3

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.
Files changed (32) hide show
  1. package/dist/.types/app/playground/index.d.ts +11 -9
  2. package/dist/.types/app/playground/index.d.ts.map +1 -1
  3. package/dist/.types/app/playground/theme.d.ts +2 -19
  4. package/dist/.types/app/playground/theme.d.ts.map +1 -1
  5. package/dist/.types/icons/index.d.ts +1 -0
  6. package/dist/.types/icons/index.d.ts.map +1 -1
  7. package/dist/.types/icons/shape-ellipse.d.ts +3 -0
  8. package/dist/.types/icons/shape-ellipse.d.ts.map +1 -0
  9. package/dist/.types/src/components/button/button.d.ts.map +1 -1
  10. package/dist/.types/src/components/icon/available-icons/index.d.ts +1 -0
  11. package/dist/.types/src/components/icon/available-icons/index.d.ts.map +1 -1
  12. package/dist/.types/src/components/icon/available-icons/shape-ellipse.d.ts +3 -0
  13. package/dist/.types/src/components/icon/available-icons/shape-ellipse.d.ts.map +1 -0
  14. package/dist/.types/src/components/list/list.d.ts +2 -1
  15. package/dist/.types/src/components/list/list.d.ts.map +1 -1
  16. package/dist/.types/src/components/modal/modal.d.ts.map +1 -1
  17. package/dist/.types/src/components/pill/pill.d.ts +3 -0
  18. package/dist/.types/src/components/pill/pill.d.ts.map +1 -1
  19. package/dist/cjs/icons/index.js +129 -121
  20. package/dist/cjs/icons/index.js.map +4 -4
  21. package/dist/cjs/icons/shape-ellipse.js +40 -0
  22. package/dist/cjs/icons/shape-ellipse.js.map +7 -0
  23. package/dist/cjs/index.js +38 -32
  24. package/dist/cjs/index.js.map +2 -2
  25. package/dist/esm/icons/chunk-BCJBV6EL.js +11 -0
  26. package/dist/esm/icons/chunk-BCJBV6EL.js.map +7 -0
  27. package/dist/esm/icons/index.js +22 -18
  28. package/dist/esm/icons/shape-ellipse.js +8 -0
  29. package/dist/esm/icons/shape-ellipse.js.map +7 -0
  30. package/dist/esm/index.js +38 -32
  31. package/dist/esm/index.js.map +3 -3
  32. package/package.json +8 -9
@@ -0,0 +1,40 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/icon/available-icons/shape-ellipse.tsx
30
+ var shape_ellipse_exports = {};
31
+ __export(shape_ellipse_exports, {
32
+ SvgShapeEllipse: () => SvgShapeEllipse
33
+ });
34
+ module.exports = __toCommonJS(shape_ellipse_exports);
35
+ var import_shape_ellipse = __toESM(require("@atlaskit/icon-lab/core/shape-ellipse"));
36
+ var React = __toESM(require("react"));
37
+ function SvgShapeEllipse() {
38
+ return /* @__PURE__ */ React.createElement(import_shape_ellipse.default, { label: "", testId: "ads-refreshed-icon" });
39
+ }
40
+ //# sourceMappingURL=shape-ellipse.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/icon/available-icons/shape-ellipse.tsx"],
4
+ "sourcesContent": ["import ShapeEllipseIcon from '@atlaskit/icon-lab/core/shape-ellipse';\nimport * as React from 'react';\n\nexport function SvgShapeEllipse() {\n return <ShapeEllipseIcon label=\"\" testId=\"ads-refreshed-icon\" />;\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAA6B;AAC7B,YAAuB;AAEhB,SAAS,kBAAkB;AAChC,SAAO,oCAAC,qBAAAA,SAAA,EAAiB,OAAM,IAAG,QAAO,sBAAqB;AAChE;",
6
+ "names": ["ShapeEllipseIcon"]
7
+ }
package/dist/cjs/index.js CHANGED
@@ -385,7 +385,7 @@ var themeSharedColors = {
385
385
  recordActive: darken(hslaBaseColors.orange, activeIncrease),
386
386
  backdropDark: alphaFunction(hslaGreys.grey8, backdropDarkAlpha),
387
387
  backdropTwilight: alphaFunction(
388
- hslaBaseColors.blurpleStrong,
388
+ hslaBaseColors.blueDark,
389
389
  backdropTwilightAlpha
390
390
  ),
391
391
  highlight: alphaFunction(hslaBaseColors.blurple, highlightAlpha),
@@ -405,7 +405,7 @@ var themeColors = {
405
405
  primaryHover: __spreadProps(__spreadValues({}, hslaBaseColors.blurpleDark), {
406
406
  ads: "--ds-background-brand-bold-hovered"
407
407
  }),
408
- primaryActive: __spreadProps(__spreadValues({}, hslaBaseColors.blurpleStrong), {
408
+ primaryActive: __spreadProps(__spreadValues({}, hslaBaseColors.blueDark), {
409
409
  ads: "--ds-background-brand-bold-pressed"
410
410
  }),
411
411
  body: { h: 228, s: 6, l: 17, a: 1, ads: "--ds-text" },
@@ -675,7 +675,7 @@ var themeColors = {
675
675
  s: 85.1,
676
676
  l: 76.3,
677
677
  a: 1,
678
- ads: "--ds-background-accent-blue-subtle-hovered"
678
+ ads: "--ds-border-focused"
679
679
  },
680
680
  overlay: { h: 225, s: 4, l: 17.6, a: 1, ads: "--ds-surface-overlay" },
681
681
  overlayHover: {
@@ -1267,7 +1267,7 @@ var breakpoints = {
1267
1267
  };
1268
1268
  var gradients = {
1269
1269
  "ai-primary": "conic-gradient(from 270deg, #0469FF 90deg, #BF63F3 180deg, #FFA900 270deg, #0065FF 360deg)",
1270
- "ai-secondary": "radial-gradient(138.41% 100% at 100% 100%, #E9F2FE 0%, #FFF 100%)"
1270
+ "ai-secondary": "radial-gradient(138.41% 100% at 100% 100%, var(--ds-background-accent-blue-subtlest) 0%, var(--ds-surface) 100%)"
1271
1271
  };
1272
1272
 
1273
1273
  // src/components/text/text.tsx
@@ -2570,21 +2570,18 @@ var variantStyles = {
2570
2570
  active: null
2571
2571
  }
2572
2572
  };
2573
- var statusStyles = (props) => {
2574
- const useFloatingDisabledColors = props.isFloating && props.disabled;
2575
- return {
2576
- enabled: import_react10.css`
2577
- cursor: pointer;
2578
- `,
2579
- disabled: import_react10.css`
2580
- ${props.ariaDisabled && `aria-disabled: true`};
2581
- pointer-events: none;
2582
- background-color: ${useFloatingDisabledColors ? props.variant === "neutral" ? variantStyles[props.variant].floatingActive : variantStyles[props.variant].active || getColorValue("disabledBackground") : getColorValue("disabledBackground")};
2583
- color: ${useFloatingDisabledColors ? variantStyles[props.variant].color : getColorValue("disabledContent")};
2584
- border: ${variantStyles[props.variant].borderColor ? `1px solid ${variantStyles[props.variant].borderColor}` : "none"};
2585
- `
2586
- };
2587
- };
2573
+ var statusStyles = (props) => ({
2574
+ enabled: import_react10.css`
2575
+ cursor: pointer;
2576
+ `,
2577
+ disabled: import_react10.css`
2578
+ ${props.ariaDisabled && `aria-disabled: true`};
2579
+ pointer-events: none;
2580
+ background-color: ${getColorValue("disabledBackground")};
2581
+ color: ${getColorValue("disabledContent")};
2582
+ border: ${variantStyles[props.variant].borderColor ? `1px solid ${variantStyles[props.variant].borderColor}` : "none"};
2583
+ `
2584
+ });
2588
2585
  var widthStyles = (props) => ({
2589
2586
  auto: import_react10.css`
2590
2587
  display: inline-flex;
@@ -5053,6 +5050,15 @@ var ModalCard = (_a) => {
5053
5050
  "initialFocus",
5054
5051
  "closeOnEscape"
5055
5052
  ]);
5053
+ const dialogRef = (0, import_react29.useRef)(null);
5054
+ const setDialogRef = (node) => {
5055
+ dialogRef.current = node;
5056
+ if (typeof ref === "function") {
5057
+ ref(node);
5058
+ } else if (ref) {
5059
+ ref.current = node;
5060
+ }
5061
+ };
5056
5062
  const keyListener = (e) => {
5057
5063
  if (e.key === "Escape" && closeOnEscape) {
5058
5064
  e.preventDefault();
@@ -5074,7 +5080,11 @@ var ModalCard = (_a) => {
5074
5080
  active: isOpen,
5075
5081
  focusTrapOptions: __spreadValues({
5076
5082
  clickOutsideDeactivates: false,
5077
- allowOutsideClick: true
5083
+ allowOutsideClick: true,
5084
+ // The dialog element is always rendered, so it is a safe focus target
5085
+ // when no tabbable content exists yet (e.g. lazy-loaded children still
5086
+ // resolving, or `removeClose` modals with no interactive elements).
5087
+ fallbackFocus: () => dialogRef.current
5078
5088
  }, initialFocus !== void 0 ? { initialFocus } : {})
5079
5089
  },
5080
5090
  /* @__PURE__ */ import_react29.default.createElement(
@@ -5085,7 +5095,7 @@ var ModalCard = (_a) => {
5085
5095
  maxHeight,
5086
5096
  placement,
5087
5097
  onClick: (e) => e.stopPropagation(),
5088
- ref,
5098
+ ref: setDialogRef,
5089
5099
  "aria-label": ariaLabel,
5090
5100
  "aria-modal": ariaModal,
5091
5101
  "aria-labelledby": ariaLabelledBy
@@ -5099,13 +5109,7 @@ var ModalCard = (_a) => {
5099
5109
  onClick: onCloseClick
5100
5110
  }
5101
5111
  )),
5102
- /* @__PURE__ */ import_react29.default.createElement(
5103
- ModalCardChildrenSection,
5104
- __spreadProps(__spreadValues({}, removeClose ? { tabIndex: 0 } : { tabIndex: -1 }), {
5105
- maxHeight
5106
- }),
5107
- children
5108
- )
5112
+ /* @__PURE__ */ import_react29.default.createElement(ModalCardChildrenSection, { maxHeight }, children)
5109
5113
  )
5110
5114
  );
5111
5115
  };
@@ -7843,7 +7847,8 @@ var ListRow = (_a) => {
7843
7847
  backgroundColor,
7844
7848
  onClick,
7845
7849
  href,
7846
- role
7850
+ role,
7851
+ tabIndex
7847
7852
  } = _b, props = __objRest(_b, [
7848
7853
  "children",
7849
7854
  "htmlTag",
@@ -7851,7 +7856,8 @@ var ListRow = (_a) => {
7851
7856
  "backgroundColor",
7852
7857
  "onClick",
7853
7858
  "href",
7854
- "role"
7859
+ "role",
7860
+ "tabIndex"
7855
7861
  ]);
7856
7862
  const classNameFromProp = className ? ` ${className}` : ``;
7857
7863
  const nonInteractiveElements = [
@@ -7878,7 +7884,7 @@ var ListRow = (_a) => {
7878
7884
  if (!isAutoInteractive) {
7879
7885
  isNonInteractive = nonInteractiveElements.includes(actualHtmlTag);
7880
7886
  }
7881
- const interactiveProps = !isNonInteractive || isAutoInteractive ? {
7887
+ const interactiveProps = (!isNonInteractive || isAutoInteractive) && (onClick || href) ? __spreadValues({
7882
7888
  onClick,
7883
7889
  onKeyDown: (e) => {
7884
7890
  if (e.key === "Enter") {
@@ -7886,7 +7892,7 @@ var ListRow = (_a) => {
7886
7892
  onClick == null ? void 0 : onClick(e);
7887
7893
  }
7888
7894
  }
7889
- } : {};
7895
+ }, onClick && !href ? { tabIndex: tabIndex != null ? tabIndex : 0 } : {}) : {};
7890
7896
  return /* @__PURE__ */ import_react52.default.createElement(
7891
7897
  ListRowWrapper,
7892
7898
  __spreadValues(__spreadValues({