Skip to content

Commit

Permalink
ISSUE #5257 - add icons for datatype-filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Amantini1997 committed Nov 19, 2024
1 parent 257d968 commit f0c39bb
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 0 deletions.
29 changes: 29 additions & 0 deletions frontend/assets/icons/filters/boolean.svg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (C) 2024 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

type IProps = {
className?: any;
};

export default ({ className }: IProps) => (
<svg className={className} width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4.46077 3.19909C4.58097 3.02254 4.53529 2.78199 4.35875 2.66179C4.1822 2.54159 3.94164 2.58727 3.82144 2.76381L2.87604 4.1524L2.22314 3.52449C2.06919 3.37644 1.82438 3.38122 1.67634 3.53516C1.52829 3.6891 1.53307 3.93391 1.68701 4.08196L2.66994 5.02727C2.75202 5.10621 2.86472 5.14495 2.97799 5.13318C3.09126 5.12141 3.19358 5.06031 3.25767 4.96617L4.46077 3.19909Z" fill="currentColor"/>
<path fillRule="evenodd" clipRule="evenodd" d="M0 3.57227C0 1.8755 1.3755 0.5 3.07227 0.5C4.76903 0.5 6.14453 1.8755 6.14453 3.57227C6.14453 5.26903 4.76903 6.64453 3.07227 6.64453C1.3755 6.64453 0 5.26903 0 3.57227ZM3.07227 1.27344C1.80266 1.27344 0.773438 2.30266 0.773438 3.57227C0.773438 4.84187 1.80266 5.87109 3.07227 5.87109C4.34187 5.87109 5.37109 4.84187 5.37109 3.57227C5.37109 2.30266 4.34187 1.27344 3.07227 1.27344Z" fill="currentColor"/>
<path d="M6.81901 7.31406C6.97003 7.16304 7.21489 7.16304 7.36591 7.31406L7.92903 7.87718L8.49215 7.31406C8.64318 7.16304 8.88803 7.16304 9.03906 7.31406C9.19008 7.46508 9.19008 7.70994 9.03906 7.86096L8.47593 8.42408L9.03908 8.98723C9.1901 9.13826 9.1901 9.38311 9.03908 9.53413C8.88806 9.68516 8.6432 9.68516 8.49218 9.53413L7.92903 8.97099L7.36589 9.53413C7.21486 9.68515 6.97001 9.68515 6.81898 9.53413C6.66796 9.38311 6.66796 9.13825 6.81898 8.98723L7.38213 8.42408L6.81901 7.86097C6.66799 7.70994 6.66799 7.46509 6.81901 7.31406Z" fill="currentColor"/>
<path fillRule="evenodd" clipRule="evenodd" d="M4.85547 8.42773C4.85547 6.73097 6.23097 5.35547 7.92773 5.35547C9.6245 5.35547 11 6.73097 11 8.42773C11 10.1245 9.6245 11.5 7.92773 11.5C6.23097 11.5 4.85547 10.1245 4.85547 8.42773ZM7.92773 6.12891C6.65813 6.12891 5.62891 7.15813 5.62891 8.42773C5.62891 9.69734 6.65813 10.7266 7.92773 10.7266C9.19734 10.7266 10.2266 9.69734 10.2266 8.42773C10.2266 7.15813 9.19734 6.12891 7.92773 6.12891Z" fill="currentColor"/>
</svg>
);
31 changes: 31 additions & 0 deletions frontend/assets/icons/filters/list.svg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (C) 2024 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

type IProps = {
className?: any;
};

