@flozy/editor 3.3.1 → 3.3.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CommonEditor.js +6 -2
- package/dist/Editor/Elements/AI/AIInput.js +157 -0
- package/dist/Editor/Elements/AI/CustomSelect.js +101 -0
- package/dist/Editor/Elements/AI/PopoverAIInput.js +235 -0
- package/dist/Editor/Elements/AI/Styles.js +149 -0
- package/dist/Editor/Elements/AI/helper.js +145 -0
- package/dist/Editor/Elements/Form/Form.js +33 -4
- package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +54 -0
- package/dist/Editor/Elements/Form/FormElements/FormDate.js +55 -0
- package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +54 -0
- package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +54 -0
- package/dist/Editor/Elements/Form/FormElements/index.js +9 -1
- package/dist/Editor/Elements/Form/FormElements/validations.js +3 -3
- package/dist/Editor/Elements/Form/FormField.js +12 -3
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -3
- package/dist/Editor/Elements/Link/LinkButton.js +8 -6
- package/dist/Editor/Styles/EditorStyles.js +4 -0
- package/dist/Editor/Toolbar/Basic/index.js +9 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/InfinityAITool.js +24 -0
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +4 -2
- package/dist/Editor/Toolbar/PopupTool/index.js +11 -7
- package/dist/Editor/assets/svg/AIIcons.js +438 -0
- package/dist/Editor/common/Icon.js +33 -2
- package/dist/Editor/common/LinkSettings/index.js +0 -1
- package/dist/Editor/common/MentionsPopup/index.js +7 -0
- package/dist/Editor/common/Shorthands/elements.js +12 -0
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +117 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +7 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +41 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectSwitch.js +101 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +44 -17
- package/dist/Editor/common/StyleBuilder/formStyle.js +25 -0
- package/dist/Editor/common/StyleBuilder/textOptionsStyles.js +43 -0
- package/dist/Editor/common/SwipeableDrawer/index.js +1 -1
- package/dist/Editor/common/WaveLoading/index.js +18 -0
- package/dist/Editor/common/WaveLoading/style.css +38 -0
- package/dist/Editor/common/iconslist.js +541 -0
- package/dist/Editor/hooks/useClickOutside.js +35 -0
- package/dist/Editor/hooks/useMouseMove.js +4 -2
- package/dist/Editor/utils/form.js +2 -1
- package/dist/Editor/utils/helper.js +1 -1
- package/dist/Editor/utils/infinityAI.js +23 -0
- package/package.json +1 -1
@@ -1803,4 +1803,545 @@ export const CalendarIconNew = ({
|
|
1803
1803
|
strokeLinecap: "round",
|
1804
1804
|
strokeLinejoin: "round"
|
1805
1805
|
})]
|
1806
|
+
});
|
1807
|
+
export const Text = props => /*#__PURE__*/_jsxs("svg", {
|
1808
|
+
width: "15",
|
1809
|
+
height: "14",
|
1810
|
+
viewBox: "0 0 15 14",
|
1811
|
+
fill: "none",
|
1812
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1813
|
+
children: [/*#__PURE__*/_jsx("path", {
|
1814
|
+
d: "M2.5 4.1825V3.12083C2.5 2.45 3.0425 1.91333 3.7075 1.91333H12.1775C12.8483 1.91333 13.385 2.45583 13.385 3.12083V4.1825",
|
1815
|
+
stroke: "#000",
|
1816
|
+
strokeWidth: "1.5",
|
1817
|
+
strokeLinecap: "round",
|
1818
|
+
strokeLinejoin: "round"
|
1819
|
+
}), /*#__PURE__*/_jsx("path", {
|
1820
|
+
d: "M7.94531 12.0866V2.39746",
|
1821
|
+
stroke: "#000",
|
1822
|
+
strokeWidth: "1.5",
|
1823
|
+
strokeLinecap: "round",
|
1824
|
+
strokeLinejoin: "round"
|
1825
|
+
}), /*#__PURE__*/_jsx("path", {
|
1826
|
+
d: "M5.64844 12.0867H10.2451",
|
1827
|
+
stroke: "#000",
|
1828
|
+
strokeWidth: "1.5",
|
1829
|
+
strokeLinecap: "round",
|
1830
|
+
strokeLinejoin: "round"
|
1831
|
+
})]
|
1832
|
+
});
|
1833
|
+
export const Phone = props => /*#__PURE__*/_jsx("svg", {
|
1834
|
+
width: "16",
|
1835
|
+
height: "16",
|
1836
|
+
viewBox: "0 0 16 16",
|
1837
|
+
fill: "none",
|
1838
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1839
|
+
children: /*#__PURE__*/_jsx("path", {
|
1840
|
+
d: "M14.6493 12.2199C14.6493 12.4599 14.5959 12.7066 14.4826 12.9466C14.3693 13.1866 14.2226 13.4133 14.0293 13.6266C13.7026 13.9866 13.3426 14.2466 12.9359 14.4133C12.5359 14.5799 12.1026 14.6666 11.6359 14.6666C10.9559 14.6666 10.2293 14.5066 9.4626 14.1799C8.69594 13.8533 7.92927 13.4133 7.16927 12.8599C6.4026 12.2999 5.67594 11.6799 4.9826 10.9933C4.29594 10.2999 3.67594 9.57325 3.1226 8.81325C2.57594 8.05325 2.13594 7.29325 1.81594 6.53992C1.49594 5.77992 1.33594 5.05325 1.33594 4.35992C1.33594 3.90659 1.41594 3.47325 1.57594 3.07325C1.73594 2.66659 1.98927 2.29325 2.3426 1.95992C2.76927 1.53992 3.23594 1.33325 3.72927 1.33325C3.91594 1.33325 4.1026 1.37325 4.26927 1.45325C4.4426 1.53325 4.59594 1.65325 4.71594 1.82659L6.2626 4.00659C6.3826 4.17325 6.46927 4.32659 6.52927 4.47325C6.58927 4.61325 6.6226 4.75325 6.6226 4.87992C6.6226 5.03992 6.57594 5.19992 6.4826 5.35325C6.39594 5.50659 6.26927 5.66659 6.10927 5.82659L5.6026 6.35325C5.52927 6.42659 5.49594 6.51325 5.49594 6.61992C5.49594 6.67325 5.5026 6.71992 5.51594 6.77325C5.53594 6.82659 5.55594 6.86659 5.56927 6.90659C5.68927 7.12659 5.89594 7.41325 6.18927 7.75992C6.48927 8.10659 6.80927 8.45992 7.15594 8.81325C7.51594 9.16659 7.8626 9.49325 8.21594 9.79325C8.5626 10.0866 8.84927 10.2866 9.07594 10.4066C9.10927 10.4199 9.14927 10.4399 9.19594 10.4599C9.24927 10.4799 9.3026 10.4866 9.3626 10.4866C9.47594 10.4866 9.5626 10.4466 9.63594 10.3733L10.1426 9.87325C10.3093 9.70659 10.4693 9.57992 10.6226 9.49992C10.7759 9.40659 10.9293 9.35992 11.0959 9.35992C11.2226 9.35992 11.3559 9.38659 11.5026 9.44659C11.6493 9.50659 11.8026 9.59325 11.9693 9.70659L14.1759 11.2733C14.3493 11.3933 14.4693 11.5333 14.5426 11.6999C14.6093 11.8666 14.6493 12.0333 14.6493 12.2199Z",
|
1841
|
+
stroke: "#000",
|
1842
|
+
strokeWidth: "1.2",
|
1843
|
+
strokeMiterlimit: "10"
|
1844
|
+
})
|
1845
|
+
});
|
1846
|
+
export const BriefCase = props => /*#__PURE__*/_jsxs("svg", {
|
1847
|
+
width: "18",
|
1848
|
+
height: "18",
|
1849
|
+
viewBox: "0 0 18 18",
|
1850
|
+
fill: "none",
|
1851
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1852
|
+
children: [/*#__PURE__*/_jsx("path", {
|
1853
|
+
d: "M6.0006 16.5H12.0006C15.0156 16.5 15.5556 15.2925 15.7131 13.8225L16.2756 7.8225C16.4781 5.9925 15.9531 4.5 12.7506 4.5H5.2506C2.0481 4.5 1.5231 5.9925 1.7256 7.8225L2.2881 13.8225C2.4456 15.2925 2.9856 16.5 6.0006 16.5Z",
|
1854
|
+
stroke: "#000",
|
1855
|
+
strokeWidth: "1.2",
|
1856
|
+
strokeMiterlimit: "10",
|
1857
|
+
strokeLinecap: "round",
|
1858
|
+
strokeLinejoin: "round"
|
1859
|
+
}), /*#__PURE__*/_jsx("path", {
|
1860
|
+
d: "M6 4.5V3.9C6 2.5725 6 1.5 8.4 1.5H9.6C12 1.5 12 2.5725 12 3.9V4.5",
|
1861
|
+
stroke: "#000",
|
1862
|
+
strokeWidth: "1.2",
|
1863
|
+
strokeMiterlimit: "10",
|
1864
|
+
strokeLinecap: "round",
|
1865
|
+
strokeLinejoin: "round"
|
1866
|
+
}), /*#__PURE__*/_jsx("path", {
|
1867
|
+
d: "M10.5 9.75V10.5C10.5 10.5075 10.5 10.5075 10.5 10.515C10.5 11.3325 10.4925 12 9 12C7.515 12 7.5 11.34 7.5 10.5225V9.75C7.5 9 7.5 9 8.25 9H9.75C10.5 9 10.5 9 10.5 9.75Z",
|
1868
|
+
stroke: "#000",
|
1869
|
+
strokeWidth: "1.2",
|
1870
|
+
strokeMiterlimit: "10",
|
1871
|
+
strokeLinecap: "round",
|
1872
|
+
strokeLinejoin: "round"
|
1873
|
+
}), /*#__PURE__*/_jsx("path", {
|
1874
|
+
d: "M16.2375 8.25C14.505 9.51 12.525 10.26 10.5 10.515",
|
1875
|
+
stroke: "#000",
|
1876
|
+
strokeWidth: "1.2",
|
1877
|
+
strokeMiterlimit: "10",
|
1878
|
+
strokeLinecap: "round",
|
1879
|
+
strokeLinejoin: "round"
|
1880
|
+
}), /*#__PURE__*/_jsx("path", {
|
1881
|
+
d: "M1.96875 8.45215C3.65625 9.60715 5.56125 10.3046 7.50375 10.5221",
|
1882
|
+
stroke: "#000",
|
1883
|
+
strokeWidth: "1.2",
|
1884
|
+
strokeMiterlimit: "10",
|
1885
|
+
strokeLinecap: "round",
|
1886
|
+
strokeLinejoin: "round"
|
1887
|
+
})]
|
1888
|
+
});
|
1889
|
+
export const Bank = props => /*#__PURE__*/_jsxs("svg", {
|
1890
|
+
width: "16",
|
1891
|
+
height: "16",
|
1892
|
+
viewBox: "0 0 16 16",
|
1893
|
+
fill: "none",
|
1894
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1895
|
+
children: [/*#__PURE__*/_jsx("path", {
|
1896
|
+
d: "M8.24927 1.43355L14.2493 3.83354C14.4826 3.92687 14.6693 4.20687 14.6693 4.45353V6.66687C14.6693 7.03354 14.3693 7.33354 14.0026 7.33354H2.0026C1.63594 7.33354 1.33594 7.03354 1.33594 6.66687V4.45353C1.33594 4.20687 1.52261 3.92687 1.75594 3.83354L7.75594 1.43355C7.88927 1.38022 8.11593 1.38022 8.24927 1.43355Z",
|
1897
|
+
stroke: "#000",
|
1898
|
+
strokeWidth: "1.2",
|
1899
|
+
strokeMiterlimit: "10",
|
1900
|
+
strokeLinecap: "round",
|
1901
|
+
strokeLinejoin: "round"
|
1902
|
+
}), /*#__PURE__*/_jsx("path", {
|
1903
|
+
d: "M14.6693 14.6667H1.33594V12.6667C1.33594 12.3 1.63594 12 2.0026 12H14.0026C14.3693 12 14.6693 12.3 14.6693 12.6667V14.6667Z",
|
1904
|
+
stroke: "#000",
|
1905
|
+
strokeWidth: "1.2",
|
1906
|
+
strokeMiterlimit: "10",
|
1907
|
+
strokeLinecap: "round",
|
1908
|
+
strokeLinejoin: "round"
|
1909
|
+
}), /*#__PURE__*/_jsx("path", {
|
1910
|
+
d: "M2.66406 11.9997V7.33301",
|
1911
|
+
stroke: "#000",
|
1912
|
+
strokeWidth: "1.2",
|
1913
|
+
strokeMiterlimit: "10",
|
1914
|
+
strokeLinecap: "round",
|
1915
|
+
strokeLinejoin: "round"
|
1916
|
+
}), /*#__PURE__*/_jsx("path", {
|
1917
|
+
d: "M5.33594 11.9997V7.33301",
|
1918
|
+
stroke: "#000",
|
1919
|
+
strokeWidth: "1.2",
|
1920
|
+
strokeMiterlimit: "10",
|
1921
|
+
strokeLinecap: "round",
|
1922
|
+
strokeLinejoin: "round"
|
1923
|
+
}), /*#__PURE__*/_jsx("path", {
|
1924
|
+
d: "M8 11.9997V7.33301",
|
1925
|
+
stroke: "#000",
|
1926
|
+
strokeWidth: "1.2",
|
1927
|
+
strokeMiterlimit: "10",
|
1928
|
+
strokeLinecap: "round",
|
1929
|
+
strokeLinejoin: "round"
|
1930
|
+
}), /*#__PURE__*/_jsx("path", {
|
1931
|
+
d: "M10.6641 11.9997V7.33301",
|
1932
|
+
stroke: "#000",
|
1933
|
+
strokeWidth: "1.2",
|
1934
|
+
strokeMiterlimit: "10",
|
1935
|
+
strokeLinecap: "round",
|
1936
|
+
strokeLinejoin: "round"
|
1937
|
+
}), /*#__PURE__*/_jsx("path", {
|
1938
|
+
d: "M13.3359 11.9997V7.33301",
|
1939
|
+
stroke: "#000",
|
1940
|
+
strokeWidth: "1.2",
|
1941
|
+
strokeMiterlimit: "10",
|
1942
|
+
strokeLinecap: "round",
|
1943
|
+
strokeLinejoin: "round"
|
1944
|
+
}), /*#__PURE__*/_jsx("path", {
|
1945
|
+
d: "M0.664062 14.667H15.3307",
|
1946
|
+
stroke: "#000",
|
1947
|
+
strokeWidth: "1.2",
|
1948
|
+
strokeMiterlimit: "10",
|
1949
|
+
strokeLinecap: "round",
|
1950
|
+
strokeLinejoin: "round"
|
1951
|
+
}), /*#__PURE__*/_jsx("path", {
|
1952
|
+
d: "M8 5.66699C8.55228 5.66699 9 5.21928 9 4.66699C9 4.11471 8.55228 3.66699 8 3.66699C7.44772 3.66699 7 4.11471 7 4.66699C7 5.21928 7.44772 5.66699 8 5.66699Z",
|
1953
|
+
stroke: "#000",
|
1954
|
+
strokeWidth: "1.2",
|
1955
|
+
strokeMiterlimit: "10",
|
1956
|
+
strokeLinecap: "round",
|
1957
|
+
strokeLinejoin: "round"
|
1958
|
+
})]
|
1959
|
+
});
|
1960
|
+
export const CalendarTick = props => /*#__PURE__*/_jsxs("svg", {
|
1961
|
+
width: "18",
|
1962
|
+
height: "18",
|
1963
|
+
viewBox: "0 0 18 18",
|
1964
|
+
fill: "none",
|
1965
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1966
|
+
children: [/*#__PURE__*/_jsx("path", {
|
1967
|
+
d: "M6 1.49951V3.74951",
|
1968
|
+
stroke: "#000",
|
1969
|
+
strokeWidth: "1.2",
|
1970
|
+
strokeMiterlimit: "10",
|
1971
|
+
strokeLinecap: "round",
|
1972
|
+
strokeLinejoin: "round"
|
1973
|
+
}), /*#__PURE__*/_jsx("path", {
|
1974
|
+
d: "M12 1.49951V3.74951",
|
1975
|
+
stroke: "#000",
|
1976
|
+
strokeWidth: "1.2",
|
1977
|
+
strokeMiterlimit: "10",
|
1978
|
+
strokeLinecap: "round",
|
1979
|
+
strokeLinejoin: "round"
|
1980
|
+
}), /*#__PURE__*/_jsx("path", {
|
1981
|
+
d: "M2.625 6.81689H15.375",
|
1982
|
+
stroke: "#000",
|
1983
|
+
strokeWidth: "1.2",
|
1984
|
+
strokeMiterlimit: "10",
|
1985
|
+
strokeLinecap: "round",
|
1986
|
+
strokeLinejoin: "round"
|
1987
|
+
}), /*#__PURE__*/_jsx("path", {
|
1988
|
+
d: "M16.5 14.2495C16.5 14.812 16.3425 15.3445 16.065 15.7945C15.5475 16.6645 14.595 17.2495 13.5 17.2495C12.7425 17.2495 12.0525 16.972 11.5275 16.4995C11.295 16.3045 11.0925 16.0645 10.935 15.7945C10.6575 15.3445 10.5 14.812 10.5 14.2495C10.5 12.592 11.8425 11.2495 13.5 11.2495C14.4 11.2495 15.2025 11.647 15.75 12.2695C16.215 12.802 16.5 13.492 16.5 14.2495Z",
|
1989
|
+
stroke: "#000",
|
1990
|
+
strokeWidth: "1.2",
|
1991
|
+
strokeMiterlimit: "10",
|
1992
|
+
strokeLinecap: "round",
|
1993
|
+
strokeLinejoin: "round"
|
1994
|
+
}), /*#__PURE__*/_jsx("path", {
|
1995
|
+
d: "M12.3281 14.2492L13.0706 14.9917L14.6681 13.5142",
|
1996
|
+
stroke: "#000",
|
1997
|
+
strokeWidth: "1.2",
|
1998
|
+
strokeLinecap: "round",
|
1999
|
+
strokeLinejoin: "round"
|
2000
|
+
}), /*#__PURE__*/_jsx("path", {
|
2001
|
+
d: "M15.75 6.37451V12.2695C15.2025 11.647 14.4 11.2495 13.5 11.2495C11.8425 11.2495 10.5 12.592 10.5 14.2495C10.5 14.812 10.6575 15.3445 10.935 15.7945C11.0925 16.0645 11.295 16.3045 11.5275 16.4995H6C3.375 16.4995 2.25 14.9995 2.25 12.7495V6.37451C2.25 4.12451 3.375 2.62451 6 2.62451H12C14.625 2.62451 15.75 4.12451 15.75 6.37451Z",
|
2002
|
+
stroke: "#000",
|
2003
|
+
strokeWidth: "1.2",
|
2004
|
+
strokeMiterlimit: "10",
|
2005
|
+
strokeLinecap: "round",
|
2006
|
+
strokeLinejoin: "round"
|
2007
|
+
}), /*#__PURE__*/_jsx("path", {
|
2008
|
+
d: "M8.99588 10.2747H9.00262",
|
2009
|
+
stroke: "#000",
|
2010
|
+
strokeWidth: "1.2",
|
2011
|
+
strokeLinecap: "round",
|
2012
|
+
strokeLinejoin: "round"
|
2013
|
+
}), /*#__PURE__*/_jsx("path", {
|
2014
|
+
d: "M6.22244 10.2747H6.22918",
|
2015
|
+
stroke: "#000",
|
2016
|
+
strokeWidth: "1.2",
|
2017
|
+
strokeLinecap: "round",
|
2018
|
+
strokeLinejoin: "round"
|
2019
|
+
}), /*#__PURE__*/_jsx("path", {
|
2020
|
+
d: "M6.22244 12.5247H6.22918",
|
2021
|
+
stroke: "#000",
|
2022
|
+
strokeWidth: "1.2",
|
2023
|
+
strokeLinecap: "round",
|
2024
|
+
strokeLinejoin: "round"
|
2025
|
+
})]
|
2026
|
+
});
|
2027
|
+
export const DollarSquare = props => /*#__PURE__*/_jsxs("svg", {
|
2028
|
+
width: "16",
|
2029
|
+
height: "16",
|
2030
|
+
viewBox: "0 0 16 16",
|
2031
|
+
fill: "none",
|
2032
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2033
|
+
children: [/*#__PURE__*/_jsx("path", {
|
2034
|
+
d: "M5.78125 9.55282C5.78125 10.4128 6.44125 11.1062 7.26125 11.1062H8.93458C9.64792 11.1062 10.2279 10.4995 10.2279 9.75282C10.2279 8.93949 9.87458 8.65282 9.34792 8.46616L6.66125 7.53282C6.13458 7.34616 5.78125 7.05949 5.78125 6.24616C5.78125 5.49949 6.36125 4.89282 7.07458 4.89282H8.74792C9.56792 4.89282 10.2279 5.58616 10.2279 6.44616",
|
2035
|
+
stroke: "#000",
|
2036
|
+
strokeLinecap: "round",
|
2037
|
+
strokeLinejoin: "round"
|
2038
|
+
}), /*#__PURE__*/_jsx("path", {
|
2039
|
+
d: "M8 3.99951V11.9995",
|
2040
|
+
stroke: "#000",
|
2041
|
+
strokeLinecap: "round",
|
2042
|
+
strokeLinejoin: "round"
|
2043
|
+
}), /*#__PURE__*/_jsx("path", {
|
2044
|
+
d: "M10.0026 14.6661H6.0026C2.66927 14.6661 1.33594 13.3328 1.33594 9.99943V5.99943C1.33594 2.6661 2.66927 1.33276 6.0026 1.33276H10.0026C13.3359 1.33276 14.6693 2.6661 14.6693 5.99943V9.99943C14.6693 13.3328 13.3359 14.6661 10.0026 14.6661Z",
|
2045
|
+
stroke: "#000",
|
2046
|
+
strokeLinecap: "round",
|
2047
|
+
strokeLinejoin: "round"
|
2048
|
+
})]
|
2049
|
+
});
|
2050
|
+
export const Description = props => /*#__PURE__*/_jsx("svg", {
|
2051
|
+
width: "16",
|
2052
|
+
height: "14",
|
2053
|
+
viewBox: "0 0 16 14",
|
2054
|
+
fill: "none",
|
2055
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2056
|
+
children: /*#__PURE__*/_jsx("path", {
|
2057
|
+
d: "M4.5 1.85665C4.73198 1.85692 4.95439 1.94731 5.11842 2.10799C5.28246 2.26868 5.37473 2.48655 5.375 2.7138V11.2852C5.37473 11.5125 5.28246 11.7303 5.11842 11.891C4.95439 12.0517 4.73198 12.1421 4.5 12.1424H2.75C2.51802 12.1421 2.29561 12.0517 2.13158 11.891C1.96754 11.7303 1.87527 11.5125 1.875 11.2852V2.7138C1.87527 2.48655 1.96754 2.26868 2.13158 2.10799C2.29561 1.94731 2.51802 1.85692 2.75 1.85665H4.5ZM4.5 0.999512H2.75C2.28587 0.999512 1.84075 1.18012 1.51256 1.50161C1.18437 1.82311 1 2.25914 1 2.7138V11.2852C1 11.7399 1.18437 12.1759 1.51256 12.4974C1.84075 12.8189 2.28587 12.9995 2.75 12.9995H4.5C4.96413 12.9995 5.40925 12.8189 5.73744 12.4974C6.06563 12.1759 6.25 11.7399 6.25 11.2852V2.7138C6.25 2.25914 6.06563 1.82311 5.73744 1.50161C5.40925 1.18012 4.96413 0.999512 4.5 0.999512ZM15 3.14237C15 3.08608 14.9887 3.03033 14.9668 2.97832C14.9448 2.92631 14.9126 2.87905 14.8719 2.83925C14.8313 2.79945 14.7831 2.76788 14.73 2.74635C14.6769 2.72483 14.62 2.71376 14.5625 2.7138H8.4375C8.32147 2.7138 8.21019 2.75895 8.12814 2.83932C8.04609 2.9197 8 3.0287 8 3.14237C8 3.25603 8.04609 3.36504 8.12814 3.44541C8.21019 3.52579 8.32147 3.57094 8.4375 3.57094H14.5625C14.62 3.57097 14.6769 3.55991 14.73 3.53838C14.7831 3.51686 14.8313 3.48529 14.8719 3.44549C14.9126 3.40568 14.9448 3.35843 14.9668 3.30641C14.9887 3.2544 15 3.19866 15 3.14237ZM15 5.7138C15 5.65751 14.9887 5.60176 14.9668 5.54975C14.9448 5.49774 14.9126 5.45048 14.8719 5.41068C14.8313 5.37088 14.7831 5.33931 14.73 5.31778C14.6769 5.29626 14.62 5.28519 14.5625 5.28523H8.4375C8.32147 5.28523 8.21019 5.33038 8.12814 5.41075C8.04609 5.49112 8 5.60013 8 5.7138C8 5.82746 8.04609 5.93647 8.12814 6.01684C8.21019 6.09722 8.32147 6.14237 8.4375 6.14237H14.5625C14.62 6.1424 14.6769 6.13134 14.73 6.10981C14.7831 6.08829 14.8313 6.05672 14.8719 6.01692C14.9126 5.97711 14.9448 5.92986 14.9668 5.87784C14.9887 5.82583 15 5.77009 15 5.7138ZM15 8.28523C15 8.22894 14.9887 8.17319 14.9668 8.12118C14.9448 8.06917 14.9126 8.02191 14.8719 7.98211C14.8313 7.9423 14.7831 7.91074 14.73 7.88921C14.6769 7.86768 14.62 7.85662 14.5625 7.85665H8.4375C8.32147 7.85665 8.21019 7.90181 8.12814 7.98218C8.04609 8.06255 8 8.17156 8 8.28523C8 8.39889 8.04609 8.5079 8.12814 8.58827C8.21019 8.66864 8.32147 8.7138 8.4375 8.7138H14.5625C14.62 8.71383 14.6769 8.70277 14.73 8.68124C14.7831 8.65971 14.8313 8.62815 14.8719 8.58834C14.9126 8.54854 14.9448 8.50128 14.9668 8.44927C14.9887 8.39726 15 8.34152 15 8.28523ZM15 10.8567C15 10.8004 14.9887 10.7446 14.9668 10.6926C14.9448 10.6406 14.9126 10.5933 14.8719 10.5535C14.8313 10.5137 14.7831 10.4822 14.73 10.4606C14.6769 10.4391 14.62 10.4281 14.5625 10.4281H8.4375C8.32147 10.4281 8.21019 10.4732 8.12814 10.5536C8.04609 10.634 8 10.743 8 10.8567C8 10.9703 8.04609 11.0793 8.12814 11.1597C8.21019 11.2401 8.32147 11.2852 8.4375 11.2852H14.5625C14.62 11.2853 14.6769 11.2742 14.73 11.2527C14.7831 11.2311 14.8313 11.1996 14.8719 11.1598C14.9126 11.12 14.9448 11.0727 14.9668 11.0207C14.9887 10.9687 15 10.9129 15 10.8567Z",
|
2058
|
+
fill: "#000",
|
2059
|
+
stroke: "#000",
|
2060
|
+
strokeWidth: "0.5"
|
2061
|
+
})
|
2062
|
+
});
|
2063
|
+
export const TextAreaIcon = props => /*#__PURE__*/_jsxs("svg", {
|
2064
|
+
width: "19",
|
2065
|
+
height: "15",
|
2066
|
+
viewBox: "0 0 19 15",
|
2067
|
+
fill: "none",
|
2068
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2069
|
+
children: [/*#__PURE__*/_jsx("path", {
|
2070
|
+
d: "M18.2734 7.34951C18.2735 7.30354 18.2622 7.25802 18.2402 7.21554C18.2182 7.17307 18.186 7.13447 18.1454 7.10196C18.1047 7.06946 18.0565 7.04368 18.0034 7.0261C17.9503 7.00852 17.8934 6.99949 17.8359 6.99951H11.7109C11.5949 6.99951 11.4836 7.03639 11.4016 7.10202C11.3195 7.16766 11.2734 7.25669 11.2734 7.34951C11.2734 7.44234 11.3195 7.53136 11.4016 7.597C11.4836 7.66264 11.5949 7.69951 11.7109 7.69951H17.8359C17.8934 7.69954 17.9503 7.6905 18.0034 7.67292C18.0565 7.65534 18.1047 7.62956 18.1454 7.59706C18.186 7.56455 18.2182 7.52596 18.2402 7.48348C18.2622 7.44101 18.2735 7.39548 18.2734 7.34951ZM18.2734 9.44951C18.2735 9.40354 18.2622 9.35802 18.2402 9.31554C18.2182 9.27306 18.186 9.23447 18.1454 9.20196C18.1047 9.16946 18.0565 9.14368 18.0034 9.1261C17.9503 9.10852 17.8934 9.09948 17.8359 9.09951H11.7109C11.5949 9.09951 11.4836 9.13639 11.4016 9.20202C11.3195 9.26766 11.2734 9.35669 11.2734 9.44951C11.2734 9.54234 11.3195 9.63136 11.4016 9.697C11.4836 9.76264 11.5949 9.79951 11.7109 9.79951H17.8359C17.8934 9.79954 17.9503 9.7905 18.0034 9.77292C18.0565 9.75534 18.1047 9.72956 18.1454 9.69706C18.186 9.66455 18.2182 9.62596 18.2402 9.58348C18.2622 9.54101 18.2735 9.49548 18.2734 9.44951ZM18.2734 11.5495C18.2735 11.5035 18.2622 11.458 18.2402 11.4155C18.2182 11.3731 18.186 11.3345 18.1454 11.302C18.1047 11.2695 18.0565 11.2437 18.0034 11.2261C17.9503 11.2085 17.8934 11.1995 17.8359 11.1995H11.7109C11.5949 11.1995 11.4836 11.2364 11.4016 11.302C11.3195 11.3677 11.2734 11.4567 11.2734 11.5495C11.2734 11.6423 11.3195 11.7314 11.4016 11.797C11.4836 11.8626 11.5949 11.8995 11.7109 11.8995H17.8359C17.8934 11.8995 17.9503 11.8905 18.0034 11.8729C18.0565 11.8553 18.1047 11.8296 18.1454 11.7971C18.186 11.7646 18.2182 11.726 18.2402 11.6835C18.2622 11.641 18.2735 11.5955 18.2734 11.5495ZM18.2734 13.6495C18.2735 13.6035 18.2622 13.558 18.2402 13.5155C18.2182 13.4731 18.186 13.4345 18.1454 13.402C18.1047 13.3695 18.0565 13.3437 18.0034 13.3261C17.9503 13.3085 17.8934 13.2995 17.8359 13.2995H11.7109C11.5949 13.2995 11.4836 13.3364 11.4016 13.402C11.3195 13.4677 11.2734 13.5567 11.2734 13.6495C11.2734 13.7423 11.3195 13.8314 11.4016 13.897C11.4836 13.9626 11.5949 13.9995 11.7109 13.9995H17.8359C17.8934 13.9995 17.9503 13.9905 18.0034 13.9729C18.0565 13.9553 18.1047 13.9296 18.1454 13.8971C18.186 13.8646 18.2182 13.826 18.2402 13.7835C18.2622 13.741 18.2735 13.6955 18.2734 13.6495Z",
|
2071
|
+
fill: "#000",
|
2072
|
+
stroke: "#000",
|
2073
|
+
strokeWidth: "0.5"
|
2074
|
+
}), /*#__PURE__*/_jsx("path", {
|
2075
|
+
d: "M1.82812 4.18201V3.12034C1.82812 2.44951 2.37062 1.91284 3.03562 1.91284H11.5056C12.1765 1.91284 12.7131 2.45534 12.7131 3.12034V4.18201",
|
2076
|
+
stroke: "#000",
|
2077
|
+
strokeWidth: "1.5",
|
2078
|
+
strokeLinecap: "round",
|
2079
|
+
strokeLinejoin: "round"
|
2080
|
+
}), /*#__PURE__*/_jsx("path", {
|
2081
|
+
d: "M7.27344 12.0861V2.39697",
|
2082
|
+
stroke: "#000",
|
2083
|
+
strokeWidth: "1.5",
|
2084
|
+
strokeLinecap: "round",
|
2085
|
+
strokeLinejoin: "round"
|
2086
|
+
}), /*#__PURE__*/_jsx("path", {
|
2087
|
+
d: "M4.97656 12.0862H9.57323",
|
2088
|
+
stroke: "#000",
|
2089
|
+
strokeWidth: "1.5",
|
2090
|
+
strokeLinecap: "round",
|
2091
|
+
strokeLinejoin: "round"
|
2092
|
+
})]
|
2093
|
+
});
|
2094
|
+
export const RadioButtonIcon = props => /*#__PURE__*/_jsxs("svg", {
|
2095
|
+
width: "16",
|
2096
|
+
height: "16",
|
2097
|
+
viewBox: "0 0 16 16",
|
2098
|
+
fill: "none",
|
2099
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2100
|
+
children: [/*#__PURE__*/_jsx("path", {
|
2101
|
+
d: "M14.95 7.57852C14.95 11.5116 11.7307 14.7071 7.75075 14.7071C3.77077 14.7071 0.551514 11.5116 0.551514 7.57852C0.551514 3.64545 3.77077 0.449952 7.75075 0.449952C11.7307 0.449952 14.95 3.64545 14.95 7.57852Z",
|
2102
|
+
fill: "#F1F3F9",
|
2103
|
+
stroke: "#000",
|
2104
|
+
strokeWidth: "0.899904"
|
2105
|
+
}), /*#__PURE__*/_jsx("circle", {
|
2106
|
+
cx: "7.75269",
|
2107
|
+
cy: "7.64918",
|
2108
|
+
r: "3.59962",
|
2109
|
+
fill: "#000",
|
2110
|
+
stroke: "#000",
|
2111
|
+
strokeWidth: "0.899904"
|
2112
|
+
})]
|
2113
|
+
});
|
2114
|
+
export const Checkbox = props => /*#__PURE__*/_jsxs("svg", {
|
2115
|
+
width: "14",
|
2116
|
+
height: "14",
|
2117
|
+
viewBox: "0 0 14 14",
|
2118
|
+
fill: "none",
|
2119
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2120
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
2121
|
+
x: "0.5",
|
2122
|
+
y: "0.5",
|
2123
|
+
width: "13",
|
2124
|
+
height: "13",
|
2125
|
+
rx: "2.5",
|
2126
|
+
stroke: "#000"
|
2127
|
+
}), /*#__PURE__*/_jsx("path", {
|
2128
|
+
d: "M4.11719 7.05603L6.23026 9.16822L10.4546 4.94385",
|
2129
|
+
stroke: "#000",
|
2130
|
+
strokeLinecap: "round",
|
2131
|
+
strokeLinejoin: "round"
|
2132
|
+
})]
|
2133
|
+
});
|
2134
|
+
export const CheckedIcon = props => /*#__PURE__*/_jsxs("svg", {
|
2135
|
+
width: "16",
|
2136
|
+
height: "17",
|
2137
|
+
viewBox: "0 0 16 17",
|
2138
|
+
fill: "none",
|
2139
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2140
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
2141
|
+
y: "0.5",
|
2142
|
+
width: "16",
|
2143
|
+
height: "16",
|
2144
|
+
rx: "2.64706",
|
2145
|
+
fill: "#2563EB"
|
2146
|
+
}), /*#__PURE__*/_jsx("path", {
|
2147
|
+
d: "M4.70312 8.5609L7.11807 10.9748L11.9459 6.14697",
|
2148
|
+
stroke: "white",
|
2149
|
+
strokeWidth: "1.32353",
|
2150
|
+
strokeLinecap: "round",
|
2151
|
+
strokeLinejoin: "round"
|
2152
|
+
})]
|
2153
|
+
});
|
2154
|
+
export const UncheckedIcon = props => /*#__PURE__*/_jsx("svg", {
|
2155
|
+
width: "17",
|
2156
|
+
height: "17",
|
2157
|
+
viewBox: "0 0 17 17",
|
2158
|
+
fill: "none",
|
2159
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2160
|
+
children: /*#__PURE__*/_jsx("rect", {
|
2161
|
+
x: "0.5",
|
2162
|
+
y: "0.5",
|
2163
|
+
width: "16",
|
2164
|
+
height: "16",
|
2165
|
+
rx: "3.5",
|
2166
|
+
fill: "#F1F3F9",
|
2167
|
+
stroke: "#D1D4DC"
|
2168
|
+
})
|
2169
|
+
});
|
2170
|
+
export const InfinityIcon = () => /*#__PURE__*/_jsxs("svg", {
|
2171
|
+
width: "22",
|
2172
|
+
height: "14",
|
2173
|
+
viewBox: "0 0 22 14",
|
2174
|
+
fill: "none",
|
2175
|
+
xmlns: "http://www.w3.org/2000/svg",
|
2176
|
+
children: [/*#__PURE__*/_jsx("path", {
|
2177
|
+
d: "M0.915756 6.95902C1.12067 5.41363 1.86206 4.92055 2.20714 4.86719C2.08975 5.03795 1.83787 5.44564 1.76957 5.71032C1.68419 6.04118 1.63082 6.95902 2.20714 7.8662C2.78347 8.77337 3.81871 9.29633 4.81127 9.60583C5.60531 9.85344 6.3588 9.80861 6.63628 9.75525C6.89243 9.76592 6.67063 10.0044 5.73978 10.3422C4.71521 10.7158 3.59459 10.8118 2.66607 10.2889C1.73755 9.76592 0.659613 8.89077 0.915756 6.95902Z",
|
2178
|
+
fill: "url(#paint0_linear_3_7)"
|
2179
|
+
}), /*#__PURE__*/_jsx("path", {
|
2180
|
+
d: "M0.915756 6.95902C1.12067 5.41363 1.86206 4.92055 2.20714 4.86719C2.08975 5.03795 1.83787 5.44564 1.76957 5.71032C1.68419 6.04118 1.63082 6.95902 2.20714 7.86619C2.46246 8.26809 2.80785 8.59457 3.1997 8.8605C3.37046 8.9548 3.4345 9.01884 3.4345 9.01884C3.16768 9.0722 2.75145 9.13624 2.20714 9.01884C1.66284 8.90144 1.13988 8.59193 0.930734 8.12234C0.868272 7.78378 0.857446 7.39878 0.915756 6.95902Z",
|
2181
|
+
fill: "url(#paint1_linear_3_7)"
|
2182
|
+
}), /*#__PURE__*/_jsx("path", {
|
2183
|
+
d: "M2.15304 9.10612C1.64075 8.44442 1.13537 7.33708 1.77573 5.71484C1.63699 6.18444 1.83445 7.07297 2.01589 7.52122C2.19732 7.96947 2.89531 8.8014 4.05821 9.35159C5.05076 9.82119 6.23709 9.82119 6.79562 9.7785C6.50746 9.91368 5.69208 10.1862 4.73581 10.1947C3.54047 10.2054 2.74003 9.69312 2.15304 9.10612Z",
|
2184
|
+
fill: "url(#paint2_linear_3_7)"
|
2185
|
+
}), /*#__PURE__*/_jsx("path", {
|
2186
|
+
d: "M16.4362 12.7797C18.4637 12.4072 19.9581 11.4316 21.144 9.00646C20.8404 9.27254 20.1806 9.908 19.6785 10.2241C19.0509 10.6192 17.887 11.0693 17.4547 11.5271C16.6737 12.2487 15.4362 12.6472 14.9104 12.7027C14.3846 12.7582 14.6598 13.0473 16.4362 12.7797Z",
|
2187
|
+
fill: "url(#paint3_linear_3_7)"
|
2188
|
+
}), /*#__PURE__*/_jsx("path", {
|
2189
|
+
d: "M2.48878 3.38168C0.992124 4.16676 0.598877 5.99203 0.70329 7.17193C0.807704 8.35183 1.11378 8.54174 1.05295 8.43731C0.854563 7.0486 1.11051 5.49084 2.22774 5.08363C3.34498 4.67641 4.43089 5.58482 5.38106 6.50366C6.33123 7.42251 8.16893 9.05138 8.87895 9.7614C9.58897 10.4714 12.3107 12.7602 14.3781 12.8751C16.2993 12.9818 17.3539 11.9667 18.151 10.9726C18.6301 10.3751 19.0072 8.91564 18.8192 9.09315C18.6313 9.27065 18.1196 9.75096 17.159 10.012C16.1984 10.273 14.9454 10.1477 13.8595 9.81361C12.7736 9.47948 11.364 8.50842 10.4765 7.69399C9.58897 6.87956 7.43803 4.71818 6.44609 3.97684C5.45415 3.2355 3.92934 2.62603 2.48878 3.38168Z",
|
2190
|
+
fill: "url(#paint4_linear_3_7)"
|
2191
|
+
}), /*#__PURE__*/_jsx("path", {
|
2192
|
+
d: "M6.45603 3.95461C5.46409 3.21327 3.91876 2.5659 2.49872 3.35945C1.47193 3.95461 1.20045 4.64584 1.35708 4.46834C1.5137 4.29083 2.63093 2.78726 4.46863 3.7792C6.30632 4.77114 8.20667 7.35018 9.72068 8.77022C11.2347 10.1903 12.2754 11.0256 13.8695 11.4954C15.4635 11.9653 17.4927 11.6583 18.1609 10.9504C18.6401 10.3528 19.0171 8.89341 18.8292 9.07092C18.6412 9.24842 18.1296 9.72873 17.169 9.98976C16.2083 10.2508 14.9554 10.1255 13.8695 9.79138C12.7836 9.45725 11.374 8.48619 10.4864 7.67176C9.59891 6.85733 7.44797 4.69595 6.45603 3.95461Z",
|
2193
|
+
fill: "url(#paint5_linear_3_7)"
|
2194
|
+
}), /*#__PURE__*/_jsx("path", {
|
2195
|
+
d: "M17.9698 11.1279C17.8237 11.2845 19.0573 10.8051 20.2477 9.87581C20.6099 9.593 20.7786 9.48856 21.0188 9.21708C21.2432 8.96331 21.699 7.3072 21.699 6.5241C21.6573 4.937 21.2393 3.94621 21.1456 3.74576C21.0187 3.47416 20.977 3.35945 21.0188 4.16344C21.0605 4.96743 20.9561 6.05334 20.5071 6.99307C19.9328 7.9328 19.5778 8.18338 18.9618 8.83075C18.826 8.97693 18.8783 9.24843 18.7634 9.593C18.6381 10.0002 18.116 10.9712 17.9698 11.1279Z",
|
2196
|
+
fill: "url(#paint6_linear_3_7)"
|
2197
|
+
}), /*#__PURE__*/_jsx("path", {
|
2198
|
+
d: "M3.44581 9.00993C3.27874 9.06005 3.70684 9.34419 4.91804 9.72008C5.40879 9.82449 6.45294 10.1167 6.92281 9.78272C7.58062 9.47317 9.08419 8.04944 9.72112 7.40207C10.2571 6.89044 11.5713 5.72935 12.5403 5.17804C13.7515 4.48891 15.5579 3.68491 16.9362 4.1339C18.3144 4.58288 18.8574 6.31616 18.8783 7.04706C18.8992 7.77797 18.8783 8.7177 18.8783 8.95785C18.8748 9.0205 18.943 9.05809 19.2437 8.70725C19.6196 8.26871 20.0686 8.04944 20.6429 6.71294C20.8622 6.16302 21.227 4.63509 21.0814 3.78933C20.9556 3.05843 20.6528 2.67209 20.079 2.02472C19.5052 1.37735 18.2309 0.448066 16.696 0.437625C15.1611 0.427183 13.9603 1.07455 13.3025 1.3878C12.1957 1.89943 10.3894 3.26726 9.41832 4.23831C8.43682 5.13628 7.44488 6.13866 6.82884 6.75471C6.336 7.24754 5.60022 7.96243 5.29394 8.25827C4.67789 8.73858 3.68596 8.93789 3.44581 9.00993Z",
|
2199
|
+
fill: "url(#paint7_linear_3_7)"
|
2200
|
+
}), /*#__PURE__*/_jsx("path", {
|
2201
|
+
d: "M6.93299 9.79053C6.50698 9.991 5.41897 9.8323 4.92822 9.72788C5.11809 9.65819 5.74215 9.30791 6.71947 8.46434C7.94112 7.40988 9.69528 5.78076 11.2719 4.78895C13.1618 3.62995 14.9672 3.09756 16.9463 4.1417C15.5681 3.69272 13.7617 4.49671 12.5505 5.18585C11.5815 5.73715 10.2673 6.89824 9.7313 7.40988C9.09437 8.05724 7.5908 9.48097 6.93299 9.79053Z",
|
2202
|
+
fill: "url(#paint8_linear_3_7)"
|
2203
|
+
}), /*#__PURE__*/_jsx("path", {
|
2204
|
+
d: "M19.2123 2.0471C18.3519 1.23685 16.682 1.20831 15.9546 1.29532L20.4235 4.72012C20.4235 4.72012 20.2878 3.05993 19.2123 2.0471Z",
|
2205
|
+
fill: "url(#paint9_linear_3_7)"
|
2206
|
+
}), /*#__PURE__*/_jsxs("defs", {
|
2207
|
+
children: [/*#__PURE__*/_jsxs("linearGradient", {
|
2208
|
+
id: "paint0_linear_3_7",
|
2209
|
+
x1: "5.86156",
|
2210
|
+
y1: "8.09032",
|
2211
|
+
x2: "3.80393",
|
2212
|
+
y2: "10.6519",
|
2213
|
+
gradientUnits: "userSpaceOnUse",
|
2214
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2215
|
+
stopColor: "#8D2EB0"
|
2216
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2217
|
+
offset: "0.932292",
|
2218
|
+
stopColor: "#6E11B8"
|
2219
|
+
})]
|
2220
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2221
|
+
id: "paint1_linear_3_7",
|
2222
|
+
x1: "0.621298",
|
2223
|
+
y1: "4.69643",
|
2224
|
+
x2: "2.46766",
|
2225
|
+
y2: "9.49911",
|
2226
|
+
gradientUnits: "userSpaceOnUse",
|
2227
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2228
|
+
stopColor: "#2563EB"
|
2229
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2230
|
+
offset: "1",
|
2231
|
+
stopColor: "#BA6CD9"
|
2232
|
+
})]
|
2233
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2234
|
+
id: "paint2_linear_3_7",
|
2235
|
+
x1: "0.333462",
|
2236
|
+
y1: "7.80406",
|
2237
|
+
x2: "4.71991",
|
2238
|
+
y2: "9.23419",
|
2239
|
+
gradientUnits: "userSpaceOnUse",
|
2240
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2241
|
+
stopColor: "#D9D9D9",
|
2242
|
+
stopOpacity: "0.59"
|
2243
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2244
|
+
offset: "1",
|
2245
|
+
stopColor: "#D9D9D9",
|
2246
|
+
stopOpacity: "0"
|
2247
|
+
})]
|
2248
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2249
|
+
id: "paint3_linear_3_7",
|
2250
|
+
x1: "18.5807",
|
2251
|
+
y1: "9.83068",
|
2252
|
+
x2: "16.6663",
|
2253
|
+
y2: "13.7539",
|
2254
|
+
gradientUnits: "userSpaceOnUse",
|
2255
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2256
|
+
stopColor: "#615EFF"
|
2257
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2258
|
+
offset: "1",
|
2259
|
+
stopColor: "#FF5EB0"
|
2260
|
+
})]
|
2261
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2262
|
+
id: "paint4_linear_3_7",
|
2263
|
+
x1: "21.6488",
|
2264
|
+
y1: "6.62897",
|
2265
|
+
x2: "0.692848",
|
2266
|
+
y2: "7.11972",
|
2267
|
+
gradientUnits: "userSpaceOnUse",
|
2268
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2269
|
+
stopColor: "#8360FD"
|
2270
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2271
|
+
offset: "1",
|
2272
|
+
stopColor: "#A037D9"
|
2273
|
+
})]
|
2274
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2275
|
+
id: "paint5_linear_3_7",
|
2276
|
+
x1: "16.2785",
|
2277
|
+
y1: "8.55095",
|
2278
|
+
x2: "3.48774",
|
2279
|
+
y2: "7.62166",
|
2280
|
+
gradientUnits: "userSpaceOnUse",
|
2281
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2282
|
+
stopColor: "#CFB9FE"
|
2283
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2284
|
+
offset: "1",
|
2285
|
+
stopColor: "#0029FF"
|
2286
|
+
})]
|
2287
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2288
|
+
id: "paint6_linear_3_7",
|
2289
|
+
x1: "21.887",
|
2290
|
+
y1: "3.69445",
|
2291
|
+
x2: "17.4494",
|
2292
|
+
y2: "12.5906",
|
2293
|
+
gradientUnits: "userSpaceOnUse",
|
2294
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2295
|
+
stopColor: "#2C92FF"
|
2296
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2297
|
+
offset: "1",
|
2298
|
+
stopColor: "#0001C5"
|
2299
|
+
})]
|
2300
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2301
|
+
id: "paint7_linear_3_7",
|
2302
|
+
x1: "22.8982",
|
2303
|
+
y1: "-0.522987",
|
2304
|
+
x2: "14.0648",
|
2305
|
+
y2: "13.7922",
|
2306
|
+
gradientUnits: "userSpaceOnUse",
|
2307
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2308
|
+
stopColor: "#2563EB"
|
2309
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2310
|
+
offset: "0.308321",
|
2311
|
+
stopColor: "#4C60FF"
|
2312
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2313
|
+
offset: "0.802083",
|
2314
|
+
stopColor: "#925FFF"
|
2315
|
+
})]
|
2316
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2317
|
+
id: "paint8_linear_3_7",
|
2318
|
+
x1: "14.5506",
|
2319
|
+
y1: "1.99065",
|
2320
|
+
x2: "9.83102",
|
2321
|
+
y2: "9.71732",
|
2322
|
+
gradientUnits: "userSpaceOnUse",
|
2323
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2324
|
+
stopColor: "#D9D9D9"
|
2325
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2326
|
+
offset: "1",
|
2327
|
+
stopColor: "#D9D9D9",
|
2328
|
+
stopOpacity: "0"
|
2329
|
+
})]
|
2330
|
+
}), /*#__PURE__*/_jsxs("linearGradient", {
|
2331
|
+
id: "paint9_linear_3_7",
|
2332
|
+
x1: "19.9015",
|
2333
|
+
y1: "0.564425",
|
2334
|
+
x2: "17.4582",
|
2335
|
+
y2: "3.45671",
|
2336
|
+
gradientUnits: "userSpaceOnUse",
|
2337
|
+
children: [/*#__PURE__*/_jsx("stop", {
|
2338
|
+
offset: "0.295908",
|
2339
|
+
stopColor: "#D9D9D9"
|
2340
|
+
}), /*#__PURE__*/_jsx("stop", {
|
2341
|
+
offset: "0.667869",
|
2342
|
+
stopColor: "#D9D9D9",
|
2343
|
+
stopOpacity: "0"
|
2344
|
+
})]
|
2345
|
+
})]
|
2346
|
+
})]
|
1806
2347
|
});
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import React, { useEffect, useRef } from "react";
|
2
|
+
const useClickOutside = ({
|
3
|
+
onClickOutside,
|
4
|
+
omitIds = [],
|
5
|
+
omitClass = [],
|
6
|
+
refCount = 1
|
7
|
+
}) => {
|
8
|
+
const refs = useRef([...Array(refCount)].map(() => /*#__PURE__*/React.createRef()));
|
9
|
+
useEffect(() => {
|
10
|
+
const handleClickOutside = event => {
|
11
|
+
let isClickedInside = false;
|
12
|
+
for (let ref of refs.current) {
|
13
|
+
if (ref.current && ref.current.contains(event.target)) {
|
14
|
+
isClickedInside = true;
|
15
|
+
break;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
if (!isClickedInside) {
|
19
|
+
if (omitIds.includes(event.target.id)) {
|
20
|
+
return;
|
21
|
+
}
|
22
|
+
if (omitClass.some(c => event.target.className.includes(c))) {
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
onClickOutside();
|
26
|
+
}
|
27
|
+
};
|
28
|
+
document.addEventListener("mousedown", handleClickOutside);
|
29
|
+
return () => {
|
30
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
31
|
+
};
|
32
|
+
}, [onClickOutside, omitIds, omitClass]);
|
33
|
+
return refs.current;
|
34
|
+
};
|
35
|
+
export default useClickOutside;
|
@@ -27,7 +27,7 @@ export const EditorProvider = ({
|
|
27
27
|
const [selectedPath, setSelectedPath] = useState(null);
|
28
28
|
const path = event?.target?.getAttribute("data-path");
|
29
29
|
const [popupType, setPopupType] = useState(""); // opened popup name in the editor will be stored
|
30
|
-
|
30
|
+
const [openAI, setOpenAI] = useState("");
|
31
31
|
const onDrop = () => {
|
32
32
|
setDrop(drop + 1);
|
33
33
|
};
|
@@ -52,7 +52,9 @@ export const EditorProvider = ({
|
|
52
52
|
selectedPath: selectedPath,
|
53
53
|
setSelectedPath: setSelectedPath,
|
54
54
|
popupType,
|
55
|
-
setPopupType
|
55
|
+
setPopupType,
|
56
|
+
openAI,
|
57
|
+
setOpenAI
|
56
58
|
},
|
57
59
|
children: children
|
58
60
|
});
|
@@ -204,7 +204,7 @@ export const decodeAndParseBase64 = encodedString => {
|
|
204
204
|
const jsonData = JSON.parse(decodedURLString);
|
205
205
|
return jsonData;
|
206
206
|
};
|
207
|
-
const hasVerticalScrollbar = (element = {}) => {
|
207
|
+
export const hasVerticalScrollbar = (element = {}) => {
|
208
208
|
return element.scrollHeight > element.clientHeight;
|
209
209
|
};
|
210
210
|
export const handleLinkType = (url, linkType, readOnly, openInNewTab, onClick = () => {}) => {
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Node, Path, Transforms } from "slate";
|
2
|
+
export const insertInfinityAI = editor => {
|
3
|
+
Transforms.delete(editor, editor.selection);
|
4
|
+
const {
|
5
|
+
path
|
6
|
+
} = editor.selection.anchor;
|
7
|
+
const {
|
8
|
+
text
|
9
|
+
} = Node.get(editor, path);
|
10
|
+
const currentPath = Path.parent(editor.selection.focus.path);
|
11
|
+
const nextPath = Path.next(currentPath);
|
12
|
+
if (text?.length) {
|
13
|
+
Transforms.insertNodes(editor, {
|
14
|
+
type: "paragraph",
|
15
|
+
children: [{
|
16
|
+
text: ""
|
17
|
+
}]
|
18
|
+
}, {
|
19
|
+
at: nextPath,
|
20
|
+
select: true
|
21
|
+
});
|
22
|
+
}
|
23
|
+
};
|