@webority/ui-react 0.6.2 → 0.6.3

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/ui-react.js +25 -19
  2. package/package.json +3 -3
package/dist/ui-react.js CHANGED
@@ -2273,7 +2273,8 @@ function ge({ value: e, onChange: r, options: a, loadOptions: o, placeholder: c
2273
2273
  remote: y ? "" : void 0,
2274
2274
  "min-chars": l == null ? void 0 : String(l),
2275
2275
  debounce: u == null ? void 0 : String(u),
2276
- disabled: d ? "" : void 0
2276
+ disabled: d ? "" : void 0,
2277
+ required: g ? "" : void 0
2277
2278
  }),
2278
2279
  m ? /* @__PURE__ */ t("div", {
2279
2280
  className: "field-error",
@@ -2333,11 +2334,16 @@ var be = {
2333
2334
  danger: "danger"
2334
2335
  };
2335
2336
  function K(e, n) {
2336
- return e ? typeof e == "string" ? /* @__PURE__ */ t(x, {
2337
+ if (!e) return null;
2338
+ let r = n === "left" ? "me-2" : "ms-2";
2339
+ return typeof e == "string" ? /* @__PURE__ */ t(x, {
2337
2340
  name: e,
2338
2341
  size: 16,
2339
- className: n === "left" ? "me-2" : "ms-2"
2340
- }) : e : null;
2342
+ className: r
2343
+ }) : /* @__PURE__ */ t("span", {
2344
+ className: `d-inline-flex ${r}`,
2345
+ children: e
2346
+ });
2341
2347
  }
2342
2348
  function q({ children: e, variant: r = "primary", size: i = "md", type: a = "button", loading: o = !1, disabled: s = !1, block: c = !1, leftIcon: l = null, rightIcon: u = null, className: f = "", ...p }) {
2343
2349
  let m = [c ? "w-100" : "", f].filter(Boolean).join(" ");
@@ -2498,7 +2504,7 @@ function Te({ name: r, multiple: i = !1, value: a, checked: o, onChange: s, icon
2498
2504
  }) : null,
2499
2505
  /* @__PURE__ */ t("span", {
2500
2506
  className: "struct-card-body",
2501
- children: p || /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
2507
+ children: p || /* @__PURE__ */ n(e, { children: [m && /* @__PURE__ */ t("span", {
2502
2508
  className: "struct-card-title",
2503
2509
  children: m
2504
2510
  }), h && /* @__PURE__ */ t("span", {
@@ -2734,11 +2740,11 @@ var Y = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, hel
2734
2740
  htmlFor: T,
2735
2741
  children: [
2736
2742
  e,
2743
+ r && /* @__PURE__ */ t(G, {}),
2737
2744
  o && /* @__PURE__ */ t(J, {
2738
2745
  label: s,
2739
2746
  children: o
2740
- }),
2741
- r && /* @__PURE__ */ t(G, {})
2747
+ })
2742
2748
  ]
2743
2749
  }),
2744
2750
  A,
@@ -3162,7 +3168,8 @@ function Ve({ value: e, onChange: r, label: o, required: c = !1, hint: l, error:
3162
3168
  placeholder: m,
3163
3169
  "aria-label": _,
3164
3170
  "aria-invalid": u ? "true" : void 0,
3165
- disabled: h ? "" : void 0
3171
+ disabled: h ? "" : void 0,
3172
+ required: c ? "" : void 0
3166
3173
  });
3167
3174
  return !o && !u && !l ? S : /* @__PURE__ */ n("div", {
3168
3175
  className: `field${v ? ` ${v}` : ""}`,
@@ -3684,7 +3691,8 @@ function Qe({ values: e, onChange: r, options: a, placeholder: o = "Select…",
3684
3691
  placeholder: o,
3685
3692
  "search-placeholder": c,
3686
3693
  searchable: l ? "" : void 0,
3687
- disabled: u ? "" : void 0
3694
+ disabled: u ? "" : void 0,
3695
+ required: h ? "" : void 0
3688
3696
  }),
3689
3697
  p ? /* @__PURE__ */ t("div", {
3690
3698
  className: "field-error",
@@ -3854,11 +3862,7 @@ function rt({ rows: e = [], renderRow: r, onAdd: i, onRemove: a, addLabel: o = "
3854
3862
  /* @__PURE__ */ t(q, {
3855
3863
  variant: "secondary",
3856
3864
  size: "sm",
3857
- leftIcon: /* @__PURE__ */ t(x, {
3858
- name: "plus",
3859
- size: 14,
3860
- className: "me-1"
3861
- }),
3865
+ leftIcon: "plus",
3862
3866
  className: "repeater-add",
3863
3867
  disabled: p,
3864
3868
  onClick: i,
@@ -3990,7 +3994,8 @@ function ct({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
3990
3994
  placeholder: o,
3991
3995
  "search-placeholder": c,
3992
3996
  searchable: l ? "" : void 0,
3993
- disabled: u ? "" : void 0
3997
+ disabled: u ? "" : void 0,
3998
+ required: f ? "" : void 0
3994
3999
  });
3995
4000
  if (!d && !p && !m) return x;
3996
4001
  let S = _ || v;
@@ -4002,11 +4007,11 @@ function ct({ value: e, onChange: r, options: a = [], placeholder: o = "Select..
4002
4007
  htmlFor: S,
4003
4008
  children: [
4004
4009
  d,
4010
+ f && /* @__PURE__ */ t(G, {}),
4005
4011
  h && /* @__PURE__ */ t(J, {
4006
4012
  label: g,
4007
4013
  children: h
4008
- }),
4009
- f && /* @__PURE__ */ t(G, {})
4014
+ })
4010
4015
  ]
4011
4016
  }),
4012
4017
  x,
@@ -4413,11 +4418,11 @@ var bt = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
4413
4418
  htmlFor: g,
4414
4419
  children: [
4415
4420
  e,
4421
+ r && /* @__PURE__ */ t(G, {}),
4416
4422
  o && /* @__PURE__ */ t(J, {
4417
4423
  label: s,
4418
4424
  children: o
4419
- }),
4420
- r && /* @__PURE__ */ t(G, {})
4425
+ })
4421
4426
  ]
4422
4427
  }),
4423
4428
  /* @__PURE__ */ t(p.Control, {
@@ -4427,6 +4432,7 @@ var bt = r(function({ label: e, required: r = !1, error: i, hint: a, help: o, he
4427
4432
  rows: u,
4428
4433
  className: _,
4429
4434
  "aria-invalid": i ? "true" : "false",
4435
+ required: r,
4430
4436
  ref: h,
4431
4437
  ...m
4432
4438
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -29,8 +29,8 @@
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
31
  "react-toastify": "^11.1.0",
32
- "@webority/theme": "^0.6.2",
33
- "@webority/ui-elements": "^0.6.2"
32
+ "@webority/theme": "^0.6.3",
33
+ "@webority/ui-elements": "^0.6.3"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "bootstrap": "5.3.3",