@dragunio/fe-libs 0.1.10 → 0.1.12
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/README.md +25 -5
- package/dist/{chunk-BAZJ5UJ5.mjs → chunk-Y2EURBYU.mjs} +29 -14
- package/dist/icons.d.mts +4 -1
- package/dist/icons.d.ts +4 -1
- package/dist/icons.js +24 -6
- package/dist/icons.mjs +7 -1
- package/dist/index.d.mts +62 -8
- package/dist/index.d.ts +62 -8
- package/dist/index.js +270 -22
- package/dist/index.mjs +253 -17
- package/dist/styles.css +127 -25
- package/package.json +22 -2
package/dist/index.js
CHANGED
|
@@ -97,10 +97,13 @@ __export(index_exports, {
|
|
|
97
97
|
message: () => message,
|
|
98
98
|
minus_square: () => minus_square,
|
|
99
99
|
normalizePhoneNumber: () => normalizePhoneNumber,
|
|
100
|
+
pin_02: () => pin_02,
|
|
100
101
|
plus: () => plus,
|
|
101
102
|
plus_square: () => plus_square,
|
|
102
103
|
search: () => search,
|
|
104
|
+
settings: () => settings,
|
|
103
105
|
trash: () => trash,
|
|
106
|
+
unpin_02: () => unpin_02,
|
|
104
107
|
validateEmail: () => validateEmail,
|
|
105
108
|
validatePassword: () => validatePassword,
|
|
106
109
|
validatePhoneNumber: () => validatePhoneNumber,
|
|
@@ -218,6 +221,18 @@ var copy = (props) => {
|
|
|
218
221
|
var check_square_fill = (props) => {
|
|
219
222
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { ...iconProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16.2359 2.15039H7.76414C6.95452 2.15038 6.2954 2.15037 5.76039 2.19409C5.20757 2.23925 4.7128 2.3353 4.25214 2.57002C3.52771 2.93913 2.93874 3.5281 2.56963 4.25253C2.3349 4.71319 2.23886 5.20796 2.1937 5.76078C2.14998 6.29579 2.14999 6.95489 2.15 7.7645V16.2363C2.14999 17.0459 2.14998 17.705 2.1937 18.24C2.23886 18.7928 2.3349 19.2876 2.56963 19.7483C2.93874 20.4727 3.52771 21.0617 4.25214 21.4308C4.7128 21.6655 5.20757 21.7615 5.76039 21.8067C6.29542 21.8504 6.95454 21.8504 7.76419 21.8504H16.2358C17.0455 21.8504 17.7046 21.8504 18.2396 21.8067C18.7924 21.7615 19.2872 21.6655 19.7479 21.4308C20.4723 21.0617 21.0613 20.4727 21.4304 19.7483C21.6651 19.2876 21.7611 18.7928 21.8063 18.24C21.85 17.705 21.85 17.0459 21.85 16.2362V7.76459C21.85 6.95493 21.85 6.29581 21.8063 5.76078C21.7611 5.20796 21.6651 4.71319 21.4304 4.25253C21.0613 3.5281 20.4723 2.93913 19.7479 2.57002C19.2872 2.3353 18.7924 2.23925 18.2396 2.19409C17.7046 2.15037 17.0455 2.15038 16.2359 2.15039ZM17.101 9.60143C17.433 9.26949 17.433 8.7313 17.101 8.39935C16.7691 8.06741 16.2309 8.06741 15.899 8.39935L10.5 13.7983L8.10104 11.3994C7.7691 11.0674 7.23091 11.0674 6.89896 11.3994C6.56701 11.7313 6.56701 12.2695 6.89896 12.6014L9.89896 15.6014C10.2309 15.9334 10.7691 15.9334 11.101 15.6014L17.101 9.60143Z", fill: props.fill }) });
|
|
220
223
|
};
|
|
224
|
+
var settings = (props) => {
|
|
225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { ...iconProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.0004 2.8499C11.7436 2.8499 11.4974 2.95191 11.3158 3.13348C11.1342 3.31505 11.0322 3.56131 11.0322 3.81808V3.97263L11.0322 3.97602C11.0304 4.43432 10.8946 4.88209 10.6415 5.2642C10.3885 5.64631 10.0292 5.94608 9.60796 6.12663C9.53422 6.15823 9.45654 6.17916 9.37726 6.18895C8.99285 6.32471 8.57864 6.35846 8.17548 6.28536C7.71346 6.20159 7.28713 5.98133 6.95147 5.65299L6.94477 5.64643L6.89026 5.59185C6.80034 5.50183 6.69323 5.43009 6.57569 5.38136C6.45816 5.33264 6.33217 5.30756 6.20494 5.30756C6.0777 5.30756 5.95172 5.33264 5.83418 5.38136C5.71664 5.43009 5.60987 5.5015 5.51995 5.59152C5.42993 5.68144 5.35785 5.78888 5.30913 5.90642C5.2604 6.02395 5.23532 6.14994 5.23532 6.27717C5.23532 6.40441 5.2604 6.5304 5.30913 6.64793C5.35785 6.76547 5.42926 6.87225 5.51928 6.96216L5.58079 7.02367C5.90913 7.35934 6.12935 7.7857 6.21312 8.24772C6.2953 8.70092 6.24245 9.16809 6.06145 9.5912C5.89697 10.0231 5.60867 10.3972 5.23242 10.6663C4.84888 10.9406 4.39168 11.0932 3.92027 11.1042L3.90039 11.1044H3.81857C3.5618 11.1044 3.31553 11.2065 3.13396 11.388C2.9524 11.5696 2.85039 11.8159 2.85039 12.0726C2.85039 12.3294 2.9524 12.5757 3.13396 12.7572C3.31553 12.9388 3.5618 13.0408 3.81857 13.0408H3.97651C4.43481 13.0426 4.88258 13.1784 5.26469 13.4315C5.64552 13.6837 5.94457 14.0414 6.1253 14.4608C6.31343 14.8893 6.36935 15.3643 6.28585 15.8248C6.20208 16.2868 5.98182 16.7132 5.65348 17.0488L5.64692 17.0555L5.59234 17.11C5.50232 17.2 5.43058 17.3071 5.38185 17.4246C5.33313 17.5421 5.30805 17.6681 5.30805 17.7954C5.30805 17.9226 5.33313 18.0486 5.38185 18.1661C5.43058 18.2836 5.50199 18.3904 5.59201 18.4803C5.68192 18.5704 5.78937 18.6424 5.90691 18.6912C6.02444 18.7399 6.15043 18.765 6.27766 18.765C6.4049 18.765 6.53089 18.7399 6.64842 18.6912C6.76596 18.6424 6.87274 18.571 6.96265 18.481L7.02416 18.4195C7.35983 18.0912 7.78619 17.8709 8.24821 17.7872C8.70141 17.705 9.16858 17.7578 9.5917 17.9388C10.0236 18.1033 10.3977 18.3916 10.6668 18.7679C10.9411 19.1514 11.0937 19.6086 11.1047 20.08L11.1049 20.0999V20.1817C11.1049 20.4385 11.2069 20.6848 11.3885 20.8663C11.5701 21.0479 11.8163 21.1499 12.0731 21.1499C12.3299 21.1499 12.5762 21.0479 12.7577 20.8663C12.9393 20.6848 13.0413 20.4385 13.0413 20.1817V20.0272L13.0413 20.0238C13.0431 19.5655 13.1789 19.1177 13.432 18.7356C13.6842 18.3548 14.0419 18.0557 14.4613 17.875C14.8898 17.6869 15.3648 17.6309 15.8253 17.7144C16.2873 17.7982 16.7136 18.0185 17.0493 18.3468L17.056 18.3534L17.1105 18.408C17.2004 18.498 17.3076 18.5697 17.4251 18.6184C17.5426 18.6672 17.6686 18.6922 17.7958 18.6922C17.9231 18.6922 18.0491 18.6672 18.1666 18.6184C18.2841 18.5697 18.3909 18.4983 18.4808 18.4083C18.5709 18.3184 18.6429 18.2109 18.6917 18.0934C18.7404 17.9759 18.7655 17.8499 18.7655 17.7226C18.7655 17.5954 18.7404 17.4694 18.6917 17.3519C18.6429 17.2343 18.5715 17.1276 18.4815 17.0376L18.42 16.9761C18.0917 16.6405 17.8714 16.2141 17.7877 15.7521C17.7042 15.2916 17.7601 14.8166 17.9482 14.3881C18.1289 13.9687 18.428 13.611 18.8088 13.3588C19.1909 13.1057 19.6387 12.9699 20.097 12.9681L20.1004 12.9681L20.1822 12.9681C20.439 12.9681 20.6852 12.8661 20.8668 12.6845C21.0484 12.5029 21.1504 12.2567 21.1504 11.9999C21.1504 11.7431 21.0484 11.4969 20.8668 11.3153C20.6852 11.1337 20.439 11.0317 20.1822 11.0317H20.0277L20.0243 11.0317C19.566 11.0299 19.1182 10.8941 18.7361 10.641C18.354 10.388 18.0542 10.0287 17.8737 9.60747C17.8421 9.53373 17.8211 9.45605 17.8113 9.37678C17.6756 8.99236 17.6418 8.57815 17.7149 8.17499C17.7987 7.71297 18.019 7.28665 18.3473 6.95098L18.3539 6.94428L18.4084 6.88978C18.4985 6.79986 18.5702 6.69274 18.6189 6.5752C18.6677 6.45767 18.6927 6.33168 18.6927 6.20445C18.6927 6.07721 18.6677 5.95123 18.6189 5.83369C18.5702 5.71616 18.4988 5.60938 18.4088 5.51946C18.3189 5.42944 18.2114 5.35736 18.0939 5.30864C17.9763 5.25991 17.8504 5.23484 17.7231 5.23484C17.5959 5.23484 17.4699 5.25991 17.3524 5.30864C17.2348 5.35736 17.128 5.42877 17.0381 5.51879L16.9766 5.5803C16.641 5.90864 16.2146 6.12886 15.7526 6.21263C15.292 6.29614 14.8171 6.24021 14.3886 6.05208C13.9692 5.87135 13.6115 5.5723 13.3593 5.19147C13.1062 4.80936 12.9704 4.3616 12.9686 3.90329L12.9686 3.8999V3.81808C12.9686 3.56131 12.8666 3.31505 12.685 3.13348C12.5034 2.95191 12.2572 2.8499 12.0004 2.8499ZM10.1137 1.93139C10.6141 1.43101 11.2927 1.1499 12.0004 1.1499C12.708 1.1499 13.3867 1.43101 13.8871 1.93139C14.3875 2.43178 14.6686 3.11044 14.6686 3.81808V3.89784C14.6693 4.02414 14.7069 4.1475 14.7766 4.25282C14.8466 4.35851 14.946 4.44142 15.0625 4.49136L15.0709 4.49495C15.1897 4.54739 15.3215 4.56308 15.4493 4.53991C15.5759 4.51696 15.6928 4.45697 15.7852 4.36758L15.8354 4.31738C15.8353 4.31749 15.8355 4.31727 15.8354 4.31738C16.0831 4.06945 16.3776 3.87244 16.7014 3.73822C17.0253 3.60395 17.3725 3.53484 17.7231 3.53484C18.0738 3.53484 18.421 3.60395 18.7449 3.73822C19.0688 3.8725 19.3631 4.0693 19.6109 4.31738C19.8586 4.56504 20.0552 4.85907 20.1893 5.18269C20.3236 5.50661 20.3927 5.85381 20.3927 6.20445C20.3927 6.55509 20.3236 6.90229 20.1893 7.2262C20.0551 7.55012 19.8583 7.84439 19.6102 8.09219L19.56 8.14238C19.4706 8.23481 19.4106 8.35171 19.3877 8.47829C19.3645 8.60608 19.3801 8.73789 19.4326 8.8567C19.4581 8.91457 19.477 8.97494 19.4891 9.03668C19.5374 9.1107 19.6004 9.17445 19.6747 9.22367C19.7801 9.29342 19.9034 9.33096 20.0297 9.33172H20.1822C20.8899 9.33172 21.5685 9.61283 22.0689 10.1132C22.5693 10.6136 22.8504 11.2923 22.8504 11.9999C22.8504 12.7075 22.5693 13.3862 22.0689 13.8866C21.5685 14.387 20.8899 14.6681 20.1822 14.6681H20.1024C19.9762 14.6688 19.8528 14.7064 19.7475 14.7761C19.6418 14.8461 19.5589 14.9455 19.5089 15.062L19.5053 15.0704C19.4529 15.1892 19.4372 15.321 19.4604 15.4488C19.4833 15.5754 19.5433 15.6923 19.6327 15.7847L19.6829 15.8349C19.6828 15.8348 19.683 15.835 19.6829 15.8349C19.9308 16.0826 20.1279 16.3771 20.2621 16.7009C20.3963 17.0248 20.4655 17.372 20.4655 17.7226C20.4655 18.0733 20.3963 18.4205 20.2621 18.7444C20.1279 19.0682 19.9312 19.3623 19.6833 19.61C19.4355 19.858 19.1414 20.0546 18.8176 20.1889C18.4937 20.3231 18.1465 20.3922 17.7958 20.3922C17.4452 20.3922 17.098 20.3231 16.7741 20.1889C16.4502 20.0546 16.1559 19.8578 15.9081 19.6097L15.8579 19.5595C15.7655 19.4701 15.6486 19.4101 15.522 19.3872C15.3942 19.364 15.2624 19.3796 15.1436 19.4321L15.1353 19.4358C15.0187 19.4857 14.9193 19.5686 14.8494 19.6743C14.7796 19.7796 14.7421 19.9029 14.7413 20.0292V20.1817C14.7413 20.8894 14.4602 21.568 13.9598 22.0684C13.4594 22.5688 12.7808 22.8499 12.0731 22.8499C11.3655 22.8499 10.6868 22.5688 10.1864 22.0684C9.68605 21.568 9.40494 20.8894 9.40494 20.1817V20.1119C9.4004 19.9843 9.35838 19.8608 9.28404 19.7568C9.20816 19.6508 9.10212 19.57 8.97971 19.5249C8.96291 19.5187 8.9463 19.512 8.92992 19.5048C8.8111 19.4524 8.6793 19.4367 8.5515 19.4599C8.42494 19.4828 8.30806 19.5428 8.21563 19.6322L8.1654 19.6824C8.16529 19.6825 8.16551 19.6823 8.1654 19.6824C7.91767 19.9304 7.62319 20.1274 7.29942 20.2616C6.9755 20.3959 6.6283 20.465 6.27766 20.465C5.92702 20.465 5.57982 20.3959 5.25591 20.2616C4.93229 20.1274 4.63826 19.9309 4.39059 19.6831C4.14251 19.4353 3.94571 19.141 3.81144 18.8171C3.67716 18.4932 3.60805 18.146 3.60805 17.7954C3.60805 17.4447 3.67716 17.0975 3.81144 16.7736C3.94565 16.4498 4.14234 16.1557 4.39026 15.9079L4.44079 15.8574C4.53018 15.765 4.59017 15.6481 4.61312 15.5215C4.63629 15.3937 4.62065 15.2619 4.56821 15.1431L4.56453 15.1348C4.51459 15.0182 4.43172 14.9189 4.32603 14.8489C4.22071 14.7791 4.09736 14.7416 3.97106 14.7408H3.81857C3.11093 14.7408 2.43226 14.4597 1.93188 13.9593C1.4315 13.4589 1.15039 12.7803 1.15039 12.0726C1.15039 11.365 1.4315 10.6863 1.93188 10.1859C2.43226 9.68556 3.11093 9.40445 3.81857 9.40445H3.8884C4.016 9.39991 4.1395 9.35789 4.24345 9.28355C4.34954 9.20767 4.43034 9.10164 4.47536 8.97923C4.48154 8.96242 4.48825 8.94581 4.49548 8.92943C4.54792 8.81061 4.56357 8.67881 4.5404 8.55102C4.51745 8.42445 4.45747 8.30756 4.36809 8.21514L4.31787 8.16491C4.31775 8.1648 4.31798 8.16503 4.31787 8.16491C4.06995 7.91718 3.87293 7.6227 3.73871 7.29893C3.60444 6.97502 3.53532 6.62782 3.53532 6.27717C3.53532 5.92653 3.60444 5.57933 3.73871 5.25542C3.87293 4.93165 4.06961 4.6375 4.31753 4.38977C4.56526 4.14185 4.85942 3.94516 5.18318 3.81095C5.50709 3.67668 5.8543 3.60756 6.20494 3.60756C6.55558 3.60756 6.90278 3.67668 7.22669 3.81095C7.55046 3.94516 7.84461 4.14185 8.09234 4.38977L8.1429 4.44033C8.23533 4.52971 8.35221 4.58969 8.47878 4.61263C8.60657 4.63581 8.73837 4.62016 8.85719 4.56772C8.91506 4.54219 8.97543 4.52326 9.03717 4.51117C9.11119 4.46292 9.17494 4.39986 9.22416 4.32554C9.2939 4.22022 9.33145 4.09687 9.33221 3.97057V3.81808C9.33221 3.11044 9.61332 2.43178 10.1137 1.93139ZM12.0004 9.8499C10.813 9.8499 9.85039 10.8125 9.85039 11.9999C9.85039 13.1873 10.813 14.1499 12.0004 14.1499C13.1878 14.1499 14.1504 13.1873 14.1504 11.9999C14.1504 10.8125 13.1878 9.8499 12.0004 9.8499ZM8.15039 11.9999C8.15039 9.87361 9.87409 8.1499 12.0004 8.1499C14.1267 8.1499 15.8504 9.87361 15.8504 11.9999C15.8504 14.1262 14.1267 15.8499 12.0004 15.8499C9.87409 15.8499 8.15039 14.1262 8.15039 11.9999Z", fill: props.fill }) });
|
|
226
|
+
};
|
|
227
|
+
var pin_02 = (props) => {
|
|
228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { ...iconProps(props), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M15.8182 2.60725C15.8271 2.61615 15.836 2.62507 15.845 2.63402L21.3918 8.18082C21.6692 8.45821 21.9196 8.70856 22.1047 8.93058C22.2973 9.16162 22.5026 9.45661 22.5796 9.83615C22.6835 10.349 22.5808 10.8821 22.2939 11.3196C22.0815 11.6434 21.7812 11.8411 21.5166 11.9841C21.2623 12.1215 20.9369 12.2609 20.5763 12.4154L17.8643 13.5777C17.804 13.6036 17.7723 13.6172 17.7488 13.6279C17.7395 13.6321 17.7344 13.6346 17.7323 13.6357C17.7263 13.6392 17.7206 13.6431 17.7151 13.6473C17.7133 13.6489 17.7092 13.6527 17.7017 13.6598C17.6831 13.6776 17.6586 13.7019 17.6122 13.7484L15.9952 15.3653C15.9115 15.4491 15.8671 15.4937 15.8352 15.5283C15.8224 15.5421 15.8158 15.5499 15.813 15.5533C15.8066 15.5636 15.8013 15.5745 15.7973 15.5859C15.7964 15.5902 15.7944 15.6003 15.7916 15.6189C15.7846 15.6654 15.7775 15.7279 15.7644 15.8456L15.4619 18.568C15.4028 19.1006 15.3516 19.5615 15.2784 19.9199C15.2068 20.2712 15.0828 20.7082 14.7507 21.0411C14.3236 21.4691 13.7247 21.6792 13.1238 21.6117C12.6565 21.5593 12.2867 21.2955 12.0113 21.066C11.7303 20.8318 11.4024 20.5038 11.0235 20.1249L8.09389 17.1953L3.42651 21.8627C3.07024 22.219 2.49261 22.219 2.13634 21.8627C1.78007 21.5064 1.78007 20.9288 2.13634 20.5725L6.80372 15.9051L3.87413 12.9755C3.49518 12.5966 3.16726 12.2687 2.93305 11.9877C2.70354 11.7123 2.43971 11.3425 2.38728 10.8753C2.31985 10.2743 2.52993 9.67544 2.95797 9.24833C3.29082 8.91619 3.72786 8.79223 4.07909 8.72058C4.43753 8.64746 4.89842 8.59627 5.43101 8.53711L8.15338 8.23463C8.27113 8.22155 8.33366 8.21444 8.38017 8.20739C8.3987 8.20459 8.4088 8.20261 8.41312 8.20169C8.42453 8.19771 8.43546 8.19246 8.4457 8.18603C8.44912 8.18323 8.45697 8.17658 8.47073 8.16387C8.50529 8.13195 8.5499 8.08756 8.63368 8.00379L10.2507 6.38681C10.2971 6.34038 10.3214 6.31597 10.3393 6.2973C10.3464 6.28987 10.3501 6.28571 10.3517 6.28392C10.356 6.27846 10.3599 6.27273 10.3634 6.26677C10.3644 6.26463 10.3669 6.25957 10.3711 6.25021C10.3818 6.22671 10.3955 6.19506 10.4213 6.13471L11.5687 3.45756C11.5737 3.44593 11.5786 3.43433 11.5836 3.42276C11.7381 3.06215 11.8776 2.7367 12.015 2.48241C12.158 2.21778 12.3556 1.91756 12.6794 1.70516C13.1169 1.41819 13.6501 1.31551 14.1629 1.41947C14.5424 1.49641 14.8374 1.70177 15.0684 1.89437C15.2905 2.07944 15.5408 2.32982 15.8182 2.60725ZM12.2839 18.805C12.7012 19.2222 12.9701 19.4898 13.1795 19.6644C13.2756 19.7445 13.3338 19.7824 13.3612 19.7988C13.3867 19.7962 13.4112 19.7876 13.4327 19.7737C13.4439 19.7438 13.4657 19.6778 13.4907 19.5552C13.5452 19.2881 13.588 18.9112 13.6531 18.3247L13.951 15.6442C13.9526 15.6294 13.9543 15.6144 13.9559 15.5993C13.9751 15.4238 13.9971 15.2227 14.0603 15.0274C14.1154 14.8572 14.1932 14.6952 14.2917 14.5458C14.4048 14.3744 14.5481 14.2316 14.6731 14.107C14.6839 14.0963 14.6946 14.0857 14.7051 14.0752L16.322 12.4582C16.3278 12.4524 16.3337 12.4466 16.3396 12.4406C16.4089 12.3712 16.4884 12.2915 16.5788 12.2197C16.6577 12.157 16.7413 12.1004 16.8288 12.0505C16.9291 11.9932 17.0325 11.949 17.1227 11.9104C17.1305 11.9071 17.1381 11.9039 17.1456 11.9006L19.8227 10.7533C20.2293 10.579 20.4768 10.472 20.6492 10.3788C20.723 10.339 20.7618 10.3124 20.7791 10.2994C20.7907 10.2749 20.7959 10.2479 20.7943 10.2209C20.783 10.2024 20.7569 10.1633 20.7032 10.0989C20.5777 9.94832 20.3876 9.75699 20.0748 9.44422L14.5548 3.92419C14.242 3.61142 14.0507 3.42136 13.9002 3.29587C13.8357 3.24217 13.7967 3.21607 13.7782 3.20476C13.7511 3.20312 13.7241 3.20832 13.6996 3.21989C13.6867 3.23725 13.6601 3.276 13.6202 3.34979C13.527 3.52221 13.42 3.76974 13.2457 4.1763L12.0984 6.85344C12.0952 6.86095 12.0919 6.86856 12.0886 6.87628C12.0501 6.96651 12.0058 7.06996 11.9486 7.17022C11.8986 7.25773 11.842 7.34131 11.7793 7.42023C11.7075 7.51065 11.6279 7.59012 11.5584 7.65944C11.5525 7.66536 11.5466 7.67121 11.5408 7.67698L9.92385 9.29396C9.91335 9.30445 9.90273 9.31511 9.89198 9.32591C9.76738 9.45096 9.6246 9.59425 9.45319 9.70728C9.30383 9.80577 9.14185 9.88363 8.97165 9.93873C8.7763 10.002 8.57521 10.0239 8.39973 10.0431C8.38458 10.0448 8.36962 10.0464 8.35487 10.048L5.67435 10.3459C5.08786 10.411 4.71092 10.4538 4.4438 10.5083C4.32118 10.5334 4.25526 10.5551 4.22534 10.5663C4.21143 10.5878 4.20283 10.6123 4.20027 10.6378C4.21662 10.6653 4.25451 10.7234 4.33463 10.8195C4.50918 11.029 4.77679 11.2979 5.19405 11.7151L12.2839 18.805Z", fill: props.fill }) });
|
|
229
|
+
};
|
|
230
|
+
var unpin_02 = (props) => {
|
|
231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("svg", { ...iconProps(props), children: [
|
|
232
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M2.55977 1.43001L22.5598 21.43C22.8698 21.74 22.8698 22.25 22.5598 22.56C22.2498 22.87 21.7398 22.87 21.4298 22.56L15.6598 16.79L15.4598 18.56C15.4298 18.84 15.3998 19.1 15.3698 19.33C15.3398 19.55 15.3098 19.75 15.2798 19.92C15.2098 20.27 15.0798 20.7 14.7498 21.04C14.3198 21.46 13.7198 21.67 13.1198 21.61C12.6598 21.56 12.2898 21.29 12.0098 21.06C11.7298 20.83 11.3998 20.5 11.0198 20.12L8.08977 17.19L3.42977 21.86C3.06977 22.21 2.48977 22.21 2.13977 21.86C1.77977 21.5 1.77977 20.92 2.13977 20.57L6.79977 15.9L3.86977 12.97C3.80397 12.9024 3.73944 12.8364 3.67645 12.772C3.38524 12.4742 3.12709 12.2102 2.92977 11.98C2.69977 11.71 2.43977 11.34 2.38977 10.87C2.31977 10.27 2.52977 9.67001 2.95977 9.24001C3.28977 8.91001 3.72977 8.79001 4.07977 8.72001C4.24977 8.68001 4.44977 8.65001 4.65977 8.62001C4.88977 8.59001 5.14977 8.56001 5.42977 8.53001L7.19977 8.33001L1.42977 2.56001C1.11977 2.25001 1.11977 1.74001 1.42977 1.43001C1.73977 1.12001 2.24977 1.12001 2.55977 1.43001ZM13.9747 15.4837C13.9874 15.3784 14.0006 15.2692 14.0298 15.16L8.82977 9.96001C8.71056 9.99975 8.59766 10.0142 8.48607 10.0285C8.45724 10.0322 8.4285 10.0359 8.39977 10.04H8.34977L6.30977 10.27L5.66977 10.34C5.54461 10.3551 5.42877 10.3688 5.32134 10.3815C4.93089 10.4277 4.65151 10.4608 4.43977 10.5C4.37976 10.515 4.33476 10.53 4.30101 10.5413C4.26726 10.5525 4.24477 10.56 4.22977 10.56C4.20977 10.58 4.19977 10.61 4.19977 10.63C4.20452 10.6371 4.20984 10.646 4.21627 10.6566C4.23686 10.6908 4.26879 10.7438 4.32977 10.82C4.46511 10.9704 4.65133 11.1603 4.90969 11.4239C4.99494 11.5108 5.08804 11.6058 5.18977 11.71L12.2798 18.8C12.6998 19.22 12.9698 19.49 13.1798 19.66C13.2797 19.74 13.3298 19.78 13.3598 19.79C13.3898 19.79 13.4098 19.78 13.4298 19.77C13.4314 19.7651 13.4336 19.7592 13.4361 19.7521C13.4493 19.7159 13.473 19.6505 13.4898 19.55C13.5498 19.28 13.5898 18.91 13.6498 18.32L13.7198 17.68L13.9498 15.64C13.9498 15.63 13.9498 15.61 13.9598 15.6C13.9652 15.5619 13.9699 15.5231 13.9747 15.4837Z", fill: props.fill }),
|
|
233
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M11.9505 7.17005C11.9005 7.25005 11.8405 7.34005 11.7805 7.42005H11.7905C11.7305 7.50005 11.6605 7.57005 11.6005 7.63005L10.3105 6.34005C10.3223 6.32833 10.3305 6.31661 10.3374 6.30691C10.3423 6.30005 10.3464 6.29419 10.3505 6.29005V6.28005L10.3605 6.26005C10.3605 6.26005 10.3705 6.26005 10.3705 6.25005C10.3747 6.23762 10.3805 6.22519 10.3874 6.21063C10.3971 6.19004 10.4088 6.16519 10.4205 6.13005L11.5705 3.45005C11.5705 3.44005 11.5805 3.42005 11.5805 3.42005C11.6062 3.36223 11.6314 3.30519 11.6562 3.24913C11.7855 2.95611 11.903 2.6899 12.0205 2.48005C12.1605 2.21005 12.3605 1.91005 12.6805 1.70005C13.1205 1.41005 13.6505 1.31005 14.1605 1.42005C14.5405 1.49005 14.8405 1.70005 15.0705 1.89005C15.2402 2.03657 15.4277 2.21878 15.6331 2.41832C15.694 2.47753 15.7565 2.53826 15.8205 2.60005L21.3905 8.18005C21.6705 8.45005 21.9205 8.70005 22.1005 8.93005C22.3005 9.16005 22.5005 9.45005 22.5805 9.83005C22.6805 10.34 22.5805 10.88 22.2905 11.32C22.0805 11.64 21.7805 11.84 21.5205 11.98C21.2605 12.12 20.9405 12.26 20.5805 12.41L17.8605 13.57C17.8435 13.5786 17.8289 13.5863 17.8163 13.5929C17.7843 13.6098 17.7649 13.62 17.7505 13.62L17.7305 13.64H17.7205C17.7144 13.64 17.712 13.6439 17.7087 13.6491C17.7067 13.6524 17.7044 13.6562 17.7005 13.66L17.6605 13.7L16.3705 12.41C16.4305 12.35 16.5005 12.28 16.5805 12.22C16.6605 12.15 16.7405 12.1 16.8305 12.05C16.9305 11.99 17.0305 11.94 17.1205 11.91C17.1305 11.9 17.1505 11.9 17.1505 11.9L19.8205 10.75C19.9177 10.7074 20.0058 10.6692 20.0861 10.6345C20.3445 10.5227 20.5208 10.4464 20.6505 10.37C20.6727 10.3574 20.6919 10.3457 20.7084 10.3357C20.7439 10.314 20.7669 10.3 20.7805 10.3C20.7805 10.2896 20.7817 10.2792 20.7829 10.2693C20.7851 10.2504 20.7871 10.2331 20.7805 10.22C20.7705 10.2 20.7505 10.16 20.6905 10.09C20.5705 9.94005 20.3805 9.75005 20.0605 9.44005L14.5405 3.92005C14.2306 3.61007 14.0405 3.42004 13.8905 3.29005C13.8305 3.24005 13.7905 3.21005 13.7705 3.20005C13.7405 3.20005 13.7105 3.20005 13.6905 3.22005C13.6805 3.23005 13.6505 3.27005 13.6105 3.35005C13.5205 3.52005 13.4105 3.77005 13.2405 4.17005L12.0905 6.85005V6.87005C12.0802 6.89325 12.0699 6.91778 12.0593 6.94312C12.0286 7.0161 11.9951 7.09583 11.9505 7.17005Z", fill: props.fill })
|
|
234
|
+
] });
|
|
235
|
+
};
|
|
221
236
|
|
|
222
237
|
// packages/icons/src/svgItems/arrows.tsx
|
|
223
238
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
@@ -234,13 +249,13 @@ var chevron_right = (props) => {
|
|
|
234
249
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.39898 5.39898C8.73093 5.06704 9.26912 5.06704 9.60107 5.39898L15.6011 11.399C15.933 11.7309 15.933 12.2691 15.6011 12.6011L9.60107 18.6011C9.26912 18.933 8.73093 18.933 8.39898 18.6011C8.06704 18.2691 8.06704 17.7309 8.39898 17.399L13.7979 12L8.39898 6.60107C8.06704 6.26912 8.06704 5.73093 8.39898 5.39898Z", fill: props.fill }) });
|
|
235
250
|
};
|
|
236
251
|
var chevron_up = (props) => {
|
|
237
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.399 8.39898C11.7309 8.06704 12.2691 8.06704 12.6011 8.39898L18.6011 14.399C18.933 14.7309 18.933 15.2691 18.6011 15.6011C18.2691 15.933 17.7309 15.933 17.399 15.6011L12 10.2021L6.60107 15.6011C6.26912 15.933 5.73093 15.933 5.39898 15.6011C5.06704 15.2691 5.06704 14.7309 5.39898 14.399L11.399 8.39898Z", fill:
|
|
252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.399 8.39898C11.7309 8.06704 12.2691 8.06704 12.6011 8.39898L18.6011 14.399C18.933 14.7309 18.933 15.2691 18.6011 15.6011C18.2691 15.933 17.7309 15.933 17.399 15.6011L12 10.2021L6.60107 15.6011C6.26912 15.933 5.73093 15.933 5.39898 15.6011C5.06704 15.2691 5.06704 14.7309 5.39898 14.399L11.399 8.39898Z", fill: props.fill }) });
|
|
238
253
|
};
|
|
239
254
|
var chevron_left = (props) => {
|
|
240
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.6011 5.39898C15.933 5.73093 15.933 6.26912 15.6011 6.60107L10.2021 12L15.6011 17.399C15.933 17.7309 15.933 18.2691 15.6011 18.6011C15.2691 18.933 14.7309 18.933 14.399 18.6011L8.39898 12.6011C8.06704 12.2691 8.06704 11.7309 8.39898 11.399L14.399 5.39898C14.7309 5.06704 15.2691 5.06704 15.6011 5.39898Z", fill:
|
|
255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.6011 5.39898C15.933 5.73093 15.933 6.26912 15.6011 6.60107L10.2021 12L15.6011 17.399C15.933 17.7309 15.933 18.2691 15.6011 18.6011C15.2691 18.933 14.7309 18.933 14.399 18.6011L8.39898 12.6011C8.06704 12.2691 8.06704 11.7309 8.39898 11.399L14.399 5.39898C14.7309 5.06704 15.2691 5.06704 15.6011 5.39898Z", fill: props.fill }) });
|
|
241
256
|
};
|
|
242
257
|
var chevron_down = (props) => {
|
|
243
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.39898 8.39898C5.73093 8.06704 6.26912 8.06704 6.60107 8.39898L12 13.7979L17.399 8.39898C17.7309 8.06704 18.2691 8.06704 18.6011 8.39898C18.933 8.73093 18.933 9.26912 18.6011 9.60107L12.6011 15.6011C12.2691 15.933 11.7309 15.933 11.399 15.6011L5.39898 9.60107C5.06704 9.26912 5.06704 8.73093 5.39898 8.39898Z", fill:
|
|
258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("svg", { ...iconProps2(props), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5.39898 8.39898C5.73093 8.06704 6.26912 8.06704 6.60107 8.39898L12 13.7979L17.399 8.39898C17.7309 8.06704 18.2691 8.06704 18.6011 8.39898C18.933 8.73093 18.933 9.26912 18.6011 9.60107L12.6011 15.6011C12.2691 15.933 11.7309 15.933 11.399 15.6011L5.39898 9.60107C5.06704 9.26912 5.06704 8.73093 5.39898 8.39898Z", fill: props.fill }) });
|
|
244
259
|
};
|
|
245
260
|
|
|
246
261
|
// packages/icons/src/svgItems/security.tsx
|
|
@@ -255,13 +270,13 @@ var iconProps3 = ({ size, ...props }) => ({
|
|
|
255
270
|
...props
|
|
256
271
|
});
|
|
257
272
|
var key = (props) => {
|
|
258
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...iconProps3(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.15005 8.9999C8.15005 5.21675 11.2169 2.1499 15 2.1499C18.7832 2.1499 21.85 5.21675 21.85 8.9999C21.85 12.7831 18.7832 15.8499 15 15.8499C14.6884 15.8499 14.3812 15.829 14.0798 15.7885C13.8559 15.7584 13.7118 15.7392 13.6057 15.729C13.5482 15.7234 13.5186 15.7224 13.5082 15.7221C13.5037 15.7229 13.5002 15.7235 13.4973 15.724C13.4936 15.7259 13.4884 15.7286 13.4814 15.7324C13.4755 15.737 13.4609 15.7488 13.435 15.7723C13.3784 15.824 13.3051 15.8969 13.1802 16.0218L8.06971 21.1323C8.05819 21.1438 8.04652 21.1556 8.03471 21.1674C7.89856 21.3041 7.7426 21.4608 7.55245 21.5773C7.38693 21.6787 7.20647 21.7535 7.01771 21.7988C6.80087 21.8508 6.57985 21.8504 6.3869 21.85C6.37015 21.8499 6.35361 21.8499 6.3373 21.8499H4.57146C4.31611 21.8499 4.07591 21.8499 3.87403 21.8335C3.65471 21.8155 3.40692 21.774 3.16016 21.6483C2.81206 21.4709 2.52905 21.1879 2.35168 20.8398C2.22596 20.593 2.18441 20.3452 2.16649 20.1259C2.15 19.924 2.15002 19.6839 2.15004 19.4285L2.15005 17.6626C2.15005 17.6463 2.15001 17.6298 2.14998 17.613C2.14957 17.4201 2.1491 17.1991 2.20116 16.9822C2.24648 16.7935 2.32123 16.613 2.42266 16.4475C2.53918 16.2574 2.69579 16.1014 2.83251 15.9653C2.84438 15.9534 2.8561 15.9418 2.86763 15.9302L7.97814 10.8197C8.10306 10.6948 8.17598 10.6216 8.2276 10.5649C8.25115 10.539 8.26293 10.5244 8.26751 10.5185C8.27131 10.5116 8.27405 10.5064 8.27597 10.5026C8.27648 10.4998 8.27709 10.4962 8.27781 10.4918C8.27753 10.4814 8.27656 10.4518 8.271 10.3942C8.26075 10.2881 8.24152 10.144 8.21143 9.92019C8.17091 9.6188 8.15005 9.31156 8.15005 8.9999ZM15 3.8499C12.1558 3.8499 9.85005 6.15564 9.85005 8.9999C9.85005 9.2356 9.86582 9.46716 9.89628 9.69368L9.89837 9.70928C9.92577 9.913 9.94945 10.0891 9.96313 10.2308C9.97635 10.3678 9.98818 10.5412 9.9632 10.7158C9.92794 10.9623 9.86817 11.1392 9.7467 11.3565C9.61878 11.5854 9.41529 11.7878 9.23157 11.9706C9.21425 11.9879 9.19711 12.0049 9.18022 12.0218L4.06972 17.1323C3.97801 17.224 3.92912 17.2732 3.89424 17.3114C3.88033 17.3267 3.87311 17.3354 3.87007 17.3392C3.86357 17.3505 3.85857 17.3626 3.85519 17.3752C3.85463 17.38 3.85355 17.3913 3.85261 17.4119C3.85025 17.4636 3.85005 17.533 3.85005 17.6626V19.3999C3.85005 19.694 3.85071 19.8634 3.86085 19.9875C3.86499 20.0382 3.86985 20.0663 3.87251 20.0789C3.88472 20.0986 3.90135 20.1152 3.92109 20.1274C3.93369 20.1301 3.96172 20.135 4.01246 20.1391C4.13657 20.1492 4.30599 20.1499 4.60005 20.1499H6.3373C6.467 20.1499 6.53633 20.1497 6.58803 20.1473C6.60864 20.1464 6.61993 20.1453 6.6248 20.1448C6.63837 20.1411 6.65137 20.1356 6.66341 20.1283C6.65324 20.1346 6.65687 20.1346 6.68853 20.1057C6.72676 20.0708 6.77593 20.0219 6.86763 19.9302L11.9781 14.8197C11.995 14.8028 12.0121 14.7857 12.0293 14.7684C12.2121 14.5847 12.4146 14.3812 12.6434 14.2533C12.8608 14.1318 13.0376 14.072 13.2841 14.0367C13.4588 14.0118 13.6322 14.0236 13.7691 14.0368C13.9108 14.0505 14.087 14.0742 14.2907 14.1016L14.3063 14.1037C14.5328 14.1341 14.7643 14.1499 15 14.1499C17.8443 14.1499 20.15 11.8442 20.15 8.9999C20.15 6.15564 17.8443 3.8499 15 3.8499ZM14.15 8.9999C14.15 8.53046 14.5306 8.1499 15 8.1499H15.01C15.4795 8.1499 15.86 8.53046 15.86 8.9999C15.86 9.46934 15.4795 9.8499 15.01 9.8499H15C14.5306 9.8499 14.15 9.46934 14.15 8.9999Z", fill:
|
|
273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...iconProps3(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.15005 8.9999C8.15005 5.21675 11.2169 2.1499 15 2.1499C18.7832 2.1499 21.85 5.21675 21.85 8.9999C21.85 12.7831 18.7832 15.8499 15 15.8499C14.6884 15.8499 14.3812 15.829 14.0798 15.7885C13.8559 15.7584 13.7118 15.7392 13.6057 15.729C13.5482 15.7234 13.5186 15.7224 13.5082 15.7221C13.5037 15.7229 13.5002 15.7235 13.4973 15.724C13.4936 15.7259 13.4884 15.7286 13.4814 15.7324C13.4755 15.737 13.4609 15.7488 13.435 15.7723C13.3784 15.824 13.3051 15.8969 13.1802 16.0218L8.06971 21.1323C8.05819 21.1438 8.04652 21.1556 8.03471 21.1674C7.89856 21.3041 7.7426 21.4608 7.55245 21.5773C7.38693 21.6787 7.20647 21.7535 7.01771 21.7988C6.80087 21.8508 6.57985 21.8504 6.3869 21.85C6.37015 21.8499 6.35361 21.8499 6.3373 21.8499H4.57146C4.31611 21.8499 4.07591 21.8499 3.87403 21.8335C3.65471 21.8155 3.40692 21.774 3.16016 21.6483C2.81206 21.4709 2.52905 21.1879 2.35168 20.8398C2.22596 20.593 2.18441 20.3452 2.16649 20.1259C2.15 19.924 2.15002 19.6839 2.15004 19.4285L2.15005 17.6626C2.15005 17.6463 2.15001 17.6298 2.14998 17.613C2.14957 17.4201 2.1491 17.1991 2.20116 16.9822C2.24648 16.7935 2.32123 16.613 2.42266 16.4475C2.53918 16.2574 2.69579 16.1014 2.83251 15.9653C2.84438 15.9534 2.8561 15.9418 2.86763 15.9302L7.97814 10.8197C8.10306 10.6948 8.17598 10.6216 8.2276 10.5649C8.25115 10.539 8.26293 10.5244 8.26751 10.5185C8.27131 10.5116 8.27405 10.5064 8.27597 10.5026C8.27648 10.4998 8.27709 10.4962 8.27781 10.4918C8.27753 10.4814 8.27656 10.4518 8.271 10.3942C8.26075 10.2881 8.24152 10.144 8.21143 9.92019C8.17091 9.6188 8.15005 9.31156 8.15005 8.9999ZM15 3.8499C12.1558 3.8499 9.85005 6.15564 9.85005 8.9999C9.85005 9.2356 9.86582 9.46716 9.89628 9.69368L9.89837 9.70928C9.92577 9.913 9.94945 10.0891 9.96313 10.2308C9.97635 10.3678 9.98818 10.5412 9.9632 10.7158C9.92794 10.9623 9.86817 11.1392 9.7467 11.3565C9.61878 11.5854 9.41529 11.7878 9.23157 11.9706C9.21425 11.9879 9.19711 12.0049 9.18022 12.0218L4.06972 17.1323C3.97801 17.224 3.92912 17.2732 3.89424 17.3114C3.88033 17.3267 3.87311 17.3354 3.87007 17.3392C3.86357 17.3505 3.85857 17.3626 3.85519 17.3752C3.85463 17.38 3.85355 17.3913 3.85261 17.4119C3.85025 17.4636 3.85005 17.533 3.85005 17.6626V19.3999C3.85005 19.694 3.85071 19.8634 3.86085 19.9875C3.86499 20.0382 3.86985 20.0663 3.87251 20.0789C3.88472 20.0986 3.90135 20.1152 3.92109 20.1274C3.93369 20.1301 3.96172 20.135 4.01246 20.1391C4.13657 20.1492 4.30599 20.1499 4.60005 20.1499H6.3373C6.467 20.1499 6.53633 20.1497 6.58803 20.1473C6.60864 20.1464 6.61993 20.1453 6.6248 20.1448C6.63837 20.1411 6.65137 20.1356 6.66341 20.1283C6.65324 20.1346 6.65687 20.1346 6.68853 20.1057C6.72676 20.0708 6.77593 20.0219 6.86763 19.9302L11.9781 14.8197C11.995 14.8028 12.0121 14.7857 12.0293 14.7684C12.2121 14.5847 12.4146 14.3812 12.6434 14.2533C12.8608 14.1318 13.0376 14.072 13.2841 14.0367C13.4588 14.0118 13.6322 14.0236 13.7691 14.0368C13.9108 14.0505 14.087 14.0742 14.2907 14.1016L14.3063 14.1037C14.5328 14.1341 14.7643 14.1499 15 14.1499C17.8443 14.1499 20.15 11.8442 20.15 8.9999C20.15 6.15564 17.8443 3.8499 15 3.8499ZM14.15 8.9999C14.15 8.53046 14.5306 8.1499 15 8.1499H15.01C15.4795 8.1499 15.86 8.53046 15.86 8.9999C15.86 9.46934 15.4795 9.8499 15.01 9.8499H15C14.5306 9.8499 14.15 9.46934 14.15 8.9999Z", fill: props.fill }) });
|
|
259
274
|
};
|
|
260
275
|
var lock = (props) => {
|
|
261
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...iconProps3(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1499 7.9999C6.1499 4.76904 8.76904 2.1499 11.9999 2.1499C15.2308 2.1499 17.8499 4.76904 17.8499 7.9999V9.2727C18.1659 9.33256 18.4634 9.42461 18.7478 9.56953C19.4722 9.93864 20.0612 10.5276 20.4303 11.252C20.665 11.7127 20.761 12.2075 20.8062 12.7603C20.8499 13.2953 20.8499 13.9544 20.8499 14.7641V16.2357C20.8499 17.0454 20.8499 17.7045 20.8062 18.2395C20.761 18.7923 20.665 19.2871 20.4303 19.7478C20.0612 20.4722 19.4722 21.0612 18.7478 21.4303C18.2871 21.665 17.7923 21.761 17.2395 21.8062C16.7045 21.8499 16.0454 21.8499 15.2357 21.8499H8.7641C7.95444 21.8499 7.29532 21.8499 6.76029 21.8062C6.20747 21.761 5.7127 21.665 5.25204 21.4303C4.52762 21.0612 3.93864 20.4722 3.56953 19.7478C3.33481 19.2871 3.23877 18.7923 3.1936 18.2395C3.14989 17.7045 3.14989 17.0454 3.1499 16.2358V14.764C3.14989 13.9544 3.14989 13.2953 3.1936 12.7603C3.23877 12.2075 3.33481 11.7127 3.56953 11.252C3.93864 10.5276 4.52762 9.93864 5.25204 9.56953C5.53645 9.42461 5.83386 9.33256 6.1499 9.2727V7.9999ZM7.8499 9.15282C8.13095 9.14989 8.43507 9.1499 8.76405 9.1499H15.2358C15.5647 9.1499 15.8689 9.14989 16.1499 9.15282V7.9999C16.1499 5.70792 14.2919 3.8499 11.9999 3.8499C9.70792 3.8499 7.8499 5.70792 7.8499 7.9999V9.15282ZM6.89873 10.888C6.45103 10.9245 6.20489 10.992 6.02382 11.0842C5.61927 11.2904 5.29037 11.6193 5.08424 12.0238C4.99198 12.2049 4.92453 12.451 4.88795 12.8987C4.85056 13.3563 4.8499 13.9458 4.8499 14.7999V16.1999C4.8499 17.054 4.85056 17.6435 4.88795 18.1011C4.92453 18.5488 4.99198 18.7949 5.08424 18.976C5.29037 19.3805 5.61928 19.7094 6.02382 19.9156C6.20489 20.0078 6.45103 20.0753 6.89873 20.1119C7.35634 20.1492 7.9458 20.1499 8.7999 20.1499H15.1999C16.054 20.1499 16.6435 20.1492 17.1011 20.1119C17.5488 20.0753 17.7949 20.0078 17.976 19.9156C18.3805 19.7094 18.7094 19.3805 18.9156 18.976C19.0078 18.7949 19.0753 18.5488 19.1119 18.1011C19.1492 17.6435 19.1499 17.054 19.1499 16.1999V14.7999C19.1499 13.9458 19.1492 13.3563 19.1119 12.8987C19.0753 12.451 19.0078 12.2049 18.9156 12.0238C18.7094 11.6193 18.3805 11.2904 17.976 11.0842C17.7949 10.992 17.5488 10.9245 17.1011 10.888C16.6435 10.8506 16.054 10.8499 15.1999 10.8499H8.7999C7.9458 10.8499 7.35634 10.8506 6.89873 10.888ZM11.9999 13.6499C12.4693 13.6499 12.8499 14.0305 12.8499 14.4999V16.4999C12.8499 16.9693 12.4693 17.3499 11.9999 17.3499C11.5305 17.3499 11.1499 16.9693 11.1499 16.4999V14.4999C11.1499 14.0305 11.5305 13.6499 11.9999 13.6499Z", fill:
|
|
276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...iconProps3(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1499 7.9999C6.1499 4.76904 8.76904 2.1499 11.9999 2.1499C15.2308 2.1499 17.8499 4.76904 17.8499 7.9999V9.2727C18.1659 9.33256 18.4634 9.42461 18.7478 9.56953C19.4722 9.93864 20.0612 10.5276 20.4303 11.252C20.665 11.7127 20.761 12.2075 20.8062 12.7603C20.8499 13.2953 20.8499 13.9544 20.8499 14.7641V16.2357C20.8499 17.0454 20.8499 17.7045 20.8062 18.2395C20.761 18.7923 20.665 19.2871 20.4303 19.7478C20.0612 20.4722 19.4722 21.0612 18.7478 21.4303C18.2871 21.665 17.7923 21.761 17.2395 21.8062C16.7045 21.8499 16.0454 21.8499 15.2357 21.8499H8.7641C7.95444 21.8499 7.29532 21.8499 6.76029 21.8062C6.20747 21.761 5.7127 21.665 5.25204 21.4303C4.52762 21.0612 3.93864 20.4722 3.56953 19.7478C3.33481 19.2871 3.23877 18.7923 3.1936 18.2395C3.14989 17.7045 3.14989 17.0454 3.1499 16.2358V14.764C3.14989 13.9544 3.14989 13.2953 3.1936 12.7603C3.23877 12.2075 3.33481 11.7127 3.56953 11.252C3.93864 10.5276 4.52762 9.93864 5.25204 9.56953C5.53645 9.42461 5.83386 9.33256 6.1499 9.2727V7.9999ZM7.8499 9.15282C8.13095 9.14989 8.43507 9.1499 8.76405 9.1499H15.2358C15.5647 9.1499 15.8689 9.14989 16.1499 9.15282V7.9999C16.1499 5.70792 14.2919 3.8499 11.9999 3.8499C9.70792 3.8499 7.8499 5.70792 7.8499 7.9999V9.15282ZM6.89873 10.888C6.45103 10.9245 6.20489 10.992 6.02382 11.0842C5.61927 11.2904 5.29037 11.6193 5.08424 12.0238C4.99198 12.2049 4.92453 12.451 4.88795 12.8987C4.85056 13.3563 4.8499 13.9458 4.8499 14.7999V16.1999C4.8499 17.054 4.85056 17.6435 4.88795 18.1011C4.92453 18.5488 4.99198 18.7949 5.08424 18.976C5.29037 19.3805 5.61928 19.7094 6.02382 19.9156C6.20489 20.0078 6.45103 20.0753 6.89873 20.1119C7.35634 20.1492 7.9458 20.1499 8.7999 20.1499H15.1999C16.054 20.1499 16.6435 20.1492 17.1011 20.1119C17.5488 20.0753 17.7949 20.0078 17.976 19.9156C18.3805 19.7094 18.7094 19.3805 18.9156 18.976C19.0078 18.7949 19.0753 18.5488 19.1119 18.1011C19.1492 17.6435 19.1499 17.054 19.1499 16.1999V14.7999C19.1499 13.9458 19.1492 13.3563 19.1119 12.8987C19.0753 12.451 19.0078 12.2049 18.9156 12.0238C18.7094 11.6193 18.3805 11.2904 17.976 11.0842C17.7949 10.992 17.5488 10.9245 17.1011 10.888C16.6435 10.8506 16.054 10.8499 15.1999 10.8499H8.7999C7.9458 10.8499 7.35634 10.8506 6.89873 10.888ZM11.9999 13.6499C12.4693 13.6499 12.8499 14.0305 12.8499 14.4999V16.4999C12.8499 16.9693 12.4693 17.3499 11.9999 17.3499C11.5305 17.3499 11.1499 16.9693 11.1499 16.4999V14.4999C11.1499 14.0305 11.5305 13.6499 11.9999 13.6499Z", fill: props.fill }) });
|
|
262
277
|
};
|
|
263
278
|
var lock_unlocked = (props) => {
|
|
264
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...iconProps3(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1499 7.9999C6.1499 4.76904 8.76904 2.1499 11.9999 2.1499C15.2308 2.1499 17.8499 4.76904 17.8499 7.9999V9.2727C18.1659 9.33256 18.4634 9.42461 18.7478 9.56953C19.4722 9.93864 20.0612 10.5276 20.4303 11.252C20.665 11.7127 20.761 12.2075 20.8062 12.7603C20.8499 13.2953 20.8499 13.9544 20.8499 14.7641V16.2357C20.8499 17.0454 20.8499 17.7045 20.8062 18.2395C20.761 18.7923 20.665 19.2871 20.4303 19.7478C20.0612 20.4722 19.4722 21.0612 18.7478 21.4303C18.2871 21.665 17.7923 21.761 17.2395 21.8062C16.7045 21.8499 16.0454 21.8499 15.2357 21.8499H8.7641C7.95444 21.8499 7.29532 21.8499 6.76029 21.8062C6.20747 21.761 5.7127 21.665 5.25204 21.4303C4.52762 21.0612 3.93864 20.4722 3.56953 19.7478C3.33481 19.2871 3.23877 18.7923 3.1936 18.2395C3.14989 17.7045 3.14989 17.0454 3.1499 16.2358V14.764C3.14989 13.9544 3.14989 13.2953 3.1936 12.7603C3.23877 12.2075 3.33481 11.7127 3.56953 11.252C3.93864 10.5276 4.52762 9.93864 5.25204 9.56953C5.53645 9.42461 5.83386 9.33256 6.1499 9.2727V7.9999ZM7.8499 9.15282C8.13095 9.14989 8.43507 9.1499 8.76405 9.1499H15.2358C15.5647 9.1499 15.8689 9.14989 16.1499 9.15282V7.9999C16.1499 5.70792 14.2919 3.8499 11.9999 3.8499C9.70792 3.8499 7.8499 5.70792 7.8499 7.9999V9.15282ZM6.89873 10.888C6.45103 10.9245 6.20489 10.992 6.02382 11.0842C5.61927 11.2904 5.29037 11.6193 5.08424 12.0238C4.99198 12.2049 4.92453 12.451 4.88795 12.8987C4.85056 13.3563 4.8499 13.9458 4.8499 14.7999V16.1999C4.8499 17.054 4.85056 17.6435 4.88795 18.1011C4.92453 18.5488 4.99198 18.7949 5.08424 18.976C5.29037 19.3805 5.61928 19.7094 6.02382 19.9156C6.20489 20.0078 6.45103 20.0753 6.89873 20.1119C7.35634 20.1492 7.9458 20.1499 8.7999 20.1499H15.1999C16.054 20.1499 16.6435 20.1492 17.1011 20.1119C17.5488 20.0753 17.7949 20.0078 17.976 19.9156C18.3805 19.7094 18.7094 19.3805 18.9156 18.976C19.0078 18.7949 19.0753 18.5488 19.1119 18.1011C19.1492 17.6435 19.1499 17.054 19.1499 16.1999V14.7999C19.1499 13.9458 19.1492 13.3563 19.1119 12.8987C19.0753 12.451 19.0078 12.2049 18.9156 12.0238C18.7094 11.6193 18.3805 11.2904 17.976 11.0842C17.7949 10.992 17.5488 10.9245 17.1011 10.888C16.6435 10.8506 16.054 10.8499 15.1999 10.8499H8.7999C7.9458 10.8499 7.35634 10.8506 6.89873 10.888ZM11.9999 13.6499C12.4693 13.6499 12.8499 14.0305 12.8499 14.4999V16.4999C12.8499 16.9693 12.4693 17.3499 11.9999 17.3499C11.5305 17.3499 11.1499 16.9693 11.1499 16.4999V14.4999C11.1499 14.0305 11.5305 13.6499 11.9999 13.6499Z", fill:
|
|
279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", { ...iconProps3(props), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.1499 7.9999C6.1499 4.76904 8.76904 2.1499 11.9999 2.1499C15.2308 2.1499 17.8499 4.76904 17.8499 7.9999V9.2727C18.1659 9.33256 18.4634 9.42461 18.7478 9.56953C19.4722 9.93864 20.0612 10.5276 20.4303 11.252C20.665 11.7127 20.761 12.2075 20.8062 12.7603C20.8499 13.2953 20.8499 13.9544 20.8499 14.7641V16.2357C20.8499 17.0454 20.8499 17.7045 20.8062 18.2395C20.761 18.7923 20.665 19.2871 20.4303 19.7478C20.0612 20.4722 19.4722 21.0612 18.7478 21.4303C18.2871 21.665 17.7923 21.761 17.2395 21.8062C16.7045 21.8499 16.0454 21.8499 15.2357 21.8499H8.7641C7.95444 21.8499 7.29532 21.8499 6.76029 21.8062C6.20747 21.761 5.7127 21.665 5.25204 21.4303C4.52762 21.0612 3.93864 20.4722 3.56953 19.7478C3.33481 19.2871 3.23877 18.7923 3.1936 18.2395C3.14989 17.7045 3.14989 17.0454 3.1499 16.2358V14.764C3.14989 13.9544 3.14989 13.2953 3.1936 12.7603C3.23877 12.2075 3.33481 11.7127 3.56953 11.252C3.93864 10.5276 4.52762 9.93864 5.25204 9.56953C5.53645 9.42461 5.83386 9.33256 6.1499 9.2727V7.9999ZM7.8499 9.15282C8.13095 9.14989 8.43507 9.1499 8.76405 9.1499H15.2358C15.5647 9.1499 15.8689 9.14989 16.1499 9.15282V7.9999C16.1499 5.70792 14.2919 3.8499 11.9999 3.8499C9.70792 3.8499 7.8499 5.70792 7.8499 7.9999V9.15282ZM6.89873 10.888C6.45103 10.9245 6.20489 10.992 6.02382 11.0842C5.61927 11.2904 5.29037 11.6193 5.08424 12.0238C4.99198 12.2049 4.92453 12.451 4.88795 12.8987C4.85056 13.3563 4.8499 13.9458 4.8499 14.7999V16.1999C4.8499 17.054 4.85056 17.6435 4.88795 18.1011C4.92453 18.5488 4.99198 18.7949 5.08424 18.976C5.29037 19.3805 5.61928 19.7094 6.02382 19.9156C6.20489 20.0078 6.45103 20.0753 6.89873 20.1119C7.35634 20.1492 7.9458 20.1499 8.7999 20.1499H15.1999C16.054 20.1499 16.6435 20.1492 17.1011 20.1119C17.5488 20.0753 17.7949 20.0078 17.976 19.9156C18.3805 19.7094 18.7094 19.3805 18.9156 18.976C19.0078 18.7949 19.0753 18.5488 19.1119 18.1011C19.1492 17.6435 19.1499 17.054 19.1499 16.1999V14.7999C19.1499 13.9458 19.1492 13.3563 19.1119 12.8987C19.0753 12.451 19.0078 12.2049 18.9156 12.0238C18.7094 11.6193 18.3805 11.2904 17.976 11.0842C17.7949 10.992 17.5488 10.9245 17.1011 10.888C16.6435 10.8506 16.054 10.8499 15.1999 10.8499H8.7999C7.9458 10.8499 7.35634 10.8506 6.89873 10.888ZM11.9999 13.6499C12.4693 13.6499 12.8499 14.0305 12.8499 14.4999V16.4999C12.8499 16.9693 12.4693 17.3499 11.9999 17.3499C11.5305 17.3499 11.1499 16.9693 11.1499 16.4999V14.4999C11.1499 14.0305 11.5305 13.6499 11.9999 13.6499Z", fill: props.fill }) });
|
|
265
280
|
};
|
|
266
281
|
|
|
267
282
|
// packages/icons/src/index.tsx
|
|
@@ -815,9 +830,17 @@ function Pagination({
|
|
|
815
830
|
|
|
816
831
|
// packages/table/src/index.tsx
|
|
817
832
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
818
|
-
var TableContext = (0, import_react6.createContext)({ striped: false });
|
|
819
833
|
var MIN_COLUMN_WIDTH = 96;
|
|
820
834
|
var MAX_COLUMN_WIDTH = 1200;
|
|
835
|
+
var TableContext = (0, import_react6.createContext)({
|
|
836
|
+
striped: false,
|
|
837
|
+
columnsById: /* @__PURE__ */ new Map(),
|
|
838
|
+
columnWidths: {},
|
|
839
|
+
fixedColumnIds: /* @__PURE__ */ new Set(),
|
|
840
|
+
frozenColumnLefts: /* @__PURE__ */ new Map(),
|
|
841
|
+
minColumnWidth: MIN_COLUMN_WIDTH,
|
|
842
|
+
maxColumnWidth: MAX_COLUMN_WIDTH
|
|
843
|
+
});
|
|
821
844
|
function getColumnCount(headers, data) {
|
|
822
845
|
return Math.max(headers.length, ...data.map((row) => row.length), 0);
|
|
823
846
|
}
|
|
@@ -841,6 +864,17 @@ function getInitialColumnSizes(headers, data, sizes2, minColumnWidth = MIN_COLUM
|
|
|
841
864
|
function sameSizes(left, right) {
|
|
842
865
|
return left.length === right.length && left.every((size, index) => size === right[index]);
|
|
843
866
|
}
|
|
867
|
+
function clampColumnWidth(column, width, minColumnWidth, maxColumnWidth) {
|
|
868
|
+
const min = Math.max(1, column.minWidth ?? minColumnWidth);
|
|
869
|
+
const max = Math.max(min, column.maxWidth ?? maxColumnWidth);
|
|
870
|
+
return Math.min(max, Math.max(min, Math.round(width)));
|
|
871
|
+
}
|
|
872
|
+
function getColumnWidths(columns, widths, minColumnWidth, maxColumnWidth) {
|
|
873
|
+
return Object.fromEntries(columns.map((column) => [
|
|
874
|
+
column.id,
|
|
875
|
+
clampColumnWidth(column, widths?.[column.id] ?? column.width ?? minColumnWidth, minColumnWidth, maxColumnWidth)
|
|
876
|
+
]));
|
|
877
|
+
}
|
|
844
878
|
function DataTable({
|
|
845
879
|
headers,
|
|
846
880
|
data,
|
|
@@ -855,6 +889,12 @@ function DataTable({
|
|
|
855
889
|
defaultPage = 1,
|
|
856
890
|
onPageChange,
|
|
857
891
|
paginationPosition = "bottom-right",
|
|
892
|
+
columns: _columns,
|
|
893
|
+
columnWidths: _columnWidths,
|
|
894
|
+
fixedColumnIds: _fixedColumnIds,
|
|
895
|
+
onResize: _onResize,
|
|
896
|
+
onResizeEnd: _onResizeEnd,
|
|
897
|
+
maxColumnWidth: _maxColumnWidth,
|
|
858
898
|
className,
|
|
859
899
|
...props
|
|
860
900
|
}) {
|
|
@@ -950,9 +990,7 @@ function DataTable({
|
|
|
950
990
|
resolvedPaginationPosition !== "top-right" && paginationControl
|
|
951
991
|
] });
|
|
952
992
|
}
|
|
953
|
-
function
|
|
954
|
-
headers,
|
|
955
|
-
data,
|
|
993
|
+
function ComposableTable({
|
|
956
994
|
striped,
|
|
957
995
|
children,
|
|
958
996
|
pagination,
|
|
@@ -961,10 +999,140 @@ function Table({
|
|
|
961
999
|
defaultPage,
|
|
962
1000
|
onPageChange,
|
|
963
1001
|
paginationPosition,
|
|
1002
|
+
columns,
|
|
1003
|
+
columnWidths,
|
|
1004
|
+
fixedColumnIds,
|
|
1005
|
+
onResize,
|
|
1006
|
+
onResizeEnd,
|
|
1007
|
+
minColumnWidth = MIN_COLUMN_WIDTH,
|
|
1008
|
+
maxColumnWidth = MAX_COLUMN_WIDTH,
|
|
1009
|
+
className,
|
|
1010
|
+
style,
|
|
964
1011
|
...props
|
|
965
1012
|
}) {
|
|
966
|
-
|
|
967
|
-
|
|
1013
|
+
const safeMinColumnWidth = Math.max(1, minColumnWidth);
|
|
1014
|
+
const safeMaxColumnWidth = Math.max(safeMinColumnWidth, maxColumnWidth);
|
|
1015
|
+
const columnSignature = columns?.map((column) => [
|
|
1016
|
+
column.id,
|
|
1017
|
+
column.width,
|
|
1018
|
+
column.minWidth,
|
|
1019
|
+
column.maxWidth,
|
|
1020
|
+
column.resizable
|
|
1021
|
+
].join(":")).join("|") ?? "";
|
|
1022
|
+
const [uncontrolledColumnWidths, setUncontrolledColumnWidths] = (0, import_react6.useState)(() => getColumnWidths(columns ?? [], void 0, safeMinColumnWidth, safeMaxColumnWidth));
|
|
1023
|
+
const [resizingColumnId, setResizingColumnId] = (0, import_react6.useState)();
|
|
1024
|
+
const resizeState = (0, import_react6.useRef)();
|
|
1025
|
+
const resolvedColumns = (0, import_react6.useMemo)(() => columns ?? [], [columns]);
|
|
1026
|
+
const columnsById = (0, import_react6.useMemo)(() => new Map(resolvedColumns.map((column) => [column.id, column])), [resolvedColumns]);
|
|
1027
|
+
const resolvedColumnWidths = (0, import_react6.useMemo)(() => getColumnWidths(
|
|
1028
|
+
resolvedColumns,
|
|
1029
|
+
columnWidths ?? uncontrolledColumnWidths,
|
|
1030
|
+
safeMinColumnWidth,
|
|
1031
|
+
safeMaxColumnWidth
|
|
1032
|
+
), [columnSignature, columnWidths, uncontrolledColumnWidths, resolvedColumns, safeMinColumnWidth, safeMaxColumnWidth]);
|
|
1033
|
+
const resolvedFixedColumnIds = (0, import_react6.useMemo)(() => new Set(
|
|
1034
|
+
(fixedColumnIds ?? []).filter((columnId) => columnsById.has(columnId))
|
|
1035
|
+
), [columnsById, fixedColumnIds]);
|
|
1036
|
+
const frozenColumnLefts = (0, import_react6.useMemo)(() => {
|
|
1037
|
+
let left = 0;
|
|
1038
|
+
const offsets = /* @__PURE__ */ new Map();
|
|
1039
|
+
resolvedColumns.forEach((column) => {
|
|
1040
|
+
if (!resolvedFixedColumnIds.has(column.id)) return;
|
|
1041
|
+
offsets.set(column.id, left);
|
|
1042
|
+
left += resolvedColumnWidths[column.id] ?? 0;
|
|
1043
|
+
});
|
|
1044
|
+
return offsets;
|
|
1045
|
+
}, [resolvedColumnWidths, resolvedColumns, resolvedFixedColumnIds]);
|
|
1046
|
+
const lastFrozenColumnId = (0, import_react6.useMemo)(() => [...resolvedColumns].reverse().find((column) => resolvedFixedColumnIds.has(column.id))?.id, [resolvedColumns, resolvedFixedColumnIds]);
|
|
1047
|
+
const tableWidth = resolvedColumns.reduce((total, column) => total + (resolvedColumnWidths[column.id] ?? 0), 0);
|
|
1048
|
+
(0, import_react6.useEffect)(() => {
|
|
1049
|
+
if (columnWidths) return;
|
|
1050
|
+
setUncontrolledColumnWidths((currentWidths) => ({
|
|
1051
|
+
...getColumnWidths(resolvedColumns, void 0, safeMinColumnWidth, safeMaxColumnWidth),
|
|
1052
|
+
...currentWidths
|
|
1053
|
+
}));
|
|
1054
|
+
}, [columnSignature, columnWidths, resolvedColumns, safeMinColumnWidth, safeMaxColumnWidth]);
|
|
1055
|
+
const updateColumnWidth = (0, import_react6.useCallback)((columnId, nextWidth, isComplete = false) => {
|
|
1056
|
+
const column = columnsById.get(columnId);
|
|
1057
|
+
if (!column) return;
|
|
1058
|
+
const width = clampColumnWidth(column, nextWidth, safeMinColumnWidth, safeMaxColumnWidth);
|
|
1059
|
+
const nextColumnWidths = { ...resolvedColumnWidths, [columnId]: width };
|
|
1060
|
+
if (!columnWidths) setUncontrolledColumnWidths(nextColumnWidths);
|
|
1061
|
+
onResize?.(columnId, width, nextColumnWidths);
|
|
1062
|
+
if (isComplete) onResizeEnd?.(columnId, width, nextColumnWidths);
|
|
1063
|
+
}, [columnWidths, columnsById, onResize, onResizeEnd, resolvedColumnWidths, safeMinColumnWidth, safeMaxColumnWidth]);
|
|
1064
|
+
const startColumnResize = (0, import_react6.useCallback)((event, columnId) => {
|
|
1065
|
+
const column = columnsById.get(columnId);
|
|
1066
|
+
const width = resolvedColumnWidths[columnId];
|
|
1067
|
+
if (!column || column.resizable === false || typeof width !== "number") return;
|
|
1068
|
+
event.preventDefault();
|
|
1069
|
+
resizeState.current = { columnId, startX: event.clientX, startWidth: width, width };
|
|
1070
|
+
setResizingColumnId(columnId);
|
|
1071
|
+
}, [columnsById, resolvedColumnWidths]);
|
|
1072
|
+
const resizeColumnWithKeyboard = (0, import_react6.useCallback)((event, columnId) => {
|
|
1073
|
+
if (!["ArrowLeft", "ArrowRight"].includes(event.key)) return;
|
|
1074
|
+
const width = resolvedColumnWidths[columnId];
|
|
1075
|
+
if (typeof width !== "number") return;
|
|
1076
|
+
event.preventDefault();
|
|
1077
|
+
updateColumnWidth(columnId, width + (event.key === "ArrowLeft" ? -16 : 16), true);
|
|
1078
|
+
}, [resolvedColumnWidths, updateColumnWidth]);
|
|
1079
|
+
(0, import_react6.useEffect)(() => {
|
|
1080
|
+
if (!resizingColumnId) return void 0;
|
|
1081
|
+
const onPointerMove = (event) => {
|
|
1082
|
+
const activeResize = resizeState.current;
|
|
1083
|
+
if (!activeResize) return;
|
|
1084
|
+
const width = activeResize.startWidth + event.clientX - activeResize.startX;
|
|
1085
|
+
activeResize.width = width;
|
|
1086
|
+
updateColumnWidth(activeResize.columnId, width);
|
|
1087
|
+
};
|
|
1088
|
+
const stopResizing = () => {
|
|
1089
|
+
const activeResize = resizeState.current;
|
|
1090
|
+
resizeState.current = void 0;
|
|
1091
|
+
setResizingColumnId(void 0);
|
|
1092
|
+
if (activeResize) updateColumnWidth(activeResize.columnId, activeResize.width, true);
|
|
1093
|
+
};
|
|
1094
|
+
window.addEventListener("pointermove", onPointerMove);
|
|
1095
|
+
window.addEventListener("pointerup", stopResizing);
|
|
1096
|
+
window.addEventListener("pointercancel", stopResizing);
|
|
1097
|
+
return () => {
|
|
1098
|
+
window.removeEventListener("pointermove", onPointerMove);
|
|
1099
|
+
window.removeEventListener("pointerup", stopResizing);
|
|
1100
|
+
window.removeEventListener("pointercancel", stopResizing);
|
|
1101
|
+
};
|
|
1102
|
+
}, [resizingColumnId, updateColumnWidth]);
|
|
1103
|
+
const tableContext = (0, import_react6.useMemo)(() => ({
|
|
1104
|
+
striped: striped ?? false,
|
|
1105
|
+
columnsById,
|
|
1106
|
+
columnWidths: resolvedColumnWidths,
|
|
1107
|
+
fixedColumnIds: resolvedFixedColumnIds,
|
|
1108
|
+
frozenColumnLefts,
|
|
1109
|
+
minColumnWidth: safeMinColumnWidth,
|
|
1110
|
+
maxColumnWidth: safeMaxColumnWidth,
|
|
1111
|
+
lastFrozenColumnId,
|
|
1112
|
+
resizingColumnId,
|
|
1113
|
+
startColumnResize,
|
|
1114
|
+
resizeColumnWithKeyboard
|
|
1115
|
+
}), [columnsById, frozenColumnLefts, lastFrozenColumnId, resizingColumnId, resizeColumnWithKeyboard, resolvedColumnWidths, resolvedFixedColumnIds, startColumnResize, striped]);
|
|
1116
|
+
const tableStyle = resolvedColumns.length ? { ...style, width: tableWidth, minWidth: tableWidth } : style ?? {};
|
|
1117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableContext.Provider, { value: tableContext, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1118
|
+
"table",
|
|
1119
|
+
{
|
|
1120
|
+
className,
|
|
1121
|
+
"data-fe-table": true,
|
|
1122
|
+
"data-striped": striped || void 0,
|
|
1123
|
+
"data-resizing": resizingColumnId || void 0,
|
|
1124
|
+
style: tableStyle,
|
|
1125
|
+
...props,
|
|
1126
|
+
children: [
|
|
1127
|
+
resolvedColumns.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("colgroup", { children: resolvedColumns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("col", { style: { width: `${resolvedColumnWidths[column.id]}px` } }, column.id)) }),
|
|
1128
|
+
children
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
) });
|
|
1132
|
+
}
|
|
1133
|
+
function Table({ headers, data, ...props }) {
|
|
1134
|
+
if (headers || data) return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(DataTable, { headers: headers ?? [], data: data ?? [], ...props });
|
|
1135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ComposableTable, { ...props });
|
|
968
1136
|
}
|
|
969
1137
|
function TableHead(props) {
|
|
970
1138
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("thead", { ...props });
|
|
@@ -976,11 +1144,50 @@ function TableRow({ children, ...props }) {
|
|
|
976
1144
|
const { striped } = (0, import_react6.useContext)(TableContext);
|
|
977
1145
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("tr", { "data-striped": striped || void 0, ...props, children });
|
|
978
1146
|
}
|
|
979
|
-
function
|
|
980
|
-
|
|
1147
|
+
function getFrozenProps(columnId, context, className, style) {
|
|
1148
|
+
if (!columnId || !context.fixedColumnIds.has(columnId)) return { className, style };
|
|
1149
|
+
const frozenClassNames = [
|
|
1150
|
+
className,
|
|
1151
|
+
"fe-table__frozen",
|
|
1152
|
+
context.lastFrozenColumnId === columnId && "fe-table__frozen--last"
|
|
1153
|
+
].filter(Boolean).join(" ");
|
|
1154
|
+
return {
|
|
1155
|
+
className: frozenClassNames,
|
|
1156
|
+
style: { ...style, left: context.frozenColumnLefts.get(columnId) ?? 0 }
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
function TableCell({ children, columnId, className, style, ...props }) {
|
|
1160
|
+
const context = (0, import_react6.useContext)(TableContext);
|
|
1161
|
+
const frozenProps = getFrozenProps(columnId, context, className, style);
|
|
1162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("td", { "data-fe-table-column-id": columnId, ...props, ...frozenProps, children });
|
|
981
1163
|
}
|
|
982
|
-
function TableHeader({ children, ...props }) {
|
|
983
|
-
|
|
1164
|
+
function TableHeader({ children, columnId, className, style, ...props }) {
|
|
1165
|
+
const context = (0, import_react6.useContext)(TableContext);
|
|
1166
|
+
const column = columnId ? context.columnsById.get(columnId) : void 0;
|
|
1167
|
+
const minWidth = Math.max(1, column?.minWidth ?? context.minColumnWidth);
|
|
1168
|
+
const maxWidth = Math.max(minWidth, column?.maxWidth ?? context.maxColumnWidth);
|
|
1169
|
+
const frozenProps = getFrozenProps(columnId, context, className, style);
|
|
1170
|
+
const isResizable = Boolean(column && column.resizable !== false && context.startColumnResize);
|
|
1171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("th", { scope: "col", "data-fe-table-column-id": columnId, ...props, ...frozenProps, children: [
|
|
1172
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "fe-table__header-content", children }),
|
|
1173
|
+
isResizable && columnId && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1174
|
+
"span",
|
|
1175
|
+
{
|
|
1176
|
+
className: "fe-table__resize-handle",
|
|
1177
|
+
role: "separator",
|
|
1178
|
+
"aria-label": `Resize ${getText(children) || "column"}`,
|
|
1179
|
+
"aria-orientation": "vertical",
|
|
1180
|
+
"aria-valuemin": minWidth,
|
|
1181
|
+
"aria-valuemax": maxWidth,
|
|
1182
|
+
"aria-valuenow": context.columnWidths[columnId],
|
|
1183
|
+
tabIndex: 0,
|
|
1184
|
+
title: "Drag to resize column",
|
|
1185
|
+
"data-resizing": context.resizingColumnId === columnId || void 0,
|
|
1186
|
+
onPointerDown: (event) => context.startColumnResize?.(event, columnId),
|
|
1187
|
+
onKeyDown: (event) => context.resizeColumnWithKeyboard?.(event, columnId)
|
|
1188
|
+
}
|
|
1189
|
+
)
|
|
1190
|
+
] });
|
|
984
1191
|
}
|
|
985
1192
|
function TableCaption(props) {
|
|
986
1193
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("caption", { ...props });
|
|
@@ -1920,6 +2127,9 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
1920
2127
|
disabled = false,
|
|
1921
2128
|
name,
|
|
1922
2129
|
onKeyDown,
|
|
2130
|
+
maxWidth,
|
|
2131
|
+
overflow = "ellipsis",
|
|
2132
|
+
style,
|
|
1923
2133
|
"aria-label": ariaLabel,
|
|
1924
2134
|
"aria-describedby": ariaDescribedBy,
|
|
1925
2135
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -1930,6 +2140,7 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
1930
2140
|
const listboxId = triggerId + "-listbox";
|
|
1931
2141
|
const labelId = generatedId + "-label";
|
|
1932
2142
|
const messageId2 = generatedId + "-message";
|
|
2143
|
+
const tooltipId = generatedId + "-tooltip";
|
|
1933
2144
|
const fieldError = getFieldError(error, errorMessage);
|
|
1934
2145
|
const hasError = fieldError !== void 0 && fieldError !== false && fieldError !== null;
|
|
1935
2146
|
const resolvedDescription = description ?? helperText;
|
|
@@ -1956,6 +2167,26 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
1956
2167
|
const [activeIndex, setActiveIndex] = (0, import_react17.useState)(0);
|
|
1957
2168
|
const rootRef = (0, import_react17.useRef)(null);
|
|
1958
2169
|
const menuRef = (0, import_react17.useRef)(null);
|
|
2170
|
+
const valueRef = (0, import_react17.useRef)(null);
|
|
2171
|
+
const [truncated, setTruncated] = (0, import_react17.useState)(false);
|
|
2172
|
+
const [hovered, setHovered] = (0, import_react17.useState)(false);
|
|
2173
|
+
const [focused, setFocused] = (0, import_react17.useState)(false);
|
|
2174
|
+
const showsTags = tag && multiple && selectedOptions.length > 0;
|
|
2175
|
+
const canTruncate = overflow === "ellipsis" && !showsTags && selectedOptions.length > 0;
|
|
2176
|
+
const selectedKey = selectedOptions.map((option) => String(option.value)).join("|");
|
|
2177
|
+
(0, import_react17.useLayoutEffect)(() => {
|
|
2178
|
+
const node = valueRef.current;
|
|
2179
|
+
if (!canTruncate || !node) {
|
|
2180
|
+
setTruncated(false);
|
|
2181
|
+
return;
|
|
2182
|
+
}
|
|
2183
|
+
const measure = () => setTruncated(node.scrollWidth > node.clientWidth + 1);
|
|
2184
|
+
measure();
|
|
2185
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
2186
|
+
const observer = new ResizeObserver(measure);
|
|
2187
|
+
observer.observe(node);
|
|
2188
|
+
return () => observer.disconnect();
|
|
2189
|
+
}, [canTruncate, selectedKey]);
|
|
1959
2190
|
const [menuPosition, setMenuPosition] = (0, import_react17.useState)(null);
|
|
1960
2191
|
(0, import_react17.useEffect)(() => {
|
|
1961
2192
|
const close = (event) => {
|
|
@@ -2020,6 +2251,12 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
2020
2251
|
setQuery("");
|
|
2021
2252
|
};
|
|
2022
2253
|
const displayLabel = selectedOptions.length ? selectedOptions.map((option) => option.label) : null;
|
|
2254
|
+
const showTooltip = truncated && (hovered || focused) && !open;
|
|
2255
|
+
const renderLabels = () => displayLabel?.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { children: [
|
|
2256
|
+
item,
|
|
2257
|
+
index < displayLabel.length - 1 ? ", " : ""
|
|
2258
|
+
] }, index));
|
|
2259
|
+
const toPx = (length) => typeof length === "number" ? length + "px" : length;
|
|
2023
2260
|
const onTriggerKeyDown = (event) => {
|
|
2024
2261
|
onKeyDown?.(event);
|
|
2025
2262
|
if (disabled) return;
|
|
@@ -2051,12 +2288,14 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
2051
2288
|
className: [
|
|
2052
2289
|
"fe-selection",
|
|
2053
2290
|
"fe-selection--" + size,
|
|
2291
|
+
"fe-selection--" + overflow,
|
|
2054
2292
|
open && "fe-selection--open",
|
|
2055
2293
|
clearable && selectedOptions.length > 0 && "fe-selection--clearable",
|
|
2056
2294
|
hasError && "fe-selection--error",
|
|
2057
2295
|
disabled && "fe-selection--disabled",
|
|
2058
2296
|
className
|
|
2059
2297
|
].filter(Boolean).join(" "),
|
|
2298
|
+
style: maxWidth === void 0 ? style : { ...style, maxWidth: toPx(maxWidth) },
|
|
2060
2299
|
...props,
|
|
2061
2300
|
children: [
|
|
2062
2301
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
@@ -2090,16 +2329,24 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
2090
2329
|
"aria-invalid": hasError || void 0,
|
|
2091
2330
|
"aria-required": isRequired || void 0,
|
|
2092
2331
|
"aria-labelledby": labelledBy,
|
|
2093
|
-
"aria-describedby":
|
|
2332
|
+
"aria-describedby": getDescribedBy(
|
|
2333
|
+
describedBy,
|
|
2334
|
+
showTooltip ? tooltipId : void 0
|
|
2335
|
+
),
|
|
2094
2336
|
"aria-haspopup": "listbox",
|
|
2095
2337
|
"aria-expanded": open,
|
|
2096
2338
|
"aria-controls": listboxId,
|
|
2097
2339
|
onClick: () => setOpen((current) => !current),
|
|
2098
2340
|
onKeyDown: onTriggerKeyDown,
|
|
2341
|
+
onMouseEnter: () => setHovered(true),
|
|
2342
|
+
onMouseLeave: () => setHovered(false),
|
|
2343
|
+
onFocus: () => setFocused(true),
|
|
2344
|
+
onBlur: () => setFocused(false),
|
|
2099
2345
|
children: [
|
|
2100
2346
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2101
2347
|
"span",
|
|
2102
2348
|
{
|
|
2349
|
+
ref: valueRef,
|
|
2103
2350
|
className: [
|
|
2104
2351
|
"fe-selection__value",
|
|
2105
2352
|
!selectedOptions.length && "is-placeholder",
|
|
@@ -2115,10 +2362,7 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
2115
2362
|
]
|
|
2116
2363
|
},
|
|
2117
2364
|
String(option.value)
|
|
2118
|
-
)) :
|
|
2119
|
-
item,
|
|
2120
|
-
index < displayLabel.length - 1 ? ", " : ""
|
|
2121
|
-
] }, index)) : /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
2365
|
+
)) : renderLabels() : /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
2122
2366
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: placeholder }),
|
|
2123
2367
|
isRequired && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "fe-field__required", "aria-hidden": "true", children: "*" })
|
|
2124
2368
|
] })
|
|
@@ -2137,6 +2381,7 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
2137
2381
|
onClick: clear
|
|
2138
2382
|
}
|
|
2139
2383
|
),
|
|
2384
|
+
showTooltip && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { id: tooltipId, role: "tooltip", className: "fe-selection__tooltip", children: renderLabels() }),
|
|
2140
2385
|
open && menuPosition && (0, import_react_dom2.createPortal)(
|
|
2141
2386
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2142
2387
|
"div",
|
|
@@ -2188,7 +2433,7 @@ var Selection = (0, import_react17.forwardRef)(
|
|
|
2188
2433
|
onMouseMove: () => setActiveIndex(index),
|
|
2189
2434
|
onClick: () => choose(option),
|
|
2190
2435
|
children: [
|
|
2191
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: option.label }),
|
|
2436
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "fe-selection__option-label", children: option.label }),
|
|
2192
2437
|
isSelected && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2193
2438
|
"span",
|
|
2194
2439
|
{
|
|
@@ -5906,10 +6151,13 @@ function NotFound({ variant = "random", ...props }) {
|
|
|
5906
6151
|
message,
|
|
5907
6152
|
minus_square,
|
|
5908
6153
|
normalizePhoneNumber,
|
|
6154
|
+
pin_02,
|
|
5909
6155
|
plus,
|
|
5910
6156
|
plus_square,
|
|
5911
6157
|
search,
|
|
6158
|
+
settings,
|
|
5912
6159
|
trash,
|
|
6160
|
+
unpin_02,
|
|
5913
6161
|
validateEmail,
|
|
5914
6162
|
validatePassword,
|
|
5915
6163
|
validatePhoneNumber,
|