export default ({ className }: IProps) => (
<svg className={className} width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0.574219C0 0.36064 0.17314 0.1875 0.386719 0.1875H2.36328C2.57686 0.1875 2.75 0.36064 2.75 0.574219V2.55078C2.75 2.76436 2.57686 2.9375 2.36328 2.9375H0.386719C0.17314 2.9375 0 2.76436 0 2.55078V0.574219ZM0.773438 2.16406V0.960938H1.97656V2.16406H0.773438Z" fill="currentColor"/>
<path d="M4.5332 1.17578C4.31962 1.17578 4.14648 1.34892 4.14648 1.5625C4.14648 1.77608 4.31962 1.94922 4.5332 1.94922L10.6133 1.94922C10.8269 1.94922 11 1.77608 11 1.5625C11 1.34892 10.8269 1.17578 10.6133 1.17578L4.5332 1.17578Z" fill="currentColor"/>
<path d="M4.5332 4.60254C4.31962 4.60254 4.14648 4.77568 4.14648 4.98926C4.14648 5.20284 4.31962 5.37598 4.5332 5.37598L10.6133 5.37598C10.8269 5.37598 11 5.20284 11 4.98926C11 4.77568 10.8269 4.60254 10.6133 4.60254L4.5332 4.60254Z" fill="currentColor"/>
<path d="M4.14648 8.49121C4.14648 8.27763 4.31962 8.10449 4.5332 8.10449L10.6133 8.10449C10.8269 8.10449 11 8.27763 11 8.49121C11 8.70479 10.8269 8.87793 10.6133 8.87793L4.5332 8.87793C4.31962 8.87793 4.14648 8.70479 4.14648 8.49121Z" fill="currentColor"/>
<path fillRule="evenodd" clipRule="evenodd" d="M0.386719 3.625C0.17314 3.625 0 3.79814 0 4.01172V5.98828C0 6.20186 0.17314 6.375 0.386719 6.375H2.36328C2.57686 6.375 2.75 6.20186 2.75 5.98828V4.01172C2.75 3.79814 2.57686 3.625 2.36328 3.625H0.386719ZM0.773438 4.39844V5.60156H1.97656V4.39844H0.773438Z" fill="currentColor"/>
<path fillRule="evenodd" clipRule="evenodd" d="M0 7.50293C0 7.28935 0.17314 7.11621 0.386719 7.11621H2.36328C2.57686 7.11621 2.75 7.28935 2.75 7.50293V9.47949C2.75 9.69307 2.57686 9.86621 2.36328 9.86621H0.386719C0.17314 9.86621 0 9.69307 0 9.47949V7.50293ZM0.773438 9.09277V7.88965H1.97656V9.09277H0.773438Z" fill="currentColor"/>
</svg>
);
29 changes: 29 additions & 0 deletions frontend/assets/icons/filters/number.svg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (C) 2024 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

type IProps = {
className?: any;
};

export default ({ className }: IProps) => (
<svg className={className} width="11" height="6" viewBox="0 0 11 6" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2.18369 1.30954V5.59473H1.27687V2.16951H1.25174L0.269531 2.78467V1.9812L1.33132 1.30954H2.18369Z" fill="currentColor"/>
<path d="M3.49794 4.67972V4.02689L5.02466 2.61454C5.1545 2.489 5.2634 2.37601 5.35136 2.27557C5.44072 2.17514 5.50843 2.0768 5.55451 1.98055C5.60058 1.8829 5.62362 1.77759 5.62362 1.6646C5.62362 1.53906 5.595 1.43095 5.53775 1.34028C5.48051 1.24821 5.40232 1.17777 5.30319 1.12895C5.20407 1.07873 5.09167 1.05362 4.96602 1.05362C4.83478 1.05362 4.72029 1.08013 4.62256 1.13313C4.52483 1.18614 4.44943 1.26216 4.39638 1.3612C4.34332 1.46024 4.3168 1.57811 4.3168 1.71482H3.45606C3.45606 1.43444 3.51958 1.19102 3.64663 0.984575C3.77369 0.778127 3.9517 0.618409 4.18067 0.50542C4.40964 0.392432 4.67352 0.335938 4.9723 0.335938C5.27946 0.335938 5.54683 0.390339 5.7744 0.499143C6.00338 0.606552 6.18139 0.755808 6.30844 0.946912C6.43549 1.13802 6.49902 1.35702 6.49902 1.60392C6.49902 1.76573 6.46691 1.92545 6.40268 2.08307C6.33985 2.2407 6.22746 2.41576 6.06551 2.60826C5.90355 2.79936 5.67527 3.02883 5.38068 3.29665L4.7545 3.90972V3.93901H6.55556V4.67972H3.49794Z" fill="currentColor"/>
<path d="M9.09287 5.65332C8.78012 5.65332 8.50159 5.59962 8.25726 5.49221C8.01432 5.3834 7.82235 5.23415 7.68133 5.04444C7.54172 4.85333 7.46981 4.63294 7.46562 4.38325H8.37872C8.38431 4.48787 8.41851 4.57993 8.48134 4.65944C8.54557 4.73756 8.63073 4.79823 8.73684 4.84148C8.84295 4.88472 8.96232 4.90634 9.09496 4.90634C9.23318 4.90634 9.35535 4.88193 9.46146 4.83311C9.56756 4.78429 9.65064 4.71663 9.71067 4.63015C9.77071 4.54366 9.80073 4.44393 9.80073 4.33094C9.80073 4.21655 9.76861 4.11542 9.70439 4.02754C9.64156 3.93827 9.55081 3.86852 9.43214 3.8183C9.31486 3.76809 9.17524 3.74298 9.01328 3.74298H8.61328V3.0776H9.01328C9.15011 3.0776 9.27088 3.05389 9.37559 3.00646C9.4817 2.95903 9.56407 2.89347 9.62271 2.80978C9.68135 2.72469 9.71067 2.62565 9.71067 2.51266C9.71067 2.40525 9.68484 2.31109 9.63319 2.23019C9.58292 2.14789 9.51172 2.08372 9.41957 2.03769C9.32882 1.99166 9.22271 1.96864 9.10124 1.96864C8.97838 1.96864 8.86599 1.99096 8.76407 2.0356C8.66215 2.07884 8.58047 2.14091 8.51904 2.22182C8.45761 2.30272 8.4248 2.39758 8.42061 2.50638H7.55149C7.55568 2.25948 7.62618 2.04187 7.76301 1.85356C7.89984 1.66525 8.08413 1.51808 8.3159 1.41207C8.54906 1.30466 8.81223 1.25096 9.10543 1.25096C9.40142 1.25096 9.66041 1.30466 9.8824 1.41207C10.1044 1.51948 10.2768 1.66455 10.3997 1.84728C10.5239 2.02862 10.5854 2.23228 10.584 2.45826C10.5854 2.69818 10.5107 2.89836 10.3599 3.05877C10.2105 3.21919 10.0157 3.32102 9.77559 3.36426V3.39774C10.0911 3.43819 10.3313 3.54769 10.496 3.72624C10.6622 3.90339 10.7445 4.12519 10.7431 4.39162C10.7445 4.63573 10.674 4.85264 10.5316 5.04235C10.3906 5.23205 10.1958 5.38131 9.94732 5.49011C9.69881 5.59892 9.41399 5.65332 9.09287 5.65332Z" fill="currentColor"/>
</svg>

);
34 changes: 34 additions & 0 deletions frontend/assets/icons/filters/template.svg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* Copyright (C) 2024 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

type IProps = {
className?: any;
};

export default ({ className }: IProps) => (
<svg className={className} width="9" height="10" viewBox="0 0 9 10" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.63874 4.07467C3.63874 3.86437 3.80921 3.6939 4.01951 3.6939H6.73929C6.94958 3.6939 7.12006 3.86437 7.12006 4.07467C7.12006 4.28496 6.94958 4.45543 6.73929 4.45543H4.01951C3.80921 4.45543 3.63874 4.28496 3.63874 4.07467Z" fill="currentColor"/>
<path d="M4.01951 5.43456C3.80921 5.43456 3.63874 5.60503 3.63874 5.81533C3.63874 6.02562 3.80921 6.19609 4.01951 6.19609H6.73929C6.94958 6.19609 7.12006 6.02562 7.12006 5.81533C7.12006 5.60503 6.94958 5.43456 6.73929 5.43456H4.01951Z" fill="currentColor"/>
<path d="M3.63874 7.66478C3.63874 7.45448 3.80921 7.28401 4.01951 7.28401H6.73929C6.94958 7.28401 7.12006 7.45448 7.12006 7.66478C7.12006 7.87507 6.94958 8.04555 6.73929 8.04555H4.01951C3.80921 8.04555 3.63874 7.87507 3.63874 7.66478Z" fill="currentColor"/>
<path d="M4.01951 1.84445C3.80921 1.84445 3.63874 2.01492 3.63874 2.22521C3.63874 2.43551 3.80921 2.60598 4.01951 2.60598H6.73929C6.94958 2.60598 7.12006 2.43551 7.12006 2.22521C7.12006 2.01492 6.94958 1.84445 6.73929 1.84445H4.01951Z" fill="currentColor"/>
<path d="M1.78929 4.07467C1.78929 3.86437 1.95976 3.6939 2.17006 3.6939H2.60522C2.81551 3.6939 2.98599 3.86437 2.98599 4.07467C2.98599 4.28496 2.81551 4.45543 2.60522 4.45543H2.17005C1.95976 4.45543 1.78929 4.28496 1.78929 4.07467Z" fill="currentColor"/>
<path d="M2.17006 5.43456C1.95976 5.43456 1.78929 5.60503 1.78929 5.81533C1.78929 6.02562 1.95976 6.19609 2.17005 6.19609H2.60522C2.81551 6.19609 2.98599 6.02562 2.98599 5.81533C2.98599 5.60503 2.81551 5.43456 2.60522 5.43456H2.17006Z" fill="currentColor"/>
<path d="M1.78929 7.66478C1.78929 7.45448 1.95976 7.28401 2.17006 7.28401H2.60522C2.81551 7.28401 2.98599 7.45448 2.98599 7.66478C2.98599 7.87507 2.81551 8.04555 2.60522 8.04555H2.17005C1.95976 8.04555 1.78929 7.87507 1.78929 7.66478Z" fill="currentColor"/>
<path d="M2.17006 1.84445C1.95976 1.84445 1.78929 2.01492 1.78929 2.22521C1.78929 2.43551 1.95976 2.60598 2.17005 2.60598H2.60522C2.81551 2.60598 2.98599 2.43551 2.98599 2.22521C2.98599 2.01492 2.81551 1.84445 2.60522 1.84445H2.17006Z" fill="currentColor"/>
<path fillRule="evenodd" clipRule="evenodd" d="M0.375 0.810929C0.375 0.360301 0.740306 -0.00500488 1.19093 -0.00500488H7.71841C8.16903 -0.00500488 8.53434 0.360301 8.53434 0.810929V9.07906C8.53434 9.52969 8.16903 9.895 7.71841 9.895H1.19093C0.740306 9.895 0.375 9.52969 0.375 9.07906V0.810929ZM1.19093 0.756534C1.16089 0.756534 1.13654 0.780887 1.13654 0.810929V9.07906C1.13654 9.1091 1.16089 9.13346 1.19093 9.13346H7.71841C7.74845 9.13346 7.7728 9.1091 7.7728 9.07906V0.810929C7.7728 0.780887 7.74845 0.756534 7.71841 0.756534H1.19093Z" fill="currentColor"/>
</svg>
);
28 changes: 28 additions & 0 deletions frontend/assets/icons/filters/text.svg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* Copyright (C) 2024 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

type IProps = {
className?: any;
};

export default ({ className }: IProps) => (
<svg className={className} width="11" height="4" viewBox="0 0 11 4" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.944946 3.75635H0.148438L1.36208 0.240723H2.31995L3.53188 3.75635H2.73537L1.85475 1.0441H1.82729L0.944946 3.75635ZM0.895164 2.37447H2.77657V2.95469H0.895164V2.37447Z" fill="currentColor"/>
<path d="M4.19673 3.75635V0.240723H5.60435C5.86299 0.240723 6.07871 0.27906 6.25151 0.355736C6.42432 0.432411 6.55421 0.538841 6.64119 0.675026C6.72816 0.810066 6.77165 0.965706 6.77165 1.14195C6.77165 1.27927 6.74418 1.40001 6.68925 1.50415C6.63432 1.60715 6.55879 1.69183 6.46266 1.75821C6.36767 1.82344 6.25895 1.86979 6.1365 1.89725V1.93159C6.2704 1.93731 6.39571 1.97507 6.51244 2.04488C6.63031 2.11469 6.72587 2.21254 6.79911 2.33842C6.87236 2.46317 6.90898 2.61194 6.90898 2.78474C6.90898 2.97128 6.86263 3.13779 6.76993 3.28428C6.67838 3.42962 6.54277 3.54463 6.36309 3.62932C6.18342 3.714 5.96198 3.75635 5.69876 3.75635H4.19673ZM4.94002 3.14867H5.54599C5.75312 3.14867 5.90419 3.10918 5.99917 3.03022C6.09416 2.95011 6.14165 2.84368 6.14165 2.71093C6.14165 2.61366 6.11819 2.52782 6.07127 2.45344C6.02435 2.37905 5.9574 2.32069 5.87043 2.27834C5.7846 2.236 5.68217 2.21483 5.56315 2.21483H4.94002V3.14867ZM4.94002 1.71186H5.49105C5.59291 1.71186 5.68332 1.69412 5.76228 1.65865C5.84239 1.62202 5.90533 1.57053 5.95111 1.50415C5.99803 1.43777 6.02149 1.35824 6.02149 1.26554C6.02149 1.13851 5.97628 1.03609 5.88588 0.958267C5.79661 0.880447 5.66958 0.841537 5.50479 0.841537H4.94002V1.71186Z" fill="currentColor"/>
<path d="M10.7363 1.47153H9.98438C9.97064 1.37426 9.94261 1.28786 9.90026 1.21233C9.85792 1.13565 9.80356 1.07042 9.73718 1.01663C9.67081 0.962845 9.59413 0.921646 9.50716 0.893036C9.42133 0.864426 9.32806 0.850121 9.22735 0.850121C9.04539 0.850121 8.88689 0.895325 8.75185 0.985733C8.61681 1.075 8.51209 1.20546 8.43771 1.37712C8.36332 1.54764 8.32613 1.75478 8.32613 1.99854C8.32613 2.24916 8.36332 2.45973 8.43771 2.63025C8.51324 2.80077 8.61852 2.92951 8.75356 3.01649C8.88861 3.10346 9.04482 3.14695 9.2222 3.14695C9.32176 3.14695 9.41389 3.13379 9.49858 3.10747C9.58441 3.08115 9.66051 3.04281 9.72688 2.99245C9.79326 2.94096 9.84819 2.87859 9.89168 2.80534C9.93631 2.7321 9.96721 2.64856 9.98438 2.55472L10.7363 2.55815C10.7168 2.71951 10.6682 2.87515 10.5903 3.02507C10.5137 3.17384 10.4101 3.30717 10.2796 3.42504C10.1503 3.54177 9.99582 3.63447 9.81615 3.70313C9.63762 3.77065 9.43563 3.80441 9.21018 3.80441C8.89662 3.80441 8.61624 3.73346 8.36904 3.59155C8.123 3.44965 7.92845 3.24422 7.78539 2.97529C7.64349 2.70635 7.57253 2.38077 7.57253 1.99854C7.57253 1.61516 7.64463 1.289 7.78883 1.02007C7.93302 0.751129 8.12872 0.54628 8.37591 0.405518C8.6231 0.263611 8.90119 0.192657 9.21018 0.192657C9.41389 0.192657 9.60272 0.221268 9.77667 0.278488C9.95176 0.335709 10.1068 0.41925 10.2419 0.529114C10.3769 0.637833 10.4868 0.771156 10.5715 0.929085C10.6573 1.08701 10.7122 1.26783 10.7363 1.47153Z" fill="currentColor"/>
</svg>
);

0 comments on commit f0c39bb

Please sign in to comment.