@liner-fe/prism 2.6.5 → 2.6.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/lib/index.css +130 -0
- package/lib/index.d.ts +39 -1
- package/lib/index.js +295 -128
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -1950,6 +1950,136 @@
|
|
|
1950
1950
|
margin-left: var(--lp-sys-padding-component-150);
|
|
1951
1951
|
}
|
|
1952
1952
|
|
|
1953
|
+
/* esbuild-sass-plugin:css-chunk:src/components/Snackbar/style.module.scss */
|
|
1954
|
+
._Viewport_1hil0_1 {
|
|
1955
|
+
--viewport-padding: 25px;
|
|
1956
|
+
position: fixed;
|
|
1957
|
+
bottom: 0;
|
|
1958
|
+
right: 0;
|
|
1959
|
+
display: flex;
|
|
1960
|
+
flex-direction: column;
|
|
1961
|
+
padding: var(--viewport-padding);
|
|
1962
|
+
gap: 10px;
|
|
1963
|
+
max-width: 400px;
|
|
1964
|
+
margin: 0;
|
|
1965
|
+
list-style: none;
|
|
1966
|
+
z-index: 2147483647;
|
|
1967
|
+
outline: none;
|
|
1968
|
+
}
|
|
1969
|
+
@media (max-width: 500px) {
|
|
1970
|
+
._Viewport_1hil0_1 {
|
|
1971
|
+
max-width: calc(100vw - 50px);
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
._NavigationWrapper_1hil0_22 {
|
|
1975
|
+
display: flex;
|
|
1976
|
+
align-items: center;
|
|
1977
|
+
justify-content: space-between;
|
|
1978
|
+
cursor: pointer;
|
|
1979
|
+
}
|
|
1980
|
+
._Wrapper_1hil0_29 {
|
|
1981
|
+
display: flex;
|
|
1982
|
+
align-items: center;
|
|
1983
|
+
justify-content: space-between;
|
|
1984
|
+
}
|
|
1985
|
+
._Root_1hil0_35 {
|
|
1986
|
+
padding: var(--lp-sys-padding-component-400);
|
|
1987
|
+
border-radius: var(--lp-sys-radius-m);
|
|
1988
|
+
background: var(--inverse-container-static-high);
|
|
1989
|
+
position: relative;
|
|
1990
|
+
}
|
|
1991
|
+
._Root_1hil0_35:hover ._CloseButton_1hil0_41 {
|
|
1992
|
+
display: flex !important;
|
|
1993
|
+
}
|
|
1994
|
+
._CloseButton_1hil0_41 {
|
|
1995
|
+
position: absolute;
|
|
1996
|
+
top: -8px;
|
|
1997
|
+
right: -8px;
|
|
1998
|
+
display: none !important;
|
|
1999
|
+
}
|
|
2000
|
+
._Content_1hil0_52 {
|
|
2001
|
+
display: flex;
|
|
2002
|
+
flex-direction: column;
|
|
2003
|
+
gap: var(--lp-sys-gap-positive-100);
|
|
2004
|
+
}
|
|
2005
|
+
._MarginRight12_1hil0_58 {
|
|
2006
|
+
margin-right: var(--lp-pri-size-12);
|
|
2007
|
+
}
|
|
2008
|
+
._ContentWrapper_1hil0_62 {
|
|
2009
|
+
display: flex;
|
|
2010
|
+
align-items: center;
|
|
2011
|
+
gap: var(--lp-sys-gap-positive-200);
|
|
2012
|
+
}
|
|
2013
|
+
._gap300_1hil0_68 {
|
|
2014
|
+
display: flex;
|
|
2015
|
+
flex-direction: column;
|
|
2016
|
+
gap: var(--lp-sys-gap-positive-300);
|
|
2017
|
+
}
|
|
2018
|
+
._minWidth32_1hil0_74 {
|
|
2019
|
+
min-width: 32px;
|
|
2020
|
+
min-height: 32px;
|
|
2021
|
+
}
|
|
2022
|
+
._minWidth24_1hil0_79 {
|
|
2023
|
+
min-width: 24px;
|
|
2024
|
+
min-height: 24px;
|
|
2025
|
+
}
|
|
2026
|
+
._JustifyEnd_1hil0_84 {
|
|
2027
|
+
justify-content: end;
|
|
2028
|
+
}
|
|
2029
|
+
._Root_1hil0_35[data-state=open] {
|
|
2030
|
+
animation: _slideIn_1hil0_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
2031
|
+
}
|
|
2032
|
+
._Root_1hil0_35[data-state=closed] {
|
|
2033
|
+
animation: _hide_1hil0_1 100ms ease-in;
|
|
2034
|
+
}
|
|
2035
|
+
._Root_1hil0_35[data-swipe=move] {
|
|
2036
|
+
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
2037
|
+
}
|
|
2038
|
+
._Root_1hil0_35[data-swipe=cancel] {
|
|
2039
|
+
transform: translateX(0);
|
|
2040
|
+
transition: transform 200ms ease-out;
|
|
2041
|
+
}
|
|
2042
|
+
._Root_1hil0_35[data-swipe=end] {
|
|
2043
|
+
animation: _swipeOut_1hil0_1 100ms ease-out;
|
|
2044
|
+
}
|
|
2045
|
+
@keyframes _hide_1hil0_1 {
|
|
2046
|
+
from {
|
|
2047
|
+
opacity: 1;
|
|
2048
|
+
}
|
|
2049
|
+
to {
|
|
2050
|
+
opacity: 0;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
@keyframes _slideIn_1hil0_1 {
|
|
2054
|
+
from {
|
|
2055
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
2056
|
+
}
|
|
2057
|
+
to {
|
|
2058
|
+
transform: translateX(0);
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
@keyframes _swipeOut_1hil0_1 {
|
|
2062
|
+
from {
|
|
2063
|
+
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
2064
|
+
}
|
|
2065
|
+
to {
|
|
2066
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/* esbuild-sass-plugin:css-chunk:src/components/Snackbar/SnackbarIcon/style.module.scss */
|
|
2071
|
+
._container_1witc_1 {
|
|
2072
|
+
margin-right: 6px;
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
/* esbuild-sass-plugin:css-chunk:src/components/Snackbar/SnackbarButton/style.module.scss */
|
|
2076
|
+
._Container_1kn7v_1 {
|
|
2077
|
+
display: flex;
|
|
2078
|
+
align-items: center;
|
|
2079
|
+
gap: var(--lp-sys-gap-positive-400);
|
|
2080
|
+
padding: 0 4px;
|
|
2081
|
+
}
|
|
2082
|
+
|
|
1953
2083
|
/* esbuild-sass-plugin:css-chunk:src/components/coach-mark/primitive/style.module.scss */
|
|
1954
2084
|
._anchor_1pmfi_1 {
|
|
1955
2085
|
transform: rotate(270deg) translateX(7px);
|
package/lib/index.d.ts
CHANGED
|
@@ -466,6 +466,44 @@ declare const List: (({ children, className, ...props }: ListRootProps) => react
|
|
|
466
466
|
Item: ({ value, text, disabled, icon, onClick }: ItemProps) => react_jsx_runtime.JSX.Element;
|
|
467
467
|
};
|
|
468
468
|
|
|
469
|
+
interface ISnackbarBase extends ToastProps {
|
|
470
|
+
title: string;
|
|
471
|
+
description?: string;
|
|
472
|
+
position?: 'left' | 'right';
|
|
473
|
+
}
|
|
474
|
+
interface ButtonType {
|
|
475
|
+
onClick: () => void;
|
|
476
|
+
text: string;
|
|
477
|
+
}
|
|
478
|
+
interface ISnackbarBasic {
|
|
479
|
+
kind?: 'basic';
|
|
480
|
+
icon?: Pick<IconProps, 'name' | 'fill' | 'thick'>;
|
|
481
|
+
button?: {
|
|
482
|
+
text?: ButtonType;
|
|
483
|
+
basic?: ButtonType;
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
interface ISnackbarNavigation {
|
|
487
|
+
kind: 'navigation';
|
|
488
|
+
button: {
|
|
489
|
+
onClick: () => void;
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
interface ISnackbarExtended {
|
|
493
|
+
kind: 'extended';
|
|
494
|
+
button?: {
|
|
495
|
+
text?: ButtonType;
|
|
496
|
+
basic?: ButtonType;
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
type SnackbarProp = ISnackbarBase & (ISnackbarBasic | ISnackbarNavigation | ISnackbarExtended);
|
|
500
|
+
type SnackbarPropWithId = SnackbarProp & {
|
|
501
|
+
snackbarId: number;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
declare const Snackbar: () => react_jsx_runtime.JSX.Element;
|
|
505
|
+
declare const SingleSnackbar: (props: SnackbarPropWithId) => react_jsx_runtime.JSX.Element;
|
|
506
|
+
|
|
469
507
|
declare const defaultLabelVariants: (props?: ({
|
|
470
508
|
level?: "primary" | "secondary" | undefined;
|
|
471
509
|
position?: "top" | "right" | undefined;
|
|
@@ -637,4 +675,4 @@ interface TagProps extends Omit<IPropsNormalBold, 'type' | 'size' | 'weight'> {
|
|
|
637
675
|
}
|
|
638
676
|
declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
639
677
|
|
|
640
|
-
export { type BaseCoachMarkContentProps, type BasicColorType, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, Icon, IconButton, type IconButtonLevelType, type IconButtonProps, type IconColorType, type IconComponent, type IconComponentProps, type IconKey, type IconMapType, type IconProps, type IconSizeKey, type IconSizeType, type ItemProps, Label, List, Loading, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, Slider, Tag, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, getIconComponent, iconKeyOptions, iconMap, isEmptyObject, objectToArray, rootMediaStyle, useToast };
|
|
678
|
+
export { type BaseCoachMarkContentProps, type BasicColorType, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, Icon, IconButton, type IconButtonLevelType, type IconButtonProps, type IconColorType, type IconComponent, type IconComponentProps, type IconKey, type IconMapType, type IconProps, type IconSizeKey, type IconSizeType, type ItemProps, Label, List, Loading, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, SingleSnackbar, Slider, Snackbar, Tag, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, getIconComponent, iconKeyOptions, iconMap, isEmptyObject, objectToArray, rootMediaStyle, useToast };
|
package/lib/index.js
CHANGED
|
@@ -52,7 +52,9 @@ __export(index_exports, {
|
|
|
52
52
|
PrimitiveCoachMark: () => PrimitiveCoachMark,
|
|
53
53
|
Radio: () => Radio,
|
|
54
54
|
Select: () => Select,
|
|
55
|
+
SingleSnackbar: () => SingleSnackbar,
|
|
55
56
|
Slider: () => Slider,
|
|
57
|
+
Snackbar: () => Snackbar,
|
|
56
58
|
Tag: () => Tag,
|
|
57
59
|
TextButton: () => TextButton,
|
|
58
60
|
Textfield: () => Textfield,
|
|
@@ -14288,13 +14290,13 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
14288
14290
|
const BaseContext = React2.createContext(defaultContext);
|
|
14289
14291
|
const index2 = defaultContexts.length;
|
|
14290
14292
|
defaultContexts = [...defaultContexts, defaultContext];
|
|
14291
|
-
const
|
|
14293
|
+
const Provider3 = /* @__PURE__ */ __name((props) => {
|
|
14292
14294
|
const { scope, children, ...context } = props;
|
|
14293
14295
|
const Context = scope?.[scopeName]?.[index2] || BaseContext;
|
|
14294
14296
|
const value = React2.useMemo(() => context, Object.values(context));
|
|
14295
14297
|
return /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Context.Provider, { value, children });
|
|
14296
14298
|
}, "Provider");
|
|
14297
|
-
|
|
14299
|
+
Provider3.displayName = rootComponentName + "Provider";
|
|
14298
14300
|
function useContext22(consumerName, scope) {
|
|
14299
14301
|
const Context = scope?.[scopeName]?.[index2] || BaseContext;
|
|
14300
14302
|
const context = React2.useContext(Context);
|
|
@@ -14303,7 +14305,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
14303
14305
|
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
14304
14306
|
}
|
|
14305
14307
|
__name(useContext22, "useContext2");
|
|
14306
|
-
return [
|
|
14308
|
+
return [Provider3, useContext22];
|
|
14307
14309
|
}
|
|
14308
14310
|
__name(createContext32, "createContext3");
|
|
14309
14311
|
const createScope = /* @__PURE__ */ __name(() => {
|
|
@@ -17601,13 +17603,178 @@ var Item = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
17601
17603
|
}, "Item");
|
|
17602
17604
|
var List = Object.assign(ListRoot, { Item });
|
|
17603
17605
|
|
|
17606
|
+
// src/components/Snackbar/style.module.scss
|
|
17607
|
+
var style_module_default17 = {
|
|
17608
|
+
"Viewport": "_Viewport_1hil0_1",
|
|
17609
|
+
"NavigationWrapper": "_NavigationWrapper_1hil0_22",
|
|
17610
|
+
"Wrapper": "_Wrapper_1hil0_29",
|
|
17611
|
+
"Root": "_Root_1hil0_35",
|
|
17612
|
+
"CloseButton": "_CloseButton_1hil0_41",
|
|
17613
|
+
"Content": "_Content_1hil0_52",
|
|
17614
|
+
"MarginRight12": "_MarginRight12_1hil0_58",
|
|
17615
|
+
"ContentWrapper": "_ContentWrapper_1hil0_62",
|
|
17616
|
+
"gap300": "_gap300_1hil0_68",
|
|
17617
|
+
"minWidth32": "_minWidth32_1hil0_74",
|
|
17618
|
+
"minWidth24": "_minWidth24_1hil0_79",
|
|
17619
|
+
"JustifyEnd": "_JustifyEnd_1hil0_84",
|
|
17620
|
+
"slideIn": "_slideIn_1hil0_1",
|
|
17621
|
+
"hide": "_hide_1hil0_1",
|
|
17622
|
+
"swipeOut": "_swipeOut_1hil0_1"
|
|
17623
|
+
};
|
|
17624
|
+
|
|
17625
|
+
// src/components/Snackbar/index.tsx
|
|
17626
|
+
var import_radix_ui10 = require("radix-ui");
|
|
17627
|
+
var import_recoil4 = require("recoil");
|
|
17628
|
+
|
|
17629
|
+
// src/hooks/useSnackbar.ts
|
|
17630
|
+
var import_recoil3 = require("recoil");
|
|
17631
|
+
var snackbarAtom = (0, import_recoil3.atom)({
|
|
17632
|
+
key: "snackbarAtom",
|
|
17633
|
+
default: []
|
|
17634
|
+
});
|
|
17635
|
+
|
|
17636
|
+
// src/components/Snackbar/SnackbarIcon/style.module.scss
|
|
17637
|
+
var style_module_default18 = {
|
|
17638
|
+
"container": "_container_1witc_1"
|
|
17639
|
+
};
|
|
17640
|
+
|
|
17641
|
+
// src/components/Snackbar/SnackbarIcon/index.tsx
|
|
17642
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
17643
|
+
var SnackbarIcon = /* @__PURE__ */ __name((props) => {
|
|
17644
|
+
const { icon } = props;
|
|
17645
|
+
if (!icon) return null;
|
|
17646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Icon, { ...icon, size: "m", className: style_module_default18.container });
|
|
17647
|
+
}, "SnackbarIcon");
|
|
17648
|
+
|
|
17649
|
+
// src/components/Snackbar/SnackbarTitle/index.tsx
|
|
17650
|
+
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
17651
|
+
var SnackbarTitle = /* @__PURE__ */ __name(({ title }) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(Paragraph, { type: "normal", weight: "medium", size: 3, color: "inverse-label-static-primary", children: title }), "SnackbarTitle");
|
|
17652
|
+
|
|
17653
|
+
// src/components/Snackbar/SnackbarDescription/index.tsx
|
|
17654
|
+
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
17655
|
+
var SnackbarDescription = /* @__PURE__ */ __name(({ description }) => {
|
|
17656
|
+
if (!description) {
|
|
17657
|
+
return null;
|
|
17658
|
+
}
|
|
17659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Paragraph, { type: "normal", weight: "regular", size: 4, color: "inverse-label-static-secondary", children: description });
|
|
17660
|
+
}, "SnackbarDescription");
|
|
17661
|
+
|
|
17662
|
+
// src/components/Snackbar/index.tsx
|
|
17663
|
+
var import_clsx19 = __toESM(require("clsx"));
|
|
17664
|
+
|
|
17665
|
+
// src/components/Snackbar/SnackbarClose/index.tsx
|
|
17666
|
+
var import_jsx_runtime214 = require("react/jsx-runtime");
|
|
17667
|
+
var SnackbarClose = /* @__PURE__ */ __name(({ onCloseSnackbar, className }) => {
|
|
17668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
17669
|
+
IconButton,
|
|
17670
|
+
{
|
|
17671
|
+
icon: { name: "close-fill", fill: true, thick: true, type: "neutral-label-static-secondary" },
|
|
17672
|
+
level: "static",
|
|
17673
|
+
size: "xs",
|
|
17674
|
+
className,
|
|
17675
|
+
fill: false,
|
|
17676
|
+
onClick: onCloseSnackbar
|
|
17677
|
+
}
|
|
17678
|
+
);
|
|
17679
|
+
}, "SnackbarClose");
|
|
17680
|
+
|
|
17681
|
+
// src/components/Snackbar/SnackbarButton/style.module.scss
|
|
17682
|
+
var style_module_default19 = {
|
|
17683
|
+
"Container": "_Container_1kn7v_1"
|
|
17684
|
+
};
|
|
17685
|
+
|
|
17686
|
+
// src/components/Snackbar/SnackbarButton/index.tsx
|
|
17687
|
+
var import_clsx18 = __toESM(require("clsx"));
|
|
17688
|
+
var import_jsx_runtime215 = require("react/jsx-runtime");
|
|
17689
|
+
var SnackbarButton = /* @__PURE__ */ __name(({ button, containerStyle }) => {
|
|
17690
|
+
if (button?.text || button?.basic) {
|
|
17691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)("div", { className: (0, import_clsx18.default)(style_module_default19.Container, containerStyle), children: [
|
|
17692
|
+
button?.text && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(TextButton, { size: "s", onClick: button.text.onClick, children: button.text.text }),
|
|
17693
|
+
button?.basic && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Button, { size: "s", onClick: button.basic.onClick, fill: true, children: button.basic.text })
|
|
17694
|
+
] });
|
|
17695
|
+
}
|
|
17696
|
+
return null;
|
|
17697
|
+
}, "SnackbarButton");
|
|
17698
|
+
|
|
17699
|
+
// src/components/Snackbar/index.tsx
|
|
17700
|
+
var import_jsx_runtime216 = require("react/jsx-runtime");
|
|
17701
|
+
var import_react24 = (
|
|
17702
|
+
// eslint-disable-next-line react/prop-types
|
|
17703
|
+
require("react")
|
|
17704
|
+
);
|
|
17705
|
+
var { Provider: Provider2, Root: Root3, Viewport: Viewport2 } = import_radix_ui10.Toast;
|
|
17706
|
+
var Snackbar = /* @__PURE__ */ __name(() => {
|
|
17707
|
+
const list = (0, import_recoil4.useRecoilValue)(snackbarAtom);
|
|
17708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Provider2, { children: [
|
|
17709
|
+
list.map((props) => /* @__PURE__ */ (0, import_react24.createElement)(SingleSnackbar, { ...props, key: props.snackbarId })),
|
|
17710
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Viewport2, { className: style_module_default17.Viewport })
|
|
17711
|
+
] });
|
|
17712
|
+
}, "Snackbar");
|
|
17713
|
+
var SingleSnackbar = /* @__PURE__ */ __name((props) => {
|
|
17714
|
+
const setSnackbar = (0, import_recoil4.useSetRecoilState)(snackbarAtom);
|
|
17715
|
+
const { snackbarId, description, title } = props;
|
|
17716
|
+
const onCloseSnackbar = /* @__PURE__ */ __name(() => {
|
|
17717
|
+
setSnackbar((prev) => prev.filter((snackbar) => snackbar.snackbarId !== snackbarId));
|
|
17718
|
+
}, "onCloseSnackbar");
|
|
17719
|
+
if (props.kind === "navigation") {
|
|
17720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
17721
|
+
Root3,
|
|
17722
|
+
{
|
|
17723
|
+
onSwipeEnd: onCloseSnackbar,
|
|
17724
|
+
className: (0, import_clsx19.default)(style_module_default17.Root, style_module_default17.NavigationWrapper),
|
|
17725
|
+
onClick: props.onClick,
|
|
17726
|
+
open: true,
|
|
17727
|
+
children: [
|
|
17728
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: (0, import_clsx19.default)(style_module_default17.Content, style_module_default17.MarginRight12), children: [
|
|
17729
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarTitle, { title }),
|
|
17730
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarDescription, { description })
|
|
17731
|
+
] }),
|
|
17732
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
17733
|
+
Icon,
|
|
17734
|
+
{
|
|
17735
|
+
name: "arrow-forward",
|
|
17736
|
+
fill: true,
|
|
17737
|
+
thick: true,
|
|
17738
|
+
type: "inverse-label-primary",
|
|
17739
|
+
className: description ? style_module_default17.minWidth32 : style_module_default17.minWidth24,
|
|
17740
|
+
size: description ? "l" : "m"
|
|
17741
|
+
}
|
|
17742
|
+
),
|
|
17743
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarClose, { onCloseSnackbar, className: style_module_default17.CloseButton })
|
|
17744
|
+
]
|
|
17745
|
+
}
|
|
17746
|
+
);
|
|
17747
|
+
}
|
|
17748
|
+
if (props.kind === "extended") {
|
|
17749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Root3, { onSwipeEnd: onCloseSnackbar, className: (0, import_clsx19.default)(style_module_default17.Root, style_module_default17.gap300), open: true, children: [
|
|
17750
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: style_module_default17.Content, children: [
|
|
17751
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarTitle, { title }),
|
|
17752
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarDescription, { description })
|
|
17753
|
+
] }),
|
|
17754
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarButton, { button: props.button, containerStyle: style_module_default17.JustifyEnd }),
|
|
17755
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarClose, { onCloseSnackbar, className: style_module_default17.CloseButton })
|
|
17756
|
+
] });
|
|
17757
|
+
}
|
|
17758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Root3, { onSwipeEnd: onCloseSnackbar, className: (0, import_clsx19.default)(style_module_default17.Root, style_module_default17.Wrapper), open: true, children: [
|
|
17759
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: style_module_default17.ContentWrapper, children: [
|
|
17760
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarIcon, { icon: props.icon }),
|
|
17761
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className: (0, import_clsx19.default)(style_module_default17.Content, style_module_default17.MarginRight12), children: [
|
|
17762
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarTitle, { title }),
|
|
17763
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarDescription, { description })
|
|
17764
|
+
] })
|
|
17765
|
+
] }),
|
|
17766
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarButton, { button: props.button }),
|
|
17767
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(SnackbarClose, { onCloseSnackbar, className: style_module_default17.CloseButton })
|
|
17768
|
+
] });
|
|
17769
|
+
}, "SingleSnackbar");
|
|
17770
|
+
|
|
17604
17771
|
// src/components/Logo/index.tsx
|
|
17605
17772
|
var import_design_token2 = require("@liner-fe/design-token");
|
|
17606
|
-
var
|
|
17773
|
+
var import_jsx_runtime217 = require("react/jsx-runtime");
|
|
17607
17774
|
var Logo = /* @__PURE__ */ __name((props) => {
|
|
17608
17775
|
if (props.type === "combination") {
|
|
17609
17776
|
const { width, height } = props;
|
|
17610
|
-
return /* @__PURE__ */ (0,
|
|
17777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
17611
17778
|
"svg",
|
|
17612
17779
|
{
|
|
17613
17780
|
width,
|
|
@@ -17617,50 +17784,50 @@ var Logo = /* @__PURE__ */ __name((props) => {
|
|
|
17617
17784
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17618
17785
|
className: props?.className,
|
|
17619
17786
|
children: [
|
|
17620
|
-
/* @__PURE__ */ (0,
|
|
17621
|
-
/* @__PURE__ */ (0,
|
|
17787
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("g", { clipPath: "url(#clip0_808_3091)", children: [
|
|
17788
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17622
17789
|
"path",
|
|
17623
17790
|
{
|
|
17624
17791
|
d: "M56.7088 28.6542H52.9156C52.6532 28.6542 52.4455 28.4483 52.4455 28.1883V8.38183C52.4455 5.67308 53.0796 3.77695 53.3091 3.19186C53.3419 3.09434 53.2763 2.99683 53.167 2.99683H46.2365C46.1381 2.99683 46.0616 3.09434 46.0944 3.19186C46.313 3.78778 46.9252 5.69475 46.9252 8.42517V25.7937C46.9252 28.8167 46.313 30.8103 46.0944 31.4171C46.0616 31.5146 46.1272 31.6121 46.2365 31.6121H66.2081C66.2846 31.6121 66.3502 31.5471 66.3502 31.4713V25.9562C66.3502 25.8479 66.23 25.7721 66.1316 25.8262C65.115 26.3788 60.6878 28.665 56.7088 28.665V28.6542Z",
|
|
17625
17792
|
fill: import_design_token2.vars.color["brand-label-secondary"]
|
|
17626
17793
|
}
|
|
17627
17794
|
),
|
|
17628
|
-
/* @__PURE__ */ (0,
|
|
17795
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17629
17796
|
"path",
|
|
17630
17797
|
{
|
|
17631
17798
|
d: "M94.4108 26.6714C94.4108 29.3259 93.8533 30.9078 93.5472 31.4496C93.4925 31.5471 93.5691 31.6663 93.6784 31.6663H100.347C100.456 31.6663 100.521 31.5579 100.478 31.4604C100.183 30.8753 99.5922 29.1309 99.5922 26.7147V18.816C99.5922 16.1614 98.991 14.1027 97.7886 12.6617C96.5752 11.2206 94.859 10.4947 92.6399 10.4947C88.8467 10.4947 86.1029 13.431 84.9661 15.5221C84.8458 15.7496 84.496 15.663 84.496 15.4029V11.3073C84.496 11.2314 84.4304 11.1664 84.3539 11.1664H79.0959C78.9866 11.1664 78.921 11.2748 78.9648 11.3723C79.238 11.9466 79.8065 13.7018 79.8065 16.118V26.6822C79.8065 29.3368 79.249 30.9187 78.9429 31.4604C78.8882 31.5579 78.9648 31.6771 79.0741 31.6771H85.7422C85.8515 31.6771 85.9171 31.5688 85.8734 31.4713C85.5892 30.8862 85.0098 29.1417 85.0098 26.7255V20.7013C85.0098 19.8886 85.1628 19.076 85.4798 18.3175C85.9499 17.2124 86.5402 16.3131 87.2617 15.6196C88.2564 14.6445 89.4042 14.1461 90.716 14.1461C91.9512 14.1461 92.8804 14.5578 93.4925 15.3813C94.1047 16.2047 94.4217 17.4182 94.4217 19.0218V26.693L94.4108 26.6714Z",
|
|
17632
17799
|
fill: import_design_token2.vars.color["brand-label-secondary"]
|
|
17633
17800
|
}
|
|
17634
17801
|
),
|
|
17635
|
-
/* @__PURE__ */ (0,
|
|
17802
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17636
17803
|
"path",
|
|
17637
17804
|
{
|
|
17638
17805
|
d: "M69.3127 31.6663H76.0026C76.112 31.6663 76.1776 31.558 76.1338 31.4604C75.8496 30.8754 75.2702 29.1309 75.2702 26.7147V11.3073C75.2702 11.2315 75.2047 11.1664 75.1281 11.1664H69.3345C69.2252 11.1664 69.1596 11.2748 69.2033 11.3723C69.4876 11.9466 70.056 13.7018 70.056 16.118V26.6822C70.056 29.3368 69.4876 30.9187 69.1924 31.4604C69.1378 31.558 69.2143 31.6771 69.3236 31.6771L69.3127 31.6663Z",
|
|
17639
17806
|
fill: import_design_token2.vars.color["brand-label-secondary"]
|
|
17640
17807
|
}
|
|
17641
17808
|
),
|
|
17642
|
-
/* @__PURE__ */ (0,
|
|
17809
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17643
17810
|
"path",
|
|
17644
17811
|
{
|
|
17645
17812
|
d: "M72.2642 8.71772C74.1335 8.71772 75.6529 7.21165 75.6529 5.35886C75.6529 3.50607 74.1335 2 72.2642 2C70.395 2 68.8755 3.50607 68.8755 5.35886C68.8755 7.21165 70.395 8.71772 72.2642 8.71772Z",
|
|
17646
17813
|
fill: import_design_token2.vars.color["brand-label-secondary"]
|
|
17647
17814
|
}
|
|
17648
17815
|
),
|
|
17649
|
-
/* @__PURE__ */ (0,
|
|
17816
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17650
17817
|
"path",
|
|
17651
17818
|
{
|
|
17652
17819
|
d: "M130.299 15.5438C130.299 15.8038 130.616 15.8905 130.736 15.663C132.201 12.8675 134.179 11.1339 136.573 11.1339H138.858C138.935 11.1339 139 11.1989 139 11.2748V15.5329C139 15.6088 138.935 15.6738 138.858 15.6738H135.218C133.556 15.6738 132.004 16.5081 130.769 17.8408C130.474 18.1658 130.31 18.5776 130.299 19.0001V26.693C130.299 29.1092 130.878 30.8645 131.162 31.4388C131.206 31.5363 131.14 31.6446 131.031 31.6446H124.341C124.232 31.6446 124.155 31.5254 124.21 31.4279C124.516 30.8862 125.074 29.3151 125.074 26.6497V16.0855C125.074 13.6693 124.505 11.914 124.221 11.3398C124.177 11.2423 124.243 11.1339 124.352 11.1339H130.146C130.222 11.1339 130.288 11.1989 130.288 11.2748V15.5221L130.299 15.5438Z",
|
|
17653
17820
|
fill: import_design_token2.vars.color["brand-label-secondary"]
|
|
17654
17821
|
}
|
|
17655
17822
|
),
|
|
17656
|
-
/* @__PURE__ */ (0,
|
|
17823
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17657
17824
|
"path",
|
|
17658
17825
|
{
|
|
17659
17826
|
d: "M113.967 29.4993C110.076 29.4993 108.152 26.5955 107.944 21.9581C107.944 21.8714 108.01 21.8064 108.086 21.8064H122.57C122.658 21.8064 122.723 21.7414 122.723 21.6547C122.669 14.4386 118.329 10.4405 112.47 10.4405C106.611 10.4405 101.998 14.7095 101.998 21.2213C101.998 28.1991 106.315 32.1647 113.279 32.1647C118.023 32.1647 121.488 29.4451 122.516 25.0244C122.538 24.9378 122.461 24.8511 122.374 24.8511H120.657C120.592 24.8511 120.537 24.8944 120.515 24.9486C119.63 27.7765 116.831 29.4885 113.956 29.4885L113.967 29.4993ZM112.514 13.1167C115.039 13.1167 116.657 15.1104 116.744 18.9026C116.744 18.9785 116.678 19.0543 116.591 19.0543H108.141C108.054 19.0543 107.988 18.9785 107.999 18.9026C108.207 15.2404 109.945 13.1276 112.524 13.1276L112.514 13.1167Z",
|
|
17660
17827
|
fill: import_design_token2.vars.color["brand-label-secondary"]
|
|
17661
17828
|
}
|
|
17662
17829
|
),
|
|
17663
|
-
/* @__PURE__ */ (0,
|
|
17830
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17664
17831
|
"path",
|
|
17665
17832
|
{
|
|
17666
17833
|
d: "M32.4411 12.4883V3.18101C32.4411 3.08349 32.3646 3.00764 32.2662 3.00764H22.7996C22.7996 3.00764 22.7122 3.02931 22.6794 3.06182L17.2465 8.43599C17.2465 8.43599 17.17 8.49017 17.1262 8.49017H7.1459C7.1459 8.49017 7.05845 8.51184 7.02566 8.54434L0.0514475 15.4246C-0.0578662 15.5329 0.0186534 15.728 0.171692 15.728H9.1682C9.43056 15.728 9.63825 15.9338 9.63825 16.1939V25.4361C9.63825 25.5337 9.71477 25.6095 9.81315 25.6095H19.1595C19.4218 25.6095 19.6295 25.8262 19.6295 26.0754V34.971C19.6295 35.1227 19.8154 35.2093 19.9356 35.101L26.8114 28.2966C26.8114 28.2966 26.8661 28.2207 26.8661 28.1666V18.1333C26.8661 18.1333 26.8879 18.0358 26.9207 18.0033L32.3864 12.5858C32.3864 12.5858 32.4411 12.51 32.4411 12.4558V12.4883ZM17.9133 16.8873V9.67119C17.9133 9.41114 18.121 9.20528 18.3833 9.20528H25.6855C25.9478 9.20528 26.1555 9.41114 26.1555 9.67119V16.8873C26.1555 17.1474 25.9478 17.3532 25.6855 17.3532H18.3833C18.121 17.3532 17.9133 17.1474 17.9133 16.8873Z",
|
|
@@ -17668,14 +17835,14 @@ var Logo = /* @__PURE__ */ __name((props) => {
|
|
|
17668
17835
|
}
|
|
17669
17836
|
)
|
|
17670
17837
|
] }),
|
|
17671
|
-
/* @__PURE__ */ (0,
|
|
17838
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("clipPath", { id: "clip0_808_3091", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("rect", { width: "139", height: "33", fill: "white", transform: "translate(0 2)" }) }) })
|
|
17672
17839
|
]
|
|
17673
17840
|
}
|
|
17674
17841
|
);
|
|
17675
17842
|
}
|
|
17676
17843
|
if (props.type === "circle") {
|
|
17677
17844
|
const { size: size4 } = props;
|
|
17678
|
-
return /* @__PURE__ */ (0,
|
|
17845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17679
17846
|
"svg",
|
|
17680
17847
|
{
|
|
17681
17848
|
width: size4,
|
|
@@ -17684,7 +17851,7 @@ var Logo = /* @__PURE__ */ __name((props) => {
|
|
|
17684
17851
|
fill: "none",
|
|
17685
17852
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17686
17853
|
className: props?.className,
|
|
17687
|
-
children: /* @__PURE__ */ (0,
|
|
17854
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17688
17855
|
"path",
|
|
17689
17856
|
{
|
|
17690
17857
|
d: "M38.2402 9.81371C38.2402 9.74309 38.204 9.68333 38.1895 9.65074C38.1569 9.63806 38.0972 9.60004 38.0266 9.60004H28.1578C28.1089 9.60004 28.0618 9.61996 28.0274 9.65436L22.3614 15.3094C22.327 15.3438 22.28 15.3638 22.2311 15.3638H11.8426C11.7937 15.3638 11.7466 15.3837 11.7122 15.4181L4.45458 22.663C4.33688 22.7789 4.42018 22.9799 4.58496 22.9799H13.9558C14.2292 22.9799 14.4501 23.2008 14.4501 23.4743V33.1946C14.4501 33.2471 14.4737 33.2942 14.5099 33.3286C14.5443 33.3648 14.5914 33.3883 14.6439 33.3883H24.3642C24.6376 33.3883 24.8585 33.6092 24.8585 33.8827V43.2535C24.8585 43.4183 25.0595 43.5016 25.1754 43.3839L32.4204 36.1262C32.4548 36.0918 32.4747 36.0448 32.4747 35.9959V25.6074C32.4747 25.5585 32.4946 25.5114 32.529 25.477L38.1841 19.8111C38.2185 19.7767 38.2384 19.7296 38.2384 19.6807V9.81371H38.2402ZM31.6979 24.2493C31.6979 24.5173 31.4806 24.7364 31.2108 24.7364H23.5892C23.3212 24.7364 23.1021 24.5191 23.1021 24.2493V16.6277C23.1021 16.3597 23.3193 16.1406 23.5892 16.1406H31.2108C31.4787 16.1406 31.6979 16.3579 31.6979 16.6277V24.2493Z",
|
|
@@ -17696,7 +17863,7 @@ var Logo = /* @__PURE__ */ __name((props) => {
|
|
|
17696
17863
|
}
|
|
17697
17864
|
if (props.type === "favicon") {
|
|
17698
17865
|
const { size: size4 } = props;
|
|
17699
|
-
return /* @__PURE__ */ (0,
|
|
17866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17700
17867
|
"svg",
|
|
17701
17868
|
{
|
|
17702
17869
|
width: size4,
|
|
@@ -17705,7 +17872,7 @@ var Logo = /* @__PURE__ */ __name((props) => {
|
|
|
17705
17872
|
fill: "none",
|
|
17706
17873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17707
17874
|
className: props?.className,
|
|
17708
|
-
children: /* @__PURE__ */ (0,
|
|
17875
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17709
17876
|
"path",
|
|
17710
17877
|
{
|
|
17711
17878
|
d: "M44.8002 16.2872V3.36077C44.8002 3.22533 44.6949 3.12 44.5595 3.12H31.5332C31.5332 3.12 31.4128 3.15009 31.3677 3.19524L23.8919 10.6591C23.8919 10.6591 23.7866 10.7344 23.7264 10.7344H9.99315C9.99315 10.7344 9.87282 10.7645 9.82769 10.8096L0.23095 20.3652C0.0805305 20.5157 0.185824 20.7866 0.396411 20.7866H12.7759C13.1369 20.7866 13.4227 21.0725 13.4227 21.4337V34.2698C13.4227 34.4052 13.528 34.5105 13.6634 34.5105H26.5242C26.8852 34.5105 27.171 34.8115 27.171 35.1576V47.5122C27.171 47.7229 27.4267 47.8432 27.5922 47.6928L37.0536 38.2425C37.0536 38.2425 37.1288 38.1371 37.1288 38.0619V24.1273C37.1288 24.1273 37.1589 23.9918 37.204 23.9467L44.7249 16.4226C44.7249 16.4226 44.8002 16.3173 44.8002 16.242V16.2872ZM24.8094 22.3967V12.3746C24.8094 12.0135 25.0952 11.7276 25.4562 11.7276H35.5042C35.8653 11.7276 36.1511 12.0135 36.1511 12.3746V22.3967C36.1511 22.7579 35.8653 23.0438 35.5042 23.0438H25.4562C25.0952 23.0438 24.8094 22.7579 24.8094 22.3967Z",
|
|
@@ -17715,7 +17882,7 @@ var Logo = /* @__PURE__ */ __name((props) => {
|
|
|
17715
17882
|
}
|
|
17716
17883
|
);
|
|
17717
17884
|
}
|
|
17718
|
-
return /* @__PURE__ */ (0,
|
|
17885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("svg", { width: 48, height: 48, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
17719
17886
|
"path",
|
|
17720
17887
|
{
|
|
17721
17888
|
d: "M38.2402 9.81371C38.2402 9.74309 38.204 9.68333 38.1895 9.65074C38.1569 9.63806 38.0972 9.60004 38.0266 9.60004H28.1578C28.1089 9.60004 28.0618 9.61996 28.0274 9.65436L22.3614 15.3094C22.327 15.3438 22.28 15.3638 22.2311 15.3638H11.8426C11.7937 15.3638 11.7466 15.3837 11.7122 15.4181L4.45458 22.663C4.33688 22.7789 4.42018 22.9799 4.58496 22.9799H13.9558C14.2292 22.9799 14.4501 23.2008 14.4501 23.4743V33.1946C14.4501 33.2471 14.4737 33.2942 14.5099 33.3286C14.5443 33.3648 14.5914 33.3883 14.6439 33.3883H24.3642C24.6376 33.3883 24.8585 33.6092 24.8585 33.8827V43.2535C24.8585 43.4183 25.0595 43.5016 25.1754 43.3839L32.4204 36.1262C32.4548 36.0918 32.4747 36.0448 32.4747 35.9959V25.6074C32.4747 25.5585 32.4946 25.5114 32.529 25.477L38.1841 19.8111C38.2185 19.7767 38.2384 19.7296 38.2384 19.6807V9.81371H38.2402ZM31.6979 24.2493C31.6979 24.5173 31.4806 24.7364 31.2108 24.7364H23.5892C23.3212 24.7364 23.1021 24.5191 23.1021 24.2493V16.6277C23.1021 16.3597 23.3193 16.1406 23.5892 16.1406H31.2108C31.4787 16.1406 31.6979 16.3579 31.6979 16.6277V24.2493Z",
|
|
@@ -17759,7 +17926,7 @@ __name(createFocusGuard, "createFocusGuard");
|
|
|
17759
17926
|
|
|
17760
17927
|
// ../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
17761
17928
|
var React19 = __toESM(require("react"), 1);
|
|
17762
|
-
var
|
|
17929
|
+
var import_jsx_runtime218 = require("react/jsx-runtime");
|
|
17763
17930
|
var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
|
|
17764
17931
|
var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
|
|
17765
17932
|
var EVENT_OPTIONS = { bubbles: false, cancelable: true };
|
|
@@ -17878,7 +18045,7 @@ var FocusScope = React19.forwardRef((props, forwardedRef) => {
|
|
|
17878
18045
|
},
|
|
17879
18046
|
[loop, trapped, focusScope.paused]
|
|
17880
18047
|
);
|
|
17881
|
-
return /* @__PURE__ */ (0,
|
|
18048
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });
|
|
17882
18049
|
});
|
|
17883
18050
|
FocusScope.displayName = FOCUS_SCOPE_NAME;
|
|
17884
18051
|
function focusFirst2(candidates, { select = false } = {}) {
|
|
@@ -19582,9 +19749,9 @@ var computePosition2 = /* @__PURE__ */ __name((reference, floating, options) =>
|
|
|
19582
19749
|
|
|
19583
19750
|
// ../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
19584
19751
|
var React21 = __toESM(require("react"), 1);
|
|
19585
|
-
var
|
|
19752
|
+
var import_react25 = require("react");
|
|
19586
19753
|
var ReactDOM4 = __toESM(require("react-dom"), 1);
|
|
19587
|
-
var index = typeof document !== "undefined" ?
|
|
19754
|
+
var index = typeof document !== "undefined" ? import_react25.useLayoutEffect : import_react25.useEffect;
|
|
19588
19755
|
function deepEqual(a, b) {
|
|
19589
19756
|
if (a === b) {
|
|
19590
19757
|
return true;
|
|
@@ -19864,11 +20031,11 @@ var arrow3 = /* @__PURE__ */ __name((options, deps) => ({
|
|
|
19864
20031
|
|
|
19865
20032
|
// ../../node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
19866
20033
|
var React25 = __toESM(require("react"), 1);
|
|
19867
|
-
var
|
|
20034
|
+
var import_jsx_runtime219 = require("react/jsx-runtime");
|
|
19868
20035
|
var NAME2 = "Arrow";
|
|
19869
20036
|
var Arrow = React25.forwardRef((props, forwardedRef) => {
|
|
19870
20037
|
const { children, width = 10, height = 5, ...arrowProps } = props;
|
|
19871
|
-
return /* @__PURE__ */ (0,
|
|
20038
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
19872
20039
|
Primitive.svg,
|
|
19873
20040
|
{
|
|
19874
20041
|
...arrowProps,
|
|
@@ -19877,12 +20044,12 @@ var Arrow = React25.forwardRef((props, forwardedRef) => {
|
|
|
19877
20044
|
height,
|
|
19878
20045
|
viewBox: "0 0 30 10",
|
|
19879
20046
|
preserveAspectRatio: "none",
|
|
19880
|
-
children: props.asChild ? children : /* @__PURE__ */ (0,
|
|
20047
|
+
children: props.asChild ? children : /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("polygon", { points: "0,0 30,0 15,10" })
|
|
19881
20048
|
}
|
|
19882
20049
|
);
|
|
19883
20050
|
});
|
|
19884
20051
|
Arrow.displayName = NAME2;
|
|
19885
|
-
var
|
|
20052
|
+
var Root4 = Arrow;
|
|
19886
20053
|
|
|
19887
20054
|
// ../../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
19888
20055
|
var React26 = __toESM(require("react"), 1);
|
|
@@ -19923,14 +20090,14 @@ function useSize(element) {
|
|
|
19923
20090
|
__name(useSize, "useSize");
|
|
19924
20091
|
|
|
19925
20092
|
// ../../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
19926
|
-
var
|
|
20093
|
+
var import_jsx_runtime220 = require("react/jsx-runtime");
|
|
19927
20094
|
var POPPER_NAME = "Popper";
|
|
19928
20095
|
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
19929
20096
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
19930
20097
|
var Popper = /* @__PURE__ */ __name((props) => {
|
|
19931
20098
|
const { __scopePopper, children } = props;
|
|
19932
20099
|
const [anchor, setAnchor] = React27.useState(null);
|
|
19933
|
-
return /* @__PURE__ */ (0,
|
|
20100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
19934
20101
|
}, "Popper");
|
|
19935
20102
|
Popper.displayName = POPPER_NAME;
|
|
19936
20103
|
var ANCHOR_NAME = "PopperAnchor";
|
|
@@ -19943,7 +20110,7 @@ var PopperAnchor = React27.forwardRef(
|
|
|
19943
20110
|
React27.useEffect(() => {
|
|
19944
20111
|
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
19945
20112
|
});
|
|
19946
|
-
return virtualRef ? null : /* @__PURE__ */ (0,
|
|
20113
|
+
return virtualRef ? null : /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
19947
20114
|
}
|
|
19948
20115
|
);
|
|
19949
20116
|
PopperAnchor.displayName = ANCHOR_NAME;
|
|
@@ -20036,7 +20203,7 @@ var PopperContent = React27.forwardRef(
|
|
|
20036
20203
|
useLayoutEffect2(() => {
|
|
20037
20204
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
20038
20205
|
}, [content]);
|
|
20039
|
-
return /* @__PURE__ */ (0,
|
|
20206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
20040
20207
|
"div",
|
|
20041
20208
|
{
|
|
20042
20209
|
ref: refs.setFloating,
|
|
@@ -20060,7 +20227,7 @@ var PopperContent = React27.forwardRef(
|
|
|
20060
20227
|
}
|
|
20061
20228
|
},
|
|
20062
20229
|
dir: props.dir,
|
|
20063
|
-
children: /* @__PURE__ */ (0,
|
|
20230
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
20064
20231
|
PopperContentProvider,
|
|
20065
20232
|
{
|
|
20066
20233
|
scope: __scopePopper,
|
|
@@ -20069,7 +20236,7 @@ var PopperContent = React27.forwardRef(
|
|
|
20069
20236
|
arrowX,
|
|
20070
20237
|
arrowY,
|
|
20071
20238
|
shouldHideArrow: cannotCenterArrow,
|
|
20072
|
-
children: /* @__PURE__ */ (0,
|
|
20239
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
20073
20240
|
Primitive.div,
|
|
20074
20241
|
{
|
|
20075
20242
|
"data-side": placedSide,
|
|
@@ -20106,7 +20273,7 @@ var PopperArrow = React27.forwardRef(/* @__PURE__ */ __name(function PopperArrow
|
|
|
20106
20273
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
20107
20274
|
// doesn't report size as we'd expect on SVG elements.
|
|
20108
20275
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
20109
|
-
/* @__PURE__ */ (0,
|
|
20276
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
20110
20277
|
"span",
|
|
20111
20278
|
{
|
|
20112
20279
|
ref: contentContext.onArrowChange,
|
|
@@ -20129,8 +20296,8 @@ var PopperArrow = React27.forwardRef(/* @__PURE__ */ __name(function PopperArrow
|
|
|
20129
20296
|
}[contentContext.placedSide],
|
|
20130
20297
|
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
20131
20298
|
},
|
|
20132
|
-
children: /* @__PURE__ */ (0,
|
|
20133
|
-
|
|
20299
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
20300
|
+
Root4,
|
|
20134
20301
|
{
|
|
20135
20302
|
...arrowProps,
|
|
20136
20303
|
ref: forwardedRef,
|
|
@@ -20370,9 +20537,9 @@ function assignRef(ref, value) {
|
|
|
20370
20537
|
__name(assignRef, "assignRef");
|
|
20371
20538
|
|
|
20372
20539
|
// ../../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
20373
|
-
var
|
|
20540
|
+
var import_react26 = require("react");
|
|
20374
20541
|
function useCallbackRef2(initialValue, callback) {
|
|
20375
|
-
var ref = (0,
|
|
20542
|
+
var ref = (0, import_react26.useState)(function() {
|
|
20376
20543
|
return {
|
|
20377
20544
|
// value
|
|
20378
20545
|
value: initialValue,
|
|
@@ -21041,7 +21208,7 @@ ReactRemoveScroll.classNames = RemoveScroll.classNames;
|
|
|
21041
21208
|
var Combination_default = ReactRemoveScroll;
|
|
21042
21209
|
|
|
21043
21210
|
// ../../node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
21044
|
-
var
|
|
21211
|
+
var import_jsx_runtime221 = require("react/jsx-runtime");
|
|
21045
21212
|
var POPOVER_NAME = "Popover";
|
|
21046
21213
|
var [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
21047
21214
|
createPopperScope
|
|
@@ -21066,7 +21233,7 @@ var Popover2 = /* @__PURE__ */ __name((props) => {
|
|
|
21066
21233
|
onChange: onOpenChange,
|
|
21067
21234
|
caller: POPOVER_NAME
|
|
21068
21235
|
});
|
|
21069
|
-
return /* @__PURE__ */ (0,
|
|
21236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Root22, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21070
21237
|
PopoverProvider,
|
|
21071
21238
|
{
|
|
21072
21239
|
scope: __scopePopover,
|
|
@@ -21095,7 +21262,7 @@ var PopoverAnchor2 = React35.forwardRef(
|
|
|
21095
21262
|
onCustomAnchorAdd();
|
|
21096
21263
|
return () => onCustomAnchorRemove();
|
|
21097
21264
|
}, [onCustomAnchorAdd, onCustomAnchorRemove]);
|
|
21098
|
-
return /* @__PURE__ */ (0,
|
|
21265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
21099
21266
|
}
|
|
21100
21267
|
);
|
|
21101
21268
|
PopoverAnchor2.displayName = ANCHOR_NAME2;
|
|
@@ -21106,7 +21273,7 @@ var PopoverTrigger2 = React35.forwardRef(
|
|
|
21106
21273
|
const context = usePopoverContext(TRIGGER_NAME, __scopePopover);
|
|
21107
21274
|
const popperScope = usePopperScope(__scopePopover);
|
|
21108
21275
|
const composedTriggerRef = useComposedRefs(forwardedRef, context.triggerRef);
|
|
21109
|
-
const trigger = /* @__PURE__ */ (0,
|
|
21276
|
+
const trigger = /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21110
21277
|
Primitive.button,
|
|
21111
21278
|
{
|
|
21112
21279
|
type: "button",
|
|
@@ -21119,7 +21286,7 @@ var PopoverTrigger2 = React35.forwardRef(
|
|
|
21119
21286
|
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
21120
21287
|
}
|
|
21121
21288
|
);
|
|
21122
|
-
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0,
|
|
21289
|
+
return context.hasCustomAnchor ? trigger : /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Anchor, { asChild: true, ...popperScope, children: trigger });
|
|
21123
21290
|
}
|
|
21124
21291
|
);
|
|
21125
21292
|
PopoverTrigger2.displayName = TRIGGER_NAME;
|
|
@@ -21130,7 +21297,7 @@ var [PortalProvider, usePortalContext] = createPopoverContext(PORTAL_NAME2, {
|
|
|
21130
21297
|
var PopoverPortal = /* @__PURE__ */ __name((props) => {
|
|
21131
21298
|
const { __scopePopover, forceMount, children, container } = props;
|
|
21132
21299
|
const context = usePopoverContext(PORTAL_NAME2, __scopePopover);
|
|
21133
|
-
return /* @__PURE__ */ (0,
|
|
21300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(PortalProvider, { scope: __scopePopover, forceMount, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Portal, { asChild: true, container, children }) }) });
|
|
21134
21301
|
}, "PopoverPortal");
|
|
21135
21302
|
PopoverPortal.displayName = PORTAL_NAME2;
|
|
21136
21303
|
var CONTENT_NAME2 = "PopoverContent";
|
|
@@ -21139,7 +21306,7 @@ var PopoverContent2 = React35.forwardRef(
|
|
|
21139
21306
|
const portalContext = usePortalContext(CONTENT_NAME2, props.__scopePopover);
|
|
21140
21307
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
21141
21308
|
const context = usePopoverContext(CONTENT_NAME2, props.__scopePopover);
|
|
21142
|
-
return /* @__PURE__ */ (0,
|
|
21309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Presence, { present: forceMount || context.open, children: context.modal ? /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(PopoverContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(PopoverContentNonModal, { ...contentProps, ref: forwardedRef }) });
|
|
21143
21310
|
}
|
|
21144
21311
|
);
|
|
21145
21312
|
PopoverContent2.displayName = CONTENT_NAME2;
|
|
@@ -21154,7 +21321,7 @@ var PopoverContentModal = React35.forwardRef(
|
|
|
21154
21321
|
const content = contentRef.current;
|
|
21155
21322
|
if (content) return hideOthers(content);
|
|
21156
21323
|
}, []);
|
|
21157
|
-
return /* @__PURE__ */ (0,
|
|
21324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Combination_default, { as: Slot2, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21158
21325
|
PopoverContentImpl,
|
|
21159
21326
|
{
|
|
21160
21327
|
...props,
|
|
@@ -21189,7 +21356,7 @@ var PopoverContentNonModal = React35.forwardRef(
|
|
|
21189
21356
|
const context = usePopoverContext(CONTENT_NAME2, props.__scopePopover);
|
|
21190
21357
|
const hasInteractedOutsideRef = React35.useRef(false);
|
|
21191
21358
|
const hasPointerDownOutsideRef = React35.useRef(false);
|
|
21192
|
-
return /* @__PURE__ */ (0,
|
|
21359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21193
21360
|
PopoverContentImpl,
|
|
21194
21361
|
{
|
|
21195
21362
|
...props,
|
|
@@ -21241,7 +21408,7 @@ var PopoverContentImpl = React35.forwardRef(
|
|
|
21241
21408
|
const context = usePopoverContext(CONTENT_NAME2, __scopePopover);
|
|
21242
21409
|
const popperScope = usePopperScope(__scopePopover);
|
|
21243
21410
|
useFocusGuards();
|
|
21244
|
-
return /* @__PURE__ */ (0,
|
|
21411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21245
21412
|
FocusScope,
|
|
21246
21413
|
{
|
|
21247
21414
|
asChild: true,
|
|
@@ -21249,7 +21416,7 @@ var PopoverContentImpl = React35.forwardRef(
|
|
|
21249
21416
|
trapped: trapFocus,
|
|
21250
21417
|
onMountAutoFocus: onOpenAutoFocus,
|
|
21251
21418
|
onUnmountAutoFocus: onCloseAutoFocus,
|
|
21252
|
-
children: /* @__PURE__ */ (0,
|
|
21419
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21253
21420
|
DismissableLayer,
|
|
21254
21421
|
{
|
|
21255
21422
|
asChild: true,
|
|
@@ -21259,7 +21426,7 @@ var PopoverContentImpl = React35.forwardRef(
|
|
|
21259
21426
|
onPointerDownOutside,
|
|
21260
21427
|
onFocusOutside,
|
|
21261
21428
|
onDismiss: /* @__PURE__ */ __name(() => context.onOpenChange(false), "onDismiss"),
|
|
21262
|
-
children: /* @__PURE__ */ (0,
|
|
21429
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21263
21430
|
Content,
|
|
21264
21431
|
{
|
|
21265
21432
|
"data-state": getState(context.open),
|
|
@@ -21292,7 +21459,7 @@ var PopoverClose = React35.forwardRef(
|
|
|
21292
21459
|
(props, forwardedRef) => {
|
|
21293
21460
|
const { __scopePopover, ...closeProps } = props;
|
|
21294
21461
|
const context = usePopoverContext(CLOSE_NAME2, __scopePopover);
|
|
21295
|
-
return /* @__PURE__ */ (0,
|
|
21462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
21296
21463
|
Primitive.button,
|
|
21297
21464
|
{
|
|
21298
21465
|
type: "button",
|
|
@@ -21309,7 +21476,7 @@ var PopoverArrow = React35.forwardRef(
|
|
|
21309
21476
|
(props, forwardedRef) => {
|
|
21310
21477
|
const { __scopePopover, ...arrowProps } = props;
|
|
21311
21478
|
const popperScope = usePopperScope(__scopePopover);
|
|
21312
|
-
return /* @__PURE__ */ (0,
|
|
21479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
21313
21480
|
}
|
|
21314
21481
|
);
|
|
21315
21482
|
PopoverArrow.displayName = ARROW_NAME2;
|
|
@@ -21326,30 +21493,30 @@ var Arrow22 = PopoverArrow;
|
|
|
21326
21493
|
|
|
21327
21494
|
// src/components/coach-mark/primitive/index.tsx
|
|
21328
21495
|
var import_cva11 = require("cva");
|
|
21329
|
-
var
|
|
21330
|
-
var
|
|
21496
|
+
var import_clsx20 = __toESM(require("clsx"));
|
|
21497
|
+
var import_react27 = require("react");
|
|
21331
21498
|
|
|
21332
21499
|
// src/components/coach-mark/primitive/style.module.scss
|
|
21333
|
-
var
|
|
21500
|
+
var style_module_default20 = {
|
|
21334
21501
|
"anchor": "_anchor_1pmfi_1",
|
|
21335
21502
|
"content": "_content_1pmfi_5",
|
|
21336
21503
|
"overlay": "_overlay_1pmfi_11"
|
|
21337
21504
|
};
|
|
21338
21505
|
|
|
21339
21506
|
// src/components/coach-mark/primitive/index.tsx
|
|
21340
|
-
var
|
|
21507
|
+
var import_jsx_runtime222 = require("react/jsx-runtime");
|
|
21341
21508
|
var primitiveCoachMarkVariants = (0, import_cva11.cva)({
|
|
21342
|
-
base:
|
|
21509
|
+
base: style_module_default20.content
|
|
21343
21510
|
});
|
|
21344
21511
|
var primitiveCoachMarkAnchorVariants = (0, import_cva11.cva)({
|
|
21345
|
-
base:
|
|
21512
|
+
base: style_module_default20.anchor
|
|
21346
21513
|
});
|
|
21347
|
-
var PrimitiveCoachMarkTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ (0,
|
|
21348
|
-
var PrimitiveCoachMarkRoot = /* @__PURE__ */ __name(({ trigger, children, ...props }) => /* @__PURE__ */ (0,
|
|
21349
|
-
/* @__PURE__ */ (0,
|
|
21514
|
+
var PrimitiveCoachMarkTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Trigger, { asChild: true, children: by }), "PrimitiveCoachMarkTrigger");
|
|
21515
|
+
var PrimitiveCoachMarkRoot = /* @__PURE__ */ __name(({ trigger, children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(Root23, { ...props, children: [
|
|
21516
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(PrimitiveCoachMarkTrigger, { by: trigger }),
|
|
21350
21517
|
children
|
|
21351
21518
|
] }), "PrimitiveCoachMarkRoot");
|
|
21352
|
-
var PrimitiveCoachMarkAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ (0,
|
|
21519
|
+
var PrimitiveCoachMarkAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
21353
21520
|
"svg",
|
|
21354
21521
|
{
|
|
21355
21522
|
className,
|
|
@@ -21358,7 +21525,7 @@ var PrimitiveCoachMarkAnchor = /* @__PURE__ */ __name(({ className }) => /* @__P
|
|
|
21358
21525
|
height: "24",
|
|
21359
21526
|
viewBox: "0 0 10 24",
|
|
21360
21527
|
fill: "none",
|
|
21361
|
-
children: /* @__PURE__ */ (0,
|
|
21528
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
21362
21529
|
"path",
|
|
21363
21530
|
{
|
|
21364
21531
|
fillRule: "evenodd",
|
|
@@ -21369,15 +21536,15 @@ var PrimitiveCoachMarkAnchor = /* @__PURE__ */ __name(({ className }) => /* @__P
|
|
|
21369
21536
|
)
|
|
21370
21537
|
}
|
|
21371
21538
|
), "PrimitiveCoachMarkAnchor");
|
|
21372
|
-
var PrimitiveCoachMarkContent = (0,
|
|
21539
|
+
var PrimitiveCoachMarkContent = (0, import_react27.forwardRef)(({ children, className, container, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Portal2, { container, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
|
|
21373
21540
|
Content2,
|
|
21374
21541
|
{
|
|
21375
21542
|
ref,
|
|
21376
|
-
className: (0,
|
|
21543
|
+
className: (0, import_clsx20.default)(primitiveCoachMarkVariants(), className),
|
|
21377
21544
|
...rest,
|
|
21378
21545
|
children: [
|
|
21379
21546
|
children,
|
|
21380
|
-
/* @__PURE__ */ (0,
|
|
21547
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Arrow22, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(PrimitiveCoachMarkAnchor, { className: (0, import_clsx20.default)(primitiveCoachMarkAnchorVariants()) }) })
|
|
21381
21548
|
]
|
|
21382
21549
|
}
|
|
21383
21550
|
) }));
|
|
@@ -21388,10 +21555,10 @@ var PrimitiveCoachMark = Object.assign(PrimitiveCoachMarkRoot, {
|
|
|
21388
21555
|
});
|
|
21389
21556
|
|
|
21390
21557
|
// src/components/coach-mark/compact/index.tsx
|
|
21391
|
-
var
|
|
21558
|
+
var import_react29 = require("react");
|
|
21392
21559
|
|
|
21393
21560
|
// src/components/coach-mark/compact/style.module.scss
|
|
21394
|
-
var
|
|
21561
|
+
var style_module_default21 = {
|
|
21395
21562
|
"content": "_content_1tkjk_1",
|
|
21396
21563
|
"slideIn": "_slideIn_1tkjk_1",
|
|
21397
21564
|
"closeButton": "_closeButton_1tkjk_20",
|
|
@@ -21401,14 +21568,14 @@ var style_module_default18 = {
|
|
|
21401
21568
|
};
|
|
21402
21569
|
|
|
21403
21570
|
// src/components/coach-mark/compact/index.tsx
|
|
21404
|
-
var
|
|
21571
|
+
var import_clsx21 = __toESM(require("clsx"));
|
|
21405
21572
|
var import_cva13 = require("cva");
|
|
21406
21573
|
|
|
21407
21574
|
// src/components/Tag/index.tsx
|
|
21408
|
-
var
|
|
21575
|
+
var import_react28 = require("react");
|
|
21409
21576
|
|
|
21410
21577
|
// src/components/Tag/style.module.scss
|
|
21411
|
-
var
|
|
21578
|
+
var style_module_default22 = {
|
|
21412
21579
|
"tag": "_tag_148vi_2",
|
|
21413
21580
|
"s": "_s_148vi_12",
|
|
21414
21581
|
"m": "_m_148vi_18",
|
|
@@ -21631,28 +21798,28 @@ var style_module_default19 = {
|
|
|
21631
21798
|
|
|
21632
21799
|
// src/components/Tag/index.tsx
|
|
21633
21800
|
var import_cva12 = require("cva");
|
|
21634
|
-
var
|
|
21801
|
+
var import_jsx_runtime223 = require("react/jsx-runtime");
|
|
21635
21802
|
var tagVariants = (0, import_cva12.cva)({
|
|
21636
|
-
base:
|
|
21803
|
+
base: style_module_default22.tag,
|
|
21637
21804
|
variants: {
|
|
21638
|
-
color: arrayToStyleObject(colorOptions,
|
|
21639
|
-
backgroundColor: arrayToStyleObject(colorOptions,
|
|
21640
|
-
borderColor: arrayToStyleObject(colorOptions,
|
|
21805
|
+
color: arrayToStyleObject(colorOptions, style_module_default22, "color"),
|
|
21806
|
+
backgroundColor: arrayToStyleObject(colorOptions, style_module_default22, "bg"),
|
|
21807
|
+
borderColor: arrayToStyleObject(colorOptions, style_module_default22, "border"),
|
|
21641
21808
|
size: {
|
|
21642
|
-
s:
|
|
21643
|
-
m:
|
|
21644
|
-
l:
|
|
21809
|
+
s: style_module_default22.s,
|
|
21810
|
+
m: style_module_default22.m,
|
|
21811
|
+
l: style_module_default22.l
|
|
21645
21812
|
},
|
|
21646
21813
|
thick: {
|
|
21647
|
-
true:
|
|
21814
|
+
true: style_module_default22.thick
|
|
21648
21815
|
},
|
|
21649
21816
|
radius: {
|
|
21650
|
-
square:
|
|
21651
|
-
rounded:
|
|
21817
|
+
square: style_module_default22.square,
|
|
21818
|
+
rounded: style_module_default22.rounded
|
|
21652
21819
|
}
|
|
21653
21820
|
}
|
|
21654
21821
|
});
|
|
21655
|
-
var Tag = (0,
|
|
21822
|
+
var Tag = (0, import_react28.forwardRef)(
|
|
21656
21823
|
({
|
|
21657
21824
|
children,
|
|
21658
21825
|
color = "neutral-label-static-primary",
|
|
@@ -21663,7 +21830,7 @@ var Tag = (0, import_react27.forwardRef)(
|
|
|
21663
21830
|
size: size4 = "s",
|
|
21664
21831
|
...rest
|
|
21665
21832
|
}, ref) => {
|
|
21666
|
-
return /* @__PURE__ */ (0,
|
|
21833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
21667
21834
|
Caption,
|
|
21668
21835
|
{
|
|
21669
21836
|
ref,
|
|
@@ -21680,30 +21847,30 @@ var Tag = (0, import_react27.forwardRef)(
|
|
|
21680
21847
|
);
|
|
21681
21848
|
|
|
21682
21849
|
// src/components/coach-mark/compact/index.tsx
|
|
21683
|
-
var
|
|
21850
|
+
var import_jsx_runtime224 = require("react/jsx-runtime");
|
|
21684
21851
|
var compactCoachMarkVariants = (0, import_cva13.cva)({
|
|
21685
|
-
base:
|
|
21852
|
+
base: style_module_default21.content,
|
|
21686
21853
|
variants: {
|
|
21687
21854
|
level: {
|
|
21688
|
-
brand:
|
|
21689
|
-
"inverse-static":
|
|
21690
|
-
inverse:
|
|
21855
|
+
brand: style_module_default21.brand,
|
|
21856
|
+
"inverse-static": style_module_default21["inverse-static"],
|
|
21857
|
+
inverse: style_module_default21.inverse
|
|
21691
21858
|
}
|
|
21692
21859
|
}
|
|
21693
21860
|
});
|
|
21694
21861
|
var CompactCoachMarkRoot = /* @__PURE__ */ __name((props) => {
|
|
21695
|
-
return /* @__PURE__ */ (0,
|
|
21862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(PrimitiveCoachMark, { ...props });
|
|
21696
21863
|
}, "CompactCoachMarkRoot");
|
|
21697
|
-
var CompactCoachMarkContent = (0,
|
|
21864
|
+
var CompactCoachMarkContent = (0, import_react29.forwardRef)(({ tag, title, level = "brand", className, side = "top", sideOffset = -15, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
21698
21865
|
PrimitiveCoachMark.Content,
|
|
21699
21866
|
{
|
|
21700
21867
|
ref,
|
|
21701
|
-
className: (0,
|
|
21868
|
+
className: (0, import_clsx21.default)(compactCoachMarkVariants({ level }), className),
|
|
21702
21869
|
side,
|
|
21703
21870
|
sideOffset,
|
|
21704
21871
|
...props,
|
|
21705
21872
|
children: [
|
|
21706
|
-
tag && /* @__PURE__ */ (0,
|
|
21873
|
+
tag && /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
21707
21874
|
Tag,
|
|
21708
21875
|
{
|
|
21709
21876
|
color: level === "inverse" ? "neutral-label-primary" : "neutral-label-static-primary",
|
|
@@ -21711,7 +21878,7 @@ var CompactCoachMarkContent = (0, import_react28.forwardRef)(({ tag, title, leve
|
|
|
21711
21878
|
children: tag
|
|
21712
21879
|
}
|
|
21713
21880
|
),
|
|
21714
|
-
/* @__PURE__ */ (0,
|
|
21881
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Caption, { size: 2, type: "normal", weight: "bold", color: "inverse-label-static-primary", children: title })
|
|
21715
21882
|
]
|
|
21716
21883
|
}
|
|
21717
21884
|
));
|
|
@@ -21722,7 +21889,7 @@ var CompactCoachMark = Object.assign(CompactCoachMarkRoot, {
|
|
|
21722
21889
|
});
|
|
21723
21890
|
|
|
21724
21891
|
// src/components/coach-mark/main/style.module.scss
|
|
21725
|
-
var
|
|
21892
|
+
var style_module_default23 = {
|
|
21726
21893
|
"content": "_content_196c9_1",
|
|
21727
21894
|
"slideIn": "_slideIn_196c9_1",
|
|
21728
21895
|
"brand": "_brand_196c9_19",
|
|
@@ -21739,9 +21906,9 @@ var style_module_default20 = {
|
|
|
21739
21906
|
};
|
|
21740
21907
|
|
|
21741
21908
|
// src/components/coach-mark/main/index.tsx
|
|
21742
|
-
var
|
|
21909
|
+
var import_react30 = require("react");
|
|
21743
21910
|
var import_cva14 = require("cva");
|
|
21744
|
-
var
|
|
21911
|
+
var import_clsx22 = __toESM(require("clsx"));
|
|
21745
21912
|
|
|
21746
21913
|
// src/constants/illust/size.ts
|
|
21747
21914
|
var ratio = {
|
|
@@ -21804,7 +21971,7 @@ var useIllust = /* @__PURE__ */ __name(({ darkSrc, src }) => {
|
|
|
21804
21971
|
}, "useIllust");
|
|
21805
21972
|
|
|
21806
21973
|
// src/components/Illust/index.tsx
|
|
21807
|
-
var
|
|
21974
|
+
var import_jsx_runtime225 = require("react/jsx-runtime");
|
|
21808
21975
|
var Illust = /* @__PURE__ */ __name((props) => {
|
|
21809
21976
|
const { src, width, margin } = props;
|
|
21810
21977
|
const { sourcePrefix, currentSourceByColorTheme } = useIllust({
|
|
@@ -21817,7 +21984,7 @@ var Illust = /* @__PURE__ */ __name((props) => {
|
|
|
21817
21984
|
margin
|
|
21818
21985
|
};
|
|
21819
21986
|
const source = `${sourcePrefix}${currentSourceByColorTheme}.webp`;
|
|
21820
|
-
return /* @__PURE__ */ (0,
|
|
21987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)("div", { style: css, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
21821
21988
|
import_image.default,
|
|
21822
21989
|
{
|
|
21823
21990
|
...props,
|
|
@@ -21830,14 +21997,14 @@ var Illust = /* @__PURE__ */ __name((props) => {
|
|
|
21830
21997
|
}, "Illust");
|
|
21831
21998
|
|
|
21832
21999
|
// src/components/coach-mark/main/index.tsx
|
|
21833
|
-
var
|
|
22000
|
+
var import_jsx_runtime226 = require("react/jsx-runtime");
|
|
21834
22001
|
var coachMarkVariants = (0, import_cva14.cva)({
|
|
21835
|
-
base:
|
|
22002
|
+
base: style_module_default23.content,
|
|
21836
22003
|
variants: {
|
|
21837
22004
|
level: {
|
|
21838
|
-
brand:
|
|
21839
|
-
"inverse-static":
|
|
21840
|
-
inverse:
|
|
22005
|
+
brand: style_module_default23.brand,
|
|
22006
|
+
"inverse-static": style_module_default23["inverse-static"],
|
|
22007
|
+
inverse: style_module_default23.inverse
|
|
21841
22008
|
}
|
|
21842
22009
|
}
|
|
21843
22010
|
});
|
|
@@ -21848,8 +22015,8 @@ var coachMarkLevelButtonLevelMap = {
|
|
|
21848
22015
|
};
|
|
21849
22016
|
var CoachMarkRoot = /* @__PURE__ */ __name((props) => {
|
|
21850
22017
|
const { children } = props;
|
|
21851
|
-
(0,
|
|
21852
|
-
if ((0,
|
|
22018
|
+
(0, import_react30.useEffect)(() => {
|
|
22019
|
+
if ((0, import_react30.isValidElement)(children) && "image" in children.props) {
|
|
21853
22020
|
const imageProps = children.props.image;
|
|
21854
22021
|
if (imageProps?.src) {
|
|
21855
22022
|
const img = new Image();
|
|
@@ -21857,9 +22024,9 @@ var CoachMarkRoot = /* @__PURE__ */ __name((props) => {
|
|
|
21857
22024
|
}
|
|
21858
22025
|
}
|
|
21859
22026
|
}, []);
|
|
21860
|
-
return /* @__PURE__ */ (0,
|
|
22027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(PrimitiveCoachMark, { ...props });
|
|
21861
22028
|
}, "CoachMarkRoot");
|
|
21862
|
-
var CoachMarkContent = (0,
|
|
22029
|
+
var CoachMarkContent = (0, import_react30.forwardRef)(
|
|
21863
22030
|
({
|
|
21864
22031
|
level = "brand",
|
|
21865
22032
|
width,
|
|
@@ -21877,32 +22044,32 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21877
22044
|
secondaryButton,
|
|
21878
22045
|
onClose,
|
|
21879
22046
|
...rest
|
|
21880
|
-
}, ref) => /* @__PURE__ */ (0,
|
|
22047
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
21881
22048
|
PrimitiveCoachMark.Content,
|
|
21882
22049
|
{
|
|
21883
22050
|
ref,
|
|
21884
|
-
className: (0,
|
|
22051
|
+
className: (0, import_clsx22.default)(coachMarkVariants({ level }), className),
|
|
21885
22052
|
style: { width: width ? `${width}px` : void 0 },
|
|
21886
22053
|
side,
|
|
21887
22054
|
sideOffset,
|
|
21888
22055
|
...rest,
|
|
21889
22056
|
children: [
|
|
21890
|
-
/* @__PURE__ */ (0,
|
|
22057
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21891
22058
|
IconButton,
|
|
21892
22059
|
{
|
|
21893
22060
|
icon: { name: "close" },
|
|
21894
22061
|
size: "xs",
|
|
21895
22062
|
level: level === "inverse" ? "inverse" : "inverse-static",
|
|
21896
22063
|
fill: false,
|
|
21897
|
-
className:
|
|
22064
|
+
className: style_module_default23.closeButton,
|
|
21898
22065
|
onClick: onClose
|
|
21899
22066
|
}
|
|
21900
22067
|
) }),
|
|
21901
|
-
/* @__PURE__ */ (0,
|
|
21902
|
-
illust && /* @__PURE__ */ (0,
|
|
21903
|
-
/* @__PURE__ */ (0,
|
|
21904
|
-
/* @__PURE__ */ (0,
|
|
21905
|
-
tag && /* @__PURE__ */ (0,
|
|
22068
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("header", { className: style_module_default23.top, children: [
|
|
22069
|
+
illust && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Illust, { width: 72, ...illust }),
|
|
22070
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { className: style_module_default23.main, children: [
|
|
22071
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { className: style_module_default23.title, children: [
|
|
22072
|
+
tag && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21906
22073
|
Tag,
|
|
21907
22074
|
{
|
|
21908
22075
|
color: level === "inverse" ? "neutral-label-primary" : "neutral-label-static-primary",
|
|
@@ -21910,7 +22077,7 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21910
22077
|
children: tag
|
|
21911
22078
|
}
|
|
21912
22079
|
),
|
|
21913
|
-
icon && /* @__PURE__ */ (0,
|
|
22080
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21914
22081
|
Icon,
|
|
21915
22082
|
{
|
|
21916
22083
|
name: icon.name,
|
|
@@ -21920,7 +22087,7 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21920
22087
|
type: level === "inverse" ? "inverse-label-primary" : "inverse-label-static-primary"
|
|
21921
22088
|
}
|
|
21922
22089
|
),
|
|
21923
|
-
title && /* @__PURE__ */ (0,
|
|
22090
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21924
22091
|
Paragraph,
|
|
21925
22092
|
{
|
|
21926
22093
|
size: 4,
|
|
@@ -21931,17 +22098,17 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21931
22098
|
}
|
|
21932
22099
|
)
|
|
21933
22100
|
] }),
|
|
21934
|
-
image && /* @__PURE__ */ (0,
|
|
22101
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: style_module_default23["image-container"], children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21935
22102
|
"img",
|
|
21936
22103
|
{
|
|
21937
|
-
className:
|
|
22104
|
+
className: style_module_default23.image,
|
|
21938
22105
|
src: image.src ?? "",
|
|
21939
22106
|
alt: image.alt ?? "",
|
|
21940
22107
|
width: 280,
|
|
21941
22108
|
height: 160
|
|
21942
22109
|
}
|
|
21943
22110
|
) }),
|
|
21944
|
-
description && /* @__PURE__ */ (0,
|
|
22111
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: style_module_default23.description, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21945
22112
|
Caption,
|
|
21946
22113
|
{
|
|
21947
22114
|
size: 2,
|
|
@@ -21953,8 +22120,8 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21953
22120
|
) })
|
|
21954
22121
|
] })
|
|
21955
22122
|
] }),
|
|
21956
|
-
/* @__PURE__ */ (0,
|
|
21957
|
-
step ? /* @__PURE__ */ (0,
|
|
22123
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("footer", { className: style_module_default23.footer, children: [
|
|
22124
|
+
step ? /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
21958
22125
|
Caption,
|
|
21959
22126
|
{
|
|
21960
22127
|
size: 2,
|
|
@@ -21967,9 +22134,9 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21967
22134
|
step.total
|
|
21968
22135
|
]
|
|
21969
22136
|
}
|
|
21970
|
-
) : /* @__PURE__ */ (0,
|
|
21971
|
-
/* @__PURE__ */ (0,
|
|
21972
|
-
secondaryButton && /* @__PURE__ */ (0,
|
|
22137
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className: style_module_default23.empty }),
|
|
22138
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { className: style_module_default23.buttonGroup, children: [
|
|
22139
|
+
secondaryButton && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
21973
22140
|
TextButton,
|
|
21974
22141
|
{
|
|
21975
22142
|
size: "s",
|
|
@@ -21977,7 +22144,7 @@ var CoachMarkContent = (0, import_react29.forwardRef)(
|
|
|
21977
22144
|
...secondaryButton
|
|
21978
22145
|
}
|
|
21979
22146
|
),
|
|
21980
|
-
primaryButton && /* @__PURE__ */ (0,
|
|
22147
|
+
primaryButton && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Button, { size: "s", level: coachMarkLevelButtonLevelMap[level], ...primaryButton })
|
|
21981
22148
|
] })
|
|
21982
22149
|
] })
|
|
21983
22150
|
]
|