welcome-ui 10.6.2 → 10.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Icon.js +5 -0
- package/dist/Search.js +67 -65
- package/dist/Swiper.js +360 -328
- package/dist/Tabs.js +42 -26
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +93 -96
- package/dist/Window.js +40 -46
- package/dist/types/components/Drawer/index.d.ts +2 -2
- package/dist/types/components/Icon/icons.d.ts +4 -4
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/Swiper/constants.d.ts +49 -0
- package/dist/types/components/Swiper/context.d.ts +3 -0
- package/dist/types/components/Swiper/index.d.ts +10 -57
- package/dist/types/components/Swiper/types.d.ts +31 -7
- package/dist/types/components/Swiper/useInitialScroll.d.ts +18 -0
- package/dist/types/components/Swiper/useSwiper.d.ts +27 -0
- package/dist/types/components/Swiper/useSwiperViewModel.d.ts +2 -0
- package/dist/types/components/Swiper/utils.d.ts +1 -1
- package/dist/types/components/Window/components/Header.d.ts +2 -3
- package/dist/types/components/Window/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/Icon.js
CHANGED
|
@@ -94,12 +94,14 @@ const s = "_root_576cf_2", n = {
|
|
|
94
94
|
/* @__PURE__ */ a("symbol", { id: "chat-bubble-user", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M14.58,11.3a3.24,3.24,0,0,0,.71-2,3.29,3.29,0,0,0-6.58,0,3.24,3.24,0,0,0,.71,2,5,5,0,0,0-2,2.31,1,1,0,1,0,1.84.78A3,3,0,0,1,12,12.57h0a3,3,0,0,1,2.75,1.82,1,1,0,0,0,.92.61,1.09,1.09,0,0,0,.39-.08,1,1,0,0,0,.53-1.31A5,5,0,0,0,14.58,11.3ZM12,10.57h0a1.29,1.29,0,1,1,1.29-1.28A1.29,1.29,0,0,1,12,10.57ZM18,2H6A3,3,0,0,0,3,5V16a3,3,0,0,0,3,3H8.59l2.7,2.71A1,1,0,0,0,12,22a1,1,0,0,0,.65-.24L15.87,19H18a3,3,0,0,0,3-3V5A3,3,0,0,0,18,2Zm1,14a1,1,0,0,1-1,1H15.5a1,1,0,0,0-.65.24l-2.8,2.4L9.71,17.29A1,1,0,0,0,9,17H6a1,1,0,0,1-1-1V5A1,1,0,0,1,6,4H18a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
95
95
|
/* @__PURE__ */ a("symbol", { id: "comment", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2A10,10,0,0,0,2,12a9.89,9.89,0,0,0,2.26,6.33l-2,2a1,1,0,0,0-.21,1.09A1,1,0,0,0,3,22h9A10,10,0,0,0,12,2Zm0,18H5.41l.93-.93a1,1,0,0,0,0-1.41A8,8,0,1,1,12,20Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
96
96
|
/* @__PURE__ */ a("symbol", { id: "comment-alt-lines", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M13,11H7a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Zm4-4H7A1,1,0,0,0,7,9H17a1,1,0,0,0,0-2Zm2-5H5A3,3,0,0,0,2,5V15a3,3,0,0,0,3,3H16.59l3.7,3.71A1,1,0,0,0,21,22a.84.84,0,0,0,.38-.08A1,1,0,0,0,22,21V5A3,3,0,0,0,19,2Zm1,16.59-2.29-2.3A1,1,0,0,0,17,16H5a1,1,0,0,1-1-1V5A1,1,0,0,1,5,4H19a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
97
|
+
/* @__PURE__ */ a("symbol", { id: "comment-chart-line", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,10a1,1,0,0,0-1,1v4a1,1,0,0,0,2,0V11A1,1,0,0,0,12,10ZM8,13a1,1,0,0,0-1,1v1a1,1,0,0,0,2,0V14A1,1,0,0,0,8,13ZM12,2A10,10,0,0,0,2,12a9.89,9.89,0,0,0,2.26,6.33l-2,2a1,1,0,0,0-.21,1.09A1,1,0,0,0,3,22h9A10,10,0,0,0,12,2Zm0,18H5.41l.93-.93a1,1,0,0,0,.3-.71,1,1,0,0,0-.3-.7A8,8,0,1,1,12,20ZM16,8a1,1,0,0,0-1,1v6a1,1,0,0,0,2,0V9A1,1,0,0,0,16,8Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
97
98
|
/* @__PURE__ */ a("symbol", { id: "folder", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,5.5H12.72l-.32-1a3,3,0,0,0-2.84-2H5a3,3,0,0,0-3,3v13a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V8.5A3,3,0,0,0,19,5.5Zm1,13a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V5.5a1,1,0,0,1,1-1H9.56a1,1,0,0,1,.95.68l.54,1.64A1,1,0,0,0,12,7.5h7a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
98
99
|
/* @__PURE__ */ a("symbol", { id: "folder-open", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M22.78 10.37A1 1 0 0 0 22 10h-2V9a3 3 0 0 0-3-3h-6.28l-.32-1a3 3 0 0 0-2.84-2H4a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14.4a3 3 0 0 0 2.92-2.35L23 11.22a1 1 0 0 0-.22-.85ZM5.37 18.22a1 1 0 0 1-1 .78H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3.56a1 1 0 0 1 1 .68l.54 1.64A1 1 0 0 0 10 8h7a1 1 0 0 1 1 1v1H8a1 1 0 0 0-1 .78Zm14 0a1 1 0 0 1-1 .78H7.21a1.42 1.42 0 0 0 .11-.35L8.8 12h12Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
99
100
|
/* @__PURE__ */ o("symbol", { id: "folder-full", viewBox: "0 0 24 24", children: [
|
|
100
101
|
/* @__PURE__ */ a("path", { d: "M5 7C5 5.34315 6.34315 4 8 4H10.7574C11.553 4 12.3161 4.31607 12.8787 4.87868L13.1213 5.12132C13.6839 5.68393 14.447 6 15.2426 6H20C21.1046 6 22 6.89543 22 8V18C22 19.1046 21.1046 20 20 20H8C6.34315 20 5 18.6569 5 17V7Z", fill: "var(--secondary-color)", xmlns: "http://www.w3.org/2000/svg" }),
|
|
101
102
|
/* @__PURE__ */ a("path", { d: "M2 9C2 7.34315 3.34315 6 5 6H6.75736C7.55301 6 8.31607 6.31607 8.87868 6.87868L9.54136 7.54136C9.83502 7.83502 10.2333 8 10.6486 8H16.6351C17.9412 8 19 9.05882 19 10.3649V18.382C19 19.0672 19.3871 19.6936 20 20H5C3.34315 20 2 18.6569 2 17V9Z", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" })
|
|
102
103
|
] }),
|
|
104
|
+
/* @__PURE__ */ a("symbol", { id: "folder-plus", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M14,12.5H13v-1a1,1,0,0,0-2,0v1H10a1,1,0,0,0,0,2h1v1a1,1,0,0,0,2,0v-1h1a1,1,0,0,0,0-2Zm5-7H12.72l-.32-1a3,3,0,0,0-2.84-2H5a3,3,0,0,0-3,3v13a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V8.5A3,3,0,0,0,19,5.5Zm1,13a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V5.5a1,1,0,0,1,1-1H9.56a1,1,0,0,1,.95.68l.54,1.64A1,1,0,0,0,12,7.5h7a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
103
105
|
/* @__PURE__ */ a("symbol", { id: "file", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M20,8.94a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19l-.09,0L13.06,2H7A3,3,0,0,0,4,5V19a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V9S20,9,20,8.94ZM14,5.41,16.59,8H14ZM18,19a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V5A1,1,0,0,1,7,4h5V9a1,1,0,0,0,1,1h5Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
104
106
|
/* @__PURE__ */ a("symbol", { id: "image", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,4H5A3,3,0,0,0,2,7V17a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4ZM5,18a1,1,0,0,1-1-1V14.58l3.3-3.29a1,1,0,0,1,1.4,0L15.41,18Zm15-1a1,1,0,0,1-1,1h-.77l-3.81-3.83.88-.88a1,1,0,0,1,1.4,0L20,16.58Zm0-3.24-1.88-1.87a3.06,3.06,0,0,0-4.24,0l-.88.88L10.12,9.89a3.06,3.06,0,0,0-4.24,0L4,11.76V7A1,1,0,0,1,5,6H19a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
105
107
|
/* @__PURE__ */ a("symbol", { id: "bold", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M16.5,9.5A3.5,3.5,0,0,0,13,6H8.5a1,1,0,0,0-1,1V17a1,1,0,0,0,1,1H13a3.49,3.49,0,0,0,2.44-6A3.5,3.5,0,0,0,16.5,9.5ZM13,16H9.5V13H13a1.5,1.5,0,0,1,0,3Zm0-5H9.5V8H13a1.5,1.5,0,0,1,0,3Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
@@ -117,6 +119,7 @@ const s = "_root_576cf_2", n = {
|
|
|
117
119
|
/* @__PURE__ */ a("symbol", { id: "user-square", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M14.81,12.28a3.73,3.73,0,0,0,1-2.5,3.78,3.78,0,0,0-7.56,0,3.73,3.73,0,0,0,1,2.5A5.94,5.94,0,0,0,6,16.89a1,1,0,0,0,2,.22,4,4,0,0,1,7.94,0A1,1,0,0,0,17,18h.11a1,1,0,0,0,.88-1.1A5.94,5.94,0,0,0,14.81,12.28ZM12,11.56a1.78,1.78,0,1,1,1.78-1.78A1.78,1.78,0,0,1,12,11.56ZM19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V5A1,1,0,0,1,5,4H19a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
118
120
|
/* @__PURE__ */ a("symbol", { id: "book-reader", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M20.18,10.19A11.9,11.9,0,0,0,18,10c-.42,0-.83,0-1.24.08a5.91,5.91,0,0,0-1.91-1.65,3.81,3.81,0,0,0,1-2.57,3.86,3.86,0,0,0-7.72,0,3.81,3.81,0,0,0,1,2.57,6.11,6.11,0,0,0-1.91,1.64C6.83,10,6.42,10,6,10a11.9,11.9,0,0,0-2.18.21,1,1,0,0,0-.82,1v8.25a1,1,0,0,0,.36.77,1,1,0,0,0,.82.22A9.75,9.75,0,0,1,6,20.23a9.89,9.89,0,0,1,5.45,1.63h0l0,0,.13.05h0A1.09,1.09,0,0,0,12,22a.87.87,0,0,0,.28-.05l.07,0,.13-.05,0,0h0A9.89,9.89,0,0,1,18,20.23a9.75,9.75,0,0,1,1.82.18,1,1,0,0,0,.82-.22,1,1,0,0,0,.36-.77V11.17A1,1,0,0,0,20.18,10.19ZM12,4a1.86,1.86,0,0,1,0,3.71h0A1.86,1.86,0,0,1,12,4ZM11,19.33a11.92,11.92,0,0,0-5-1.1c-.33,0-.66,0-1,.05V12a9.63,9.63,0,0,1,2.52.05l.11,0A10,10,0,0,1,11,13.33Zm1-7.73a11.77,11.77,0,0,0-1.38-.68l-.06,0c-.33-.13-.66-.26-1-.36A4,4,0,0,1,12,9.69h0a4,4,0,0,1,2.44.85A12.43,12.43,0,0,0,12,11.6Zm7,6.68a11.6,11.6,0,0,0-6,1v-6a9.76,9.76,0,0,1,3.37-1.22l.2,0A9.39,9.39,0,0,1,19,12Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
119
121
|
/* @__PURE__ */ a("symbol", { id: "file-question-alt", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M13.07,12h-5a1,1,0,0,0,0,2h5a1,1,0,0,0,0-2Zm1,8h-8a1,1,0,0,1-1-1V5a1,1,0,0,1,1-1h5V7a3,3,0,0,0,3,3h3v1a1,1,0,0,0,2,0V9a.14.14,0,0,0,0-.06A.86.86,0,0,0,19,8.67l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1,1,0,0,0-.29-.19s-.05,0-.08,0A.88.88,0,0,0,12.12,2h-6a3,3,0,0,0-3,3V19a3,3,0,0,0,3,3h8a1,1,0,0,0,0-2Zm-1-14.59L15.65,8H14.07a1,1,0,0,1-1-1Zm5.57,14.88a1.58,1.58,0,0,0-.15-.12,1.08,1.08,0,0,0-.36-.15,1,1,0,0,0-.9.27,1,1,0,0,0,0,1.42,1,1,0,0,0,.7.29,1,1,0,0,0,.93-1.38A1.19,1.19,0,0,0,18.64,20.29ZM13.07,16h-5a1,1,0,0,0,0,2h5a1,1,0,0,0,0-2Zm4.86-3a3,3,0,0,0-2.6,1.5,1,1,0,1,0,1.74,1,1,1,0,1,1,.86,1.5,1,1,0,0,0,0,2,3,3,0,0,0,0-6ZM8.07,10h1a1,1,0,0,0,0-2h-1a1,1,0,0,0,0,2Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
122
|
+
/* @__PURE__ */ a("symbol", { id: "file-slash", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M21.71,20.29l-18-18A1,1,0,0,0,2.29,3.71L4,5.41V19a3,3,0,0,0,3,3H17a3,3,0,0,0,2.39-1.2l.9.91a1,1,0,0,0,1.42,0A1,1,0,0,0,21.71,20.29ZM17,20H7a1,1,0,0,1-1-1V7.41L17.93,19.34A1,1,0,0,1,17,20ZM8.66,4H12V7a3,3,0,0,0,3,3h3v3.34a1,1,0,1,0,2,0V9s0,0,0-.06a1.31,1.31,0,0,0-.06-.27l0-.09a1.07,1.07,0,0,0-.19-.28h0l-6-6h0a1.07,1.07,0,0,0-.28-.19l-.09,0L13.06,2H8.66a1,1,0,0,0,0,2ZM14,5.41,16.59,8H15a1,1,0,0,1-1-1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
120
123
|
/* @__PURE__ */ a("symbol", { id: "sad-solid", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M8.36,15.33a1,1,0,0,0-.13,1.4,1,1,0,0,0,1.41.13,3.76,3.76,0,0,1,4.72,0,1,1,0,0,0,.64.23,1,1,0,0,0,.64-1.76A5.81,5.81,0,0,0,8.36,15.33Zm.85-4.79a1,1,0,0,0,1.41,0,1,1,0,0,0,0-1.41,3.08,3.08,0,0,0-4.24,0,1,1,0,1,0,1.41,1.41A1,1,0,0,1,9.21,10.54ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20ZM17.62,9.13a3.08,3.08,0,0,0-4.24,0,1,1,0,0,0,1.41,1.41,1,1,0,0,1,1.42,0,1,1,0,0,0,1.41,0A1,1,0,0,0,17.62,9.13Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
121
124
|
/* @__PURE__ */ a("symbol", { id: "smile-beam-solid", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M14.36,14.23a3.76,3.76,0,0,1-4.72,0,1,1,0,0,0-1.28,1.54,5.68,5.68,0,0,0,7.28,0,1,1,0,1,0-1.28-1.54ZM9.21,10.54a1,1,0,0,0,1.41,0,1,1,0,0,0,0-1.41,3.08,3.08,0,0,0-4.24,0,1,1,0,1,0,1.41,1.41A1,1,0,0,1,9.21,10.54Zm8.41-1.41a3.08,3.08,0,0,0-4.24,0,1,1,0,0,0,1.41,1.41,1,1,0,0,1,1.42,0,1,1,0,0,0,1.41,0A1,1,0,0,0,17.62,9.13ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
122
125
|
/* @__PURE__ */ a("symbol", { id: "sad", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M8.36,15.33a1,1,0,0,0-.13,1.4,1,1,0,0,0,1.41.13,3.76,3.76,0,0,1,4.72,0,1,1,0,0,0,.64.23,1,1,0,0,0,.64-1.76A5.81,5.81,0,0,0,8.36,15.33Zm.85-4.79a1,1,0,0,0,1.41,0,1,1,0,0,0,0-1.41,3.08,3.08,0,0,0-4.24,0,1,1,0,1,0,1.41,1.41A1,1,0,0,1,9.21,10.54ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20ZM17.62,9.13a3.08,3.08,0,0,0-4.24,0,1,1,0,0,0,1.41,1.41,1,1,0,0,1,1.42,0,1,1,0,0,0,1.41,0A1,1,0,0,0,17.62,9.13Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
@@ -140,6 +143,7 @@ const s = "_root_576cf_2", n = {
|
|
|
140
143
|
/* @__PURE__ */ a("symbol", { id: "globe", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M21.41,8.64s0,0,0-.05a10,10,0,0,0-18.78,0s0,0,0,.05a9.86,9.86,0,0,0,0,6.72s0,0,0,.05a10,10,0,0,0,18.78,0s0,0,0-.05a9.86,9.86,0,0,0,0-6.72ZM4.26,14a7.82,7.82,0,0,1,0-4H6.12a16.73,16.73,0,0,0,0,4Zm.82,2h1.4a12.15,12.15,0,0,0,1,2.57A8,8,0,0,1,5.08,16Zm1.4-8H5.08A8,8,0,0,1,7.45,5.43,12.15,12.15,0,0,0,6.48,8ZM11,19.7A6.34,6.34,0,0,1,8.57,16H11ZM11,14H8.14a14.36,14.36,0,0,1,0-4H11Zm0-6H8.57A6.34,6.34,0,0,1,11,4.3Zm7.92,0h-1.4a12.15,12.15,0,0,0-1-2.57A8,8,0,0,1,18.92,8ZM13,4.3A6.34,6.34,0,0,1,15.43,8H13Zm0,15.4V16h2.43A6.34,6.34,0,0,1,13,19.7ZM15.86,14H13V10h2.86a14.36,14.36,0,0,1,0,4Zm.69,4.57a12.15,12.15,0,0,0,1-2.57h1.4A8,8,0,0,1,16.55,18.57ZM19.74,14H17.88A16.16,16.16,0,0,0,18,12a16.28,16.28,0,0,0-.12-2h1.86a7.82,7.82,0,0,1,0,4Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
141
144
|
/* @__PURE__ */ a("symbol", { id: "graduation-cap", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M21.49,10.19l-1-.55h0l-9-5-.11,0a1.06,1.06,0,0,0-.19-.06l-.19,0-.18,0a1.17,1.17,0,0,0-.2.06l-.11,0-9,5a1,1,0,0,0,0,1.74L4,12.76V17.5a3,3,0,0,0,3,3h8a3,3,0,0,0,3-3V12.76l2-1.12V14.5a1,1,0,0,0,2,0V11.06A1,1,0,0,0,21.49,10.19ZM16,17.5a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V13.87l4.51,2.5.15.06.09,0a1,1,0,0,0,.25,0h0a1,1,0,0,0,.25,0l.09,0a.47.47,0,0,0,.15-.06L16,13.87Zm-5-3.14L4.06,10.5,11,6.64l6.94,3.86Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
142
145
|
/* @__PURE__ */ a("symbol", { id: "envelope", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,4H5A3,3,0,0,0,2,7V17a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4Zm-.41,2-5.88,5.88a1,1,0,0,1-1.42,0L5.41,6ZM20,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V7.41l5.88,5.88a3,3,0,0,0,4.24,0L20,7.41Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
146
|
+
/* @__PURE__ */ a("symbol", { id: "envelope-star", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M13.64,9.74l-.29,1.73A1.55,1.55,0,0,0,14,13a1.46,1.46,0,0,0,1.58.09L17,12.28l1.44.79A1.46,1.46,0,0,0,20,13a1.55,1.55,0,0,0,.63-1.51l-.29-1.73,1.2-1.22a1.54,1.54,0,0,0-.85-2.6l-1.62-.24-.73-1.55a1.5,1.5,0,0,0-2.72,0l-.73,1.55-1.62.24a1.54,1.54,0,0,0-.85,2.6Zm1.83-2.13a1.51,1.51,0,0,0,1.14-.85L17,5.93l.39.83a1.55,1.55,0,0,0,1.14.86l1,.14-.73.74a1.57,1.57,0,0,0-.42,1.34l.16,1-.79-.43a1.48,1.48,0,0,0-1.44,0l-.79.43.16-1a1.54,1.54,0,0,0-.42-1.33l-.73-.75ZM21,15.26a1,1,0,0,0-1,1v3a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V9.67l5.88,5.88a2.94,2.94,0,0,0,2.1.88l.27,0a1,1,0,0,0,.91-1.08,1,1,0,0,0-1.09-.91.94.94,0,0,1-.77-.28L5.41,8.26H9a1,1,0,0,0,0-2H5a3,3,0,0,0-3,3v10a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3v-3A1,1,0,0,0,21,15.26Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
143
147
|
/* @__PURE__ */ a("symbol", { id: "equal-circle", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M15,13H9a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2Zm0-4H9a1,1,0,0,0,0,2h6a1,1,0,0,0,0-2ZM12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
144
148
|
/* @__PURE__ */ a("symbol", { id: "minus", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,11H5a1,1,0,0,0,0,2H19a1,1,0,0,0,0-2Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
145
149
|
/* @__PURE__ */ a("symbol", { id: "venus", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M19,9a7,7,0,1,0-8,6.92V18H10a1,1,0,0,0,0,2h1v1a1,1,0,0,0,2,0V20h1a1,1,0,0,0,0-2H13V15.92A7,7,0,0,0,19,9Zm-7,5a5,5,0,1,1,5-5A5,5,0,0,1,12,14Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
@@ -151,6 +155,7 @@ const s = "_root_576cf_2", n = {
|
|
|
151
155
|
/* @__PURE__ */ a("symbol", { id: "map-marker-alt", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M20.46,9.63A8.5,8.5,0,0,0,7.3,3.36,8.56,8.56,0,0,0,3.54,9.63,8.46,8.46,0,0,0,6,16.46l5.3,5.31a1,1,0,0,0,1.42,0L18,16.46A8.46,8.46,0,0,0,20.46,9.63ZM16.6,15.05,12,19.65l-4.6-4.6A6.49,6.49,0,0,1,5.53,9.83,6.57,6.57,0,0,1,8.42,5a6.47,6.47,0,0,1,7.16,0,6.57,6.57,0,0,1,2.89,4.81A6.49,6.49,0,0,1,16.6,15.05ZM12,6a4.5,4.5,0,1,0,4.5,4.5A4.51,4.51,0,0,0,12,6Zm0,7a2.5,2.5,0,1,1,2.5-2.5A2.5,2.5,0,0,1,12,13Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
152
156
|
/* @__PURE__ */ a("symbol", { id: "map-pin", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M16.37,12.79a1,1,0,0,0-.74,1.86C17.09,15.23,18,16.13,18,17c0,1.42-2.46,3-6,3s-6-1.58-6-3c0-.87.91-1.77,2.37-2.35a1,1,0,0,0-.74-1.86C5.36,13.69,4,15.26,4,17c0,2.8,3.51,5,8,5s8-2.2,8-5C20,15.26,18.64,13.69,16.37,12.79ZM11,9.86V17a1,1,0,0,0,2,0V9.86a4,4,0,1,0-2,0ZM12,4a2,2,0,1,1-2,2A2,2,0,0,1,12,4Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
153
157
|
/* @__PURE__ */ a("symbol", { id: "lock-alt", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,13a1,1,0,0,0-1,1v3a1,1,0,0,0,2,0V14A1,1,0,0,0,12,13Zm5-4V7A5,5,0,0,0,7,7V9a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V12A3,3,0,0,0,17,9ZM9,7a3,3,0,0,1,6,0V9H9Zm9,12a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H17a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
158
|
+
/* @__PURE__ */ a("symbol", { id: "unlock", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M17,9H9V7a3,3,0,0,1,5.12-2.13,3.08,3.08,0,0,1,.78,1.38,1,1,0,1,0,1.94-.5,5.09,5.09,0,0,0-1.31-2.29A5,5,0,0,0,7,7V9a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17a3,3,0,0,0,3-3V12A3,3,0,0,0,17,9Zm1,10a1,1,0,0,1-1,1H7a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H17a1,1,0,0,1,1,1Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
154
159
|
/* @__PURE__ */ a("symbol", { id: "at", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2a10,10,0,1,0,5,18.66,1,1,0,1,0-1-1.73A8,8,0,1,1,20,12v.75a1.75,1.75,0,0,1-3.5,0V8.5a1,1,0,0,0-1-1,1,1,0,0,0-1,.79A4.45,4.45,0,0,0,12,7.5,4.5,4.5,0,1,0,15.3,15,3.74,3.74,0,0,0,22,12.75V12A10,10,0,0,0,12,2Zm0,12.5A2.5,2.5,0,1,1,14.5,12,2.5,2.5,0,0,1,12,14.5Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
155
160
|
/* @__PURE__ */ a("symbol", { id: "user", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M15.71,12.71a6,6,0,1,0-7.42,0,10,10,0,0,0-6.22,8.18,1,1,0,0,0,2,.22,8,8,0,0,1,15.9,0,1,1,0,0,0,1,.89h.11a1,1,0,0,0,.88-1.1A10,10,0,0,0,15.71,12.71ZM12,12a4,4,0,1,1,4-4A4,4,0,0,1,12,12Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
|
156
161
|
/* @__PURE__ */ a("symbol", { id: "user-circle", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M12,2A10,10,0,0,0,4.65,18.76h0a10,10,0,0,0,14.7,0h0A10,10,0,0,0,12,2Zm0,18a8,8,0,0,1-5.55-2.25,6,6,0,0,1,11.1,0A8,8,0,0,1,12,20ZM10,10a2,2,0,1,1,2,2A2,2,0,0,1,10,10Zm8.91,6A8,8,0,0,0,15,12.62a4,4,0,1,0-6,0A8,8,0,0,0,5.09,16,7.92,7.92,0,0,1,4,12a8,8,0,0,1,16,0A7.92,7.92,0,0,1,18.91,16Z", xmlns: "http://www.w3.org/2000/svg" }) }),
|
package/dist/Search.js
CHANGED
|
@@ -2,70 +2,71 @@
|
|
|
2
2
|
import './Search.css';
|
|
3
3
|
import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
4
4
|
import { D as M } from "./downshift.esm-BtYj0L0Y.js";
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { CloseButton as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { c as
|
|
9
|
-
import { c as
|
|
10
|
-
import { t as
|
|
11
|
-
const
|
|
12
|
-
wrapper:
|
|
13
|
-
indicators:
|
|
5
|
+
import { forwardRef as pe, useState as _e, useCallback as de, useMemo as me, Fragment as he } from "react";
|
|
6
|
+
import { CloseButton as ue } from "./CloseButton.js";
|
|
7
|
+
import { Icon as be } from "./Icon.js";
|
|
8
|
+
import { c as fe } from "./index-B6iGEm-i.js";
|
|
9
|
+
import { c as ge } from "./create-event-rXDe5aCQ.js";
|
|
10
|
+
import { t as we } from "./throttle-BDBzFeFj.js";
|
|
11
|
+
const Ne = "_wrapper_5psb0_3", ve = "_indicators_5psb0_6", Re = "_root_5psb0_34", Se = "_transparent_5psb0_100", Ie = "_disabled_5psb0_144", xe = "_menu_5psb0_165", Ce = "_item_5psb0_198", $e = "_highlighted_5psb0_212", ke = "_selected_5psb0_215", ze = {
|
|
12
|
+
wrapper: Ne,
|
|
13
|
+
indicators: ve,
|
|
14
14
|
"dropdown-indicator": "_dropdown-indicator_5psb0_15",
|
|
15
15
|
"input-wrapper": "_input-wrapper_5psb0_28",
|
|
16
16
|
"icon-placement-right": "_icon-placement-right_5psb0_31",
|
|
17
|
-
root:
|
|
17
|
+
root: Re,
|
|
18
18
|
"icon-placement-left": "_icon-placement-left_5psb0_61",
|
|
19
19
|
"variant-danger": "_variant-danger_5psb0_91",
|
|
20
20
|
"variant-warning": "_variant-warning_5psb0_94",
|
|
21
21
|
"variant-success": "_variant-success_5psb0_97",
|
|
22
|
-
transparent:
|
|
22
|
+
transparent: Se,
|
|
23
23
|
"size-lg": "_size-lg_5psb0_105",
|
|
24
24
|
"size-md": "_size-md_5psb0_111",
|
|
25
25
|
"size-sm": "_size-sm_5psb0_117",
|
|
26
26
|
"icon-wrapper": "_icon-wrapper_5psb0_123",
|
|
27
|
-
disabled:
|
|
27
|
+
disabled: Ie,
|
|
28
28
|
"icon-placement-left-sm": "_icon-placement-left-sm_5psb0_147",
|
|
29
29
|
"icon-placement-left-md": "_icon-placement-left-md_5psb0_150",
|
|
30
30
|
"icon-placement-left-lg": "_icon-placement-left-lg_5psb0_153",
|
|
31
31
|
"icon-placement-right-sm": "_icon-placement-right-sm_5psb0_156",
|
|
32
32
|
"icon-placement-right-md": "_icon-placement-right-md_5psb0_159",
|
|
33
33
|
"icon-placement-right-lg": "_icon-placement-right-lg_5psb0_162",
|
|
34
|
-
menu:
|
|
34
|
+
menu: xe,
|
|
35
35
|
"menu-scroller": "_menu-scroller_5psb0_191",
|
|
36
|
-
item:
|
|
37
|
-
highlighted:
|
|
38
|
-
selected:
|
|
39
|
-
}, j = "", n =
|
|
36
|
+
item: Ce,
|
|
37
|
+
highlighted: $e,
|
|
38
|
+
selected: ke
|
|
39
|
+
}, j = "", n = fe(ze), De = M.default || M, Te = pe(
|
|
40
40
|
({
|
|
41
41
|
autoComplete: O = "off",
|
|
42
42
|
autoFocus: V,
|
|
43
43
|
className: B,
|
|
44
44
|
dataTestId: G,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
defaultHighlightedIndex: H,
|
|
46
|
+
disabled: P,
|
|
47
|
+
groupsEnabled: Y,
|
|
47
48
|
icon: d,
|
|
48
49
|
iconPlacement: m = "left",
|
|
49
|
-
id:
|
|
50
|
+
id: q,
|
|
50
51
|
itemToString: s,
|
|
51
52
|
minChars: h = 3,
|
|
52
53
|
name: R,
|
|
53
|
-
onBlur:
|
|
54
|
+
onBlur: A,
|
|
54
55
|
onChange: u,
|
|
55
|
-
onClick:
|
|
56
|
+
onClick: J,
|
|
56
57
|
onFocus: b,
|
|
57
|
-
placeholder:
|
|
58
|
-
renderGroupHeader:
|
|
58
|
+
placeholder: K = "Search…",
|
|
59
|
+
renderGroupHeader: L,
|
|
59
60
|
renderItem: S,
|
|
60
61
|
search: I,
|
|
61
62
|
size: a = "lg",
|
|
62
63
|
throttle: x = 500,
|
|
63
|
-
transparent:
|
|
64
|
+
transparent: Q,
|
|
64
65
|
value: p = j,
|
|
65
66
|
variant: f,
|
|
66
67
|
...g
|
|
67
|
-
},
|
|
68
|
-
const
|
|
68
|
+
}, U) => {
|
|
69
|
+
const W = p ? s(p) : j, [C, r] = _e([]), $ = de(
|
|
69
70
|
async (e) => {
|
|
70
71
|
if (h === 0 || (e == null ? void 0 : e.length) >= h) {
|
|
71
72
|
const l = await I(e);
|
|
@@ -74,19 +75,20 @@ const we = "_wrapper_5psb0_3", Ne = "_indicators_5psb0_6", ve = "_root_5psb0_34"
|
|
|
74
75
|
r([]);
|
|
75
76
|
},
|
|
76
77
|
[h, I]
|
|
77
|
-
), k =
|
|
78
|
-
() =>
|
|
78
|
+
), k = me(
|
|
79
|
+
() => we($, x, !1),
|
|
79
80
|
[$, x]
|
|
80
81
|
), w = (e) => {
|
|
81
|
-
const l =
|
|
82
|
+
const l = ge({ name: R, value: e });
|
|
82
83
|
u == null || u(e, l);
|
|
83
84
|
}, z = (e) => {
|
|
84
85
|
e ? w(e) : (w(), r([]));
|
|
85
86
|
};
|
|
86
87
|
return /* @__PURE__ */ t(
|
|
87
|
-
|
|
88
|
+
De,
|
|
88
89
|
{
|
|
89
|
-
|
|
90
|
+
defaultHighlightedIndex: H,
|
|
91
|
+
initialInputValue: W,
|
|
90
92
|
itemToString: (e) => s(e) || "",
|
|
91
93
|
onInputValueChange: k,
|
|
92
94
|
onOuterClick: () => {
|
|
@@ -99,36 +101,36 @@ const we = "_wrapper_5psb0_3", Ne = "_indicators_5psb0_6", ve = "_root_5psb0_34"
|
|
|
99
101
|
clearSelection: e,
|
|
100
102
|
getInputProps: l,
|
|
101
103
|
getItemProps: D,
|
|
102
|
-
getMenuProps:
|
|
103
|
-
getRootProps:
|
|
104
|
-
highlightedIndex:
|
|
105
|
-
inputValue:
|
|
104
|
+
getMenuProps: X,
|
|
105
|
+
getRootProps: Z,
|
|
106
|
+
highlightedIndex: F,
|
|
107
|
+
inputValue: ee,
|
|
106
108
|
isOpen: T,
|
|
107
109
|
selectedItem: _,
|
|
108
|
-
toggleMenu:
|
|
110
|
+
toggleMenu: te
|
|
109
111
|
}) => {
|
|
110
|
-
const
|
|
112
|
+
const ne = () => {
|
|
111
113
|
r([]), w(), e();
|
|
112
|
-
},
|
|
113
|
-
b == null || b(i), k(""),
|
|
114
|
-
},
|
|
114
|
+
}, se = T && C.length > 0, ie = /* @__PURE__ */ t("div", { className: n("dropdown-indicator"), children: /* @__PURE__ */ t(ue, { animatePresence: !0, onClick: ne, title: "Clear" }) }), ce = (i) => {
|
|
115
|
+
b == null || b(i), k(""), te();
|
|
116
|
+
}, ae = Z(g, { suppressRefError: !0 }), re = l({
|
|
115
117
|
autoComplete: O,
|
|
116
118
|
autoFocus: V,
|
|
117
119
|
"data-testid": G,
|
|
118
|
-
disabled:
|
|
119
|
-
id:
|
|
120
|
+
disabled: P,
|
|
121
|
+
id: q,
|
|
120
122
|
name: R,
|
|
121
|
-
onBlur:
|
|
122
|
-
onClick:
|
|
123
|
-
onFocus:
|
|
124
|
-
placeholder:
|
|
125
|
-
ref:
|
|
123
|
+
onBlur: A,
|
|
124
|
+
onClick: J,
|
|
125
|
+
onFocus: ce,
|
|
126
|
+
placeholder: K,
|
|
127
|
+
ref: U,
|
|
126
128
|
size: a,
|
|
127
129
|
tabIndex: 0,
|
|
128
130
|
variant: T ? "focused" : f,
|
|
129
131
|
...g
|
|
130
132
|
});
|
|
131
|
-
return /* @__PURE__ */ v("div", { ...
|
|
133
|
+
return /* @__PURE__ */ v("div", { ...ae, className: n("wrapper", "field-input"), children: [
|
|
132
134
|
/* @__PURE__ */ v("div", { className: n("input-wrapper"), children: [
|
|
133
135
|
/* @__PURE__ */ t(
|
|
134
136
|
"input",
|
|
@@ -137,11 +139,11 @@ const we = "_wrapper_5psb0_3", Ne = "_indicators_5psb0_6", ve = "_root_5psb0_34"
|
|
|
137
139
|
"root",
|
|
138
140
|
`size-${a}`,
|
|
139
141
|
f && `variant-${f}`,
|
|
140
|
-
|
|
142
|
+
Q && "transparent",
|
|
141
143
|
d && `icon-placement-${m}`,
|
|
142
144
|
B
|
|
143
145
|
),
|
|
144
|
-
...
|
|
146
|
+
...re
|
|
145
147
|
}
|
|
146
148
|
),
|
|
147
149
|
d ? /* @__PURE__ */ t(
|
|
@@ -152,28 +154,28 @@ const we = "_wrapper_5psb0_3", Ne = "_indicators_5psb0_6", ve = "_root_5psb0_34"
|
|
|
152
154
|
`icon-placement-${m}`,
|
|
153
155
|
`icon-placement-${m}-${a}`
|
|
154
156
|
),
|
|
155
|
-
children: /* @__PURE__ */ t(
|
|
157
|
+
children: /* @__PURE__ */ t(be, { ...d.props, size: a })
|
|
156
158
|
}
|
|
157
159
|
) : null,
|
|
158
|
-
/* @__PURE__ */ t("div", { className: n("indicators", `size-${a}`), children:
|
|
160
|
+
/* @__PURE__ */ t("div", { className: n("indicators", `size-${a}`), children: ee ? ie : null })
|
|
159
161
|
] }),
|
|
160
|
-
|
|
162
|
+
se ? /* @__PURE__ */ t("div", { className: n("menu"), children: /* @__PURE__ */ t("ul", { className: n("menu-scroller"), ...X(), children: C.reduce(
|
|
161
163
|
(i, c, N) => {
|
|
162
|
-
const y = i.itemIndex++, E =
|
|
163
|
-
if (
|
|
164
|
+
const y = i.itemIndex++, E = F === y;
|
|
165
|
+
if (Y)
|
|
164
166
|
i.itemsToRender.push(
|
|
165
|
-
/* @__PURE__ */ v(
|
|
166
|
-
|
|
167
|
+
/* @__PURE__ */ v(he, { children: [
|
|
168
|
+
L(c),
|
|
167
169
|
c.options ? c.options.map(
|
|
168
|
-
(o,
|
|
169
|
-
const
|
|
170
|
+
(o, le) => {
|
|
171
|
+
const oe = _ && s(_) === s(o);
|
|
170
172
|
return /* @__PURE__ */ t(
|
|
171
173
|
"li",
|
|
172
174
|
{
|
|
173
175
|
className: n(
|
|
174
176
|
"item",
|
|
175
177
|
E && "highlighted",
|
|
176
|
-
|
|
178
|
+
oe && "selected"
|
|
177
179
|
),
|
|
178
180
|
...D({
|
|
179
181
|
index: y,
|
|
@@ -181,7 +183,7 @@ const we = "_wrapper_5psb0_3", Ne = "_indicators_5psb0_6", ve = "_root_5psb0_34"
|
|
|
181
183
|
}),
|
|
182
184
|
children: S(o)
|
|
183
185
|
},
|
|
184
|
-
|
|
186
|
+
le
|
|
185
187
|
);
|
|
186
188
|
}
|
|
187
189
|
) : null
|
|
@@ -218,8 +220,8 @@ const we = "_wrapper_5psb0_3", Ne = "_indicators_5psb0_6", ve = "_root_5psb0_34"
|
|
|
218
220
|
);
|
|
219
221
|
}
|
|
220
222
|
);
|
|
221
|
-
|
|
223
|
+
Te.displayName = "Search";
|
|
222
224
|
export {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
+
Te as Search,
|
|
226
|
+
ze as searchClasses
|
|
225
227
|
};
|