@eclass/ui-kit 1.10.1 → 1.11.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 +45 -5
- 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 -2
- package/dist/molecules/Buttons/BtnLink.d.ts +11 -0
- 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 +4 -1
- package/dist/molecules/index.d.ts +4 -3
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -26912,7 +26912,8 @@ function Btn({
|
|
|
26912
26912
|
size: size2 = "regular",
|
|
26913
26913
|
touchDark = false,
|
|
26914
26914
|
type = "button",
|
|
26915
|
-
tabIndex
|
|
26915
|
+
tabIndex,
|
|
26916
|
+
id: id2
|
|
26916
26917
|
}) {
|
|
26917
26918
|
var _a, _b, _c;
|
|
26918
26919
|
let showChildren = children != null ? children : null;
|
|
@@ -26934,6 +26935,7 @@ function Btn({
|
|
|
26934
26935
|
children: /* @__PURE__ */ jsx(Ripples$1, {
|
|
26935
26936
|
color: touchColor,
|
|
26936
26937
|
children: /* @__PURE__ */ jsx(Button, {
|
|
26938
|
+
id: id2,
|
|
26937
26939
|
fontWeight: "500",
|
|
26938
26940
|
fontSize: size2 === "regular" ? "medium" : "small",
|
|
26939
26941
|
bg: colorMain,
|
|
@@ -27004,9 +27006,11 @@ function BtnPrimary({
|
|
|
27004
27006
|
rightIcon,
|
|
27005
27007
|
size: size2 = "regular",
|
|
27006
27008
|
type = "button",
|
|
27007
|
-
tabIndex
|
|
27009
|
+
tabIndex,
|
|
27010
|
+
id: id2
|
|
27008
27011
|
}) {
|
|
27009
27012
|
return /* @__PURE__ */ jsx(Btn, {
|
|
27013
|
+
id: id2,
|
|
27010
27014
|
disabled: disabled2,
|
|
27011
27015
|
isFullWidth,
|
|
27012
27016
|
isLoading,
|
|
@@ -27032,9 +27036,11 @@ function BtnSecondary({
|
|
|
27032
27036
|
rightIcon,
|
|
27033
27037
|
size: size2 = "regular",
|
|
27034
27038
|
type = "button",
|
|
27035
|
-
tabIndex
|
|
27039
|
+
tabIndex,
|
|
27040
|
+
id: id2
|
|
27036
27041
|
}) {
|
|
27037
27042
|
return /* @__PURE__ */ jsx(Btn, {
|
|
27043
|
+
id: id2,
|
|
27038
27044
|
bg: {
|
|
27039
27045
|
main: vars("colors-main-veryLightBlue"),
|
|
27040
27046
|
hover: vars("colors-main-linkWater")
|
|
@@ -27063,6 +27069,9 @@ function BtnTertiary({
|
|
|
27063
27069
|
rightIcon,
|
|
27064
27070
|
withoutColor = false,
|
|
27065
27071
|
m: m2 = "0",
|
|
27072
|
+
type = "button",
|
|
27073
|
+
tabIndex,
|
|
27074
|
+
id: id2,
|
|
27066
27075
|
onClick
|
|
27067
27076
|
}) {
|
|
27068
27077
|
var _a;
|
|
@@ -27097,8 +27106,11 @@ function BtnTertiary({
|
|
|
27097
27106
|
const rIcon = rightIcon ? icon : void 0;
|
|
27098
27107
|
const lIcon = !rightIcon ? icon : void 0;
|
|
27099
27108
|
return /* @__PURE__ */ jsx(Button, {
|
|
27109
|
+
id: id2,
|
|
27110
|
+
type,
|
|
27111
|
+
tabIndex,
|
|
27100
27112
|
height: "24px",
|
|
27101
|
-
background:
|
|
27113
|
+
background: "transparent",
|
|
27102
27114
|
fontFamily: "Roboto",
|
|
27103
27115
|
fontStyle: "normal",
|
|
27104
27116
|
fontWeight: "500",
|
|
@@ -27128,6 +27140,34 @@ function BtnTertiary({
|
|
|
27128
27140
|
});
|
|
27129
27141
|
}
|
|
27130
27142
|
BtnTertiary.displayName = "BtnTertiary";
|
|
27143
|
+
function BtnLink({
|
|
27144
|
+
children,
|
|
27145
|
+
m: m2 = "0",
|
|
27146
|
+
onClick,
|
|
27147
|
+
id: id2
|
|
27148
|
+
}) {
|
|
27149
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
27150
|
+
as: "button",
|
|
27151
|
+
id: id2,
|
|
27152
|
+
width: "fit-content",
|
|
27153
|
+
padding: ".25em",
|
|
27154
|
+
fontFamily: "Roboto",
|
|
27155
|
+
fontStyle: "normal",
|
|
27156
|
+
fontWeight: "500",
|
|
27157
|
+
fontSize: ".875rem",
|
|
27158
|
+
lineHeight: "1rem",
|
|
27159
|
+
textDecorationLine: "underline",
|
|
27160
|
+
color: vars("colors-main-deepSkyBlue"),
|
|
27161
|
+
m: m2,
|
|
27162
|
+
onClick,
|
|
27163
|
+
_hover: {
|
|
27164
|
+
color: vars("colors-neutral-darkCharcoal"),
|
|
27165
|
+
cursor: "pointer"
|
|
27166
|
+
},
|
|
27167
|
+
children
|
|
27168
|
+
});
|
|
27169
|
+
}
|
|
27170
|
+
BtnLink.displayName = "BtnLink";
|
|
27131
27171
|
const STUDENT = 4;
|
|
27132
27172
|
function Header() {
|
|
27133
27173
|
const {
|
|
@@ -28299,5 +28339,5 @@ function CourseList({
|
|
|
28299
28339
|
});
|
|
28300
28340
|
}
|
|
28301
28341
|
CourseList.displayName = "CourseList";
|
|
28302
|
-
export { Btn, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28342
|
+
export { Btn, BtnLink, BtnPrimary, BtnSecondary, BtnTertiary, CourseList, Label, Progress, Ripples, TinyAlert, dataFake, maxWidthCoursesList, theme, vars };
|
|
28303
28343
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|