@smg-automotive/components 25.11.0-talamcol-displayValue-styles.1 → 25.11.0-talamcol-displayValue-styles.2
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/cjs/components/filterPatterns/modal/OpenFilterButton.d.ts.map +1 -1
- package/dist/cjs/components/filterPatterns/popover/Content.d.ts.map +1 -1
- package/dist/cjs/index.js +11 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/filterPatterns/modal/OpenFilterButton.d.ts.map +1 -1
- package/dist/esm/components/filterPatterns/modal/OpenFilterButton.js +8 -5
- package/dist/esm/components/filterPatterns/modal/OpenFilterButton.js.map +1 -1
- package/dist/esm/components/filterPatterns/popover/Content.d.ts.map +1 -1
- package/dist/esm/components/filterPatterns/popover/Content.js +3 -2
- package/dist/esm/components/filterPatterns/popover/Content.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenFilterButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterPatterns/modal/OpenFilterButton.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAEL,WAAW,EAKX,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,MAAM,wBAAwB,GAAG,GAAG,GAAG,IAAI,CAAC;AAClD,MAAM,MAAM,2BAA2B,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC/D,KAAK,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3B,KAAK,KAAK,GAAG,IAAI,CACf,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,WAAW,CAChD,GACC,IAAI,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,GAAG;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OA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O,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,2BAA2B,CAAC;CAC3C,CAAC;AAyJJ,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,KAAK,CAgFtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterPatterns/popover/Content.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAclC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/components/filterPatterns/popover/Content.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAclC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,QAAA,MAAM,oBAAoB,EAAE,EAAE,CAAC,kBAAkB,CA4JhD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -7027,6 +7027,7 @@ var PopoverFilterContent = function (_a) {
|
|
|
7027
7027
|
},
|
|
7028
7028
|
},
|
|
7029
7029
|
];
|
|
7030
|
+
var filterLabel = appliedLabel !== null && appliedLabel !== void 0 ? appliedLabel : label;
|
|
7030
7031
|
return (React.createElement(react$1.Popover, { returnFocusOnClose: true, placement: "bottom-start", isLazy: true, isOpen: isOpen, onOpen: onOpen, onClose: onClose, modifiers: !hasFlip ? disableFlip : [] },
|
|
7031
7032
|
React.createElement(react$1.ButtonGroup, { isAttached: true, w: "full", maxW: "full" },
|
|
7032
7033
|
React.createElement(react$1.PopoverTrigger, null,
|
|
@@ -7035,8 +7036,8 @@ var PopoverFilterContent = function (_a) {
|
|
|
7035
7036
|
: defaultColorSchema)),
|
|
7036
7037
|
React.createElement(react$1.chakra.span, { overflow: "hidden", whiteSpace: "nowrap", display: "flex", alignItems: "center" },
|
|
7037
7038
|
Icon ? React.createElement(Icon, { h: "xs", w: "xs", mr: "xs" }) : null,
|
|
7038
|
-
React.createElement(react$1.chakra.span, { overflow: "hidden", textOverflow: "ellipsis" }, displayValue ? (React.createElement(React.Fragment, null,
|
|
7039
|
-
": ",
|
|
7039
|
+
React.createElement(react$1.chakra.span, { overflow: "hidden", textOverflow: "ellipsis" }, displayValue ? (React.createElement(React.Fragment, null,
|
|
7040
|
+
filterLabel ? "".concat(filterLabel, ": ") : '',
|
|
7040
7041
|
displayValue)) : (label))))),
|
|
7041
7042
|
displayValue ? (React.createElement(react$1.IconButton, __assign({ isDisabled: isOpen, "aria-label": t('filterSelectButton.reset'), borderRadius: "sm", icon: React.createElement(CloseIcon, { w: "xs", h: "xs" }), minW: "md", onClick: function () { return onResetFilter('filterButton'); }, w: "md" }, appliedOrOpenColorScheme))) : null),
|
|
7042
7043
|
React.createElement(Popover, { actionButton: actionButton, Icon: Icon, isApplied: isApplied, label: label, numberOfAppliedFilters: numberOfAppliedFilters, onClose: onClose, onResetFilter: function () { return onResetFilter('filter'); }, showCallToActionButton: showCallToActionButton, header: header, enforceHeight: enforceHeight, zIndex: zIndex }, children)));
|
|
@@ -7084,11 +7085,14 @@ var getRightIcon = function (shouldDisplayResetButton, iconColor, chevronIconSiz
|
|
|
7084
7085
|
return undefined;
|
|
7085
7086
|
return React.createElement(ChevronRightSmallIcon, __assign({ color: iconColor }, chevronIconSize));
|
|
7086
7087
|
};
|
|
7087
|
-
var renderInlineContent = function (label, appliedLabel, displayValue, isApplied, Icon) {
|
|
7088
|
-
|
|
7089
|
-
React.createElement(react$1.chakra.span, { overflow: "hidden",
|
|
7090
|
-
": ",
|
|
7091
|
-
|
|
7088
|
+
var renderInlineContent = function (label, appliedLabel, displayValue, isApplied, Icon) {
|
|
7089
|
+
var filterLabel = appliedLabel !== null && appliedLabel !== void 0 ? appliedLabel : label;
|
|
7090
|
+
return (React.createElement(react$1.chakra.span, { overflow: "hidden", whiteSpace: "nowrap", display: "flex", alignItems: "center", w: "full", minW: "0" },
|
|
7091
|
+
Icon ? React.createElement(Icon, { h: "xs", w: "xs", mr: "xs" }) : null,
|
|
7092
|
+
React.createElement(react$1.chakra.span, { overflow: "hidden", textOverflow: "ellipsis" }, isApplied && displayValue ? (React.createElement(React.Fragment, null,
|
|
7093
|
+
filterLabel ? "".concat(filterLabel, ": ") : '',
|
|
7094
|
+
displayValue)) : (label))));
|
|
7095
|
+
};
|
|
7092
7096
|
var renderDefaultContent = function (label, displayValue, isApplied, Icon) { return (React.createElement(react$1.chakra.span, { display: "flex", justifyContent: "space-between", w: "full", minW: "0" },
|
|
7093
7097
|
React.createElement(react$1.chakra.span, { mr: "2xl", whiteSpace: "nowrap", display: "flex", alignItems: "center", flexShrink: 0 },
|
|
7094
7098
|
label,
|