@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.
- package/dist/.types/app/playground/index.d.ts +11 -9
- package/dist/.types/app/playground/index.d.ts.map +1 -1
- package/dist/.types/app/playground/theme.d.ts +2 -19
- package/dist/.types/app/playground/theme.d.ts.map +1 -1
- package/dist/.types/icons/index.d.ts +1 -0
- package/dist/.types/icons/index.d.ts.map +1 -1
- package/dist/.types/icons/shape-ellipse.d.ts +3 -0
- package/dist/.types/icons/shape-ellipse.d.ts.map +1 -0
- package/dist/.types/src/components/button/button.d.ts.map +1 -1
- package/dist/.types/src/components/icon/available-icons/index.d.ts +1 -0
- package/dist/.types/src/components/icon/available-icons/index.d.ts.map +1 -1
- package/dist/.types/src/components/icon/available-icons/shape-ellipse.d.ts +3 -0
- package/dist/.types/src/components/icon/available-icons/shape-ellipse.d.ts.map +1 -0
- package/dist/.types/src/components/list/list.d.ts +2 -1
- package/dist/.types/src/components/list/list.d.ts.map +1 -1
- package/dist/.types/src/components/modal/modal.d.ts.map +1 -1
- package/dist/.types/src/components/pill/pill.d.ts +3 -0
- package/dist/.types/src/components/pill/pill.d.ts.map +1 -1
- package/dist/cjs/icons/index.js +129 -121
- package/dist/cjs/icons/index.js.map +4 -4
- package/dist/cjs/icons/shape-ellipse.js +40 -0
- package/dist/cjs/icons/shape-ellipse.js.map +7 -0
- package/dist/cjs/index.js +38 -32
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/icons/chunk-BCJBV6EL.js +11 -0
- package/dist/esm/icons/chunk-BCJBV6EL.js.map +7 -0
- package/dist/esm/icons/index.js +22 -18
- package/dist/esm/icons/shape-ellipse.js +8 -0
- package/dist/esm/icons/shape-ellipse.js.map +7 -0
- package/dist/esm/index.js +38 -32
- package/dist/esm/index.js.map +3 -3
- package/package.json +8 -9
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/components/icon/available-icons/shape-ellipse.tsx
|
|
2
|
+
import ShapeEllipseIcon from "@atlaskit/icon-lab/core/shape-ellipse";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
function SvgShapeEllipse() {
|
|
5
|
+
return /* @__PURE__ */ React.createElement(ShapeEllipseIcon, { label: "", testId: "ads-refreshed-icon" });
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
SvgShapeEllipse
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-BCJBV6EL.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,OAAO,sBAAsB;AAC7B,YAAY,WAAW;AAEhB,SAAS,kBAAkB;AAChC,SAAO,oCAAC,oBAAiB,OAAM,IAAG,QAAO,sBAAqB;AAChE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/esm/icons/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SvgXLogo
|
|
3
|
+
} from "./chunk-FVJZXPRX.js";
|
|
1
4
|
import {
|
|
2
5
|
SvgZapOutline
|
|
3
6
|
} from "./chunk-OOLVJGG2.js";
|
|
@@ -10,6 +13,9 @@ import {
|
|
|
10
13
|
import {
|
|
11
14
|
SvgZoomOut
|
|
12
15
|
} from "./chunk-M35LKLMJ.js";
|
|
16
|
+
import {
|
|
17
|
+
SvgWatchLaterRemove
|
|
18
|
+
} from "./chunk-VSKPW4OH.js";
|
|
13
19
|
import {
|
|
14
20
|
SvgWatchLater
|
|
15
21
|
} from "./chunk-GOYURRTO.js";
|
|
@@ -32,8 +38,8 @@ import {
|
|
|
32
38
|
SvgXCircle
|
|
33
39
|
} from "./chunk-QHLM45W4.js";
|
|
34
40
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./chunk-
|
|
41
|
+
SvgVideoLibrary
|
|
42
|
+
} from "./chunk-VDARRVZ2.js";
|
|
37
43
|
import {
|
|
38
44
|
SvgVideoOff
|
|
39
45
|
} from "./chunk-J5YSTD2O.js";
|
|
@@ -56,8 +62,8 @@ import {
|
|
|
56
62
|
SvgWatchLaterAdded
|
|
57
63
|
} from "./chunk-BFPFVG5V.js";
|
|
58
64
|
import {
|
|
59
|
-
|
|
60
|
-
} from "./chunk-
|
|
65
|
+
SvgUndoAlt
|
|
66
|
+
} from "./chunk-EIKAXIVU.js";
|
|
61
67
|
import {
|
|
62
68
|
SvgUpload
|
|
63
69
|
} from "./chunk-2GNR5PZB.js";
|
|
@@ -80,8 +86,8 @@ import {
|
|
|
80
86
|
SvgVideoCam
|
|
81
87
|
} from "./chunk-3IFD2STQ.js";
|
|
82
88
|
import {
|
|
83
|
-
|
|
84
|
-
} from "./chunk-
|
|
89
|
+
SvgTimelineEditor
|
|
90
|
+
} from "./chunk-SOFWAOZ4.js";
|
|
85
91
|
import {
|
|
86
92
|
SvgTimer
|
|
87
93
|
} from "./chunk-IPK2TGIQ.js";
|
|
@@ -104,8 +110,8 @@ import {
|
|
|
104
110
|
SvgUnderline
|
|
105
111
|
} from "./chunk-Q2DXN42B.js";
|
|
106
112
|
import {
|
|
107
|
-
|
|
108
|
-
} from "./chunk-
|
|
113
|
+
SvgTask
|
|
114
|
+
} from "./chunk-CI4GOC3L.js";
|
|
109
115
|
import {
|
|
110
116
|
SvgTeamworkAgentBig
|
|
111
117
|
} from "./chunk-3XE2KGCX.js";
|
|
@@ -128,8 +134,8 @@ import {
|
|
|
128
134
|
SvgThumbsUp
|
|
129
135
|
} from "./chunk-F5L4NQJW.js";
|
|
130
136
|
import {
|
|
131
|
-
|
|
132
|
-
} from "./chunk-
|
|
137
|
+
SvgSpeedSlow
|
|
138
|
+
} from "./chunk-CKTMKAKK.js";
|
|
133
139
|
import {
|
|
134
140
|
SvgSplit
|
|
135
141
|
} from "./chunk-NINABXFB.js";
|
|
@@ -152,8 +158,8 @@ import {
|
|
|
152
158
|
SvgSun
|
|
153
159
|
} from "./chunk-UNBBZS6J.js";
|
|
154
160
|
import {
|
|
155
|
-
|
|
156
|
-
} from "./chunk-
|
|
161
|
+
SvgSkipBack
|
|
162
|
+
} from "./chunk-4RZH26BD.js";
|
|
157
163
|
import {
|
|
158
164
|
SvgSlack
|
|
159
165
|
} from "./chunk-HMUP4QXX.js";
|
|
@@ -175,9 +181,6 @@ import {
|
|
|
175
181
|
import {
|
|
176
182
|
SvgSpeedMedium
|
|
177
183
|
} from "./chunk-VQTS3NUI.js";
|
|
178
|
-
import {
|
|
179
|
-
SvgSpeedSlow
|
|
180
|
-
} from "./chunk-CKTMKAKK.js";
|
|
181
184
|
import {
|
|
182
185
|
SvgSchool
|
|
183
186
|
} from "./chunk-DV7DTSLT.js";
|
|
@@ -196,12 +199,12 @@ import {
|
|
|
196
199
|
import {
|
|
197
200
|
SvgSettings
|
|
198
201
|
} from "./chunk-6JFYWVAP.js";
|
|
202
|
+
import {
|
|
203
|
+
SvgShapeEllipse
|
|
204
|
+
} from "./chunk-BCJBV6EL.js";
|
|
199
205
|
import {
|
|
200
206
|
SvgSilenceRemoval
|
|
201
207
|
} from "./chunk-UHAMA5YO.js";
|
|
202
|
-
import {
|
|
203
|
-
SvgSkipBack
|
|
204
|
-
} from "./chunk-4RZH26BD.js";
|
|
205
208
|
import {
|
|
206
209
|
SvgReplyLeft
|
|
207
210
|
} from "./chunk-AA7SIBLA.js";
|
|
@@ -1018,6 +1021,7 @@ export {
|
|
|
1018
1021
|
SvgSearch,
|
|
1019
1022
|
SvgSend,
|
|
1020
1023
|
SvgSettings,
|
|
1024
|
+
SvgShapeEllipse,
|
|
1021
1025
|
SvgSilenceRemoval,
|
|
1022
1026
|
SvgSkipBack,
|
|
1023
1027
|
SvgSlack,
|
package/dist/esm/index.js
CHANGED
|
@@ -122,7 +122,7 @@ var themeSharedColors = {
|
|
|
122
122
|
recordActive: darken(hslaBaseColors.orange, activeIncrease),
|
|
123
123
|
backdropDark: alphaFunction(hslaGreys.grey8, backdropDarkAlpha),
|
|
124
124
|
backdropTwilight: alphaFunction(
|
|
125
|
-
hslaBaseColors.
|
|
125
|
+
hslaBaseColors.blueDark,
|
|
126
126
|
backdropTwilightAlpha
|
|
127
127
|
),
|
|
128
128
|
highlight: alphaFunction(hslaBaseColors.blurple, highlightAlpha),
|
|
@@ -142,7 +142,7 @@ var themeColors = {
|
|
|
142
142
|
primaryHover: __spreadProps(__spreadValues({}, hslaBaseColors.blurpleDark), {
|
|
143
143
|
ads: "--ds-background-brand-bold-hovered"
|
|
144
144
|
}),
|
|
145
|
-
primaryActive: __spreadProps(__spreadValues({}, hslaBaseColors.
|
|
145
|
+
primaryActive: __spreadProps(__spreadValues({}, hslaBaseColors.blueDark), {
|
|
146
146
|
ads: "--ds-background-brand-bold-pressed"
|
|
147
147
|
}),
|
|
148
148
|
body: { h: 228, s: 6, l: 17, a: 1, ads: "--ds-text" },
|
|
@@ -412,7 +412,7 @@ var themeColors = {
|
|
|
412
412
|
s: 85.1,
|
|
413
413
|
l: 76.3,
|
|
414
414
|
a: 1,
|
|
415
|
-
ads: "--ds-
|
|
415
|
+
ads: "--ds-border-focused"
|
|
416
416
|
},
|
|
417
417
|
overlay: { h: 225, s: 4, l: 17.6, a: 1, ads: "--ds-surface-overlay" },
|
|
418
418
|
overlayHover: {
|
|
@@ -1004,7 +1004,7 @@ var breakpoints = {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
var gradients = {
|
|
1006
1006
|
"ai-primary": "conic-gradient(from 270deg, #0469FF 90deg, #BF63F3 180deg, #FFA900 270deg, #0065FF 360deg)",
|
|
1007
|
-
"ai-secondary": "radial-gradient(138.41% 100% at 100% 100%,
|
|
1007
|
+
"ai-secondary": "radial-gradient(138.41% 100% at 100% 100%, var(--ds-background-accent-blue-subtlest) 0%, var(--ds-surface) 100%)"
|
|
1008
1008
|
};
|
|
1009
1009
|
|
|
1010
1010
|
// src/components/text/text.tsx
|
|
@@ -2307,21 +2307,18 @@ var variantStyles = {
|
|
|
2307
2307
|
active: null
|
|
2308
2308
|
}
|
|
2309
2309
|
};
|
|
2310
|
-
var statusStyles = (props) => {
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
`
|
|
2323
|
-
};
|
|
2324
|
-
};
|
|
2310
|
+
var statusStyles = (props) => ({
|
|
2311
|
+
enabled: css2`
|
|
2312
|
+
cursor: pointer;
|
|
2313
|
+
`,
|
|
2314
|
+
disabled: css2`
|
|
2315
|
+
${props.ariaDisabled && `aria-disabled: true`};
|
|
2316
|
+
pointer-events: none;
|
|
2317
|
+
background-color: ${getColorValue("disabledBackground")};
|
|
2318
|
+
color: ${getColorValue("disabledContent")};
|
|
2319
|
+
border: ${variantStyles[props.variant].borderColor ? `1px solid ${variantStyles[props.variant].borderColor}` : "none"};
|
|
2320
|
+
`
|
|
2321
|
+
});
|
|
2325
2322
|
var widthStyles = (props) => ({
|
|
2326
2323
|
auto: css2`
|
|
2327
2324
|
display: inline-flex;
|
|
@@ -4794,6 +4791,15 @@ var ModalCard = (_a) => {
|
|
|
4794
4791
|
"initialFocus",
|
|
4795
4792
|
"closeOnEscape"
|
|
4796
4793
|
]);
|
|
4794
|
+
const dialogRef = useRef3(null);
|
|
4795
|
+
const setDialogRef = (node) => {
|
|
4796
|
+
dialogRef.current = node;
|
|
4797
|
+
if (typeof ref === "function") {
|
|
4798
|
+
ref(node);
|
|
4799
|
+
} else if (ref) {
|
|
4800
|
+
ref.current = node;
|
|
4801
|
+
}
|
|
4802
|
+
};
|
|
4797
4803
|
const keyListener = (e) => {
|
|
4798
4804
|
if (e.key === "Escape" && closeOnEscape) {
|
|
4799
4805
|
e.preventDefault();
|
|
@@ -4815,7 +4821,11 @@ var ModalCard = (_a) => {
|
|
|
4815
4821
|
active: isOpen,
|
|
4816
4822
|
focusTrapOptions: __spreadValues({
|
|
4817
4823
|
clickOutsideDeactivates: false,
|
|
4818
|
-
allowOutsideClick: true
|
|
4824
|
+
allowOutsideClick: true,
|
|
4825
|
+
// The dialog element is always rendered, so it is a safe focus target
|
|
4826
|
+
// when no tabbable content exists yet (e.g. lazy-loaded children still
|
|
4827
|
+
// resolving, or `removeClose` modals with no interactive elements).
|
|
4828
|
+
fallbackFocus: () => dialogRef.current
|
|
4819
4829
|
}, initialFocus !== void 0 ? { initialFocus } : {})
|
|
4820
4830
|
},
|
|
4821
4831
|
/* @__PURE__ */ React30.createElement(
|
|
@@ -4826,7 +4836,7 @@ var ModalCard = (_a) => {
|
|
|
4826
4836
|
maxHeight,
|
|
4827
4837
|
placement,
|
|
4828
4838
|
onClick: (e) => e.stopPropagation(),
|
|
4829
|
-
ref,
|
|
4839
|
+
ref: setDialogRef,
|
|
4830
4840
|
"aria-label": ariaLabel,
|
|
4831
4841
|
"aria-modal": ariaModal,
|
|
4832
4842
|
"aria-labelledby": ariaLabelledBy
|
|
@@ -4840,13 +4850,7 @@ var ModalCard = (_a) => {
|
|
|
4840
4850
|
onClick: onCloseClick
|
|
4841
4851
|
}
|
|
4842
4852
|
)),
|
|
4843
|
-
/* @__PURE__ */ React30.createElement(
|
|
4844
|
-
ModalCardChildrenSection,
|
|
4845
|
-
__spreadProps(__spreadValues({}, removeClose ? { tabIndex: 0 } : { tabIndex: -1 }), {
|
|
4846
|
-
maxHeight
|
|
4847
|
-
}),
|
|
4848
|
-
children
|
|
4849
|
-
)
|
|
4853
|
+
/* @__PURE__ */ React30.createElement(ModalCardChildrenSection, { maxHeight }, children)
|
|
4850
4854
|
)
|
|
4851
4855
|
);
|
|
4852
4856
|
};
|
|
@@ -7591,7 +7595,8 @@ var ListRow = (_a) => {
|
|
|
7591
7595
|
backgroundColor,
|
|
7592
7596
|
onClick,
|
|
7593
7597
|
href,
|
|
7594
|
-
role
|
|
7598
|
+
role,
|
|
7599
|
+
tabIndex
|
|
7595
7600
|
} = _b, props = __objRest(_b, [
|
|
7596
7601
|
"children",
|
|
7597
7602
|
"htmlTag",
|
|
@@ -7599,7 +7604,8 @@ var ListRow = (_a) => {
|
|
|
7599
7604
|
"backgroundColor",
|
|
7600
7605
|
"onClick",
|
|
7601
7606
|
"href",
|
|
7602
|
-
"role"
|
|
7607
|
+
"role",
|
|
7608
|
+
"tabIndex"
|
|
7603
7609
|
]);
|
|
7604
7610
|
const classNameFromProp = className ? ` ${className}` : ``;
|
|
7605
7611
|
const nonInteractiveElements = [
|
|
@@ -7626,7 +7632,7 @@ var ListRow = (_a) => {
|
|
|
7626
7632
|
if (!isAutoInteractive) {
|
|
7627
7633
|
isNonInteractive = nonInteractiveElements.includes(actualHtmlTag);
|
|
7628
7634
|
}
|
|
7629
|
-
const interactiveProps = !isNonInteractive || isAutoInteractive ? {
|
|
7635
|
+
const interactiveProps = (!isNonInteractive || isAutoInteractive) && (onClick || href) ? __spreadValues({
|
|
7630
7636
|
onClick,
|
|
7631
7637
|
onKeyDown: (e) => {
|
|
7632
7638
|
if (e.key === "Enter") {
|
|
@@ -7634,7 +7640,7 @@ var ListRow = (_a) => {
|
|
|
7634
7640
|
onClick == null ? void 0 : onClick(e);
|
|
7635
7641
|
}
|
|
7636
7642
|
}
|
|
7637
|
-
} : {};
|
|
7643
|
+
}, onClick && !href ? { tabIndex: tabIndex != null ? tabIndex : 0 } : {}) : {};
|
|
7638
7644
|
return /* @__PURE__ */ React47.createElement(
|
|
7639
7645
|
ListRowWrapper,
|
|
7640
7646
|
__spreadValues(__spreadValues({
|