@envive-ai/react-widgets 0.1.3 → 0.3.1
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/SearchResults/SearchResults.cjs +8 -12
- package/dist/SearchResults/SearchResults.js +4 -8
- package/dist/SearchResults/SearchResultsWidget.cjs +1 -1
- package/dist/SearchResults/SearchResultsWidget.js +1 -1
- package/dist/SearchResults/withSearchResults.cjs +1 -1
- package/dist/SearchResults/withSearchResults.js +1 -1
- package/dist/SearchZeroState/SearchIcon.cjs +2 -3
- package/dist/SearchZeroState/SearchIcon.js +1 -2
- package/dist/SearchZeroState/SearchZeroState.cjs +12 -16
- package/dist/SearchZeroState/SearchZeroState.js +7 -11
- package/dist/SearchZeroState/SearchZeroStateWidget.cjs +1 -1
- package/dist/SearchZeroState/SearchZeroStateWidget.js +1 -1
- package/dist/SearchZeroState/components/RecommendedProducts.cjs +5 -7
- package/dist/SearchZeroState/components/RecommendedProducts.js +3 -5
- package/dist/SuggestionBar/SuggestionBar.cjs +1 -1
- package/dist/SuggestionBar/SuggestionBar.js +2 -2
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.cjs +6 -7
- package/dist/SuggestionButtonContainer/SuggestionButtonContainer.js +2 -3
- package/package.json +3 -1
- package/dist/node_modules/react-icons/lib/iconBase.cjs +0 -121
- package/dist/node_modules/react-icons/lib/iconBase.js +0 -119
- package/dist/node_modules/react-icons/lib/iconContext.cjs +0 -17
- package/dist/node_modules/react-icons/lib/iconContext.js +0 -14
- package/dist/node_modules/react-icons/md/index.cjs +0 -35
- package/dist/node_modules/react-icons/md/index.js +0 -35
- package/dist/packages/components/dist/components/Accordion/Accordion.cjs +0 -80
- package/dist/packages/components/dist/components/Accordion/Accordion.js +0 -78
- package/dist/packages/components/dist/components/Accordion/index.cjs +0 -1
- package/dist/packages/components/dist/components/Accordion/index.js +0 -1
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.cjs +0 -30
- package/dist/packages/components/dist/components/AnimatedChevron/AnimatedChevron.js +0 -29
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.cjs +0 -56
- package/dist/packages/components/dist/components/ButtonBase/ButtonBase.js +0 -54
- package/dist/packages/components/dist/components/ButtonBase/index.cjs +0 -2
- package/dist/packages/components/dist/components/ButtonBase/index.js +0 -2
- package/dist/packages/components/dist/components/ButtonBase/types.cjs +0 -11
- package/dist/packages/components/dist/components/ButtonBase/types.js +0 -10
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.cjs +0 -45
- package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.js +0 -42
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.cjs +0 -33
- package/dist/packages/components/dist/components/FilterScrollbar/DynamicFiltersScrollbar.js +0 -30
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.cjs +0 -45
- package/dist/packages/components/dist/components/ImageWithFallback/ImageWithFallback.js +0 -42
- package/dist/packages/components/dist/components/ImageWithFallback/index.cjs +0 -1
- package/dist/packages/components/dist/components/ImageWithFallback/index.js +0 -1
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.cjs +0 -30
- package/dist/packages/components/dist/components/ModalSheet/ModalSheet.js +0 -29
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.cjs +0 -26
- package/dist/packages/components/dist/components/ModalSheet/desktop/desktopHeader.js +0 -24
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.cjs +0 -122
- package/dist/packages/components/dist/components/ModalSheet/desktop/index.js +0 -120
- package/dist/packages/components/dist/components/ModalSheet/index.cjs +0 -1
- package/dist/packages/components/dist/components/ModalSheet/index.js +0 -1
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.cjs +0 -116
- package/dist/packages/components/dist/components/ModalSheet/mobile/index.js +0 -114
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.cjs +0 -38
- package/dist/packages/components/dist/components/ModalSheet/mobile/mobileHeader.js +0 -36
- package/dist/packages/components/dist/components/ProductCard/ProductCard.cjs +0 -153
- package/dist/packages/components/dist/components/ProductCard/ProductCard.js +0 -149
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.cjs +0 -33
- package/dist/packages/components/dist/components/ProductCard/ProductCardSkeleton.js +0 -31
- package/dist/packages/components/dist/components/ProductCard/index.cjs +0 -4
- package/dist/packages/components/dist/components/ProductCard/index.js +0 -4
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.cjs +0 -49
- package/dist/packages/components/dist/components/ProductCard/productCardVariants.js +0 -45
- package/dist/packages/components/dist/components/ProductCard/types.cjs +0 -10
- package/dist/packages/components/dist/components/ProductCard/types.js +0 -9
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.cjs +0 -43
- package/dist/packages/components/dist/components/ProductGrid/ProductGrid.js +0 -41
- package/dist/packages/components/dist/components/ProductGrid/index.cjs +0 -2
- package/dist/packages/components/dist/components/ProductGrid/index.js +0 -2
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.cjs +0 -21
- package/dist/packages/components/dist/components/ProductGrid/productGridVariants.js +0 -20
- package/dist/packages/components/dist/components/RadioButton/RadioButton.cjs +0 -74
- package/dist/packages/components/dist/components/RadioButton/RadioButton.js +0 -72
- package/dist/packages/components/dist/components/RadioButton/index.cjs +0 -1
- package/dist/packages/components/dist/components/RadioButton/index.js +0 -1
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.cjs +0 -42
- package/dist/packages/components/dist/components/RadioButtonGroup/RadioButtonGroup.js +0 -39
- package/dist/packages/components/dist/components/RadioButtonGroup/index.cjs +0 -1
- package/dist/packages/components/dist/components/RadioButtonGroup/index.js +0 -1
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.cjs +0 -53
- package/dist/packages/components/dist/components/RecommendedProducts/RecommendedProducts.js +0 -51
- package/dist/packages/components/dist/components/RecommendedProducts/index.cjs +0 -3
- package/dist/packages/components/dist/components/RecommendedProducts/index.js +0 -3
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.cjs +0 -72
- package/dist/packages/components/dist/components/SearchAutocomplete/SearchAutocomplete.js +0 -69
- package/dist/packages/components/dist/components/SearchAutocomplete/index.cjs +0 -1
- package/dist/packages/components/dist/components/SearchAutocomplete/index.js +0 -1
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.cjs +0 -134
- package/dist/packages/components/dist/components/SearchFilter/SearchFilter.js +0 -132
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.cjs +0 -48
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterFooter.js +0 -46
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.cjs +0 -42
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterHeader.js +0 -40
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.cjs +0 -6
- package/dist/packages/components/dist/components/SearchFilter/SearchFilterItem.js +0 -4
- package/dist/packages/components/dist/components/SearchFilter/index.cjs +0 -5
- package/dist/packages/components/dist/components/SearchFilter/index.js +0 -5
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.cjs +0 -27
- package/dist/packages/components/dist/components/SearchFilter/useHasFilterStateChanged.js +0 -26
- package/dist/packages/components/dist/components/SearchFilter/utils.cjs +0 -11
- package/dist/packages/components/dist/components/SearchFilter/utils.js +0 -9
- package/dist/packages/components/dist/components/SearchInput/SearchInput.cjs +0 -81
- package/dist/packages/components/dist/components/SearchInput/SearchInput.js +0 -78
- package/dist/packages/components/dist/components/SearchInput/index.cjs +0 -2
- package/dist/packages/components/dist/components/SearchInput/index.js +0 -2
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.cjs +0 -15
- package/dist/packages/components/dist/components/SearchInput/searchInputVariants.js +0 -15
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.cjs +0 -57
- package/dist/packages/components/dist/components/SearchInputForm/SearchInputForm.js +0 -55
- package/dist/packages/components/dist/components/SearchInputForm/index.cjs +0 -1
- package/dist/packages/components/dist/components/SearchInputForm/index.js +0 -1
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.cjs +0 -52
- package/dist/packages/components/dist/components/SearchResultsContent/SearchResultsContent.js +0 -50
- package/dist/packages/components/dist/components/SearchResultsContent/index.cjs +0 -1
- package/dist/packages/components/dist/components/SearchResultsContent/index.js +0 -1
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.cjs +0 -24
- package/dist/packages/components/dist/components/SearchResultsFilterButton/SearchResultsFilterButton.js +0 -23
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterButton/index.js +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.cjs +0 -36
- package/dist/packages/components/dist/components/SearchResultsFilterModal/SearchResultsFilterModal.js +0 -35
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterModal/index.js +0 -3
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.cjs +0 -9
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/SearchResultsFilter.js +0 -9
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.cjs +0 -2
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/index.js +0 -2
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.cjs +0 -34
- package/dist/packages/components/dist/components/SearchResultsFilterSidebar/searchFilterSidebarVariants.js +0 -34
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.cjs +0 -56
- package/dist/packages/components/dist/components/SearchResultsStates/NoSearchResultsFound.js +0 -54
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.cjs +0 -53
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsGrid.js +0 -51
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.cjs +0 -52
- package/dist/packages/components/dist/components/SearchResultsStates/SearchResultsLoadingGrid.js +0 -51
- package/dist/packages/components/dist/components/SearchResultsStates/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsStates/index.js +0 -3
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.cjs +0 -60
- package/dist/packages/components/dist/components/SearchResultsToolbar/SearchResultsToolbar.js +0 -57
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.cjs +0 -3
- package/dist/packages/components/dist/components/SearchResultsToolbar/index.js +0 -3
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.cjs +0 -77
- package/dist/packages/components/dist/components/SparkleAnimation/SparkleAnimation.js +0 -75
- package/dist/packages/components/dist/components/SparkleAnimation/index.cjs +0 -2
- package/dist/packages/components/dist/components/SparkleAnimation/index.js +0 -2
- package/dist/packages/components/dist/components/SparkleAnimation/types.cjs +0 -12
- package/dist/packages/components/dist/components/SparkleAnimation/types.js +0 -11
- package/dist/packages/components/dist/components/Spinner/Spinner.cjs +0 -40
- package/dist/packages/components/dist/components/Spinner/Spinner.js +0 -38
- package/dist/packages/components/dist/components/Spinner/index.cjs +0 -1
- package/dist/packages/components/dist/components/Spinner/index.js +0 -1
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.cjs +0 -193
- package/dist/packages/components/dist/components/SuggestionButton/SuggestionButton.js +0 -188
- package/dist/packages/components/dist/components/SuggestionButton/index.cjs +0 -1
- package/dist/packages/components/dist/components/SuggestionButton/index.js +0 -1
- package/dist/packages/components/dist/components/TextInput/TextInput.cjs +0 -34
- package/dist/packages/components/dist/components/TextInput/TextInput.js +0 -31
- package/dist/packages/components/dist/components/TextInput/index.cjs +0 -1
- package/dist/packages/components/dist/components/TextInput/index.js +0 -1
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.cjs +0 -63
- package/dist/packages/components/dist/components/ToggleButton/ToggleButton.js +0 -61
- package/dist/packages/components/dist/components/ToggleButton/index.cjs +0 -1
- package/dist/packages/components/dist/components/ToggleButton/index.js +0 -1
- package/dist/packages/components/dist/components/Typography/Typography.cjs +0 -53
- package/dist/packages/components/dist/components/Typography/Typography.js +0 -50
- package/dist/packages/components/dist/components/Typography/index.cjs +0 -2
- package/dist/packages/components/dist/components/Typography/index.js +0 -2
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.cjs +0 -99
- package/dist/packages/components/dist/components/Typography/typographyVariantClasses.js +0 -96
- package/dist/packages/components/dist/components/Typography/util.cjs +0 -10
- package/dist/packages/components/dist/components/Typography/util.js +0 -10
- package/dist/packages/components/dist/logging/logger.cjs +0 -20
- package/dist/packages/components/dist/logging/logger.js +0 -19
- package/dist/packages/components/dist/models/colorsConfig.cjs +0 -28
- package/dist/packages/components/dist/models/colorsConfig.js +0 -26
- package/dist/packages/components/dist/util/formatPrice.cjs +0 -14
- package/dist/packages/components/dist/util/formatPrice.js +0 -13
- package/dist/packages/components/dist/util/index.cjs +0 -3
- package/dist/packages/components/dist/util/index.js +0 -3
- package/dist/packages/components/dist/util/useScrollDirection.cjs +0 -39
- package/dist/packages/components/dist/util/useScrollDirection.js +0 -38
- package/dist/packages/components/dist/util/useStickyVisibility.cjs +0 -38
- package/dist/packages/components/dist/util/useStickyVisibility.js +0 -37
- package/dist/packages/icons/dist/ChevronDown.cjs +0 -23
- package/dist/packages/icons/dist/ChevronDown.js +0 -23
- package/dist/packages/icons/dist/FourPointStar.cjs +0 -22
- package/dist/packages/icons/dist/FourPointStar.js +0 -22
- package/dist/packages/icons/dist/IconClose.cjs +0 -26
- package/dist/packages/icons/dist/IconClose.js +0 -26
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.cjs +0 -39
- package/dist/packages/icons/dist/MagnifyingGlassStarVariant.js +0 -39
- package/dist/packages/icons/dist/OutlinedStar.cjs +0 -22
- package/dist/packages/icons/dist/OutlinedStar.js +0 -22
- package/dist/packages/icons/dist/SettingsVariant.cjs +0 -72
- package/dist/packages/icons/dist/SettingsVariant.js +0 -72
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { DefaultContext, IconContext } from "./iconContext.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/react-icons/lib/iconBase.mjs
|
|
5
|
-
var _excluded = [
|
|
6
|
-
"attr",
|
|
7
|
-
"size",
|
|
8
|
-
"title"
|
|
9
|
-
];
|
|
10
|
-
function _objectWithoutProperties(source, excluded) {
|
|
11
|
-
if (source == null) return {};
|
|
12
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
13
|
-
var key, i;
|
|
14
|
-
if (Object.getOwnPropertySymbols) {
|
|
15
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
16
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
17
|
-
key = sourceSymbolKeys[i];
|
|
18
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
19
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
20
|
-
target[key] = source[key];
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return target;
|
|
24
|
-
}
|
|
25
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
26
|
-
if (source == null) return {};
|
|
27
|
-
var target = {};
|
|
28
|
-
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
29
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
30
|
-
target[key] = source[key];
|
|
31
|
-
}
|
|
32
|
-
return target;
|
|
33
|
-
}
|
|
34
|
-
function _extends() {
|
|
35
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
36
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
37
|
-
var source = arguments[i];
|
|
38
|
-
for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
|
|
39
|
-
}
|
|
40
|
-
return target;
|
|
41
|
-
};
|
|
42
|
-
return _extends.apply(this, arguments);
|
|
43
|
-
}
|
|
44
|
-
function ownKeys(e, r) {
|
|
45
|
-
var t = Object.keys(e);
|
|
46
|
-
if (Object.getOwnPropertySymbols) {
|
|
47
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
48
|
-
r && (o = o.filter(function(r$1) {
|
|
49
|
-
return Object.getOwnPropertyDescriptor(e, r$1).enumerable;
|
|
50
|
-
})), t.push.apply(t, o);
|
|
51
|
-
}
|
|
52
|
-
return t;
|
|
53
|
-
}
|
|
54
|
-
function _objectSpread(e) {
|
|
55
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
56
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
57
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r$1) {
|
|
58
|
-
_defineProperty(e, r$1, t[r$1]);
|
|
59
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r$1) {
|
|
60
|
-
Object.defineProperty(e, r$1, Object.getOwnPropertyDescriptor(t, r$1));
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
return e;
|
|
64
|
-
}
|
|
65
|
-
function _defineProperty(obj, key, value) {
|
|
66
|
-
key = _toPropertyKey(key);
|
|
67
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
68
|
-
value,
|
|
69
|
-
enumerable: true,
|
|
70
|
-
configurable: true,
|
|
71
|
-
writable: true
|
|
72
|
-
});
|
|
73
|
-
else obj[key] = value;
|
|
74
|
-
return obj;
|
|
75
|
-
}
|
|
76
|
-
function _toPropertyKey(t) {
|
|
77
|
-
var i = _toPrimitive(t, "string");
|
|
78
|
-
return "symbol" == typeof i ? i : i + "";
|
|
79
|
-
}
|
|
80
|
-
function _toPrimitive(t, r) {
|
|
81
|
-
if ("object" != typeof t || !t) return t;
|
|
82
|
-
var e = t[Symbol.toPrimitive];
|
|
83
|
-
if (void 0 !== e) {
|
|
84
|
-
var i = e.call(t, r || "default");
|
|
85
|
-
if ("object" != typeof i) return i;
|
|
86
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
87
|
-
}
|
|
88
|
-
return ("string" === r ? String : Number)(t);
|
|
89
|
-
}
|
|
90
|
-
function Tree2Element(tree) {
|
|
91
|
-
return tree && tree.map((node, i) => /* @__PURE__ */ React.createElement(node.tag, _objectSpread({ key: i }, node.attr), Tree2Element(node.child)));
|
|
92
|
-
}
|
|
93
|
-
function GenIcon(data) {
|
|
94
|
-
return (props) => /* @__PURE__ */ React.createElement(IconBase, _extends({ attr: _objectSpread({}, data.attr) }, props), Tree2Element(data.child));
|
|
95
|
-
}
|
|
96
|
-
function IconBase(props) {
|
|
97
|
-
var elem = (conf) => {
|
|
98
|
-
var { attr, size, title } = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
99
|
-
var computedSize = size || conf.size || "1em";
|
|
100
|
-
var className;
|
|
101
|
-
if (conf.className) className = conf.className;
|
|
102
|
-
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
103
|
-
return /* @__PURE__ */ React.createElement("svg", _extends({
|
|
104
|
-
stroke: "currentColor",
|
|
105
|
-
fill: "currentColor",
|
|
106
|
-
strokeWidth: "0"
|
|
107
|
-
}, conf.attr, attr, svgProps, {
|
|
108
|
-
className,
|
|
109
|
-
style: _objectSpread(_objectSpread({ color: props.color || conf.color }, conf.style), props.style),
|
|
110
|
-
height: computedSize,
|
|
111
|
-
width: computedSize,
|
|
112
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
113
|
-
}), title && /* @__PURE__ */ React.createElement("title", null, title), props.children);
|
|
114
|
-
};
|
|
115
|
-
return IconContext !== void 0 ? /* @__PURE__ */ React.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
//#endregion
|
|
119
|
-
export { GenIcon };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react = require("react");
|
|
3
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/react-icons/lib/iconContext.mjs
|
|
6
|
-
var DefaultContext = {
|
|
7
|
-
color: void 0,
|
|
8
|
-
size: void 0,
|
|
9
|
-
className: void 0,
|
|
10
|
-
style: void 0,
|
|
11
|
-
attr: void 0
|
|
12
|
-
};
|
|
13
|
-
var IconContext = react.default.createContext && /* @__PURE__ */ react.default.createContext(DefaultContext);
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
exports.DefaultContext = DefaultContext;
|
|
17
|
-
exports.IconContext = IconContext;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/react-icons/lib/iconContext.mjs
|
|
4
|
-
var DefaultContext = {
|
|
5
|
-
color: void 0,
|
|
6
|
-
size: void 0,
|
|
7
|
-
className: void 0,
|
|
8
|
-
style: void 0,
|
|
9
|
-
attr: void 0
|
|
10
|
-
};
|
|
11
|
-
var IconContext = React.createContext && /* @__PURE__ */ React.createContext(DefaultContext);
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { DefaultContext, IconContext };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const require_iconBase = require('../lib/iconBase.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/react-icons/md/index.mjs
|
|
4
|
-
function MdStar(props) {
|
|
5
|
-
return require_iconBase.GenIcon({
|
|
6
|
-
"tag": "svg",
|
|
7
|
-
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
-
"child": [
|
|
9
|
-
{
|
|
10
|
-
"tag": "path",
|
|
11
|
-
"attr": {
|
|
12
|
-
"fill": "none",
|
|
13
|
-
"d": "M0 0h24v24H0z"
|
|
14
|
-
},
|
|
15
|
-
"child": []
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"tag": "path",
|
|
19
|
-
"attr": {
|
|
20
|
-
"fill": "none",
|
|
21
|
-
"d": "M0 0h24v24H0z"
|
|
22
|
-
},
|
|
23
|
-
"child": []
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"tag": "path",
|
|
27
|
-
"attr": { "d": "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" },
|
|
28
|
-
"child": []
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
})(props);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
exports.MdStar = MdStar;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { GenIcon } from "../lib/iconBase.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/react-icons/md/index.mjs
|
|
4
|
-
function MdStar(props) {
|
|
5
|
-
return GenIcon({
|
|
6
|
-
"tag": "svg",
|
|
7
|
-
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
-
"child": [
|
|
9
|
-
{
|
|
10
|
-
"tag": "path",
|
|
11
|
-
"attr": {
|
|
12
|
-
"fill": "none",
|
|
13
|
-
"d": "M0 0h24v24H0z"
|
|
14
|
-
},
|
|
15
|
-
"child": []
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"tag": "path",
|
|
19
|
-
"attr": {
|
|
20
|
-
"fill": "none",
|
|
21
|
-
"d": "M0 0h24v24H0z"
|
|
22
|
-
},
|
|
23
|
-
"child": []
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"tag": "path",
|
|
27
|
-
"attr": { "d": "M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" },
|
|
28
|
-
"child": []
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
})(props);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
export { MdStar };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Typography = require('../Typography/Typography.cjs');
|
|
3
|
-
require('../Typography/index.cjs');
|
|
4
|
-
const require_ChevronDown = require('../../../../icons/dist/ChevronDown.cjs');
|
|
5
|
-
let react = require("react");
|
|
6
|
-
let classnames = require("classnames");
|
|
7
|
-
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
let framer_motion = require("framer-motion");
|
|
10
|
-
|
|
11
|
-
//#region ../components/dist/components/Accordion/Accordion.js
|
|
12
|
-
const ANIMATION_DURATION = .3;
|
|
13
|
-
const Accordion = ({ title, content }) => {
|
|
14
|
-
const [isOpen, setIsOpen] = (0, react.useState)(false);
|
|
15
|
-
const contentRef = (0, react.useRef)(null);
|
|
16
|
-
const titleWrapperClasses = (0, classnames.default)({
|
|
17
|
-
"spiffy-tw-border-b": true,
|
|
18
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
19
|
-
"spiffy-tw-pb-2": true,
|
|
20
|
-
"spiffy-tw-flex": true,
|
|
21
|
-
"spiffy-tw-justify-between": true,
|
|
22
|
-
"spiffy-tw-items-center": true,
|
|
23
|
-
"spiffy-tw-w-full": true,
|
|
24
|
-
"spiffy-tw-group": true
|
|
25
|
-
});
|
|
26
|
-
const titleClasses = (0, classnames.default)({
|
|
27
|
-
"spiffy-tw-uppercase": true,
|
|
28
|
-
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
29
|
-
"!spiffy-tw-font-[400]": true,
|
|
30
|
-
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
31
|
-
});
|
|
32
|
-
const contentClasses = (0, classnames.default)({ "spiffy-tw-overflow-hidden": true });
|
|
33
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
34
|
-
"aria-expanded": isOpen,
|
|
35
|
-
type: "button",
|
|
36
|
-
className: titleWrapperClasses,
|
|
37
|
-
onClick: () => setIsOpen(!isOpen),
|
|
38
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
39
|
-
variant: "body4",
|
|
40
|
-
className: titleClasses,
|
|
41
|
-
children: title
|
|
42
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
43
|
-
variants: {
|
|
44
|
-
open: { rotate: 180 },
|
|
45
|
-
closed: { rotate: 360 }
|
|
46
|
-
},
|
|
47
|
-
animate: isOpen ? "open" : "closed",
|
|
48
|
-
transition: {
|
|
49
|
-
duration: ANIMATION_DURATION,
|
|
50
|
-
ease: "easeOut"
|
|
51
|
-
},
|
|
52
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ChevronDown.ChevronDown_default, {})
|
|
53
|
-
})]
|
|
54
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, {
|
|
55
|
-
variants: {
|
|
56
|
-
open: {
|
|
57
|
-
height: "auto",
|
|
58
|
-
marginTop: "24px",
|
|
59
|
-
marginBottom: "24px"
|
|
60
|
-
},
|
|
61
|
-
closed: {
|
|
62
|
-
height: "0px",
|
|
63
|
-
marginTop: "0px",
|
|
64
|
-
marginBottom: "0px"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
className: contentClasses,
|
|
68
|
-
initial: { height: 0 },
|
|
69
|
-
animate: isOpen ? "open" : "closed",
|
|
70
|
-
transition: {
|
|
71
|
-
duration: ANIMATION_DURATION,
|
|
72
|
-
ease: "easeOut"
|
|
73
|
-
},
|
|
74
|
-
ref: contentRef,
|
|
75
|
-
children: content
|
|
76
|
-
})] });
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
//#endregion
|
|
80
|
-
exports.Accordion = Accordion;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Typography } from "../Typography/Typography.js";
|
|
2
|
-
import "../Typography/index.js";
|
|
3
|
-
import { ChevronDown_default } from "../../../../icons/dist/ChevronDown.js";
|
|
4
|
-
import { useRef, useState } from "react";
|
|
5
|
-
import classNames from "classnames";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { motion } from "framer-motion";
|
|
8
|
-
|
|
9
|
-
//#region ../components/dist/components/Accordion/Accordion.js
|
|
10
|
-
const ANIMATION_DURATION = .3;
|
|
11
|
-
const Accordion = ({ title, content }) => {
|
|
12
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
13
|
-
const contentRef = useRef(null);
|
|
14
|
-
const titleWrapperClasses = classNames({
|
|
15
|
-
"spiffy-tw-border-b": true,
|
|
16
|
-
"spiffy-tw-border-[--spiffy-colors-border-light]": true,
|
|
17
|
-
"spiffy-tw-pb-2": true,
|
|
18
|
-
"spiffy-tw-flex": true,
|
|
19
|
-
"spiffy-tw-justify-between": true,
|
|
20
|
-
"spiffy-tw-items-center": true,
|
|
21
|
-
"spiffy-tw-w-full": true,
|
|
22
|
-
"spiffy-tw-group": true
|
|
23
|
-
});
|
|
24
|
-
const titleClasses = classNames({
|
|
25
|
-
"spiffy-tw-uppercase": true,
|
|
26
|
-
"spiffy-tw-text-[--spiffy-colors-text-primary]": true,
|
|
27
|
-
"!spiffy-tw-font-[400]": true,
|
|
28
|
-
"group-aria-expanded:!spiffy-tw-font-medium": true
|
|
29
|
-
});
|
|
30
|
-
const contentClasses = classNames({ "spiffy-tw-overflow-hidden": true });
|
|
31
|
-
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("button", {
|
|
32
|
-
"aria-expanded": isOpen,
|
|
33
|
-
type: "button",
|
|
34
|
-
className: titleWrapperClasses,
|
|
35
|
-
onClick: () => setIsOpen(!isOpen),
|
|
36
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
37
|
-
variant: "body4",
|
|
38
|
-
className: titleClasses,
|
|
39
|
-
children: title
|
|
40
|
-
}), /* @__PURE__ */ jsx(motion.div, {
|
|
41
|
-
variants: {
|
|
42
|
-
open: { rotate: 180 },
|
|
43
|
-
closed: { rotate: 360 }
|
|
44
|
-
},
|
|
45
|
-
animate: isOpen ? "open" : "closed",
|
|
46
|
-
transition: {
|
|
47
|
-
duration: ANIMATION_DURATION,
|
|
48
|
-
ease: "easeOut"
|
|
49
|
-
},
|
|
50
|
-
children: /* @__PURE__ */ jsx(ChevronDown_default, {})
|
|
51
|
-
})]
|
|
52
|
-
}), /* @__PURE__ */ jsx(motion.div, {
|
|
53
|
-
variants: {
|
|
54
|
-
open: {
|
|
55
|
-
height: "auto",
|
|
56
|
-
marginTop: "24px",
|
|
57
|
-
marginBottom: "24px"
|
|
58
|
-
},
|
|
59
|
-
closed: {
|
|
60
|
-
height: "0px",
|
|
61
|
-
marginTop: "0px",
|
|
62
|
-
marginBottom: "0px"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
className: contentClasses,
|
|
66
|
-
initial: { height: 0 },
|
|
67
|
-
animate: isOpen ? "open" : "closed",
|
|
68
|
-
transition: {
|
|
69
|
-
duration: ANIMATION_DURATION,
|
|
70
|
-
ease: "easeOut"
|
|
71
|
-
},
|
|
72
|
-
ref: contentRef,
|
|
73
|
-
children: content
|
|
74
|
-
})] });
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
//#endregion
|
|
78
|
-
export { Accordion };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const require_Accordion = require('./Accordion.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Accordion } from "./Accordion.js";
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
let framer_motion = require("framer-motion");
|
|
4
|
-
|
|
5
|
-
//#region ../components/dist/components/AnimatedChevron/AnimatedChevron.js
|
|
6
|
-
const AnimatedChevron = ({ animationKey, chevronColor }) => {
|
|
7
|
-
const leftRotation = (0, framer_motion.useTransform)(animationKey, [300, 0], [-12, 0]);
|
|
8
|
-
const rightRotation = (0, framer_motion.useTransform)(animationKey, [300, 0], [12, 0]);
|
|
9
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10
|
-
style: { display: "flex" },
|
|
11
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, { style: {
|
|
12
|
-
x: 1,
|
|
13
|
-
width: "25px",
|
|
14
|
-
height: "4px",
|
|
15
|
-
background: chevronColor,
|
|
16
|
-
borderRadius: "8px",
|
|
17
|
-
rotate: leftRotation
|
|
18
|
-
} }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(framer_motion.motion.div, { style: {
|
|
19
|
-
x: -1,
|
|
20
|
-
width: "25px",
|
|
21
|
-
height: "4px",
|
|
22
|
-
background: chevronColor,
|
|
23
|
-
borderRadius: "8px",
|
|
24
|
-
rotate: rightRotation
|
|
25
|
-
} })]
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
exports.AnimatedChevron = AnimatedChevron;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { motion, useTransform } from "framer-motion";
|
|
3
|
-
|
|
4
|
-
//#region ../components/dist/components/AnimatedChevron/AnimatedChevron.js
|
|
5
|
-
const AnimatedChevron = ({ animationKey, chevronColor }) => {
|
|
6
|
-
const leftRotation = useTransform(animationKey, [300, 0], [-12, 0]);
|
|
7
|
-
const rightRotation = useTransform(animationKey, [300, 0], [12, 0]);
|
|
8
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
9
|
-
style: { display: "flex" },
|
|
10
|
-
children: [/* @__PURE__ */ jsx(motion.div, { style: {
|
|
11
|
-
x: 1,
|
|
12
|
-
width: "25px",
|
|
13
|
-
height: "4px",
|
|
14
|
-
background: chevronColor,
|
|
15
|
-
borderRadius: "8px",
|
|
16
|
-
rotate: leftRotation
|
|
17
|
-
} }), /* @__PURE__ */ jsx(motion.div, { style: {
|
|
18
|
-
x: -1,
|
|
19
|
-
width: "25px",
|
|
20
|
-
height: "4px",
|
|
21
|
-
background: chevronColor,
|
|
22
|
-
borderRadius: "8px",
|
|
23
|
-
rotate: rightRotation
|
|
24
|
-
} })]
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { AnimatedChevron };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_Typography = require('../Typography/Typography.cjs');
|
|
3
|
-
require('../Typography/index.cjs');
|
|
4
|
-
const require_types = require('./types.cjs');
|
|
5
|
-
let react = require("react");
|
|
6
|
-
let classnames = require("classnames");
|
|
7
|
-
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
|
|
10
|
-
//#region ../components/dist/components/ButtonBase/ButtonBase.js
|
|
11
|
-
const ButtonBase = ({ isDisabled = false, dataAttributes, buttonClass, text, textClass, icon, iconClass = "spiffy-tw-w-[21px] spiffy-tw-h-[21px]", dataTestId, onClick, disablePadding = false }) => {
|
|
12
|
-
const RenderedIcon = () => icon;
|
|
13
|
-
const buttonRef = (0, react.useRef)(null);
|
|
14
|
-
const buttonClassName = (0, classnames.default)({
|
|
15
|
-
[require_types.ButtonBaseOverrides.BUTTON]: true,
|
|
16
|
-
"spiffy-tw-flex": true,
|
|
17
|
-
"spiffy-tw-min-h-[36px]": true,
|
|
18
|
-
"spiffy-tw-cursor-pointer": true,
|
|
19
|
-
"spiffy-tw-items-center": true,
|
|
20
|
-
"spiffy-tw-gap-2": true,
|
|
21
|
-
"spiffy-tw-px-4": !disablePadding,
|
|
22
|
-
"spiffy-tw-transition-colors": true,
|
|
23
|
-
"spiffy-tw-opacity-40": isDisabled,
|
|
24
|
-
"spiffy-tw-cursor-not-allowed": isDisabled,
|
|
25
|
-
[`${buttonClass}`]: buttonClass != null
|
|
26
|
-
});
|
|
27
|
-
const textClassName = (0, classnames.default)({
|
|
28
|
-
[require_types.ButtonBaseOverrides.BUTTON_TEXT]: true,
|
|
29
|
-
"spiffy-tw-whitespace-nowrap": true,
|
|
30
|
-
[`${textClass}`]: textClass != null
|
|
31
|
-
});
|
|
32
|
-
(0, classnames.default)({
|
|
33
|
-
[require_types.ButtonBaseOverrides.BUTTON_ICON]: true,
|
|
34
|
-
[`${iconClass}`]: iconClass != null
|
|
35
|
-
});
|
|
36
|
-
(0, react.useEffect)(() => {
|
|
37
|
-
if (dataAttributes && buttonRef.current) Object.entries(dataAttributes).forEach(([key, value]) => {
|
|
38
|
-
buttonRef.current?.setAttribute(key, value);
|
|
39
|
-
});
|
|
40
|
-
}, [dataAttributes]);
|
|
41
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
42
|
-
type: "button",
|
|
43
|
-
ref: buttonRef,
|
|
44
|
-
className: buttonClassName,
|
|
45
|
-
disabled: isDisabled,
|
|
46
|
-
"data-testid": dataTestId,
|
|
47
|
-
onClick,
|
|
48
|
-
children: [icon && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RenderedIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
49
|
-
className: textClassName,
|
|
50
|
-
children: text
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
//#endregion
|
|
56
|
-
exports.ButtonBase = ButtonBase;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Typography } from "../Typography/Typography.js";
|
|
2
|
-
import "../Typography/index.js";
|
|
3
|
-
import { ButtonBaseOverrides } from "./types.js";
|
|
4
|
-
import { useEffect, useRef } from "react";
|
|
5
|
-
import classNames from "classnames";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
//#region ../components/dist/components/ButtonBase/ButtonBase.js
|
|
9
|
-
const ButtonBase = ({ isDisabled = false, dataAttributes, buttonClass, text, textClass, icon, iconClass = "spiffy-tw-w-[21px] spiffy-tw-h-[21px]", dataTestId, onClick, disablePadding = false }) => {
|
|
10
|
-
const RenderedIcon = () => icon;
|
|
11
|
-
const buttonRef = useRef(null);
|
|
12
|
-
const buttonClassName = classNames({
|
|
13
|
-
[ButtonBaseOverrides.BUTTON]: true,
|
|
14
|
-
"spiffy-tw-flex": true,
|
|
15
|
-
"spiffy-tw-min-h-[36px]": true,
|
|
16
|
-
"spiffy-tw-cursor-pointer": true,
|
|
17
|
-
"spiffy-tw-items-center": true,
|
|
18
|
-
"spiffy-tw-gap-2": true,
|
|
19
|
-
"spiffy-tw-px-4": !disablePadding,
|
|
20
|
-
"spiffy-tw-transition-colors": true,
|
|
21
|
-
"spiffy-tw-opacity-40": isDisabled,
|
|
22
|
-
"spiffy-tw-cursor-not-allowed": isDisabled,
|
|
23
|
-
[`${buttonClass}`]: buttonClass != null
|
|
24
|
-
});
|
|
25
|
-
const textClassName = classNames({
|
|
26
|
-
[ButtonBaseOverrides.BUTTON_TEXT]: true,
|
|
27
|
-
"spiffy-tw-whitespace-nowrap": true,
|
|
28
|
-
[`${textClass}`]: textClass != null
|
|
29
|
-
});
|
|
30
|
-
classNames({
|
|
31
|
-
[ButtonBaseOverrides.BUTTON_ICON]: true,
|
|
32
|
-
[`${iconClass}`]: iconClass != null
|
|
33
|
-
});
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (dataAttributes && buttonRef.current) Object.entries(dataAttributes).forEach(([key, value]) => {
|
|
36
|
-
buttonRef.current?.setAttribute(key, value);
|
|
37
|
-
});
|
|
38
|
-
}, [dataAttributes]);
|
|
39
|
-
return /* @__PURE__ */ jsxs("button", {
|
|
40
|
-
type: "button",
|
|
41
|
-
ref: buttonRef,
|
|
42
|
-
className: buttonClassName,
|
|
43
|
-
disabled: isDisabled,
|
|
44
|
-
"data-testid": dataTestId,
|
|
45
|
-
onClick,
|
|
46
|
-
children: [icon && /* @__PURE__ */ jsx(RenderedIcon, {}), /* @__PURE__ */ jsx(Typography, {
|
|
47
|
-
className: textClassName,
|
|
48
|
-
children: text
|
|
49
|
-
})]
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
//#endregion
|
|
54
|
-
export { ButtonBase };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../components/dist/components/ButtonBase/types.js
|
|
3
|
-
let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
|
|
4
|
-
ButtonBaseOverrides$1["BUTTON"] = "spiffy-button-base-button";
|
|
5
|
-
ButtonBaseOverrides$1["BUTTON_TEXT"] = "spiffy-button-base-button-text";
|
|
6
|
-
ButtonBaseOverrides$1["BUTTON_ICON"] = "spiffy-button-base-button-icon";
|
|
7
|
-
return ButtonBaseOverrides$1;
|
|
8
|
-
}({});
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.ButtonBaseOverrides = ButtonBaseOverrides;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region ../components/dist/components/ButtonBase/types.js
|
|
2
|
-
let ButtonBaseOverrides = /* @__PURE__ */ function(ButtonBaseOverrides$1) {
|
|
3
|
-
ButtonBaseOverrides$1["BUTTON"] = "spiffy-button-base-button";
|
|
4
|
-
ButtonBaseOverrides$1["BUTTON_TEXT"] = "spiffy-button-base-button-text";
|
|
5
|
-
ButtonBaseOverrides$1["BUTTON_ICON"] = "spiffy-button-base-button-icon";
|
|
6
|
-
return ButtonBaseOverrides$1;
|
|
7
|
-
}({});
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ButtonBaseOverrides };
|
package/dist/packages/components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_index = require('../../../../../node_modules/react-indiana-drag-scroll/dist/index.cjs');
|
|
3
|
-
const require_Typography = require('../Typography/Typography.cjs');
|
|
4
|
-
require('../Typography/index.cjs');
|
|
5
|
-
let classnames = require("classnames");
|
|
6
|
-
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
|
|
9
|
-
//#region ../components/dist/components/FilterScrollbar/AppliedFiltersScrollbar.js
|
|
10
|
-
var import_dist = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.default, 1);
|
|
11
|
-
const AppliedFiltersScrollbar = ({ selectedFilterOptions, filterBarClassNames, filterDefaultClasses, filterHoverClasses, appliedFilterBackgroundClasses, onRemoveFilter }) => {
|
|
12
|
-
if (selectedFilterOptions.length === 0) return null;
|
|
13
|
-
const buttonClasses = (0, classnames.default)(" spiffy-tw-flex spiffy-tw-items-center spiffy-tw-rounded-full spiffy-tw-px-[8px] spiffy-tw-py-[4px] spiffy-tw-whitespace-nowrap", filterHoverClasses, filterDefaultClasses.replace(/spiffy-tw-bg-\[--spiffy-colors-[^\]]+\]/g, "").trim(), appliedFilterBackgroundClasses);
|
|
14
|
-
const iconColor = "currentColor";
|
|
15
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(import_dist.default, {
|
|
16
|
-
className: filterBarClassNames,
|
|
17
|
-
hideScrollbars: true,
|
|
18
|
-
children: selectedFilterOptions.map((filter) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
19
|
-
className: buttonClasses,
|
|
20
|
-
type: "button",
|
|
21
|
-
onClick: () => onRemoveFilter(filter),
|
|
22
|
-
"aria-label": `Remove filter: ${filter.displayName}`,
|
|
23
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
24
|
-
className: "spiffy-tw-flex spiffy-tw-items-center spiffy-tw-gap-[8px]",
|
|
25
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
|
-
variant: "body3",
|
|
27
|
-
children: filter.displayName
|
|
28
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
29
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
-
width: "10",
|
|
31
|
-
height: "10",
|
|
32
|
-
viewBox: "0 0 10 10",
|
|
33
|
-
fill: "none",
|
|
34
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
35
|
-
d: "M4.59766 4.29297L8.48535 0.405273L9.19238 1.1123L5.30469 5L9.19238 8.8877L8.48535 9.59473L4.59766 5.70703L0.707031 9.59766L0 8.89062L3.89062 5L0 1.10938L0.707031 0.402344L4.59766 4.29297Z",
|
|
36
|
-
fill: iconColor
|
|
37
|
-
})
|
|
38
|
-
})]
|
|
39
|
-
})
|
|
40
|
-
}, filter.id))
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
|
-
exports.AppliedFiltersScrollbar = AppliedFiltersScrollbar;
|