finsignal-feed-explore 3.3.2 → 3.4.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/components/FilterButton.d.ts +1 -2
- package/dist/components/FilterButton.d.ts.map +1 -1
- package/dist/components/FilterButton.js +5 -3
- package/dist/components/FilterButton.js.map +1 -1
- package/dist/components/SearchButton.d.ts +1 -1
- package/dist/components/SearchButton.d.ts.map +1 -1
- package/dist/components/SearchButton.js +3 -2
- package/dist/components/SearchButton.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterButton.d.ts","sourceRoot":"","sources":["../../src/components/FilterButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAIhC,aAAa,EAAE,OAAO,CAAC;IAKvB,WAAW,EAAE,MAAM,CAAC;IAKpB,OAAO,EAAE,MAAM,IAAI,CAAC;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,
|
|
1
|
+
{"version":3,"file":"FilterButton.d.ts","sourceRoot":"","sources":["../../src/components/FilterButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAIhC,aAAa,EAAE,OAAO,CAAC;IAKvB,WAAW,EAAE,MAAM,CAAC;IAKpB,OAAO,EAAE,MAAM,IAAI,CAAC;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAMzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAM9B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA4BD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoEpD,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FilterIcon } from './icons';
|
|
3
|
-
export const FilterButton = ({ isFiltersOpen, filterCount, onClick, className = '',
|
|
3
|
+
export const FilterButton = ({ isFiltersOpen, filterCount, onClick, className = '', theme = 'light', badgeBackgroundColor = '#2d3339', badgeTextColor = '#ffffff' }) => {
|
|
4
|
+
const iconColor = theme === 'light' ? 'rgba(255, 255, 255, 0.6)' : 'rgba(4, 4, 5, 0.56)';
|
|
5
|
+
const closeIconColor = '#7863F6';
|
|
4
6
|
if (isFiltersOpen) {
|
|
5
7
|
return (React.createElement("button", { onClick: onClick, className: `header-icon filter-button ${className}`, "aria-label": "Close filters" },
|
|
6
8
|
React.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -8,7 +10,7 @@ export const FilterButton = ({ isFiltersOpen, filterCount, onClick, className =
|
|
|
8
10
|
}
|
|
9
11
|
if (filterCount > 0) {
|
|
10
12
|
return (React.createElement("button", { onClick: onClick, className: `header-icon filter-button filter-button--with-badge ${className}`, "aria-label": `Open filters (${filterCount} applied)` },
|
|
11
|
-
React.createElement(FilterIcon, { size: 15, color:
|
|
13
|
+
React.createElement(FilterIcon, { size: 15, color: iconColor }),
|
|
12
14
|
React.createElement("div", { className: "filter-button__badge", style: {
|
|
13
15
|
backgroundColor: badgeBackgroundColor,
|
|
14
16
|
color: badgeTextColor
|
|
@@ -16,6 +18,6 @@ export const FilterButton = ({ isFiltersOpen, filterCount, onClick, className =
|
|
|
16
18
|
React.createElement("span", { className: "filter-button__badge-text" }, filterCount))));
|
|
17
19
|
}
|
|
18
20
|
return (React.createElement("button", { onClick: onClick, className: `header-icon filter-button ${className}`, "aria-label": "Open filters" },
|
|
19
|
-
React.createElement(FilterIcon, { size: 15, color:
|
|
21
|
+
React.createElement(FilterIcon, { size: 15, color: iconColor })));
|
|
20
22
|
};
|
|
21
23
|
//# sourceMappingURL=FilterButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterButton.js","sourceRoot":"","sources":["../../src/components/FilterButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterButton.js","sourceRoot":"","sources":["../../src/components/FilterButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAoErC,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,aAAa,EACb,WAAW,EACX,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,OAAO,EACf,oBAAoB,GAAG,SAAS,EAChC,cAAc,GAAG,SAAS,EAC3B,EAAE,EAAE;IAEH,MAAM,SAAS,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,qBAAqB,CAAC;IACzF,MAAM,cAAc,GAAG,SAAS,CAAC;IAGjC,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,CACL,gCACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,6BAA6B,SAAS,EAAE,gBACxC,eAAe;YAE1B,6BAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;gBAC5F,8BACE,CAAC,EAAC,sBAAsB,EACxB,MAAM,EAAE,cAAc,EACtB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE,CACC,CACV,CAAC;IACJ,CAAC;IAGD,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;QACpB,OAAO,CACL,gCACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,uDAAuD,SAAS,EAAE,gBACjE,iBAAiB,WAAW,WAAW;YAEnD,oBAAC,UAAU,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,GAAI;YAC1C,6BACE,SAAS,EAAC,sBAAsB,EAChC,KAAK,EAAE;oBACL,eAAe,EAAE,oBAAoB;oBACrC,KAAK,EAAE,cAAc;iBACtB;gBAED,8BAAM,SAAS,EAAC,2BAA2B,IACxC,WAAW,CACP,CACH,CACC,CACV,CAAC;IACJ,CAAC;IAGD,OAAO,CACL,gCACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,6BAA6B,SAAS,EAAE,gBACxC,cAAc;QAEzB,oBAAC,UAAU,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,GAAI,CACnC,CACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface SearchButtonProps {
|
|
3
3
|
onClick: () => void;
|
|
4
4
|
className?: string;
|
|
5
|
-
|
|
5
|
+
theme?: 'light' | 'dark';
|
|
6
6
|
}
|
|
7
7
|
export declare const SearchButton: React.FC<SearchButtonProps>;
|
|
8
8
|
//# sourceMappingURL=SearchButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.d.ts","sourceRoot":"","sources":["../../src/components/SearchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,iBAAiB;IAIhC,OAAO,EAAE,MAAM,IAAI,CAAC;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,
|
|
1
|
+
{"version":3,"file":"SearchButton.d.ts","sourceRoot":"","sources":["../../src/components/SearchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,iBAAiB;IAIhC,OAAO,EAAE,MAAM,IAAI,CAAC;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC1B;AAeD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwBpD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export const SearchButton = ({ onClick, className = '',
|
|
2
|
+
export const SearchButton = ({ onClick, className = '', theme = 'light' }) => {
|
|
3
|
+
const iconColor = theme === 'light' ? 'rgba(255, 255, 255, 0.6)' : 'rgba(4, 4, 5, 0.56)';
|
|
3
4
|
return (React.createElement("button", { onClick: onClick, className: `header-icon search-button ${className}`, "aria-label": "Search" },
|
|
4
5
|
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15", fill: "none" },
|
|
5
|
-
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.375 0C9.89582 0 12.75 2.85418 12.75 6.375C12.75 7.86509 12.237 9.23438 11.3804 10.3198L14.7803 13.7197L14.8315 13.7769C15.0718 14.0714 15.0549 14.5057 14.7803 14.7803C14.5057 15.0549 14.0714 15.0718 13.7769 14.8315L13.7197 14.7803L10.3198 11.3804C9.23438 12.237 7.86509 12.75 6.375 12.75C2.85418 12.75 0 9.89581 0 6.375C0 2.85418 2.85418 0 6.375 0ZM6.375 1.5C3.68261 1.5 1.5 3.68261 1.5 6.375C1.5 9.06739 3.68261 11.25 6.375 11.25C9.06739 11.25 11.25 9.06739 11.25 6.375C11.25 3.68261 9.06739 1.5 6.375 1.5Z", fill: iconColor
|
|
6
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.375 0C9.89582 0 12.75 2.85418 12.75 6.375C12.75 7.86509 12.237 9.23438 11.3804 10.3198L14.7803 13.7197L14.8315 13.7769C15.0718 14.0714 15.0549 14.5057 14.7803 14.7803C14.5057 15.0549 14.0714 15.0718 13.7769 14.8315L13.7197 14.7803L10.3198 11.3804C9.23438 12.237 7.86509 12.75 6.375 12.75C2.85418 12.75 0 9.89581 0 6.375C0 2.85418 2.85418 0 6.375 0ZM6.375 1.5C3.68261 1.5 1.5 3.68261 1.5 6.375C1.5 9.06739 3.68261 11.25 6.375 11.25C9.06739 11.25 11.25 9.06739 11.25 6.375C11.25 3.68261 9.06739 1.5 6.375 1.5Z", fill: iconColor }))));
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=SearchButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchButton.js","sourceRoot":"","sources":["../../src/components/SearchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SearchButton.js","sourceRoot":"","sources":["../../src/components/SearchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiC1B,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,OAAO,EACP,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,OAAO,EAChB,EAAE,EAAE;IAEH,MAAM,SAAS,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,qBAAqB,CAAC;IAEzF,OAAO,CACL,gCACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,6BAA6B,SAAS,EAAE,gBACxC,QAAQ;QAEnB,6BAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM;YAC5F,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,ggBAAggB,EAClgB,IAAI,EAAE,SAAS,GACf,CACE,CACC,CACV,CAAC;AACJ,CAAC,CAAC"}
|