@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/global.css +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +57 -54
- package/package.json +1 -1
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: "
|
|
613
|
-
layer: "
|
|
614
|
-
layerContainer: "
|
|
615
|
-
enter: "
|
|
616
|
-
enterActive: "
|
|
617
|
-
nested: "
|
|
618
|
-
fileInput: "
|
|
619
|
-
trigger: "
|
|
620
|
-
heading: "
|
|
621
|
-
headingIcon: "
|
|
622
|
-
clickable: "
|
|
623
|
-
option: "
|
|
624
|
-
active: "
|
|
625
|
-
disabled: "
|
|
626
|
-
selected: "
|
|
627
|
-
optionContent: "
|
|
628
|
-
inline: "
|
|
629
|
-
icon: "
|
|
630
|
-
check: "
|
|
631
|
-
text: "
|
|
632
|
-
label: "
|
|
633
|
-
description: "
|
|
634
|
-
arrow: "
|
|
635
|
-
divider: "
|
|
636
|
-
deprecatedSemanticIcon: "
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
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("
|
|
842
|
-
className: K.
|
|
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: "
|
|
3338
|
-
small: "
|
|
3339
|
-
vertical: "
|
|
3340
|
-
hasArrows: "
|
|
3341
|
-
button: "
|
|
3342
|
-
label: "
|
|
3343
|
-
dot: "
|
|
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: "
|
|
5243
|
-
labelLeft: "
|
|
5244
|
-
icons: "
|
|
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,
|
|
5252
|
-
var
|
|
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:
|
|
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: (
|
|
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,
|
|
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":
|
|
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
|
-
|
|
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,
|
|
6225
|
-
let
|
|
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 ||
|
|
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":
|
|
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:
|
|
6252
|
+
children: S
|
|
6250
6253
|
});
|
|
6251
6254
|
}, Q = {
|
|
6252
6255
|
topbar: "_topbar_oyr59_11",
|
package/package.json
CHANGED