@oliasoft-open-source/react-ui-library 4.11.2-beta-1 → 4.11.2-beta-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.
- package/dist/global.css +14 -15
- package/dist/index.js +20 -23
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-KGDBMAHA-B-shawjD.js → Color-KGDBMAHA-BU5Cvr93.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-PKQXORMH-CcJF_zh-.js → DocsRenderer-PKQXORMH-giM41WN8.js} +1 -1
- package/dist/storybook/assets/{accordion.stories-BPKMbG3k.js → accordion.stories-BlHfHegj.js} +1 -1
- package/dist/storybook/assets/{buttons-and-links-BG2zqnHT.js → buttons-and-links-BA3MNFjq.js} +1 -1
- package/dist/storybook/assets/{casing-loads.stories-BbYDH_71.js → casing-loads.stories-Cl2tJipP.js} +1 -1
- package/dist/storybook/assets/{cell.stories-DC1Vo0__.js → cell.stories-rzJE_qJC.js} +1 -1
- package/dist/storybook/assets/{chunk-HLWAVYOI-CM47_bXG.js → chunk-HLWAVYOI-Dvbg03uT.js} +1 -1
- package/dist/storybook/assets/{color-Cr-qn3FE.js → color-DIyQ13kP.js} +1 -1
- package/dist/storybook/assets/{footer.stories-DstLAiJp.js → footer.stories-C6M5S0UZ.js} +1 -1
- package/dist/storybook/assets/{form.stories-C8YjdHnX.js → form.stories-BNORsn6Z.js} +1 -1
- package/dist/storybook/assets/{formation.stories-Bt29JldX.js → formation.stories-1WX1Nu1P.js} +1 -1
- package/dist/storybook/assets/{iframe-CzFXqOr-.js → iframe-B0e2q2Zd.js} +2 -2
- package/dist/storybook/assets/{index-B5IpJ81Q.js → index-BXJ79Lvz.js} +1 -1
- package/dist/storybook/assets/{index-CR-eYtkm.js → index-BlyDuQBv.js} +4 -4
- package/dist/storybook/assets/{initialize-context-rEvM6bdZ.js → initialize-context-Y03pJPr5.js} +1 -1
- package/dist/storybook/assets/{input-validation-xYDgrqcS.js → input-validation-CLZKtfoW.js} +1 -1
- package/dist/storybook/assets/{inputs-BKaZW2Pv.js → inputs-DlW6Jeem.js} +1 -1
- package/dist/storybook/assets/{layout-forms-D2dIpGLv.js → layout-forms-C6ZH-nYk.js} +1 -1
- package/dist/storybook/assets/{layout-general-szYPo7Nk.js → layout-general-CWqOMwXA.js} +1 -1
- package/dist/storybook/assets/{number-input-CNnU6gOF.js → number-input-B3_gmeWr.js} +1 -1
- package/dist/storybook/assets/{number-input.stories-Bo26PJmJ.js → number-input.stories-epjUq9ve.js} +1 -1
- package/dist/storybook/assets/number-input.test-case.stories-DeEtalIU.js +95 -0
- package/dist/storybook/assets/{padding-and-spacing-rWdBf9ln.js → padding-and-spacing-CfnXk0Zn.js} +1 -1
- package/dist/storybook/assets/{preview-BpH8OxJT.js → preview-b9pkIJl_.js} +2 -2
- package/dist/storybook/assets/{preview-CVuoXXv0.js → preview-jWpKVqju.js} +1 -1
- package/dist/storybook/assets/{row.stories-DFKACj3C.js → row.stories-DRvH8Grn.js} +1 -1
- package/dist/storybook/assets/{slider-Dvdl3yGr.js → slider-CcpE4BLD.js} +4 -4
- package/dist/storybook/assets/{slider-Cf9tPrCy.css → slider-DnRddBCy.css} +1 -1
- package/dist/storybook/assets/slider.stories-BqlRLY_C.js +171 -0
- package/dist/storybook/assets/{table-CkNaVBsz.js → table-DoyDBG6l.js} +1 -1
- package/dist/storybook/assets/{table.stories-rxOOpdhc.js → table.stories-BgWKzIob.js} +1 -1
- package/dist/storybook/assets/{title.stories-CcqyFQEQ.js → title.stories-Rv6ZO_Wl.js} +1 -1
- package/dist/storybook/assets/{unit-input-Byipu-z0.js → unit-input-BXg4VphV.js} +1 -1
- package/dist/storybook/assets/{unit-input.stories-CChVbxmI.js → unit-input.stories-Btz2M_TP.js} +1 -1
- package/dist/storybook/assets/{unit-input.test-case.stories-BwKiucyc.js → unit-input.test-case.stories-CZD1jf36.js} +1 -1
- package/dist/storybook/assets/{unit-table.stories-DvpNdCS9.js → unit-table.stories-CISvZMxX.js} +1 -1
- package/dist/storybook/assets/{unit-table.test-case.stories-OSAkErH8.js → unit-table.test-case.stories-tEype9om.js} +1 -1
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/package.json +1 -1
- package/dist/storybook/assets/number-input.test-case.stories-BBKpBWfA.js +0 -92
- package/dist/storybook/assets/slider.stories-ai1lgqaI.js +0 -134
package/dist/global.css
CHANGED
|
@@ -9373,9 +9373,6 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
9373
9373
|
border-width: 4px 4px 0;
|
|
9374
9374
|
border-top-color: #6c6c6c;
|
|
9375
9375
|
}
|
|
9376
|
-
.rc-slider {
|
|
9377
|
-
--height-slider: 14px;
|
|
9378
|
-
}
|
|
9379
9376
|
.rc-slider:not(.rc-slider-disabled) .rc-slider-rail {
|
|
9380
9377
|
background-color: var(--color-border);
|
|
9381
9378
|
}
|
|
@@ -9398,8 +9395,11 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
9398
9395
|
.rc-slider .rc-slider-handle {
|
|
9399
9396
|
opacity: 1;
|
|
9400
9397
|
}
|
|
9401
|
-
.rc-slider .rc-slider-mark {
|
|
9402
|
-
|
|
9398
|
+
.rc-slider .rc-slider-mark-text {
|
|
9399
|
+
color: var(--color-text-faint);
|
|
9400
|
+
}
|
|
9401
|
+
.rc-slider .rc-slider-mark-text-active {
|
|
9402
|
+
color: var(--color-text-muted);
|
|
9403
9403
|
}
|
|
9404
9404
|
.rc-slider-disabled {
|
|
9405
9405
|
background-color: transparent !important;
|
|
@@ -9409,27 +9409,30 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
9409
9409
|
.rc-slider-disabled .rc-slider-dot {
|
|
9410
9410
|
cursor: default !important;
|
|
9411
9411
|
}
|
|
9412
|
-
.
|
|
9412
|
+
._container_1a936_1 {
|
|
9413
9413
|
display: flex;
|
|
9414
9414
|
align-items: center;
|
|
9415
9415
|
min-height: var(--size);
|
|
9416
9416
|
gap: 4px;
|
|
9417
9417
|
}
|
|
9418
|
-
.
|
|
9418
|
+
._container_1a936_1._small_1a936_7 {
|
|
9419
9419
|
min-height: var(--size-sm);
|
|
9420
9420
|
}
|
|
9421
|
-
.
|
|
9421
|
+
._container_1a936_1._hasMarks_1a936_10 {
|
|
9422
|
+
padding-bottom: 20px;
|
|
9423
|
+
}
|
|
9424
|
+
._container_1a936_1._vertical_1a936_13 {
|
|
9422
9425
|
flex-direction: column;
|
|
9423
9426
|
padding-bottom: 0;
|
|
9424
9427
|
}
|
|
9425
|
-
.
|
|
9428
|
+
._container_1a936_1._vertical_1a936_13 ._hasArrows_1a936_17 {
|
|
9426
9429
|
margin-top: 5px;
|
|
9427
9430
|
margin-bottom: 5px;
|
|
9428
9431
|
}
|
|
9429
|
-
.
|
|
9432
|
+
._container_1a936_1._vertical_1a936_13 ._button_1a936_21 svg {
|
|
9430
9433
|
transform: rotate(-90deg);
|
|
9431
9434
|
}
|
|
9432
|
-
.
|
|
9435
|
+
._label_1a936_24 {
|
|
9433
9436
|
white-space: nowrap;
|
|
9434
9437
|
margin-left: var(--padding-xs);
|
|
9435
9438
|
line-height: 1;
|
|
@@ -9437,10 +9440,6 @@ button:active .remirror-menu-pane-shortcut,
|
|
|
9437
9440
|
text-overflow: ellipsis;
|
|
9438
9441
|
flex-shrink: 0;
|
|
9439
9442
|
}
|
|
9440
|
-
._dot_1bhdk_29 {
|
|
9441
|
-
width: 8px;
|
|
9442
|
-
height: 14px;
|
|
9443
|
-
}
|
|
9444
9443
|
._inputInTable_1dg3w_1 {
|
|
9445
9444
|
background-color: transparent;
|
|
9446
9445
|
border-radius: inherit !important;
|
package/dist/index.js
CHANGED
|
@@ -4494,7 +4494,7 @@ const label$9 = "_label_nwprz_11";
|
|
|
4494
4494
|
const dark = "_dark_nwprz_23";
|
|
4495
4495
|
const light = "_light_nwprz_26";
|
|
4496
4496
|
const small$b = "_small_nwprz_29";
|
|
4497
|
-
const dot
|
|
4497
|
+
const dot = "_dot_nwprz_33";
|
|
4498
4498
|
const hasChildren = "_hasChildren_nwprz_39";
|
|
4499
4499
|
const styles$K = {
|
|
4500
4500
|
wrapper: wrapper$3,
|
|
@@ -4503,7 +4503,7 @@ const styles$K = {
|
|
|
4503
4503
|
dark,
|
|
4504
4504
|
light,
|
|
4505
4505
|
small: small$b,
|
|
4506
|
-
dot
|
|
4506
|
+
dot,
|
|
4507
4507
|
hasChildren
|
|
4508
4508
|
};
|
|
4509
4509
|
const isDark = (hexColor) => {
|
|
@@ -55158,35 +55158,27 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
55158
55158
|
}
|
|
55159
55159
|
var _default = Handle;
|
|
55160
55160
|
default_1 = Handle$1.default = _default;
|
|
55161
|
-
const container = "
|
|
55162
|
-
const small$2 = "
|
|
55163
|
-
const
|
|
55164
|
-
const
|
|
55165
|
-
const
|
|
55166
|
-
const
|
|
55167
|
-
const
|
|
55161
|
+
const container = "_container_1a936_1";
|
|
55162
|
+
const small$2 = "_small_1a936_7";
|
|
55163
|
+
const hasMarks = "_hasMarks_1a936_10";
|
|
55164
|
+
const vertical = "_vertical_1a936_13";
|
|
55165
|
+
const hasArrows = "_hasArrows_1a936_17";
|
|
55166
|
+
const button$1 = "_button_1a936_21";
|
|
55167
|
+
const label$1 = "_label_1a936_24";
|
|
55168
55168
|
const styles$c = {
|
|
55169
55169
|
container,
|
|
55170
55170
|
small: small$2,
|
|
55171
|
+
hasMarks,
|
|
55171
55172
|
vertical,
|
|
55172
55173
|
hasArrows,
|
|
55173
55174
|
button: button$1,
|
|
55174
|
-
label: label$1
|
|
55175
|
-
dot
|
|
55175
|
+
label: label$1
|
|
55176
55176
|
};
|
|
55177
55177
|
const formatMarkers = (marks) => {
|
|
55178
55178
|
return marks.reduce((acc, { label: label2, tooltip: tooltip2, value }) => {
|
|
55179
|
-
|
|
55180
|
-
|
|
55181
|
-
|
|
55182
|
-
text: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
55183
|
-
tooltip2,
|
|
55184
|
-
tooltip2 ? ": " : "",
|
|
55185
|
-
label2 ?? value
|
|
55186
|
-
] }),
|
|
55187
|
-
children: /* @__PURE__ */ jsx("div", { className: styles$c.dot })
|
|
55188
|
-
}
|
|
55189
|
-
);
|
|
55179
|
+
const isTooltip = tooltip2 !== void 0;
|
|
55180
|
+
const formattedValue = isTooltip ? /* @__PURE__ */ jsx(Tooltip, { text: tooltip2, children: label2 }) : label2 || value;
|
|
55181
|
+
acc[value] = formattedValue;
|
|
55190
55182
|
return acc;
|
|
55191
55183
|
}, {});
|
|
55192
55184
|
};
|
|
@@ -55263,7 +55255,8 @@ const Slider = ({
|
|
|
55263
55255
|
className: cx$2(
|
|
55264
55256
|
styles$c.container,
|
|
55265
55257
|
small2 ? styles$c.small : "",
|
|
55266
|
-
vertical2.enabled ? styles$c.vertical : ""
|
|
55258
|
+
vertical2.enabled ? styles$c.vertical : "",
|
|
55259
|
+
!isEmpty(marks) ? styles$c.hasMarks : ""
|
|
55267
55260
|
),
|
|
55268
55261
|
style: vertical2.enabled ? { width: vertical2.width, height: vertical2.height } : { width: width2 },
|
|
55269
55262
|
children: [
|
|
@@ -55659,6 +55652,10 @@ const NumberInput = ({
|
|
|
55659
55652
|
const validateInputValue = (value2) => {
|
|
55660
55653
|
const validation = validateNumber(value2);
|
|
55661
55654
|
const isPlaceholder = placeholder3 && isEmptyNullOrUndefined(value2);
|
|
55655
|
+
const isInfinity = [Infinity, -Infinity].includes(Number(value2));
|
|
55656
|
+
if (isInfinity) {
|
|
55657
|
+
return { valid: true, errors: [] };
|
|
55658
|
+
}
|
|
55662
55659
|
if (isPlaceholder) {
|
|
55663
55660
|
return { valid: true, errors: [] };
|
|
55664
55661
|
}
|