@cleartrip/talos-horizontal-chip-menu 2.0.0-beta-260605-0.1 → 2.0.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/HorizontalChipItem.d.ts +2 -1
- package/dist/HorizontalChipItem.d.ts.map +1 -1
- package/dist/HorizontalChipMenu.d.ts +2 -1
- package/dist/HorizontalChipMenu.d.ts.map +1 -1
- package/dist/talos-horizontal-chip-menu.umd.js +20 -33
- package/dist/talos-horizontal-chip-menu.umd.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { IHorizontalChipItemProps } from "./type";
|
|
2
|
-
declare const HorizontalChipItem: ({ data, events }: IHorizontalChipItemProps) => import("react
|
|
3
|
+
declare const HorizontalChipItem: ({ data, events }: IHorizontalChipItemProps) => import("react").JSX.Element;
|
|
3
4
|
export default HorizontalChipItem;
|
|
4
5
|
//# sourceMappingURL=HorizontalChipItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalChipItem.d.ts","sourceRoot":"","sources":["../packages/components/horizontal-chip-menu/src/HorizontalChipItem.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD,QAAA,MAAM,kBAAkB,qBAAsB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"HorizontalChipItem.d.ts","sourceRoot":"","sources":["../packages/components/horizontal-chip-menu/src/HorizontalChipItem.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD,QAAA,MAAM,kBAAkB,qBAAsB,wBAAwB,gCA4BrE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { IHorizontalChipMenuProps } from "./type";
|
|
2
3
|
import { type IWidgetProps } from "@cleartrip/talos-widget-types";
|
|
3
|
-
declare const HorizontalChipMenu: ({ data, }: IWidgetProps<IHorizontalChipMenuProps>) => import("react
|
|
4
|
+
declare const HorizontalChipMenu: ({ data, }: IWidgetProps<IHorizontalChipMenuProps>) => import("react").JSX.Element;
|
|
4
5
|
export default HorizontalChipMenu;
|
|
5
6
|
//# sourceMappingURL=HorizontalChipMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalChipMenu.d.ts","sourceRoot":"","sources":["../packages/components/horizontal-chip-menu/src/HorizontalChipMenu.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,QAAA,MAAM,kBAAkB,cAErB,aAAa,wBAAwB,CAAC,
|
|
1
|
+
{"version":3,"file":"HorizontalChipMenu.d.ts","sourceRoot":"","sources":["../packages/components/horizontal-chip-menu/src/HorizontalChipMenu.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAEvD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAGlE,QAAA,MAAM,kBAAkB,cAErB,aAAa,wBAAwB,CAAC,gCAyBxC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -5513,7 +5513,7 @@
|
|
|
5513
5513
|
d = "date",
|
|
5514
5514
|
l = "Invalid Date",
|
|
5515
5515
|
$ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
|
5516
|
-
y = /\[([^\]]+)]|
|
|
5516
|
+
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,
|
|
5517
5517
|
M = {
|
|
5518
5518
|
name: "en",
|
|
5519
5519
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -5853,9 +5853,9 @@
|
|
|
5853
5853
|
return this.$d.toUTCString();
|
|
5854
5854
|
}, M;
|
|
5855
5855
|
}(),
|
|
5856
|
-
|
|
5857
|
-
return O.prototype =
|
|
5858
|
-
|
|
5856
|
+
Y = _.prototype;
|
|
5857
|
+
return O.prototype = Y, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
|
|
5858
|
+
Y[t[1]] = function (e) {
|
|
5859
5859
|
return this.$g(e, t[0], t[1]);
|
|
5860
5860
|
};
|
|
5861
5861
|
}), O.extend = function (t, e) {
|
|
@@ -6018,13 +6018,13 @@
|
|
|
6018
6018
|
BorderStyle["SOLID"] = "SOLID";
|
|
6019
6019
|
BorderStyle["DOTTED"] = "DOTTED";
|
|
6020
6020
|
})(BorderStyle || (BorderStyle = {}));
|
|
6021
|
-
var IconPosition$
|
|
6021
|
+
var IconPosition$2;
|
|
6022
6022
|
(function (IconPosition) {
|
|
6023
6023
|
IconPosition["TOP"] = "top";
|
|
6024
6024
|
IconPosition["BOTTOM"] = "bottom";
|
|
6025
6025
|
IconPosition["LEFT"] = "left";
|
|
6026
6026
|
IconPosition["RIGHT"] = "right";
|
|
6027
|
-
})(IconPosition$
|
|
6027
|
+
})(IconPosition$2 || (IconPosition$2 = {}));
|
|
6028
6028
|
var WEEK_DAY_LABEL = {
|
|
6029
6029
|
0: 'Sun',
|
|
6030
6030
|
1: 'Mon',
|
|
@@ -8014,11 +8014,11 @@
|
|
|
8014
8014
|
ButtonSize["MEDIUM"] = "medium";
|
|
8015
8015
|
ButtonSize["LARGE"] = "large";
|
|
8016
8016
|
})(ButtonSize$1 || (ButtonSize$1 = {}));
|
|
8017
|
-
var IconPosition$
|
|
8017
|
+
var IconPosition$1;
|
|
8018
8018
|
(function (IconPosition) {
|
|
8019
8019
|
IconPosition["LEFT"] = "left";
|
|
8020
8020
|
IconPosition["RIGHT"] = "right";
|
|
8021
|
-
})(IconPosition$
|
|
8021
|
+
})(IconPosition$1 || (IconPosition$1 = {}));
|
|
8022
8022
|
var ButtonVariant;
|
|
8023
8023
|
(function (ButtonVariant) {
|
|
8024
8024
|
ButtonVariant["OUTLINE"] = "outline";
|
|
@@ -15986,18 +15986,18 @@
|
|
|
15986
15986
|
}));
|
|
15987
15987
|
});
|
|
15988
15988
|
|
|
15989
|
-
var IconPosition
|
|
15989
|
+
var IconPosition;
|
|
15990
15990
|
(function (IconPosition) {
|
|
15991
15991
|
IconPosition["TOP"] = "top";
|
|
15992
15992
|
IconPosition["LEFT"] = "left";
|
|
15993
15993
|
IconPosition["RIGHT"] = "right";
|
|
15994
15994
|
IconPosition["END"] = "end";
|
|
15995
|
-
})(IconPosition
|
|
15996
|
-
var CounterOperation
|
|
15995
|
+
})(IconPosition || (IconPosition = {}));
|
|
15996
|
+
var CounterOperation;
|
|
15997
15997
|
(function (CounterOperation) {
|
|
15998
15998
|
CounterOperation["INCREMENT"] = "INCREMENT";
|
|
15999
15999
|
CounterOperation["DECREMENT"] = "DECREMENT";
|
|
16000
|
-
})(CounterOperation
|
|
16000
|
+
})(CounterOperation || (CounterOperation = {}));
|
|
16001
16001
|
|
|
16002
16002
|
var getStyledChipStyles = function (_a) {
|
|
16003
16003
|
var theme = _a.theme,
|
|
@@ -16259,7 +16259,7 @@
|
|
|
16259
16259
|
_c = _a.showIcon,
|
|
16260
16260
|
showIcon = _c === void 0 ? false : _c,
|
|
16261
16261
|
_d = _a.iconPosition,
|
|
16262
|
-
iconPosition = _d === void 0 ? IconPosition
|
|
16262
|
+
iconPosition = _d === void 0 ? IconPosition.LEFT : _d,
|
|
16263
16263
|
_e = _a.Icon,
|
|
16264
16264
|
Icon = _e === void 0 ? null : _e,
|
|
16265
16265
|
_f = _a.showCounter,
|
|
@@ -16287,7 +16287,7 @@
|
|
|
16287
16287
|
showShimmerAnimation = _r === void 0 ? false : _r,
|
|
16288
16288
|
id = _a.id;
|
|
16289
16289
|
var theme = useTheme();
|
|
16290
|
-
var showTopIcon = showIcon && iconPosition === IconPosition
|
|
16290
|
+
var showTopIcon = showIcon && iconPosition === IconPosition.TOP;
|
|
16291
16291
|
var chipStyles = getChipStyles({
|
|
16292
16292
|
isSelected: isSelected,
|
|
16293
16293
|
isDisabled: isDisabled,
|
|
@@ -16414,7 +16414,7 @@
|
|
|
16414
16414
|
css: root === null || root === void 0 ? void 0 : root.css,
|
|
16415
16415
|
id: id
|
|
16416
16416
|
}, {
|
|
16417
|
-
children: [showIcon && iconPosition === IconPosition
|
|
16417
|
+
children: [showIcon && iconPosition === IconPosition.TOP && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16418
16418
|
display: 'flex',
|
|
16419
16419
|
alignItems: 'center',
|
|
16420
16420
|
marginBottom: theme.spacing[1],
|
|
@@ -16429,7 +16429,7 @@
|
|
|
16429
16429
|
className: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.className,
|
|
16430
16430
|
css: chipContainer === null || chipContainer === void 0 ? void 0 : chipContainer.css
|
|
16431
16431
|
}, {
|
|
16432
|
-
children: [showIcon && iconPosition === IconPosition
|
|
16432
|
+
children: [showIcon && iconPosition === IconPosition.LEFT && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16433
16433
|
display: 'flex',
|
|
16434
16434
|
alignItems: 'center',
|
|
16435
16435
|
justifyContent: 'center',
|
|
@@ -16447,8 +16447,8 @@
|
|
|
16447
16447
|
children: renderLabelComponent()
|
|
16448
16448
|
})), showShimmerAnimation && jsxRuntimeExports$2.jsx(AnimatedContainer, {
|
|
16449
16449
|
children: jsxRuntimeExports$2.jsx(ChipShimmer, {})
|
|
16450
|
-
}), showIcon && iconPosition === IconPosition
|
|
16451
|
-
children: renderPositionedIconComponent(iconPosition, IconPosition
|
|
16450
|
+
}), showIcon && iconPosition === IconPosition.RIGHT && jsxRuntimeExports$2.jsx(jsxRuntimeExports$2.Fragment, {
|
|
16451
|
+
children: renderPositionedIconComponent(iconPosition, IconPosition.RIGHT)
|
|
16452
16452
|
}), showCounter && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16453
16453
|
paddingLeft: theme.spacing[1],
|
|
16454
16454
|
className: counterContainer === null || counterContainer === void 0 ? void 0 : counterContainer.className,
|
|
@@ -16466,8 +16466,8 @@
|
|
|
16466
16466
|
children: count
|
|
16467
16467
|
}))
|
|
16468
16468
|
}))
|
|
16469
|
-
})), showIcon && iconPosition === IconPosition
|
|
16470
|
-
children: renderPositionedIconComponent(iconPosition, IconPosition
|
|
16469
|
+
})), showIcon && iconPosition === IconPosition.END && jsxRuntimeExports$2.jsx(jsxRuntimeExports$2.Fragment, {
|
|
16470
|
+
children: renderPositionedIconComponent(iconPosition, IconPosition.END)
|
|
16471
16471
|
}), isDismissible && jsxRuntimeExports$2.jsx(Container, __assign$4({
|
|
16472
16472
|
paddingLeft: theme.spacing[1],
|
|
16473
16473
|
display: 'flex',
|
|
@@ -17557,19 +17557,6 @@
|
|
|
17557
17557
|
}, css));
|
|
17558
17558
|
});
|
|
17559
17559
|
|
|
17560
|
-
var IconPosition;
|
|
17561
|
-
(function (IconPosition) {
|
|
17562
|
-
IconPosition["TOP"] = "top";
|
|
17563
|
-
IconPosition["LEFT"] = "left";
|
|
17564
|
-
IconPosition["RIGHT"] = "right";
|
|
17565
|
-
IconPosition["END"] = "end";
|
|
17566
|
-
})(IconPosition || (IconPosition = {}));
|
|
17567
|
-
var CounterOperation;
|
|
17568
|
-
(function (CounterOperation) {
|
|
17569
|
-
CounterOperation["INCREMENT"] = "INCREMENT";
|
|
17570
|
-
CounterOperation["DECREMENT"] = "DECREMENT";
|
|
17571
|
-
})(CounterOperation || (CounterOperation = {}));
|
|
17572
|
-
|
|
17573
17560
|
var getStyledIconStyles = function (_a) {
|
|
17574
17561
|
_a.theme;
|
|
17575
17562
|
var cursor = _a.cursor;
|