@snmt-react-ui/async-select 1.5.0 → 1.5.2
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/async-select.js +282 -282
- package/package.json +3 -3
package/dist/async-select.js
CHANGED
|
@@ -56,15 +56,15 @@ const R1 = ({
|
|
|
56
56
|
E(() => {
|
|
57
57
|
s(i), k(o);
|
|
58
58
|
}, [i, o]);
|
|
59
|
-
const { theme:
|
|
59
|
+
const { theme: h } = o1(h1);
|
|
60
60
|
return /* @__PURE__ */ t(
|
|
61
61
|
M1,
|
|
62
62
|
{
|
|
63
|
-
className: `snmt-checkbox snmt-checkbox-${
|
|
63
|
+
className: `snmt-checkbox snmt-checkbox-${h}`,
|
|
64
64
|
checked: g,
|
|
65
65
|
indeterminate: p,
|
|
66
|
-
onChange: (
|
|
67
|
-
w && g || (k(!1), s(
|
|
66
|
+
onChange: (n) => {
|
|
67
|
+
w && g || (k(!1), s(n.target.checked), l && l(n));
|
|
68
68
|
},
|
|
69
69
|
disabled: r,
|
|
70
70
|
children: e
|
|
@@ -3064,7 +3064,7 @@ const H1 = ({
|
|
|
3064
3064
|
)
|
|
3065
3065
|
] }) })
|
|
3066
3066
|
}
|
|
3067
|
-
),
|
|
3067
|
+
), P = ({
|
|
3068
3068
|
name: i,
|
|
3069
3069
|
width: o,
|
|
3070
3070
|
height: e,
|
|
@@ -3073,253 +3073,253 @@ const H1 = ({
|
|
|
3073
3073
|
disabled: w = !1,
|
|
3074
3074
|
onClick: g
|
|
3075
3075
|
}) => {
|
|
3076
|
-
const [s, p] = u(r), { theme: k } = o1(c1),
|
|
3076
|
+
const [s, p] = u(r), { theme: k } = o1(c1), h = w ? k && k === "dark" ? d.GREY_LIGHT_4 : d.GREY_DARK_1 : l, n = w ? void 0 : g;
|
|
3077
3077
|
return E(() => {
|
|
3078
3078
|
if (r) {
|
|
3079
|
-
|
|
3079
|
+
n && !w && p(`${r} clickable`);
|
|
3080
3080
|
return;
|
|
3081
3081
|
}
|
|
3082
|
-
|
|
3083
|
-
}, [
|
|
3082
|
+
n && !w && p("clickable");
|
|
3083
|
+
}, [n, r, w]), /* @__PURE__ */ t(I, { children: (() => {
|
|
3084
3084
|
switch (i) {
|
|
3085
3085
|
case "nextIcon":
|
|
3086
|
-
return u2({ width: o, height: e, color:
|
|
3086
|
+
return u2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3087
3087
|
case "prevIcon":
|
|
3088
|
-
return v2({ width: o, height: e, color:
|
|
3088
|
+
return v2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3089
3089
|
case "arrowUp":
|
|
3090
|
-
return H1({ width: o, height: e, color:
|
|
3090
|
+
return H1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3091
3091
|
case "arrowDown":
|
|
3092
|
-
return V1({ width: o, height: e, color:
|
|
3092
|
+
return V1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3093
3093
|
case "info":
|
|
3094
|
-
return E1({ width: o, height: e, color:
|
|
3094
|
+
return E1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3095
3095
|
case "arrowRight":
|
|
3096
|
-
return Z1({ width: o, height: e, color:
|
|
3096
|
+
return Z1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3097
3097
|
case "calendar":
|
|
3098
|
-
return W1({ width: o, height: e, color:
|
|
3098
|
+
return W1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3099
3099
|
case "ok":
|
|
3100
|
-
return I1({ width: o, height: e, color:
|
|
3100
|
+
return I1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3101
3101
|
case "cancel":
|
|
3102
|
-
return B1({ width: o, height: e, color:
|
|
3102
|
+
return B1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3103
3103
|
case "add":
|
|
3104
|
-
return A1({ width: o, height: e, color:
|
|
3104
|
+
return A1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3105
3105
|
case "list":
|
|
3106
|
-
return G1({ width: o, height: e, color:
|
|
3106
|
+
return G1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3107
3107
|
case "dragAndDrop":
|
|
3108
|
-
return D1({ width: o, height: e, color:
|
|
3108
|
+
return D1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3109
3109
|
case "filter":
|
|
3110
|
-
return j1({ width: o, height: e, color:
|
|
3110
|
+
return j1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3111
3111
|
case "attention":
|
|
3112
|
-
return T1({ width: o, height: e, color:
|
|
3112
|
+
return T1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3113
3113
|
case "plus":
|
|
3114
|
-
return y1({ width: o, height: e, color:
|
|
3114
|
+
return y1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3115
3115
|
case "time":
|
|
3116
|
-
return Y1({ width: o, height: e, color:
|
|
3116
|
+
return Y1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3117
3117
|
case "arrowDownLong":
|
|
3118
3118
|
return K1({
|
|
3119
3119
|
width: o,
|
|
3120
3120
|
height: e,
|
|
3121
|
-
color:
|
|
3121
|
+
color: h,
|
|
3122
3122
|
className: s,
|
|
3123
|
-
onClick:
|
|
3123
|
+
onClick: n
|
|
3124
3124
|
});
|
|
3125
3125
|
case "users":
|
|
3126
|
-
return O1({ width: o, height: e, color:
|
|
3126
|
+
return O1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3127
3127
|
case "mySkillsMatrix":
|
|
3128
3128
|
return b1({
|
|
3129
3129
|
width: o,
|
|
3130
3130
|
height: e,
|
|
3131
|
-
color:
|
|
3131
|
+
color: h,
|
|
3132
3132
|
className: s,
|
|
3133
|
-
onClick:
|
|
3133
|
+
onClick: n
|
|
3134
3134
|
});
|
|
3135
3135
|
case "skills":
|
|
3136
|
-
return F1({ width: o, height: e, color:
|
|
3136
|
+
return F1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3137
3137
|
case "skillsMatrices":
|
|
3138
3138
|
return S1({
|
|
3139
3139
|
width: o,
|
|
3140
3140
|
height: e,
|
|
3141
|
-
color:
|
|
3141
|
+
color: h,
|
|
3142
3142
|
className: s,
|
|
3143
|
-
onClick:
|
|
3143
|
+
onClick: n
|
|
3144
3144
|
});
|
|
3145
3145
|
case "history":
|
|
3146
|
-
return U1({ width: o, height: e, color:
|
|
3146
|
+
return U1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3147
3147
|
case "logOut":
|
|
3148
|
-
return P1({ width: o, height: e, color:
|
|
3148
|
+
return P1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3149
3149
|
case "settings":
|
|
3150
|
-
return $1({ width: o, height: e, color:
|
|
3150
|
+
return $1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3151
3151
|
case "addSkill":
|
|
3152
|
-
return z1({ width: o, height: e, color:
|
|
3152
|
+
return z1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3153
3153
|
case "conversation":
|
|
3154
|
-
return q1({ width: o, height: e, color:
|
|
3154
|
+
return q1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3155
3155
|
case "trash":
|
|
3156
|
-
return J1({ width: o, height: e, color:
|
|
3156
|
+
return J1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3157
3157
|
case "settings4":
|
|
3158
|
-
return Q1({ width: o, height: e, color:
|
|
3158
|
+
return Q1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3159
3159
|
case "edit2":
|
|
3160
|
-
return X1({ width: o, height: e, color:
|
|
3160
|
+
return X1({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3161
3161
|
case "notifications":
|
|
3162
3162
|
return e2({
|
|
3163
3163
|
width: o,
|
|
3164
3164
|
height: e,
|
|
3165
|
-
color:
|
|
3165
|
+
color: h,
|
|
3166
3166
|
className: s,
|
|
3167
|
-
onClick:
|
|
3167
|
+
onClick: n
|
|
3168
3168
|
});
|
|
3169
3169
|
case "success":
|
|
3170
|
-
return o2({ width: o, height: e, color:
|
|
3170
|
+
return o2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3171
3171
|
case "attentionSmall":
|
|
3172
3172
|
return i2({
|
|
3173
3173
|
width: o,
|
|
3174
3174
|
height: e,
|
|
3175
|
-
color:
|
|
3175
|
+
color: h,
|
|
3176
3176
|
className: s,
|
|
3177
|
-
onClick:
|
|
3177
|
+
onClick: n
|
|
3178
3178
|
});
|
|
3179
3179
|
case "errorSmall":
|
|
3180
|
-
return t2({ width: o, height: e, color:
|
|
3180
|
+
return t2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3181
3181
|
case "infoMedium":
|
|
3182
|
-
return l2({ width: o, height: e, color:
|
|
3182
|
+
return l2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3183
3183
|
case "attentionMedium":
|
|
3184
3184
|
return r2({
|
|
3185
3185
|
width: o,
|
|
3186
3186
|
height: e,
|
|
3187
|
-
color:
|
|
3187
|
+
color: h,
|
|
3188
3188
|
className: s,
|
|
3189
|
-
onClick:
|
|
3189
|
+
onClick: n
|
|
3190
3190
|
});
|
|
3191
3191
|
case "errorMedium":
|
|
3192
|
-
return s2({ width: o, height: e, color:
|
|
3192
|
+
return s2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3193
3193
|
case "faviconSkills":
|
|
3194
3194
|
return C2({
|
|
3195
3195
|
width: o,
|
|
3196
3196
|
height: e,
|
|
3197
|
-
color:
|
|
3197
|
+
color: h,
|
|
3198
3198
|
className: s,
|
|
3199
|
-
onClick:
|
|
3199
|
+
onClick: n
|
|
3200
3200
|
});
|
|
3201
3201
|
case "visibilityIcon":
|
|
3202
3202
|
return n2({
|
|
3203
3203
|
width: o,
|
|
3204
3204
|
height: e,
|
|
3205
|
-
color:
|
|
3205
|
+
color: h,
|
|
3206
3206
|
className: s,
|
|
3207
|
-
onClick:
|
|
3207
|
+
onClick: n
|
|
3208
3208
|
});
|
|
3209
3209
|
case "visibilityOffIcon":
|
|
3210
3210
|
return h2({
|
|
3211
3211
|
width: o,
|
|
3212
3212
|
height: e,
|
|
3213
|
-
color:
|
|
3213
|
+
color: h,
|
|
3214
3214
|
className: s,
|
|
3215
|
-
onClick:
|
|
3215
|
+
onClick: n
|
|
3216
3216
|
});
|
|
3217
3217
|
case "selectArrowIcon":
|
|
3218
3218
|
return c2({
|
|
3219
3219
|
width: o,
|
|
3220
3220
|
height: e,
|
|
3221
|
-
color:
|
|
3221
|
+
color: h,
|
|
3222
3222
|
className: s,
|
|
3223
|
-
onClick:
|
|
3223
|
+
onClick: n
|
|
3224
3224
|
});
|
|
3225
3225
|
case "expandArrowIcon":
|
|
3226
3226
|
return a2({
|
|
3227
3227
|
width: o,
|
|
3228
3228
|
height: e,
|
|
3229
|
-
color:
|
|
3229
|
+
color: h,
|
|
3230
3230
|
className: s,
|
|
3231
|
-
onClick:
|
|
3231
|
+
onClick: n
|
|
3232
3232
|
});
|
|
3233
3233
|
case "expandActiveArrowIcon":
|
|
3234
3234
|
return d2({
|
|
3235
3235
|
width: o,
|
|
3236
3236
|
height: e,
|
|
3237
|
-
color:
|
|
3237
|
+
color: h,
|
|
3238
3238
|
className: s,
|
|
3239
|
-
onClick:
|
|
3239
|
+
onClick: n
|
|
3240
3240
|
});
|
|
3241
3241
|
case "camera":
|
|
3242
|
-
return w2({ width: o, height: e, color:
|
|
3242
|
+
return w2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3243
3243
|
case "sortUp":
|
|
3244
|
-
return k2({ width: o, height: e, color:
|
|
3244
|
+
return k2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3245
3245
|
case "sortDown":
|
|
3246
|
-
return g2({ width: o, height: e, color:
|
|
3246
|
+
return g2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3247
3247
|
case "logOut2":
|
|
3248
|
-
return p2({ width: o, height: e, color:
|
|
3248
|
+
return p2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3249
3249
|
case "search":
|
|
3250
|
-
return L2({ width: o, height: e, color:
|
|
3250
|
+
return L2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3251
3251
|
case "handRock":
|
|
3252
|
-
return m2({ width: o, height: e, color:
|
|
3252
|
+
return m2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3253
3253
|
case "arrowUpFilled":
|
|
3254
|
-
return f2({ width: o, height: e, color:
|
|
3254
|
+
return f2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3255
3255
|
case "arrowDownFilled":
|
|
3256
|
-
return N2({ width: o, height: e, color:
|
|
3256
|
+
return N2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3257
3257
|
case "link":
|
|
3258
|
-
return M2({ width: o, height: e, color:
|
|
3258
|
+
return M2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3259
3259
|
case "telegram":
|
|
3260
|
-
return _2({ width: o, height: e, color:
|
|
3260
|
+
return _2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3261
3261
|
case "mail":
|
|
3262
|
-
return H2({ width: o, height: e, color:
|
|
3262
|
+
return H2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3263
3263
|
case "github":
|
|
3264
|
-
return x2({ width: o, height: e, color:
|
|
3264
|
+
return x2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3265
3265
|
case "linkedIn":
|
|
3266
|
-
return R2({ width: o, height: e, color:
|
|
3266
|
+
return R2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3267
3267
|
case "emptyStateIcon":
|
|
3268
|
-
return V2({ width: o, height: e, color:
|
|
3268
|
+
return V2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3269
3269
|
case "filtersIcon":
|
|
3270
|
-
return E2({ width: o, height: e, color:
|
|
3270
|
+
return E2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3271
3271
|
case "dotMenuIcon":
|
|
3272
|
-
return Z2({ width: o, height: e, color:
|
|
3272
|
+
return Z2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3273
3273
|
case "plusCircle":
|
|
3274
|
-
return W2({ width: o, height: e, color:
|
|
3274
|
+
return W2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3275
3275
|
case "warning":
|
|
3276
|
-
return I2({ width: o, height: e, color:
|
|
3276
|
+
return I2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3277
3277
|
case "back":
|
|
3278
|
-
return B2({ width: o, height: e, color:
|
|
3278
|
+
return B2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3279
3279
|
case "bell":
|
|
3280
|
-
return A2({ width: o, height: e, color:
|
|
3280
|
+
return A2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3281
3281
|
case "contract":
|
|
3282
|
-
return D2({ width: o, height: e, color:
|
|
3282
|
+
return D2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3283
3283
|
case "trash2":
|
|
3284
|
-
return G2({ width: o, height: e, color:
|
|
3284
|
+
return G2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3285
3285
|
case "manager":
|
|
3286
|
-
return j2({ width: o, height: e, color:
|
|
3286
|
+
return j2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3287
3287
|
case "resourceManager":
|
|
3288
|
-
return T2({ width: o, height: e, color:
|
|
3288
|
+
return T2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3289
3289
|
case "settings2":
|
|
3290
|
-
return y2({ width: o, height: e, color:
|
|
3290
|
+
return y2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3291
3291
|
case "image":
|
|
3292
|
-
return Y2({ width: o, height: e, color:
|
|
3292
|
+
return Y2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3293
3293
|
case "upload":
|
|
3294
|
-
return K2({ width: o, height: e, color:
|
|
3294
|
+
return K2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3295
3295
|
case "edit":
|
|
3296
|
-
return O2({ width: o, height: e, color:
|
|
3296
|
+
return O2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3297
3297
|
case "location":
|
|
3298
|
-
return b2({ width: o, height: e, color:
|
|
3298
|
+
return b2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3299
3299
|
case "plus2":
|
|
3300
|
-
return F2({ width: o, height: e, color:
|
|
3300
|
+
return F2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3301
3301
|
case "search2":
|
|
3302
|
-
return S2({ width: o, height: e, color:
|
|
3302
|
+
return S2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3303
3303
|
case "fastArrowLeft":
|
|
3304
|
-
return U2({ width: o, height: e, color:
|
|
3304
|
+
return U2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3305
3305
|
case "fastArrowRight":
|
|
3306
|
-
return P2({ width: o, height: e, color:
|
|
3306
|
+
return P2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3307
3307
|
case "crossInCircle":
|
|
3308
|
-
return $2({ width: o, height: e, color:
|
|
3308
|
+
return $2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3309
3309
|
case "arrowUp2":
|
|
3310
|
-
return q2({ width: o, height: e, color:
|
|
3310
|
+
return q2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3311
3311
|
case "arrowDown2":
|
|
3312
|
-
return z2({ width: o, height: e, color:
|
|
3312
|
+
return z2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3313
3313
|
case "filledArrowLeft":
|
|
3314
|
-
return J2({ width: o, height: e, color:
|
|
3314
|
+
return J2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3315
3315
|
case "filledArrowRight":
|
|
3316
|
-
return Q2({ width: o, height: e, color:
|
|
3316
|
+
return Q2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3317
3317
|
case "burgerMenu":
|
|
3318
|
-
return X2({ width: o, height: e, color:
|
|
3318
|
+
return X2({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3319
3319
|
case "signOut":
|
|
3320
|
-
return e5({ width: o, height: e, color:
|
|
3320
|
+
return e5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3321
3321
|
case "refresh":
|
|
3322
|
-
return o5({ width: o, height: e, color:
|
|
3322
|
+
return o5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
3323
3323
|
default:
|
|
3324
3324
|
return /* @__PURE__ */ t(I, { children: "No Icon provided" });
|
|
3325
3325
|
}
|
|
@@ -6365,253 +6365,253 @@ const s5 = ({
|
|
|
6365
6365
|
disabled: w = !1,
|
|
6366
6366
|
onClick: g
|
|
6367
6367
|
}) => {
|
|
6368
|
-
const [s, p] = u(r), { theme: k } = o1(a1),
|
|
6368
|
+
const [s, p] = u(r), { theme: k } = o1(a1), h = w ? k && k === "dark" ? C.GREY_LIGHT_4 : C.GREY_DARK_1 : l, n = w ? void 0 : g;
|
|
6369
6369
|
return E(() => {
|
|
6370
6370
|
if (r) {
|
|
6371
|
-
|
|
6371
|
+
n && !w && p(`${r} clickable`);
|
|
6372
6372
|
return;
|
|
6373
6373
|
}
|
|
6374
|
-
|
|
6375
|
-
}, [
|
|
6374
|
+
n && !w && p("clickable");
|
|
6375
|
+
}, [n, r, w]), /* @__PURE__ */ t(I, { children: (() => {
|
|
6376
6376
|
switch (i) {
|
|
6377
6377
|
case "nextIcon":
|
|
6378
|
-
return Q5({ width: o, height: e, color:
|
|
6378
|
+
return Q5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6379
6379
|
case "prevIcon":
|
|
6380
|
-
return X5({ width: o, height: e, color:
|
|
6380
|
+
return X5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6381
6381
|
case "arrowUp":
|
|
6382
|
-
return s5({ width: o, height: e, color:
|
|
6382
|
+
return s5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6383
6383
|
case "arrowDown":
|
|
6384
|
-
return n5({ width: o, height: e, color:
|
|
6384
|
+
return n5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6385
6385
|
case "info":
|
|
6386
|
-
return h5({ width: o, height: e, color:
|
|
6386
|
+
return h5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6387
6387
|
case "arrowRight":
|
|
6388
|
-
return c5({ width: o, height: e, color:
|
|
6388
|
+
return c5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6389
6389
|
case "calendar":
|
|
6390
|
-
return a5({ width: o, height: e, color:
|
|
6390
|
+
return a5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6391
6391
|
case "ok":
|
|
6392
|
-
return d5({ width: o, height: e, color:
|
|
6392
|
+
return d5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6393
6393
|
case "cancel":
|
|
6394
|
-
return C5({ width: o, height: e, color:
|
|
6394
|
+
return C5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6395
6395
|
case "add":
|
|
6396
|
-
return w5({ width: o, height: e, color:
|
|
6396
|
+
return w5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6397
6397
|
case "list":
|
|
6398
|
-
return k5({ width: o, height: e, color:
|
|
6398
|
+
return k5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6399
6399
|
case "dragAndDrop":
|
|
6400
|
-
return g5({ width: o, height: e, color:
|
|
6400
|
+
return g5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6401
6401
|
case "filter":
|
|
6402
|
-
return p5({ width: o, height: e, color:
|
|
6402
|
+
return p5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6403
6403
|
case "attention":
|
|
6404
|
-
return L5({ width: o, height: e, color:
|
|
6404
|
+
return L5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6405
6405
|
case "plus":
|
|
6406
|
-
return m5({ width: o, height: e, color:
|
|
6406
|
+
return m5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6407
6407
|
case "time":
|
|
6408
|
-
return u5({ width: o, height: e, color:
|
|
6408
|
+
return u5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6409
6409
|
case "arrowDownLong":
|
|
6410
6410
|
return v5({
|
|
6411
6411
|
width: o,
|
|
6412
6412
|
height: e,
|
|
6413
|
-
color:
|
|
6413
|
+
color: h,
|
|
6414
6414
|
className: s,
|
|
6415
|
-
onClick:
|
|
6415
|
+
onClick: n
|
|
6416
6416
|
});
|
|
6417
6417
|
case "users":
|
|
6418
|
-
return N5({ width: o, height: e, color:
|
|
6418
|
+
return N5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6419
6419
|
case "mySkillsMatrix":
|
|
6420
6420
|
return f5({
|
|
6421
6421
|
width: o,
|
|
6422
6422
|
height: e,
|
|
6423
|
-
color:
|
|
6423
|
+
color: h,
|
|
6424
6424
|
className: s,
|
|
6425
|
-
onClick:
|
|
6425
|
+
onClick: n
|
|
6426
6426
|
});
|
|
6427
6427
|
case "skills":
|
|
6428
|
-
return M5({ width: o, height: e, color:
|
|
6428
|
+
return M5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6429
6429
|
case "skillsMatrices":
|
|
6430
6430
|
return x5({
|
|
6431
6431
|
width: o,
|
|
6432
6432
|
height: e,
|
|
6433
|
-
color:
|
|
6433
|
+
color: h,
|
|
6434
6434
|
className: s,
|
|
6435
|
-
onClick:
|
|
6435
|
+
onClick: n
|
|
6436
6436
|
});
|
|
6437
6437
|
case "history":
|
|
6438
|
-
return _5({ width: o, height: e, color:
|
|
6438
|
+
return _5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6439
6439
|
case "logOut":
|
|
6440
|
-
return R5({ width: o, height: e, color:
|
|
6440
|
+
return R5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6441
6441
|
case "settings":
|
|
6442
|
-
return H5({ width: o, height: e, color:
|
|
6442
|
+
return H5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6443
6443
|
case "addSkill":
|
|
6444
|
-
return V5({ width: o, height: e, color:
|
|
6444
|
+
return V5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6445
6445
|
case "conversation":
|
|
6446
|
-
return E5({ width: o, height: e, color:
|
|
6446
|
+
return E5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6447
6447
|
case "trash":
|
|
6448
|
-
return Z5({ width: o, height: e, color:
|
|
6448
|
+
return Z5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6449
6449
|
case "settings4":
|
|
6450
|
-
return W5({ width: o, height: e, color:
|
|
6450
|
+
return W5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6451
6451
|
case "edit2":
|
|
6452
|
-
return I5({ width: o, height: e, color:
|
|
6452
|
+
return I5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6453
6453
|
case "notifications":
|
|
6454
6454
|
return B5({
|
|
6455
6455
|
width: o,
|
|
6456
6456
|
height: e,
|
|
6457
|
-
color:
|
|
6457
|
+
color: h,
|
|
6458
6458
|
className: s,
|
|
6459
|
-
onClick:
|
|
6459
|
+
onClick: n
|
|
6460
6460
|
});
|
|
6461
6461
|
case "success":
|
|
6462
|
-
return A5({ width: o, height: e, color:
|
|
6462
|
+
return A5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6463
6463
|
case "attentionSmall":
|
|
6464
6464
|
return G5({
|
|
6465
6465
|
width: o,
|
|
6466
6466
|
height: e,
|
|
6467
|
-
color:
|
|
6467
|
+
color: h,
|
|
6468
6468
|
className: s,
|
|
6469
|
-
onClick:
|
|
6469
|
+
onClick: n
|
|
6470
6470
|
});
|
|
6471
6471
|
case "errorSmall":
|
|
6472
|
-
return D5({ width: o, height: e, color:
|
|
6472
|
+
return D5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6473
6473
|
case "infoMedium":
|
|
6474
|
-
return j5({ width: o, height: e, color:
|
|
6474
|
+
return j5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6475
6475
|
case "attentionMedium":
|
|
6476
6476
|
return T5({
|
|
6477
6477
|
width: o,
|
|
6478
6478
|
height: e,
|
|
6479
|
-
color:
|
|
6479
|
+
color: h,
|
|
6480
6480
|
className: s,
|
|
6481
|
-
onClick:
|
|
6481
|
+
onClick: n
|
|
6482
6482
|
});
|
|
6483
6483
|
case "errorMedium":
|
|
6484
|
-
return y5({ width: o, height: e, color:
|
|
6484
|
+
return y5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6485
6485
|
case "faviconSkills":
|
|
6486
6486
|
return S5({
|
|
6487
6487
|
width: o,
|
|
6488
6488
|
height: e,
|
|
6489
|
-
color:
|
|
6489
|
+
color: h,
|
|
6490
6490
|
className: s,
|
|
6491
|
-
onClick:
|
|
6491
|
+
onClick: n
|
|
6492
6492
|
});
|
|
6493
6493
|
case "visibilityIcon":
|
|
6494
6494
|
return Y5({
|
|
6495
6495
|
width: o,
|
|
6496
6496
|
height: e,
|
|
6497
|
-
color:
|
|
6497
|
+
color: h,
|
|
6498
6498
|
className: s,
|
|
6499
|
-
onClick:
|
|
6499
|
+
onClick: n
|
|
6500
6500
|
});
|
|
6501
6501
|
case "visibilityOffIcon":
|
|
6502
6502
|
return K5({
|
|
6503
6503
|
width: o,
|
|
6504
6504
|
height: e,
|
|
6505
|
-
color:
|
|
6505
|
+
color: h,
|
|
6506
6506
|
className: s,
|
|
6507
|
-
onClick:
|
|
6507
|
+
onClick: n
|
|
6508
6508
|
});
|
|
6509
6509
|
case "selectArrowIcon":
|
|
6510
6510
|
return O5({
|
|
6511
6511
|
width: o,
|
|
6512
6512
|
height: e,
|
|
6513
|
-
color:
|
|
6513
|
+
color: h,
|
|
6514
6514
|
className: s,
|
|
6515
|
-
onClick:
|
|
6515
|
+
onClick: n
|
|
6516
6516
|
});
|
|
6517
6517
|
case "expandArrowIcon":
|
|
6518
6518
|
return b5({
|
|
6519
6519
|
width: o,
|
|
6520
6520
|
height: e,
|
|
6521
|
-
color:
|
|
6521
|
+
color: h,
|
|
6522
6522
|
className: s,
|
|
6523
|
-
onClick:
|
|
6523
|
+
onClick: n
|
|
6524
6524
|
});
|
|
6525
6525
|
case "expandActiveArrowIcon":
|
|
6526
6526
|
return F5({
|
|
6527
6527
|
width: o,
|
|
6528
6528
|
height: e,
|
|
6529
|
-
color:
|
|
6529
|
+
color: h,
|
|
6530
6530
|
className: s,
|
|
6531
|
-
onClick:
|
|
6531
|
+
onClick: n
|
|
6532
6532
|
});
|
|
6533
6533
|
case "camera":
|
|
6534
|
-
return U5({ width: o, height: e, color:
|
|
6534
|
+
return U5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6535
6535
|
case "sortUp":
|
|
6536
|
-
return P5({ width: o, height: e, color:
|
|
6536
|
+
return P5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6537
6537
|
case "sortDown":
|
|
6538
|
-
return $5({ width: o, height: e, color:
|
|
6538
|
+
return $5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6539
6539
|
case "logOut2":
|
|
6540
|
-
return z5({ width: o, height: e, color:
|
|
6540
|
+
return z5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6541
6541
|
case "search":
|
|
6542
|
-
return q5({ width: o, height: e, color:
|
|
6542
|
+
return q5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6543
6543
|
case "handRock":
|
|
6544
|
-
return J5({ width: o, height: e, color:
|
|
6544
|
+
return J5({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6545
6545
|
case "arrowUpFilled":
|
|
6546
|
-
return o3({ width: o, height: e, color:
|
|
6546
|
+
return o3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6547
6547
|
case "arrowDownFilled":
|
|
6548
|
-
return e3({ width: o, height: e, color:
|
|
6548
|
+
return e3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6549
6549
|
case "link":
|
|
6550
|
-
return i3({ width: o, height: e, color:
|
|
6550
|
+
return i3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6551
6551
|
case "telegram":
|
|
6552
|
-
return l3({ width: o, height: e, color:
|
|
6552
|
+
return l3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6553
6553
|
case "mail":
|
|
6554
|
-
return s3({ width: o, height: e, color:
|
|
6554
|
+
return s3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6555
6555
|
case "github":
|
|
6556
|
-
return t3({ width: o, height: e, color:
|
|
6556
|
+
return t3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6557
6557
|
case "linkedIn":
|
|
6558
|
-
return r3({ width: o, height: e, color:
|
|
6558
|
+
return r3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6559
6559
|
case "emptyStateIcon":
|
|
6560
|
-
return n3({ width: o, height: e, color:
|
|
6560
|
+
return n3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6561
6561
|
case "filtersIcon":
|
|
6562
|
-
return h3({ width: o, height: e, color:
|
|
6562
|
+
return h3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6563
6563
|
case "dotMenuIcon":
|
|
6564
|
-
return c3({ width: o, height: e, color:
|
|
6564
|
+
return c3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6565
6565
|
case "plusCircle":
|
|
6566
|
-
return a3({ width: o, height: e, color:
|
|
6566
|
+
return a3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6567
6567
|
case "warning":
|
|
6568
|
-
return d3({ width: o, height: e, color:
|
|
6568
|
+
return d3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6569
6569
|
case "back":
|
|
6570
|
-
return C3({ width: o, height: e, color:
|
|
6570
|
+
return C3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6571
6571
|
case "bell":
|
|
6572
|
-
return w3({ width: o, height: e, color:
|
|
6572
|
+
return w3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6573
6573
|
case "contract":
|
|
6574
|
-
return g3({ width: o, height: e, color:
|
|
6574
|
+
return g3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6575
6575
|
case "trash2":
|
|
6576
|
-
return k3({ width: o, height: e, color:
|
|
6576
|
+
return k3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6577
6577
|
case "manager":
|
|
6578
|
-
return p3({ width: o, height: e, color:
|
|
6578
|
+
return p3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6579
6579
|
case "resourceManager":
|
|
6580
|
-
return L3({ width: o, height: e, color:
|
|
6580
|
+
return L3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6581
6581
|
case "settings2":
|
|
6582
|
-
return m3({ width: o, height: e, color:
|
|
6582
|
+
return m3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6583
6583
|
case "image":
|
|
6584
|
-
return u3({ width: o, height: e, color:
|
|
6584
|
+
return u3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6585
6585
|
case "upload":
|
|
6586
|
-
return v3({ width: o, height: e, color:
|
|
6586
|
+
return v3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6587
6587
|
case "edit":
|
|
6588
|
-
return N3({ width: o, height: e, color:
|
|
6588
|
+
return N3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6589
6589
|
case "location":
|
|
6590
|
-
return f3({ width: o, height: e, color:
|
|
6590
|
+
return f3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6591
6591
|
case "plus2":
|
|
6592
|
-
return M3({ width: o, height: e, color:
|
|
6592
|
+
return M3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6593
6593
|
case "search2":
|
|
6594
|
-
return x3({ width: o, height: e, color:
|
|
6594
|
+
return x3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6595
6595
|
case "fastArrowLeft":
|
|
6596
|
-
return _3({ width: o, height: e, color:
|
|
6596
|
+
return _3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6597
6597
|
case "fastArrowRight":
|
|
6598
|
-
return R3({ width: o, height: e, color:
|
|
6598
|
+
return R3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6599
6599
|
case "crossInCircle":
|
|
6600
|
-
return H3({ width: o, height: e, color:
|
|
6600
|
+
return H3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6601
6601
|
case "arrowUp2":
|
|
6602
|
-
return E3({ width: o, height: e, color:
|
|
6602
|
+
return E3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6603
6603
|
case "arrowDown2":
|
|
6604
|
-
return V3({ width: o, height: e, color:
|
|
6604
|
+
return V3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6605
6605
|
case "filledArrowLeft":
|
|
6606
|
-
return Z3({ width: o, height: e, color:
|
|
6606
|
+
return Z3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6607
6607
|
case "filledArrowRight":
|
|
6608
|
-
return W3({ width: o, height: e, color:
|
|
6608
|
+
return W3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6609
6609
|
case "burgerMenu":
|
|
6610
|
-
return I3({ width: o, height: e, color:
|
|
6610
|
+
return I3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6611
6611
|
case "signOut":
|
|
6612
|
-
return B3({ width: o, height: e, color:
|
|
6612
|
+
return B3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6613
6613
|
case "refresh":
|
|
6614
|
-
return A3({ width: o, height: e, color:
|
|
6614
|
+
return A3({ width: o, height: e, color: h, className: s, onClick: n });
|
|
6615
6615
|
default:
|
|
6616
6616
|
return /* @__PURE__ */ t(I, { children: "No Icon provided" });
|
|
6617
6617
|
}
|
|
@@ -6719,28 +6719,28 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6719
6719
|
E(() => {
|
|
6720
6720
|
i.length || s(!1);
|
|
6721
6721
|
}, [i]);
|
|
6722
|
-
const p = (
|
|
6723
|
-
|
|
6722
|
+
const p = (h) => {
|
|
6723
|
+
h.preventDefault(), h.stopPropagation();
|
|
6724
6724
|
};
|
|
6725
6725
|
if (!i.length)
|
|
6726
6726
|
return null;
|
|
6727
|
-
const k = (
|
|
6728
|
-
var
|
|
6729
|
-
return ((
|
|
6727
|
+
const k = (h) => {
|
|
6728
|
+
var n, H;
|
|
6729
|
+
return ((n = r == null ? void 0 : r.find((V) => V.value === h)) == null ? void 0 : n.label) || ((H = w == null ? void 0 : w.find((V) => V.value === h)) == null ? void 0 : H.label) || h;
|
|
6730
6730
|
};
|
|
6731
6731
|
return /* @__PURE__ */ t("div", { onMouseDown: p, className: "wrapper", children: /* @__PURE__ */ t(
|
|
6732
6732
|
Y3,
|
|
6733
6733
|
{
|
|
6734
6734
|
content: (
|
|
6735
6735
|
// 90: paddings + margins + gaps and so on
|
|
6736
|
-
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, children: /* @__PURE__ */ t($, { gap: 6, flexWrap: "wrap", children: i.map(({ value:
|
|
6736
|
+
/* @__PURE__ */ t("div", { style: { maxWidth: e - 90 }, children: /* @__PURE__ */ t($, { gap: 6, flexWrap: "wrap", children: i.map(({ value: h }) => /* @__PURE__ */ t(
|
|
6737
6737
|
C1,
|
|
6738
6738
|
{
|
|
6739
|
-
onClose: () => o(
|
|
6739
|
+
onClose: () => o(h),
|
|
6740
6740
|
closable: !l,
|
|
6741
|
-
children: k(
|
|
6741
|
+
children: k(h)
|
|
6742
6742
|
},
|
|
6743
|
-
|
|
6743
|
+
h
|
|
6744
6744
|
)) }) })
|
|
6745
6745
|
),
|
|
6746
6746
|
placement: "bottomRight",
|
|
@@ -6772,33 +6772,33 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6772
6772
|
disabled: s = !1,
|
|
6773
6773
|
required: p = !1,
|
|
6774
6774
|
scrollThresholdValue: k = 50,
|
|
6775
|
-
onSearchChange:
|
|
6776
|
-
onDropdownVisibleChange:
|
|
6775
|
+
onSearchChange: h,
|
|
6776
|
+
onDropdownVisibleChange: n,
|
|
6777
6777
|
onScrollToEnd: H,
|
|
6778
6778
|
onPopupScroll: B,
|
|
6779
6779
|
id: V,
|
|
6780
6780
|
extraOptions: _,
|
|
6781
6781
|
dropdownRender: A,
|
|
6782
|
-
optionRender:
|
|
6783
|
-
isLoading:
|
|
6784
|
-
readOnly:
|
|
6785
|
-
},
|
|
6786
|
-
const [
|
|
6782
|
+
optionRender: G,
|
|
6783
|
+
isLoading: F,
|
|
6784
|
+
readOnly: N
|
|
6785
|
+
}, D) => {
|
|
6786
|
+
const [j, T] = u(!1), [S, R] = u(!1), [Z, y] = u(!0), [v, Y] = u(i), K = r1(null);
|
|
6787
6787
|
E(() => {
|
|
6788
|
-
|
|
6788
|
+
Y(i);
|
|
6789
6789
|
}, [i]);
|
|
6790
6790
|
const m = (a) => {
|
|
6791
|
-
|
|
6791
|
+
T(a), n && n(a);
|
|
6792
6792
|
}, J = (a, L) => {
|
|
6793
6793
|
var M;
|
|
6794
6794
|
return !!((M = L == null ? void 0 : L.label) != null && M.toString().toLowerCase().includes(a.toLowerCase()));
|
|
6795
6795
|
}, Q = () => {
|
|
6796
6796
|
R(!0);
|
|
6797
|
-
},
|
|
6797
|
+
}, O = () => {
|
|
6798
6798
|
R(!1);
|
|
6799
|
-
},
|
|
6799
|
+
}, f = x(
|
|
6800
6800
|
(a) => {
|
|
6801
|
-
if (
|
|
6801
|
+
if (Y(a), l) {
|
|
6802
6802
|
const M = a;
|
|
6803
6803
|
o == null || o(M);
|
|
6804
6804
|
return;
|
|
@@ -6808,19 +6808,19 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6808
6808
|
},
|
|
6809
6809
|
[l, o]
|
|
6810
6810
|
), k1 = x(() => {
|
|
6811
|
-
if (!
|
|
6811
|
+
if (!N) {
|
|
6812
6812
|
if (l) {
|
|
6813
|
-
|
|
6813
|
+
f([]);
|
|
6814
6814
|
return;
|
|
6815
6815
|
}
|
|
6816
|
-
|
|
6816
|
+
f("");
|
|
6817
6817
|
}
|
|
6818
|
-
}, [
|
|
6818
|
+
}, [f, l, N]), U = x(
|
|
6819
6819
|
(a) => {
|
|
6820
6820
|
const L = v.filter((M) => M !== a);
|
|
6821
|
-
|
|
6821
|
+
f(L), Y(L);
|
|
6822
6822
|
},
|
|
6823
|
-
[
|
|
6823
|
+
[f, v]
|
|
6824
6824
|
), i1 = x(
|
|
6825
6825
|
(a) => (v == null ? void 0 : v.indexOf(a)) === 0 ? (
|
|
6826
6826
|
// if the search input is empty
|
|
@@ -6848,34 +6848,34 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6848
6848
|
K3,
|
|
6849
6849
|
{
|
|
6850
6850
|
values: a,
|
|
6851
|
-
onTagClose:
|
|
6852
|
-
maxWidth: ((L =
|
|
6853
|
-
disabled: s ||
|
|
6851
|
+
onTagClose: U,
|
|
6852
|
+
maxWidth: ((L = K.current) == null ? void 0 : L.clientWidth) || 0,
|
|
6853
|
+
disabled: s || N,
|
|
6854
6854
|
options: w,
|
|
6855
6855
|
extraOptions: _
|
|
6856
6856
|
}
|
|
6857
6857
|
);
|
|
6858
6858
|
},
|
|
6859
|
-
[s, _,
|
|
6859
|
+
[s, _, U, w, N]
|
|
6860
6860
|
), m1 = x(
|
|
6861
|
-
({ label: a, value: L, mode: M }) => M === "filter" ? i1(L) : /* @__PURE__ */ t("div", { onMouseDown: g1, className: "tag-wrapper", children: /* @__PURE__ */ t(C1, { onClose: () =>
|
|
6862
|
-
[s, X,
|
|
6861
|
+
({ label: a, value: L, mode: M }) => M === "filter" ? i1(L) : /* @__PURE__ */ t("div", { onMouseDown: g1, className: "tag-wrapper", children: /* @__PURE__ */ t(C1, { onClose: () => U(L), closable: !s, children: /* @__PURE__ */ t(w1, { variant: "body4", children: typeof a == "object" ? a : X(L) }) }) }),
|
|
6862
|
+
[s, X, U, i1]
|
|
6863
6863
|
);
|
|
6864
6864
|
return /* @__PURE__ */ c(
|
|
6865
6865
|
"div",
|
|
6866
6866
|
{
|
|
6867
|
-
className: `snmt-select ${
|
|
6868
|
-
${l ? "" : "snmt-select-single"} ${
|
|
6869
|
-
ref:
|
|
6867
|
+
className: `snmt-select ${S ? "snmt-select-focused" : ""}
|
|
6868
|
+
${l ? "" : "snmt-select-single"} ${N ? "snmt-select-read-only" : ""}`,
|
|
6869
|
+
ref: K,
|
|
6870
6870
|
style: { width: g },
|
|
6871
6871
|
children: [
|
|
6872
6872
|
/* @__PURE__ */ t(
|
|
6873
6873
|
v1,
|
|
6874
6874
|
{
|
|
6875
6875
|
className: "snmt-select-blank",
|
|
6876
|
-
popupClassName:
|
|
6876
|
+
popupClassName: N ? "dropdown-read-only" : "",
|
|
6877
6877
|
id: V,
|
|
6878
|
-
ref:
|
|
6878
|
+
ref: D,
|
|
6879
6879
|
showSearch: !!r,
|
|
6880
6880
|
filterOption: r && J,
|
|
6881
6881
|
onDropdownVisibleChange: m,
|
|
@@ -6884,34 +6884,34 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6884
6884
|
value: v || void 0,
|
|
6885
6885
|
labelRender: (a) => X(a.value),
|
|
6886
6886
|
mode: l === "filter" ? "multiple" : l,
|
|
6887
|
-
onChange:
|
|
6887
|
+
onChange: f,
|
|
6888
6888
|
onFocus: Q,
|
|
6889
|
-
onBlur:
|
|
6889
|
+
onBlur: O,
|
|
6890
6890
|
onSearch: (a) => {
|
|
6891
|
-
|
|
6891
|
+
y(!a), h && h(a);
|
|
6892
6892
|
},
|
|
6893
|
-
onSelect: () =>
|
|
6894
|
-
onDeselect: () =>
|
|
6893
|
+
onSelect: () => y(!0),
|
|
6894
|
+
onDeselect: () => y(!0),
|
|
6895
6895
|
tagRender: (a) => m1({ ...a, mode: l }),
|
|
6896
6896
|
maxTagCount: "responsive",
|
|
6897
6897
|
maxTagPlaceholder: L1,
|
|
6898
6898
|
onPopupScroll: p1,
|
|
6899
|
-
prefix:
|
|
6899
|
+
prefix: N && !i && /* @__PURE__ */ t(t1, { size: 15 }),
|
|
6900
6900
|
suffixIcon: /* @__PURE__ */ t("div", { className: "wrapper-suffix-icon", children: l !== "filter" && /* @__PURE__ */ c(I, { children: [
|
|
6901
|
-
l && v && !!v.length && /* @__PURE__ */ t("div", { onClick: k1, children: /* @__PURE__ */ t(
|
|
6901
|
+
l && v && !!v.length && /* @__PURE__ */ t("div", { onClick: k1, children: /* @__PURE__ */ t(P, { name: "cancel" }) }),
|
|
6902
6902
|
/* @__PURE__ */ t(
|
|
6903
|
-
|
|
6903
|
+
P,
|
|
6904
6904
|
{
|
|
6905
6905
|
name: "selectArrowIcon",
|
|
6906
6906
|
color: s ? W.GREY_DARK_1 : W.GREY_DARK_5,
|
|
6907
|
-
className:
|
|
6908
|
-
onClick: () =>
|
|
6907
|
+
className: j ? "select-arrow-rotated" : "select-arrow",
|
|
6908
|
+
onClick: () => T(!j)
|
|
6909
6909
|
}
|
|
6910
6910
|
)
|
|
6911
6911
|
] }) }),
|
|
6912
|
-
removeIcon: /* @__PURE__ */ t(
|
|
6912
|
+
removeIcon: /* @__PURE__ */ t(P, { name: "errorSmall", color: W.GREY_DARK_2 }),
|
|
6913
6913
|
options: w,
|
|
6914
|
-
optionRender: (a) =>
|
|
6914
|
+
optionRender: (a) => G ? G(a.data) : /* @__PURE__ */ c($, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
|
|
6915
6915
|
/* @__PURE__ */ c($, { alignItems: "center", gap: 12, children: [
|
|
6916
6916
|
l && /* @__PURE__ */ t(
|
|
6917
6917
|
R1,
|
|
@@ -6925,7 +6925,7 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6925
6925
|
] })
|
|
6926
6926
|
] }),
|
|
6927
6927
|
!l && v === a.value && /* @__PURE__ */ t(
|
|
6928
|
-
|
|
6928
|
+
P,
|
|
6929
6929
|
{
|
|
6930
6930
|
name: "ok",
|
|
6931
6931
|
color: W.BLUE_PRIMARY,
|
|
@@ -6934,7 +6934,7 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6934
6934
|
}
|
|
6935
6935
|
)
|
|
6936
6936
|
] }),
|
|
6937
|
-
dropdownRender:
|
|
6937
|
+
dropdownRender: F ? () => /* @__PURE__ */ t(
|
|
6938
6938
|
"div",
|
|
6939
6939
|
{
|
|
6940
6940
|
style: {
|
|
@@ -6950,7 +6950,7 @@ const C1 = ({ children: i, width: o, size: e = "small", onClose: l, closable: r
|
|
|
6950
6950
|
/* @__PURE__ */ t(
|
|
6951
6951
|
"fieldset",
|
|
6952
6952
|
{
|
|
6953
|
-
className: `${
|
|
6953
|
+
className: `${S ? "fieldset-focused" : ""}
|
|
6954
6954
|
${s ? "fieldset-disabled" : ""}
|
|
6955
6955
|
${typeof i == "string" && i ? "fieldset-filled" : ""}
|
|
6956
6956
|
${typeof i == "object" && i != null && i.length ? "fieldset-filled" : ""}`,
|
|
@@ -6973,7 +6973,7 @@ function O3(i, o = 500) {
|
|
|
6973
6973
|
clearTimeout(e.current), e.current = w;
|
|
6974
6974
|
};
|
|
6975
6975
|
}
|
|
6976
|
-
const
|
|
6976
|
+
const b = {
|
|
6977
6977
|
limit: 100,
|
|
6978
6978
|
offset: 0
|
|
6979
6979
|
}, $3 = q(
|
|
@@ -6988,40 +6988,40 @@ const P = {
|
|
|
6988
6988
|
placeholder: s,
|
|
6989
6989
|
mode: p,
|
|
6990
6990
|
loadOnClosedState: k,
|
|
6991
|
-
extraOptions:
|
|
6992
|
-
onDropdownVisibleChange:
|
|
6991
|
+
extraOptions: h,
|
|
6992
|
+
onDropdownVisibleChange: n,
|
|
6993
6993
|
optionRender: H,
|
|
6994
6994
|
dropdownRender: B,
|
|
6995
6995
|
readOnly: V
|
|
6996
6996
|
}, _) => {
|
|
6997
|
-
const [A,
|
|
6997
|
+
const [A, G] = u([]), [F, N] = u(b), [D, j] = u(!1), [T, S] = u(null), R = x(
|
|
6998
6998
|
async (m = !1, J) => {
|
|
6999
|
-
if (!
|
|
7000
|
-
|
|
6999
|
+
if (!D) {
|
|
7000
|
+
j(!0);
|
|
7001
7001
|
try {
|
|
7002
|
-
const Q = m ? { ...
|
|
7003
|
-
|
|
7004
|
-
(
|
|
7005
|
-
),
|
|
7006
|
-
...
|
|
7007
|
-
offset:
|
|
7002
|
+
const Q = m ? { ...b, search: J } : F, O = await i(Q);
|
|
7003
|
+
G(
|
|
7004
|
+
(f) => m ? O.options : [...f, ...O.options]
|
|
7005
|
+
), S(O.count), N((f) => ({
|
|
7006
|
+
...f,
|
|
7007
|
+
offset: f.offset + f.limit
|
|
7008
7008
|
}));
|
|
7009
7009
|
} finally {
|
|
7010
|
-
|
|
7010
|
+
j(!1);
|
|
7011
7011
|
}
|
|
7012
7012
|
}
|
|
7013
7013
|
},
|
|
7014
|
-
[
|
|
7015
|
-
), Z = O3(R),
|
|
7014
|
+
[F, i, D]
|
|
7015
|
+
), Z = O3(R), y = x(
|
|
7016
7016
|
(m) => {
|
|
7017
|
-
m === "" || m === void 0 || m === null ? (
|
|
7017
|
+
m === "" || m === void 0 || m === null ? (N(b), Z(!0)) : Z(!0, m);
|
|
7018
7018
|
},
|
|
7019
7019
|
[Z]
|
|
7020
7020
|
), v = async (m) => {
|
|
7021
|
-
m &&
|
|
7022
|
-
},
|
|
7021
|
+
m && T !== null && T > A.length && await R(!1);
|
|
7022
|
+
}, Y = x(
|
|
7023
7023
|
(m) => {
|
|
7024
|
-
m && !k && R(!
|
|
7024
|
+
m && !k && (G([]), N(b), R(!0)), n == null || n(m);
|
|
7025
7025
|
},
|
|
7026
7026
|
// eslint-disable-next-line
|
|
7027
7027
|
[k]
|
|
@@ -7029,7 +7029,7 @@ const P = {
|
|
|
7029
7029
|
E(() => {
|
|
7030
7030
|
k && R(!1);
|
|
7031
7031
|
}, []);
|
|
7032
|
-
const
|
|
7032
|
+
const K = {
|
|
7033
7033
|
id: r,
|
|
7034
7034
|
width: o,
|
|
7035
7035
|
options: A,
|
|
@@ -7038,23 +7038,23 @@ const P = {
|
|
|
7038
7038
|
placeholder: s,
|
|
7039
7039
|
search: !0,
|
|
7040
7040
|
value: l,
|
|
7041
|
-
onSearchChange:
|
|
7042
|
-
onDropdownVisibleChange:
|
|
7041
|
+
onSearchChange: y,
|
|
7042
|
+
onDropdownVisibleChange: Y,
|
|
7043
7043
|
scrollThresholdValue: g,
|
|
7044
7044
|
onScrollToEnd: v,
|
|
7045
7045
|
loadOnClosedState: k,
|
|
7046
7046
|
disabled: w,
|
|
7047
|
-
extraOptions:
|
|
7048
|
-
isLoading:
|
|
7047
|
+
extraOptions: h,
|
|
7048
|
+
isLoading: D,
|
|
7049
7049
|
optionRender: H,
|
|
7050
7050
|
dropdownRender: B,
|
|
7051
7051
|
readOnly: V
|
|
7052
7052
|
};
|
|
7053
7053
|
return u1(_, () => ({
|
|
7054
7054
|
refetchOptions: async () => {
|
|
7055
|
-
|
|
7055
|
+
N(b), await R(!0);
|
|
7056
7056
|
}
|
|
7057
|
-
})), p ? /* @__PURE__ */ t(l1, { ...
|
|
7057
|
+
})), p ? /* @__PURE__ */ t(l1, { ...K, onChange: e, value: l, mode: p }) : /* @__PURE__ */ t("div", { className: "snmt-async-select", children: /* @__PURE__ */ t(l1, { ...K, onChange: e, value: l }) });
|
|
7058
7058
|
}
|
|
7059
7059
|
);
|
|
7060
7060
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snmt-react-ui/async-select",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/async-select.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"build": "tsc && vite build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@snmt-react-ui/select": "^1.
|
|
21
|
+
"@snmt-react-ui/select": "^1.13.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"antd": "^5.18.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "3110b4a7202e4a6ded1eea349bee8b81d67cfc02"
|
|
27
27
|
}
|