@oliasoft-open-source/react-ui-library 5.20.0 → 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
@@ -609,34 +609,35 @@ var mr = /* @__PURE__ */ function(e) {
609
609
  actionComponentContainer: "_actionComponentContainer_1t7vd_14",
610
610
  active: "_active_1t7vd_36"
611
611
  }, K = {
612
- wrapper: "_wrapper_4ezl2_1",
613
- layer: "_layer_4ezl2_5",
614
- layerContainer: "_layerContainer_4ezl2_8",
615
- enter: "_enter_4ezl2_24",
616
- enterActive: "_enterActive_4ezl2_28",
617
- nested: "_nested_4ezl2_33",
618
- fileInput: "_fileInput_4ezl2_54",
619
- trigger: "_trigger_4ezl2_59",
620
- heading: "_heading_4ezl2_68",
621
- headingIcon: "_headingIcon_4ezl2_74",
622
- clickable: "_clickable_4ezl2_81",
623
- option: "_option_4ezl2_85",
624
- active: "_active_4ezl2_104",
625
- disabled: "_disabled_4ezl2_109",
626
- selected: "_selected_4ezl2_113",
627
- optionContent: "_optionContent_4ezl2_120",
628
- inline: "_inline_4ezl2_124",
629
- icon: "_icon_4ezl2_129",
630
- check: "_check_4ezl2_130",
631
- text: "_text_4ezl2_156",
632
- label: "_label_4ezl2_161",
633
- description: "_description_4ezl2_172",
634
- arrow: "_arrow_4ezl2_176",
635
- divider: "_divider_4ezl2_180",
636
- deprecatedSemanticIcon: "_deprecatedSemanticIcon_4ezl2_184",
637
- component: "_component_4ezl2_192",
638
- right: "_right_4ezl2_198",
639
- actions: "_actions_4ezl2_203"
612
+ wrapper: "_wrapper_17ntv_1",
613
+ layer: "_layer_17ntv_5",
614
+ layerContainer: "_layerContainer_17ntv_8",
615
+ enter: "_enter_17ntv_24",
616
+ enterActive: "_enterActive_17ntv_28",
617
+ nested: "_nested_17ntv_33",
618
+ fileInput: "_fileInput_17ntv_54",
619
+ trigger: "_trigger_17ntv_59",
620
+ heading: "_heading_17ntv_68",
621
+ headingIcon: "_headingIcon_17ntv_74",
622
+ clickable: "_clickable_17ntv_81",
623
+ option: "_option_17ntv_85",
624
+ active: "_active_17ntv_104",
625
+ disabled: "_disabled_17ntv_109",
626
+ selected: "_selected_17ntv_113",
627
+ optionContent: "_optionContent_17ntv_120",
628
+ inline: "_inline_17ntv_124",
629
+ icon: "_icon_17ntv_129",
630
+ check: "_check_17ntv_130",
631
+ text: "_text_17ntv_156",
632
+ label: "_label_17ntv_161",
633
+ description: "_description_17ntv_172",
634
+ arrow: "_arrow_17ntv_176",
635
+ divider: "_divider_17ntv_180",
636
+ deprecatedSemanticIcon: "_deprecatedSemanticIcon_17ntv_184",
637
+ buttonLabel: "_buttonLabel_17ntv_192",
638
+ component: "_component_17ntv_199",
639
+ right: "_right_17ntv_205",
640
+ actions: "_actions_17ntv_210"
640
641
  }, ti = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ z("div", {
641
642
  onClick: (e) => e.stopPropagation(),
642
643
  className: K.heading,
@@ -838,8 +839,8 @@ var mr = /* @__PURE__ */ function(e) {
838
839
  className: g(K.trigger, a || p ? K.disabled : null),
839
840
  style: { width: i },
840
841
  children: /* @__PURE__ */ R(G, {
841
- label: /* @__PURE__ */ R("div", {
842
- className: K.label,
842
+ label: /* @__PURE__ */ R("span", {
843
+ className: K.buttonLabel,
843
844
  children: t
844
845
  }),
845
846
  colored: n,
@@ -3334,13 +3335,13 @@ var mr = /* @__PURE__ */ function(e) {
3334
3335
  tabIndex: e.disabled ? -1 : 0,
3335
3336
  indeterminate: e.indeterminate
3336
3337
  }), Ts = {
3337
- container: "_container_1bhdk_1",
3338
- small: "_small_1bhdk_7",
3339
- vertical: "_vertical_1bhdk_10",
3340
- hasArrows: "_hasArrows_1bhdk_14",
3341
- button: "_button_1bhdk_18",
3342
- label: "_label_1bhdk_21",
3343
- 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"
3344
3345
  }, Es = Wn((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ R(W, {
3345
3346
  text: /* @__PURE__ */ z(L, { children: [
3346
3347
  n,
@@ -5239,22 +5240,23 @@ var mr = /* @__PURE__ */ function(e) {
5239
5240
  onChange: d
5240
5241
  })] });
5241
5242
  }, rl = {
5242
- label: "_label_18pfe_1",
5243
- labelLeft: "_labelLeft_18pfe_5",
5244
- icons: "_icons_18pfe_13"
5243
+ label: "_label_uxk69_1",
5244
+ labelLeft: "_labelLeft_uxk69_5",
5245
+ icons: "_icons_uxk69_13",
5246
+ small: "_small_uxk69_27"
5245
5247
  }, il = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5246
5248
  visible: !1,
5247
5249
  active: !1,
5248
5250
  onClick: () => {},
5249
5251
  tooltip: "",
5250
5252
  testId: void 0
5251
- }, info: o, libraryIcon: s, labelLeft: c = !1, textTransform: l = vr.CAPITALIZE }) => {
5252
- var u;
5253
+ }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = vr.CAPITALIZE }) => {
5254
+ var d;
5253
5255
  return /* @__PURE__ */ R("div", {
5254
- className: g(rl.label, c ? rl.labelLeft : ""),
5256
+ className: g(rl.label, c ? rl.labelLeft : "", l ? rl.small : ""),
5255
5257
  children: /* @__PURE__ */ z("label", {
5256
5258
  style: {
5257
- textTransform: l,
5259
+ textTransform: u,
5258
5260
  width: t || ""
5259
5261
  },
5260
5262
  children: [e, /* @__PURE__ */ z("div", {
@@ -5276,7 +5278,7 @@ var mr = /* @__PURE__ */ function(e) {
5276
5278
  testId: a.testId
5277
5279
  }),
5278
5280
  s && /* @__PURE__ */ R(Ur, {
5279
- text: (u = s == null ? void 0 : s.tooltip) == null ? "" : u,
5281
+ text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
5280
5282
  onClick: s.onClick,
5281
5283
  icon: V.LIBRARY
5282
5284
  })
@@ -5297,9 +5299,9 @@ var mr = /* @__PURE__ */ function(e) {
5297
5299
  onClick: () => {},
5298
5300
  tooltip: "",
5299
5301
  testId: void 0
5300
- }, 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", {
5301
5303
  className: g(ul.field, t ? ul.labelLeft : ""),
5302
- "data-testid": u,
5304
+ "data-testid": d,
5303
5305
  children: [(e || t) && /* @__PURE__ */ R(il, {
5304
5306
  label: e,
5305
5307
  width: n,
@@ -5310,7 +5312,8 @@ var mr = /* @__PURE__ */ function(e) {
5310
5312
  info: c,
5311
5313
  libraryIcon: l,
5312
5314
  labelLeft: t,
5313
- textTransform: d
5315
+ small: u,
5316
+ textTransform: f
5314
5317
  }), /* @__PURE__ */ R("div", {
5315
5318
  className: ul.fieldInput,
5316
5319
  children: r
@@ -6221,16 +6224,16 @@ var mr = /* @__PURE__ */ function(e) {
6221
6224
  textarea: "_textarea_q0tl0_77",
6222
6225
  small: "_small_q0tl0_116",
6223
6226
  monospace: "_monospace_q0tl0_155"
6224
- }, 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 }) => {
6225
- let b = s(H), x = /* @__PURE__ */ R("textarea", {
6226
- 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 : ""),
6227
6230
  name: e,
6228
6231
  value: t,
6229
6232
  placeholder: n,
6230
6233
  cols: r,
6231
6234
  rows: i,
6232
6235
  onChange: o,
6233
- disabled: a || b,
6236
+ disabled: a || x,
6234
6237
  onKeyPress: c,
6235
6238
  onFocus: l,
6236
6239
  onBlur: u,
@@ -6238,7 +6241,7 @@ var mr = /* @__PURE__ */ function(e) {
6238
6241
  style: { resize: _ },
6239
6242
  "data-error": f || null,
6240
6243
  "data-warning": p || null,
6241
- "data-testid": y
6244
+ "data-testid": b
6242
6245
  });
6243
6246
  return /* @__PURE__ */ R(W, {
6244
6247
  error: !!f,
@@ -6246,7 +6249,7 @@ var mr = /* @__PURE__ */ function(e) {
6246
6249
  text: m || f || p,
6247
6250
  enabled: m && q(m) || f && q(f) || p && q(p) || !1,
6248
6251
  maxWidth: h,
6249
- children: x
6252
+ children: S
6250
6253
  });
6251
6254
  }, Q = {
6252
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.0",
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": {