@liner-fe/prism 2.8.26 → 2.8.27
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/lib/index.css +23 -15
- package/lib/index.d.ts +1 -0
- package/lib/index.js +54 -32
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -1805,10 +1805,10 @@
|
|
|
1805
1805
|
}
|
|
1806
1806
|
|
|
1807
1807
|
/* esbuild-sass-plugin:css-chunk:src/components/coach-mark/primitive/style.module.scss */
|
|
1808
|
-
.
|
|
1808
|
+
._anchor_1d9jc_1 {
|
|
1809
1809
|
transform: rotate(270deg) translateX(7px);
|
|
1810
1810
|
}
|
|
1811
|
-
.
|
|
1811
|
+
._content_1d9jc_5 {
|
|
1812
1812
|
border-radius: var(--lp-sys-radius-m);
|
|
1813
1813
|
width: 100%;
|
|
1814
1814
|
box-shadow:
|
|
@@ -1816,7 +1816,10 @@
|
|
|
1816
1816
|
0px 1px 8px 0px rgba(0, 0, 0, 0.06),
|
|
1817
1817
|
0px 0px 1px 0px rgba(0, 0, 0, 0.06);
|
|
1818
1818
|
}
|
|
1819
|
-
.
|
|
1819
|
+
._content_1d9jc_5 p {
|
|
1820
|
+
margin: 0;
|
|
1821
|
+
}
|
|
1822
|
+
._overlay_1d9jc_14 {
|
|
1820
1823
|
position: fixed;
|
|
1821
1824
|
top: 0;
|
|
1822
1825
|
left: 0;
|
|
@@ -1825,18 +1828,21 @@
|
|
|
1825
1828
|
background: rgba(255, 255, 255, 0.7490196078);
|
|
1826
1829
|
z-index: 9;
|
|
1827
1830
|
}
|
|
1831
|
+
._close_1d9jc_24 {
|
|
1832
|
+
cursor: pointer;
|
|
1833
|
+
}
|
|
1828
1834
|
|
|
1829
1835
|
/* esbuild-sass-plugin:css-chunk:src/components/coach-mark/compact/style.module.scss */
|
|
1830
|
-
.
|
|
1836
|
+
._content_mrnt5_1 {
|
|
1831
1837
|
position: relative;
|
|
1832
1838
|
display: flex;
|
|
1833
1839
|
align-items: center;
|
|
1834
1840
|
gap: var(--lp-sys-gap-positive-100);
|
|
1835
1841
|
padding: var(--lp-sys-padding-component-200);
|
|
1836
1842
|
width: fit-content;
|
|
1837
|
-
animation:
|
|
1843
|
+
animation: _slideIn_mrnt5_1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
|
|
1838
1844
|
}
|
|
1839
|
-
@keyframes
|
|
1845
|
+
@keyframes _slideIn_mrnt5_1 {
|
|
1840
1846
|
from {
|
|
1841
1847
|
transform: translateY(10px);
|
|
1842
1848
|
opacity: 0;
|
|
@@ -1846,33 +1852,35 @@
|
|
|
1846
1852
|
opacity: 1;
|
|
1847
1853
|
}
|
|
1848
1854
|
}
|
|
1849
|
-
.
|
|
1855
|
+
._content_mrnt5_1:hover ._closeButton_mrnt5_20 {
|
|
1850
1856
|
display: block;
|
|
1851
1857
|
}
|
|
1852
|
-
.
|
|
1858
|
+
._brand_mrnt5_24 {
|
|
1853
1859
|
background: var(--brand-container-mid);
|
|
1854
1860
|
}
|
|
1855
|
-
.
|
|
1861
|
+
._brand_mrnt5_24 svg > path {
|
|
1856
1862
|
fill: var(--brand-container-mid);
|
|
1857
1863
|
}
|
|
1858
|
-
._inverse-
|
|
1864
|
+
._inverse-static_mrnt5_31 {
|
|
1859
1865
|
background: var(--inverse-container-static-high);
|
|
1860
1866
|
}
|
|
1861
|
-
._inverse-
|
|
1867
|
+
._inverse-static_mrnt5_31 svg > path {
|
|
1862
1868
|
fill: var(--inverse-container-static-high);
|
|
1863
1869
|
}
|
|
1864
|
-
.
|
|
1870
|
+
._inverse_mrnt5_31 {
|
|
1865
1871
|
background: var(--inverse-container-lowest);
|
|
1866
1872
|
}
|
|
1867
|
-
.
|
|
1873
|
+
._inverse_mrnt5_31 svg > path {
|
|
1868
1874
|
fill: var(--inverse-container-lowest);
|
|
1869
1875
|
}
|
|
1870
|
-
.
|
|
1876
|
+
._close_mrnt5_20 {
|
|
1871
1877
|
position: absolute;
|
|
1872
1878
|
top: 0;
|
|
1873
1879
|
right: 0;
|
|
1874
1880
|
transform: translate(40%, -40%);
|
|
1875
|
-
|
|
1881
|
+
}
|
|
1882
|
+
._main_mrnt5_52 {
|
|
1883
|
+
margin: 0;
|
|
1876
1884
|
}
|
|
1877
1885
|
|
|
1878
1886
|
/* esbuild-sass-plugin:css-chunk:src/components/Tag/style.module.scss */
|
package/lib/index.d.ts
CHANGED
|
@@ -563,6 +563,7 @@ interface PrimitiveCoachMarkContentProps extends PopoverPrimitive.PopoverContent
|
|
|
563
563
|
declare const PrimitiveCoachMark: (({ trigger, children, ...props }: PrimitiveCoachMarkRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
564
564
|
Content: react.ForwardRefExoticComponent<PrimitiveCoachMarkContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
565
565
|
Portal: react.FC<PopoverPrimitive.PopoverPortalProps>;
|
|
566
|
+
Close: ({ className }: HTMLAttributes<HTMLOrSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
566
567
|
};
|
|
567
568
|
|
|
568
569
|
interface Step {
|
package/lib/index.js
CHANGED
|
@@ -7910,12 +7910,14 @@ import { forwardRef as forwardRef28 } from "react";
|
|
|
7910
7910
|
|
|
7911
7911
|
// src/components/coach-mark/primitive/style.module.scss
|
|
7912
7912
|
var style_module_default18 = {
|
|
7913
|
-
"anchor": "
|
|
7914
|
-
"content": "
|
|
7915
|
-
"overlay": "
|
|
7913
|
+
"anchor": "_anchor_1d9jc_1",
|
|
7914
|
+
"content": "_content_1d9jc_5",
|
|
7915
|
+
"overlay": "_overlay_1d9jc_14",
|
|
7916
|
+
"close": "_close_1d9jc_24"
|
|
7916
7917
|
};
|
|
7917
7918
|
|
|
7918
7919
|
// src/components/coach-mark/primitive/index.tsx
|
|
7920
|
+
import { IconCloseFill as IconCloseFill4 } from "@liner-fe/icon";
|
|
7919
7921
|
import { jsx as jsx41, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
7920
7922
|
var primitiveCoachMarkVariants = cva9({
|
|
7921
7923
|
base: style_module_default18.content
|
|
@@ -7948,6 +7950,7 @@ var PrimitiveCoachMarkAnchor = /* @__PURE__ */ __name(({ className }) => /* @__P
|
|
|
7948
7950
|
)
|
|
7949
7951
|
}
|
|
7950
7952
|
), "PrimitiveCoachMarkAnchor");
|
|
7953
|
+
var PrimitiveCoachMarkClose = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx41(Close, { asChild: true, className: clsx19(style_module_default18.close, className), children: /* @__PURE__ */ jsx41(IconCloseFill4, { fill: true, size: "xs", type: "neutral-label-static-primary" }) }), "PrimitiveCoachMarkClose");
|
|
7951
7954
|
var PrimitiveCoachMarkContent = forwardRef28(({ children, className, container, ...rest }, ref) => /* @__PURE__ */ jsx41(Portal2, { container, children: /* @__PURE__ */ jsxs15(
|
|
7952
7955
|
Content2,
|
|
7953
7956
|
{
|
|
@@ -7963,20 +7966,23 @@ var PrimitiveCoachMarkContent = forwardRef28(({ children, className, container,
|
|
|
7963
7966
|
PrimitiveCoachMarkContent.displayName = "CoachMarkContent";
|
|
7964
7967
|
var PrimitiveCoachMark = Object.assign(PrimitiveCoachMarkRoot, {
|
|
7965
7968
|
Content: PrimitiveCoachMarkContent,
|
|
7966
|
-
Portal: Portal2
|
|
7969
|
+
Portal: Portal2,
|
|
7970
|
+
Close: PrimitiveCoachMarkClose
|
|
7967
7971
|
});
|
|
7968
7972
|
|
|
7969
7973
|
// src/components/coach-mark/compact/index.tsx
|
|
7970
|
-
import { forwardRef as forwardRef30 } from "react";
|
|
7974
|
+
import { forwardRef as forwardRef30, useState as useState19 } from "react";
|
|
7971
7975
|
|
|
7972
7976
|
// src/components/coach-mark/compact/style.module.scss
|
|
7973
7977
|
var style_module_default19 = {
|
|
7974
|
-
"content": "
|
|
7975
|
-
"slideIn": "
|
|
7976
|
-
"closeButton": "
|
|
7977
|
-
"brand": "
|
|
7978
|
-
"inverse-static": "_inverse-
|
|
7979
|
-
"inverse": "
|
|
7978
|
+
"content": "_content_mrnt5_1",
|
|
7979
|
+
"slideIn": "_slideIn_mrnt5_1",
|
|
7980
|
+
"closeButton": "_closeButton_mrnt5_20",
|
|
7981
|
+
"brand": "_brand_mrnt5_24",
|
|
7982
|
+
"inverse-static": "_inverse-static_mrnt5_31",
|
|
7983
|
+
"inverse": "_inverse_mrnt5_31",
|
|
7984
|
+
"close": "_close_mrnt5_20",
|
|
7985
|
+
"main": "_main_mrnt5_52"
|
|
7980
7986
|
};
|
|
7981
7987
|
|
|
7982
7988
|
// src/components/coach-mark/compact/index.tsx
|
|
@@ -8194,27 +8200,43 @@ var compactCoachMarkVariants = cva11({
|
|
|
8194
8200
|
var CompactCoachMarkRoot = /* @__PURE__ */ __name((props) => {
|
|
8195
8201
|
return /* @__PURE__ */ jsx43(PrimitiveCoachMark, { ...props });
|
|
8196
8202
|
}, "CompactCoachMarkRoot");
|
|
8197
|
-
var CompactCoachMarkContent = forwardRef30(({ tag, title, level = "brand", className, side = "top", sideOffset = -15, ...props }, ref) =>
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
)
|
|
8203
|
+
var CompactCoachMarkContent = forwardRef30(({ tag, title, level = "brand", className, side = "top", sideOffset = -15, ...props }, ref) => {
|
|
8204
|
+
const [isHover, setIsHover] = useState19(false);
|
|
8205
|
+
return /* @__PURE__ */ jsxs16(
|
|
8206
|
+
PrimitiveCoachMark.Content,
|
|
8207
|
+
{
|
|
8208
|
+
ref,
|
|
8209
|
+
className: clsx21(compactCoachMarkVariants({ level }), className),
|
|
8210
|
+
side,
|
|
8211
|
+
sideOffset,
|
|
8212
|
+
onMouseEnter: () => setIsHover(true),
|
|
8213
|
+
onMouseLeave: () => setIsHover(false),
|
|
8214
|
+
...props,
|
|
8215
|
+
children: [
|
|
8216
|
+
tag && /* @__PURE__ */ jsx43(
|
|
8217
|
+
Tag,
|
|
8218
|
+
{
|
|
8219
|
+
color: level === "inverse" ? "neutral-label-primary" : "neutral-label-static-primary",
|
|
8220
|
+
backgroundColor: level === "inverse" ? "neutral-container-lowest" : "neutral-container-static-lowest",
|
|
8221
|
+
children: tag
|
|
8222
|
+
}
|
|
8223
|
+
),
|
|
8224
|
+
/* @__PURE__ */ jsx43(
|
|
8225
|
+
Caption,
|
|
8226
|
+
{
|
|
8227
|
+
size: 2,
|
|
8228
|
+
type: "normal",
|
|
8229
|
+
weight: "bold",
|
|
8230
|
+
color: "inverse-label-static-primary",
|
|
8231
|
+
className: style_module_default19.main,
|
|
8232
|
+
children: title
|
|
8233
|
+
}
|
|
8234
|
+
),
|
|
8235
|
+
isHover && /* @__PURE__ */ jsx43(PrimitiveCoachMark.Close, { className: style_module_default19.close })
|
|
8236
|
+
]
|
|
8237
|
+
}
|
|
8238
|
+
);
|
|
8239
|
+
});
|
|
8218
8240
|
CompactCoachMarkContent.displayName = "CompactCoachMarkContent";
|
|
8219
8241
|
var CompactCoachMark = Object.assign(CompactCoachMarkRoot, {
|
|
8220
8242
|
Content: CompactCoachMarkContent,
|