@eclass/ui-kit 1.5.1 → 1.5.2
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/ArrowRight.d.ts +1 -1
- package/dist/atoms/Icons/{Icon.d.ts → Base.d.ts} +1 -1
- package/dist/atoms/Icons/Certificate.d.ts +1 -1
- package/dist/atoms/Icons/CircularCheck.d.ts +1 -1
- package/dist/atoms/Icons/CircularInformation.d.ts +1 -1
- package/dist/atoms/Icons/Profile.d.ts +1 -1
- package/dist/atoms/Icons/Schedule.d.ts +1 -1
- package/dist/eclass-ui-kit.es.js +65 -54
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +6 -6
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/theme/colors.d.ts +8 -2
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/typography.d.ts +11 -0
- package/dist/theme/utils.d.ts +30 -0
- package/package.json +6 -5
- package/dist/components/TestVars.d.ts +0 -6
|
@@ -9,5 +9,5 @@ interface IconProps extends BaseProps {
|
|
|
9
9
|
viewBox?: string;
|
|
10
10
|
children: React.ReactChild | React.ReactChild[];
|
|
11
11
|
}
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function Base({ w, h, color, m, viewBox, children, }: IconProps): JSX.Element;
|
|
13
13
|
export {};
|
package/dist/eclass-ui-kit.es.js
CHANGED
|
@@ -2986,7 +2986,7 @@ var transition$2 = {
|
|
|
2986
2986
|
transitionProperty: t.prop("transitionProperty", "transition.property"),
|
|
2987
2987
|
transitionTimingFunction: t.prop("transitionTimingFunction", "transition.easing")
|
|
2988
2988
|
};
|
|
2989
|
-
var typography$
|
|
2989
|
+
var typography$3 = {
|
|
2990
2990
|
fontFamily: t.prop("fontFamily", "fonts"),
|
|
2991
2991
|
fontSize: t.prop("fontSize", "fontSizes", transformFunctions.px),
|
|
2992
2992
|
fontWeight: t.prop("fontWeight", "fontWeights"),
|
|
@@ -3100,7 +3100,7 @@ function _extends$p() {
|
|
|
3100
3100
|
};
|
|
3101
3101
|
return _extends$p.apply(this, arguments);
|
|
3102
3102
|
}
|
|
3103
|
-
var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter, ring, interactivity, grid, others, position, effect, space, typography$
|
|
3103
|
+
var systemProps = mergeWith({}, background, border, color, flexbox, layout, filter, ring, interactivity, grid, others, position, effect, space, typography$3, textDecoration, transform, list, transition$2);
|
|
3104
3104
|
var layoutSystem = Object.assign({}, space, layout, flexbox, grid, position);
|
|
3105
3105
|
objectKeys(layoutSystem);
|
|
3106
3106
|
var propNames = [...objectKeys(systemProps), ...pseudoPropNames];
|
|
@@ -6910,7 +6910,7 @@ var Modal = {
|
|
|
6910
6910
|
sizes: sizes$d,
|
|
6911
6911
|
defaultProps: defaultProps$c
|
|
6912
6912
|
};
|
|
6913
|
-
var typography = {
|
|
6913
|
+
var typography$1 = {
|
|
6914
6914
|
letterSpacings: {
|
|
6915
6915
|
tighter: "-0.05em",
|
|
6916
6916
|
tight: "-0.025em",
|
|
@@ -6968,7 +6968,7 @@ var typography = {
|
|
|
6968
6968
|
"9xl": "8rem"
|
|
6969
6969
|
}
|
|
6970
6970
|
};
|
|
6971
|
-
var typography$
|
|
6971
|
+
var typography$2 = typography$1;
|
|
6972
6972
|
var _Input$baseStyle$fiel, _Input$baseStyle;
|
|
6973
6973
|
function _extends$j() {
|
|
6974
6974
|
_extends$j = Object.assign || function(target) {
|
|
@@ -7029,7 +7029,7 @@ function getSize(size2) {
|
|
|
7029
7029
|
xs: "sm"
|
|
7030
7030
|
};
|
|
7031
7031
|
var _fontSize = (_sizeStyle$field$font = (_sizeStyle$field = sizeStyle.field) == null ? void 0 : _sizeStyle$field.fontSize) != null ? _sizeStyle$field$font : "md";
|
|
7032
|
-
var fontSize = typography$
|
|
7032
|
+
var fontSize = typography$2.fontSizes[_fontSize.toString()];
|
|
7033
7033
|
return {
|
|
7034
7034
|
field: _extends$j({}, sizeStyle.field, {
|
|
7035
7035
|
paddingInlineEnd: $inputPadding.reference,
|
|
@@ -8393,14 +8393,14 @@ var components = {
|
|
|
8393
8393
|
Tooltip,
|
|
8394
8394
|
FormError
|
|
8395
8395
|
};
|
|
8396
|
-
var borders = {
|
|
8396
|
+
var borders$1 = {
|
|
8397
8397
|
none: 0,
|
|
8398
8398
|
"1px": "1px solid",
|
|
8399
8399
|
"2px": "2px solid",
|
|
8400
8400
|
"4px": "4px solid",
|
|
8401
8401
|
"8px": "8px solid"
|
|
8402
8402
|
};
|
|
8403
|
-
var borders$
|
|
8403
|
+
var borders$2 = borders$1;
|
|
8404
8404
|
var breakpoints = createBreakpoints({
|
|
8405
8405
|
sm: "30em",
|
|
8406
8406
|
md: "48em",
|
|
@@ -8632,7 +8632,7 @@ var colors$1 = {
|
|
|
8632
8632
|
}
|
|
8633
8633
|
};
|
|
8634
8634
|
var colors$2 = colors$1;
|
|
8635
|
-
var radii = {
|
|
8635
|
+
var radii$1 = {
|
|
8636
8636
|
none: "0",
|
|
8637
8637
|
sm: "0.125rem",
|
|
8638
8638
|
base: "0.25rem",
|
|
@@ -8643,7 +8643,7 @@ var radii = {
|
|
|
8643
8643
|
"3xl": "1.5rem",
|
|
8644
8644
|
full: "9999px"
|
|
8645
8645
|
};
|
|
8646
|
-
var radii$
|
|
8646
|
+
var radii$2 = radii$1;
|
|
8647
8647
|
var shadows = {
|
|
8648
8648
|
xs: "0 0 0 1px rgba(0, 0, 0, 0.05)",
|
|
8649
8649
|
sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
@@ -8729,14 +8729,14 @@ function _extends$b() {
|
|
|
8729
8729
|
var foundations = _extends$b({
|
|
8730
8730
|
breakpoints: breakpoints$1,
|
|
8731
8731
|
zIndices: zIndices$1,
|
|
8732
|
-
radii: radii$
|
|
8732
|
+
radii: radii$2,
|
|
8733
8733
|
blur: blur$1,
|
|
8734
8734
|
colors: colors$2
|
|
8735
|
-
}, typography$
|
|
8735
|
+
}, typography$2, {
|
|
8736
8736
|
sizes: sizes$m,
|
|
8737
8737
|
shadows: shadows$1,
|
|
8738
8738
|
space: spacing,
|
|
8739
|
-
borders: borders$
|
|
8739
|
+
borders: borders$2,
|
|
8740
8740
|
transition: transition$1
|
|
8741
8741
|
});
|
|
8742
8742
|
var foundations$1 = foundations;
|
|
@@ -8873,7 +8873,7 @@ var fallbackIcon = {
|
|
|
8873
8873
|
})),
|
|
8874
8874
|
viewBox: "0 0 24 24"
|
|
8875
8875
|
};
|
|
8876
|
-
var Icon
|
|
8876
|
+
var Icon = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
8877
8877
|
var {
|
|
8878
8878
|
as: element,
|
|
8879
8879
|
viewBox,
|
|
@@ -10001,7 +10001,7 @@ function Ripples({
|
|
|
10001
10001
|
});
|
|
10002
10002
|
}
|
|
10003
10003
|
Ripples.displayName = "Ripples";
|
|
10004
|
-
function
|
|
10004
|
+
function Base({
|
|
10005
10005
|
w: w2 = "1rem",
|
|
10006
10006
|
h = "1rem",
|
|
10007
10007
|
color: color2 = vars("colors-main-ziggurat"),
|
|
@@ -10009,7 +10009,7 @@ function Icon({
|
|
|
10009
10009
|
viewBox = "0 0 16 16",
|
|
10010
10010
|
children
|
|
10011
10011
|
}) {
|
|
10012
|
-
return /* @__PURE__ */ jsx(Icon
|
|
10012
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
10013
10013
|
w: w2,
|
|
10014
10014
|
h,
|
|
10015
10015
|
viewBox,
|
|
@@ -10019,7 +10019,7 @@ function Icon({
|
|
|
10019
10019
|
});
|
|
10020
10020
|
}
|
|
10021
10021
|
function ArrowRight(props) {
|
|
10022
|
-
return /* @__PURE__ */ jsxs(
|
|
10022
|
+
return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
|
|
10023
10023
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
10024
10024
|
clipPath: "url(#clip0)",
|
|
10025
10025
|
children: [/* @__PURE__ */ jsx("mask", {
|
|
@@ -10057,7 +10057,7 @@ function ArrowRight(props) {
|
|
|
10057
10057
|
}
|
|
10058
10058
|
ArrowRight.displayName = "ArrowRight";
|
|
10059
10059
|
function Certificate(props) {
|
|
10060
|
-
return /* @__PURE__ */ jsxs(
|
|
10060
|
+
return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
|
|
10061
10061
|
children: [/* @__PURE__ */ jsx("path", {
|
|
10062
10062
|
fill: "currentColor",
|
|
10063
10063
|
d: "M7 4H9V6H7z"
|
|
@@ -10071,7 +10071,7 @@ function Certificate(props) {
|
|
|
10071
10071
|
}
|
|
10072
10072
|
Certificate.displayName = "Certificate";
|
|
10073
10073
|
function CircularCheck(props) {
|
|
10074
|
-
return /* @__PURE__ */ jsx(
|
|
10074
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
|
|
10075
10075
|
children: /* @__PURE__ */ jsx("path", {
|
|
10076
10076
|
fill: "currentColor",
|
|
10077
10077
|
fillRule: "evenodd",
|
|
@@ -10082,7 +10082,7 @@ function CircularCheck(props) {
|
|
|
10082
10082
|
}
|
|
10083
10083
|
CircularCheck.displayName = "CircularCheck";
|
|
10084
10084
|
function CircularInformation(props) {
|
|
10085
|
-
return /* @__PURE__ */ jsx(
|
|
10085
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
|
|
10086
10086
|
children: /* @__PURE__ */ jsx("path", {
|
|
10087
10087
|
fill: "currentColor",
|
|
10088
10088
|
fillRule: "evenodd",
|
|
@@ -10093,7 +10093,7 @@ function CircularInformation(props) {
|
|
|
10093
10093
|
}
|
|
10094
10094
|
CircularInformation.displayName = "CircularInformation";
|
|
10095
10095
|
function Profile(props) {
|
|
10096
|
-
return /* @__PURE__ */ jsx(
|
|
10096
|
+
return /* @__PURE__ */ jsx(Base, __spreadProps(__spreadValues({}, props), {
|
|
10097
10097
|
viewBox: "0 0 12 12",
|
|
10098
10098
|
w: ".625rem",
|
|
10099
10099
|
h: ".75rem",
|
|
@@ -10105,7 +10105,7 @@ function Profile(props) {
|
|
|
10105
10105
|
}
|
|
10106
10106
|
Profile.displayName = "Profile";
|
|
10107
10107
|
function Schedule(props) {
|
|
10108
|
-
return /* @__PURE__ */ jsxs(
|
|
10108
|
+
return /* @__PURE__ */ jsxs(Base, __spreadProps(__spreadValues({}, props), {
|
|
10109
10109
|
children: [/* @__PURE__ */ jsx("path", {
|
|
10110
10110
|
fill: "currentColor",
|
|
10111
10111
|
fillRule: "evenodd",
|
|
@@ -10148,7 +10148,7 @@ function Header() {
|
|
|
10148
10148
|
bgPos: "center",
|
|
10149
10149
|
bgSize: "cover",
|
|
10150
10150
|
height: "8.75rem",
|
|
10151
|
-
borderBottom:
|
|
10151
|
+
borderBottom: vars("borders-light"),
|
|
10152
10152
|
pos: "relative",
|
|
10153
10153
|
children: [/* @__PURE__ */ jsxs(Box, {
|
|
10154
10154
|
p: "1rem",
|
|
@@ -10175,10 +10175,10 @@ function Header() {
|
|
|
10175
10175
|
left: ".9375rem",
|
|
10176
10176
|
transform: "translateY(30%)",
|
|
10177
10177
|
h: "3.5rem",
|
|
10178
|
-
border:
|
|
10178
|
+
border: vars("borders-light"),
|
|
10179
10179
|
bg: vars("colors-neutral-white"),
|
|
10180
10180
|
overflow: "hidden",
|
|
10181
|
-
borderRadius: "
|
|
10181
|
+
borderRadius: vars("radii-small"),
|
|
10182
10182
|
w: "6.25rem",
|
|
10183
10183
|
children: /* @__PURE__ */ jsx(Image$1, {
|
|
10184
10184
|
src: logo,
|
|
@@ -10286,7 +10286,7 @@ function Section() {
|
|
|
10286
10286
|
pt: ".625rem",
|
|
10287
10287
|
m: ".625rem 0 0",
|
|
10288
10288
|
lineHeight: ".875rem",
|
|
10289
|
-
borderTop:
|
|
10289
|
+
borderTop: vars("borders-light"),
|
|
10290
10290
|
children: information.map((item, index) => {
|
|
10291
10291
|
var _a;
|
|
10292
10292
|
return /* @__PURE__ */ jsxs(ListItem, {
|
|
@@ -10375,8 +10375,8 @@ function CourseBox({
|
|
|
10375
10375
|
value: data,
|
|
10376
10376
|
children: /* @__PURE__ */ jsx(LinkBox, {
|
|
10377
10377
|
as: "article",
|
|
10378
|
-
border:
|
|
10379
|
-
borderRadius:
|
|
10378
|
+
border: vars("borders-light"),
|
|
10379
|
+
borderRadius: vars("radii-big"),
|
|
10380
10380
|
cursor: "pointer",
|
|
10381
10381
|
transition: "box-shadow .3s",
|
|
10382
10382
|
_active: cssActive,
|
|
@@ -10404,7 +10404,7 @@ function CourseList({
|
|
|
10404
10404
|
courses,
|
|
10405
10405
|
m: m2 = "0 auto"
|
|
10406
10406
|
}) {
|
|
10407
|
-
if (
|
|
10407
|
+
if (courses === void 0) {
|
|
10408
10408
|
return null;
|
|
10409
10409
|
}
|
|
10410
10410
|
return /* @__PURE__ */ jsx(Box, {
|
|
@@ -11019,16 +11019,13 @@ const dataStates = {
|
|
|
11019
11019
|
})
|
|
11020
11020
|
};
|
|
11021
11021
|
const dataFake = Object.keys(dataStates).map((key) => dataStates[key]);
|
|
11022
|
-
var _700 = "";
|
|
11023
|
-
var _500 = "";
|
|
11024
|
-
var _400$1 = "";
|
|
11025
|
-
var _300 = "";
|
|
11026
|
-
var _400 = "";
|
|
11027
11022
|
const main = {
|
|
11028
|
-
blueGrey: "#60798E",
|
|
11029
11023
|
deepSkyBlue: "#0189FF",
|
|
11030
|
-
|
|
11031
|
-
|
|
11024
|
+
azureRadiance: "#017BE5",
|
|
11025
|
+
blueGrey: "#60798E",
|
|
11026
|
+
veryLightBlue: "#E0EEFA",
|
|
11027
|
+
linkWater: "#C7DEF2",
|
|
11028
|
+
ziggurat: "#B0CFE0"
|
|
11032
11029
|
};
|
|
11033
11030
|
const colors = {
|
|
11034
11031
|
main,
|
|
@@ -11072,25 +11069,39 @@ const styles = {
|
|
|
11072
11069
|
}
|
|
11073
11070
|
})
|
|
11074
11071
|
};
|
|
11075
|
-
const
|
|
11076
|
-
|
|
11072
|
+
const base = "solid 1px";
|
|
11073
|
+
const borders = {
|
|
11074
|
+
normal: `${base} ${colors.neutral.silverSand}`,
|
|
11075
|
+
light: `${base} ${colors.neutral.platinum}`,
|
|
11076
|
+
active: `${base} ${colors.main.deepSkyBlue}`,
|
|
11077
|
+
success: `${base} ${colors.alert.jadeGreen}`,
|
|
11078
|
+
error: `${base} ${colors.alert.red}`
|
|
11079
|
+
};
|
|
11080
|
+
const radii = {
|
|
11081
|
+
small: ".25rem",
|
|
11082
|
+
big: ".5rem",
|
|
11083
|
+
rounded: "50%"
|
|
11084
|
+
};
|
|
11085
|
+
const utils = {
|
|
11086
|
+
borders,
|
|
11087
|
+
radii
|
|
11088
|
+
};
|
|
11089
|
+
var _700 = "";
|
|
11090
|
+
var _500 = "";
|
|
11091
|
+
var _400$1 = "";
|
|
11092
|
+
var _300 = "";
|
|
11093
|
+
var _400 = "";
|
|
11094
|
+
const typography = {
|
|
11077
11095
|
fonts: {
|
|
11078
|
-
body: "
|
|
11079
|
-
|
|
11096
|
+
body: "Roboto",
|
|
11097
|
+
outstanding: "Lora"
|
|
11098
|
+
}
|
|
11099
|
+
};
|
|
11100
|
+
const theme = extendTheme(__spreadProps(__spreadValues(__spreadValues({
|
|
11101
|
+
colors
|
|
11102
|
+
}, utils), typography), {
|
|
11080
11103
|
styles
|
|
11081
|
-
});
|
|
11104
|
+
}));
|
|
11082
11105
|
const vars = (value) => `var(--chakra-${value})`;
|
|
11083
|
-
|
|
11084
|
-
color: color2 = "main.veryLightBlue"
|
|
11085
|
-
}) => {
|
|
11086
|
-
return /* @__PURE__ */ jsx(chakra.button, {
|
|
11087
|
-
px: "3",
|
|
11088
|
-
py: "2",
|
|
11089
|
-
bg: "main.deepSkyBlue",
|
|
11090
|
-
rounded: "md",
|
|
11091
|
-
color: color2,
|
|
11092
|
-
children: "Click me"
|
|
11093
|
-
});
|
|
11094
|
-
};
|
|
11095
|
-
export { CourseList, Label, Progress, Ripples, TestVars, dataFake, maxWidthCoursesList, theme, vars };
|
|
11106
|
+
export { CourseList, Label, Progress, Ripples, dataFake, maxWidthCoursesList, theme, vars };
|
|
11096
11107
|
//# sourceMappingURL=eclass-ui-kit.es.js.map
|