@dotss/tictoccroc 0.0.11 → 0.0.13
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/index.d.ts +1 -0
- package/dist/index.mjs +122 -104
- package/dist/shared/components/Carousel/Carousel.mjs +68 -67
- package/dist/shared/components/Image/Image.d.ts +5 -2
- package/dist/shared/components/Image/Image.error.d.ts +5 -0
- package/dist/shared/components/Image/Image.error.mjs +41 -0
- package/dist/shared/components/Image/Image.mjs +114 -100
- package/dist/shared/components/Image/index.d.ts +2 -0
- package/dist/shared/components/Image/index.mjs +4 -2
- package/dist/shared/components/Masonry/Masonry.utils.mjs +19 -16
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +10 -9
- package/dist/shared/components/Swiper/Swiper.mjs +16 -16
- package/dist/shared/components/index.mjs +16 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +12 -0
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.d.ts +2 -0
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +12 -0
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +92 -0
- package/dist/teacher/home/components/BannerAccount/index.d.ts +4 -0
- package/dist/teacher/home/components/BannerAccount/index.mjs +7 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +13 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.d.ts +2 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +67 -0
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +61 -0
- package/dist/teacher/home/components/Carousel1Account/index.d.ts +4 -0
- package/dist/teacher/home/components/Carousel1Account/index.mjs +7 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +15 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.d.ts +2 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +94 -0
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +64 -0
- package/dist/teacher/home/components/Carousel2Account/index.d.ts +4 -0
- package/dist/teacher/home/components/Carousel2Account/index.mjs +7 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +13 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.d.ts +2 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +98 -0
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +97 -0
- package/dist/teacher/home/components/TextAccount/index.d.ts +4 -0
- package/dist/teacher/home/components/TextAccount/index.mjs +7 -0
- package/dist/teacher/home/components/index.d.ts +14 -0
- package/dist/teacher/home/components/index.mjs +18 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +3 -2
- package/package.json +9 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsxs as e, Fragment as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import r from "@dotss/ui/core/useTheme";
|
|
3
|
+
import n from "@dotss/ui/Flexbox";
|
|
4
|
+
import i from "@dotss/ui/Skeleton";
|
|
5
|
+
import m from "../../../../shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
6
|
+
function s() {
|
|
7
|
+
const { spacing: h } = r();
|
|
8
|
+
return /* @__PURE__ */ e(d, { children: [
|
|
9
|
+
/* @__PURE__ */ t(m, {}),
|
|
10
|
+
/* @__PURE__ */ e(n, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, children: [
|
|
11
|
+
/* @__PURE__ */ t(
|
|
12
|
+
i,
|
|
13
|
+
{
|
|
14
|
+
height: 30,
|
|
15
|
+
inlineCSS: {
|
|
16
|
+
width: "50%",
|
|
17
|
+
marginBottom: h.content(2),
|
|
18
|
+
marginLeft: h.content(4)
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ e(
|
|
23
|
+
n,
|
|
24
|
+
{
|
|
25
|
+
p: 4,
|
|
26
|
+
gap: 3,
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "space-between",
|
|
29
|
+
inlineCSS: { width: "100%" },
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ t(i, { width: 100, minWidth: 100, height: 78, borderRadius: 8 }),
|
|
32
|
+
/* @__PURE__ */ t(i, { width: "100%", height: 48 }),
|
|
33
|
+
/* @__PURE__ */ t(i, { width: 16, height: 16, minWidth: 16 })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ e(
|
|
38
|
+
n,
|
|
39
|
+
{
|
|
40
|
+
p: 4,
|
|
41
|
+
gap: 3,
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
justifyContent: "space-between",
|
|
44
|
+
inlineCSS: { width: "100%" },
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ t(i, { width: "100%", maxWidth: 300, textHeight: "b2R" }),
|
|
47
|
+
/* @__PURE__ */ t(i, { width: 16, height: 16, minWidth: 16 })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
n,
|
|
53
|
+
{
|
|
54
|
+
p: 4,
|
|
55
|
+
gap: 3,
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
justifyContent: "space-between",
|
|
58
|
+
inlineCSS: { width: "100%" },
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ t(i, { width: "100%", maxWidth: 200, textHeight: "b2R" }),
|
|
61
|
+
/* @__PURE__ */ t(i, { width: 16, height: 16, minWidth: 16 })
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ e(
|
|
66
|
+
n,
|
|
67
|
+
{
|
|
68
|
+
p: 4,
|
|
69
|
+
gap: 3,
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
justifyContent: "space-between",
|
|
72
|
+
inlineCSS: { width: "100%" },
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ t(i, { width: "100%", maxWidth: 300, textHeight: "b2R" }),
|
|
75
|
+
/* @__PURE__ */ t(i, { width: 16, height: 16, minWidth: 16 })
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ e(
|
|
80
|
+
n,
|
|
81
|
+
{
|
|
82
|
+
p: 4,
|
|
83
|
+
gap: 3,
|
|
84
|
+
alignItems: "center",
|
|
85
|
+
justifyContent: "space-between",
|
|
86
|
+
inlineCSS: { width: "100%" },
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ t(i, { width: "100%", maxWidth: 200, textHeight: "b2R" }),
|
|
89
|
+
/* @__PURE__ */ t(i, { width: 16, height: 16, minWidth: 16 })
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
s as default
|
|
98
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import b from "@dotss/ui/core/useTheme";
|
|
3
|
+
import i from "@dotss/ui/Flexbox";
|
|
4
|
+
import { useCheckHoverPossible as S } from "@dotss/ui/hooks";
|
|
5
|
+
import x from "@dotss/ui/Icon";
|
|
6
|
+
import d from "@dotss/ui/Typography";
|
|
7
|
+
import C from "../../../../shared/components/Image/Image.mjs";
|
|
8
|
+
import "@dotss/ui";
|
|
9
|
+
function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
|
|
10
|
+
const { spacing: o, palette: c } = b(), { isHoverPossible: f } = S(), u = (r) => (t) => {
|
|
11
|
+
n && typeof n == "function" && (t.stopPropagation(), t.preventDefault(), n(r, t));
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
|
|
14
|
+
/* @__PURE__ */ e(
|
|
15
|
+
d,
|
|
16
|
+
{
|
|
17
|
+
id: `banner-account-text-${a}`,
|
|
18
|
+
variant: "h2B",
|
|
19
|
+
inlineCSS: {
|
|
20
|
+
paddingLeft: o.content(4),
|
|
21
|
+
paddingRight: o.content(4),
|
|
22
|
+
marginBottom: o.content(2)
|
|
23
|
+
},
|
|
24
|
+
children: p
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ e(i, { tag: "ul", flexDirection: "column", "aria-labelledby": `banner-account-text-${a}`, children: s.map(({ id: r, title: t, url: l, image: h }) => /* @__PURE__ */ e(i, { tag: "li", alignItems: "center", children: /* @__PURE__ */ m(
|
|
28
|
+
i,
|
|
29
|
+
{
|
|
30
|
+
tag: "a",
|
|
31
|
+
href: l,
|
|
32
|
+
p: 4,
|
|
33
|
+
gap: 3,
|
|
34
|
+
alignItems: "center",
|
|
35
|
+
onClick: u(l),
|
|
36
|
+
inlineCSS: {
|
|
37
|
+
width: "100%",
|
|
38
|
+
"&:focus-within": {
|
|
39
|
+
backgroundColor: c.grey[10]
|
|
40
|
+
},
|
|
41
|
+
...f ? {
|
|
42
|
+
"&:hover": {
|
|
43
|
+
backgroundColor: c.grey[10]
|
|
44
|
+
}
|
|
45
|
+
} : {}
|
|
46
|
+
},
|
|
47
|
+
children: [
|
|
48
|
+
h && /* @__PURE__ */ e(
|
|
49
|
+
i,
|
|
50
|
+
{
|
|
51
|
+
inlineCSS: {
|
|
52
|
+
minWidth: 100,
|
|
53
|
+
borderRadius: 8,
|
|
54
|
+
overflow: "hidden"
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ e(
|
|
57
|
+
C,
|
|
58
|
+
{
|
|
59
|
+
width: 100,
|
|
60
|
+
height: 78,
|
|
61
|
+
src: h,
|
|
62
|
+
alt: `${t} 이미지`,
|
|
63
|
+
enableFallback: !0,
|
|
64
|
+
enableErrorFallback: !0
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
/* @__PURE__ */ e(
|
|
70
|
+
d,
|
|
71
|
+
{
|
|
72
|
+
tag: "p",
|
|
73
|
+
variant: "b2R",
|
|
74
|
+
lineClamp: l ? 2 : 1,
|
|
75
|
+
inlineCSS: {
|
|
76
|
+
flexGrow: 1
|
|
77
|
+
},
|
|
78
|
+
children: t
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ e(
|
|
82
|
+
i,
|
|
83
|
+
{
|
|
84
|
+
inlineCSS: {
|
|
85
|
+
whiteSpace: "nowrap"
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ e(x, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
) }, `tictoccroc-story-${r}`)) })
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
F as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface BannerProps {
|
|
3
|
+
id: number;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
export { default as TextAccount } from './TextAccount';
|
|
8
|
+
export { default as Carousel1Account } from './Carousel1Account';
|
|
9
|
+
export { default as Carousel2Account } from './Carousel2Account';
|
|
10
|
+
export { default as BannerAccount } from './BannerAccount';
|
|
11
|
+
export * from './TextAccount';
|
|
12
|
+
export * from './Carousel1Account';
|
|
13
|
+
export * from './Carousel2Account';
|
|
14
|
+
export * from './BannerAccount';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as t } from "./TextAccount/TextAccount.mjs";
|
|
2
|
+
import { default as r } from "./TextAccount/TextAccount.fallback.mjs";
|
|
3
|
+
import { default as l } from "./Carousel1Account/Carousel1Account.mjs";
|
|
4
|
+
import { default as f } from "./Carousel1Account/Carousel1Account.fallback.mjs";
|
|
5
|
+
import { default as s } from "./Carousel2Account/Carousel2Account.mjs";
|
|
6
|
+
import { default as d } from "./Carousel2Account/Carousel2Account.fallback.mjs";
|
|
7
|
+
import { default as p } from "./BannerAccount/BannerAccount.mjs";
|
|
8
|
+
import { default as b } from "./BannerAccount/BannerAccount.fallback.mjs";
|
|
9
|
+
export {
|
|
10
|
+
p as BannerAccount,
|
|
11
|
+
b as BannerAccountFallback,
|
|
12
|
+
l as Carousel1Account,
|
|
13
|
+
f as Carousel1AccountFallback,
|
|
14
|
+
s as Carousel2Account,
|
|
15
|
+
d as Carousel2AccountFallback,
|
|
16
|
+
t as TextAccount,
|
|
17
|
+
r as TextAccountFallback
|
|
18
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Label as e } from "@dotss/ui";
|
|
3
3
|
import s from "../../../../../shared/components/Image/Image.mjs";
|
|
4
|
-
|
|
4
|
+
import "@dotss/ui/core/useTheme";
|
|
5
|
+
function g({ type: l, percent: t, ...r }) {
|
|
5
6
|
return l === "creativeArt" ? /* @__PURE__ */ i(
|
|
6
7
|
e,
|
|
7
8
|
{
|
|
@@ -101,5 +102,5 @@ function h({ type: l, percent: t, ...r }) {
|
|
|
101
102
|
);
|
|
102
103
|
}
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
+
g as default
|
|
105
106
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotss/tictoccroc",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.13",
|
|
5
5
|
"description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -43,6 +43,14 @@
|
|
|
43
43
|
"import": "./dist/teacher/profile/utils/*/index.mjs",
|
|
44
44
|
"types": "./dist/teacher/profile/utils/*/index.d.ts"
|
|
45
45
|
},
|
|
46
|
+
"./teacher/home/components": {
|
|
47
|
+
"import": "./dist/teacher/home/components/index.mjs",
|
|
48
|
+
"types": "./dist/teacher/home/components/index.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./teacher/home/components/*": {
|
|
51
|
+
"import": "./dist/teacher/home/components/*/index.mjs",
|
|
52
|
+
"types": "./dist/teacher/home/components/*/index.d.ts"
|
|
53
|
+
},
|
|
46
54
|
"./shared/components": {
|
|
47
55
|
"import": "./dist/shared/components/index.mjs",
|
|
48
56
|
"types": "./dist/shared/components/index.d.ts"
|