@oliasoft-open-source/react-ui-library 10.0.0-beta-19 → 10.0.0-beta-21

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/index.d.ts CHANGED
@@ -1400,7 +1400,6 @@ declare interface ISelectCell extends TCommonCell {
1400
1400
  native?: boolean;
1401
1401
  clearable?: boolean;
1402
1402
  searchable?: boolean;
1403
- deprecatedEventHandler?: boolean;
1404
1403
  maxTooltipWidth?: TStringOrNumber;
1405
1404
  autoLayerWidth?: boolean;
1406
1405
  multi?: boolean;
@@ -1413,13 +1412,9 @@ export declare interface ISelectProps {
1413
1412
  value?: any;
1414
1413
  native?: boolean;
1415
1414
  onChange?: TChangeEventHandler;
1416
- /** @deprecated Use the standard onChange event shape instead. */
1417
- deprecatedEventHandler?: boolean;
1418
1415
  warning?: TStringOrNumber | ReactNode;
1419
1416
  error?: TStringOrNumber | ReactNode;
1420
- /** @deprecated Prefer leaving unset (defaults to true). */
1421
1417
  checkNonExistentValues?: boolean;
1422
- /** @deprecated Always closes on option action click. */
1423
1418
  closeOnOptionActionClick?: boolean;
1424
1419
  small?: boolean;
1425
1420
  width?: TStringOrNumber | null;
@@ -1431,7 +1426,7 @@ export declare interface ISelectProps {
1431
1426
  searchable?: boolean;
1432
1427
  maxTooltipWidth?: TStringOrNumber;
1433
1428
  autoLayerWidth?: boolean;
1434
- /* Excluded from this release type: right */
1429
+ right?: boolean;
1435
1430
  /* Excluded from this release type: groupOrder */
1436
1431
  tabIndex?: number;
1437
1432
  testId?: string;
package/dist/index.js CHANGED
@@ -2972,37 +2972,37 @@ var Ro = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), zo =
2972
2972
  })
2973
2973
  });
