@oliasoft-open-source/react-ui-library 5.20.1 → 5.21.0

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
@@ -122,7 +122,7 @@ export declare enum ElementType {
122
122
 
123
123
  export declare const Empty: ({ width, height, text, children, testId, }: IEmptyProps) => JSX_2.Element;
124
124
 
125
- export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, testId, textTransform, }: IFieldProps) => JSX_2.Element;
125
+ export declare const Field: ({ label, labelLeft, labelWidth, children, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, small, testId, textTransform, }: IFieldProps) => JSX_2.Element;
126
126
 
127
127
  export declare const FileButton: ({ file, accept, multi, name, disabled, onChange, ...buttonProps }: IFileButtonProps) => JSX_2.Element;
128
128
 
@@ -512,6 +512,7 @@ export declare interface IFieldProps {
512
512
  lock?: ILabelLockProps;
513
513
  info?: string;
514
514
  libraryIcon?: ILabelIcon;
515
+ small?: boolean;
515
516
  testId?: string;
516
517
  textTransform?: TTextTransform;
517
518
  }
@@ -698,6 +699,7 @@ export declare interface ILabelProps {
698
699
  lock?: ILabelLockProps;
699
700
  libraryIcon?: ILabelIcon;
700
701
  labelLeft?: boolean;
702
+ small?: boolean;
701
703
  textTransform?: TTextTransform;
702
704
  }
703
705
 
@@ -1676,6 +1678,7 @@ export declare interface ITextAreaProps {
1676
1678
  maxTooltipWidth?: TStringOrNumber;
1677
1679
  resize?: Property.Resize;
1678
1680
  monospace?: boolean;
1681
+ small?: boolean;
1679
1682
  testId?: string;
1680
1683
  }
1681
1684
 
@@ -1939,7 +1942,7 @@ export declare interface IUsageTrackerProps {
1939
1942
 
1940
1943
  declare type JsonDelta = Record<string, any>;
1941
1944
 
1942
- export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, textTransform, }: ILabelProps) => JSX_2.Element;
1945
+ export declare const Label: ({ label, width, helpText, helpTextMaxWidth, onClickHelp, lock, info, libraryIcon, labelLeft, small, textTransform, }: ILabelProps) => JSX_2.Element;
1943
1946
 
1944
1947
  export declare const List: ({ list, bordered, expanding, narrow, toggleNarrow, onToggleNarrow, invokeEditOnRowClick, noHeader, stickyHeader, draggable, onListReorder, marginBottom, height, testId, scrollDetails, }: IListProps) => JSX_2.Element;
1945
1948
 
@@ -2106,7 +2109,7 @@ export declare type TExportData = {
2106
2109
  declare const Text_2: ({ children, bold, center, error, faint, link, muted, onClick, small, success, warning, }: ITextProps) => JSX_2.Element;
2107
2110
  export { Text_2 as Text }
2108
2111
 
2109
- export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled, onChange, onKeyPress, onFocus, onBlur, tabIndex, error, warning, tooltip, maxTooltipWidth, resize, monospace, testId, }: ITextAreaProps) => JSX_2.Element;
2112
+ export declare const TextArea: ({ name, value, placeholder, cols, rows, disabled, onChange, onKeyPress, onFocus, onBlur, tabIndex, error, warning, tooltip, maxTooltipWidth, resize, monospace, small, testId, }: ITextAreaProps) => JSX_2.Element;
2110
2113
 
2111
2114
  export declare const TextLink: ({ children, href, target, testId, onClick, component: Component, }: ITextLinkProps) => JSX_2.Element;
2112
2115
 
