@eclass/ui-kit 1.10.0 → 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.
- package/dist/atoms/Icons/GoBack.d.ts +6 -0
- package/dist/atoms/Icons/Password.d.ts +6 -0
- package/dist/atoms/Icons/Pen.d.ts +6 -0
- package/dist/atoms/Icons/PlusSign.d.ts +6 -0
- package/dist/atoms/Icons/TextBubble.d.ts +6 -0
- package/dist/atoms/Icons/TrashCan.d.ts +6 -0
- package/dist/atoms/Icons/index.d.ts +6 -0
- package/dist/eclass-ui-kit.es.js +132 -10
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +21 -21
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/molecules/Buttons/Btn.d.ts +3 -1
- package/dist/molecules/Buttons/BtnPrimary.d.ts +1 -1
- package/dist/molecules/Buttons/BtnSecondary.d.ts +1 -1
- package/dist/molecules/Buttons/BtnTertiary.d.ts +2 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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';
|
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -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,9 @@ 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
|
|
26826
26916
|
}) {
|
|
26827
26917
|
var _a, _b, _c;
|
|
26828
26918
|
let showChildren = children != null ? children : null;
|
|
@@ -26860,6 +26950,8 @@ function Btn({
|
|
|
26860
26950
|
onClick: (e2) => {
|
|
26861
26951
|
!isLoading && !disabled2 && (onClick == null ? void 0 : onClick(e2));
|
|
26862
26952
|
},
|
|
26953
|
+
type,
|
|
26954
|
+
tabIndex,
|
|
26863
26955
|
paddingTop: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
|
|
26864
26956
|
paddingBottom: size2 === "regular" ? vars("space-xs") : vars("space-xxs"),
|
|
26865
26957
|
paddingLeft: size2 === "regular" ? vars("space-s") : vars("space-xs"),
|
|
@@ -26910,7 +27002,9 @@ function BtnPrimary({
|
|
|
26910
27002
|
isLoading = false,
|
|
26911
27003
|
onClick,
|
|
26912
27004
|
rightIcon,
|
|
26913
|
-
size: size2 = "regular"
|
|
27005
|
+
size: size2 = "regular",
|
|
27006
|
+
type = "button",
|
|
27007
|
+
tabIndex
|
|
26914
27008
|
}) {
|
|
26915
27009
|
return /* @__PURE__ */ jsx(Btn, {
|
|
26916
27010
|
disabled: disabled2,
|
|
@@ -26921,6 +27015,8 @@ function BtnPrimary({
|
|
|
26921
27015
|
onClick,
|
|
26922
27016
|
rightIcon,
|
|
26923
27017
|
size: size2,
|
|
27018
|
+
type,
|
|
27019
|
+
tabIndex,
|
|
26924
27020
|
children
|
|
26925
27021
|
});
|
|
26926
27022
|
}
|
|
@@ -26934,7 +27030,9 @@ function BtnSecondary({
|
|
|
26934
27030
|
isLoading = false,
|
|
26935
27031
|
onClick,
|
|
26936
27032
|
rightIcon,
|
|
26937
|
-
size: size2 = "regular"
|
|
27033
|
+
size: size2 = "regular",
|
|
27034
|
+
type = "button",
|
|
27035
|
+
tabIndex
|
|
26938
27036
|
}) {
|
|
26939
27037
|
return /* @__PURE__ */ jsx(Btn, {
|
|
26940
27038
|
bg: {
|
|
@@ -26953,27 +27051,51 @@ function BtnSecondary({
|
|
|
26953
27051
|
rightIcon,
|
|
26954
27052
|
size: size2,
|
|
26955
27053
|
touchDark: true,
|
|
27054
|
+
type,
|
|
27055
|
+
tabIndex,
|
|
26956
27056
|
children
|
|
26957
27057
|
});
|
|
26958
27058
|
}
|
|
26959
27059
|
BtnSecondary.displayName = "BtnSecondary";
|
|
26960
27060
|
function BtnTertiary({
|
|
26961
27061
|
children,
|
|
26962
|
-
|
|
27062
|
+
iconStatus = "multimedia",
|
|
27063
|
+
rightIcon,
|
|
26963
27064
|
withoutColor = false,
|
|
26964
27065
|
m: m2 = "0",
|
|
26965
27066
|
onClick
|
|
26966
27067
|
}) {
|
|
27068
|
+
var _a;
|
|
26967
27069
|
const gray = vars("colors-neutral-gray");
|
|
26968
27070
|
const blue = vars("colors-main-deepSkyBlue");
|
|
26969
27071
|
const white = vars("colors-neutral-white");
|
|
26970
27072
|
const colorIcon = withoutColor ? gray : blue;
|
|
26971
|
-
const
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
26975
|
-
|
|
26976
|
-
|
|
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;
|
|
26977
27099
|
return /* @__PURE__ */ jsx(Button, {
|
|
26978
27100
|
height: "24px",
|
|
26979
27101
|
background: white,
|