@foodpilot/foods 2.11.30 → 2.11.32
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/assets/pages_functions/Attachement.svg.js +7 -0
- package/dist/assets/pages_functions/Attachement.svg2.js +4 -0
- package/dist/assets/pages_functions/Details.svg2.js +2 -2
- package/dist/assets/pages_functions/Done.svg2.js +2 -2
- package/dist/assets/pages_functions/Format_list_numbered.svg2.js +2 -2
- package/dist/assets/pages_functions/In progress.svg2.js +2 -2
- package/dist/assets/pages_functions/Note.svg2.js +2 -2
- package/dist/assets/pages_functions/Notes.svg2.js +2 -2
- package/dist/assets/pages_functions/Questionnaire answer.svg2.js +2 -2
- package/dist/assets/pages_functions/Rules.svg2.js +2 -2
- package/dist/assets/pages_functions/Suggestions.svg.js +2 -2
- package/dist/assets/pages_functions/Support.svg2.js +2 -2
- package/dist/assets/pages_functions/Target.svg2.js +2 -2
- package/dist/assets/pages_functions/Uncomplete questionnaire.svg2.js +2 -2
- package/dist/assets/pages_functions/graph.svg2.js +2 -2
- package/dist/assets/pages_functions/tag Comment.svg.js +5 -0
- package/dist/assets/pages_functions/tag Comment.svg2.js +4 -0
- package/dist/assets/pages_functions/waterfall graph.svg2.js +2 -2
- package/dist/components/Accordion/FormAccordion.d.ts +8 -1
- package/dist/components/Accordion/FormAccordion.js +40 -15
- package/dist/components/Icons/iconConfig.d.ts +6 -0
- package/dist/components/Icons/iconConfig.js +5 -1
- package/dist/components/RichTextEditor/toolbar/IconSelector.js +32 -28
- package/dist/main.js +0 -3
- package/dist/themes/common/components.js +3 -10
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/index.js +4 -11
- package/dist/themes/themes/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/themes/themes/BredTheme.d.ts +0 -3
- package/dist/themes/themes/BredTheme.js +0 -40
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const SvgAttachement = (props) => /* @__PURE__ */ React.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("mask", { id: "mask0_12899_22084", style: {
|
|
3
|
+
maskType: "alpha"
|
|
4
|
+
}, maskUnits: "userSpaceOnUse", x: 0, y: 0, width: 40, height: 40 }, /* @__PURE__ */ React.createElement("rect", { width: 40, height: 40, fill: "#D9D9D9" })), /* @__PURE__ */ React.createElement("g", { mask: "url(#mask0_12899_22084)" }, /* @__PURE__ */ React.createElement("path", { d: "M30.6689 26.3749C30.6689 29.2646 29.6525 31.7116 27.6197 33.7157C25.5869 35.7199 23.1264 36.722 20.238 36.722C17.3372 36.722 14.8789 35.7203 12.863 33.717C10.8469 31.7137 9.83887 29.2663 9.83887 26.3749V10.6324C9.83887 8.57103 10.5582 6.82992 11.9968 5.40908C13.4357 3.98825 15.1822 3.27783 17.2364 3.27783C19.2908 3.27783 21.0407 3.98825 22.4859 5.40908C23.9312 6.82992 24.6539 8.57103 24.6539 10.6324V25.6432C24.6539 26.8496 24.2273 27.8801 23.3743 28.7345C22.521 29.5887 21.4818 30.0158 20.2568 30.0158C19.0451 30.0158 18.0083 29.5909 17.1464 28.7412C16.2847 27.8912 15.8539 26.8585 15.8539 25.6432V10.9424H18.6285V25.6432C18.6285 26.0969 18.7897 26.4766 19.1122 26.7824C19.4347 27.0885 19.8141 27.2416 20.2505 27.2416C20.6903 27.2416 21.0716 27.0885 21.3947 26.7824C21.7178 26.4766 21.8793 26.0969 21.8793 25.6432V10.6166C21.8829 9.34714 21.4319 8.26908 20.5264 7.38242C19.6211 6.49575 18.5279 6.05242 17.2468 6.05242C15.971 6.05242 14.8797 6.497 13.973 7.38617C13.0666 8.27561 12.6135 9.35769 12.6135 10.6324V26.3749C12.6171 28.491 13.3632 30.2776 14.8518 31.7345C16.3404 33.1914 18.1472 33.9199 20.2722 33.9199C22.3694 33.9199 24.1654 33.1896 25.6601 31.7291C27.1546 30.2685 27.8854 28.4838 27.8526 26.3749V10.0533H30.6689V26.3749Z", fill: "currentColor" })));
|
|
5
|
+
export {
|
|
6
|
+
SvgAttachement as ReactComponent
|
|
7
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite_glob_0_157 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_12899_22084'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='40'%20height='40'%20%3e%3crect%20width='40'%20height='40'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_12899_22084)'%3e%3cpath%20d='M30.6689%2026.3749C30.6689%2029.2646%2029.6525%2031.7116%2027.6197%2033.7157C25.5869%2035.7199%2023.1264%2036.722%2020.238%2036.722C17.3372%2036.722%2014.8789%2035.7203%2012.863%2033.717C10.8469%2031.7137%209.83887%2029.2663%209.83887%2026.3749V10.6324C9.83887%208.57103%2010.5582%206.82992%2011.9968%205.40908C13.4357%203.98825%2015.1822%203.27783%2017.2364%203.27783C19.2908%203.27783%2021.0407%203.98825%2022.4859%205.40908C23.9312%206.82992%2024.6539%208.57103%2024.6539%2010.6324V25.6432C24.6539%2026.8496%2024.2273%2027.8801%2023.3743%2028.7345C22.521%2029.5887%2021.4818%2030.0158%2020.2568%2030.0158C19.0451%2030.0158%2018.0083%2029.5909%2017.1464%2028.7412C16.2847%2027.8912%2015.8539%2026.8585%2015.8539%2025.6432V10.9424H18.6285V25.6432C18.6285%2026.0969%2018.7897%2026.4766%2019.1122%2026.7824C19.4347%2027.0885%2019.8141%2027.2416%2020.2505%2027.2416C20.6903%2027.2416%2021.0716%2027.0885%2021.3947%2026.7824C21.7178%2026.4766%2021.8793%2026.0969%2021.8793%2025.6432V10.6166C21.8829%209.34714%2021.4319%208.26908%2020.5264%207.38242C19.6211%206.49575%2018.5279%206.05242%2017.2468%206.05242C15.971%206.05242%2014.8797%206.497%2013.973%207.38617C13.0666%208.27561%2012.6135%209.35769%2012.6135%2010.6324V26.3749C12.6171%2028.491%2013.3632%2030.2776%2014.8518%2031.7345C16.3404%2033.1914%2018.1472%2033.9199%2020.2722%2033.9199C22.3694%2033.9199%2024.1654%2033.1896%2025.6601%2031.7291C27.1546%2030.2685%2027.8854%2028.4838%2027.8526%2026.3749V10.0533H30.6689V26.3749Z'%20fill='currentColor'%20/%3e%3c/g%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
__vite_glob_0_157 as default
|
|
4
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_158 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.5%2033.3333H29.1667V26.6666H27.5V33.3333ZM28.3333%2024.9999C28.5556%2024.9999%2028.75%2024.9166%2028.9167%2024.7499C29.0833%2024.5833%2029.1667%2024.3888%2029.1667%2024.1666C29.1667%2023.9444%2029.0833%2023.7499%2028.9167%2023.5833C28.75%2023.4166%2028.5556%2023.3333%2028.3333%2023.3333C28.1111%2023.3333%2027.9167%2023.4166%2027.75%2023.5833C27.5833%2023.7499%2027.5%2023.9444%2027.5%2024.1666C27.5%2024.3888%2027.5833%2024.5833%2027.75%2024.7499C27.9167%2024.9166%2028.1111%2024.9999%2028.3333%2024.9999ZM11.6667%2023.3333H17.7917C18.0972%2022.6944%2018.4514%2022.0971%2018.8542%2021.5416C19.2569%2020.986%2019.7083%2020.4721%2020.2083%2019.9999H11.6667V23.3333ZM11.6667%2029.9999H16.7917C16.7083%2029.4444%2016.6667%2028.8888%2016.6667%2028.3333C16.6667%2027.7777%2016.7083%2027.2221%2016.7917%2026.6666H11.6667V29.9999ZM8.33333%2036.6666C7.41667%2036.6666%206.63194%2036.3402%205.97917%2035.6874C5.32639%2035.0346%205%2034.2499%205%2033.3333V6.66658C5%205.74992%205.32639%204.9652%205.97917%204.31242C6.63194%203.65964%207.41667%203.33325%208.33333%203.33325H21.6667L31.6667%2013.3333V17.1666C31.1389%2016.9999%2030.5972%2016.8749%2030.0417%2016.7916C29.4861%2016.7083%2028.9167%2016.6666%2028.3333%2016.6666V14.9999H20V6.66658H8.33333V33.3333H17.7917C18.0972%2033.9721%2018.4514%2034.5694%2018.8542%2035.1249C19.2569%2035.6805%2019.7083%2036.1944%2020.2083%2036.6666H8.33333ZM28.3333%2019.9999C30.6389%2019.9999%2032.6042%2020.8124%2034.2292%2022.4374C35.8542%2024.0624%2036.6667%2026.0277%2036.6667%2028.3333C36.6667%2030.6388%2035.8542%2032.6041%2034.2292%2034.2291C32.6042%2035.8541%2030.6389%2036.6666%2028.3333%2036.6666C26.0278%2036.6666%2024.0625%2035.8541%2022.4375%2034.2291C20.8125%2032.6041%2020%2030.6388%2020%2028.3333C20%2026.0277%2020.8125%2024.0624%2022.4375%2022.4374C24.0625%2020.8124%2026.0278%2019.9999%2028.3333%2019.9999Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_158 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_159 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.65%2033.3C27.1887%2033.3%2033.3%2027.1887%2033.3%2019.65C33.3%2012.1113%2027.1887%206%2019.65%206C12.1113%206%206%2012.1113%206%2019.65C6%2027.1887%2012.1113%2033.3%2019.65%2033.3ZM19.65%2036.3C28.8455%2036.3%2036.3%2028.8455%2036.3%2019.65C36.3%2010.4545%2028.8455%203%2019.65%203C10.4545%203%203%2010.4545%203%2019.65C3%2028.8455%2010.4545%2036.3%2019.65%2036.3Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.1213%2015.1213L17.5343%2026.7083L11%2020.174L13.1213%2018.0526L17.5343%2022.4657L27%2013L29.1213%2015.1213Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_159 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_160 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.1665%2028.3334H7.49984V29.1667H5.83317V30.8334H7.49984V31.6667H4.1665V33.3334H9.1665V26.6667H4.1665V28.3334ZM5.83317%2013.3334H7.49984V6.66675H4.1665V8.33341H5.83317V13.3334ZM4.1665%2018.3334H7.1665L4.1665%2021.8334V23.3334H9.1665V21.6667H6.1665L9.1665%2018.1667V16.6667H4.1665V18.3334ZM12.4998%208.33341V11.6667H35.8332V8.33341H12.4998ZM12.4998%2031.6667H35.8332V28.3334H12.4998V31.6667ZM12.4998%2021.6667H35.8332V18.3334H12.4998V21.6667Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_160 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_161 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M9.3835%2032.8166C11.8502%2034.8333%2014.9002%2036.1666%2018.2502%2036.5V33.1333C15.8168%2032.8333%2013.6002%2031.8666%2011.7502%2030.4333L9.3835%2032.8166ZM6.70016%2021.5833H3.3335C3.66683%2024.9333%205.00016%2027.9833%207.01683%2030.45L9.40016%2028.0833C7.96683%2026.2333%207.00016%2024.0166%206.70016%2021.5833ZM9.40016%2011.75L7.01683%209.36665C5.00016%2011.8333%203.66683%2014.9%203.3335%2018.2333H6.70016C7.00016%2015.8166%207.96683%2013.6%209.40016%2011.75ZM18.2502%206.69998L18.2502%203.33331C14.9002%203.66664%2011.8502%204.99998%209.3835%207.01665L11.7668%209.39998C13.6002%207.96665%2015.8168%206.99998%2018.2502%206.69998ZM21.5835%206.69998V3.33331C30.0002%204.16665%2036.5835%2011.2667%2036.5835%2019.9167C36.5835%2028.5667%2030.0002%2035.6666%2021.5835%2036.5V33.1333C28.1668%2032.3166%2033.2502%2026.7167%2033.2502%2019.9167C33.2502%2013.1166%2028.1668%207.51665%2021.5835%206.69998Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.0611%2015.0606L17.4742%2026.6476L10.9398%2020.1133L13.0611%2017.992L17.4742%2022.405L26.9398%2012.9393L29.0611%2015.0606Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_161 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_162 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_9411_150'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='40'%20height='40'%3e%3crect%20width='40'%20height='40'%20fill='currentColor'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_9411_150)'%3e%3cpath%20d='M11.6665%2033.8888V14.4305C11.6665%2013.6608%2011.9397%2013.0077%2012.4861%2012.4713C13.0322%2011.9349%2013.6896%2011.6667%2014.4582%2011.6667H33.8886C34.6525%2011.6667%2035.3065%2011.9387%2035.8507%2012.4826C36.3946%2013.0267%2036.6665%2013.6808%2036.6665%2014.4447V28.3334L28.3332%2036.6667H14.4444C13.6805%2036.6667%2013.0265%2036.3948%2012.4823%2035.8509C11.9384%2035.3067%2011.6665%2034.6527%2011.6665%2033.8888ZM3.37483%2010.0001C3.22678%209.23146%203.37497%208.54396%203.81941%207.93757C4.26386%207.33118%204.87025%206.95382%205.63858%206.80549L24.8052%203.40299C25.5739%203.25465%2026.2614%203.39813%2026.8677%203.8334C27.4744%204.26868%2027.8518%204.87049%2027.9998%205.63882L28.5832%208.88882H25.7777L25.2915%206.13882L6.13858%209.51382L8.88858%2025.153V31.3334C8.37025%2031.2131%207.91886%2030.9631%207.53441%2030.5834C7.15025%2030.2037%206.90719%2029.7315%206.80525%2029.1667L3.37483%2010.0001ZM14.4444%2014.4447V33.8888H26.8886V26.8888H33.8886V14.4447H14.4444Z'%20fill='currentColor'/%3e%3c/g%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_162 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_163 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.66667%2033.3333H24.1667V24.1667H33.3333V7.66667H7.66667V33.3333ZM7.66667%2037C6.65833%2037%205.79483%2036.6413%205.07617%2035.9238C4.35872%2035.2052%204%2034.3417%204%2033.3333V7.66667C4%206.65833%204.35872%205.79483%205.07617%205.07617C5.79483%204.35872%206.65833%204%207.66667%204H33.3333C34.3417%204%2035.2052%204.35872%2035.9238%205.07617C36.6413%205.79483%2037%206.65833%2037%207.66667V26L26%2037H7.66667ZM11.3333%2024.1667V20.5H20.5V24.1667H11.3333ZM11.3333%2016.8333V13.1667H29.6667V16.8333H11.3333Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_163 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_164 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M%2032.222656%2016%20L%2035%2016%20L%2035%205.300781%20L%2024.304688%205.300781%20C%2024.074219%204.335938%2023.558594%203.546875%2022.757812%202.925781%20C%2021.957031%202.308594%2021.035156%202%2020%202%20C%2018.980469%202%2018.070312%202.308594%2017.265625%202.925781%20C%2016.457031%203.546875%2015.941406%204.335938%2015.707031%205.300781%20L%205%205.300781%20L%205%2035%20L%2017%2035%20L%2017%2032.25%20L%207.777344%2032.25%20L%207.777344%208.050781%20L%2010.554688%208.050781%20L%2010.554688%2012.175781%20L%2029.445312%2012.175781%20L%2029.445312%208.050781%20L%2032.222656%208.050781%20Z%20M%2021.1875%207.574219%20C%2020.867188%207.890625%2020.472656%208.050781%2020%208.050781%20C%2019.527344%208.050781%2019.132812%207.890625%2018.8125%207.574219%20C%2018.492188%207.257812%2018.332031%206.867188%2018.332031%206.398438%20C%2018.332031%205.933594%2018.492188%205.539062%2018.8125%205.222656%20C%2019.132812%204.90625%2019.527344%204.75%2020%204.75%20C%2020.472656%204.75%2020.867188%204.90625%2021.1875%205.222656%20C%2021.507812%205.539062%2021.667969%205.933594%2021.667969%206.398438%20C%2021.667969%206.867188%2021.507812%207.257812%2021.1875%207.574219%20Z%20M%2021.1875%207.574219%20'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M%2021%2032.25%20L%2021%2038%20L%2026.746094%2038%20L%2039%2025.703125%20L%2033.285156%2020%20Z%20M%2025.59375%2035.234375%20L%2023.8125%2035.234375%20L%2023.8125%2033.453125%20L%2029.53125%2027.78125%20L%2030.421875%2028.625%20L%2031.265625%2029.515625%20Z%20M%2025.59375%2035.234375%20'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_164 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_165 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.6665%2035V32.2221H26.6665V35H6.6665ZM15.9719%2026.4167L6.6665%2017.1113L9.77775%2013.9167L19.1665%2023.2221L15.9719%2026.4167ZM26.5553%2015.8333L17.2498%206.44459L20.4444%203.33334L29.7498%2012.6388L26.5553%2015.8333ZM34.7219%2033.3333L12.5832%2011.1946L14.5278%209.25L36.6665%2031.3888L34.7219%2033.3333Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_165 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_166 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.9998%2036.6666C19.259%2036.6666%2018.6016%2036.4885%2018.0278%2036.1321C17.4536%2035.7754%2017.0554%2035.2869%2016.8332%2034.6667H13.6665V25.9446C11.8979%2024.7871%2010.4975%2023.2916%209.46525%2021.4583C8.43275%2019.625%207.9165%2017.6111%207.9165%2015.4166C7.9165%2012.0555%209.09012%209.20137%2011.4373%206.85415C13.7846%204.50692%2016.6387%203.33331%2019.9998%203.33331C23.3609%203.33331%2026.2151%204.50692%2028.5623%206.85415C30.9096%209.20137%2032.0832%2012.0555%2032.0832%2015.4166C32.0832%2017.6297%2031.5669%2019.6482%2030.5344%2021.4721C29.5022%2023.2962%2028.1018%2024.7871%2026.3332%2025.9446V34.6667H23.1665C22.9443%2035.2869%2022.5461%2035.7754%2021.9719%2036.1321C21.398%2036.4885%2020.7407%2036.6666%2019.9998%2036.6666ZM16.4444%2031.8887H23.5553V30.1666H16.4444V31.8887ZM16.4444%2028.5H23.5553V26.8612H16.4444V28.5ZM16.0832%2024.0833H18.9444V18.7779L15.1665%2015L16.6111%2013.5554L19.9998%2016.9446L23.3886%2013.5554L24.8332%2015L21.0553%2018.7779V24.0833H23.9165C25.5276%2023.3241%2026.8286%2022.1644%2027.8194%2020.6041C28.81%2019.0439%2029.3053%2017.3147%2029.3053%2015.4166C29.3053%2012.8055%2028.4072%2010.6018%2026.6111%208.8054C24.8147%207.00929%2022.6109%206.11123%2019.9998%206.11123C17.3887%206.11123%2015.185%207.00929%2013.3886%208.8054C11.5925%2010.6018%2010.6944%2012.8055%2010.6944%2015.4166C10.6944%2017.3147%2011.1897%2019.0439%2012.1803%2020.6041C13.1711%2022.1644%2014.4721%2023.3241%2016.0832%2024.0833Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_166 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_167 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M27.0003%202.92986L9%202.92986V15.8988H11.6V5.52986H24.4003V19.0482L27.0003%2020.0125V13.0193H31.6871V24.0723H34.2871V10.4193H27.0003V2.92986Z'%20fill='currentColor'/%3e%3cpath%20d='M13.8726%209.37341H15.5392V7.70674H13.8726V9.37341Z'%20fill='currentColor'/%3e%3cpath%20d='M17.2059%209.37341H18.8726V7.70674H17.2059V9.37341Z'%20fill='currentColor'/%3e%3cpath%20d='M18.8726%2012.7067H17.2059V11.0401H18.8726V12.7067Z'%20fill='currentColor'/%3e%3cpath%20d='M13.8726%2012.7067H15.5392V11.0401H13.8726V12.7067Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.8054%2033.1986L24.3333%2036.7541L37.5%2032.6986V26.6707H28.8333V23.532L15.5%2018.532H2.5V35.5874H11.8054V33.1986ZM9%2032.8095H5.27792V21.3095H9V32.8095ZM34.6113%2030.6707L24.1946%2033.8653L11.8054%2030.3095V21.3095H15.0279L25.9446%2025.4207V26.6707H22.8196L18%2025.0874L17.0554%2027.7541L22.375%2029.4486H34.6113V30.6707Z'%20fill='currentColor'/%3e%3cpath%20d='M20.5717%209.37341H22.2384V7.70674H20.5717V9.37341Z'%20fill='currentColor'/%3e%3cpath%20d='M22.2384%2012.7067H20.5717V11.0401H22.2384V12.7067Z'%20fill='currentColor'/%3e%3cpath%20d='M18.8726%2015.8988H17.2059V14.2321H18.8726V15.8988Z'%20fill='currentColor'/%3e%3cpath%20d='M13.8726%2015.8988H15.5392V14.2321H13.8726V15.8988Z'%20fill='currentColor'/%3e%3cpath%20d='M22.2384%2015.8988H20.5717V14.2321H22.2384V15.8988Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_167 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_168 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M19.0311%2038C16.8135%2038%2014.7295%2037.5792%2012.779%2036.7376C10.8285%2035.8959%209.13191%2034.7537%207.68911%2033.3109C6.24631%2031.8681%205.10409%2030.1715%204.26245%2028.221C3.42082%2026.2706%203%2024.1865%203%2021.9689C3%2019.7512%203.42082%2017.6672%204.26245%2015.7167C5.10409%2013.7663%206.24631%2012.0697%207.68911%2010.6269C9.13191%209.18405%2010.8285%208.04183%2012.779%207.2002C14.7295%206.35856%2016.8135%205.93774%2019.0311%205.93774C21.2488%205.93774%2023.3328%206.35856%2025.2833%207.2002C27.2337%208.04183%2028.9304%209.18405%2030.3732%2010.6269C31.816%2012.0697%2032.9582%2013.7663%2033.7998%2015.7167C34.6415%2017.6672%2035.0623%2019.7512%2035.0623%2021.9689C35.0623%2024.1865%2034.6415%2026.2706%2033.7998%2028.221C32.9582%2030.1715%2031.816%2031.8681%2030.3732%2033.3109C28.9304%2034.7537%2027.2337%2035.8959%2025.2833%2036.7376C23.3328%2037.5792%2021.2488%2038%2019.0311%2038ZM19.0311%2034.7938C22.6114%2034.7938%2025.644%2033.5514%2028.1288%2031.0666C30.6136%2028.5817%2031.8561%2025.5492%2031.8561%2021.9689C31.8561%2018.3886%2030.6136%2015.356%2028.1288%2012.8712C25.644%2010.3864%2022.6114%209.14397%2019.0311%209.14397C15.4509%209.14397%2012.4183%2010.3864%209.93347%2012.8712C7.44864%2015.356%206.20623%2018.3886%206.20623%2021.9689C6.20623%2025.5492%207.44864%2028.5817%209.93347%2031.0666C12.4183%2033.5514%2015.4509%2034.7938%2019.0311%2034.7938ZM19.0311%2031.5876C16.3593%2031.5876%2014.0882%2030.6524%2012.2179%2028.7821C10.3476%2026.9118%209.41246%2024.6407%209.41246%2021.9689C9.41246%2019.297%2010.3476%2017.026%2012.2179%2015.1557C14.0882%2013.2854%2016.3593%2012.3502%2019.0311%2012.3502C21.703%2012.3502%2023.9741%2013.2854%2025.8444%2015.1557C27.7147%2017.026%2028.6498%2019.297%2028.6498%2021.9689C28.6498%2024.6407%2027.7147%2026.9118%2025.8444%2028.7821C23.9741%2030.6524%2021.703%2031.5876%2019.0311%2031.5876ZM19.0311%2028.3813C20.7946%2028.3813%2022.3042%2027.7535%2023.5599%2026.4977C24.8157%2025.2419%2025.4436%2023.7323%2025.4436%2021.9689C25.4436%2020.2055%2024.8157%2018.6959%2023.5599%2017.4401C22.3042%2016.1843%2020.7946%2015.5564%2019.0311%2015.5564C17.2677%2015.5564%2015.7581%2016.1843%2014.5023%2017.4401C13.2466%2018.6959%2012.6187%2020.2055%2012.6187%2021.9689C12.6187%2023.7323%2013.2466%2025.2419%2014.5023%2026.4977C15.7581%2027.7535%2017.2677%2028.3813%2019.0311%2028.3813ZM19.0311%2025.1751C18.1494%2025.1751%2017.3946%2024.8612%2016.7667%2024.2333C16.1389%2023.6054%2015.8249%2022.8506%2015.8249%2021.9689C15.8249%2021.0872%2016.1389%2020.3324%2016.7667%2019.7045C17.3946%2019.0766%2018.1494%2018.7627%2019.0311%2018.7627C19.9129%2018.7627%2020.6677%2019.0766%2021.2955%2019.7045C21.9234%2020.3324%2022.2374%2021.0872%2022.2374%2021.9689C22.2374%2022.8506%2021.9234%2023.6054%2021.2955%2024.2333C20.6677%2024.8612%2019.9129%2025.1751%2019.0311%2025.1751Z'%20fill='currentColor'/%3e%3cline%20x1='19.2474'%20y1='21.4734'%20x2='32.0723'%20y2='5.90033'%20stroke='currentColor'%20stroke-width='3'/%3e%3cpath%20d='M31.3671%201.00008L32.8145%205.10599L28.7231%2010.0436L27.2758%205.93772L31.3671%201.00008Z'%20fill='currentColor'/%3e%3cpath%20d='M32.7721%2010.5182L28.7233%2010.0438L32.8147%205.10617L36.8635%205.58054L32.7721%2010.5182Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_168 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_169 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%205.00008V35.0001H20.6529C20.4407%2034.5806%2020.2581%2034.1379%2020.105%2033.6717C19.9517%2033.2054%2019.824%2032.7222%2019.7221%2032.2222H7.77792V7.778H32.2221V19.7084C32.6943%2019.7917%2033.1665%2019.9098%2033.6388%2020.0626C34.111%2020.2154%2034.5647%2020.4074%2035%2020.6388V5.00008H24.1946C23.9815%204.01869%2023.4838%203.21772%2022.7013%202.59717C21.919%201.97689%2021.0186%201.66675%2020%201.66675C18.9814%201.66675%2018.081%201.97689%2017.2988%202.59717C16.5163%203.21772%2016.0185%204.01869%2015.8054%205.00008H5ZM20.9792%206.47925C20.7061%206.7523%2020.3797%206.88883%2020%206.88883C19.6203%206.88883%2019.2939%206.7523%2019.0208%206.47925C18.7478%206.20619%2018.6113%205.8798%2018.6113%205.50008C18.6113%205.12036%2018.7478%204.79397%2019.0208%204.52091C19.2939%204.24786%2019.6203%204.11133%2020%204.11133C20.3797%204.11133%2020.7061%204.24786%2020.9792%204.52091C21.2522%204.79397%2021.3888%205.12036%2021.3888%205.50008C21.3888%205.8798%2021.2522%206.20619%2020.9792%206.47925Z'%20fill='currentColor'/%3e%3cpath%20d='M19.7917%2028.3334H11.6667V25.5555H20.7363C20.514%2025.9908%2020.3265%2026.4399%2020.1738%2026.903C20.021%2027.3658%2019.8936%2027.8426%2019.7917%2028.3334Z'%20fill='currentColor'/%3e%3cpath%20d='M24.6113%2021.3888H11.6667V18.6113H28.3333V19.7638C27.6203%2019.9027%2026.9606%2020.1065%2026.3542%2020.3751C25.7478%2020.6437%2025.1668%2020.9816%2024.6113%2021.3888Z'%20fill='currentColor'/%3e%3cpath%20d='M28.3333%2014.4447H11.6667V11.6667H28.3333V14.4447Z'%20fill='currentColor'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.7013%2035.9513C26.2616%2037.5208%2028.1436%2038.3055%2030.3472%2038.3055C32.5511%2038.3055%2034.4377%2037.5208%2036.0072%2035.9513C37.5766%2034.3819%2038.3613%2032.5092%2038.3613%2030.3334C38.3613%2028.1123%2037.5766%2026.2191%2036.0072%2024.6538C34.4377%2023.0883%2032.5558%2022.3055%2030.3613%2022.3055C28.148%2022.3055%2026.2613%2023.0883%2024.7013%2024.6538C23.1413%2026.2191%2022.3613%2028.1123%2022.3613%2030.3334C22.3613%2032.5092%2023.1413%2034.3819%2024.7013%2035.9513ZM27.26%2034.5311L26.2191%2033.4902L29.3619%2030.3474L26.2191%2027.2046L27.26%2026.1637L30.4028%2029.3065L33.5456%2026.1637L34.5865%2027.2046L31.4438%2030.3474L34.5865%2033.4902L33.5456%2034.5311L30.4028%2031.3883L27.26%2034.5311Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_169 as default
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_170 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2037V24.625H11.1875V37H5ZM17.375%2037V14.3125H23.5625V37H17.375ZM29.75%2037V4H35.9375V37H29.75Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_170 as default
|
|
4
4
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const SvgTagComment = (props) => /* @__PURE__ */ React.createElement("svg", { width: 40, height: 40, viewBox: "0 0 40 40", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M36.6668 36.6666L30.0002 29.9999H6.11141C5.36141 29.9999 4.71086 29.7245 4.15975 29.1737C3.60891 28.6226 3.3335 27.972 3.3335 27.222V6.11117C3.3335 5.36117 3.60891 4.71061 4.15975 4.1595C4.71086 3.60867 5.36141 3.33325 6.11141 3.33325H33.8889C34.6389 3.33325 35.2895 3.60867 35.8406 4.1595C36.3914 4.71061 36.6668 5.36117 36.6668 6.11117V36.6666ZM6.11141 27.222H31.1947L33.8889 30.0695V6.11117H6.11141V27.222Z", fill: "currentColor" }));
|
|
3
|
+
export {
|
|
4
|
+
SvgTagComment as ReactComponent
|
|
5
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite_glob_0_171 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M36.6668%2036.6666L30.0002%2029.9999H6.11141C5.36141%2029.9999%204.71086%2029.7245%204.15975%2029.1737C3.60891%2028.6226%203.3335%2027.972%203.3335%2027.222V6.11117C3.3335%205.36117%203.60891%204.71061%204.15975%204.1595C4.71086%203.60867%205.36141%203.33325%206.11141%203.33325H33.8889C34.6389%203.33325%2035.2895%203.60867%2035.8406%204.1595C36.3914%204.71061%2036.6668%205.36117%2036.6668%206.11117V36.6666ZM6.11141%2027.222H31.1947L33.8889%2030.0695V6.11117H6.11141V27.222Z'%20fill='currentColor'%20/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
__vite_glob_0_171 as default
|
|
4
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const __vite_glob_0_172 = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2038V3H13.0162V38H5ZM28.798%2038V16.5484H36V38H28.798Z'%20fill='currentColor'/%3e%3cpath%20d='M17.3374%2016.5484V3H25.5414V16.5484H17.3374Z'%20fill='currentColor'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
__vite_glob_0_172 as default
|
|
4
4
|
};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { StackProps, SxProps } from '@mui/material';
|
|
2
3
|
import { NumberWithUnitValue } from '../Number';
|
|
3
4
|
export type FormAccordionContent = {
|
|
4
|
-
title: ReactNode;
|
|
5
5
|
content: ReactNode;
|
|
6
|
+
title?: ReactNode;
|
|
6
7
|
indicator?: {
|
|
7
8
|
value: NonNullable<NumberWithUnitValue>;
|
|
8
9
|
unit: string;
|
|
9
10
|
};
|
|
11
|
+
renderTitle?: (isExpanded: boolean) => ReactNode;
|
|
10
12
|
};
|
|
11
13
|
export type FormAccordionProps = {
|
|
12
14
|
pages: FormAccordionContent[];
|
|
15
|
+
initialExpandedPageIndex?: number;
|
|
16
|
+
StackProps?: StackProps;
|
|
17
|
+
AccordionSx?: SxProps;
|
|
18
|
+
AccordionSummarySx?: SxProps;
|
|
19
|
+
AccordionDetailSx?: SxProps;
|
|
13
20
|
};
|
|
14
21
|
export declare const FormAccordion: (props: FormAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,7 +7,15 @@ import AccordionDetails from "@mui/material/AccordionDetails";
|
|
|
7
7
|
import { FormUnit } from "../Form/FormUnit.js";
|
|
8
8
|
import { FoodsIcon } from "../Icons/FoodsIcon.js";
|
|
9
9
|
const FormAccordion = (props) => {
|
|
10
|
-
const
|
|
10
|
+
const {
|
|
11
|
+
pages,
|
|
12
|
+
initialExpandedPageIndex,
|
|
13
|
+
StackProps: StackProps2 = {},
|
|
14
|
+
AccordionSx = {},
|
|
15
|
+
AccordionSummarySx = {},
|
|
16
|
+
AccordionDetailSx = {}
|
|
17
|
+
} = props;
|
|
18
|
+
const [expanded, setExpanded] = useState(initialExpandedPageIndex ?? null);
|
|
11
19
|
const theme = useTheme();
|
|
12
20
|
const refs = useRef([]);
|
|
13
21
|
const selectWindow = (index) => {
|
|
@@ -17,12 +25,13 @@ const FormAccordion = (props) => {
|
|
|
17
25
|
}
|
|
18
26
|
setExpanded(index);
|
|
19
27
|
};
|
|
20
|
-
return /* @__PURE__ */ jsx(Stack, { direction: "column", children:
|
|
28
|
+
return /* @__PURE__ */ jsx(Stack, { direction: "column", gap: theme.spacing(2), ...StackProps2, children: pages.map((page, index) => {
|
|
29
|
+
const isExpanded = expanded === index;
|
|
21
30
|
return /* @__PURE__ */ jsxs(
|
|
22
31
|
Accordion,
|
|
23
32
|
{
|
|
24
33
|
ref: (el) => refs.current[index] = el,
|
|
25
|
-
expanded:
|
|
34
|
+
expanded: isExpanded,
|
|
26
35
|
slotProps: {
|
|
27
36
|
transition: {
|
|
28
37
|
onEntered: (_node, isAppearing) => {
|
|
@@ -41,9 +50,8 @@ const FormAccordion = (props) => {
|
|
|
41
50
|
}
|
|
42
51
|
},
|
|
43
52
|
sx: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
borderRadius: "0 !important",
|
|
53
|
+
border: `1px solid ${theme.custom.grey[500]}`,
|
|
54
|
+
borderRadius: "12px !important",
|
|
47
55
|
boxShadow: "none",
|
|
48
56
|
":before": {
|
|
49
57
|
height: 0
|
|
@@ -53,7 +61,8 @@ const FormAccordion = (props) => {
|
|
|
53
61
|
},
|
|
54
62
|
"&.Mui-expanded": {
|
|
55
63
|
margin: 0
|
|
56
|
-
}
|
|
64
|
+
},
|
|
65
|
+
...AccordionSx
|
|
57
66
|
},
|
|
58
67
|
children: [
|
|
59
68
|
/* @__PURE__ */ jsx(
|
|
@@ -62,11 +71,13 @@ const FormAccordion = (props) => {
|
|
|
62
71
|
expandIcon: /* @__PURE__ */ jsx(FoodsIcon, { size: 4, icon: "arrowDownShort" }),
|
|
63
72
|
onClick: () => selectWindow(index),
|
|
64
73
|
sx: {
|
|
74
|
+
backgroundColor: theme.custom.grey[100],
|
|
65
75
|
minHeight: "84px",
|
|
66
76
|
// I need to somehow FORCE the Font family here. It should be the one defined in the theme to make sure we have
|
|
67
77
|
// one source of truth, but i can't seem to be able to import it,
|
|
68
78
|
fontFamily: ["Montserrat", "serif"].join(","),
|
|
69
|
-
borderRadius:
|
|
79
|
+
// borderRadius: "12px",
|
|
80
|
+
// borderRadius: "0",
|
|
70
81
|
padding: 0,
|
|
71
82
|
"&.Mui-expanded": {
|
|
72
83
|
minHeight: "84px"
|
|
@@ -80,21 +91,35 @@ const FormAccordion = (props) => {
|
|
|
80
91
|
display: "flex",
|
|
81
92
|
alignItems: "center",
|
|
82
93
|
justifyContent: "center",
|
|
83
|
-
marginLeft: "12px",
|
|
94
|
+
// marginLeft: "12px",
|
|
84
95
|
color: theme.custom.grey[2800]
|
|
85
|
-
}
|
|
96
|
+
},
|
|
97
|
+
...AccordionSummarySx
|
|
86
98
|
},
|
|
87
|
-
children: /* @__PURE__ */ jsxs(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
99
|
+
children: page.renderTitle ? page.renderTitle(isExpanded) : /* @__PURE__ */ jsxs(
|
|
100
|
+
Stack,
|
|
101
|
+
{
|
|
102
|
+
direction: "row",
|
|
103
|
+
alignItems: "center",
|
|
104
|
+
gap: "28px",
|
|
105
|
+
paddingInline: theme.spacing(2),
|
|
106
|
+
flex: 1,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h3", flex: 1, children: page.title }),
|
|
109
|
+
page.indicator && /* @__PURE__ */ jsx(FormUnit, { value: page.indicator.value, unit: page.indicator.unit })
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
)
|
|
91
113
|
}
|
|
92
114
|
),
|
|
93
115
|
/* @__PURE__ */ jsx(
|
|
94
116
|
AccordionDetails,
|
|
95
117
|
{
|
|
96
118
|
sx: {
|
|
97
|
-
|
|
119
|
+
backgroundColor: theme.custom.grey[400],
|
|
120
|
+
borderBottomLeftRadius: "12px",
|
|
121
|
+
borderBottomRightRadius: "12px",
|
|
122
|
+
...AccordionDetailSx
|
|
98
123
|
},
|
|
99
124
|
children: page.content
|
|
100
125
|
}
|
|
@@ -513,6 +513,12 @@ export declare const iconMapping: {
|
|
|
513
513
|
readonly formatNumberedList: FunctionComponent< SVGProps<SVGSVGElement> & {
|
|
514
514
|
title?: string;
|
|
515
515
|
}>;
|
|
516
|
+
readonly attachment: FunctionComponent< SVGProps<SVGSVGElement> & {
|
|
517
|
+
title?: string;
|
|
518
|
+
}>;
|
|
519
|
+
readonly tagComment: FunctionComponent< SVGProps<SVGSVGElement> & {
|
|
520
|
+
title?: string;
|
|
521
|
+
}>;
|
|
516
522
|
};
|
|
517
523
|
export type WidthHeight = {
|
|
518
524
|
width: number;
|
|
@@ -169,6 +169,8 @@ import { ReactComponent as SvgTarget } from "../../assets/pages_functions/Target
|
|
|
169
169
|
import { ReactComponent as SvgUncompleteQuestionnaire } from "../../assets/pages_functions/Uncomplete questionnaire.svg.js";
|
|
170
170
|
import { ReactComponent as SvgWaterfallGraph } from "../../assets/pages_functions/waterfall graph.svg.js";
|
|
171
171
|
import { ReactComponent as SvgFormatListNumbered } from "../../assets/pages_functions/Format_list_numbered.svg.js";
|
|
172
|
+
import { ReactComponent as SvgAttachement } from "../../assets/pages_functions/Attachement.svg.js";
|
|
173
|
+
import { ReactComponent as SvgTagComment } from "../../assets/pages_functions/tag Comment.svg.js";
|
|
172
174
|
const iconMapping = {
|
|
173
175
|
// Default icon -- can be used as placeholder
|
|
174
176
|
default: SvgDefault,
|
|
@@ -344,7 +346,9 @@ const iconMapping = {
|
|
|
344
346
|
target: SvgTarget,
|
|
345
347
|
uncompleteQuestionnaire: SvgUncompleteQuestionnaire,
|
|
346
348
|
waterfall: SvgWaterfallGraph,
|
|
347
|
-
formatNumberedList: SvgFormatListNumbered
|
|
349
|
+
formatNumberedList: SvgFormatListNumbered,
|
|
350
|
+
attachment: SvgAttachement,
|
|
351
|
+
tagComment: SvgTagComment
|
|
348
352
|
};
|
|
349
353
|
const computeSize = (size) => {
|
|
350
354
|
const baseSize = 12;
|
|
@@ -155,20 +155,22 @@ import __vite_glob_0_153 from "../../../assets/pages_functions/Add file.svg2.js"
|
|
|
155
155
|
import __vite_glob_0_154 from "../../../assets/pages_functions/All features.svg2.js";
|
|
156
156
|
import __vite_glob_0_155 from "../../../assets/pages_functions/Arrow down right.svg2.js";
|
|
157
157
|
import __vite_glob_0_156 from "../../../assets/pages_functions/Arrow up right.svg2.js";
|
|
158
|
-
import __vite_glob_0_157 from "../../../assets/pages_functions/
|
|
159
|
-
import __vite_glob_0_158 from "../../../assets/pages_functions/
|
|
160
|
-
import __vite_glob_0_159 from "../../../assets/pages_functions/
|
|
161
|
-
import __vite_glob_0_160 from "../../../assets/pages_functions/
|
|
162
|
-
import __vite_glob_0_161 from "../../../assets/pages_functions/
|
|
163
|
-
import __vite_glob_0_162 from "../../../assets/pages_functions/
|
|
164
|
-
import __vite_glob_0_163 from "../../../assets/pages_functions/
|
|
165
|
-
import __vite_glob_0_164 from "../../../assets/pages_functions/
|
|
166
|
-
import __vite_glob_0_165 from "../../../assets/pages_functions/
|
|
167
|
-
import __vite_glob_0_166 from "../../../assets/pages_functions/
|
|
168
|
-
import __vite_glob_0_167 from "../../../assets/pages_functions/
|
|
169
|
-
import __vite_glob_0_168 from "../../../assets/pages_functions/
|
|
170
|
-
import __vite_glob_0_169 from "../../../assets/pages_functions/
|
|
171
|
-
import __vite_glob_0_170 from "../../../assets/pages_functions/
|
|
158
|
+
import __vite_glob_0_157 from "../../../assets/pages_functions/Attachement.svg2.js";
|
|
159
|
+
import __vite_glob_0_158 from "../../../assets/pages_functions/Details.svg2.js";
|
|
160
|
+
import __vite_glob_0_159 from "../../../assets/pages_functions/Done.svg2.js";
|
|
161
|
+
import __vite_glob_0_160 from "../../../assets/pages_functions/Format_list_numbered.svg2.js";
|
|
162
|
+
import __vite_glob_0_161 from "../../../assets/pages_functions/In progress.svg2.js";
|
|
163
|
+
import __vite_glob_0_162 from "../../../assets/pages_functions/Note.svg2.js";
|
|
164
|
+
import __vite_glob_0_163 from "../../../assets/pages_functions/Notes.svg2.js";
|
|
165
|
+
import __vite_glob_0_164 from "../../../assets/pages_functions/Questionnaire answer.svg2.js";
|
|
166
|
+
import __vite_glob_0_165 from "../../../assets/pages_functions/Rules.svg2.js";
|
|
167
|
+
import __vite_glob_0_166 from "../../../assets/pages_functions/Suggestions.svg.js";
|
|
168
|
+
import __vite_glob_0_167 from "../../../assets/pages_functions/Support.svg2.js";
|
|
169
|
+
import __vite_glob_0_168 from "../../../assets/pages_functions/Target.svg2.js";
|
|
170
|
+
import __vite_glob_0_169 from "../../../assets/pages_functions/Uncomplete questionnaire.svg2.js";
|
|
171
|
+
import __vite_glob_0_170 from "../../../assets/pages_functions/graph.svg2.js";
|
|
172
|
+
import __vite_glob_0_171 from "../../../assets/pages_functions/tag Comment.svg2.js";
|
|
173
|
+
import __vite_glob_0_172 from "../../../assets/pages_functions/waterfall graph.svg2.js";
|
|
172
174
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
173
175
|
import { useState, useEffect } from "react";
|
|
174
176
|
import { useTheme, Menu, MenuList, MenuItem, ListItemText, ListItemIcon, Typography } from "@mui/material";
|
|
@@ -338,20 +340,22 @@ function IconSelector({ editor }) {
|
|
|
338
340
|
"../../../assets/pages_functions/All features.svg": __vite_glob_0_154,
|
|
339
341
|
"../../../assets/pages_functions/Arrow down right.svg": __vite_glob_0_155,
|
|
340
342
|
"../../../assets/pages_functions/Arrow up right.svg": __vite_glob_0_156,
|
|
341
|
-
"../../../assets/pages_functions/
|
|
342
|
-
"../../../assets/pages_functions/
|
|
343
|
-
"../../../assets/pages_functions/
|
|
344
|
-
"../../../assets/pages_functions/
|
|
345
|
-
"../../../assets/pages_functions/
|
|
346
|
-
"../../../assets/pages_functions/
|
|
347
|
-
"../../../assets/pages_functions/
|
|
348
|
-
"../../../assets/pages_functions/
|
|
349
|
-
"../../../assets/pages_functions/
|
|
350
|
-
"../../../assets/pages_functions/
|
|
351
|
-
"../../../assets/pages_functions/
|
|
352
|
-
"../../../assets/pages_functions/
|
|
353
|
-
"../../../assets/pages_functions/
|
|
354
|
-
"../../../assets/pages_functions/
|
|
343
|
+
"../../../assets/pages_functions/Attachement.svg": __vite_glob_0_157,
|
|
344
|
+
"../../../assets/pages_functions/Details.svg": __vite_glob_0_158,
|
|
345
|
+
"../../../assets/pages_functions/Done.svg": __vite_glob_0_159,
|
|
346
|
+
"../../../assets/pages_functions/Format_list_numbered.svg": __vite_glob_0_160,
|
|
347
|
+
"../../../assets/pages_functions/In progress.svg": __vite_glob_0_161,
|
|
348
|
+
"../../../assets/pages_functions/Note.svg": __vite_glob_0_162,
|
|
349
|
+
"../../../assets/pages_functions/Notes.svg": __vite_glob_0_163,
|
|
350
|
+
"../../../assets/pages_functions/Questionnaire answer.svg": __vite_glob_0_164,
|
|
351
|
+
"../../../assets/pages_functions/Rules.svg": __vite_glob_0_165,
|
|
352
|
+
"../../../assets/pages_functions/Suggestions.svg": __vite_glob_0_166,
|
|
353
|
+
"../../../assets/pages_functions/Support.svg": __vite_glob_0_167,
|
|
354
|
+
"../../../assets/pages_functions/Target.svg": __vite_glob_0_168,
|
|
355
|
+
"../../../assets/pages_functions/Uncomplete questionnaire.svg": __vite_glob_0_169,
|
|
356
|
+
"../../../assets/pages_functions/graph.svg": __vite_glob_0_170,
|
|
357
|
+
"../../../assets/pages_functions/tag Comment.svg": __vite_glob_0_171,
|
|
358
|
+
"../../../assets/pages_functions/waterfall graph.svg": __vite_glob_0_172
|
|
355
359
|
});
|
|
356
360
|
const iconList = Object.entries(iconModules).map(([path, url]) => {
|
|
357
361
|
var _a;
|
package/dist/main.js
CHANGED
|
@@ -146,7 +146,6 @@ import { allColors, allMainColors, dataVisualizationColors, extraColors, greenTh
|
|
|
146
146
|
import { components } from "./themes/common/components.js";
|
|
147
147
|
import { custom, numbers } from "./themes/common/custom.js";
|
|
148
148
|
import { spacing } from "./themes/common/spacing.js";
|
|
149
|
-
import { BredTheme, BredThemeOptions } from "./themes/themes/BredTheme.js";
|
|
150
149
|
import { CollectiveTheme, CollectiveThemeOptions } from "./themes/themes/CollectiveTheme.js";
|
|
151
150
|
import { FoodPilotTheme, FoodpilotThemeOptions } from "./themes/themes/FoodPilotTheme.js";
|
|
152
151
|
import { WinePilotTheme, WinepilotThemeOptions } from "./themes/themes/WinePilotTheme.js";
|
|
@@ -168,8 +167,6 @@ export {
|
|
|
168
167
|
BottomSheetDialog,
|
|
169
168
|
BoxStyled,
|
|
170
169
|
BreakdownTable,
|
|
171
|
-
BredTheme,
|
|
172
|
-
BredThemeOptions,
|
|
173
170
|
Button,
|
|
174
171
|
ButtonTabs,
|
|
175
172
|
CardImage,
|
|
@@ -408,16 +408,13 @@ const components = {
|
|
|
408
408
|
},
|
|
409
409
|
...variant === "tags-white" && {
|
|
410
410
|
padding: theme.spacing(0, 1),
|
|
411
|
-
border: `1px solid ${theme.custom.grey[400]}`,
|
|
411
|
+
border: `1px solid ${theme.custom.grey[400]} !important`,
|
|
412
412
|
borderRadius: "4px",
|
|
413
413
|
backgroundColor: theme.custom.grey[100],
|
|
414
414
|
color: theme.custom.grey[2800],
|
|
415
415
|
height: "24px",
|
|
416
|
-
/* This is because of a small curser `pointer` show
|
|
417
|
-
In case action is not specified
|
|
418
|
-
@ts-expect-error */
|
|
419
416
|
cursor: "default",
|
|
420
|
-
...ownerState.onClick !== void 0
|
|
417
|
+
...ownerState.onClick !== void 0 && {
|
|
421
418
|
cursor: "pointer",
|
|
422
419
|
":hover": {
|
|
423
420
|
border: `1px solid ${theme.custom.grey[500]}`,
|
|
@@ -432,15 +429,11 @@ const components = {
|
|
|
432
429
|
backgroundColor: theme.custom.grey[100],
|
|
433
430
|
color: theme.custom.grey[1400]
|
|
434
431
|
}
|
|
435
|
-
} : {
|
|
436
|
-
":hover": {
|
|
437
|
-
cursor: "default"
|
|
438
|
-
}
|
|
439
432
|
}
|
|
440
433
|
},
|
|
441
434
|
...variant === "tags-red" && {
|
|
442
435
|
padding: theme.spacing(0, 1),
|
|
443
|
-
border: `1px solid ${theme.custom.
|
|
436
|
+
border: `1px solid ${theme.custom.red[100]}`,
|
|
444
437
|
borderRadius: "4px",
|
|
445
438
|
backgroundColor: theme.custom.red[100],
|
|
446
439
|
color: theme.custom.red[600],
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Theme } from '@mui/material';
|
|
2
2
|
import { FoodsThemeProvider, FoodsThemeOptionsProvider } from './FoodsThemeProvider';
|
|
3
3
|
import { ThemeOptions } from '@mui/material/styles';
|
|
4
|
-
declare const THEMES: readonly ["foodpilot", "winepilot", "collective"
|
|
4
|
+
declare const THEMES: readonly ["foodpilot", "winepilot", "collective"];
|
|
5
5
|
export type Themes = (typeof THEMES)[number];
|
|
6
6
|
export declare const isTheme: (theme: string) => theme is Themes;
|
|
7
7
|
export declare const themes: Record<Themes, Theme>;
|
package/dist/themes/index.js
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
import { ReactComponent as SvgFoodpilot } from "../assets/logos/foodpilot.svg.js";
|
|
2
2
|
import { ReactComponent as SvgWinepilot } from "../assets/logos/winepilot.svg.js";
|
|
3
3
|
import { ReactComponent as SvgPositive } from "../assets/logos/positive.svg.js";
|
|
4
|
-
import { BredTheme, BredThemeOptions } from "./themes/BredTheme.js";
|
|
5
4
|
import { CollectiveTheme, CollectiveThemeOptions } from "./themes/CollectiveTheme.js";
|
|
6
5
|
import { WinePilotTheme, WinepilotThemeOptions } from "./themes/WinePilotTheme.js";
|
|
7
6
|
import { FoodPilotTheme, FoodpilotThemeOptions } from "./themes/FoodPilotTheme.js";
|
|
8
|
-
const THEMES = ["foodpilot", "winepilot", "collective"
|
|
7
|
+
const THEMES = ["foodpilot", "winepilot", "collective"];
|
|
9
8
|
const isTheme = (theme) => {
|
|
10
9
|
return THEMES.includes(theme);
|
|
11
10
|
};
|
|
12
11
|
const themes = {
|
|
13
12
|
foodpilot: FoodPilotTheme,
|
|
14
13
|
winepilot: WinePilotTheme,
|
|
15
|
-
collective: CollectiveTheme
|
|
16
|
-
bred: BredTheme
|
|
14
|
+
collective: CollectiveTheme
|
|
17
15
|
};
|
|
18
16
|
const themeOptions = {
|
|
19
17
|
foodpilot: FoodpilotThemeOptions,
|
|
20
18
|
winepilot: WinepilotThemeOptions,
|
|
21
|
-
collective: CollectiveThemeOptions
|
|
22
|
-
bred: BredThemeOptions
|
|
19
|
+
collective: CollectiveThemeOptions
|
|
23
20
|
};
|
|
24
21
|
const themeLogos = {
|
|
25
22
|
foodpilot: SvgFoodpilot,
|
|
26
23
|
winepilot: SvgWinepilot,
|
|
27
|
-
collective: SvgPositive
|
|
28
|
-
bred: SvgPositive
|
|
29
|
-
// Utilise le logo foodpilot en fallback pour l'instant
|
|
24
|
+
collective: SvgPositive
|
|
30
25
|
};
|
|
31
26
|
const getThemeLogo = (theme) => {
|
|
32
27
|
if (isTheme(theme)) {
|
|
@@ -35,8 +30,6 @@ const getThemeLogo = (theme) => {
|
|
|
35
30
|
return SvgFoodpilot;
|
|
36
31
|
};
|
|
37
32
|
export {
|
|
38
|
-
BredTheme,
|
|
39
|
-
BredThemeOptions,
|
|
40
33
|
CollectiveTheme,
|
|
41
34
|
CollectiveThemeOptions,
|
|
42
35
|
FoodPilotTheme,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { BredTheme, BredThemeOptions } from './BredTheme';
|
|
2
1
|
export { CollectiveTheme, CollectiveThemeOptions } from './CollectiveTheme';
|
|
3
2
|
export { FoodPilotTheme, FoodpilotThemeOptions } from './FoodPilotTheme';
|
|
4
3
|
export { WinePilotTheme, WinepilotThemeOptions } from './WinePilotTheme';
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { createTheme } from "@mui/material";
|
|
2
|
-
import { redTheme, greyTheme } from "../common/colors.js";
|
|
3
|
-
import { components } from "../common/components.js";
|
|
4
|
-
import { typographyConfig } from "../common/MUIComponents/typography.js";
|
|
5
|
-
import { spacing } from "../common/spacing.js";
|
|
6
|
-
import { numbers, custom } from "../common/custom.js";
|
|
7
|
-
const BredThemeOptions = {
|
|
8
|
-
palette: {
|
|
9
|
-
primary: {
|
|
10
|
-
50: "#F2F6FB",
|
|
11
|
-
100: "#C4DCFA",
|
|
12
|
-
200: "#95C3F8",
|
|
13
|
-
300: "#67A9F7",
|
|
14
|
-
400: "#388FF5",
|
|
15
|
-
500: "#317FDB",
|
|
16
|
-
600: "#2A6FC1",
|
|
17
|
-
700: "#2360A6",
|
|
18
|
-
800: "#1C508C",
|
|
19
|
-
900: "#154072"
|
|
20
|
-
// main: "linear-gradient(180deg, #388FF5 0%, #2A6FC1 100%)",
|
|
21
|
-
},
|
|
22
|
-
grey: greyTheme,
|
|
23
|
-
text: { primary: "#393a36" },
|
|
24
|
-
error: {
|
|
25
|
-
light: redTheme[100],
|
|
26
|
-
main: redTheme[600],
|
|
27
|
-
dark: redTheme[800]
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
spacing,
|
|
31
|
-
typography: typographyConfig,
|
|
32
|
-
custom,
|
|
33
|
-
numbers,
|
|
34
|
-
components
|
|
35
|
-
};
|
|
36
|
-
const BredTheme = createTheme(BredThemeOptions);
|
|
37
|
-
export {
|
|
38
|
-
BredTheme,
|
|
39
|
-
BredThemeOptions
|
|
40
|
-
};
|