@cleartrip/talos-button 1.1.0-beta-260727-v3-1.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/Button.d.ts +2 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/talos-button.umd.js +114 -137
- package/dist/talos-button.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/Button.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { IWidgetProps } from "@cleartrip/talos-widget-types";
|
|
2
3
|
import type { IButtonProps } from "./type";
|
|
3
|
-
declare const ButtonWidget: (props: IWidgetProps<IButtonProps>) => import("react
|
|
4
|
+
declare const ButtonWidget: (props: IWidgetProps<IButtonProps>) => import("react").JSX.Element;
|
|
4
5
|
export default ButtonWidget;
|
|
5
6
|
//# sourceMappingURL=Button.d.ts.map
|
package/dist/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../packages/components/button/src/Button.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,QAAA,MAAM,YAAY,UAAW,aAAa,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../packages/components/button/src/Button.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,QAAA,MAAM,YAAY,UAAW,aAAa,YAAY,CAAC,gCAiCtD,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/talos-button.umd.js
CHANGED
|
@@ -695,7 +695,6 @@
|
|
|
695
695
|
pinaColada300: '#FFE46E',
|
|
696
696
|
black100: '#1B1B1B',
|
|
697
697
|
gray97: '#f7f7f7',
|
|
698
|
-
gray98: '#FAFBFF',
|
|
699
698
|
successGreen500: '#11A056',
|
|
700
699
|
purple700: '#7226E0',
|
|
701
700
|
neutralOpacity8: '#00000014',
|
|
@@ -732,16 +731,13 @@
|
|
|
732
731
|
13: '52px',
|
|
733
732
|
14: '56px',
|
|
734
733
|
15: '60px',
|
|
735
|
-
20: '80px',
|
|
736
734
|
50: '200px'
|
|
737
735
|
};
|
|
738
736
|
var spacing = {
|
|
739
737
|
0: '0px',
|
|
740
|
-
0.5: '2px',
|
|
741
738
|
1: '4px',
|
|
742
739
|
2: '8px',
|
|
743
740
|
3: '12px',
|
|
744
|
-
1.5: '6px',
|
|
745
741
|
4: '16px',
|
|
746
742
|
5: '20px',
|
|
747
743
|
6: '24px',
|
|
@@ -5088,7 +5084,8 @@
|
|
|
5088
5084
|
pinaColada500: colors.pinaColada500,
|
|
5089
5085
|
green700: colors.green700,
|
|
5090
5086
|
green100: colors.green100,
|
|
5091
|
-
red100: colors.red100
|
|
5087
|
+
red100: colors.red100,
|
|
5088
|
+
red500: colors.red500
|
|
5092
5089
|
},
|
|
5093
5090
|
button: {
|
|
5094
5091
|
outlinedPrimaryLabel: colors.neutral900,
|
|
@@ -5168,14 +5165,10 @@
|
|
|
5168
5165
|
lightRed: colors.red200,
|
|
5169
5166
|
black100: colors.black100,
|
|
5170
5167
|
gray97: colors.gray97,
|
|
5171
|
-
|
|
5168
|
+
darkRed: colors.red500,
|
|
5172
5169
|
orange500: colors.orange500,
|
|
5173
5170
|
purple700: colors.purple700,
|
|
5174
|
-
neutralOpacity8: colors.neutralOpacity8
|
|
5175
|
-
darkRed500: colors.red500,
|
|
5176
|
-
successGreen500: colors.successGreen500,
|
|
5177
|
-
blue100: colors.blue100,
|
|
5178
|
-
alertYellow500: colors.alert500
|
|
5171
|
+
neutralOpacity8: colors.neutralOpacity8
|
|
5179
5172
|
},
|
|
5180
5173
|
border: {
|
|
5181
5174
|
primary: colors.neutral900,
|
|
@@ -5539,7 +5532,7 @@
|
|
|
5539
5532
|
d = "date",
|
|
5540
5533
|
l = "Invalid Date",
|
|
5541
5534
|
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
5542
|
-
y = /\[([^\]]+)]|
|
|
5535
|
+
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,
|
|
5543
5536
|
M = {
|
|
5544
5537
|
name: "en",
|
|
5545
5538
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -5879,9 +5872,9 @@
|
|
|
5879
5872
|
return this.$d.toUTCString();
|
|
5880
5873
|
}, M;
|
|
5881
5874
|
}(),
|
|
5882
|
-
|
|
5883
|
-
return O.prototype =
|
|
5884
|
-
|
|
5875
|
+
Y = _.prototype;
|
|
5876
|
+
return O.prototype = Y, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
|
|
5877
|
+
Y[t[1]] = function (e) {
|
|
5885
5878
|
return this.$g(e, t[0], t[1]);
|
|
5886
5879
|
};
|
|
5887
5880
|
}), O.extend = function (t, e) {
|
|
@@ -6044,13 +6037,13 @@
|
|
|
6044
6037
|
BorderStyle["SOLID"] = "SOLID";
|
|
6045
6038
|
BorderStyle["DOTTED"] = "DOTTED";
|
|
6046
6039
|
})(BorderStyle || (BorderStyle = {}));
|
|
6047
|
-
var IconPosition$
|
|
6040
|
+
var IconPosition$2;
|
|
6048
6041
|
(function (IconPosition) {
|
|
6049
6042
|
IconPosition["TOP"] = "top";
|
|
6050
6043
|
IconPosition["BOTTOM"] = "bottom";
|
|
6051
6044
|
IconPosition["LEFT"] = "left";
|
|
6052
6045
|
IconPosition["RIGHT"] = "right";
|
|
6053
|
-
})(IconPosition$
|
|
6046
|
+
})(IconPosition$2 || (IconPosition$2 = {}));
|
|
6054
6047
|
var WEEK_DAY_LABEL = {
|
|
6055
6048
|
0: 'Sun',
|
|
6056
6049
|
1: 'Mon',
|
|
@@ -6696,6 +6689,7 @@
|
|
|
6696
6689
|
TypographyColor["GREEN700"] = "green700";
|
|
6697
6690
|
TypographyColor["GREEN100"] = "green100";
|
|
6698
6691
|
TypographyColor["RED100"] = "red100";
|
|
6692
|
+
TypographyColor["RED500"] = "red500";
|
|
6699
6693
|
})(TypographyColor || (TypographyColor = {}));
|
|
6700
6694
|
var getTypographyVariant$1 = function (theme, variant) {
|
|
6701
6695
|
switch (variant) {
|
|
@@ -7099,6 +7093,10 @@
|
|
|
7099
7093
|
{
|
|
7100
7094
|
return theme.color.text.red100;
|
|
7101
7095
|
}
|
|
7096
|
+
case TypographyColor.RED500:
|
|
7097
|
+
{
|
|
7098
|
+
return theme.color.text.red500;
|
|
7099
|
+
}
|
|
7102
7100
|
default:
|
|
7103
7101
|
{
|
|
7104
7102
|
return theme.color.text.primary;
|
|
@@ -7924,22 +7922,17 @@
|
|
|
7924
7922
|
}));
|
|
7925
7923
|
});
|
|
7926
7924
|
|
|
7927
|
-
var dotAnimationKeyframe =
|
|
7928
|
-
var color1 = _a.color1,
|
|
7929
|
-
color2 = _a.color2;
|
|
7930
|
-
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);
|
|
7931
|
-
};
|
|
7925
|
+
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"])));
|
|
7932
7926
|
var StyledLoaderDot = _default.div(function (_a) {
|
|
7933
7927
|
var theme = _a.theme,
|
|
7934
7928
|
dotId = _a.dotId,
|
|
7935
7929
|
variant = _a.variant,
|
|
7930
|
+
color1 = _a.color1,
|
|
7931
|
+
color2 = _a.color2,
|
|
7936
7932
|
_b = _a.css,
|
|
7937
7933
|
styleCss = _b === void 0 ? {} : _b;
|
|
7938
7934
|
var size = getLoaderDimension(variant, theme);
|
|
7939
|
-
return css(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n height: ", ";\n width: ", ";\n border-radius: ", ";\n background:
|
|
7940
|
-
color1: theme.color.background.defaultDark,
|
|
7941
|
-
color2: theme.color.background.defaultDarkest
|
|
7942
|
-
}), 1 / 3 * dotId, styleCss);
|
|
7935
|
+
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);
|
|
7943
7936
|
});
|
|
7944
7937
|
var StyledLoaderWrapper = _default.div(function (_a) {
|
|
7945
7938
|
_a.theme;
|
|
@@ -7967,6 +7960,7 @@
|
|
|
7967
7960
|
var css = _a.css,
|
|
7968
7961
|
_b = _a.variant,
|
|
7969
7962
|
variant = _b === void 0 ? 'medium' : _b,
|
|
7963
|
+
dotColors = _a.dotColors,
|
|
7970
7964
|
_c = _a.styleConfig,
|
|
7971
7965
|
styleConfig = _c === void 0 ? {} : _c;
|
|
7972
7966
|
var theme = useTheme();
|
|
@@ -7985,6 +7979,8 @@
|
|
|
7985
7979
|
variant: variant,
|
|
7986
7980
|
theme: theme,
|
|
7987
7981
|
dotId: id,
|
|
7982
|
+
color1: dotColors === null || dotColors === void 0 ? void 0 : dotColors.primary,
|
|
7983
|
+
color2: dotColors === null || dotColors === void 0 ? void 0 : dotColors.secondary,
|
|
7988
7984
|
className: loaderCont === null || loaderCont === void 0 ? void 0 : loaderCont.className,
|
|
7989
7985
|
css: loaderCont === null || loaderCont === void 0 ? void 0 : loaderCont.css
|
|
7990
7986
|
}, id);
|
|
@@ -8040,11 +8036,11 @@
|
|
|
8040
8036
|
ButtonSize["MEDIUM"] = "medium";
|
|
8041
8037
|
ButtonSize["LARGE"] = "large";
|
|
8042
8038
|
})(ButtonSize$1 || (ButtonSize$1 = {}));
|
|
8043
|
-
var IconPosition$
|
|
8039
|
+
var IconPosition$1;
|
|
8044
8040
|
(function (IconPosition) {
|
|
8045
8041
|
IconPosition["LEFT"] = "left";
|
|
8046
8042
|
IconPosition["RIGHT"] = "right";
|
|
8047
|
-
})(IconPosition$
|
|
8043
|
+
})(IconPosition$1 || (IconPosition$1 = {}));
|
|
8048
8044
|
var ButtonVariant;
|
|
8049
8045
|
(function (ButtonVariant) {
|
|
8050
8046
|
ButtonVariant["OUTLINE"] = "outline";
|
|
@@ -15930,35 +15926,16 @@
|
|
|
15930
15926
|
}, getCheckboxColor(theme, !!disabled, !!checked)), rest);
|
|
15931
15927
|
};
|
|
15932
15928
|
var StyledRoot = _default.div(function (_a) {
|
|
15933
|
-
var css = _a.css
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
_a.className;
|
|
15937
|
-
_a.color;
|
|
15938
|
-
var theme = _a.theme,
|
|
15939
|
-
disabled = _a.disabled,
|
|
15940
|
-
rest = __rest$2(_a, ["css", "children", "onClick", "className", "color", "theme", "disabled"]);
|
|
15941
|
-
return getCheckboxRootStyles(__assign$4(__assign$4(__assign$4({}, rest), css), {
|
|
15942
|
-
theme: theme,
|
|
15943
|
-
disabled: disabled
|
|
15944
|
-
}));
|
|
15929
|
+
var css = _a.css,
|
|
15930
|
+
rest = __rest$2(_a, ["css"]);
|
|
15931
|
+
return getCheckboxRootStyles(__assign$4(__assign$4({}, rest), css));
|
|
15945
15932
|
});
|
|
15946
15933
|
var StyledCheckbox = _default.div(function (_a) {
|
|
15947
15934
|
var theme = _a.theme,
|
|
15948
15935
|
css = _a.css,
|
|
15949
|
-
|
|
15950
|
-
disabled = _a.disabled,
|
|
15951
|
-
width = _a.width,
|
|
15952
|
-
height = _a.height;
|
|
15953
|
-
_a.className;
|
|
15954
|
-
_a.children;
|
|
15955
|
-
var rest = __rest$2(_a, ["theme", "css", "checked", "disabled", "width", "height", "className", "children"]);
|
|
15936
|
+
rest = __rest$2(_a, ["theme", "css"]);
|
|
15956
15937
|
return getCheckboxStyles(__assign$4(__assign$4(__assign$4({}, rest), css), {
|
|
15957
|
-
theme: theme
|
|
15958
|
-
checked: checked,
|
|
15959
|
-
disabled: disabled,
|
|
15960
|
-
width: width,
|
|
15961
|
-
height: height
|
|
15938
|
+
theme: theme
|
|
15962
15939
|
}));
|
|
15963
15940
|
});
|
|
15964
15941
|
var Input$1 = _default.input(function (_a) {
|
|
@@ -16031,18 +16008,18 @@
|
|
|
16031
16008
|
}));
|
|
16032
16009
|
});
|
|
16033
16010
|
|
|
16034
|
-
var IconPosition
|
|
16011
|
+
var IconPosition;
|
|
16035
16012
|
(function (IconPosition) {
|
|
16036
16013
|
IconPosition["TOP"] = "top";
|
|
16037
16014
|
IconPosition["LEFT"] = "left";
|
|
16038
16015
|
IconPosition["RIGHT"] = "right";
|
|
16039
16016
|
IconPosition["END"] = "end";
|
|
16040
|
-
})(IconPosition
|
|
16041
|
-
var CounterOperation
|
|
16017
|
+
})(IconPosition || (IconPosition = {}));
|
|
16018
|
+
var CounterOperation;
|
|
16042
16019
|
(function (CounterOperation) {
|
|
16043
16020
|
CounterOperation["INCREMENT"] = "INCREMENT";
|
|
16044
16021
|
CounterOperation["DECREMENT"] = "DECREMENT";
|
|
16045
|
-
})(CounterOperation
|
|
16022
|
+
})(CounterOperation || (CounterOperation = {}));
|
|
16046
16023
|
|
|
16047
16024
|
var getStyledChipStyles = function (_a) {
|
|
16048
16025
|
var theme = _a.theme,
|
|
@@ -16304,7 +16281,7 @@
|
|
|
16304
16281
|
_c = _a.showIcon,
|
|
16305
16282
|
showIcon = _c === void 0 ? false : _c,
|
|
16306
16283
|
_d = _a.iconPosition,
|
|
16307
|
-
iconPosition = _d === void 0 ? IconPosition
|
|
16284
|
+
iconPosition = _d === void 0 ? IconPosition.LEFT : _d,
|
|
16308
16285
|
_e = _a.Icon,
|
|
16309
16286
|
Icon = _e === void 0 ? null : _e,
|
|
16310
16287
|
_f = _a.showCounter,
|
|
@@ -16332,7 +16309,7 @@
|
|
|
16332
16309
|
showShimmerAnimation = _r === void 0 ? false : _r,
|
|
16333
16310
|
id = _a.id;
|
|
16334
16311
|
var theme = useTheme();
|
|
16335
|
-
var showTopIcon = showIcon && iconPosition === IconPosition
|
|
16312
|
+
var showTopIcon = showIcon && iconPosition === IconPosition.TOP;
|
|
16336
16313
|
var chipStyles = getChipStyles({
|
|
16337
16314
|
isSelected: isSelected,
|
|
16338
16315
|
isDisabled: isDisabled,
|
|
@@ -16459,7 +16436,7 @@
|
|
|
16459
16436
|
css: root === null || root === void 0 ? void 0 : root.css,
|
|
16460
16437
|
id: id
|
|
16461
16438
|
}, {
|
|
16462
|
-
children: [showIcon && iconPosition === IconPosition
|
|
16439
|
+
children: [showIcon && iconPosition === IconPosition.TOP && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16463
16440
|
display: 'flex',
|
|
16464
16441
|
alignItems: 'center',
|
|
16465
16442
|
marginBottom: theme.spacing[1],
|
|
@@ -16474,7 +16451,7 @@
|
|
|
16474
16451
|
className: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.className,
|
|
16475
16452
|
css: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.css
|
|
16476
16453
|
}, {
|
|
16477
|
-
children: [showIcon && iconPosition === IconPosition
|
|
16454
|
+
children: [showIcon && iconPosition === IconPosition.LEFT && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16478
16455
|
display: 'flex',
|
|
16479
16456
|
alignItems: 'center',
|
|
16480
16457
|
justifyContent: 'center',
|
|
@@ -16492,8 +16469,8 @@
|
|
|
16492
16469
|
children: renderLabelComponent()
|
|
16493
16470
|
})), showShimmerAnimation && jsxRuntimeExports$2.jsx(AnimatedContainer, {
|
|
16494
16471
|
children: jsxRuntimeExports$2.jsx(ChipShimmer, {})
|
|
16495
|
-
}), showIcon && iconPosition === IconPosition
|
|
16496
|
-
children: renderPositionedIconComponent(iconPosition, IconPosition
|
|
16472
|
+
}), showIcon && iconPosition === IconPosition.RIGHT && jsxRuntimeExports$2.jsx(jsxRuntimeExports$2.Fragment, {
|
|
16473
|
+
children: renderPositionedIconComponent(iconPosition, IconPosition.RIGHT)
|
|
16497
16474
|
}), showCounter && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16498
16475
|
paddingLeft: theme.spacing[1],
|
|
16499
16476
|
className: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.className,
|
|
@@ -16511,8 +16488,8 @@
|
|
|
16511
16488
|
children: count
|
|
16512
16489
|
}))
|
|
16513
16490
|
}))
|
|
16514
|
-
})), showIcon && iconPosition === IconPosition
|
|
16515
|
-
children: renderPositionedIconComponent(iconPosition, IconPosition
|
|
16491
|
+
})), showIcon && iconPosition === IconPosition.END && jsxRuntimeExports$2.jsx(jsxRuntimeExports$2.Fragment, {
|
|
16492
|
+
children: renderPositionedIconComponent(iconPosition, IconPosition.END)
|
|
16516
16493
|
}), isDismissible && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16517
16494
|
paddingLeft: theme.spacing[1],
|
|
16518
16495
|
display: 'flex',
|
|
@@ -17602,19 +17579,6 @@
|
|
|
17602
17579
|
}, css));
|
|
17603
17580
|
});
|
|
17604
17581
|
|
|
17605
|
-
var IconPosition;
|
|
17606
|
-
(function (IconPosition) {
|
|
17607
|
-
IconPosition["TOP"] = "top";
|
|
17608
|
-
IconPosition["LEFT"] = "left";
|
|
17609
|
-
IconPosition["RIGHT"] = "right";
|
|
17610
|
-
IconPosition["END"] = "end";
|
|
17611
|
-
})(IconPosition || (IconPosition = {}));
|
|
17612
|
-
var CounterOperation;
|
|
17613
|
-
(function (CounterOperation) {
|
|
17614
|
-
CounterOperation["INCREMENT"] = "INCREMENT";
|
|
17615
|
-
CounterOperation["DECREMENT"] = "DECREMENT";
|
|
17616
|
-
})(CounterOperation || (CounterOperation = {}));
|
|
17617
|
-
|
|
17618
17582
|
var getStyledIconStyles = function (_a) {
|
|
17619
17583
|
_a.theme;
|
|
17620
17584
|
var cursor = _a.cursor;
|
|
@@ -21360,9 +21324,8 @@
|
|
|
21360
21324
|
crossColor: '#1A1A1A'
|
|
21361
21325
|
});
|
|
21362
21326
|
};
|
|
21363
|
-
var ModalWithCloseOverlay = React__default$1.forwardRef(function (
|
|
21364
|
-
var
|
|
21365
|
-
wrapperCss = _a.wrapperCss,
|
|
21327
|
+
var ModalWithCloseOverlay = React__default$1.forwardRef(function (_a, forwardedRef) {
|
|
21328
|
+
var wrapperCss = _a.wrapperCss,
|
|
21366
21329
|
isBack = _a.isBack,
|
|
21367
21330
|
children = _a.children,
|
|
21368
21331
|
_b = _a.variant,
|
|
@@ -21375,14 +21338,14 @@
|
|
|
21375
21338
|
var theme = useTheme();
|
|
21376
21339
|
var closeButtonStyles = getCloseButtonStyle({
|
|
21377
21340
|
theme: theme,
|
|
21378
|
-
isLeft: isBack,
|
|
21341
|
+
isLeft: isBack !== null && isBack !== void 0 ? isBack : false,
|
|
21379
21342
|
variant: variant,
|
|
21380
21343
|
isCenter: isCenter,
|
|
21381
21344
|
isTop: isTop
|
|
21382
21345
|
});
|
|
21383
21346
|
var CloseIcon = getCloseIcon(isBack, variant);
|
|
21384
21347
|
var onCloseClick = function (e) {
|
|
21385
|
-
onClose(e);
|
|
21348
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
21386
21349
|
};
|
|
21387
21350
|
return jsxRuntimeExports$2.jsx(Modal, __assign$4({
|
|
21388
21351
|
ref: forwardedRef,
|
|
@@ -21408,6 +21371,7 @@
|
|
|
21408
21371
|
}))
|
|
21409
21372
|
}));
|
|
21410
21373
|
});
|
|
21374
|
+
ModalWithCloseOverlay.displayName = 'ModalWithCloseOverlay';
|
|
21411
21375
|
|
|
21412
21376
|
React__default$1.forwardRef(function (_a, forwardedRef) {
|
|
21413
21377
|
var children = _a.children,
|
|
@@ -28714,14 +28678,28 @@
|
|
|
28714
28678
|
state = _a[0],
|
|
28715
28679
|
setState = _a[1];
|
|
28716
28680
|
var onDragStart = React__default$1.useCallback(function (event) {
|
|
28717
|
-
var _a;
|
|
28681
|
+
var _a, _b;
|
|
28718
28682
|
var isTouch = 'touches' in event || 'changedTouches' in event;
|
|
28719
28683
|
if (isTouch && ((_a = event.touches) !== null && _a !== void 0 ? _a : event.changedTouches).length > 1) return;
|
|
28684
|
+
var _c = isTouch ? (_b = event.touches[0]) !== null && _b !== void 0 ? _b : event.changedTouches[0] : event,
|
|
28685
|
+
clientX = _c.clientX,
|
|
28686
|
+
clientY = _c.clientY;
|
|
28720
28687
|
setState(function (previous) {
|
|
28721
|
-
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28688
|
+
if (events.onDragStart) {
|
|
28689
|
+
var eventData = {
|
|
28690
|
+
absX: 0,
|
|
28691
|
+
absY: 0,
|
|
28692
|
+
deltaX: 0,
|
|
28693
|
+
deltaY: 0,
|
|
28694
|
+
clientY: clientY,
|
|
28695
|
+
dir: RIGHT,
|
|
28696
|
+
event: event,
|
|
28697
|
+
initial: DRAGGER_INITIAL_STATE.initial,
|
|
28698
|
+
velocity: 0,
|
|
28699
|
+
initialDxDy: previous.initialDxDy
|
|
28700
|
+
};
|
|
28701
|
+
events.onDragStart(eventData);
|
|
28702
|
+
}
|
|
28725
28703
|
return __assign$4(__assign$4(__assign$4({}, previous), DRAGGER_INITIAL_STATE), {
|
|
28726
28704
|
initialDxDy: previous.initialDxDy,
|
|
28727
28705
|
lastDxDy: previous.initialDxDy,
|
|
@@ -28730,7 +28708,7 @@
|
|
|
28730
28708
|
dragging: true
|
|
28731
28709
|
});
|
|
28732
28710
|
});
|
|
28733
|
-
}, []);
|
|
28711
|
+
}, [events]);
|
|
28734
28712
|
var onDragging = React__default$1.useCallback(function (event) {
|
|
28735
28713
|
setState(function (state) {
|
|
28736
28714
|
var _a, _b;
|
|
@@ -28739,7 +28717,6 @@
|
|
|
28739
28717
|
return state;
|
|
28740
28718
|
}
|
|
28741
28719
|
event.stopPropagation();
|
|
28742
|
-
event.preventDefault();
|
|
28743
28720
|
var _c = isTouch ? (_b = event.touches[0]) !== null && _b !== void 0 ? _b : event.changedTouches[0] : event,
|
|
28744
28721
|
clientX = _c.clientX,
|
|
28745
28722
|
clientY = _c.clientY;
|
|
@@ -29785,8 +29762,8 @@
|
|
|
29785
29762
|
}
|
|
29786
29763
|
});
|
|
29787
29764
|
React__default$1.createContext(undefined);
|
|
29788
|
-
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"])));
|
|
29789
|
-
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"])));
|
|
29765
|
+
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"])));
|
|
29766
|
+
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"])));
|
|
29790
29767
|
var templateObject_1$1, templateObject_2;
|
|
29791
29768
|
/*#__PURE__*/_default.div.withConfig({
|
|
29792
29769
|
displayName: "BusinessDropdown__BDHoverContainer",
|
|
@@ -30434,94 +30411,94 @@
|
|
|
30434
30411
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
30435
30412
|
}, [disabled, onClick]);
|
|
30436
30413
|
return jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
30437
|
-
height:
|
|
30438
|
-
width:
|
|
30439
|
-
borderRadius:
|
|
30414
|
+
height: '24px',
|
|
30415
|
+
width: '24px',
|
|
30416
|
+
borderRadius: '50%',
|
|
30440
30417
|
onClick: handleClick,
|
|
30441
30418
|
css: {
|
|
30442
30419
|
backgroundColor: backgroundColor
|
|
30443
30420
|
},
|
|
30444
|
-
display:
|
|
30445
|
-
alignItems:
|
|
30446
|
-
justifyContent:
|
|
30447
|
-
cursor: disabled ?
|
|
30421
|
+
display: 'flex',
|
|
30422
|
+
alignItems: 'center',
|
|
30423
|
+
justifyContent: 'center',
|
|
30424
|
+
cursor: disabled ? 'not-allowed' : 'pointer'
|
|
30448
30425
|
}, {
|
|
30449
30426
|
children: children
|
|
30450
30427
|
}));
|
|
30451
30428
|
};
|
|
30452
30429
|
var Keyboard = function (props) {
|
|
30453
30430
|
return jsxRuntimeExports$2.jsxs("svg", __assign$4({
|
|
30454
|
-
width:
|
|
30455
|
-
height:
|
|
30456
|
-
viewBox:
|
|
30457
|
-
fill:
|
|
30458
|
-
xmlns:
|
|
30431
|
+
width: '24',
|
|
30432
|
+
height: '24',
|
|
30433
|
+
viewBox: '0 0 24 24',
|
|
30434
|
+
fill: 'none',
|
|
30435
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
30459
30436
|
}, {
|
|
30460
30437
|
children: [jsxRuntimeExports$2.jsx("path", {
|
|
30461
|
-
d:
|
|
30462
|
-
fill:
|
|
30438
|
+
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',
|
|
30439
|
+
fill: 'white',
|
|
30463
30440
|
fillOpacity: 0.4
|
|
30464
30441
|
}), jsxRuntimeExports$2.jsx("mask", __assign$4({
|
|
30465
|
-
id:
|
|
30442
|
+
id: 'mask0_1511_44906',
|
|
30466
30443
|
style: {
|
|
30467
30444
|
maskType: 'alpha'
|
|
30468
30445
|
},
|
|
30469
|
-
maskUnits:
|
|
30470
|
-
x:
|
|
30471
|
-
y:
|
|
30472
|
-
width:
|
|
30473
|
-
height:
|
|
30446
|
+
maskUnits: 'userSpaceOnUse',
|
|
30447
|
+
x: '3',
|
|
30448
|
+
y: '3',
|
|
30449
|
+
width: '18',
|
|
30450
|
+
height: '18'
|
|
30474
30451
|
}, {
|
|
30475
30452
|
children: jsxRuntimeExports$2.jsx("rect", {
|
|
30476
|
-
x:
|
|
30477
|
-
y:
|
|
30478
|
-
width:
|
|
30479
|
-
height:
|
|
30480
|
-
fill:
|
|
30453
|
+
x: '3',
|
|
30454
|
+
y: '3',
|
|
30455
|
+
width: '18',
|
|
30456
|
+
height: '18',
|
|
30457
|
+
fill: '#D9D9D9'
|
|
30481
30458
|
})
|
|
30482
30459
|
})), jsxRuntimeExports$2.jsx("g", __assign$4({
|
|
30483
|
-
mask:
|
|
30460
|
+
mask: 'url(#mask0_1511_44906)'
|
|
30484
30461
|
}, {
|
|
30485
30462
|
children: jsxRuntimeExports$2.jsx("path", {
|
|
30486
|
-
d:
|
|
30487
|
-
fill:
|
|
30463
|
+
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',
|
|
30464
|
+
fill: '#1C1B1F'
|
|
30488
30465
|
})
|
|
30489
30466
|
}))]
|
|
30490
30467
|
}));
|
|
30491
30468
|
};
|
|
30492
30469
|
var Plus = function (props) {
|
|
30493
30470
|
return jsxRuntimeExports$2.jsxs("svg", __assign$4({
|
|
30494
|
-
width:
|
|
30495
|
-
height:
|
|
30496
|
-
viewBox:
|
|
30497
|
-
fill:
|
|
30498
|
-
xmlns:
|
|
30471
|
+
width: '24',
|
|
30472
|
+
height: '24',
|
|
30473
|
+
viewBox: '0 0 24 24',
|
|
30474
|
+
fill: 'none',
|
|
30475
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
30499
30476
|
}, {
|
|
30500
30477
|
children: [jsxRuntimeExports$2.jsx("path", {
|
|
30501
|
-
d:
|
|
30502
|
-
fill:
|
|
30478
|
+
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',
|
|
30479
|
+
fill: 'white',
|
|
30503
30480
|
fillOpacity: 0.4
|
|
30504
30481
|
}), jsxRuntimeExports$2.jsx("path", {
|
|
30505
|
-
d:
|
|
30506
|
-
fill:
|
|
30482
|
+
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',
|
|
30483
|
+
fill: '#1A1A1A'
|
|
30507
30484
|
})]
|
|
30508
30485
|
}));
|
|
30509
30486
|
};
|
|
30510
30487
|
var UpArrow = function (props) {
|
|
30511
30488
|
var _a = props.fill,
|
|
30512
|
-
fill = _a === void 0 ?
|
|
30489
|
+
fill = _a === void 0 ? 'white' : _a,
|
|
30513
30490
|
rest = __rest$2(props, ["fill"]);
|
|
30514
30491
|
return jsxRuntimeExports$2.jsx("svg", __assign$4({
|
|
30515
|
-
width:
|
|
30516
|
-
height:
|
|
30517
|
-
viewBox:
|
|
30518
|
-
fill:
|
|
30519
|
-
xmlns:
|
|
30492
|
+
width: '14',
|
|
30493
|
+
height: '14',
|
|
30494
|
+
viewBox: '0 0 14 14',
|
|
30495
|
+
fill: 'none',
|
|
30496
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
30520
30497
|
}, rest, {
|
|
30521
30498
|
children: jsxRuntimeExports$2.jsx("path", {
|
|
30522
|
-
"fill-rule":
|
|
30523
|
-
"clip-rule":
|
|
30524
|
-
d:
|
|
30499
|
+
"fill-rule": 'evenodd',
|
|
30500
|
+
"clip-rule": 'evenodd',
|
|
30501
|
+
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',
|
|
30525
30502
|
fill: fill
|
|
30526
30503
|
})
|
|
30527
30504
|
}));
|