@oliasoft-open-source/react-ui-library 3.6.3 → 3.6.5
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 +17 -17
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/global.css
CHANGED
|
@@ -26546,7 +26546,7 @@ html[data-theme='dark'] {
|
|
|
26546
26546
|
--color-background-toggle: rgba(255, 255, 255, 0.2);
|
|
26547
26547
|
--color-background-toggle-hover: rgba(255, 255, 255, 0.3);
|
|
26548
26548
|
}
|
|
26549
|
-
.
|
|
26549
|
+
._toggle_1s3iw_341 {
|
|
26550
26550
|
position: relative;
|
|
26551
26551
|
display: inline-flex;
|
|
26552
26552
|
align-items: center;
|
|
@@ -26561,11 +26561,11 @@ html[data-theme='dark'] {
|
|
|
26561
26561
|
min-width: 17px;
|
|
26562
26562
|
margin: 10px 0 11px 0;
|
|
26563
26563
|
}
|
|
26564
|
-
.
|
|
26564
|
+
._toggle_1s3iw_341._small_1s3iw_356 {
|
|
26565
26565
|
margin: 3px 0;
|
|
26566
26566
|
font-size: 12px;
|
|
26567
26567
|
}
|
|
26568
|
-
.
|
|
26568
|
+
._toggle_1s3iw_341 input {
|
|
26569
26569
|
width: 34px;
|
|
26570
26570
|
height: 17px;
|
|
26571
26571
|
cursor: pointer;
|
|
@@ -26583,7 +26583,7 @@ html[data-theme='dark'] {
|
|
|
26583
26583
|
line-height: 1.15;
|
|
26584
26584
|
margin: 0;
|
|
26585
26585
|
}
|
|
26586
|
-
.
|
|
26586
|
+
._toggle_1s3iw_341 label {
|
|
26587
26587
|
min-height: 17px;
|
|
26588
26588
|
padding-left: 43px;
|
|
26589
26589
|
transition: color 0.1s ease;
|
|
@@ -26593,8 +26593,8 @@ html[data-theme='dark'] {
|
|
|
26593
26593
|
outline: 0;
|
|
26594
26594
|
font-size: 1em;
|
|
26595
26595
|
}
|
|
26596
|
-
.
|
|
26597
|
-
.
|
|
26596
|
+
._toggle_1s3iw_341 label:before,
|
|
26597
|
+
._toggle_1s3iw_341 label:after {
|
|
26598
26598
|
display: block;
|
|
26599
26599
|
position: absolute;
|
|
26600
26600
|
content: '';
|
|
@@ -26602,7 +26602,7 @@ html[data-theme='dark'] {
|
|
|
26602
26602
|
height: 17px;
|
|
26603
26603
|
border-radius: calc(17px / 2);
|
|
26604
26604
|
}
|
|
26605
|
-
.
|
|
26605
|
+
._toggle_1s3iw_341 label:before {
|
|
26606
26606
|
z-index: 1;
|
|
26607
26607
|
transform: none;
|
|
26608
26608
|
background: var(--color-background-toggle);
|
|
@@ -26611,7 +26611,7 @@ html[data-theme='dark'] {
|
|
|
26611
26611
|
left: 0;
|
|
26612
26612
|
transition: background 0.3s ease, border 0.1s ease, opacity 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
|
|
26613
26613
|
}
|
|
26614
|
-
.
|
|
26614
|
+
._toggle_1s3iw_341 label:after {
|
|
26615
26615
|
left: -0.05rem;
|
|
26616
26616
|
box-shadow: 0 1px 2px 0 rgba(34, 36, 38, 0.15), 0 0 0 1px rgba(34, 36, 38, 0.15) inset;
|
|
26617
26617
|
background: #fff linear-gradient(transparent, rgba(0, 0, 0, 0.05));
|
|
@@ -26620,31 +26620,31 @@ html[data-theme='dark'] {
|
|
|
26620
26620
|
width: 17px;
|
|
26621
26621
|
transition: background 0.3s ease, left 0.3s ease;
|
|
26622
26622
|
}
|
|
26623
|
-
.
|
|
26623
|
+
._toggle_1s3iw_341 input:hover ~ label:before {
|
|
26624
26624
|
background: var(--color-background-toggle-hover);
|
|
26625
26625
|
}
|
|
26626
|
-
.
|
|
26626
|
+
._toggle_1s3iw_341 input:checked ~ label:before {
|
|
26627
26627
|
border-color: rgba(34, 36, 38, 0.35);
|
|
26628
26628
|
background-color: var(--color-background-button-primary);
|
|
26629
26629
|
}
|
|
26630
|
-
.
|
|
26630
|
+
._toggle_1s3iw_341 input:checked ~ label:after {
|
|
26631
26631
|
left: 17px;
|
|
26632
26632
|
}
|
|
26633
|
-
.
|
|
26633
|
+
._toggle_1s3iw_341 input:checked:hover ~ label:before {
|
|
26634
26634
|
background-color: var(--color-background-button-primary-hover);
|
|
26635
26635
|
}
|
|
26636
|
-
.
|
|
26636
|
+
._toggle_1s3iw_341._disabled_1s3iw_428 {
|
|
26637
26637
|
cursor: default;
|
|
26638
26638
|
pointer-events: none;
|
|
26639
26639
|
color: var(--color-text-muted);
|
|
26640
26640
|
}
|
|
26641
|
-
.
|
|
26642
|
-
background-color: var(--color-background-disabled)
|
|
26641
|
+
._toggle_1s3iw_341._disabled_1s3iw_428 label:before {
|
|
26642
|
+
background-color: var(--color-background-disabled);
|
|
26643
26643
|
}
|
|
26644
|
-
.
|
|
26644
|
+
._toggle_1s3iw_341._disabled_1s3iw_428 input:checked ~ label:before {
|
|
26645
26645
|
background-color: var(--color-text-faint);
|
|
26646
26646
|
}
|
|
26647
|
-
.
|
|
26647
|
+
._noMargin_1s3iw_439 {
|
|
26648
26648
|
margin: 0;
|
|
26649
26649
|
}
|
|
26650
26650
|
/*
|
package/dist/index.js
CHANGED
|
@@ -9020,7 +9020,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
|
|
|
9020
9020
|
},
|
|
9021
9021
|
onClick: (evt) => onClick && !disabledContext ? onClick(evt) : {},
|
|
9022
9022
|
"data-testid": testId,
|
|
9023
|
-
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && icon2.includes(".svg") ? /* @__PURE__ */ jsx(ReactSVG, {
|
|
9023
|
+
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(ReactSVG, {
|
|
9024
9024
|
className: styles$N.customSvg,
|
|
9025
9025
|
beforeInjection: (svg) => {
|
|
9026
9026
|
if (size2) {
|
|
@@ -9029,7 +9029,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
|
|
|
9029
9029
|
}
|
|
9030
9030
|
},
|
|
9031
9031
|
src: icon2
|
|
9032
|
-
}) : typeof icon2 === "string" && icon2.includes(".png") ? /* @__PURE__ */ jsx("img", {
|
|
9032
|
+
}) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", {
|
|
9033
9033
|
alt: "icon",
|
|
9034
9034
|
className: styles$N.customPng,
|
|
9035
9035
|
src: icon2
|
|
@@ -64924,10 +64924,10 @@ const toast = ({ id: id2, message: message2, autoClose = 6e3, onClose }) => {
|
|
|
64924
64924
|
transition: Slide
|
|
64925
64925
|
});
|
|
64926
64926
|
};
|
|
64927
|
-
const toggle$1 = "
|
|
64928
|
-
const small = "
|
|
64929
|
-
const disabled = "
|
|
64930
|
-
const noMargin = "
|
|
64927
|
+
const toggle$1 = "_toggle_1s3iw_341";
|
|
64928
|
+
const small = "_small_1s3iw_356";
|
|
64929
|
+
const disabled = "_disabled_1s3iw_428";
|
|
64930
|
+
const noMargin = "_noMargin_1s3iw_439";
|
|
64931
64931
|
const styles$3 = {
|
|
64932
64932
|
toggle: toggle$1,
|
|
64933
64933
|
small,
|
package/package.json
CHANGED