@eclass/ui-kit 1.10.0 → 1.11.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.
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function GoBack(props: BaseProps): JSX.Element;
4
+ export declare namespace GoBack {
5
+ var displayName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function Password(props: BaseProps): JSX.Element;
4
+ export declare namespace Password {
5
+ var displayName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function Pen(props: BaseProps): JSX.Element;
4
+ export declare namespace Pen {
5
+ var displayName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function PlusSign(props: BaseProps): JSX.Element;
4
+ export declare namespace PlusSign {
5
+ var displayName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function TextBubble(props: BaseProps): JSX.Element;
4
+ export declare namespace TextBubble {
5
+ var displayName: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from './Base';
3
+ export declare function TrashCan(props: BaseProps): JSX.Element;
4
+ export declare namespace TrashCan {
5
+ var displayName: string;
6
+ }
@@ -11,3 +11,9 @@ export * from './TinyAlertError';
11
11
  export * from './TinyAlertWarning';
12
12
  export * from './TinyAlertSuccess';
13
13
  export * from './Multimedia';
14
+ export * from './GoBack';
15
+ export * from './Password';
16
+ export * from './Pen';
17
+ export * from './PlusSign';
18
+ export * from './TrashCan';
19
+ export * from './TextBubble';
@@ -26715,6 +26715,94 @@ function Multimedia(props) {
26715
26715
  }));
26716
26716
  }
26717
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";
26718
26806
  function TinyAlert({
26719
26807
  status,
26720
26808
  text,
@@ -26822,7 +26910,10 @@ function Btn({
26822
26910
  rightIcon,
26823
26911
  rounded = false,
26824
26912
  size: size2 = "regular",
26825
- touchDark = false
26913
+ touchDark = false,
26914
+ type = "button",
26915
+ tabIndex,
26916
+ id: id2
26826
26917
  }) {
26827
26918
  var _a, _b, _c;
26828
26919
  let showChildren = children != null ? children : null;
@@ -26844,6 +26935,7 @@ function Btn({
26844
26935
  children: /* @__PURE__ */ jsx(Ripples$1, {
26845
26936
  color: touchColor,
26846
26937
  children: /* @__PURE__ */ jsx(Button, {
26938
+ id: id2,
26847
26939
  fontWeight: "500",
26848
26940
  fontSize: size2 === "regular" ? "medium" : "small",
26849
26941
  bg: colorMain,
@@ -26860,6 +26952,8 @@ function Btn({
26860
26952
  onClick: (e2) => {
26861
26953
  !isLoading && !disabled2 && (onClick == null ? void 0 : onClick(e2));
26862
26954
  },
26955
+ type,
26956
+ tabIndex,
26863
26957
  paddingTop: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
26864
26958
  paddingBottom: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
26865
26959
  paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
@@ -26910,9 +27004,13 @@ function BtnPrimary({
26910
27004
  isLoading = false,
26911
27005
  onClick,
26912
27006
  rightIcon,
26913
- size: size2 = "regular"
27007
+ size: size2 = "regular",
27008
+ type = "button",
27009
+ tabIndex,
27010
+ id: id2
26914
27011
  }) {
26915
27012
  return /* @__PURE__ */ jsx(Btn, {
27013
+ id: id2,
26916
27014
  disabled: disabled2,
26917
27015
  isFullWidth,
26918
27016
  isLoading,
@@ -26921,6 +27019,8 @@ function BtnPrimary({
26921
27019
  onClick,
26922
27020
  rightIcon,
26923
27021
  size: size2,
27022
+ type,
27023
+ tabIndex,
26924
27024
  children
26925
27025
  });
26926
27026
  }
@@ -26934,9 +27034,13 @@ function BtnSecondary({
26934
27034
  isLoading = false,
26935
27035
  onClick,
26936
27036
  rightIcon,
26937
- size: size2 = "regular"
27037
+ size: size2 = "regular",
27038
+ type = "button",
27039
+ tabIndex,
27040
+ id: id2
26938
27041
  }) {
26939
27042
  return /* @__PURE__ */ jsx(Btn, {
27043
+ id: id2,
26940
27044
  bg: {
26941
27045
  main: vars("colors-main-veryLightBlue"),
26942
27046
  hover: vars("colors-main-linkWater")
@@ -26953,28 +27057,58 @@ function BtnSecondary({
26953
27057
  rightIcon,
26954
27058
  size: size2,
26955
27059
  touchDark: true,
27060
+ type,
27061
+ tabIndex,
26956
27062
  children
26957
27063
  });
26958
27064
  }
26959
27065
  BtnSecondary.displayName = "BtnSecondary";
26960
27066
  function BtnTertiary({
26961
27067
  children,
26962
- rightIcon = false,
27068
+ iconStatus = "multimedia",
27069
+ rightIcon,
26963
27070
  withoutColor = false,
26964
27071
  m: m2 = "0",
27072
+ type = "button",
27073
+ tabIndex,
27074
+ id: id2,
26965
27075
  onClick
26966
27076
  }) {
27077
+ var _a;
26967
27078
  const gray = vars("colors-neutral-gray");
26968
27079
  const blue = vars("colors-main-deepSkyBlue");
26969
27080
  const white = vars("colors-neutral-white");
26970
27081
  const colorIcon = withoutColor ? gray : blue;
26971
- const rIcon = rightIcon ? /* @__PURE__ */ jsx(Multimedia, {
26972
- color: colorIcon
26973
- }) : void 0;
26974
- const lIcon = !rightIcon ? /* @__PURE__ */ jsx(Multimedia, {
26975
- color: colorIcon
26976
- }) : void 0;
27082
+ const btnIcons = {
27083
+ answer: /* @__PURE__ */ jsx(TextBubble, {
27084
+ color: colorIcon
27085
+ }),
27086
+ back: /* @__PURE__ */ jsx(GoBack, {
27087
+ color: colorIcon
27088
+ }),
27089
+ edit: /* @__PURE__ */ jsx(Pen, {
27090
+ color: colorIcon
27091
+ }),
27092
+ eliminate: /* @__PURE__ */ jsx(TrashCan, {
27093
+ color: colorIcon
27094
+ }),
27095
+ more: /* @__PURE__ */ jsx(PlusSign, {
27096
+ color: colorIcon
27097
+ }),
27098
+ password: /* @__PURE__ */ jsx(Password, {
27099
+ color: colorIcon
27100
+ }),
27101
+ multimedia: /* @__PURE__ */ jsx(Multimedia, {
27102
+ color: colorIcon
27103
+ })
27104
+ };
27105
+ const icon = (_a = btnIcons[iconStatus]) != null ? _a : btnIcons.multimedia;
27106
+ const rIcon = rightIcon ? icon : void 0;
27107
+ const lIcon = !rightIcon ? icon : void 0;
26977
27108
  return /* @__PURE__ */ jsx(Button, {
27109
+ id: id2,
27110
+ type,
27111
+ tabIndex,
26978
27112
  height: "24px",
26979
27113
  background: white,
26980
27114
  fontFamily: "Roboto",