@dotss/tictoccroc 0.0.13 → 0.0.15

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.
Files changed (65) hide show
  1. package/dist/index.mjs +143 -112
  2. package/dist/shared/components/ChatKit/BotMessage/BotMessage.d.ts +29 -0
  3. package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +174 -0
  4. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.d.ts +8 -0
  5. package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +51 -0
  6. package/dist/shared/components/ChatKit/BotMessage/index.d.ts +4 -0
  7. package/dist/shared/components/ChatKit/BotMessage/index.mjs +8 -0
  8. package/dist/shared/components/ChatKit/InputBar/InputBar.d.ts +9 -0
  9. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.d.ts +2 -0
  10. package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +85 -0
  11. package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +130 -0
  12. package/dist/shared/components/ChatKit/InputBar/index.d.ts +4 -0
  13. package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -0
  14. package/dist/shared/components/ChatKit/Message/Message.d.ts +40 -0
  15. package/dist/shared/components/ChatKit/Message/Message.fallback.d.ts +9 -0
  16. package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +59 -0
  17. package/dist/shared/components/ChatKit/Message/Message.mjs +237 -0
  18. package/dist/shared/components/ChatKit/Message/Message.utils.d.ts +16 -0
  19. package/dist/shared/components/ChatKit/Message/Message.utils.mjs +34 -0
  20. package/dist/shared/components/ChatKit/Message/index.d.ts +5 -0
  21. package/dist/shared/components/ChatKit/Message/index.mjs +9 -0
  22. package/dist/shared/components/ChatKit/Seperator/Seperator.d.ts +6 -0
  23. package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +29 -0
  24. package/dist/shared/components/ChatKit/Seperator/index.d.ts +3 -0
  25. package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -0
  26. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.d.ts +7 -0
  27. package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +120 -0
  28. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.d.ts +15 -0
  29. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +107 -0
  30. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.d.ts +2 -0
  31. package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +6 -0
  32. package/dist/shared/components/ChatKit/SystemMessage/index.d.ts +5 -0
  33. package/dist/shared/components/ChatKit/SystemMessage/index.mjs +8 -0
  34. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.d.ts +7 -0
  35. package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +55 -0
  36. package/dist/shared/components/ChatKit/UnreadMessagePill/index.d.ts +3 -0
  37. package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +4 -0
  38. package/dist/shared/components/ChatKit/index.d.ts +12 -0
  39. package/dist/shared/components/ChatKit/index.mjs +29 -0
  40. package/dist/shared/components/Image/Image.mjs +59 -57
  41. package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +13 -14
  42. package/dist/shared/components/index.d.ts +2 -0
  43. package/dist/shared/components/index.mjs +65 -38
  44. package/dist/shared/hooks/index.d.ts +1 -0
  45. package/dist/shared/hooks/index.mjs +2 -0
  46. package/dist/shared/hooks/useInView/index.d.ts +2 -0
  47. package/dist/shared/hooks/useInView/index.mjs +4 -0
  48. package/dist/shared/hooks/useInView/useInView.d.ts +4 -0
  49. package/dist/shared/hooks/useInView/useInView.mjs +30 -0
  50. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.d.ts +1 -0
  51. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +21 -0
  52. package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.test.d.ts +1 -0
  53. package/dist/shared/utils/getCareTypeLabel/index.d.ts +2 -0
  54. package/dist/shared/utils/getCareTypeLabel/index.mjs +4 -0
  55. package/dist/shared/utils/index.d.ts +1 -0
  56. package/dist/shared/utils/index.mjs +12 -10
  57. package/dist/teacher/home/components/BannerAccount/BannerAccount.d.ts +3 -1
  58. package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +21 -20
  59. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.d.ts +3 -1
  60. package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +22 -14
  61. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.d.ts +3 -1
  62. package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +22 -14
  63. package/dist/teacher/home/components/TextAccount/TextAccount.d.ts +3 -1
  64. package/dist/teacher/home/components/TextAccount/TextAccount.mjs +21 -13
  65. package/package.json +1 -1
@@ -1,16 +1,23 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import b from "@dotss/ui/core/useTheme";
2
+ import S from "@dotss/ui/core/useTheme";
3
3
  import i from "@dotss/ui/Flexbox";
4
- import { useCheckHoverPossible as S } from "@dotss/ui/hooks";
5
- import x from "@dotss/ui/Icon";
4
+ import { useCheckHoverPossible as x } from "@dotss/ui/hooks";
5
+ import C from "@dotss/ui/Icon";
6
6
  import d from "@dotss/ui/Typography";
7
- import C from "../../../../shared/components/Image/Image.mjs";
7
+ import v from "../../../../shared/components/Image/Image.mjs";
8
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) => {
9
+ function P({
10
+ id: a,
11
+ title: p,
12
+ banners: s,
13
+ onClickBanner: n,
14
+ imageProps: g,
15
+ ...f
16
+ }) {
17
+ const { spacing: o, palette: c } = S(), { isHoverPossible: u } = x(), b = (r) => (t) => {
11
18
  n && typeof n == "function" && (t.stopPropagation(), t.preventDefault(), n(r, t));
12
19
  };
13
- return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...g, children: [
20
+ return /* @__PURE__ */ m(i, { tag: "section", flexDirection: "column", inlineCSS: { width: "100%" }, ...f, children: [
14
21
  /* @__PURE__ */ e(
15
22
  d,
16
23
  {
@@ -32,13 +39,13 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
32
39
  p: 4,
33
40
  gap: 3,
34
41
  alignItems: "center",
35
- onClick: u(l),
42
+ onClick: b(l),
36
43
  inlineCSS: {
37
44
  width: "100%",
38
45
  "&:focus-within": {
39
46
  backgroundColor: c.grey[10]
40
47
  },
41
- ...f ? {
48
+ ...u ? {
42
49
  "&:hover": {
43
50
  backgroundColor: c.grey[10]
44
51
  }
@@ -54,14 +61,15 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
54
61
  overflow: "hidden"
55
62
  },
56
63
  children: /* @__PURE__ */ e(
57
- C,
64
+ v,
58
65
  {
59
66
  width: 100,
60
67
  height: 78,
61
68
  src: h,
62
69
  alt: `${t} 이미지`,
63
70
  enableFallback: !0,
64
- enableErrorFallback: !0
71
+ enableErrorFallback: !0,
72
+ ...g
65
73
  }
66
74
  )
67
75
  }
@@ -84,7 +92,7 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
84
92
  inlineCSS: {
85
93
  whiteSpace: "nowrap"
86
94
  },
87
- children: /* @__PURE__ */ e(x, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
95
+ children: /* @__PURE__ */ e(C, { name: "ChevronRightLine", size: "xSmall", color: "grey.50" })
88
96
  }
89
97
  )
90
98
  ]
@@ -93,5 +101,5 @@ function F({ id: a, title: p, banners: s, onClickBanner: n, ...g }) {
93
101
  ] });
94
102
  }
95
103
  export {
96
- F as default
104
+ P as default
97
105
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dotss/tictoccroc",
3
3
  "type": "module",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
6
6
  "main": "./dist/index.mjs",
7
7
  "module": "./dist/index.mjs",