@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.
Files changed (2) hide show
  1. package/dist/async-select.js +282 -282
  2. package/package.json +3 -3
@@ -56,15 +56,15 @@ const R1 = ({
56
56
  E(() => {
57
57
  s(i), k(o);
58
58
  }, [i, o]);
59
- const { theme: n } = o1(h1);
59
+ const { theme: h } = o1(h1);
60
60
  return /* @__PURE__ */ t(
61
61
  M1,
62
62
  {
63
- className: `snmt-checkbox snmt-checkbox-${n}`,
63
+ className: `snmt-checkbox snmt-checkbox-${h}`,
64
64
  checked: g,
65
65
  indeterminate: p,
66
- onChange: (h) => {
67
- w && g || (k(!1), s(h.target.checked), l && l(h));
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
- ), U = ({
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), n = w ? k && k === "dark" ? d.GREY_LIGHT_4 : d.GREY_DARK_1 : l, h = w ? void 0 : g;
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
- h && !w && p(`${r} clickable`);
3079
+ n && !w && p(`${r} clickable`);
3080
3080
  return;
3081
3081
  }
3082
- h && !w && p("clickable");
3083
- }, [h, r, w]), /* @__PURE__ */ t(I, { children: (() => {
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n,
3121
+ color: h,
3122
3122
  className: s,
3123
- onClick: h
3123
+ onClick: n
3124
3124
  });
3125
3125
  case "users":
3126
- return O1({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
3131
+ color: h,
3132
3132
  className: s,
3133
- onClick: h
3133
+ onClick: n
3134
3134
  });
3135
3135
  case "skills":
3136
- return F1({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
3141
+ color: h,
3142
3142
  className: s,
3143
- onClick: h
3143
+ onClick: n
3144
3144
  });
3145
3145
  case "history":
3146
- return U1({ width: o, height: e, color: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n,
3165
+ color: h,
3166
3166
  className: s,
3167
- onClick: h
3167
+ onClick: n
3168
3168
  });
3169
3169
  case "success":
3170
- return o2({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
3175
+ color: h,
3176
3176
  className: s,
3177
- onClick: h
3177
+ onClick: n
3178
3178
  });
3179
3179
  case "errorSmall":
3180
- return t2({ width: o, height: e, color: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n,
3187
+ color: h,
3188
3188
  className: s,
3189
- onClick: h
3189
+ onClick: n
3190
3190
  });
3191
3191
  case "errorMedium":
3192
- return s2({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
3197
+ color: h,
3198
3198
  className: s,
3199
- onClick: h
3199
+ onClick: n
3200
3200
  });
3201
3201
  case "visibilityIcon":
3202
3202
  return n2({
3203
3203
  width: o,
3204
3204
  height: e,
3205
- color: n,
3205
+ color: h,
3206
3206
  className: s,
3207
- onClick: h
3207
+ onClick: n
3208
3208
  });
3209
3209
  case "visibilityOffIcon":
3210
3210
  return h2({
3211
3211
  width: o,
3212
3212
  height: e,
3213
- color: n,
3213
+ color: h,
3214
3214
  className: s,
3215
- onClick: h
3215
+ onClick: n
3216
3216
  });
3217
3217
  case "selectArrowIcon":
3218
3218
  return c2({
3219
3219
  width: o,
3220
3220
  height: e,
3221
- color: n,
3221
+ color: h,
3222
3222
  className: s,
3223
- onClick: h
3223
+ onClick: n
3224
3224
  });
3225
3225
  case "expandArrowIcon":
3226
3226
  return a2({
3227
3227
  width: o,
3228
3228
  height: e,
3229
- color: n,
3229
+ color: h,
3230
3230
  className: s,
3231
- onClick: h
3231
+ onClick: n
3232
3232
  });
3233
3233
  case "expandActiveArrowIcon":
3234
3234
  return d2({
3235
3235
  width: o,
3236
3236
  height: e,
3237
- color: n,
3237
+ color: h,
3238
3238
  className: s,
3239
- onClick: h
3239
+ onClick: n
3240
3240
  });
3241
3241
  case "camera":
3242
- return w2({ width: o, height: e, color: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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), n = w ? k && k === "dark" ? C.GREY_LIGHT_4 : C.GREY_DARK_1 : l, h = w ? void 0 : g;
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
- h && !w && p(`${r} clickable`);
6371
+ n && !w && p(`${r} clickable`);
6372
6372
  return;
6373
6373
  }
6374
- h && !w && p("clickable");
6375
- }, [h, r, w]), /* @__PURE__ */ t(I, { children: (() => {
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n,
6413
+ color: h,
6414
6414
  className: s,
6415
- onClick: h
6415
+ onClick: n
6416
6416
  });
6417
6417
  case "users":
6418
- return N5({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
6423
+ color: h,
6424
6424
  className: s,
6425
- onClick: h
6425
+ onClick: n
6426
6426
  });
6427
6427
  case "skills":
6428
- return M5({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
6433
+ color: h,
6434
6434
  className: s,
6435
- onClick: h
6435
+ onClick: n
6436
6436
  });
6437
6437
  case "history":
6438
- return _5({ width: o, height: e, color: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n,
6457
+ color: h,
6458
6458
  className: s,
6459
- onClick: h
6459
+ onClick: n
6460
6460
  });
6461
6461
  case "success":
6462
- return A5({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
6467
+ color: h,
6468
6468
  className: s,
6469
- onClick: h
6469
+ onClick: n
6470
6470
  });
6471
6471
  case "errorSmall":
6472
- return D5({ width: o, height: e, color: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n,
6479
+ color: h,
6480
6480
  className: s,
6481
- onClick: h
6481
+ onClick: n
6482
6482
  });
6483
6483
  case "errorMedium":
6484
- return y5({ width: o, height: e, color: n, className: s, onClick: h });
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: n,
6489
+ color: h,
6490
6490
  className: s,
6491
- onClick: h
6491
+ onClick: n
6492
6492
  });
6493
6493
  case "visibilityIcon":
6494
6494
  return Y5({
6495
6495
  width: o,
6496
6496
  height: e,
6497
- color: n,
6497
+ color: h,
6498
6498
  className: s,
6499
- onClick: h
6499
+ onClick: n
6500
6500
  });
6501
6501
  case "visibilityOffIcon":
6502
6502
  return K5({
6503
6503
  width: o,
6504
6504
  height: e,
6505
- color: n,
6505
+ color: h,
6506
6506
  className: s,
6507
- onClick: h
6507
+ onClick: n
6508
6508
  });
6509
6509
  case "selectArrowIcon":
6510
6510
  return O5({
6511
6511
  width: o,
6512
6512
  height: e,
6513
- color: n,
6513
+ color: h,
6514
6514
  className: s,
6515
- onClick: h
6515
+ onClick: n
6516
6516
  });
6517
6517
  case "expandArrowIcon":
6518
6518
  return b5({
6519
6519
  width: o,
6520
6520
  height: e,
6521
- color: n,
6521
+ color: h,
6522
6522
  className: s,
6523
- onClick: h
6523
+ onClick: n
6524
6524
  });
6525
6525
  case "expandActiveArrowIcon":
6526
6526
  return F5({
6527
6527
  width: o,
6528
6528
  height: e,
6529
- color: n,
6529
+ color: h,
6530
6530
  className: s,
6531
- onClick: h
6531
+ onClick: n
6532
6532
  });
6533
6533
  case "camera":
6534
- return U5({ width: o, height: e, color: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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: n, className: s, onClick: h });
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 = (n) => {
6723
- n.preventDefault(), n.stopPropagation();
6722
+ const p = (h) => {
6723
+ h.preventDefault(), h.stopPropagation();
6724
6724
  };
6725
6725
  if (!i.length)
6726
6726
  return null;
6727
- const k = (n) => {
6728
- var h, H;
6729
- return ((h = r == null ? void 0 : r.find((V) => V.value === n)) == null ? void 0 : h.label) || ((H = w == null ? void 0 : w.find((V) => V.value === n)) == null ? void 0 : H.label) || n;
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: n }) => /* @__PURE__ */ t(
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(n),
6739
+ onClose: () => o(h),
6740
6740
  closable: !l,
6741
- children: k(n)
6741
+ children: k(h)
6742
6742
  },
6743
- n
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: n,
6776
- onDropdownVisibleChange: h,
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: O,
6783
- isLoading: b,
6784
- readOnly: f
6785
- }, G) => {
6786
- const [D, j] = u(!1), [F, R] = u(!1), [Z, T] = u(!0), [v, y] = u(i), Y = r1(null);
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
- y(i);
6788
+ Y(i);
6789
6789
  }, [i]);
