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