package/dist/index.js CHANGED
@@ -3335,13 +3335,13 @@ var mr = /* @__PURE__ */ function(e) {
3335
3335
  tabIndex: e.disabled ? -1 : 0,
3336
3336
  indeterminate: e.indeterminate
3337
3337
  }), Ts = {
3338
- container: "_container_1bhdk_1",
3339
- small: "_small_1bhdk_7",
3340
- vertical: "_vertical_1bhdk_10",
3341
- hasArrows: "_hasArrows_1bhdk_14",
3342
- button: "_button_1bhdk_18",
3343
- label: "_label_1bhdk_21",
3344
- dot: "_dot_1bhdk_29"
3338
+ container: "_container_1vgw8_1",
3339
+ small: "_small_1vgw8_7",
3340
+ vertical: "_vertical_1vgw8_10",
3341
+ hasArrows: "_hasArrows_1vgw8_14",
3342
+ button: "_button_1vgw8_18",
3343
+ label: "_label_1vgw8_21",
3344
+ dot: "_dot_1vgw8_32"
3345
3345
  }, Es = Wn((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ R(W, {
3346
3346
  text: /* @__PURE__ */ z(L, { children: [
3347
3347
  n,
@@ -5240,22 +5240,23 @@ var mr = /* @__PURE__ */ function(e) {
5240
5240
  onChange: d
5241
5241
  })] });
5242
5242
  }, rl = {
5243
- label: "_label_18pfe_1",
5244
- labelLeft: "_labelLeft_18pfe_5",
5245
- icons: "_icons_18pfe_13"
5243
+ label: "_label_uxk69_1",
5244
+ labelLeft: "_labelLeft_uxk69_5",
5245
+ icons: "_icons_uxk69_13",
5246
+ small: "_small_uxk69_27"
5246
5247
  }, il = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5247
5248
  visible: !1,
5248
5249
  active: !1,
5249
5250
  onClick: () => {},
5250
5251
  tooltip: "",
5251
5252
  testId: void 0
5252
- }, info: o, libraryIcon: s, labelLeft: c = !1, textTransform: l = vr.CAPITALIZE }) => {
5253
- var u;
5253
+ }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = vr.CAPITALIZE }) => {
5254
+ var d;
5254
5255
  return /* @__PURE__ */ R("div", {
5255
- className: g(rl.label, c ? rl.labelLeft : ""),
5256
+ className: g(rl.label, c ? rl.labelLeft : "", l ? rl.small : ""),
5256
5257
  children: /* @__PURE__ */ z("label", {
5257
5258
  style: {
5258
- textTransform: l,
5259
+ textTransform: u,
5259
5260
  width: t || ""
5260
5261
  },
5261
5262
  children: [e, /* @__PURE__ */ z("div", {
@@ -5277,7 +5278,7 @@ var mr = /* @__PURE__ */ function(e) {
5277
5278
  testId: a.testId
5278
5279
  }),
5279
5280
  s && /* @__PURE__ */ R(Ur, {
5280
- text: (u = s == null ? void 0 : s.tooltip) == null ? "" : u,
5281
+ text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
5281
5282
  onClick: s.onClick,
5282
5283
  icon: V.LIBRARY
5283
5284
  })
@@ -5298,9 +5299,9 @@ var mr = /* @__PURE__ */ function(e) {
5298
5299
  onClick: () => {},
5299
5300
  tooltip: "",
5300
5301
  testId: void 0
5301
- }, info: c, libraryIcon: l, testId: u, textTransform: d = vr.CAPITALIZE }) => /* @__PURE__ */ z("div", {
5302
+ }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = vr.CAPITALIZE }) => /* @__PURE__ */ z("div", {
5302
5303
  className: g(ul.field, t ? ul.labelLeft : ""),
5303
- "data-testid": u,
5304
+ "data-testid": d,
5304
5305
  children: [(e || t) && /* @__PURE__ */ R(il, {
5305
5306
  label: e,
5306
5307
  width: n,
@@ -5311,7 +5312,8 @@ var mr = /* @__PURE__ */ function(e) {
5311
5312
  info: c,
5312
5313
  libraryIcon: l,
5313
5314
  labelLeft: t,
5314
- textTransform: d
5315
+ small: u,
5316
+ textTransform: f
5315
5317
  }), /* @__PURE__ */ R("div", {
5316
5318
  className: ul.fieldInput,
5317
5319
  children: r
@@ -6222,16 +6224,16 @@ var mr = /* @__PURE__ */ function(e) {
6222
6224
  textarea: "_textarea_q0tl0_77",
6223
6225
  small: "_small_q0tl0_116",
6224
6226
  monospace: "_monospace_q0tl0_155"
6225
- }, du = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = tn, onKeyPress: c = tn, onFocus: l = tn, onBlur: u = tn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: v = !1, testId: y }) => {
6226
- let b = s(H), x = /* @__PURE__ */ R("textarea", {
6227
- className: g(uu.textarea, f ? uu.error : "", p ? uu.warning : "", v ? uu.monospace : ""),
6227
+ }, du = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = tn, onKeyPress: c = tn, onFocus: l = tn, onBlur: u = tn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: v = !1, small: y = !1, testId: b }) => {
6228
+ let x = s(H), S = /* @__PURE__ */ R("textarea", {
6229
+ className: g(uu.textarea, f ? uu.error : "", p ? uu.warning : "", v ? uu.monospace : "", y ? uu.small : ""),
6228
6230
  name: e,
6229
6231
  value: t,
6230
6232
  placeholder: n,
6231
6233
  cols: r,
6232
6234
  rows: i,
6233
6235
  onChange: o,
6234
- disabled: a || b,
6236
+ disabled: a || x,
6235
6237
  onKeyPress: c,
6236
6238
  onFocus: l,
6237
6239
  onBlur: u,
@@ -6239,7 +6241,7 @@ var mr = /* @__PURE__ */ function(e) {
6239
6241
  style: { resize: _ },
6240
6242
  "data-error": f || null,
6241
6243
  "data-warning": p || null,
6242
- "data-testid": y
6244
+ "data-testid": b
6243
6245
  });
6244
6246
  return /* @__PURE__ */ R(W, {
6245
6247
  error: !!f,
@@ -6247,7 +6249,7 @@ var mr = /* @__PURE__ */ function(e) {
6247
6249
  text: m || f || p,
6248
6250
  enabled: m && q(m) || f && q(f) || p && q(p) || !1,
6249
6251
  maxWidth: h,
6250
- children: x
6252
+ children: S
6251
6253
  });
6252
6254
  }, Q = {
6253
6255
  topbar: "_topbar_oyr59_11",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.20.1",
3
+ "version": "5.21.0",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {