@dotss/tictoccroc 0.0.0 → 0.0.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.
Files changed (159) hide show
  1. package/dist/LessonNotesSection-a2QNdQtj.js +196 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.mjs +109 -52
  4. package/dist/shared/components/Calendar/Calendar.d.ts +3 -2
  5. package/dist/shared/components/Calendar/Calendar.mjs +1 -1
  6. package/dist/shared/components/Carousel/Carousel.d.ts +1 -1
  7. package/dist/shared/components/Carousel/Carousel.mjs +13 -13
  8. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.d.ts +1 -1
  9. package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +1 -1
  10. package/dist/shared/components/Image/Image.d.ts +1 -1
  11. package/dist/shared/components/Image/Image.mjs +94 -93
  12. package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.mjs +12 -26
  13. package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.mjs +77 -98
  14. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs +4 -4
  15. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs +4 -4
  16. package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs +1 -1
  17. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.d.ts +7 -0
  18. package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -0
  19. package/dist/shared/components/LoadingAnnouncer/index.d.ts +3 -0
  20. package/dist/shared/components/LoadingAnnouncer/index.mjs +4 -0
  21. package/dist/shared/components/Masonry/Masonry.d.ts +12 -0
  22. package/dist/shared/components/Masonry/Masonry.mjs +220 -0
  23. package/dist/shared/components/Masonry/Masonry.utils.d.ts +7 -0
  24. package/dist/shared/components/Masonry/Masonry.utils.mjs +76 -0
  25. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.d.ts +11 -0
  26. package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +77 -0
  27. package/dist/shared/components/Masonry/MasonryBlock/index.d.ts +3 -0
  28. package/dist/shared/components/Masonry/MasonryBlock/index.mjs +4 -0
  29. package/dist/shared/components/Masonry/index.d.ts +4 -0
  30. package/dist/shared/components/Masonry/index.mjs +6 -0
  31. package/dist/shared/components/Roller/Roller.d.ts +1 -2
  32. package/dist/shared/components/Roller/Roller.mjs +7 -120
  33. package/dist/shared/components/Roller/RollerBlock/RollerBlock.d.ts +1 -1
  34. package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +1 -1
  35. package/dist/shared/components/Roller/index.mjs +3 -3
  36. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.d.ts +2 -5
  37. package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +1 -1
  38. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.d.ts +1 -1
  39. package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +2 -2
  40. package/dist/shared/components/Scheduler/Scheduler.d.ts +4 -4
  41. package/dist/shared/components/Scheduler/Scheduler.mjs +167 -178
  42. package/dist/shared/components/Swiper/Swiper.d.ts +1 -1
  43. package/dist/shared/components/Swiper/Swiper.mjs +77 -97
  44. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.d.ts +1 -1
  45. package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +1 -1
  46. package/dist/shared/components/TimePicker/TimePicker.d.ts +2 -2
  47. package/dist/shared/components/TimePicker/TimePicker.mjs +1 -1
  48. package/dist/shared/components/index.d.ts +14 -1
  49. package/dist/shared/components/index.mjs +40 -28
  50. package/dist/shared/utils/birthDateToAge/birthDateToAge.test.mjs +9 -10
  51. package/dist/shared/utils/getDateRange/getDateRange.d.ts +1 -1
  52. package/dist/shared/utils/getDateRange/getDateRange.test.mjs +27 -28
  53. package/dist/shared/utils/getImageUrl/getImageUrl.test.mjs +19 -20
  54. package/dist/shared/utils/getTimeRange/getTimeRange.test.mjs +22 -23
  55. package/dist/shared/utils/getVimeoId/getVimeoId.test.mjs +11 -12
  56. package/dist/shared/utils/index.d.ts +1 -0
  57. package/dist/shared/utils/index.mjs +6 -4
  58. package/dist/shared/utils/isAndroid/isAndroid.test.mjs +9 -10
  59. package/dist/shared/utils/isApp/isApp.test.mjs +14 -15
  60. package/dist/shared/utils/isDesktop/isDesktop.test.mjs +8 -9
  61. package/dist/shared/utils/isServer/isServer.test.mjs +10 -11
  62. package/dist/shared/utils/objectToQueryString/objectToQueryString.test.mjs +7 -7
  63. package/dist/shared/utils/parseQueryString/parseQueryString.test.mjs +10 -11
  64. package/dist/shared/utils/share/index.d.ts +2 -0
  65. package/dist/shared/utils/share/index.mjs +4 -0
  66. package/dist/shared/utils/share/share.d.ts +9 -0
  67. package/dist/shared/utils/share/share.mjs +15 -0
  68. package/dist/shared/utils/share/share.test.d.ts +1 -0
  69. package/dist/shared/utils/share/share.test.mjs +31 -0
  70. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.d.ts +15 -0
  71. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +441 -0
  72. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.d.ts +3 -0
  73. package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -0
  74. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.d.ts +6 -0
  75. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +111 -0
  76. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.d.ts +6 -0
  77. package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +43 -0
  78. package/dist/teacher/profile/components/AbilityCollection/index.d.ts +5 -0
  79. package/dist/teacher/profile/components/AbilityCollection/index.mjs +8 -0
  80. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.d.ts +11 -0
  81. package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +101 -0
  82. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.d.ts +8 -0
  83. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +124 -0
  84. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.d.ts +3 -0
  85. package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -0
  86. package/dist/teacher/profile/components/ActivityGallery/index.d.ts +4 -0
  87. package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -0
  88. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.d.ts +22 -0
  89. package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +179 -0
  90. package/dist/teacher/profile/components/AvailableScheduleSection/index.d.ts +3 -0
  91. package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +4 -0
  92. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.d.ts +10 -0
  93. package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +136 -0
  94. package/dist/teacher/profile/components/CareerSection/CareerItem/index.d.ts +3 -0
  95. package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +4 -0
  96. package/dist/teacher/profile/components/CareerSection/CareerSection.d.ts +9 -0
  97. package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +185 -0
  98. package/dist/teacher/profile/components/CareerSection/index.d.ts +4 -0
  99. package/dist/teacher/profile/components/CareerSection/index.mjs +6 -0
  100. package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.d.ts +8 -0
  101. package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs +91 -0
  102. package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.d.ts +3 -0
  103. package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.mjs +4 -0
  104. package/dist/teacher/profile/components/CertificationSection/CertificationSection.d.ts +9 -0
  105. package/dist/teacher/profile/components/CertificationSection/CertificationSection.mjs +152 -0
  106. package/dist/teacher/profile/components/CertificationSection/index.d.ts +4 -0
  107. package/dist/teacher/profile/components/CertificationSection/index.mjs +6 -0
  108. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.d.ts +9 -0
  109. package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +105 -0
  110. package/dist/teacher/profile/components/EducationSection/EducationItem/index.d.ts +3 -0
  111. package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +4 -0
  112. package/dist/teacher/profile/components/EducationSection/EducationSection.d.ts +9 -0
  113. package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +152 -0
  114. package/dist/teacher/profile/components/EducationSection/index.d.ts +4 -0
  115. package/dist/teacher/profile/components/EducationSection/index.mjs +6 -0
  116. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.d.ts +9 -0
  117. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs +54 -0
  118. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.d.ts +3 -0
  119. package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.mjs +4 -0
  120. package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.d.ts +7 -0
  121. package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.mjs +8 -0
  122. package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.utils.d.ts +4 -0
  123. package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.utils.mjs +13 -0
  124. package/dist/teacher/profile/components/LessonNotesSection/index.d.ts +4 -0
  125. package/dist/teacher/profile/components/LessonNotesSection/index.mjs +6 -0
  126. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.d.ts +10 -0
  127. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +103 -0
  128. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.d.ts +3 -0
  129. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +4 -0
  130. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.d.ts +7 -0
  131. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +79 -0
  132. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.d.ts +4 -0
  133. package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +13 -0
  134. package/dist/teacher/profile/components/ParentReviewSection/index.d.ts +4 -0
  135. package/dist/teacher/profile/components/ParentReviewSection/index.mjs +6 -0
  136. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.d.ts +9 -0
  137. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +37 -0
  138. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.d.ts +3 -0
  139. package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -0
  140. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.d.ts +8 -0
  141. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +32 -0
  142. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.d.ts +18 -0
  143. package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +14 -0
  144. package/dist/teacher/profile/components/PreferredAgeGroup/index.d.ts +4 -0
  145. package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +6 -0
  146. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.d.ts +25 -1
  147. package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +413 -5
  148. package/dist/teacher/profile/components/ProfileSummary/index.d.ts +2 -1
  149. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.d.ts +7 -0
  150. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +105 -0
  151. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.d.ts +3 -0
  152. package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +4 -0
  153. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.d.ts +6 -0
  154. package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +28 -0
  155. package/dist/teacher/profile/components/StatBadgeCollection/index.d.ts +4 -0
  156. package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -0
  157. package/dist/teacher/profile/components/index.d.ts +24 -0
  158. package/dist/teacher/profile/components/index.mjs +46 -0
  159. package/package.json +2 -2