2974
2974
  }, Y = {
2975
- inputInTable: "_inputInTable_iaxa8_1",
2976
- inputHover: "_inputHover_iaxa8_13",
2977
- inputFocus: "_inputFocus_iaxa8_18",
2978
- controlFocusVisible: "_controlFocusVisible_iaxa8_25",
2979
- inputError: "_inputError_iaxa8_29",
2980
- inputWarning: "_inputWarning_iaxa8_30",
2981
- inputDisabled: "_inputDisabled_iaxa8_65",
2982
- hideScrollbars: "_hideScrollbars_iaxa8_71",
2983
- trigger: "_trigger_iaxa8_81",
2984
- input: "_input_iaxa8_1",
2985
- isInTable: "_isInTable_iaxa8_97",
2986
- isOpen: "_isOpen_iaxa8_118",
2987
- disabled: "_disabled_iaxa8_161",
2988
- toggle: "_toggle_iaxa8_167",
2989
- icons: "_icons_iaxa8_175",
2990
- clearAll: "_clearAll_iaxa8_183",
2991
- iconOpen: "_iconOpen_iaxa8_184",
2992
- small: "_small_iaxa8_195",
2993
- triggerInputContainer: "_triggerInputContainer_iaxa8_207",
2994
- right: "_right_iaxa8_216",
2995
- multiOptions: "_multiOptions_iaxa8_232",
2996
- multiOption: "_multiOption_iaxa8_232",
2997
- label: "_label_iaxa8_260",
2998
- closeMultiOption: "_closeMultiOption_iaxa8_263",
2999
- focus: "_focus_iaxa8_274",
3000
- selectedSingleValue: "_selectedSingleValue_iaxa8_278",
3001
- placeHolder: "_placeHolder_iaxa8_279",
3002
- groupOrderFirst: "_groupOrderFirst_iaxa8_318",
3003
- groupOrderMiddle: "_groupOrderMiddle_iaxa8_319",
3004
- groupOrderLast: "_groupOrderLast_iaxa8_323",
3005
- detailedLabel: "_detailedLabel_iaxa8_328"
2975
+ inputInTable: "_inputInTable_13wru_1",
2976
+ inputHover: "_inputHover_13wru_13",
2977
+ inputFocus: "_inputFocus_13wru_18",
2978
+ controlFocusVisible: "_controlFocusVisible_13wru_25",
2979
+ inputError: "_inputError_13wru_29",
2980
+ inputWarning: "_inputWarning_13wru_30",
2981
+ inputDisabled: "_inputDisabled_13wru_65",
2982
+ hideScrollbars: "_hideScrollbars_13wru_71",
2983
+ trigger: "_trigger_13wru_81",
2984
+ input: "_input_13wru_1",
2985
+ isInTable: "_isInTable_13wru_97",
2986
+ isOpen: "_isOpen_13wru_118",
2987
+ disabled: "_disabled_13wru_161",
2988
+ toggle: "_toggle_13wru_167",
2989
+ icons: "_icons_13wru_176",
2990
+ clearAll: "_clearAll_13wru_184",
2991
+ iconOpen: "_iconOpen_13wru_185",
2992
+ small: "_small_13wru_196",
2993
+ triggerInputContainer: "_triggerInputContainer_13wru_208",
2994
+ right: "_right_13wru_217",
2995
+ multiOptions: "_multiOptions_13wru_233",
2996
+ multiOption: "_multiOption_13wru_233",
2997
+ label: "_label_13wru_261",
2998
+ closeMultiOption: "_closeMultiOption_13wru_264",
2999
+ focus: "_focus_13wru_275",
3000
+ selectedSingleValue: "_selectedSingleValue_13wru_279",
3001
+ placeHolder: "_placeHolder_13wru_280",
3002
+ groupOrderFirst: "_groupOrderFirst_13wru_319",
3003
+ groupOrderMiddle: "_groupOrderMiddle_13wru_320",
3004
+ groupOrderLast: "_groupOrderLast_13wru_324",
3005
+ detailedLabel: "_detailedLabel_13wru_329"
3006
3006
  }, Rc = (e, t, n, r) => {
3007
3007
  let i = [], a = [], o = 0;
3008
3008
  return e.forEach((s, c) => {
@@ -3105,7 +3105,6 @@ var Ro = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), zo =
3105
3105
  className: b(Y.trigger, f ? Y.isOpen : "", l ? Y.disabled : "", s ? Y.small : "", c ? Y.isInTable : "", y ? Y.right : "", O),
3106
3106
  "data-error": i || null,
3107
3107
  "data-warning": a || null,
3108
- "data-testid": w,
3109
3108
  children: [
3110
3109
  /* @__PURE__ */ S(Bc, {
3111
3110
  selectedOptions: k,
@@ -3122,7 +3121,9 @@ var Ro = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), zo =
3122
3121
  /* @__PURE__ */ S(Vr, {
3123
3122
  className: Y.toggle,
3124
3123
  "aria-label": v || "Select",
3125
- "data-testid": w && `${w}-toggle`
3124
+ "data-testid": w,
3125
+ "data-error": i || null,
3126
+ "data-warning": a || null
3126
3127
  }),
3127
3128
  /* @__PURE__ */ S("span", {
3128
3129
  className: Y.icons,
@@ -3250,45 +3251,40 @@ var Ro = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), zo =
3250
3251
  hasNonExistentValue: n && s !== void 0 ? Xc(o, s) : !1
3251
3252
  };
3252
3253
  }, Qc = (e) => {
3253
- let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = yn, deprecatedEventHandler: o = !1, warning: s, error: c, checkNonExistentValues: l = !0, closeOnOptionActionClick: u = !0, testId: d, disabled: f, multi: p, ...m } = e, { multi: h, simpleInputs: g, options: _, selectedOptions: v, hasNonExistentValue: y } = Zc(n, r, l), b = !h, x = i && b;
3254
- i && !b && console.warn("Native select does not support provided props (see stories)");
3255
- let w = "Value no longer available for re-selection", T = y && !f ? s ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: w }), /* @__PURE__ */ S("div", { children: s })] }) : w : s, E = y && c && !f ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: w }), /* @__PURE__ */ S("div", { children: c })] }) : c, D = (e, n) => {
3256
- if (o) {
3257
- let e = h ? n.map((e) => g ? e.value : e) : g ? n.value : n;
3258
- e && a(e);
3259
- } else {
3260
- let r = h ? n : n.value;
3261
- a({
3262
- ...e,
3263
- target: {
3264
- name: t,
3265
- value: r,
3266
- label: h ? void 0 : n.label
3267
- }
3268
- });
3269
- }
3254
+ let { name: t = "", options: n = [], value: r, native: i = !1, onChange: a = yn, warning: o, error: s, checkNonExistentValues: c = !0, closeOnOptionActionClick: l = !0, testId: u, disabled: d, multi: f, ...p } = e, { multi: m, options: h, selectedOptions: g, hasNonExistentValue: _ } = Zc(n, r, c), v = !m, y = i && v;
3255
+ i && !v && console.warn("Native select does not support provided props (see stories)");
3256
+ let b = "Value no longer available for re-selection", x = _ && !d ? o ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: b }), /* @__PURE__ */ S("div", { children: o })] }) : b : o, w = _ && s && !d ? /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", { children: b }), /* @__PURE__ */ S("div", { children: s })] }) : s, T = (e, n) => {
3257
+ let r = m ? n : n.value;
3258
+ a({
3259
+ ...e,
3260
+ target: {
3261
+ name: t,
3262
+ value: r,
3263
+ label: m ? void 0 : n.label
3264
+ }
3265
+ });
3270
3266
  };
3271
- return x ? /* @__PURE__ */ S(oc, {
3272
- ...m,
3273
- options: _,
3274
- selectedOption: v,
3275
- onChange: D,
3276
- hasNonExistentValue: y,
3277
- warning: T,
3278
- error: E,
3279
- testId: d,
3280
- disabled: f
3267
+ return y ? /* @__PURE__ */ S(oc, {
3268
+ ...p,
3269
+ options: h,
3270
+ selectedOption: g,
3271
+ onChange: T,
3272
+ hasNonExistentValue: _,
3273
+ warning: x,
3274
+ error: w,
3275
+ testId: u,
3276
+ disabled: d
3281
3277
  }) : /* @__PURE__ */ S(Hc, {
3282
- ...m,
3283
- options: _,
3284
- selectedOptions: v,
3285
- onChange: D,
3286
- multi: h,
3287
- warning: T,
3288
- error: E,
3289
- testId: d,
3290
- disabled: f,
3291
- closeOnOptionActionClick: u
3278
+ ...p,
3279
+ options: h,
3280
+ selectedOptions: g,
3281
+ onChange: T,
3282
+ multi: m,
3283
+ warning: x,
3284
+ error: w,
3285
+ testId: u,
3286
+ disabled: d,
3287
+ closeOnOptionActionClick: l
3292
3288
  });
3293
3289
  }, $c = (e, t) => t || e && e.reduce((e, t) => t != null && t.selected ? Number(t == null ? void 0 : t.value) : e, 10) || 10, el = (e, t) => {
3294
3290
  if (!t || !e) return 10;
@@ -3636,7 +3632,6 @@ var Ro = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), zo =
3636
3632
  native: e.native,
3637
3633
  clearable: e.clearable,
3638
3634
  searchable: e.searchable,
3639
- deprecatedEventHandler: e.deprecatedEventHandler,
3640
3635
  maxTooltipWidth: e.maxTooltipWidth,
3641
3636
  width: "100%",
3642
3637
  autoLayerWidth: e.autoLayerWidth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "10.0.0-beta-19",
3
+ "version": "10.0.0-beta-21",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {