@dotss/tictoccroc 0.0.12 → 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.
@@ -8,5 +8,5 @@ export interface BannerAccountProps extends Omit<FlexboxProps, 'title'> {
8
8
  }>;
9
9
  onClickBanner?: (url: string, e: SyntheticEvent) => void;
10
10
  }
11
- declare function BannerAccount({ id, banners, onClickBanner }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
11
+ declare function BannerAccount({ id, banners, onClickBanner, ...props }: BannerAccountProps): import("@emotion/react/jsx-runtime").JSX.Element;
12
12
  export default BannerAccount;
@@ -1,14 +1,16 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
2
  import t from "@dotss/ui/Flexbox";
3
- import s from "@dotss/ui/Typography";
4
- import { useTheme as f } from "@emotion/react";
5
- import u from "../../../../shared/components/Image/Image.mjs";
6
- import b from "../../../../shared/components/Swiper/Swiper.mjs";
7
- import g from "../../../../shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
8
- function j({ id: o, banners: a, onClickBanner: n }) {
9
- const { palette: l } = f(), d = (i) => (r) => {
3
+ import u from "@dotss/ui/Typography";
4
+ import { useTheme as b } from "@emotion/react";
5
+ import f from "../../../../shared/components/Image/Image.mjs";
6
+ import "@dotss/ui";
7
+ import "@dotss/ui/core/useTheme";
8
+ import g from "../../../../shared/components/Swiper/Swiper.mjs";
9
+ import S from "../../../../shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
10
+ function R({ id: o, banners: c, onClickBanner: n, ...l }) {
11
+ const { palette: d } = b(), p = (i) => (r) => {
10
12
  n && typeof n == "function" && (r.stopPropagation(), r.preventDefault(), n(i, r));
11
- }, p = ({ page: i, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ e(
13
+ }, h = ({ page: i, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ e(
12
14
  t,
13
15
  {
14
16
  alignItems: "center",
@@ -24,10 +26,10 @@ function j({ id: o, banners: a, onClickBanner: n }) {
24
26
  minWidth: 36,
25
27
  minHeight: 20,
26
28
  borderRadius: 24,
27
- backgroundColor: l.etc.dimmed02
29
+ backgroundColor: d.etc.dimmed02
28
30
  },
29
- children: /* @__PURE__ */ c(
30
- s,
31
+ children: /* @__PURE__ */ a(
32
+ u,
31
33
  {
32
34
  tag: "p",
33
35
  variant: "c5R",
@@ -47,30 +49,34 @@ function j({ id: o, banners: a, onClickBanner: n }) {
47
49
  )
48
50
  }
49
51
  );
50
- return /* @__PURE__ */ c(t, { inlineCSS: { width: "100%" }, children: [
52
+ return /* @__PURE__ */ a(t, { inlineCSS: { width: "100%" }, ...l, children: [
51
53
  /* @__PURE__ */ e(t, { id: `tictoccroc-banner-${o}`, visuallyHidden: !0, children: "배너" }),
52
54
  /* @__PURE__ */ e(
53
- b,
55
+ g,
54
56
  {
55
- renderPagination: p,
57
+ renderPagination: h,
56
58
  loop: !0,
57
59
  inlineCSS: { borderRadius: 12, overflow: "hidden" },
58
60
  "aria-describedby": `tictoccroc-banner-${o}`,
59
- children: a.map(({ id: i, url: r, image: h }, m) => /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e(
61
+ children: c.map(({ id: i, url: r, image: m }, s) => /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
60
62
  t,
61
63
  {
62
64
  tag: "a",
63
65
  href: r,
64
66
  draggable: !1,
65
- onClick: d(r),
67
+ onClick: p(r),
66
68
  inlineCSS: { width: "100%" },
67
69
  children: /* @__PURE__ */ e(
68
- u,
70
+ f,
69
71
  {
70
- src: h || "",
71
- alt: `배너 ${m + 1}`,
72
+ src: m || "",
73
+ alt: `배너 ${s + 1}`,
74
+ width: 328,
72
75
  height: 100,
73
76
  draggable: !1,
77
+ enableFallback: !0,
78
+ enableErrorFallback: !0,
79
+ withIntrinsicRatio: !0,
74
80
  wrapperProps: { inlineCSS: { width: "100%" } },
75
81
  style: { width: "100%", objectFit: "cover" }
76
82
  }
@@ -82,5 +88,5 @@ function j({ id: o, banners: a, onClickBanner: n }) {
82
88
  ] });
83
89
  }
84
90
  export {
85
- j as default
91
+ R as default
86
92
  };
@@ -20,7 +20,7 @@ function s() {
20
20
  height: 30,
21
21
  inlineCSS: {
22
22
  width: "50%",
23
- marginBottom: t.content(2),
23
+ marginBottom: t.content(3),
24
24
  marginLeft: t.content(4)
25
25
  }
26
26
  }
@@ -1,38 +1,42 @@
1
- import { jsx as r, Fragment as h, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as e, Fragment as h, jsxs as n } from "react/jsx-runtime";
2
2
  import f from "@dotss/ui/core/useTheme";
3
- import a from "@dotss/ui/Flexbox";
4
- import c from "@dotss/ui/Typography";
5
- import C from "../../../../shared/components/Carousel/Carousel.mjs";
6
- import S from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
7
- import x from "../../../../shared/components/Image/Image.mjs";
8
- function D({ id: l, title: p, banners: d, onClickBanner: e, ...m }) {
9
- const { spacing: i } = f(), s = (o) => (t) => {
10
- e && typeof e == "function" && (t.stopPropagation(), t.preventDefault(), e(o, t));
3
+ import c from "@dotss/ui/Flexbox";
4
+ import l from "@dotss/ui/Typography";
5
+ import b from "../../../../shared/components/Carousel/Carousel.mjs";
6
+ import C from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
7
+ import S from "../../../../shared/components/Image/Image.mjs";
8
+ import "@dotss/ui";
9
+ function D({ id: d, title: m, banners: p, onClickBanner: r, ...s }) {
10
+ const { spacing: i } = f(), u = (o) => (t) => {
11
+ r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
11
12
  };
12
- return /* @__PURE__ */ r(h, { children: /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", ...m, children: [
13
- /* @__PURE__ */ r(
14
- c,
13
+ return /* @__PURE__ */ e(h, { children: /* @__PURE__ */ n(c, { flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
14
+ /* @__PURE__ */ e(
15
+ l,
15
16
  {
16
- id: `banner-account-carousel1-${l}`,
17
+ id: `banner-account-carousel1-${d}`,
17
18
  variant: "h2B",
18
19
  inlineCSS: {
19
20
  paddingLeft: i.content(4),
20
21
  paddingRight: i.content(4),
21
- marginBottom: i.content(2)
22
+ marginBottom: i.content(3)
22
23
  },
23
- children: p
24
+ children: m
24
25
  }
25
26
  ),
26
- /* @__PURE__ */ r(C, { rowCount: 2, step: 1, spacing: 5, children: d.map(({ id: o, title: t, url: u, image: g }) => /* @__PURE__ */ r(S, { children: /* @__PURE__ */ n(
27
- a,
27
+ /* @__PURE__ */ e(b, { rowCount: 2, step: 1, spacing: 5, children: p.map(({ id: o, title: t, url: a, image: g }) => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ n(
28
+ c,
28
29
  {
30
+ tag: "a",
31
+ href: a,
29
32
  alignItems: "center",
30
33
  gap: 4,
31
- onClick: s(u),
34
+ draggable: !1,
35
+ onClick: u(a),
32
36
  inlineCSS: { width: 264 },
33
37
  children: [
34
- /* @__PURE__ */ r(
35
- x,
38
+ /* @__PURE__ */ e(
39
+ S,
36
40
  {
37
41
  src: g || "",
38
42
  width: 140,
@@ -40,15 +44,13 @@ function D({ id: l, title: p, banners: d, onClickBanner: e, ...m }) {
40
44
  alt: `${t} 이미지`,
41
45
  "aria-hidden": !0,
42
46
  draggable: !1,
43
- wrapperProps: {
44
- inlineCSS: {
45
- borderRadius: 12
46
- }
47
- },
47
+ borderRadius: 12,
48
+ enableFallback: !0,
49
+ enableErrorFallback: !0,
48
50
  style: { objectFit: "cover" }
49
51
  }
50
52
  ),
51
- /* @__PURE__ */ r(c, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
53
+ /* @__PURE__ */ e(l, { tag: "p", variant: "b2M", lineClamp: 2, children: t })
52
54
  ]
53
55
  }
54
56
  ) }, `tictoccroc-carousel1-account-${o}`)) })
@@ -20,7 +20,7 @@ function u() {
20
20
  height: 30,
21
21
  inlineCSS: {
22
22
  width: "50%",
23
- marginBottom: e.content(2),
23
+ marginBottom: e.content(4),
24
24
  marginLeft: e.content(4)
25
25
  }
26
26
  }
@@ -1,56 +1,58 @@
1
- import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
- import g from "@dotss/ui/core/useTheme";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import f from "@dotss/ui/core/useTheme";
3
3
  import a from "@dotss/ui/Flexbox";
4
- import c from "@dotss/ui/Typography";
5
- import C from "../../../../shared/components/Carousel/Carousel.mjs";
6
- import x from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
7
- import S from "../../../../shared/components/Image/Image.mjs";
8
- function $({ id: l, title: p, banners: d, onClickBanner: r, ...m }) {
9
- const { spacing: e } = g(), s = (o) => (t) => {
4
+ import l from "@dotss/ui/Typography";
5
+ import b from "../../../../shared/components/Carousel/Carousel.mjs";
6
+ import C from "../../../../shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
7
+ import x from "../../../../shared/components/Image/Image.mjs";
8
+ import "@dotss/ui";
9
+ function $({ id: p, title: d, banners: m, onClickBanner: r, ...s }) {
10
+ const { spacing: i } = f(), u = (o) => (t) => {
10
11
  r && typeof r == "function" && (t.stopPropagation(), t.preventDefault(), r(o, t));
11
12
  };
12
- return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", ...m, children: [
13
- /* @__PURE__ */ i(
14
- c,
13
+ return /* @__PURE__ */ n(a, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...s, children: [
14
+ /* @__PURE__ */ e(
15
+ l,
15
16
  {
16
- id: `banner-account-carousel2-${l}`,
17
+ id: `banner-account-carousel2-${p}`,
17
18
  variant: "h2B",
18
19
  inlineCSS: {
19
- paddingLeft: e.content(4),
20
- paddingRight: e.content(4),
21
- marginBottom: e.content(2)
20
+ paddingLeft: i.content(4),
21
+ paddingRight: i.content(4),
22
+ marginBottom: i.content(4)
22
23
  },
23
- children: p
24
+ children: d
24
25
  }
25
26
  ),
26
- /* @__PURE__ */ i(C, { rowCount: 1, step: 1, spacing: 3, children: d.map(({ id: o, title: t, subtitle: u, url: h, image: f }) => /* @__PURE__ */ i(x, { children: /* @__PURE__ */ n(
27
+ /* @__PURE__ */ e(b, { rowCount: 1, step: 1, spacing: 3, children: m.map(({ id: o, title: t, subtitle: g, url: c, image: h }) => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ n(
27
28
  a,
28
29
  {
30
+ tag: "a",
31
+ href: c,
29
32
  flexDirection: "column",
30
33
  gap: 3,
31
- onClick: s(h),
34
+ draggable: !1,
35
+ onClick: u(c),
32
36
  inlineCSS: { width: 240 },
33
37
  children: [
34
- /* @__PURE__ */ i(
35
- S,
38
+ /* @__PURE__ */ e(
39
+ x,
36
40
  {
37
- src: f || "",
41
+ src: h || "",
38
42
  width: 240,
39
43
  height: 168,
40
44
  alt: `${t} 이미지`,
41
45
  "aria-hidden": !0,
42
46
  draggable: !1,
43
- wrapperProps: {
44
- inlineCSS: {
45
- borderRadius: 12
46
- }
47
- },
47
+ borderRadius: 12,
48
+ enableFallback: !0,
49
+ enableErrorFallback: !0,
48
50
  style: { objectFit: "cover" }
49
51
  }
50
52
  ),
51
53
  /* @__PURE__ */ n(a, { flexDirection: "column", gap: 1, children: [
52
- /* @__PURE__ */ i(c, { tag: "p", variant: "h4B", lineClamp: 1, children: t }),
53
- /* @__PURE__ */ i(c, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children: u })
54
+ /* @__PURE__ */ e(l, { tag: "p", variant: "h4B", lineClamp: 1, children: t }),
55
+ /* @__PURE__ */ e(l, { tag: "p", variant: "b4R", lineClamp: 1, color: "grey.70", children: g })
54
56
  ] })
55
57
  ]
56
58
  }
@@ -1,19 +1,20 @@
1
- import { jsxs as h, jsx as e } from "react/jsx-runtime";
2
- import S from "@dotss/ui/core/useTheme";
1
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
+ import b from "@dotss/ui/core/useTheme";
3
3
  import i from "@dotss/ui/Flexbox";
4
- import { useCheckHoverPossible as x } from "@dotss/ui/hooks";
5
- import C from "@dotss/ui/Icon";
6
- import m from "@dotss/ui/Typography";
7
- import b from "../../../../shared/components/Image/Image.mjs";
8
- function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
9
- const { spacing: o, palette: l } = S(), { isHoverPossible: f } = x(), u = (r) => (t) => {
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) => {
10
11
  n && typeof n == "function" && (t.stopPropagation(), t.preventDefault(), n(r, t));
11
12
  };
12
- return /* @__PURE__ */ h(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
13
+ return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
13
14
  /* @__PURE__ */ e(
14
- m,
15
+ d,
15
16
  {
16
- id: `banner-account-text-${c}`,
17
+ id: `banner-account-text-${a}`,
17
18
  variant: "h2B",
18
19
  inlineCSS: {
19
20
  paddingLeft: o.content(4),
@@ -23,28 +24,28 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
23
24
  children: p
24
25
  }
25
26
  ),
26
- /* @__PURE__ */ e(i, { tag: "ul", flexDirection: "column", "aria-labelledby": `banner-account-text-${c}`, children: s.map(({ id: r, title: t, url: a, image: d }) => /* @__PURE__ */ e(i, { tag: "li", alignItems: "center", children: /* @__PURE__ */ h(
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(
27
28
  i,
28
29
  {
29
30
  tag: "a",
30
- href: a,
31
+ href: l,
31
32
  p: 4,
32
33
  gap: 3,
33
34
  alignItems: "center",
34
- onClick: u(a),
35
+ onClick: u(l),
35
36
  inlineCSS: {
36
37
  width: "100%",
37
38
  "&:focus-within": {
38
- backgroundColor: l.grey[10]
39
+ backgroundColor: c.grey[10]
39
40
  },
40
41
  ...f ? {
41
42
  "&:hover": {
42
- backgroundColor: l.grey[10]
43
+ backgroundColor: c.grey[10]
43
44
  }
44
45
  } : {}
45
46
  },
46
47
  children: [
47
- d && /* @__PURE__ */ e(
48
+ h && /* @__PURE__ */ e(
48
49
  i,
49
50
  {
50
51
  inlineCSS: {
@@ -53,24 +54,24 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
53
54
  overflow: "hidden"
54
55
  },
55
56
  children: /* @__PURE__ */ e(
56
- b,
57
+ C,
57
58
  {
58
59
  width: 100,
59
60
  height: 78,
60
- src: d,
61
+ src: h,
61
62
  alt: `${t} 이미지`,
62
- "aria-hidden": !0,
63
- lazy: !0
63
+ enableFallback: !0,
64
+ enableErrorFallback: !0
64
65
  }
65
66
  )
66
67
  }
67
68
  ),
68
69
  /* @__PURE__ */ e(
69
- m,
70
+ d,
70
71
  {
71
72
  tag: "p",
72
73
  variant: "b2R",
73
- lineClamp: a ? 2 : 1,
74
+ lineClamp: l ? 2 : 1,
74
75
  inlineCSS: {
75
76
  flexGrow: 1
76
77
  },
@@ -83,7 +84,7 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
83
84
  inlineCSS: {
84
85
  whiteSpace: "nowrap"
85
86
  },
86
- children: /* @__PURE__ */ e(C, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
87
+ children: /* @__PURE__ */ e(x, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
87
88
  }
88
89
  )
89
90
  ]
@@ -92,5 +93,5 @@ function D({ id: c, title: p, banners: s, onClickBanner: n, ...g }) {
92
93
  ] });
93
94
  }
94
95
  export {
95
- D as default
96
+ F as default
96
97
  };
@@ -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
- function h({ type: l, percent: t, ...r }) {
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
- h as default
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.12",
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"