6790
6790
  const m = (a) => {
6791
- j(a), h && h(a);
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
- }, K = () => {
6797
+ }, O = () => {
6798
6798
  R(!1);
6799
- }, N = x(
6799
+ }, f = x(
6800
6800
  (a) => {
6801
- if (y(a), l) {
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 (!f) {
6811
+ if (!N) {
6812
6812
  if (l) {
6813
- N([]);
6813
+ f([]);
6814
6814
  return;
6815
6815
  }
6816
- N("");
6816
+ f("");
6817
6817
  }
6818
- }, [N, l, f]), S = x(
6818
+ }, [f, l, N]), U = x(
6819
6819
  (a) => {
6820
6820
  const L = v.filter((M) => M !== a);
6821
- N(L), y(L);
6821
+ f(L), Y(L);
6822
6822
  },
6823
- [N, v]
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: S,
6852
- maxWidth: ((L = Y.current) == null ? void 0 : L.clientWidth) || 0,
6853
- disabled: s || f,
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, _, S, w, f]
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: () => S(L), closable: !s, children: /* @__PURE__ */ t(w1, { variant: "body4", children: typeof a == "object" ? a : X(L) }) }) }),
6862
- [s, X, S, i1]
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 ${F ? "snmt-select-focused" : ""}
6868
- ${l ? "" : "snmt-select-single"} ${f ? "snmt-select-read-only" : ""}`,
6869
- ref: Y,
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: f ? "dropdown-read-only" : "",
6876
+ popupClassName: N ? "dropdown-read-only" : "",
6877
6877
  id: V,
6878
- ref: G,
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: N,
6887
+ onChange: f,
6888
6888
  onFocus: Q,
6889
- onBlur: K,
6889
+ onBlur: O,
6890
6890
  onSearch: (a) => {
6891
- T(!a), n && n(a);
6891
+ y(!a), h && h(a);
6892
6892
  },
6893
- onSelect: () => T(!0),
6894
- onDeselect: () => T(!0),
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: f && !i && /* @__PURE__ */ t(t1, { size: 15 }),
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(U, { name: "cancel" }) }),
6901
+ l && v && !!v.length && /* @__PURE__ */ t("div", { onClick: k1, children: /* @__PURE__ */ t(P, { name: "cancel" }) }),
6902
6902
  /* @__PURE__ */ t(
6903
- U,
6903
+ P,
6904
6904
  {
6905
6905
  name: "selectArrowIcon",
6906
6906
  color: s ? W.GREY_DARK_1 : W.GREY_DARK_5,
6907
- className: D ? "select-arrow-rotated" : "select-arrow",
6908
- onClick: () => j(!D)
6907
+ className: j ? "select-arrow-rotated" : "select-arrow",
6908
+ onClick: () => T(!j)
6909
6909
  }
6910
6910
  )
6911
6911
  ] }) }),
6912
- removeIcon: /* @__PURE__ */ t(U, { name: "errorSmall", color: W.GREY_DARK_2 }),
6912
+ removeIcon: /* @__PURE__ */ t(P, { name: "errorSmall", color: W.GREY_DARK_2 }),
6913
6913
  options: w,
6914
- optionRender: (a) => O ? O(a.data) : /* @__PURE__ */ c($, { justifyContent: "space-between", alignItems: "center", flex: "1", children: [
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
- U,
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: b ? () => /* @__PURE__ */ t(
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: `${F ? "fieldset-focused" : ""}
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 P = {
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: n,
6992
- onDropdownVisibleChange: h,
6991
+ extraOptions: h,
6992
+ onDropdownVisibleChange: n,
6993
6993
  optionRender: H,
6994
6994
  dropdownRender: B,
6995
6995
  readOnly: V
6996
6996
  }, _) => {
6997
- const [A, O] = u([]), [b, f] = u(P), [G, D] = u(!1), [j, F] = u(null), R = x(
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 (!G) {
7000
- D(!0);
6999
+ if (!D) {
7000
+ j(!0);
7001
7001
  try {
7002
- const Q = m ? { ...P, search: J } : b, K = await i(Q);
7003
- O(
7004
- (N) => m ? K.options : [...N, ...K.options]
7005
- ), F(K.count), f((N) => ({
7006
- ...N,
7007
- offset: N.offset + N.limit
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
- D(!1);
7010
+ j(!1);
7011
7011
  }
7012
7012
  }
7013
7013
  },
7014
- [b, i, G]
7015
- ), Z = O3(R), T = x(
7014
+ [F, i, D]
7015
+ ), Z = O3(R), y = x(
7016
7016
  (m) => {
7017
- m === "" || m === void 0 || m === null ? (f(P), Z(!0)) : Z(!0, m);
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 && j !== null && j > A.length && await R(!1);
7022
- }, y = x(
7021
+ m && T !== null && T > A.length && await R(!1);
7022
+ }, Y = x(
7023
7023
  (m) => {
7024
- m && !k && R(!1), h && h(m);
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 Y = {
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: T,
7042
- onDropdownVisibleChange: y,
7041
+ onSearchChange: y,
7042
+ onDropdownVisibleChange: Y,
7043
7043
  scrollThresholdValue: g,
7044
7044
  onScrollToEnd: v,
7045
7045
  loadOnClosedState: k,
7046
7046
  disabled: w,
7047
- extraOptions: n,
7048
- isLoading: G,
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
- f(P), await R(!0);
7055
+ N(b), await R(!0);
7056
7056
  }
7057
- })), p ? /* @__PURE__ */ t(l1, { ...Y, onChange: e, value: l, mode: p }) : /* @__PURE__ */ t("div", { className: "snmt-async-select", children: /* @__PURE__ */ t(l1, { ...Y, onChange: e, value: l }) });
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.0",
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.12.0"
21
+ "@snmt-react-ui/select": "^1.13.0"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "antd": "^5.18.3"
25
25
  },
26
- "gitHead": "7be922c2cfdfbbba8daf541f78bb957ac462cdc5"
26
+ "gitHead": "3110b4a7202e4a6ded1eea349bee8b81d67cfc02"
27
27
  }