@eclass/ui-kit 1.9.1 → 1.10.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.
@@ -10690,7 +10690,7 @@ var ring2 = {
10690
10690
  ringOffsetColor: t.colors("--chakra-ring-offset-color"),
10691
10691
  ringInset: t.prop("--chakra-ring-inset")
10692
10692
  };
10693
- var space = {
10693
+ var space$1 = {
10694
10694
  margin: t.spaceT("margin"),
10695
10695
  marginTop: t.spaceT("marginTop"),
10696
10696
  marginBlockStart: t.spaceT("marginBlockStart"),
@@ -10718,29 +10718,29 @@ var space = {
10718
10718
  paddingY: t.space(["paddingTop", "paddingBottom"]),
10719
10719
  paddingBlock: t.space("paddingBlock")
10720
10720
  };
10721
- Object.assign(space, {
10722
- m: space.margin,
10723
- mt: space.marginTop,
10724
- mr: space.marginRight,
10725
- me: space.marginInlineEnd,
10726
- marginEnd: space.marginInlineEnd,
10727
- mb: space.marginBottom,
10728
- ml: space.marginLeft,
10729
- ms: space.marginInlineStart,
10730
- marginStart: space.marginInlineStart,
10731
- mx: space.marginX,
10732
- my: space.marginY,
10733
- p: space.padding,
10734
- pt: space.paddingTop,
10735
- py: space.paddingY,
10736
- px: space.paddingX,
10737
- pb: space.paddingBottom,
10738
- pl: space.paddingLeft,
10739
- ps: space.paddingInlineStart,
10740
- paddingStart: space.paddingInlineStart,
10741
- pr: space.paddingRight,
10742
- pe: space.paddingInlineEnd,
10743
- paddingEnd: space.paddingInlineEnd
10721
+ Object.assign(space$1, {
10722
+ m: space$1.margin,
10723
+ mt: space$1.marginTop,
10724
+ mr: space$1.marginRight,
10725
+ me: space$1.marginInlineEnd,
10726
+ marginEnd: space$1.marginInlineEnd,
10727
+ mb: space$1.marginBottom,
10728
+ ml: space$1.marginLeft,
10729
+ ms: space$1.marginInlineStart,
10730
+ marginStart: space$1.marginInlineStart,
10731
+ mx: space$1.marginX,
10732
+ my: space$1.marginY,
10733
+ p: space$1.padding,
10734
+ pt: space$1.paddingTop,
10735
+ py: space$1.paddingY,
10736
+ px: space$1.paddingX,
10737
+ pb: space$1.paddingBottom,
10738
+ pl: space$1.paddingLeft,
10739
+ ps: space$1.paddingInlineStart,
10740
+ paddingStart: space$1.paddingInlineStart,
10741
+ pr: space$1.paddingRight,
10742
+ pe: space$1.paddingInlineEnd,
10743
+ paddingEnd: space$1.paddingInlineEnd
10744
10744
  });
10745
10745
  var textDecoration = {
10746
10746
  textDecorationColor: t.colors("textDecorationColor"),
@@ -10987,8 +10987,8 @@ var pseudoSelectors = {
10987
10987
  _light: ".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"
10988
10988
  };
10989
10989
  var pseudoPropNames = objectKeys(pseudoSelectors);
10990
- var systemProps = mergeWith({}, background, border, color$1, flexbox, layout, filter$1, ring2, interactivity, grid, others, position, effect, space, scroll, typography$2, textDecoration, transform8, list$1, transition$1);
10991
- Object.assign({}, space, layout, flexbox, grid, position);
10990
+ var systemProps = mergeWith({}, background, border, color$1, flexbox, layout, filter$1, ring2, interactivity, grid, others, position, effect, space$1, scroll, typography$2, textDecoration, transform8, list$1, transition$1);
10991
+ Object.assign({}, space$1, layout, flexbox, grid, position);
10992
10992
  var propNames = [].concat(objectKeys(systemProps), pseudoPropNames);
10993
10993
  var styleProps = _extends$c({}, systemProps, pseudoSelectors);
10994
10994
  var isStyleProp = function isStyleProp2(prop2) {
@@ -16334,7 +16334,7 @@ var radii$1 = {
16334
16334
  "3xl": "1.5rem",
16335
16335
  full: "9999px"
16336
16336
  };
16337
- var shadows = {
16337
+ var shadows$1 = {
16338
16338
  xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
16339
16339
  sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
16340
16340
  base: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
@@ -16406,7 +16406,7 @@ var foundations = _extends$a({
16406
16406
  colors: colors$1
16407
16407
  }, typography$1, {
16408
16408
  sizes: sizes$l,
16409
- shadows,
16409
+ shadows: shadows$1,
16410
16410
  space: spacing,
16411
16411
  borders: borders$2,
16412
16412
  transition
@@ -26121,22 +26121,39 @@ const styles = {
26121
26121
  }
26122
26122
  })
26123
26123
  };
26124
- const base = "solid 1px";
26124
+ const base = "solid .063rem";
26125
26125
  const borders = {
26126
- normal: `${base} ${colors.neutral.silverSand}`,
26126
+ normal: `${base} ${colors.neutral.darkCharcoal}`,
26127
26127
  light: `${base} ${colors.neutral.platinum}`,
26128
26128
  active: `${base} ${colors.main.deepSkyBlue}`,
26129
26129
  success: `${base} ${colors.alert.jadeGreen}`,
26130
- error: `${base} ${colors.alert.red}`
26130
+ error: `${base} ${colors.alert.red}`,
26131
+ white: `solid .125rem ${colors.neutral.white}`
26131
26132
  };
26132
26133
  const radii = {
26133
26134
  small: ".25rem",
26134
26135
  big: ".5rem",
26135
26136
  rounded: "50%"
26136
26137
  };
26138
+ const shadows = {
26139
+ sm: "0 .125rem .5rem 0 rgba(0,0,0,.20)",
26140
+ md: "0 .25rem 1rem 0 rgba(0,0,0,.20)",
26141
+ lg: "0 .5rem 2rem 0 rgba(0,0,0,.20)"
26142
+ };
26143
+ const space = {
26144
+ xxs: ".25rem",
26145
+ xs: ".5rem",
26146
+ s: "1rem",
26147
+ m: "1.5rem",
26148
+ l: "2rem",
26149
+ xl: "3rem",
26150
+ xxl: "5rem"
26151
+ };
26137
26152
  const utils = {
26138
26153
  borders,
26139
- radii
26154
+ radii,
26155
+ shadows,
26156
+ space
26140
26157
  };
26141
26158
  var _700 = "";
26142
26159
  var _500 = "";
@@ -26346,12 +26363,12 @@ var withAttrs = function(Component) {
26346
26363
  return React__default.createElement(Component, __assign({}, props));
26347
26364
  };
26348
26365
  };
26349
- var ReactRipples = withAttrs(createRipples());
26366
+ var Ripples$1 = withAttrs(createRipples());
26350
26367
  function Ripples({
26351
26368
  children,
26352
26369
  color: color2 = "rgba(204,204,204,0.2)"
26353
26370
  }) {
26354
- return /* @__PURE__ */ jsx(ReactRipples, {
26371
+ return /* @__PURE__ */ jsx(Ripples$1, {
26355
26372
  during: 1e3,
26356
26373
  color: color2,
26357
26374
  children: /* @__PURE__ */ jsx(Box, {
@@ -26366,15 +26383,18 @@ function Base({
26366
26383
  color: color2 = vars("colors-main-ziggurat"),
26367
26384
  m: m2 = "0",
26368
26385
  viewBox = "0 0 16 16",
26369
- children
26386
+ children,
26387
+ title
26370
26388
  }) {
26371
- return /* @__PURE__ */ jsx(Icon, {
26389
+ return /* @__PURE__ */ jsxs(Icon, {
26372
26390
  w: w2,
26373
26391
  h,
26374
26392
  viewBox,
26375
26393
  color: color2,
26376
26394
  m: m2,
26377
- children
26395
+ children: [/* @__PURE__ */ jsxs("title", {
26396
+ children: ["icon", title && `-${title}`]
26397
+ }), children]
26378
26398
  });
26379
26399
  }
26380
26400
  function AlertInfo(props) {
@@ -26486,11 +26506,56 @@ function CircularInformation(props) {
26486
26506
  }));
26487
26507
  }
26488
26508
  CircularInformation.displayName = "CircularInformation";
26509
+ function Loader({
26510
+ fill = "#fff"
26511
+ }) {
26512
+ return /* @__PURE__ */ jsx("div", {
26513
+ className: "loaderAsync",
26514
+ "data-testid": "loaderAsync",
26515
+ children: /* @__PURE__ */ jsxs("svg", {
26516
+ id: "prefix__eXySq0EBKm11",
26517
+ xmlns: "http://www.w3.org/2000/svg",
26518
+ viewBox: "0 0 38 20",
26519
+ shapeRendering: "geometricPrecision",
26520
+ textRendering: "geometricPrecision",
26521
+ width: 38,
26522
+ height: 20,
26523
+ children: [/* @__PURE__ */ jsx("style", {
26524
+ dangerouslySetInnerHTML: {
26525
+ __html: "@keyframes eXySq0EBKm12_f_o{0%,33.333333%,to{fill-opacity:.4}66.666667%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}}@keyframes eXySq0EBKm13_f_o{0%,66.666667%,to{fill-opacity:.4}33.333333%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}}@keyframes eXySq0EBKm14_f_o{0%{fill-opacity:1;animation-timing-function:cubic-bezier(.42,0,.58,1)}33.333333%,66.666667%{fill-opacity:.4}to{fill-opacity:1}}"
26526
+ }
26527
+ }), /* @__PURE__ */ jsx("circle", {
26528
+ r: 2.502,
26529
+ transform: "translate(29.526 10)",
26530
+ fill,
26531
+ fillOpacity: 0.4,
26532
+ style: {
26533
+ animation: "eXySq0EBKm12_f_o 600ms linear infinite normal forwards"
26534
+ }
26535
+ }), /* @__PURE__ */ jsx("circle", {
26536
+ r: 2.502,
26537
+ transform: "translate(19 10)",
26538
+ fill,
26539
+ fillOpacity: 0.4,
26540
+ style: {
26541
+ animation: "eXySq0EBKm13_f_o 600ms linear infinite normal forwards"
26542
+ }
26543
+ }), /* @__PURE__ */ jsx("circle", {
26544
+ r: 2.053,
26545
+ transform: "matrix(1.21764 0 0 1.21764 8.562 10.002)",
26546
+ fill,
26547
+ style: {
26548
+ animation: "eXySq0EBKm14_f_o 600ms linear infinite normal forwards"
26549
+ }
26550
+ })]
26551
+ })
26552
+ });
26553
+ }
26489
26554
  function Profile(props) {
26490
26555
  return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26491
26556
  viewBox: "0 0 12 12",
26492
- w: ".625rem",
26493
- h: ".75rem",
26557
+ w: "12px",
26558
+ title: "profile",
26494
26559
  children: /* @__PURE__ */ jsx("path", {
26495
26560
  fill: "currentColor",
26496
26561
  d: "M5 6a3 3 0 100-6 3 3 0 000 6zM5 7c-3.375 0-5 2.106-5 3.333V11a1 1 0 001 1h8a1 1 0 001-1v-.667C10 9.106 8.375 7 5 7z"
@@ -26629,6 +26694,115 @@ function TinyAlertSuccess(props) {
26629
26694
  }));
26630
26695
  }
26631
26696
  TinyAlertSuccess.displayName = "TinyAlertSuccess";
26697
+ function Multimedia(props) {
26698
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26699
+ w: "12px",
26700
+ viewBox: "0 0 14 14",
26701
+ title: "multimedia",
26702
+ children: [/* @__PURE__ */ jsx("path", {
26703
+ d: "M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z",
26704
+ fill: "currentColor"
26705
+ }), /* @__PURE__ */ jsx("path", {
26706
+ d: "M11 6C12.6569 6 14 4.65685 14 3C14 1.34315 12.6569 0 11 0C9.34315 0 8 1.34315 8 3C8 4.65685 9.34315 6 11 6Z",
26707
+ fill: "currentColor"
26708
+ }), /* @__PURE__ */ jsx("path", {
26709
+ d: "M3 14C4.65685 14 6 12.6569 6 11C6 9.34315 4.65685 8 3 8C1.34315 8 0 9.34315 0 11C0 12.6569 1.34315 14 3 14Z",
26710
+ fill: "currentColor"
26711
+ }), /* @__PURE__ */ jsx("path", {
26712
+ d: "M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z",
26713
+ fill: "currentColor"
26714
+ })]
26715
+ }));
26716
+ }
26717
+ Multimedia.displayName = "Multimedia";
26718
+ function GoBack(props) {
26719
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26720
+ w: "16px",
26721
+ h: "16px",
26722
+ viewBox: "0 0 16 16",
26723
+ title: "goBack",
26724
+ children: /* @__PURE__ */ jsx("path", {
26725
+ d: "M9.92593 2L4 8L9.92593 14L12 11.9L8.14815 8L12 4.1L9.92593 2Z",
26726
+ fill: "currentColor"
26727
+ })
26728
+ }));
26729
+ }
26730
+ GoBack.displayName = "GoBack";
26731
+ function Password(props) {
26732
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26733
+ w: "16px",
26734
+ h: "16px",
26735
+ viewBox: "0 0 16 16",
26736
+ title: "password",
26737
+ children: /* @__PURE__ */ jsx("path", {
26738
+ fillRule: "evenodd",
26739
+ clipRule: "evenodd",
26740
+ d: "M8 1C5.95714 1 4.28571 2.67143 4.28571 4.71429V5.64286H2.42857C1.87143 5.64286 1.5 6.01429 1.5 6.57143V14.9286C1.5 15.4857 1.87143 15.8571 2.42857 15.8571H13.5714C14.1286 15.8571 14.5 15.4857 14.5 14.9286V6.57143C14.5 6.01429 14.1286 5.64286 13.5714 5.64286H11.7143V4.71429C11.7143 2.67143 10.0429 1 8 1ZM8.92857 11.8643V13.0714H7.07143V11.8643C6.51429 11.5857 6.14286 10.9357 6.14286 10.2857C6.14286 9.26429 6.97857 8.42857 8 8.42857C9.02143 8.42857 9.85714 9.26429 9.85714 10.2857C9.85714 10.9357 9.48571 11.5857 8.92857 11.8643ZM6.14286 4.71429V5.64286H9.85714V4.71429C9.85714 3.69286 9.02143 2.85714 8 2.85714C6.97857 2.85714 6.14286 3.69286 6.14286 4.71429Z",
26741
+ fill: "currentColor"
26742
+ })
26743
+ }));
26744
+ }
26745
+ Password.displayName = "Password";
26746
+ function Pen(props) {
26747
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26748
+ w: "16px",
26749
+ h: "16px",
26750
+ viewBox: "0 0 16 16",
26751
+ title: "pen",
26752
+ children: [/* @__PURE__ */ jsx("path", {
26753
+ d: "M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z",
26754
+ fill: "currentColor"
26755
+ }), /* @__PURE__ */ jsx("path", {
26756
+ d: "M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z",
26757
+ fill: "currentColor"
26758
+ })]
26759
+ }));
26760
+ }
26761
+ Pen.displayName = "Pen";
26762
+ function PlusSign(props) {
26763
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26764
+ w: "16px",
26765
+ h: "16px",
26766
+ viewBox: "0 0 16 16",
26767
+ title: "plusSign",
26768
+ children: /* @__PURE__ */ jsx("path", {
26769
+ fillRule: "evenodd",
26770
+ clipRule: "evenodd",
26771
+ d: "M0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 12.4 12.4 16 8 16C3.6 16 0 12.4 0 8ZM9 9H12V7H9V4H7V7H4V9H7V12H9V9Z",
26772
+ fill: "currentColor"
26773
+ })
26774
+ }));
26775
+ }
26776
+ PlusSign.displayName = "PlusSign";
26777
+ function TrashCan(props) {
26778
+ return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
26779
+ w: "16px",
26780
+ h: "16px",
26781
+ viewBox: "0 0 16 16",
26782
+ title: "trashCan",
26783
+ children: [/* @__PURE__ */ jsx("path", {
26784
+ d: "M2 6V14C2 15.1 2.9 16 4 16H12C13.1 16 14 15.1 14 14V6H2Z",
26785
+ fill: "currentColor"
26786
+ }), /* @__PURE__ */ jsx("path", {
26787
+ d: "M12 3V1C12 0.4 11.6 0 11 0H5C4.4 0 4 0.4 4 1V3H0V5H16V3H12ZM10 3H6V2H10V3Z",
26788
+ fill: "currentColor"
26789
+ })]
26790
+ }));
26791
+ }
26792
+ TrashCan.displayName = "TrashCan";
26793
+ function TextBubble(props) {
26794
+ return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
26795
+ w: "16px",
26796
+ h: "16px",
26797
+ viewBox: "0 0 16 16",
26798
+ title: "textBubble",
26799
+ children: /* @__PURE__ */ jsx("path", {
26800
+ d: "M1 0H15C15.552 0 16 0.448 16 1V11C16 11.552 15.552 12 15 12H10L4 16V12H1C0.448 12 0 11.552 0 11V1C0 0.448 0.448 0 1 0Z",
26801
+ fill: "currentColor"
26802
+ })
26803
+ }));
26804
+ }
26805
+ TextBubble.displayName = "TextBubble";
26632
26806
  function TinyAlert({
26633
26807
  status,
26634
26808
  text,
@@ -26698,6 +26872,7 @@ function TinyAlert({
26698
26872
  gap: ".25rem",
26699
26873
  width: "fit-content",
26700
26874
  borderRadius: ".25rem",
26875
+ className: "TinyAlert-Box",
26701
26876
  children: [alerts[status].icon && /* @__PURE__ */ jsx(Box, {
26702
26877
  lineHeight: 0,
26703
26878
  sx: {
@@ -26720,6 +26895,239 @@ function TinyAlert({
26720
26895
  });
26721
26896
  }
26722
26897
  TinyAlert.displayName = "TinyAlert";
26898
+ function Btn({
26899
+ bg: bg2,
26900
+ borderColorActive = [vars("colors-main-deepSkyBlue"), vars("colors-neutral-white")],
26901
+ children,
26902
+ color: color2 = vars("colors-neutral-white"),
26903
+ disabled: disabled2 = false,
26904
+ fillLoader = vars("colors-neutral-white"),
26905
+ isFullWidth = false,
26906
+ leftIcon,
26907
+ m: m2 = "0",
26908
+ isLoading = false,
26909
+ onClick,
26910
+ rightIcon,
26911
+ rounded = false,
26912
+ size: size2 = "regular",
26913
+ touchDark = false,
26914
+ type = "button",
26915
+ tabIndex
26916
+ }) {
26917
+ var _a, _b, _c;
26918
+ let showChildren = children != null ? children : null;
26919
+ if (!children && !rightIcon && !leftIcon) {
26920
+ showChildren = "Button";
26921
+ }
26922
+ const borderRadius = rounded ? "12px" : vars("radii-small");
26923
+ const colorMain = (_a = bg2 == null ? void 0 : bg2.main) != null ? _a : vars("colors-main-deepSkyBlue");
26924
+ const touchColor = touchDark ? "rgba(160, 160, 160, 0.2)" : "rgba(255, 255, 255, 0.2)";
26925
+ const onlyIcon = !children && (rightIcon != null ? rightIcon : leftIcon) ? "onlyIcon" : "";
26926
+ return /* @__PURE__ */ jsx(Box, {
26927
+ margin: m2,
26928
+ sx: {
26929
+ ".react-ripples": {
26930
+ borderRadius,
26931
+ display: `${isFullWidth ? "grid" : "inline-flex!important"}`
26932
+ }
26933
+ },
26934
+ children: /* @__PURE__ */ jsx(Ripples$1, {
26935
+ color: touchColor,
26936
+ children: /* @__PURE__ */ jsx(Button, {
26937
+ fontWeight: "500",
26938
+ fontSize: size2 === "regular" ? "medium" : "small",
26939
+ bg: colorMain,
26940
+ size: size2 === "regular" ? "md" : "sm",
26941
+ borderRadius,
26942
+ color: color2,
26943
+ className: onlyIcon,
26944
+ disabled: disabled2,
26945
+ height: "auto",
26946
+ iconSpacing: vars("space-xs"),
26947
+ isActive: false,
26948
+ isLoading,
26949
+ leftIcon,
26950
+ onClick: (e2) => {
26951
+ !isLoading && !disabled2 && (onClick == null ? void 0 : onClick(e2));
26952
+ },
26953
+ type,
26954
+ tabIndex,
26955
+ paddingTop: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
26956
+ paddingBottom: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
26957
+ paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
26958
+ paddingRight: size2 === "regular" ? vars("space-s") : vars("space-xs"),
26959
+ position: "relative",
26960
+ isFullWidth,
26961
+ rightIcon,
26962
+ spinner: /* @__PURE__ */ jsx(Loader, {
26963
+ fill: fillLoader
26964
+ }),
26965
+ _active: {
26966
+ bg: (_b = bg2 == null ? void 0 : bg2.main) != null ? _b : vars("colors-main-azureRadiance")
26967
+ },
26968
+ _disabled: {
26969
+ opacity: "50%",
26970
+ cursor: "not-allowed"
26971
+ },
26972
+ _focus: {
26973
+ boxShadow: `inset 0 0 0 2px ${borderColorActive[0]}, inset 0 0 0 4px ${borderColorActive[1]}`
26974
+ },
26975
+ _hover: {
26976
+ bg: (_c = bg2 == null ? void 0 : bg2.hover) != null ? _c : vars("colors-main-azureRadiance")
26977
+ },
26978
+ sx: {
26979
+ "&[data-loading]": {
26980
+ boxShadow: "none",
26981
+ cursor: "wait"
26982
+ },
26983
+ "&.onlyIcon span": {
26984
+ m: 0
26985
+ },
26986
+ span: {
26987
+ h: "1rem"
26988
+ }
26989
+ },
26990
+ children: showChildren
26991
+ })
26992
+ })
26993
+ });
26994
+ }
26995
+ Btn.displayName = "Btn";
26996
+ function BtnPrimary({
26997
+ children,
26998
+ disabled: disabled2 = false,
26999
+ isFullWidth = false,
27000
+ leftIcon,
27001
+ m: m2 = "0",
27002
+ isLoading = false,
27003
+ onClick,
27004
+ rightIcon,
27005
+ size: size2 = "regular",
27006
+ type = "button",
27007
+ tabIndex
27008
+ }) {
27009
+ return /* @__PURE__ */ jsx(Btn, {
27010
+ disabled: disabled2,
27011
+ isFullWidth,
27012
+ isLoading,
27013
+ leftIcon,
27014
+ m: m2,
27015
+ onClick,
27016
+ rightIcon,
27017
+ size: size2,
27018
+ type,
27019
+ tabIndex,
27020
+ children
27021
+ });
27022
+ }
27023
+ BtnPrimary.displayName = "BtnPrimary";
27024
+ function BtnSecondary({
27025
+ children,
27026
+ disabled: disabled2 = false,
27027
+ isFullWidth = false,
27028
+ leftIcon,
27029
+ m: m2 = "0",
27030
+ isLoading = false,
27031
+ onClick,
27032
+ rightIcon,
27033
+ size: size2 = "regular",
27034
+ type = "button",
27035
+ tabIndex
27036
+ }) {
27037
+ return /* @__PURE__ */ jsx(Btn, {
27038
+ bg: {
27039
+ main: vars("colors-main-veryLightBlue"),
27040
+ hover: vars("colors-main-linkWater")
27041
+ },
27042
+ fillLoader: vars("colors-main-deepSkyBlue"),
27043
+ borderColorActive: [vars("colors-main-deepSkyBlue"), vars("colors-neutral-white")],
27044
+ color: vars("colors-main-deepSkyBlue"),
27045
+ disabled: disabled2,
27046
+ isFullWidth,
27047
+ isLoading,
27048
+ leftIcon,
27049
+ m: m2,
27050
+ onClick,
27051
+ rightIcon,
27052
+ size: size2,
27053
+ touchDark: true,
27054
+ type,
27055
+ tabIndex,
27056
+ children
27057
+ });
27058
+ }
27059
+ BtnSecondary.displayName = "BtnSecondary";
27060
+ function BtnTertiary({
27061
+ children,
27062
+ iconStatus = "multimedia",
27063
+ rightIcon,
27064
+ withoutColor = false,
27065
+ m: m2 = "0",
27066
+ onClick
27067
+ }) {
27068
+ var _a;
27069
+ const gray = vars("colors-neutral-gray");
27070
+ const blue = vars("colors-main-deepSkyBlue");
27071
+ const white = vars("colors-neutral-white");
27072
+ const colorIcon = withoutColor ? gray : blue;
27073
+ const btnIcons = {
27074
+ answer: /* @__PURE__ */ jsx(TextBubble, {
27075
+ color: colorIcon
27076
+ }),
27077
+ back: /* @__PURE__ */ jsx(GoBack, {
27078
+ color: colorIcon
27079
+ }),
27080
+ edit: /* @__PURE__ */ jsx(Pen, {
27081
+ color: colorIcon
27082
+ }),
27083
+ eliminate: /* @__PURE__ */ jsx(TrashCan, {
27084
+ color: colorIcon
27085
+ }),
27086
+ more: /* @__PURE__ */ jsx(PlusSign, {
27087
+ color: colorIcon
27088
+ }),
27089
+ password: /* @__PURE__ */ jsx(Password, {
27090
+ color: colorIcon
27091
+ }),
27092
+ multimedia: /* @__PURE__ */ jsx(Multimedia, {
27093
+ color: colorIcon
27094
+ })
27095
+ };
27096
+ const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
27097
+ const rIcon = rightIcon ? icon : void 0;
27098
+ const lIcon = !rightIcon ? icon : void 0;
27099
+ return /* @__PURE__ */ jsx(Button, {
27100
+ height: "24px",
27101
+ background: white,
27102
+ fontFamily: "Roboto",
27103
+ fontStyle: "normal",
27104
+ fontWeight: "500",
27105
+ fontSize: "14px",
27106
+ lineHeight: "16px",
27107
+ textDecorationLine: "underline",
27108
+ borderRadius: "12px",
27109
+ color: gray,
27110
+ rightIcon: rIcon,
27111
+ leftIcon: lIcon,
27112
+ m: m2,
27113
+ onClick,
27114
+ _hover: {
27115
+ color: blue
27116
+ },
27117
+ _focus: {
27118
+ boxShadow: `inset 0 0 0 2px ${blue}, inset 0 0 0 4px ${white}`
27119
+ },
27120
+ sx: {
27121
+ "&:hover": {
27122
+ "svg path": {
27123
+ fill: blue
27124
+ }
27125
+ }
27126
+ },
27127
+ children
27128
+ });
27129
+ }
27130
+ BtnTertiary.displayName = "BtnTertiary";
26723
27131
  const STUDENT = 4;
26724
27132
  function Header() {
26725
27133
  const {
@@ -27787,6 +28195,7 @@ function Footer({
27787
28195
  _focus: cssButton,
27788
28196
  _active: cssButton,
27789
28197
  onClick: () => handleClick(),
28198
+ fontSize: "1rem !important",
27790
28199
  children: action.text
27791
28200
  }) : /* @__PURE__ */ jsx(Text, {
27792
28201
  color: vars("colors-main-deepSkyBlue"),
@@ -27890,5 +28299,5 @@ function CourseList({
27890
28299
  });
27891
28300
  }
27892
28301
  CourseList.displayName = "CourseList";
27893
- export { CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
28302
+ export { Btn, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
27894
28303
  //# sourceMappingURL=eclass-ui-kit.es.js.map