@eclass/ui-kit 1.41.3 → 1.42.1
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/eclass-ui-kit.es.js +64 -39
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +15 -15
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/molecules/Buttons/Btn.d.ts +3 -1
- package/dist/molecules/Buttons/BtnLink.d.ts +8 -5
- package/dist/molecules/Buttons/BtnPrimary.d.ts +12 -1
- package/dist/molecules/Buttons/BtnSecondary.d.ts +12 -1
- package/dist/molecules/Buttons/BtnTertiary.d.ts +20 -9
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -28616,6 +28616,8 @@ function Base({
|
|
|
28616
28616
|
viewBox,
|
|
28617
28617
|
color: color2,
|
|
28618
28618
|
m: m2,
|
|
28619
|
+
"aria-label": " ",
|
|
28620
|
+
"aria-hidden": true,
|
|
28619
28621
|
children: [/* @__PURE__ */ jsxs("title", {
|
|
28620
28622
|
children: ["icon", title && `-${title}`]
|
|
28621
28623
|
}), children]
|
|
@@ -29526,24 +29528,26 @@ function TinyAlert({
|
|
|
29526
29528
|
}
|
|
29527
29529
|
TinyAlert.displayName = "TinyAlert";
|
|
29528
29530
|
function Btn({
|
|
29531
|
+
ariaLabel,
|
|
29529
29532
|
bg: bg2,
|
|
29530
29533
|
borderColorActive = [vars("colors-main-deepSkyBlue"), vars("colors-neutral-white")],
|
|
29531
29534
|
children,
|
|
29532
29535
|
color: color2 = vars("colors-neutral-white"),
|
|
29533
29536
|
disabled: disabled2 = false,
|
|
29534
29537
|
fillLoader = vars("colors-neutral-white"),
|
|
29538
|
+
id: id2,
|
|
29535
29539
|
isFullWidth = false,
|
|
29540
|
+
isLoading = false,
|
|
29536
29541
|
leftIcon,
|
|
29537
29542
|
m: m2 = "0",
|
|
29538
|
-
isLoading = false,
|
|
29539
29543
|
onClick,
|
|
29540
29544
|
rightIcon,
|
|
29545
|
+
role = "button",
|
|
29541
29546
|
rounded = false,
|
|
29542
29547
|
size: size2 = "regular",
|
|
29543
29548
|
touchDark = false,
|
|
29544
29549
|
type = "button",
|
|
29545
|
-
tabIndex
|
|
29546
|
-
id: id2
|
|
29550
|
+
tabIndex = 0
|
|
29547
29551
|
}) {
|
|
29548
29552
|
var _a, _b, _c;
|
|
29549
29553
|
let showChildren = children != null ? children : null;
|
|
@@ -29566,38 +29570,40 @@ function Btn({
|
|
|
29566
29570
|
children: /* @__PURE__ */ jsx(Ripples$1, {
|
|
29567
29571
|
color: touchColor,
|
|
29568
29572
|
children: /* @__PURE__ */ jsx(Button, {
|
|
29573
|
+
"aria-label": ariaLabel,
|
|
29569
29574
|
id: id2,
|
|
29570
|
-
|
|
29571
|
-
fontSize: size2 === "regular" ? "medium" : "small",
|
|
29575
|
+
role,
|
|
29572
29576
|
bg: colorMain,
|
|
29573
|
-
size: size2 === "regular" ? "md" : "sm",
|
|
29574
29577
|
borderRadius,
|
|
29575
29578
|
color: color2,
|
|
29576
29579
|
className: onlyIcon,
|
|
29577
29580
|
disabled: disabled2 && isLoading ? false : disabled2,
|
|
29581
|
+
fontWeight: "500",
|
|
29582
|
+
fontSize: size2 === "regular" ? "medium" : "small",
|
|
29578
29583
|
height: "auto",
|
|
29579
|
-
minHeight: size2 === "regular" ? "2.813rem" : "2rem",
|
|
29580
|
-
minWidth: size2 === "regular" ? "9rem" : "auto",
|
|
29581
|
-
lineHeight: "initial",
|
|
29582
29584
|
iconSpacing: vars("space-xs"),
|
|
29583
29585
|
isActive: false,
|
|
29584
29586
|
isLoading,
|
|
29587
|
+
isFullWidth,
|
|
29588
|
+
lineHeight: "initial",
|
|
29585
29589
|
leftIcon,
|
|
29590
|
+
minHeight: size2 === "regular" ? "2.813rem" : "2rem",
|
|
29591
|
+
minWidth: size2 === "regular" ? "9rem" : "auto",
|
|
29586
29592
|
onClick: (e2) => {
|
|
29587
29593
|
!isLoading && !disabled2 && (onClick == null ? void 0 : onClick(e2));
|
|
29588
29594
|
},
|
|
29589
|
-
|
|
29590
|
-
tabIndex,
|
|
29595
|
+
position: "relative",
|
|
29591
29596
|
paddingTop: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
|
|
29592
29597
|
paddingBottom: size2 === "regular" ? paddingTopBottom : onlyIcon ? vars("space-xs") : vars("space-xxs"),
|
|
29593
29598
|
paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
29594
29599
|
paddingRight: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
29595
|
-
position: "relative",
|
|
29596
|
-
isFullWidth,
|
|
29597
29600
|
rightIcon,
|
|
29601
|
+
type,
|
|
29602
|
+
size: size2 === "regular" ? "md" : "sm",
|
|
29598
29603
|
spinner: /* @__PURE__ */ jsx(Loader, {
|
|
29599
29604
|
fill: fillLoader
|
|
29600
29605
|
}),
|
|
29606
|
+
tabIndex: disabled2 || isLoading ? -1 : tabIndex,
|
|
29601
29607
|
_active: {
|
|
29602
29608
|
bg: (_b = bg2 == null ? void 0 : bg2.main) != null ? _b : vars("colors-main-azureRadiance")
|
|
29603
29609
|
},
|
|
@@ -29633,6 +29639,7 @@ function Btn({
|
|
|
29633
29639
|
}
|
|
29634
29640
|
Btn.displayName = "Btn";
|
|
29635
29641
|
function BtnPrimary({
|
|
29642
|
+
ariaLabel,
|
|
29636
29643
|
children,
|
|
29637
29644
|
disabled: disabled2 = false,
|
|
29638
29645
|
isFullWidth = false,
|
|
@@ -29641,12 +29648,14 @@ function BtnPrimary({
|
|
|
29641
29648
|
isLoading = false,
|
|
29642
29649
|
onClick,
|
|
29643
29650
|
rightIcon,
|
|
29651
|
+
role = "button",
|
|
29644
29652
|
size: size2 = "regular",
|
|
29645
29653
|
type = "button",
|
|
29646
29654
|
tabIndex,
|
|
29647
29655
|
id: id2
|
|
29648
29656
|
}) {
|
|
29649
29657
|
return /* @__PURE__ */ jsx(Btn, {
|
|
29658
|
+
ariaLabel,
|
|
29650
29659
|
id: id2,
|
|
29651
29660
|
disabled: disabled2,
|
|
29652
29661
|
isFullWidth,
|
|
@@ -29655,6 +29664,7 @@ function BtnPrimary({
|
|
|
29655
29664
|
m: m2,
|
|
29656
29665
|
onClick,
|
|
29657
29666
|
rightIcon,
|
|
29667
|
+
role,
|
|
29658
29668
|
size: size2,
|
|
29659
29669
|
type,
|
|
29660
29670
|
tabIndex,
|
|
@@ -29663,6 +29673,7 @@ function BtnPrimary({
|
|
|
29663
29673
|
}
|
|
29664
29674
|
BtnPrimary.displayName = "BtnPrimary";
|
|
29665
29675
|
function BtnSecondary({
|
|
29676
|
+
ariaLabel,
|
|
29666
29677
|
children,
|
|
29667
29678
|
disabled: disabled2 = false,
|
|
29668
29679
|
isFullWidth = false,
|
|
@@ -29671,27 +29682,30 @@ function BtnSecondary({
|
|
|
29671
29682
|
isLoading = false,
|
|
29672
29683
|
onClick,
|
|
29673
29684
|
rightIcon,
|
|
29685
|
+
role = "button",
|
|
29674
29686
|
size: size2 = "regular",
|
|
29675
29687
|
type = "button",
|
|
29676
29688
|
tabIndex,
|
|
29677
29689
|
id: id2
|
|
29678
29690
|
}) {
|
|
29679
29691
|
return /* @__PURE__ */ jsx(Btn, {
|
|
29692
|
+
ariaLabel,
|
|
29680
29693
|
id: id2,
|
|
29681
29694
|
bg: {
|
|
29682
29695
|
main: vars("colors-main-veryLightBlue"),
|
|
29683
29696
|
hover: vars("colors-main-linkWater")
|
|
29684
29697
|
},
|
|
29685
|
-
fillLoader: vars("colors-main-deepSkyBlue"),
|
|
29686
29698
|
borderColorActive: [vars("colors-main-deepSkyBlue"), vars("colors-neutral-white")],
|
|
29687
29699
|
color: vars("colors-main-deepSkyBlue"),
|
|
29688
29700
|
disabled: disabled2,
|
|
29701
|
+
fillLoader: vars("colors-main-deepSkyBlue"),
|
|
29689
29702
|
isFullWidth,
|
|
29690
29703
|
isLoading,
|
|
29691
29704
|
leftIcon,
|
|
29692
29705
|
m: m2,
|
|
29693
29706
|
onClick,
|
|
29694
29707
|
rightIcon,
|
|
29708
|
+
role,
|
|
29695
29709
|
size: size2,
|
|
29696
29710
|
touchDark: true,
|
|
29697
29711
|
type,
|
|
@@ -29701,19 +29715,21 @@ function BtnSecondary({
|
|
|
29701
29715
|
}
|
|
29702
29716
|
BtnSecondary.displayName = "BtnSecondary";
|
|
29703
29717
|
function BtnTertiary({
|
|
29718
|
+
ariaLabel,
|
|
29719
|
+
activeWhenPress = false,
|
|
29704
29720
|
children,
|
|
29721
|
+
id: id2,
|
|
29705
29722
|
iconStatus = "multimedia",
|
|
29706
29723
|
iconCustom,
|
|
29707
|
-
rightIcon,
|
|
29708
|
-
withoutColor = false,
|
|
29709
29724
|
m: m2 = "0",
|
|
29710
|
-
type = "button",
|
|
29711
|
-
tabIndex,
|
|
29712
|
-
id: id2,
|
|
29713
|
-
activeWhenPress = false,
|
|
29714
29725
|
onClick,
|
|
29715
29726
|
onMouseEnter,
|
|
29716
|
-
onMouseLeave
|
|
29727
|
+
onMouseLeave,
|
|
29728
|
+
rightIcon,
|
|
29729
|
+
role = "button",
|
|
29730
|
+
type = "button",
|
|
29731
|
+
tabIndex,
|
|
29732
|
+
withoutColor = false
|
|
29717
29733
|
}) {
|
|
29718
29734
|
const gray = vars("colors-neutral-gray");
|
|
29719
29735
|
const blue = vars("colors-main-deepSkyBlue");
|
|
@@ -29762,30 +29778,32 @@ function BtnTertiary({
|
|
|
29762
29778
|
const rIcon = rightIcon ? icon : void 0;
|
|
29763
29779
|
const lIcon = !rightIcon ? icon : void 0;
|
|
29764
29780
|
return /* @__PURE__ */ jsx(Button, {
|
|
29781
|
+
"aria-label": ariaLabel,
|
|
29765
29782
|
id: id2,
|
|
29783
|
+
role,
|
|
29766
29784
|
type,
|
|
29767
29785
|
tabIndex,
|
|
29768
|
-
height: "24px",
|
|
29769
29786
|
background: "transparent",
|
|
29787
|
+
borderRadius: "12px",
|
|
29788
|
+
color: gray,
|
|
29770
29789
|
fontFamily: "Roboto",
|
|
29771
29790
|
fontStyle: "normal",
|
|
29772
29791
|
fontWeight: "500",
|
|
29773
29792
|
fontSize: "14px",
|
|
29774
|
-
lineHeight: "16px",
|
|
29775
|
-
textDecorationLine: "underline",
|
|
29776
|
-
borderRadius: "12px",
|
|
29777
29793
|
gap: "0.5rem",
|
|
29778
|
-
|
|
29779
|
-
|
|
29780
|
-
paddingLeft: vars("space-xs"),
|
|
29781
|
-
paddingRight: vars("space-xs"),
|
|
29782
|
-
color: gray,
|
|
29783
|
-
rightIcon: rIcon,
|
|
29794
|
+
height: "24px",
|
|
29795
|
+
lineHeight: "16px",
|
|
29784
29796
|
leftIcon: lIcon,
|
|
29797
|
+
rightIcon: rIcon,
|
|
29785
29798
|
m: m2,
|
|
29786
29799
|
onClick,
|
|
29787
29800
|
onMouseEnter,
|
|
29788
29801
|
onMouseLeave,
|
|
29802
|
+
paddingTop: vars("space-xxs"),
|
|
29803
|
+
paddingBottom: vars("space-xxs"),
|
|
29804
|
+
paddingLeft: vars("space-xs"),
|
|
29805
|
+
paddingRight: vars("space-xs"),
|
|
29806
|
+
textDecorationLine: "underline",
|
|
29789
29807
|
_hover: {
|
|
29790
29808
|
color: `${blue}`
|
|
29791
29809
|
},
|
|
@@ -29809,14 +29827,17 @@ function BtnTertiary({
|
|
|
29809
29827
|
}
|
|
29810
29828
|
BtnTertiary.displayName = "BtnTertiary";
|
|
29811
29829
|
function BtnLink({
|
|
29830
|
+
as = "a",
|
|
29831
|
+
ariaLabel,
|
|
29812
29832
|
children,
|
|
29833
|
+
fontSize = "0.875rem",
|
|
29834
|
+
href = "",
|
|
29835
|
+
id: id2,
|
|
29813
29836
|
m: m2 = "0",
|
|
29814
29837
|
onClick,
|
|
29815
|
-
|
|
29816
|
-
|
|
29817
|
-
|
|
29818
|
-
textDecorationLine = true,
|
|
29819
|
-
fontSize = "0.875rem"
|
|
29838
|
+
role = "link",
|
|
29839
|
+
tabIndex,
|
|
29840
|
+
textDecorationLine = true
|
|
29820
29841
|
}) {
|
|
29821
29842
|
const typeButton = {
|
|
29822
29843
|
button: {
|
|
@@ -29829,19 +29850,23 @@ function BtnLink({
|
|
|
29829
29850
|
};
|
|
29830
29851
|
return /* @__PURE__ */ jsx(Box, {
|
|
29831
29852
|
as,
|
|
29853
|
+
"aria-label": ariaLabel,
|
|
29832
29854
|
id: id2,
|
|
29855
|
+
role,
|
|
29833
29856
|
backgroundColor: "transparent",
|
|
29834
29857
|
borderStyle: "none",
|
|
29835
29858
|
className: "linkButton",
|
|
29836
|
-
|
|
29837
|
-
padding: ".25em",
|
|
29859
|
+
color: vars("colors-main-deepSkyBlue"),
|
|
29838
29860
|
fontFamily: "Roboto",
|
|
29839
29861
|
fontStyle: "normal",
|
|
29840
29862
|
fontWeight: "500",
|
|
29841
29863
|
fontSize,
|
|
29842
29864
|
lineHeight: "1rem",
|
|
29865
|
+
onClick,
|
|
29866
|
+
padding: ".25em",
|
|
29867
|
+
tabIndex,
|
|
29843
29868
|
textDecorationLine: textDecorationLine ? "underline" : "none",
|
|
29844
|
-
|
|
29869
|
+
width: "fit-content",
|
|
29845
29870
|
m: m2,
|
|
29846
29871
|
_hover: {
|
|
29847
29872
|
color: vars("colors-neutral-darkCharcoal"),
|