@cleartrip/talos-markdown-widget 1.1.0-beta-260727-v2-7.0 → 1.1.0
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/MarkdownWidget.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { IWidgetProps } from "@cleartrip/talos-widget-types";
|
|
2
3
|
import { IMarkdownData, IMarkdownMetadata } from "./type";
|
|
3
|
-
declare const MarkdownWidget: (props: IWidgetProps<IMarkdownData, IMarkdownMetadata>) => import("react
|
|
4
|
+
declare const MarkdownWidget: (props: IWidgetProps<IMarkdownData, IMarkdownMetadata>) => import("react").JSX.Element;
|
|
4
5
|
export default MarkdownWidget;
|
|
5
6
|
//# sourceMappingURL=MarkdownWidget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownWidget.d.ts","sourceRoot":"","sources":["../packages/components/markdown-widget/src/MarkdownWidget.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAO1D,QAAA,MAAM,cAAc,UAAW,aAAa,aAAa,EAAE,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"MarkdownWidget.d.ts","sourceRoot":"","sources":["../packages/components/markdown-widget/src/MarkdownWidget.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAO1D,QAAA,MAAM,cAAc,UAAW,aAAa,aAAa,EAAE,iBAAiB,CAAC,gCAoD5E,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -696,7 +696,6 @@
|
|
|
696
696
|
pinaColada300: '#FFE46E',
|
|
697
697
|
black100: '#1B1B1B',
|
|
698
698
|
gray97: '#f7f7f7',
|
|
699
|
-
gray98: '#FAFBFF',
|
|
700
699
|
successGreen500: '#11A056',
|
|
701
700
|
purple700: '#7226E0',
|
|
702
701
|
neutralOpacity8: '#00000014',
|
|
@@ -733,16 +732,13 @@
|
|
|
733
732
|
13: '52px',
|
|
734
733
|
14: '56px',
|
|
735
734
|
15: '60px',
|
|
736
|
-
20: '80px',
|
|
737
735
|
50: '200px'
|
|
738
736
|
};
|
|
739
737
|
var spacing = {
|
|
740
738
|
0: '0px',
|
|
741
|
-
0.5: '2px',
|
|
742
739
|
1: '4px',
|
|
743
740
|
2: '8px',
|
|
744
741
|
3: '12px',
|
|
745
|
-
1.5: '6px',
|
|
746
742
|
4: '16px',
|
|
747
743
|
5: '20px',
|
|
748
744
|
6: '24px',
|
|
@@ -5089,7 +5085,8 @@
|
|
|
5089
5085
|
pinaColada500: colors.pinaColada500,
|
|
5090
5086
|
green700: colors.green700,
|
|
5091
5087
|
green100: colors.green100,
|
|
5092
|
-
red100: colors.red100
|
|
5088
|
+
red100: colors.red100,
|
|
5089
|
+
red500: colors.red500
|
|
5093
5090
|
},
|
|
5094
5091
|
button: {
|
|
5095
5092
|
outlinedPrimaryLabel: colors.neutral900,
|
|
@@ -5169,14 +5166,10 @@
|
|
|
5169
5166
|
lightRed: colors.red200,
|
|
5170
5167
|
black100: colors.black100,
|
|
5171
5168
|
gray97: colors.gray97,
|
|
5172
|
-
|
|
5169
|
+
darkRed: colors.red500,
|
|
5173
5170
|
orange500: colors.orange500,
|
|
5174
5171
|
purple700: colors.purple700,
|
|
5175
|
-
neutralOpacity8: colors.neutralOpacity8
|
|
5176
|
-
darkRed500: colors.red500,
|
|
5177
|
-
successGreen500: colors.successGreen500,
|
|
5178
|
-
blue100: colors.blue100,
|
|
5179
|
-
alertYellow500: colors.alert500
|
|
5172
|
+
neutralOpacity8: colors.neutralOpacity8
|
|
5180
5173
|
},
|
|
5181
5174
|
border: {
|
|
5182
5175
|
primary: colors.neutral900,
|
|
@@ -5540,7 +5533,7 @@
|
|
|
5540
5533
|
d = "date",
|
|
5541
5534
|
l = "Invalid Date",
|
|
5542
5535
|
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
5543
|
-
y = /\[([^\]]+)]|
|
|
5536
|
+
y = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
|
|
5544
5537
|
M = {
|
|
5545
5538
|
name: "en",
|
|
5546
5539
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -5880,9 +5873,9 @@
|
|
|
5880
5873
|
return this.$d.toUTCString();
|
|
5881
5874
|
}, M;
|
|
5882
5875
|
}(),
|
|
5883
|
-
|
|
5884
|
-
return O.prototype =
|
|
5885
|
-
|
|
5876
|
+
Y = _.prototype;
|
|
5877
|
+
return O.prototype = Y, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
|
|
5878
|
+
Y[t[1]] = function (e) {
|
|
5886
5879
|
return this.$g(e, t[0], t[1]);
|
|
5887
5880
|
};
|
|
5888
5881
|
}), O.extend = function (t, e) {
|
|
@@ -6045,13 +6038,13 @@
|
|
|
6045
6038
|
BorderStyle["SOLID"] = "SOLID";
|
|
6046
6039
|
BorderStyle["DOTTED"] = "DOTTED";
|
|
6047
6040
|
})(BorderStyle || (BorderStyle = {}));
|
|
6048
|
-
var IconPosition$
|
|
6041
|
+
var IconPosition$2;
|
|
6049
6042
|
(function (IconPosition) {
|
|
6050
6043
|
IconPosition["TOP"] = "top";
|
|
6051
6044
|
IconPosition["BOTTOM"] = "bottom";
|
|
6052
6045
|
IconPosition["LEFT"] = "left";
|
|
6053
6046
|
IconPosition["RIGHT"] = "right";
|
|
6054
|
-
})(IconPosition$
|
|
6047
|
+
})(IconPosition$2 || (IconPosition$2 = {}));
|
|
6055
6048
|
var WEEK_DAY_LABEL = {
|
|
6056
6049
|
0: 'Sun',
|
|
6057
6050
|
1: 'Mon',
|
|
@@ -6697,6 +6690,7 @@
|
|
|
6697
6690
|
TypographyColor["GREEN700"] = "green700";
|
|
6698
6691
|
TypographyColor["GREEN100"] = "green100";
|
|
6699
6692
|
TypographyColor["RED100"] = "red100";
|
|
6693
|
+
TypographyColor["RED500"] = "red500";
|
|
6700
6694
|
})(TypographyColor || (TypographyColor = {}));
|
|
6701
6695
|
var getTypographyVariant$1 = function (theme, variant) {
|
|
6702
6696
|
switch (variant) {
|
|
@@ -7100,6 +7094,10 @@
|
|
|
7100
7094
|
{
|
|
7101
7095
|
return theme.color.text.red100;
|
|
7102
7096
|
}
|
|
7097
|
+
case TypographyColor.RED500:
|
|
7098
|
+
{
|
|
7099
|
+
return theme.color.text.red500;
|
|
7100
|
+
}
|
|
7103
7101
|
default:
|
|
7104
7102
|
{
|
|
7105
7103
|
return theme.color.text.primary;
|
|
@@ -7925,22 +7923,17 @@
|
|
|
7925
7923
|
}));
|
|
7926
7924
|
});
|
|
7927
7925
|
|
|
7928
|
-
var dotAnimationKeyframe =
|
|
7929
|
-
var color1 = _a.color1,
|
|
7930
|
-
color2 = _a.color2;
|
|
7931
|
-
return keyframes(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n 0% { background-color: ", "; transform: scale(1); }\n 50% { background-color: ", "; transform: scale(1.2); }\n 100% { background-color: ", "; transform: scale(1); }\n"], ["\n 0% { background-color: ", "; transform: scale(1); }\n 50% { background-color: ", "; transform: scale(1.2); }\n 100% { background-color: ", "; transform: scale(1); }\n"])), color1, color2, color1);
|
|
7932
|
-
};
|
|
7926
|
+
var dotAnimationKeyframe = keyframes(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n 0% { background-color: var(--dot-color-1); transform: scale(1); }\n 50% { background-color: var(--dot-color-2); transform: scale(1.2); }\n 100% { background-color: var(--dot-color-1); transform: scale(1); }\n"], ["\n 0% { background-color: var(--dot-color-1); transform: scale(1); }\n 50% { background-color: var(--dot-color-2); transform: scale(1.2); }\n 100% { background-color: var(--dot-color-1); transform: scale(1); }\n"])));
|
|
7933
7927
|
var StyledLoaderDot = _default.div(function (_a) {
|
|
7934
7928
|
var theme = _a.theme,
|
|
7935
7929
|
dotId = _a.dotId,
|
|
7936
7930
|
variant = _a.variant,
|
|
7931
|
+
color1 = _a.color1,
|
|
7932
|
+
color2 = _a.color2,
|
|
7937
7933
|
_b = _a.css,
|
|
7938
7934
|
styleCss = _b === void 0 ? {} : _b;
|
|
7939
7935
|
var size = getLoaderDimension(variant, theme);
|
|
7940
|
-
return css(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n border-radius: ", ";\n background:
|
|
7941
|
-
color1: theme.color.background.defaultDark,
|
|
7942
|
-
color2: theme.color.background.defaultDarkest
|
|
7943
|
-
}), 1 / 3 * dotId, styleCss);
|
|
7936
|
+
return css(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n --dot-color-1: ", ";\n --dot-color-2: ", ";\n height: ", ";\n width: ", ";\n border-radius: ", ";\n background: var(--dot-color-1);\n animation: ", " ease-in-out 1s infinite;\n animation-delay: ", "s;\n ", ";\n "], ["\n --dot-color-1: ", ";\n --dot-color-2: ", ";\n height: ", ";\n width: ", ";\n border-radius: ", ";\n background: var(--dot-color-1);\n animation: ", " ease-in-out 1s infinite;\n animation-delay: ", "s;\n ", ";\n "])), color1 !== null && color1 !== void 0 ? color1 : theme.color.background.defaultDark, color2 !== null && color2 !== void 0 ? color2 : theme.color.background.defaultDarkest, size, size, theme.border.radius['50P'], dotAnimationKeyframe, 1 / 3 * dotId, styleCss);
|
|
7944
7937
|
});
|
|
7945
7938
|
var StyledLoaderWrapper = _default.div(function (_a) {
|
|
7946
7939
|
_a.theme;
|
|
@@ -7968,6 +7961,7 @@
|
|
|
7968
7961
|
var css = _a.css,
|
|
7969
7962
|
_b = _a.variant,
|
|
7970
7963
|
variant = _b === void 0 ? 'medium' : _b,
|
|
7964
|
+
dotColors = _a.dotColors,
|
|
7971
7965
|
_c = _a.styleConfig,
|
|
7972
7966
|
styleConfig = _c === void 0 ? {} : _c;
|
|
7973
7967
|
var theme = useTheme();
|
|
@@ -7986,6 +7980,8 @@
|
|
|
7986
7980
|
variant: variant,
|
|
7987
7981
|
theme: theme,
|
|
7988
7982
|
dotId: id,
|
|
7983
|
+
color1: dotColors === null || dotColors === void 0 ? void 0 : dotColors.primary,
|
|
7984
|
+
color2: dotColors === null || dotColors === void 0 ? void 0 : dotColors.secondary,
|
|
7989
7985
|
className: loaderCont === null || loaderCont === void 0 ? void 0 : loaderCont.className,
|
|
7990
7986
|
css: loaderCont === null || loaderCont === void 0 ? void 0 : loaderCont.css
|
|
7991
7987
|
}, id);
|
|
@@ -8041,11 +8037,11 @@
|
|
|
8041
8037
|
ButtonSize["MEDIUM"] = "medium";
|
|
8042
8038
|
ButtonSize["LARGE"] = "large";
|
|
8043
8039
|
})(ButtonSize$1 || (ButtonSize$1 = {}));
|
|
8044
|
-
var IconPosition$
|
|
8040
|
+
var IconPosition$1;
|
|
8045
8041
|
(function (IconPosition) {
|
|
8046
8042
|
IconPosition["LEFT"] = "left";
|
|
8047
8043
|
IconPosition["RIGHT"] = "right";
|
|
8048
|
-
})(IconPosition$
|
|
8044
|
+
})(IconPosition$1 || (IconPosition$1 = {}));
|
|
8049
8045
|
var ButtonVariant;
|
|
8050
8046
|
(function (ButtonVariant) {
|
|
8051
8047
|
ButtonVariant["OUTLINE"] = "outline";
|
|
@@ -15931,35 +15927,16 @@
|
|
|
15931
15927
|
}, getCheckboxColor(theme, !!disabled, !!checked)), rest);
|
|
15932
15928
|
};
|
|
15933
15929
|
var StyledRoot = _default.div(function (_a) {
|
|
15934
|
-
var css = _a.css
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
_a.className;
|
|
15938
|
-
_a.color;
|
|
15939
|
-
var theme = _a.theme,
|
|
15940
|
-
disabled = _a.disabled,
|
|
15941
|
-
rest = __rest$2(_a, ["css", "children", "onClick", "className", "color", "theme", "disabled"]);
|
|
15942
|
-
return getCheckboxRootStyles(__assign$4(__assign$4(__assign$4({}, rest), css), {
|
|
15943
|
-
theme: theme,
|
|
15944
|
-
disabled: disabled
|
|
15945
|
-
}));
|
|
15930
|
+
var css = _a.css,
|
|
15931
|
+
rest = __rest$2(_a, ["css"]);
|
|
15932
|
+
return getCheckboxRootStyles(__assign$4(__assign$4({}, rest), css));
|
|
15946
15933
|
});
|
|
15947
15934
|
var StyledCheckbox = _default.div(function (_a) {
|
|
15948
15935
|
var theme = _a.theme,
|
|
15949
15936
|
css = _a.css,
|
|
15950
|
-
|
|
15951
|
-
disabled = _a.disabled,
|
|
15952
|
-
width = _a.width,
|
|
15953
|
-
height = _a.height;
|
|
15954
|
-
_a.className;
|
|
15955
|
-
_a.children;
|
|
15956
|
-
var rest = __rest$2(_a, ["theme", "css", "checked", "disabled", "width", "height", "className", "children"]);
|
|
15937
|
+
rest = __rest$2(_a, ["theme", "css"]);
|
|
15957
15938
|
return getCheckboxStyles(__assign$4(__assign$4(__assign$4({}, rest), css), {
|
|
15958
|
-
theme: theme
|
|
15959
|
-
checked: checked,
|
|
15960
|
-
disabled: disabled,
|
|
15961
|
-
width: width,
|
|
15962
|
-
height: height
|
|
15939
|
+
theme: theme
|
|
15963
15940
|
}));
|
|
15964
15941
|
});
|
|
15965
15942
|
var Input$1 = _default.input(function (_a) {
|
|
@@ -16032,18 +16009,18 @@
|
|
|
16032
16009
|
}));
|
|
16033
16010
|
});
|
|
16034
16011
|
|
|
16035
|
-
var IconPosition
|
|
16012
|
+
var IconPosition;
|
|
16036
16013
|
(function (IconPosition) {
|
|
16037
16014
|
IconPosition["TOP"] = "top";
|
|
16038
16015
|
IconPosition["LEFT"] = "left";
|
|
16039
16016
|
IconPosition["RIGHT"] = "right";
|
|
16040
16017
|
IconPosition["END"] = "end";
|
|
16041
|
-
})(IconPosition
|
|
16042
|
-
var CounterOperation
|
|
16018
|
+
})(IconPosition || (IconPosition = {}));
|
|
16019
|
+
var CounterOperation;
|
|
16043
16020
|
(function (CounterOperation) {
|
|
16044
16021
|
CounterOperation["INCREMENT"] = "INCREMENT";
|
|
16045
16022
|
CounterOperation["DECREMENT"] = "DECREMENT";
|
|
16046
|
-
})(CounterOperation
|
|
16023
|
+
})(CounterOperation || (CounterOperation = {}));
|
|
16047
16024
|
|
|
16048
16025
|
var getStyledChipStyles = function (_a) {
|
|
16049
16026
|
var theme = _a.theme,
|
|
@@ -16305,7 +16282,7 @@
|
|
|
16305
16282
|
_c = _a.showIcon,
|
|
16306
16283
|
showIcon = _c === void 0 ? false : _c,
|
|
16307
16284
|
_d = _a.iconPosition,
|
|
16308
|
-
iconPosition = _d === void 0 ? IconPosition
|
|
16285
|
+
iconPosition = _d === void 0 ? IconPosition.LEFT : _d,
|
|
16309
16286
|
_e = _a.Icon,
|
|
16310
16287
|
Icon = _e === void 0 ? null : _e,
|
|
16311
16288
|
_f = _a.showCounter,
|
|
@@ -16333,7 +16310,7 @@
|
|
|
16333
16310
|
showShimmerAnimation = _r === void 0 ? false : _r,
|
|
16334
16311
|
id = _a.id;
|
|
16335
16312
|
var theme = useTheme();
|
|
16336
|
-
var showTopIcon = showIcon && iconPosition === IconPosition
|
|
16313
|
+
var showTopIcon = showIcon && iconPosition === IconPosition.TOP;
|
|
16337
16314
|
var chipStyles = getChipStyles({
|
|
16338
16315
|
isSelected: isSelected,
|
|
16339
16316
|
isDisabled: isDisabled,
|
|
@@ -16460,7 +16437,7 @@
|
|
|
16460
16437
|
css: root === null || root === void 0 ? void 0 : root.css,
|
|
16461
16438
|
id: id
|
|
16462
16439
|
}, {
|
|
16463
|
-
children: [showIcon && iconPosition === IconPosition
|
|
16440
|
+
children: [showIcon && iconPosition === IconPosition.TOP && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16464
16441
|
display: 'flex',
|
|
16465
16442
|
alignItems: 'center',
|
|
16466
16443
|
marginBottom: theme.spacing[1],
|
|
@@ -16475,7 +16452,7 @@
|
|
|
16475
16452
|
className: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.className,
|
|
16476
16453
|
css: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.css
|
|
16477
16454
|
}, {
|
|
16478
|
-
children: [showIcon && iconPosition === IconPosition
|
|
16455
|
+
children: [showIcon && iconPosition === IconPosition.LEFT && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16479
16456
|
display: 'flex',
|
|
16480
16457
|
alignItems: 'center',
|
|
16481
16458
|
justifyContent: 'center',
|
|
@@ -16493,8 +16470,8 @@
|
|
|
16493
16470
|
children: renderLabelComponent()
|
|
16494
16471
|
})), showShimmerAnimation && jsxRuntimeExports$2.jsx(AnimatedContainer, {
|
|
16495
16472
|
children: jsxRuntimeExports$2.jsx(ChipShimmer, {})
|
|
16496
|
-
}), showIcon && iconPosition === IconPosition
|
|
16497
|
-
children: renderPositionedIconComponent(iconPosition, IconPosition
|
|
16473
|
+
}), showIcon && iconPosition === IconPosition.RIGHT && jsxRuntimeExports$2.jsx(jsxRuntimeExports$2.Fragment, {
|
|
16474
|
+
children: renderPositionedIconComponent(iconPosition, IconPosition.RIGHT)
|
|
16498
16475
|
}), showCounter && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16499
16476
|
paddingLeft: theme.spacing[1],
|
|
16500
16477
|
className: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.className,
|
|
@@ -16512,8 +16489,8 @@
|
|
|
16512
16489
|
children: count
|
|
16513
16490
|
}))
|
|
16514
16491
|
}))
|
|
16515
|
-
})), showIcon && iconPosition === IconPosition
|
|
16516
|
-
children: renderPositionedIconComponent(iconPosition, IconPosition
|
|
16492
|
+
})), showIcon && iconPosition === IconPosition.END && jsxRuntimeExports$2.jsx(jsxRuntimeExports$2.Fragment, {
|
|
16493
|
+
children: renderPositionedIconComponent(iconPosition, IconPosition.END)
|
|
16517
16494
|
}), isDismissible && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16518
16495
|
paddingLeft: theme.spacing[1],
|
|
16519
16496
|
display: 'flex',
|
|
@@ -17603,19 +17580,6 @@
|
|
|
17603
17580
|
}, css));
|
|
17604
17581
|
});
|
|
17605
17582
|
|
|
17606
|
-
var IconPosition;
|
|
17607
|
-
(function (IconPosition) {
|
|
17608
|
-
IconPosition["TOP"] = "top";
|
|
17609
|
-
IconPosition["LEFT"] = "left";
|
|
17610
|
-
IconPosition["RIGHT"] = "right";
|
|
17611
|
-
IconPosition["END"] = "end";
|
|
17612
|
-
})(IconPosition || (IconPosition = {}));
|
|
17613
|
-
var CounterOperation;
|
|
17614
|
-
(function (CounterOperation) {
|
|
17615
|
-
CounterOperation["INCREMENT"] = "INCREMENT";
|
|
17616
|
-
CounterOperation["DECREMENT"] = "DECREMENT";
|
|
17617
|
-
})(CounterOperation || (CounterOperation = {}));
|
|
17618
|
-
|
|
17619
17583
|
var getStyledIconStyles = function (_a) {
|
|
17620
17584
|
_a.theme;
|
|
17621
17585
|
var cursor = _a.cursor;
|
|
@@ -21361,9 +21325,8 @@
|
|
|
21361
21325
|
crossColor: '#1A1A1A'
|
|
21362
21326
|
});
|
|
21363
21327
|
};
|
|
21364
|
-
var ModalWithCloseOverlay = React__default$1.forwardRef(function (
|
|
21365
|
-
var
|
|
21366
|
-
wrapperCss = _a.wrapperCss,
|
|
21328
|
+
var ModalWithCloseOverlay = React__default$1.forwardRef(function (_a, forwardedRef) {
|
|
21329
|
+
var wrapperCss = _a.wrapperCss,
|
|
21367
21330
|
isBack = _a.isBack,
|
|
21368
21331
|
children = _a.children,
|
|
21369
21332
|
_b = _a.variant,
|
|
@@ -21376,14 +21339,14 @@
|
|
|
21376
21339
|
var theme = useTheme();
|
|
21377
21340
|
var closeButtonStyles = getCloseButtonStyle({
|
|
21378
21341
|
theme: theme,
|
|
21379
|
-
isLeft: isBack,
|
|
21342
|
+
isLeft: isBack !== null && isBack !== void 0 ? isBack : false,
|
|
21380
21343
|
variant: variant,
|
|
21381
21344
|
isCenter: isCenter,
|
|
21382
21345
|
isTop: isTop
|
|
21383
21346
|
});
|
|
21384
21347
|
var CloseIcon = getCloseIcon(isBack, variant);
|
|
21385
21348
|
var onCloseClick = function (e) {
|
|
21386
|
-
onClose(e);
|
|
21349
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
21387
21350
|
};
|
|
21388
21351
|
return jsxRuntimeExports$2.jsx(Modal, __assign$4({
|
|
21389
21352
|
ref: forwardedRef,
|
|
@@ -21409,6 +21372,7 @@
|
|
|
21409
21372
|
}))
|
|
21410
21373
|
}));
|
|
21411
21374
|
});
|
|
21375
|
+
ModalWithCloseOverlay.displayName = 'ModalWithCloseOverlay';
|
|
21412
21376
|
|
|
21413
21377
|
React__default$1.forwardRef(function (_a, forwardedRef) {
|
|
21414
21378
|
var children = _a.children,
|
|
@@ -28715,14 +28679,28 @@
|
|
|
28715
28679
|
state = _a[0],
|
|
28716
28680
|
setState = _a[1];
|
|
28717
28681
|
var onDragStart = React__default$1.useCallback(function (event) {
|
|
28718
|
-
var _a;
|
|
28682
|
+
var _a, _b;
|
|
28719
28683
|
var isTouch = 'touches' in event || 'changedTouches' in event;
|
|
28720
28684
|
if (isTouch && ((_a = event.touches) !== null && _a !== void 0 ? _a : event.changedTouches).length > 1) return;
|
|
28685
|
+
var _c = isTouch ? (_b = event.touches[0]) !== null && _b !== void 0 ? _b : event.changedTouches[0] : event,
|
|
28686
|
+
clientX = _c.clientX,
|
|
28687
|
+
clientY = _c.clientY;
|
|
28721
28688
|
setState(function (previous) {
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28689
|
+
if (events.onDragStart) {
|
|
28690
|
+
var eventData = {
|
|
28691
|
+
absX: 0,
|
|
28692
|
+
absY: 0,
|
|
28693
|
+
deltaX: 0,
|
|
28694
|
+
deltaY: 0,
|
|
28695
|
+
clientY: clientY,
|
|
28696
|
+
dir: RIGHT,
|
|
28697
|
+
event: event,
|
|
28698
|
+
initial: DRAGGER_INITIAL_STATE.initial,
|
|
28699
|
+
velocity: 0,
|
|
28700
|
+
initialDxDy: previous.initialDxDy
|
|
28701
|
+
};
|
|
28702
|
+
events.onDragStart(eventData);
|
|
28703
|
+
}
|
|
28726
28704
|
return __assign$4(__assign$4(__assign$4({}, previous), DRAGGER_INITIAL_STATE), {
|
|
28727
28705
|
initialDxDy: previous.initialDxDy,
|
|
28728
28706
|
lastDxDy: previous.initialDxDy,
|
|
@@ -28731,7 +28709,7 @@
|
|
|
28731
28709
|
dragging: true
|
|
28732
28710
|
});
|
|
28733
28711
|
});
|
|
28734
|
-
}, []);
|
|
28712
|
+
}, [events]);
|
|
28735
28713
|
var onDragging = React__default$1.useCallback(function (event) {
|
|
28736
28714
|
setState(function (state) {
|
|
28737
28715
|
var _a, _b;
|
|
@@ -28740,7 +28718,6 @@
|
|
|
28740
28718
|
return state;
|
|
28741
28719
|
}
|
|
28742
28720
|
event.stopPropagation();
|
|
28743
|
-
event.preventDefault();
|
|
28744
28721
|
var _c = isTouch ? (_b = event.touches[0]) !== null && _b !== void 0 ? _b : event.changedTouches[0] : event,
|
|
28745
28722
|
clientX = _c.clientX,
|
|
28746
28723
|
clientY = _c.clientY;
|
|
@@ -29786,8 +29763,8 @@
|
|
|
29786
29763
|
}
|
|
29787
29764
|
});
|
|
29788
29765
|
React__default$1.createContext(undefined);
|
|
29789
|
-
var moveRight = keyframes(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"], ["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"])));
|
|
29790
|
-
var moveRightAgain = keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"], ["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"])));
|
|
29766
|
+
var moveRight = /*#__PURE__*/keyframes(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"], ["\n from {\n transform: translateX(-20px);\n }\n to {\n transform: translateX(0px);\n }\n"])));
|
|
29767
|
+
var moveRightAgain = /*#__PURE__*/keyframes(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"], ["\n from {\n transform: translateX(-20.01px);\n }\n to {\n transform: translateX(0px);\n }\n"])));
|
|
29791
29768
|
var templateObject_1$1, templateObject_2;
|
|
29792
29769
|
/*#__PURE__*/_default.div.withConfig({
|
|
29793
29770
|
displayName: "BusinessDropdown__BDHoverContainer",
|
|
@@ -30435,94 +30412,94 @@
|
|
|
30435
30412
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
30436
30413
|
}, [disabled, onClick]);
|
|
30437
30414
|
return jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
30438
|
-
height:
|
|
30439
|
-
width:
|
|
30440
|
-
borderRadius:
|
|
30415
|
+
height: '24px',
|
|
30416
|
+
width: '24px',
|
|
30417
|
+
borderRadius: '50%',
|
|
30441
30418
|
onClick: handleClick,
|
|
30442
30419
|
css: {
|
|
30443
30420
|
backgroundColor: backgroundColor
|
|
30444
30421
|
},
|
|
30445
|
-
display:
|
|
30446
|
-
alignItems:
|
|
30447
|
-
justifyContent:
|
|
30448
|
-
cursor: disabled ?
|
|
30422
|
+
display: 'flex',
|
|
30423
|
+
alignItems: 'center',
|
|
30424
|
+
justifyContent: 'center',
|
|
30425
|
+
cursor: disabled ? 'not-allowed' : 'pointer'
|
|
30449
30426
|
}, {
|
|
30450
30427
|
children: children
|
|
30451
30428
|
}));
|
|
30452
30429
|
};
|
|
30453
30430
|
var Keyboard = function (props) {
|
|
30454
30431
|
return jsxRuntimeExports$2.jsxs("svg", __assign$4({
|
|
30455
|
-
width:
|
|
30456
|
-
height:
|
|
30457
|
-
viewBox:
|
|
30458
|
-
fill:
|
|
30459
|
-
xmlns:
|
|
30432
|
+
width: '24',
|
|
30433
|
+
height: '24',
|
|
30434
|
+
viewBox: '0 0 24 24',
|
|
30435
|
+
fill: 'none',
|
|
30436
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
30460
30437
|
}, {
|
|
30461
30438
|
children: [jsxRuntimeExports$2.jsx("path", {
|
|
30462
|
-
d:
|
|
30463
|
-
fill:
|
|
30439
|
+
d: 'M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z',
|
|
30440
|
+
fill: 'white',
|
|
30464
30441
|
fillOpacity: 0.4
|
|
30465
30442
|
}), jsxRuntimeExports$2.jsx("mask", __assign$4({
|
|
30466
|
-
id:
|
|
30443
|
+
id: 'mask0_1511_44906',
|
|
30467
30444
|
style: {
|
|
30468
30445
|
maskType: 'alpha'
|
|
30469
30446
|
},
|
|
30470
|
-
maskUnits:
|
|
30471
|
-
x:
|
|
30472
|
-
y:
|
|
30473
|
-
width:
|
|
30474
|
-
height:
|
|
30447
|
+
maskUnits: 'userSpaceOnUse',
|
|
30448
|
+
x: '3',
|
|
30449
|
+
y: '3',
|
|
30450
|
+
width: '18',
|
|
30451
|
+
height: '18'
|
|
30475
30452
|
}, {
|
|
30476
30453
|
children: jsxRuntimeExports$2.jsx("rect", {
|
|
30477
|
-
x:
|
|
30478
|
-
y:
|
|
30479
|
-
width:
|
|
30480
|
-
height:
|
|
30481
|
-
fill:
|
|
30454
|
+
x: '3',
|
|
30455
|
+
y: '3',
|
|
30456
|
+
width: '18',
|
|
30457
|
+
height: '18',
|
|
30458
|
+
fill: '#D9D9D9'
|
|
30482
30459
|
})
|
|
30483
30460
|
})), jsxRuntimeExports$2.jsx("g", __assign$4({
|
|
30484
|
-
mask:
|
|
30461
|
+
mask: 'url(#mask0_1511_44906)'
|
|
30485
30462
|
}, {
|
|
30486
30463
|
children: jsxRuntimeExports$2.jsx("path", {
|
|
30487
|
-
d:
|
|
30488
|
-
fill:
|
|
30464
|
+
d: 'M5.24998 18C4.83748 18 4.48436 17.8531 4.19061 17.5594C3.89686 17.2656 3.74998 16.9125 3.74998 16.5V7.5C3.74998 7.0875 3.89686 6.73438 4.19061 6.44063C4.48436 6.14688 4.83748 6 5.24998 6H18.75C19.1625 6 19.5156 6.14688 19.8094 6.44063C20.1031 6.73438 20.25 7.0875 20.25 7.5V16.5C20.25 16.9125 20.1031 17.2656 19.8094 17.5594C19.5156 17.8531 19.1625 18 18.75 18H5.24998ZM5.24998 16.5H18.75V7.5H5.24998V16.5ZM8.99998 15.75H15V14.25H8.99998V15.75ZM6.74998 13.125H8.24998V11.625H6.74998V13.125ZM9.74998 13.125H11.25V11.625H9.74998V13.125ZM12.75 13.125H14.25V11.625H12.75V13.125ZM15.75 13.125H17.25V11.625H15.75V13.125ZM6.74998 10.5H8.24998V9H6.74998V10.5ZM9.74998 10.5H11.25V9H9.74998V10.5ZM12.75 10.5H14.25V9H12.75V10.5ZM15.75 10.5H17.25V9H15.75V10.5Z',
|
|
30465
|
+
fill: '#1C1B1F'
|
|
30489
30466
|
})
|
|
30490
30467
|
}))]
|
|
30491
30468
|
}));
|
|
30492
30469
|
};
|
|
30493
30470
|
var Plus = function (props) {
|
|
30494
30471
|
return jsxRuntimeExports$2.jsxs("svg", __assign$4({
|
|
30495
|
-
width:
|
|
30496
|
-
height:
|
|
30497
|
-
viewBox:
|
|
30498
|
-
fill:
|
|
30499
|
-
xmlns:
|
|
30472
|
+
width: '24',
|
|
30473
|
+
height: '24',
|
|
30474
|
+
viewBox: '0 0 24 24',
|
|
30475
|
+
fill: 'none',
|
|
30476
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
30500
30477
|
}, {
|
|
30501
30478
|
children: [jsxRuntimeExports$2.jsx("path", {
|
|
30502
|
-
d:
|
|
30503
|
-
fill:
|
|
30479
|
+
d: 'M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z',
|
|
30480
|
+
fill: 'white',
|
|
30504
30481
|
fillOpacity: 0.4
|
|
30505
30482
|
}), jsxRuntimeExports$2.jsx("path", {
|
|
30506
|
-
d:
|
|
30507
|
-
fill:
|
|
30483
|
+
d: 'M12 5.5C12.2761 5.5 12.5 5.72386 12.5 6V11.5H18C18.2761 11.5 18.5 11.7239 18.5 12C18.5 12.2761 18.2761 12.5 18 12.5H12.5V18C12.5 18.2761 12.2761 18.5 12 18.5C11.7239 18.5 11.5 18.2761 11.5 18V12.5H6C5.72386 12.5 5.5 12.2761 5.5 12C5.5 11.7239 5.72386 11.5 6 11.5H11.5V6C11.5 5.72386 11.7239 5.5 12 5.5Z',
|
|
30484
|
+
fill: '#1A1A1A'
|
|
30508
30485
|
})]
|
|
30509
30486
|
}));
|
|
30510
30487
|
};
|
|
30511
30488
|
var UpArrow = function (props) {
|
|
30512
30489
|
var _a = props.fill,
|
|
30513
|
-
fill = _a === void 0 ?
|
|
30490
|
+
fill = _a === void 0 ? 'white' : _a,
|
|
30514
30491
|
rest = __rest$2(props, ["fill"]);
|
|
30515
30492
|
return jsxRuntimeExports$2.jsx("svg", __assign$4({
|
|
30516
|
-
width:
|
|
30517
|
-
height:
|
|
30518
|
-
viewBox:
|
|
30519
|
-
fill:
|
|
30520
|
-
xmlns:
|
|
30493
|
+
width: '14',
|
|
30494
|
+
height: '14',
|
|
30495
|
+
viewBox: '0 0 14 14',
|
|
30496
|
+
fill: 'none',
|
|
30497
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
30521
30498
|
}, rest, {
|
|
30522
30499
|
children: jsxRuntimeExports$2.jsx("path", {
|
|
30523
|
-
"fill-rule":
|
|
30524
|
-
"clip-rule":
|
|
30525
|
-
d:
|
|
30500
|
+
"fill-rule": 'evenodd',
|
|
30501
|
+
"clip-rule": 'evenodd',
|
|
30502
|
+
d: 'M12.5596 6.66895C12.7306 6.83963 12.7303 7.11804 12.5596 7.28906C12.3889 7.45968 12.1114 7.45962 11.9405 7.28906L7.43753 2.79395L7.43753 12.25C7.43753 12.4916 7.24166 12.6875 7.00003 12.6875C6.75843 12.6875 6.56253 12.4916 6.56253 12.25L6.56253 2.81445L2.0596 7.30957C1.88868 7.48013 1.61117 7.48028 1.44046 7.30957C1.26991 7.13866 1.26977 6.86114 1.44046 6.69043L6.64163 1.50098C6.7207 1.38774 6.85145 1.31251 7.00003 1.3125C7.00165 1.3125 7.0033 1.31338 7.00492 1.31348C7.11836 1.31213 7.23268 1.35406 7.31937 1.44043L12.5596 6.66895Z',
|
|
30526
30503
|
fill: fill
|
|
30527
30504
|
})
|
|
30528
30505
|
}));
|