@@ -1,105 +1,105 @@
1
- import { jsxs as I, jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as V, useRef as p, useImperativeHandle as _, useState as x, useEffect as T } from "react";
3
- import W from "@thedotscorp/ui/Flexbox";
4
- import $ from "@thedotscorp/ui/Skeleton";
5
- import k from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
6
- import q from "../../utils/getImageUrl/getImageUrl.mjs";
7
- const A = 100, X = V(
1
+ import { jsxs as T, jsx as u } from "react/jsx-runtime";
2
+ import { forwardRef as k, useRef as v, useImperativeHandle as q, useState as W, useEffect as $ } from "react";
3
+ import { Flexbox as H, Skeleton as O } from "@dotss/ui";
4
+ import A from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
5
+ import D from "../../utils/getImageUrl/getImageUrl.mjs";
6
+ const G = 100, Y = k(
8
7
  ({
9
- src: H,
10
- width: t,
8
+ src: j,
9
+ width: n,
11
10
  height: o,
12
- fit: O = "cover",
13
- position: j = "center",
14
- alt: y,
15
- scale: z = 2,
16
- onLoad: v,
11
+ fit: z = "cover",
12
+ position: B = "center",
13
+ alt: r,
14
+ scale: F = 2,
15
+ onLoad: S,
17
16
  onLazyLoad: m,
18
- lazy: S = !1,
19
- borderRadius: l,
20
- disabledResizing: B = !1,
21
- withIntrinsicRatio: L = !1,
22
- enableFallback: g = !1,
23
- wrapperProps: s = {},
24
- ...r
25
- }, F) => {
26
- const c = p(null), E = p(!1), a = p(null);
27
- _(F, () => a.current);
28
- const [f, R] = x(!1), [C, u] = x(!1), w = q({ src: H, width: t, height: o, fit: O, position: j, scale: z, disabledResizing: B }), h = (e) => {
29
- u(!0), typeof v == "function" && v(e);
17
+ lazy: L = !1,
18
+ borderRadius: s,
19
+ disabledResizing: R = !1,
20
+ withIntrinsicRatio: g = !1,
21
+ enableFallback: E = !1,
22
+ wrapperProps: t = {},
23
+ ...c
24
+ }, b) => {
25
+ const f = v(null), C = v(!1), d = v(null);
26
+ q(b, () => d.current);
27
+ const [a, M] = W(!1), [h, y] = W(!1), I = D({ src: j, width: n, height: o, fit: z, position: B, scale: F, disabledResizing: R }), x = (e) => {
28
+ y(!0), typeof S == "function" && S(e);
30
29
  };
31
- return T(() => {
32
- if (S && c.current) {
33
- const e = c.current, b = () => {
30
+ return $(() => {
31
+ if (L && f.current) {
32
+ const e = f.current, U = () => {
34
33
  if (!e) return !1;
35
- const n = e.getBoundingClientRect();
36
- return n.bottom >= 0 && n.top <= (window.innerHeight || document.documentElement.clientHeight) + A;
37
- }, i = () => {
38
- b() && R(!0);
39
- }, M = () => {
40
- var n;
41
- (n = window.appScreenContent) == null || n.addEventListener("scroll", i), window.addEventListener("resize", i), window.addEventListener("orientationchange", i);
42
- }, U = () => {
43
- var n;
44
- (n = window.appScreenContent) == null || n.removeEventListener("scroll", i), window.removeEventListener("resize", i), window.removeEventListener("orientationchange", i);
34
+ const i = e.getBoundingClientRect();
35
+ return i.bottom >= 0 && i.top <= (window.innerHeight || document.documentElement.clientHeight) + G;
36
+ }, l = () => {
37
+ U() && M(!0);
38
+ }, V = () => {
39
+ var i;
40
+ (i = window.appScreenContent) == null || i.addEventListener("scroll", l), window.addEventListener("resize", l), window.addEventListener("orientationchange", l);
41
+ }, _ = () => {
42
+ var i;
43
+ (i = window.appScreenContent) == null || i.removeEventListener("scroll", l), window.removeEventListener("resize", l), window.removeEventListener("orientationchange", l);
45
44
  };
46
- return i(), M(), U;
45
+ return l(), V(), _;
47
46
  }
48
- }), T(() => {
49
- typeof m == "function" && f && !E.current && (E.current = !0, m());
50
- }, [m, f]), k(() => {
51
- const e = a.current;
52
- return e != null && e.complete ? (e.style.transition = "none", e.style.opacity = "1", u(!0)) : e && (e.style.transition = "opacity 0.3s", e.style.opacity = "0", e.onload = () => {
53
- e.style.opacity = "1", u(!0), e.onload = null;
47
+ }), $(() => {
48
+ typeof m == "function" && a && !C.current && (C.current = !0, m());
49
+ }, [m, a]), A(() => {
50
+ const e = d.current;
51
+ return e != null && e.complete ? (e.style.transition = "none", e.style.opacity = "1", y(!0)) : e && (e.style.transition = "opacity 0.3s", e.style.opacity = "0", e.onload = () => {
52
+ e.style.opacity = "1", y(!0), e.onload = null;
54
53
  }), () => {
55
54
  e && (e.onload = null);
56
55
  };
57
- }, [f]), S ? /* @__PURE__ */ I(
58
- W,
56
+ }, [a]), L ? /* @__PURE__ */ T(
57
+ H,
59
58
  {
60
- ...s,
61
- ref: c,
62
- inlineCSS: L ? {
59
+ ...t,
60
+ ref: f,
61
+ inlineCSS: g ? {
63
62
  position: "relative",
64
- paddingTop: `calc(100% / ${t} * ${o})`,
63
+ paddingTop: `calc(100% / ${n} * ${o})`,
65
64
  minWidth: "100%",
66
- borderRadius: l,
65
+ borderRadius: s,
67
66
  overflow: "hidden",
68
- ...s.inlineCSS
67
+ ...t == null ? void 0 : t.inlineCSS
69
68
  } : {
70
69
  position: "relative",
71
- width: t,
72
- minWidth: t,
70
+ width: n,
71
+ minWidth: n,
73
72
  height: o,
74
- borderRadius: l,
73
+ borderRadius: s,
75
74
  overflow: "hidden",
76
- ...s.inlineCSS || {}
75
+ ...t == null ? void 0 : t.inlineCSS
77
76
  },
78
77
  children: [
79
- g && /* @__PURE__ */ d(
80
- $,
78
+ E && /* @__PURE__ */ u(
79
+ O,
81
80
  {
82
81
  width: "100%",
83
82
  height: "100%",
83
+ borderRadius: s || 0,
84
84
  inlineCSS: {
85
85
  position: "absolute",
86
86
  top: 0,
87
87
  left: 0,
88
- opacity: C ? 0 : 1,
88
+ opacity: h ? 0 : 1,
89
89
  transition: "opacity 0.3s"
90
90
  }
91
91
  }
92
92
  ),
93
- f && /* @__PURE__ */ d(
93
+ a && /* @__PURE__ */ u(
94
94
  "img",
95
95
  {
96
- ref: a,
97
- src: w,
98
- alt: y,
99
- width: t,
96
+ ref: d,
97
+ src: I,
98
+ alt: r,
99
+ width: n,
100
100
  height: o,
101
- onLoad: h,
102
- ...r,
101
+ onLoad: x,
102
+ ...c,
103
103
  style: {
104
104
  position: "absolute",
105
105
  top: 0,
@@ -107,59 +107,60 @@ const A = 100, X = V(
107
107
  width: "100%",
108
108
  height: "100%",
109
109
  transition: "opacity 0.3s",
110
- ...r.style
110
+ ...c.style
111
111
  }
112
112
  }
113
113
  )
114
114
  ]
115
115
  }
116
- ) : /* @__PURE__ */ I(
117
- W,
116
+ ) : /* @__PURE__ */ T(
117
+ H,
118
118
  {
119
- ...s,
120
- ref: c,
121
- inlineCSS: L ? {
119
+ ...t,
120
+ ref: f,
121
+ inlineCSS: g ? {
122
122
  position: "relative",
123
- paddingTop: `calc(100% / ${t} * ${o})`,
123
+ paddingTop: `calc(100% / ${n} * ${o})`,
124
124
  minWidth: "100%",
125
125
  transition: "padding-top 0.2s",
126
- borderRadius: l,
126
+ borderRadius: s,
127
127
  overflow: "hidden",
128
- ...s.inlineCSS
128
+ ...t == null ? void 0 : t.inlineCSS
129
129
  } : {
130
130
  position: "relative",
131
- width: t,
132
- minWidth: t,
131
+ width: n,
132
+ minWidth: n,
133
133
  height: o,
134
- borderRadius: l,
134
+ borderRadius: s,
135
135
  overflow: "hidden",
136
- ...s.inlineCSS
136
+ ...t == null ? void 0 : t.inlineCSS
137
137
  },
138
138
  children: [
139
- g && /* @__PURE__ */ d(
140
- $,
139
+ E && /* @__PURE__ */ u(
140
+ O,
141
141
  {
142
142
  width: "100%",
143
143
  height: "100%",
144
+ borderRadius: s || 0,
144
145
  inlineCSS: {
145
146
  position: "absolute",
146
147
  top: 0,
147
148
  left: 0,
148
- opacity: C ? 0 : 1,
149
+ opacity: h ? 0 : 1,
149
150
  transition: "opacity 0.3s"
150
151
  }
151
152
  }
152
153
  ),
153
- /* @__PURE__ */ d(
154
+ /* @__PURE__ */ u(
154
155
  "img",
155
156
  {
156
- ref: a,
157
- src: w,
158
- alt: y,
159
- width: t,
157
+ ref: d,
158
+ src: I,
159
+ alt: r,
160
+ width: n,
160
161
  height: o,
161
- onLoad: h,
162
- ...r,
162
+ onLoad: x,
163
+ ...c,
163
164
  style: {
164
165
  position: "absolute",
165
166
  top: 0,
@@ -167,7 +168,7 @@ const A = 100, X = V(
167
168
  width: "100%",
168
169
  height: "100%",
169
170
  transition: "opacity 0.3s",
170
- ...r.style
171
+ ...c.style
171
172
  }
172
173
  }
173
174
  )
@@ -177,5 +178,5 @@ const A = 100, X = V(
177
178
  }
178
179
  );
179
180
  export {
180
- X as default
181
+ Y as default
181
182
  };
@@ -1,15 +1,14 @@
1
- import { jsxs as s, Fragment as n, jsx as a } from "react/jsx-runtime";
2
- import { useState as l } from "react";
3
- import d from "@thedotscorp/ui/Flexbox";
4
- import m from "../../Image/Image.mjs";
5
- function x({ fallback: t, containerHeight: e, ...o }) {
6
- const [r, i] = l(!1);
7
- return /* @__PURE__ */ s(n, { children: [
8
- /* @__PURE__ */ a(
9
- m,
1
+ import { jsxs as s, Fragment as i, jsx as n } from "react/jsx-runtime";
2
+ import { useState as d } from "react";
3
+ import l from "../../Image/Image.mjs";
4
+ function f({ fallback: a, containerHeight: e, ...t }) {
5
+ const [o, r] = d(!1);
6
+ return /* @__PURE__ */ s(i, { children: [
7
+ /* @__PURE__ */ n(
8
+ l,
10
9
  {
11
- ...o,
12
- onLoad: () => i(!0),
10
+ ...t,
11
+ onLoad: () => r(!0),
13
12
  disabledResizing: !0,
14
13
  draggable: !1,
15
14
  wrapperProps: {
@@ -29,22 +28,9 @@ function x({ fallback: t, containerHeight: e, ...o }) {
29
28
  }
30
29
  }
31
30
  ),
32
- !r && !!t && /* @__PURE__ */ a(
33
- d,
34
- {
35
- "aria-busy": !0,
36
- inlineCSS: {
37
- position: "absolute",
38
- top: "50%",
39
- left: "50%",
40
- transform: "translate(-50%, -50%)",
41
- cursor: "wait"
42
- },
43
- children: t
44
- }
45
- )
31
+ !o && a
46
32
  ] });
47
33
  }
48
34
  export {
49
- x as default
35
+ f as default
50
36
  };